@guardian/feast-multiplatform-library 7.1.3 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/feast-multiplatform-library-library.js +1330 -1158
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +949 -781
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1768 -1768
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1430 -1430
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,75 +3,79 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var toString = kotlin_kotlin.$_$.
|
|
8
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
9
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
10
|
-
var equals = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.v7;
|
|
7
|
+
var toString = kotlin_kotlin.$_$.xa;
|
|
8
|
+
var getNumberHashCode = kotlin_kotlin.$_$.u6;
|
|
9
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.t6;
|
|
10
|
+
var equals = kotlin_kotlin.$_$.s6;
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.y6;
|
|
12
12
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
13
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
13
|
+
var numberToInt = kotlin_kotlin.$_$.t7;
|
|
14
14
|
var Unit_instance = kotlin_kotlin.$_$.k3;
|
|
15
|
-
var round = kotlin_kotlin.$_$.
|
|
16
|
-
var replace = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
18
|
-
var listOfNotNull = kotlin_kotlin.$_$.
|
|
19
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
20
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
15
|
+
var round = kotlin_kotlin.$_$.y7;
|
|
16
|
+
var replace = kotlin_kotlin.$_$.u8;
|
|
17
|
+
var initMetadataForObject = kotlin_kotlin.$_$.d7;
|
|
18
|
+
var listOfNotNull = kotlin_kotlin.$_$.z4;
|
|
19
|
+
var joinToString = kotlin_kotlin.$_$.u4;
|
|
20
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.va;
|
|
21
21
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.a4;
|
|
22
22
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
23
23
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.b1;
|
|
24
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
25
|
-
var indexOfAny = kotlin_kotlin.$_$.
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
28
|
-
var trim = kotlin_kotlin.$_$.
|
|
29
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
30
|
-
var to = kotlin_kotlin.$_$.
|
|
31
|
-
var take = kotlin_kotlin.$_$.
|
|
32
|
-
var drop = kotlin_kotlin.$_$.
|
|
24
|
+
var charArrayOf = kotlin_kotlin.$_$.l6;
|
|
25
|
+
var indexOfAny = kotlin_kotlin.$_$.o8;
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.ba;
|
|
27
|
+
var isCharSequence = kotlin_kotlin.$_$.i7;
|
|
28
|
+
var trim = kotlin_kotlin.$_$.o9;
|
|
29
|
+
var toString_0 = kotlin_kotlin.$_$.x7;
|
|
30
|
+
var to = kotlin_kotlin.$_$.ya;
|
|
31
|
+
var take = kotlin_kotlin.$_$.b9;
|
|
32
|
+
var drop = kotlin_kotlin.$_$.m8;
|
|
33
33
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
34
34
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
35
35
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
36
36
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.c;
|
|
37
|
-
var lazy = kotlin_kotlin.$_$.
|
|
38
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
37
|
+
var lazy = kotlin_kotlin.$_$.ta;
|
|
38
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.z6;
|
|
39
39
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
40
40
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
41
41
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
42
42
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
43
43
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
44
44
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
45
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
46
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
47
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
45
|
+
var objectCreate = kotlin_kotlin.$_$.u7;
|
|
46
|
+
var getStringHashCode = kotlin_kotlin.$_$.w6;
|
|
47
|
+
var hashCode = kotlin_kotlin.$_$.x6;
|
|
48
48
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
49
49
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
50
|
-
var substring = kotlin_kotlin.$_$.
|
|
51
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
50
|
+
var substring = kotlin_kotlin.$_$.a9;
|
|
51
|
+
var charSequenceLength = kotlin_kotlin.$_$.p6;
|
|
52
52
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
53
53
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
54
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
55
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
56
|
-
var createKType = kotlin_kotlin.$_$.
|
|
54
|
+
var getKClass = kotlin_kotlin.$_$.h8;
|
|
55
|
+
var arrayOf = kotlin_kotlin.$_$.ma;
|
|
56
|
+
var createKType = kotlin_kotlin.$_$.f8;
|
|
57
57
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
58
58
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var print = kotlin_kotlin.$_$.
|
|
61
|
-
var Exception = kotlin_kotlin.$_$.
|
|
62
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
63
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.m7;
|
|
60
|
+
var print = kotlin_kotlin.$_$.s5;
|
|
61
|
+
var Exception = kotlin_kotlin.$_$.w9;
|
|
62
|
+
var substring_0 = kotlin_kotlin.$_$.z8;
|
|
63
|
+
var isBlank = kotlin_kotlin.$_$.r8;
|
|
64
64
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
65
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
65
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.b7;
|
|
66
66
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
67
67
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
68
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
69
|
-
var Enum = kotlin_kotlin.$_$.
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.r6;
|
|
69
|
+
var Enum = kotlin_kotlin.$_$.v9;
|
|
70
|
+
var setOf = kotlin_kotlin.$_$.g5;
|
|
71
|
+
var setOf_0 = kotlin_kotlin.$_$.h5;
|
|
72
|
+
var listOf = kotlin_kotlin.$_$.a5;
|
|
73
|
+
var mapCapacity = kotlin_kotlin.$_$.b5;
|
|
74
|
+
var coerceAtLeast = kotlin_kotlin.$_$.a8;
|
|
73
75
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
74
|
-
var plus = kotlin_kotlin.$_$.
|
|
76
|
+
var plus = kotlin_kotlin.$_$.d5;
|
|
77
|
+
var emptySet = kotlin_kotlin.$_$.q4;
|
|
78
|
+
var contains = kotlin_kotlin.$_$.b4;
|
|
75
79
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
76
80
|
//endregion
|
|
77
81
|
//region block: pre-declaration
|
|
@@ -112,38 +116,39 @@
|
|
|
112
116
|
initMetadataForClass(OvenTemperaturePlaceholder, 'OvenTemperaturePlaceholder', OvenTemperaturePlaceholder, VOID, [TemplateElement], VOID, VOID, {0: $serializer_getInstance_9});
|
|
113
117
|
initMetadataForObject(Imperial, 'Imperial');
|
|
114
118
|
initMetadataForObject(Metric, 'Metric');
|
|
119
|
+
initMetadataForObject(USCustomary, 'USCustomary');
|
|
115
120
|
initMetadataForClass(UnitType, 'UnitType', VOID, Enum);
|
|
116
|
-
initMetadataForClass(
|
|
121
|
+
initMetadataForClass(MeasurementUnit, 'MeasurementUnit');
|
|
117
122
|
initMetadataForObject(Units, 'Units');
|
|
118
|
-
initMetadataForObject(
|
|
123
|
+
initMetadataForObject(UnitConversions, 'UnitConversions');
|
|
119
124
|
//endregion
|
|
120
125
|
function Amount(min, max, unit, usCust) {
|
|
121
126
|
max = max === VOID ? null : max;
|
|
122
127
|
unit = unit === VOID ? null : unit;
|
|
123
128
|
usCust = usCust === VOID ? null : usCust;
|
|
124
|
-
this.
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
129
|
+
this.r1d_1 = min;
|
|
130
|
+
this.s1d_1 = max;
|
|
131
|
+
this.t1d_1 = unit;
|
|
132
|
+
this.u1d_1 = usCust;
|
|
128
133
|
}
|
|
129
|
-
protoOf(Amount).
|
|
134
|
+
protoOf(Amount).v1d = function (min, max, unit, usCust) {
|
|
130
135
|
return new Amount(min, max, unit, usCust);
|
|
131
136
|
};
|
|
132
|
-
protoOf(Amount).
|
|
133
|
-
min = min === VOID ? this.
|
|
134
|
-
max = max === VOID ? this.
|
|
135
|
-
unit = unit === VOID ? this.
|
|
136
|
-
usCust = usCust === VOID ? this.
|
|
137
|
-
return $super === VOID ? this.
|
|
137
|
+
protoOf(Amount).w1d = function (min, max, unit, usCust, $super) {
|
|
138
|
+
min = min === VOID ? this.r1d_1 : min;
|
|
139
|
+
max = max === VOID ? this.s1d_1 : max;
|
|
140
|
+
unit = unit === VOID ? this.t1d_1 : unit;
|
|
141
|
+
usCust = usCust === VOID ? this.u1d_1 : usCust;
|
|
142
|
+
return $super === VOID ? this.v1d(min, max, unit, usCust) : $super.v1d.call(this, min, max, unit, usCust);
|
|
138
143
|
};
|
|
139
144
|
protoOf(Amount).toString = function () {
|
|
140
|
-
return 'Amount(min=' + this.
|
|
145
|
+
return 'Amount(min=' + this.r1d_1 + ', max=' + this.s1d_1 + ', unit=' + toString(this.t1d_1) + ', usCust=' + this.u1d_1 + ')';
|
|
141
146
|
};
|
|
142
147
|
protoOf(Amount).hashCode = function () {
|
|
143
|
-
var result = getNumberHashCode(this.
|
|
144
|
-
result = imul(result, 31) + (this.
|
|
145
|
-
result = imul(result, 31) + (this.
|
|
146
|
-
result = imul(result, 31) + (this.
|
|
148
|
+
var result = getNumberHashCode(this.r1d_1);
|
|
149
|
+
result = imul(result, 31) + (this.s1d_1 == null ? 0 : getNumberHashCode(this.s1d_1)) | 0;
|
|
150
|
+
result = imul(result, 31) + (this.t1d_1 == null ? 0 : this.t1d_1.hashCode()) | 0;
|
|
151
|
+
result = imul(result, 31) + (this.u1d_1 == null ? 0 : getBooleanHashCode(this.u1d_1)) | 0;
|
|
147
152
|
return result;
|
|
148
153
|
};
|
|
149
154
|
protoOf(Amount).equals = function (other) {
|
|
@@ -151,24 +156,24 @@
|
|
|
151
156
|
return true;
|
|
152
157
|
if (!(other instanceof Amount))
|
|
153
158
|
return false;
|
|
154
|
-
if (!equals(this.
|
|
159
|
+
if (!equals(this.r1d_1, other.r1d_1))
|
|
155
160
|
return false;
|
|
156
|
-
if (!equals(this.
|
|
161
|
+
if (!equals(this.s1d_1, other.s1d_1))
|
|
157
162
|
return false;
|
|
158
|
-
if (!equals(this.
|
|
163
|
+
if (!equals(this.t1d_1, other.t1d_1))
|
|
159
164
|
return false;
|
|
160
|
-
if (!(this.
|
|
165
|
+
if (!(this.u1d_1 == other.u1d_1))
|
|
161
166
|
return false;
|
|
162
167
|
return true;
|
|
163
168
|
};
|
|
164
169
|
function FormatUtils$applySmartPunctuation$lambda(matchResult) {
|
|
165
|
-
return '\u201C' + matchResult.ub().
|
|
170
|
+
return '\u201C' + matchResult.ub().n(2) + '\u201D';
|
|
166
171
|
}
|
|
167
172
|
function FormatUtils() {
|
|
168
173
|
FormatUtils_instance = this;
|
|
169
|
-
this.
|
|
174
|
+
this.x1d_1 = Regex_init_$Create$('(["])(.*?)(["])');
|
|
170
175
|
}
|
|
171
|
-
protoOf(FormatUtils).
|
|
176
|
+
protoOf(FormatUtils).y1d = function (number) {
|
|
172
177
|
if (number === 0.0)
|
|
173
178
|
return '0';
|
|
174
179
|
var integerPart = numberToInt(number);
|
|
@@ -176,9 +181,9 @@
|
|
|
176
181
|
var fractionalPart = number - integerPart;
|
|
177
182
|
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);
|
|
178
183
|
};
|
|
179
|
-
protoOf(FormatUtils).
|
|
184
|
+
protoOf(FormatUtils).z1d = function (number, decimals, fraction) {
|
|
180
185
|
if (fraction) {
|
|
181
|
-
return this.
|
|
186
|
+
return this.y1d(number);
|
|
182
187
|
} else {
|
|
183
188
|
var multiplier = 1.0;
|
|
184
189
|
// Inline function 'kotlin.repeat' call
|
|
@@ -200,8 +205,8 @@
|
|
|
200
205
|
return tmp;
|
|
201
206
|
}
|
|
202
207
|
};
|
|
203
|
-
protoOf(FormatUtils).
|
|
204
|
-
var withQuotes = this.
|
|
208
|
+
protoOf(FormatUtils).a1e = function (text) {
|
|
209
|
+
var withQuotes = this.x1d_1.za(text, FormatUtils$applySmartPunctuation$lambda);
|
|
205
210
|
return replace(replace(withQuotes, "'", '\u2019'), ' - ', ' \u2013 ');
|
|
206
211
|
};
|
|
207
212
|
var FormatUtils_instance;
|
|
@@ -248,25 +253,10 @@
|
|
|
248
253
|
tmp_5 = null;
|
|
249
254
|
} else {
|
|
250
255
|
// Inline function 'kotlin.let' call
|
|
251
|
-
tmp_5 = '/gas mark ' + FormatUtils_getInstance().
|
|
256
|
+
tmp_5 = '/gas mark ' + FormatUtils_getInstance().y1d(tmp3_safe_receiver);
|
|
252
257
|
}
|
|
253
258
|
return joinToString(listOfNotNull([tmp_2, fanTempC, tmp_4, tmp_5]), '');
|
|
254
259
|
}
|
|
255
|
-
function scaleAmount(amount, factor, shouldScale) {
|
|
256
|
-
if (!shouldScale) {
|
|
257
|
-
return amount;
|
|
258
|
-
}
|
|
259
|
-
var tmp = amount.m1d_1 * factor;
|
|
260
|
-
var tmp0_safe_receiver = amount.n1d_1;
|
|
261
|
-
var tmp_0;
|
|
262
|
-
if (tmp0_safe_receiver == null) {
|
|
263
|
-
tmp_0 = null;
|
|
264
|
-
} else {
|
|
265
|
-
// Inline function 'kotlin.let' call
|
|
266
|
-
tmp_0 = tmp0_safe_receiver * factor;
|
|
267
|
-
}
|
|
268
|
-
return amount.r1d(tmp, tmp_0);
|
|
269
|
-
}
|
|
270
260
|
function renderQuantity(element, factor, measuringSystem) {
|
|
271
261
|
var tmp = !(element.min === element.max) ? element.max : null;
|
|
272
262
|
var tmp0_safe_receiver = element.unit;
|
|
@@ -275,40 +265,40 @@
|
|
|
275
265
|
tmp_0 = null;
|
|
276
266
|
} else {
|
|
277
267
|
// Inline function 'kotlin.let' call
|
|
278
|
-
tmp_0 = Units_getInstance().
|
|
268
|
+
tmp_0 = Units_getInstance().z1e(tmp0_safe_receiver);
|
|
279
269
|
}
|
|
280
270
|
var amount = new Amount(element.min, tmp, tmp_0, element.usCust);
|
|
281
|
-
|
|
282
|
-
amount =
|
|
283
|
-
var tmp1_subject = amount.
|
|
284
|
-
var decimals = equals(tmp1_subject, Units_getInstance().
|
|
285
|
-
var tmp2_subject = amount.
|
|
286
|
-
var fraction = equals(tmp2_subject, Units_getInstance().
|
|
271
|
+
var factorToUse = !element.scale ? 1.0 : factor;
|
|
272
|
+
amount = UnitConversions_getInstance().f1f(amount, measuringSystem, factorToUse);
|
|
273
|
+
var tmp1_subject = amount.t1d_1;
|
|
274
|
+
var decimals = equals(tmp1_subject, Units_getInstance().b1e_1) || (equals(tmp1_subject, Units_getInstance().f1e_1) || equals(tmp1_subject, Units_getInstance().s1e_1)) ? 0 : equals(tmp1_subject, Units_getInstance().t1e_1) || equals(tmp1_subject, Units_getInstance().u1e_1) ? 1 : 2;
|
|
275
|
+
var tmp2_subject = amount.t1d_1;
|
|
276
|
+
var fraction = equals(tmp2_subject, Units_getInstance().k1e_1) || (equals(tmp2_subject, Units_getInstance().i1e_1) || equals(tmp2_subject, Units_getInstance().l1e_1)) || (equals(tmp2_subject, Units_getInstance().j1e_1) || (equals(tmp2_subject, Units_getInstance().o1e_1) || equals(tmp2_subject, Units_getInstance().n1e_1))) ? true : tmp2_subject == null ? true : false;
|
|
287
277
|
var tmp_1;
|
|
288
|
-
if (!(amount.
|
|
278
|
+
if (!(amount.t1d_1 == null)) {
|
|
289
279
|
var tmp_2;
|
|
290
|
-
var tmp0 = amount.
|
|
291
|
-
var tmp3_elvis_lhs = amount.
|
|
280
|
+
var tmp0 = amount.r1d_1;
|
|
281
|
+
var tmp3_elvis_lhs = amount.s1d_1;
|
|
292
282
|
// Inline function 'kotlin.math.max' call
|
|
293
|
-
var b = tmp3_elvis_lhs == null ? amount.
|
|
283
|
+
var b = tmp3_elvis_lhs == null ? amount.r1d_1 : tmp3_elvis_lhs;
|
|
294
284
|
if (Math.max(tmp0, b) > 1) {
|
|
295
|
-
tmp_2 = ' ' + amount.
|
|
285
|
+
tmp_2 = ' ' + amount.t1d_1.j1f_1;
|
|
296
286
|
} else {
|
|
297
|
-
tmp_2 = ' ' + amount.
|
|
287
|
+
tmp_2 = ' ' + amount.t1d_1.i1f_1;
|
|
298
288
|
}
|
|
299
289
|
tmp_1 = tmp_2;
|
|
300
290
|
} else {
|
|
301
291
|
tmp_1 = '';
|
|
302
292
|
}
|
|
303
293
|
var unitString = tmp_1;
|
|
304
|
-
var tmp_3 = FormatUtils_getInstance().
|
|
305
|
-
var tmp4_safe_receiver = amount.
|
|
294
|
+
var tmp_3 = FormatUtils_getInstance().z1d(amount.r1d_1, decimals, fraction);
|
|
295
|
+
var tmp4_safe_receiver = amount.s1d_1;
|
|
306
296
|
var tmp_4;
|
|
307
297
|
if (tmp4_safe_receiver == null) {
|
|
308
298
|
tmp_4 = null;
|
|
309
299
|
} else {
|
|
310
300
|
// Inline function 'kotlin.let' call
|
|
311
|
-
tmp_4 = '-' + FormatUtils_getInstance().
|
|
301
|
+
tmp_4 = '-' + FormatUtils_getInstance().z1d(tmp4_safe_receiver, decimals, fraction);
|
|
312
302
|
}
|
|
313
303
|
return joinToString(listOfNotNull([tmp_3, tmp_4, unitString]), '');
|
|
314
304
|
}
|
|
@@ -331,7 +321,7 @@
|
|
|
331
321
|
}
|
|
332
322
|
function renderTemplate(template, factor, measuringSystem) {
|
|
333
323
|
// Inline function 'kotlin.collections.map' call
|
|
334
|
-
var this_0 = template.
|
|
324
|
+
var this_0 = template.n1f_1;
|
|
335
325
|
// Inline function 'kotlin.collections.mapTo' call
|
|
336
326
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
337
327
|
var _iterator__ex2g4s = this_0.h();
|
|
@@ -341,7 +331,7 @@
|
|
|
341
331
|
destination.f(tmp$ret$0);
|
|
342
332
|
}
|
|
343
333
|
var renderedParts = destination;
|
|
344
|
-
return FormatUtils_getInstance().
|
|
334
|
+
return FormatUtils_getInstance().a1e(joinToString(renderedParts, ''));
|
|
345
335
|
}
|
|
346
336
|
function splitBeforeSuffix(value) {
|
|
347
337
|
// Inline function 'kotlin.charArrayOf' call
|
|
@@ -361,13 +351,13 @@
|
|
|
361
351
|
}
|
|
362
352
|
function wrapWithStrongTag(value) {
|
|
363
353
|
var _destruct__k2r9zo = splitBeforeSuffix(value);
|
|
364
|
-
var before = _destruct__k2r9zo.
|
|
365
|
-
var after = _destruct__k2r9zo.
|
|
354
|
+
var before = _destruct__k2r9zo.jd();
|
|
355
|
+
var after = _destruct__k2r9zo.kd();
|
|
366
356
|
// Inline function 'kotlin.text.orEmpty' call
|
|
367
357
|
return '<strong>' + before + '<\/strong>' + (after == null ? '' : after);
|
|
368
358
|
}
|
|
369
359
|
function scaleAndConvertUnitRecipe(recipe, factor, measuringSystem) {
|
|
370
|
-
var tmp0_safe_receiver = recipe.
|
|
360
|
+
var tmp0_safe_receiver = recipe.a1g_1;
|
|
371
361
|
var tmp;
|
|
372
362
|
if (tmp0_safe_receiver == null) {
|
|
373
363
|
tmp = null;
|
|
@@ -378,7 +368,7 @@
|
|
|
378
368
|
var _iterator__ex2g4s = tmp0_safe_receiver.h();
|
|
379
369
|
while (_iterator__ex2g4s.i()) {
|
|
380
370
|
var item = _iterator__ex2g4s.j();
|
|
381
|
-
var tmp0_safe_receiver_0 = item.
|
|
371
|
+
var tmp0_safe_receiver_0 = item.l1g_1;
|
|
382
372
|
var tmp_0;
|
|
383
373
|
if (tmp0_safe_receiver_0 == null) {
|
|
384
374
|
tmp_0 = null;
|
|
@@ -389,7 +379,7 @@
|
|
|
389
379
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.h();
|
|
390
380
|
while (_iterator__ex2g4s_0.i()) {
|
|
391
381
|
var item_0 = _iterator__ex2g4s_0.j();
|
|
392
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
382
|
+
var tmp0_safe_receiver_1 = item_0.t1g_1;
|
|
393
383
|
var tmp_1;
|
|
394
384
|
if (tmp0_safe_receiver_1 == null) {
|
|
395
385
|
tmp_1 = null;
|
|
@@ -398,19 +388,19 @@
|
|
|
398
388
|
tmp_1 = wrapWithStrongTag(renderTemplate(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
399
389
|
}
|
|
400
390
|
var tmp1_elvis_lhs = tmp_1;
|
|
401
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
402
|
-
var tmp$ret$2 = item_0.
|
|
391
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.u1g_1 : tmp1_elvis_lhs;
|
|
392
|
+
var tmp$ret$2 = item_0.w1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
403
393
|
destination_0.f(tmp$ret$2);
|
|
404
394
|
}
|
|
405
395
|
tmp_0 = destination_0;
|
|
406
396
|
}
|
|
407
|
-
var tmp$ret$5 = new IngredientsList(tmp_0, item.
|
|
397
|
+
var tmp$ret$5 = new IngredientsList(tmp_0, item.m1g_1);
|
|
408
398
|
destination.f(tmp$ret$5);
|
|
409
399
|
}
|
|
410
400
|
tmp = destination;
|
|
411
401
|
}
|
|
412
402
|
var scaledIngredients = tmp;
|
|
413
|
-
var tmp1_safe_receiver = recipe.
|
|
403
|
+
var tmp1_safe_receiver = recipe.b1g_1;
|
|
414
404
|
var tmp_2;
|
|
415
405
|
if (tmp1_safe_receiver == null) {
|
|
416
406
|
tmp_2 = null;
|
|
@@ -421,7 +411,7 @@
|
|
|
421
411
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.h();
|
|
422
412
|
while (_iterator__ex2g4s_1.i()) {
|
|
423
413
|
var item_1 = _iterator__ex2g4s_1.j();
|
|
424
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
414
|
+
var tmp0_safe_receiver_2 = item_1.y1g_1;
|
|
425
415
|
var tmp_3;
|
|
426
416
|
if (tmp0_safe_receiver_2 == null) {
|
|
427
417
|
tmp_3 = null;
|
|
@@ -430,13 +420,13 @@
|
|
|
430
420
|
tmp_3 = renderTemplate(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
431
421
|
}
|
|
432
422
|
var description = tmp_3;
|
|
433
|
-
var tmp$ret$10 = item_1.
|
|
423
|
+
var tmp$ret$10 = item_1.b1h(description == null ? item_1.x1g_1 : description);
|
|
434
424
|
destination_1.f(tmp$ret$10);
|
|
435
425
|
}
|
|
436
426
|
tmp_2 = destination_1;
|
|
437
427
|
}
|
|
438
428
|
var scaledInstructions = tmp_2;
|
|
439
|
-
return recipe.
|
|
429
|
+
return recipe.c1h(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
440
430
|
}
|
|
441
431
|
function RecipeV3$Companion$$childSerializers$_anonymous__7om4qn() {
|
|
442
432
|
return new ArrayListSerializer(StringSerializer_getInstance());
|
|
@@ -508,7 +498,7 @@
|
|
|
508
498
|
// Inline function 'kotlin.arrayOf' call
|
|
509
499
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
510
500
|
// Inline function 'kotlin.js.asDynamic' call
|
|
511
|
-
tmp.
|
|
501
|
+
tmp.d1h_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];
|
|
512
502
|
}
|
|
513
503
|
var Companion_instance;
|
|
514
504
|
function Companion_getInstance() {
|
|
@@ -519,109 +509,109 @@
|
|
|
519
509
|
function $serializer() {
|
|
520
510
|
$serializer_instance = this;
|
|
521
511
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV3', this, 23);
|
|
522
|
-
tmp0_serialDesc.
|
|
523
|
-
tmp0_serialDesc.
|
|
524
|
-
tmp0_serialDesc.
|
|
525
|
-
tmp0_serialDesc.
|
|
526
|
-
tmp0_serialDesc.
|
|
527
|
-
tmp0_serialDesc.
|
|
528
|
-
tmp0_serialDesc.
|
|
529
|
-
tmp0_serialDesc.
|
|
530
|
-
tmp0_serialDesc.
|
|
531
|
-
tmp0_serialDesc.
|
|
532
|
-
tmp0_serialDesc.
|
|
533
|
-
tmp0_serialDesc.
|
|
534
|
-
tmp0_serialDesc.
|
|
535
|
-
tmp0_serialDesc.
|
|
536
|
-
tmp0_serialDesc.
|
|
537
|
-
tmp0_serialDesc.
|
|
538
|
-
tmp0_serialDesc.
|
|
539
|
-
tmp0_serialDesc.
|
|
540
|
-
tmp0_serialDesc.
|
|
541
|
-
tmp0_serialDesc.
|
|
542
|
-
tmp0_serialDesc.
|
|
543
|
-
tmp0_serialDesc.
|
|
544
|
-
tmp0_serialDesc.
|
|
545
|
-
this.
|
|
512
|
+
tmp0_serialDesc.ht('bookCredit', true);
|
|
513
|
+
tmp0_serialDesc.ht('byline', true);
|
|
514
|
+
tmp0_serialDesc.ht('canonicalArticle', true);
|
|
515
|
+
tmp0_serialDesc.ht('celebrationIds', true);
|
|
516
|
+
tmp0_serialDesc.ht('commerceCtas', true);
|
|
517
|
+
tmp0_serialDesc.ht('composerId', true);
|
|
518
|
+
tmp0_serialDesc.ht('contributors', true);
|
|
519
|
+
tmp0_serialDesc.ht('cuisineIds', true);
|
|
520
|
+
tmp0_serialDesc.ht('description', true);
|
|
521
|
+
tmp0_serialDesc.ht('difficultyLevel', true);
|
|
522
|
+
tmp0_serialDesc.ht('featuredImage', true);
|
|
523
|
+
tmp0_serialDesc.ht('id', false);
|
|
524
|
+
tmp0_serialDesc.ht('ingredients', true);
|
|
525
|
+
tmp0_serialDesc.ht('instructions', true);
|
|
526
|
+
tmp0_serialDesc.ht('isAppReady', true);
|
|
527
|
+
tmp0_serialDesc.ht('mealTypeIds', true);
|
|
528
|
+
tmp0_serialDesc.ht('serves', true);
|
|
529
|
+
tmp0_serialDesc.ht('suitableForDietIds', true);
|
|
530
|
+
tmp0_serialDesc.ht('techniquesUsedIds', true);
|
|
531
|
+
tmp0_serialDesc.ht('timings', true);
|
|
532
|
+
tmp0_serialDesc.ht('title', true);
|
|
533
|
+
tmp0_serialDesc.ht('utensilsAndApplianceIds', true);
|
|
534
|
+
tmp0_serialDesc.ht('webPublicationDate', true);
|
|
535
|
+
this.e1h_1 = tmp0_serialDesc;
|
|
546
536
|
}
|
|
547
|
-
protoOf($serializer).
|
|
548
|
-
var tmp0_desc = this.
|
|
549
|
-
var tmp1_output = encoder.
|
|
550
|
-
var tmp2_cached = Companion_getInstance().
|
|
551
|
-
if (tmp1_output.
|
|
552
|
-
tmp1_output.
|
|
537
|
+
protoOf($serializer).f1h = function (encoder, value) {
|
|
538
|
+
var tmp0_desc = this.e1h_1;
|
|
539
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
540
|
+
var tmp2_cached = Companion_getInstance().d1h_1;
|
|
541
|
+
if (tmp1_output.un(tmp0_desc, 0) ? true : !(value.o1f_1 == null)) {
|
|
542
|
+
tmp1_output.qn(tmp0_desc, 0, StringSerializer_getInstance(), value.o1f_1);
|
|
553
543
|
}
|
|
554
|
-
if (tmp1_output.
|
|
555
|
-
tmp1_output.
|
|
544
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.p1f_1 == null)) {
|
|
545
|
+
tmp1_output.qn(tmp0_desc, 1, tmp2_cached[1].t1(), value.p1f_1);
|
|
556
546
|
}
|
|
557
|
-
if (tmp1_output.
|
|
558
|
-
tmp1_output.
|
|
547
|
+
if (tmp1_output.un(tmp0_desc, 2) ? true : !(value.q1f_1 == null)) {
|
|
548
|
+
tmp1_output.qn(tmp0_desc, 2, StringSerializer_getInstance(), value.q1f_1);
|
|
559
549
|
}
|
|
560
|
-
if (tmp1_output.
|
|
561
|
-
tmp1_output.
|
|
550
|
+
if (tmp1_output.un(tmp0_desc, 3) ? true : !(value.r1f_1 == null)) {
|
|
551
|
+
tmp1_output.qn(tmp0_desc, 3, tmp2_cached[3].t1(), value.r1f_1);
|
|
562
552
|
}
|
|
563
|
-
if (tmp1_output.
|
|
564
|
-
tmp1_output.
|
|
553
|
+
if (tmp1_output.un(tmp0_desc, 4) ? true : !(value.s1f_1 == null)) {
|
|
554
|
+
tmp1_output.qn(tmp0_desc, 4, tmp2_cached[4].t1(), value.s1f_1);
|
|
565
555
|
}
|
|
566
|
-
if (tmp1_output.
|
|
567
|
-
tmp1_output.
|
|
556
|
+
if (tmp1_output.un(tmp0_desc, 5) ? true : !(value.t1f_1 == null)) {
|
|
557
|
+
tmp1_output.qn(tmp0_desc, 5, StringSerializer_getInstance(), value.t1f_1);
|
|
568
558
|
}
|
|
569
|
-
if (tmp1_output.
|
|
570
|
-
tmp1_output.
|
|
559
|
+
if (tmp1_output.un(tmp0_desc, 6) ? true : !(value.u1f_1 == null)) {
|
|
560
|
+
tmp1_output.qn(tmp0_desc, 6, tmp2_cached[6].t1(), value.u1f_1);
|
|
571
561
|
}
|
|
572
|
-
if (tmp1_output.
|
|
573
|
-
tmp1_output.
|
|
562
|
+
if (tmp1_output.un(tmp0_desc, 7) ? true : !(value.v1f_1 == null)) {
|
|
563
|
+
tmp1_output.qn(tmp0_desc, 7, tmp2_cached[7].t1(), value.v1f_1);
|
|
574
564
|
}
|
|
575
|
-
if (tmp1_output.
|
|
576
|
-
tmp1_output.
|
|
565
|
+
if (tmp1_output.un(tmp0_desc, 8) ? true : !(value.w1f_1 == null)) {
|
|
566
|
+
tmp1_output.qn(tmp0_desc, 8, StringSerializer_getInstance(), value.w1f_1);
|
|
577
567
|
}
|
|
578
|
-
if (tmp1_output.
|
|
579
|
-
tmp1_output.
|
|
568
|
+
if (tmp1_output.un(tmp0_desc, 9) ? true : !(value.x1f_1 == null)) {
|
|
569
|
+
tmp1_output.qn(tmp0_desc, 9, StringSerializer_getInstance(), value.x1f_1);
|
|
580
570
|
}
|
|
581
|
-
if (tmp1_output.
|
|
582
|
-
tmp1_output.
|
|
571
|
+
if (tmp1_output.un(tmp0_desc, 10) ? true : !(value.y1f_1 == null)) {
|
|
572
|
+
tmp1_output.qn(tmp0_desc, 10, $serializer_getInstance_1(), value.y1f_1);
|
|
583
573
|
}
|
|
584
|
-
tmp1_output.
|
|
585
|
-
if (tmp1_output.
|
|
586
|
-
tmp1_output.
|
|
574
|
+
tmp1_output.mn(tmp0_desc, 11, value.z1f_1);
|
|
575
|
+
if (tmp1_output.un(tmp0_desc, 12) ? true : !(value.a1g_1 == null)) {
|
|
576
|
+
tmp1_output.qn(tmp0_desc, 12, tmp2_cached[12].t1(), value.a1g_1);
|
|
587
577
|
}
|
|
588
|
-
if (tmp1_output.
|
|
589
|
-
tmp1_output.
|
|
578
|
+
if (tmp1_output.un(tmp0_desc, 13) ? true : !(value.b1g_1 == null)) {
|
|
579
|
+
tmp1_output.qn(tmp0_desc, 13, tmp2_cached[13].t1(), value.b1g_1);
|
|
590
580
|
}
|
|
591
|
-
if (tmp1_output.
|
|
592
|
-
tmp1_output.
|
|
581
|
+
if (tmp1_output.un(tmp0_desc, 14) ? true : !(value.c1g_1 == null)) {
|
|
582
|
+
tmp1_output.qn(tmp0_desc, 14, BooleanSerializer_getInstance(), value.c1g_1);
|
|
593
583
|
}
|
|
594
|
-
if (tmp1_output.
|
|
595
|
-
tmp1_output.
|
|
584
|
+
if (tmp1_output.un(tmp0_desc, 15) ? true : !(value.d1g_1 == null)) {
|
|
585
|
+
tmp1_output.qn(tmp0_desc, 15, tmp2_cached[15].t1(), value.d1g_1);
|
|
596
586
|
}
|
|
597
|
-
if (tmp1_output.
|
|
598
|
-
tmp1_output.
|
|
587
|
+
if (tmp1_output.un(tmp0_desc, 16) ? true : !(value.e1g_1 == null)) {
|
|
588
|
+
tmp1_output.qn(tmp0_desc, 16, tmp2_cached[16].t1(), value.e1g_1);
|
|
599
589
|
}
|
|
600
|
-
if (tmp1_output.
|
|
601
|
-
tmp1_output.
|
|
590
|
+
if (tmp1_output.un(tmp0_desc, 17) ? true : !(value.f1g_1 == null)) {
|
|
591
|
+
tmp1_output.qn(tmp0_desc, 17, tmp2_cached[17].t1(), value.f1g_1);
|
|
602
592
|
}
|
|
603
|
-
if (tmp1_output.
|
|
604
|
-
tmp1_output.
|
|
593
|
+
if (tmp1_output.un(tmp0_desc, 18) ? true : !(value.g1g_1 == null)) {
|
|
594
|
+
tmp1_output.qn(tmp0_desc, 18, tmp2_cached[18].t1(), value.g1g_1);
|
|
605
595
|
}
|
|
606
|
-
if (tmp1_output.
|
|
607
|
-
tmp1_output.
|
|
596
|
+
if (tmp1_output.un(tmp0_desc, 19) ? true : !(value.h1g_1 == null)) {
|
|
597
|
+
tmp1_output.qn(tmp0_desc, 19, tmp2_cached[19].t1(), value.h1g_1);
|
|
608
598
|
}
|
|
609
|
-
if (tmp1_output.
|
|
610
|
-
tmp1_output.
|
|
599
|
+
if (tmp1_output.un(tmp0_desc, 20) ? true : !(value.i1g_1 == null)) {
|
|
600
|
+
tmp1_output.qn(tmp0_desc, 20, StringSerializer_getInstance(), value.i1g_1);
|
|
611
601
|
}
|
|
612
|
-
if (tmp1_output.
|
|
613
|
-
tmp1_output.
|
|
602
|
+
if (tmp1_output.un(tmp0_desc, 21) ? true : !(value.j1g_1 == null)) {
|
|
603
|
+
tmp1_output.qn(tmp0_desc, 21, tmp2_cached[21].t1(), value.j1g_1);
|
|
614
604
|
}
|
|
615
|
-
if (tmp1_output.
|
|
616
|
-
tmp1_output.
|
|
605
|
+
if (tmp1_output.un(tmp0_desc, 22) ? true : !(value.k1g_1 == null)) {
|
|
606
|
+
tmp1_output.qn(tmp0_desc, 22, StringSerializer_getInstance(), value.k1g_1);
|
|
617
607
|
}
|
|
618
|
-
tmp1_output.
|
|
608
|
+
tmp1_output.zl(tmp0_desc);
|
|
619
609
|
};
|
|
620
|
-
protoOf($serializer).
|
|
621
|
-
return this.
|
|
610
|
+
protoOf($serializer).cj = function (encoder, value) {
|
|
611
|
+
return this.f1h(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
622
612
|
};
|
|
623
|
-
protoOf($serializer).
|
|
624
|
-
var tmp0_desc = this.
|
|
613
|
+
protoOf($serializer).dj = function (decoder) {
|
|
614
|
+
var tmp0_desc = this.e1h_1;
|
|
625
615
|
var tmp1_flag = true;
|
|
626
616
|
var tmp2_index = 0;
|
|
627
617
|
var tmp3_bitMask0 = 0;
|
|
@@ -648,166 +638,166 @@
|
|
|
648
638
|
var tmp24_local20 = null;
|
|
649
639
|
var tmp25_local21 = null;
|
|
650
640
|
var tmp26_local22 = null;
|
|
651
|
-
var tmp27_input = decoder.
|
|
652
|
-
var tmp28_cached = Companion_getInstance().
|
|
653
|
-
if (tmp27_input.
|
|
654
|
-
tmp4_local0 = tmp27_input.
|
|
641
|
+
var tmp27_input = decoder.yl(tmp0_desc);
|
|
642
|
+
var tmp28_cached = Companion_getInstance().d1h_1;
|
|
643
|
+
if (tmp27_input.om()) {
|
|
644
|
+
tmp4_local0 = tmp27_input.mm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
655
645
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
656
|
-
tmp5_local1 = tmp27_input.
|
|
646
|
+
tmp5_local1 = tmp27_input.mm(tmp0_desc, 1, tmp28_cached[1].t1(), tmp5_local1);
|
|
657
647
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
658
|
-
tmp6_local2 = tmp27_input.
|
|
648
|
+
tmp6_local2 = tmp27_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
659
649
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
660
|
-
tmp7_local3 = tmp27_input.
|
|
650
|
+
tmp7_local3 = tmp27_input.mm(tmp0_desc, 3, tmp28_cached[3].t1(), tmp7_local3);
|
|
661
651
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
662
|
-
tmp8_local4 = tmp27_input.
|
|
652
|
+
tmp8_local4 = tmp27_input.mm(tmp0_desc, 4, tmp28_cached[4].t1(), tmp8_local4);
|
|
663
653
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
664
|
-
tmp9_local5 = tmp27_input.
|
|
654
|
+
tmp9_local5 = tmp27_input.mm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
665
655
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
666
|
-
tmp10_local6 = tmp27_input.
|
|
656
|
+
tmp10_local6 = tmp27_input.mm(tmp0_desc, 6, tmp28_cached[6].t1(), tmp10_local6);
|
|
667
657
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
668
|
-
tmp11_local7 = tmp27_input.
|
|
658
|
+
tmp11_local7 = tmp27_input.mm(tmp0_desc, 7, tmp28_cached[7].t1(), tmp11_local7);
|
|
669
659
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
670
|
-
tmp12_local8 = tmp27_input.
|
|
660
|
+
tmp12_local8 = tmp27_input.mm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
671
661
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
672
|
-
tmp13_local9 = tmp27_input.
|
|
662
|
+
tmp13_local9 = tmp27_input.mm(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
673
663
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
674
|
-
tmp14_local10 = tmp27_input.
|
|
664
|
+
tmp14_local10 = tmp27_input.mm(tmp0_desc, 10, $serializer_getInstance_1(), tmp14_local10);
|
|
675
665
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
676
|
-
tmp15_local11 = tmp27_input.
|
|
666
|
+
tmp15_local11 = tmp27_input.im(tmp0_desc, 11);
|
|
677
667
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
678
|
-
tmp16_local12 = tmp27_input.
|
|
668
|
+
tmp16_local12 = tmp27_input.mm(tmp0_desc, 12, tmp28_cached[12].t1(), tmp16_local12);
|
|
679
669
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
680
|
-
tmp17_local13 = tmp27_input.
|
|
670
|
+
tmp17_local13 = tmp27_input.mm(tmp0_desc, 13, tmp28_cached[13].t1(), tmp17_local13);
|
|
681
671
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
682
|
-
tmp18_local14 = tmp27_input.
|
|
672
|
+
tmp18_local14 = tmp27_input.mm(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
683
673
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
684
|
-
tmp19_local15 = tmp27_input.
|
|
674
|
+
tmp19_local15 = tmp27_input.mm(tmp0_desc, 15, tmp28_cached[15].t1(), tmp19_local15);
|
|
685
675
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
686
|
-
tmp20_local16 = tmp27_input.
|
|
676
|
+
tmp20_local16 = tmp27_input.mm(tmp0_desc, 16, tmp28_cached[16].t1(), tmp20_local16);
|
|
687
677
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
688
|
-
tmp21_local17 = tmp27_input.
|
|
678
|
+
tmp21_local17 = tmp27_input.mm(tmp0_desc, 17, tmp28_cached[17].t1(), tmp21_local17);
|
|
689
679
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
690
|
-
tmp22_local18 = tmp27_input.
|
|
680
|
+
tmp22_local18 = tmp27_input.mm(tmp0_desc, 18, tmp28_cached[18].t1(), tmp22_local18);
|
|
691
681
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
692
|
-
tmp23_local19 = tmp27_input.
|
|
682
|
+
tmp23_local19 = tmp27_input.mm(tmp0_desc, 19, tmp28_cached[19].t1(), tmp23_local19);
|
|
693
683
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
694
|
-
tmp24_local20 = tmp27_input.
|
|
684
|
+
tmp24_local20 = tmp27_input.mm(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
695
685
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
696
|
-
tmp25_local21 = tmp27_input.
|
|
686
|
+
tmp25_local21 = tmp27_input.mm(tmp0_desc, 21, tmp28_cached[21].t1(), tmp25_local21);
|
|
697
687
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
698
|
-
tmp26_local22 = tmp27_input.
|
|
688
|
+
tmp26_local22 = tmp27_input.mm(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
699
689
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
700
690
|
} else
|
|
701
691
|
while (tmp1_flag) {
|
|
702
|
-
tmp2_index = tmp27_input.
|
|
692
|
+
tmp2_index = tmp27_input.pm(tmp0_desc);
|
|
703
693
|
switch (tmp2_index) {
|
|
704
694
|
case -1:
|
|
705
695
|
tmp1_flag = false;
|
|
706
696
|
break;
|
|
707
697
|
case 0:
|
|
708
|
-
tmp4_local0 = tmp27_input.
|
|
698
|
+
tmp4_local0 = tmp27_input.mm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
709
699
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
710
700
|
break;
|
|
711
701
|
case 1:
|
|
712
|
-
tmp5_local1 = tmp27_input.
|
|
702
|
+
tmp5_local1 = tmp27_input.mm(tmp0_desc, 1, tmp28_cached[1].t1(), tmp5_local1);
|
|
713
703
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
714
704
|
break;
|
|
715
705
|
case 2:
|
|
716
|
-
tmp6_local2 = tmp27_input.
|
|
706
|
+
tmp6_local2 = tmp27_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
717
707
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
718
708
|
break;
|
|
719
709
|
case 3:
|
|
720
|
-
tmp7_local3 = tmp27_input.
|
|
710
|
+
tmp7_local3 = tmp27_input.mm(tmp0_desc, 3, tmp28_cached[3].t1(), tmp7_local3);
|
|
721
711
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
722
712
|
break;
|
|
723
713
|
case 4:
|
|
724
|
-
tmp8_local4 = tmp27_input.
|
|
714
|
+
tmp8_local4 = tmp27_input.mm(tmp0_desc, 4, tmp28_cached[4].t1(), tmp8_local4);
|
|
725
715
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
726
716
|
break;
|
|
727
717
|
case 5:
|
|
728
|
-
tmp9_local5 = tmp27_input.
|
|
718
|
+
tmp9_local5 = tmp27_input.mm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
729
719
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
730
720
|
break;
|
|
731
721
|
case 6:
|
|
732
|
-
tmp10_local6 = tmp27_input.
|
|
722
|
+
tmp10_local6 = tmp27_input.mm(tmp0_desc, 6, tmp28_cached[6].t1(), tmp10_local6);
|
|
733
723
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
734
724
|
break;
|
|
735
725
|
case 7:
|
|
736
|
-
tmp11_local7 = tmp27_input.
|
|
726
|
+
tmp11_local7 = tmp27_input.mm(tmp0_desc, 7, tmp28_cached[7].t1(), tmp11_local7);
|
|
737
727
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
738
728
|
break;
|
|
739
729
|
case 8:
|
|
740
|
-
tmp12_local8 = tmp27_input.
|
|
730
|
+
tmp12_local8 = tmp27_input.mm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
741
731
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
742
732
|
break;
|
|
743
733
|
case 9:
|
|
744
|
-
tmp13_local9 = tmp27_input.
|
|
734
|
+
tmp13_local9 = tmp27_input.mm(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
745
735
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
746
736
|
break;
|
|
747
737
|
case 10:
|
|
748
|
-
tmp14_local10 = tmp27_input.
|
|
738
|
+
tmp14_local10 = tmp27_input.mm(tmp0_desc, 10, $serializer_getInstance_1(), tmp14_local10);
|
|
749
739
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
750
740
|
break;
|
|
751
741
|
case 11:
|
|
752
|
-
tmp15_local11 = tmp27_input.
|
|
742
|
+
tmp15_local11 = tmp27_input.im(tmp0_desc, 11);
|
|
753
743
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
754
744
|
break;
|
|
755
745
|
case 12:
|
|
756
|
-
tmp16_local12 = tmp27_input.
|
|
746
|
+
tmp16_local12 = tmp27_input.mm(tmp0_desc, 12, tmp28_cached[12].t1(), tmp16_local12);
|
|
757
747
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
758
748
|
break;
|
|
759
749
|
case 13:
|
|
760
|
-
tmp17_local13 = tmp27_input.
|
|
750
|
+
tmp17_local13 = tmp27_input.mm(tmp0_desc, 13, tmp28_cached[13].t1(), tmp17_local13);
|
|
761
751
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
762
752
|
break;
|
|
763
753
|
case 14:
|
|
764
|
-
tmp18_local14 = tmp27_input.
|
|
754
|
+
tmp18_local14 = tmp27_input.mm(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
765
755
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
766
756
|
break;
|
|
767
757
|
case 15:
|
|
768
|
-
tmp19_local15 = tmp27_input.
|
|
758
|
+
tmp19_local15 = tmp27_input.mm(tmp0_desc, 15, tmp28_cached[15].t1(), tmp19_local15);
|
|
769
759
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
770
760
|
break;
|
|
771
761
|
case 16:
|
|
772
|
-
tmp20_local16 = tmp27_input.
|
|
762
|
+
tmp20_local16 = tmp27_input.mm(tmp0_desc, 16, tmp28_cached[16].t1(), tmp20_local16);
|
|
773
763
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
774
764
|
break;
|
|
775
765
|
case 17:
|
|
776
|
-
tmp21_local17 = tmp27_input.
|
|
766
|
+
tmp21_local17 = tmp27_input.mm(tmp0_desc, 17, tmp28_cached[17].t1(), tmp21_local17);
|
|
777
767
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
778
768
|
break;
|
|
779
769
|
case 18:
|
|
780
|
-
tmp22_local18 = tmp27_input.
|
|
770
|
+
tmp22_local18 = tmp27_input.mm(tmp0_desc, 18, tmp28_cached[18].t1(), tmp22_local18);
|
|
781
771
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
782
772
|
break;
|
|
783
773
|
case 19:
|
|
784
|
-
tmp23_local19 = tmp27_input.
|
|
774
|
+
tmp23_local19 = tmp27_input.mm(tmp0_desc, 19, tmp28_cached[19].t1(), tmp23_local19);
|
|
785
775
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
786
776
|
break;
|
|
787
777
|
case 20:
|
|
788
|
-
tmp24_local20 = tmp27_input.
|
|
778
|
+
tmp24_local20 = tmp27_input.mm(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
789
779
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
790
780
|
break;
|
|
791
781
|
case 21:
|
|
792
|
-
tmp25_local21 = tmp27_input.
|
|
782
|
+
tmp25_local21 = tmp27_input.mm(tmp0_desc, 21, tmp28_cached[21].t1(), tmp25_local21);
|
|
793
783
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
794
784
|
break;
|
|
795
785
|
case 22:
|
|
796
|
-
tmp26_local22 = tmp27_input.
|
|
786
|
+
tmp26_local22 = tmp27_input.mm(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
797
787
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
798
788
|
break;
|
|
799
789
|
default:
|
|
800
790
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
801
791
|
}
|
|
802
792
|
}
|
|
803
|
-
tmp27_input.
|
|
793
|
+
tmp27_input.zl(tmp0_desc);
|
|
804
794
|
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);
|
|
805
795
|
};
|
|
806
|
-
protoOf($serializer).
|
|
807
|
-
return this.
|
|
796
|
+
protoOf($serializer).bj = function () {
|
|
797
|
+
return this.e1h_1;
|
|
808
798
|
};
|
|
809
|
-
protoOf($serializer).
|
|
810
|
-
var tmp0_cached = Companion_getInstance().
|
|
799
|
+
protoOf($serializer).jt = function () {
|
|
800
|
+
var tmp0_cached = Companion_getInstance().d1h_1;
|
|
811
801
|
// Inline function 'kotlin.arrayOf' call
|
|
812
802
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
813
803
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -821,97 +811,97 @@
|
|
|
821
811
|
}
|
|
822
812
|
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) {
|
|
823
813
|
if (!(2048 === (2048 & seen0))) {
|
|
824
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance().
|
|
814
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance().e1h_1);
|
|
825
815
|
}
|
|
826
816
|
if (0 === (seen0 & 1))
|
|
827
|
-
$this.
|
|
817
|
+
$this.o1f_1 = null;
|
|
828
818
|
else
|
|
829
|
-
$this.
|
|
819
|
+
$this.o1f_1 = bookCredit;
|
|
830
820
|
if (0 === (seen0 & 2))
|
|
831
|
-
$this.
|
|
821
|
+
$this.p1f_1 = null;
|
|
832
822
|
else
|
|
833
|
-
$this.
|
|
823
|
+
$this.p1f_1 = byline;
|
|
834
824
|
if (0 === (seen0 & 4))
|
|
835
|
-
$this.
|
|
825
|
+
$this.q1f_1 = null;
|
|
836
826
|
else
|
|
837
|
-
$this.
|
|
827
|
+
$this.q1f_1 = canonicalArticle;
|
|
838
828
|
if (0 === (seen0 & 8))
|
|
839
|
-
$this.
|
|
829
|
+
$this.r1f_1 = null;
|
|
840
830
|
else
|
|
841
|
-
$this.
|
|
831
|
+
$this.r1f_1 = celebrationIds;
|
|
842
832
|
if (0 === (seen0 & 16))
|
|
843
|
-
$this.
|
|
833
|
+
$this.s1f_1 = null;
|
|
844
834
|
else
|
|
845
|
-
$this.
|
|
835
|
+
$this.s1f_1 = commerceCtas;
|
|
846
836
|
if (0 === (seen0 & 32))
|
|
847
|
-
$this.
|
|
837
|
+
$this.t1f_1 = null;
|
|
848
838
|
else
|
|
849
|
-
$this.
|
|
839
|
+
$this.t1f_1 = composerId;
|
|
850
840
|
if (0 === (seen0 & 64))
|
|
851
|
-
$this.
|
|
841
|
+
$this.u1f_1 = null;
|
|
852
842
|
else
|
|
853
|
-
$this.
|
|
843
|
+
$this.u1f_1 = contributors;
|
|
854
844
|
if (0 === (seen0 & 128))
|
|
855
|
-
$this.
|
|
845
|
+
$this.v1f_1 = null;
|
|
856
846
|
else
|
|
857
|
-
$this.
|
|
847
|
+
$this.v1f_1 = cuisineIds;
|
|
858
848
|
if (0 === (seen0 & 256))
|
|
859
|
-
$this.
|
|
849
|
+
$this.w1f_1 = null;
|
|
860
850
|
else
|
|
861
|
-
$this.
|
|
851
|
+
$this.w1f_1 = description;
|
|
862
852
|
if (0 === (seen0 & 512))
|
|
863
|
-
$this.
|
|
853
|
+
$this.x1f_1 = null;
|
|
864
854
|
else
|
|
865
|
-
$this.
|
|
855
|
+
$this.x1f_1 = difficultyLevel;
|
|
866
856
|
if (0 === (seen0 & 1024))
|
|
867
|
-
$this.
|
|
857
|
+
$this.y1f_1 = null;
|
|
868
858
|
else
|
|
869
|
-
$this.
|
|
870
|
-
$this.
|
|
859
|
+
$this.y1f_1 = featuredImage;
|
|
860
|
+
$this.z1f_1 = id;
|
|
871
861
|
if (0 === (seen0 & 4096))
|
|
872
|
-
$this.
|
|
862
|
+
$this.a1g_1 = null;
|
|
873
863
|
else
|
|
874
|
-
$this.
|
|
864
|
+
$this.a1g_1 = ingredients;
|
|
875
865
|
if (0 === (seen0 & 8192))
|
|
876
|
-
$this.
|
|
866
|
+
$this.b1g_1 = null;
|
|
877
867
|
else
|
|
878
|
-
$this.
|
|
868
|
+
$this.b1g_1 = instructions;
|
|
879
869
|
if (0 === (seen0 & 16384))
|
|
880
|
-
$this.
|
|
870
|
+
$this.c1g_1 = null;
|
|
881
871
|
else
|
|
882
|
-
$this.
|
|
872
|
+
$this.c1g_1 = isAppReady;
|
|
883
873
|
if (0 === (seen0 & 32768))
|
|
884
|
-
$this.
|
|
874
|
+
$this.d1g_1 = null;
|
|
885
875
|
else
|
|
886
|
-
$this.
|
|
876
|
+
$this.d1g_1 = mealTypeIds;
|
|
887
877
|
if (0 === (seen0 & 65536))
|
|
888
|
-
$this.
|
|
878
|
+
$this.e1g_1 = null;
|
|
889
879
|
else
|
|
890
|
-
$this.
|
|
880
|
+
$this.e1g_1 = serves;
|
|
891
881
|
if (0 === (seen0 & 131072))
|
|
892
|
-
$this.
|
|
882
|
+
$this.f1g_1 = null;
|
|
893
883
|
else
|
|
894
|
-
$this.
|
|
884
|
+
$this.f1g_1 = suitableForDietIds;
|
|
895
885
|
if (0 === (seen0 & 262144))
|
|
896
|
-
$this.
|
|
886
|
+
$this.g1g_1 = null;
|
|
897
887
|
else
|
|
898
|
-
$this.
|
|
888
|
+
$this.g1g_1 = techniquesUsedIds;
|
|
899
889
|
if (0 === (seen0 & 524288))
|
|
900
|
-
$this.
|
|
890
|
+
$this.h1g_1 = null;
|
|
901
891
|
else
|
|
902
|
-
$this.
|
|
892
|
+
$this.h1g_1 = timings;
|
|
903
893
|
if (0 === (seen0 & 1048576))
|
|
904
|
-
$this.
|
|
894
|
+
$this.i1g_1 = null;
|
|
905
895
|
else
|
|
906
|
-
$this.
|
|
896
|
+
$this.i1g_1 = title;
|
|
907
897
|
if (0 === (seen0 & 2097152))
|
|
908
|
-
$this.
|
|
898
|
+
$this.j1g_1 = null;
|
|
909
899
|
else
|
|
910
|
-
$this.
|
|
900
|
+
$this.j1g_1 = utensilsAndApplianceIds;
|
|
911
901
|
if (0 === (seen0 & 4194304))
|
|
912
|
-
$this.
|
|
902
|
+
$this.k1g_1 = null;
|
|
913
903
|
else
|
|
914
|
-
$this.
|
|
904
|
+
$this.k1g_1 = webPublicationDate;
|
|
915
905
|
return $this;
|
|
916
906
|
}
|
|
917
907
|
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) {
|
|
@@ -941,86 +931,86 @@
|
|
|
941
931
|
title = title === VOID ? null : title;
|
|
942
932
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
943
933
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
944
|
-
this.
|
|
945
|
-
this.
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
948
|
-
this.
|
|
949
|
-
this.
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
952
|
-
this.
|
|
953
|
-
this.
|
|
954
|
-
this.
|
|
955
|
-
this.
|
|
956
|
-
this.
|
|
957
|
-
this.
|
|
958
|
-
this.
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
967
|
-
}
|
|
968
|
-
protoOf(RecipeV3).
|
|
934
|
+
this.o1f_1 = bookCredit;
|
|
935
|
+
this.p1f_1 = byline;
|
|
936
|
+
this.q1f_1 = canonicalArticle;
|
|
937
|
+
this.r1f_1 = celebrationIds;
|
|
938
|
+
this.s1f_1 = commerceCtas;
|
|
939
|
+
this.t1f_1 = composerId;
|
|
940
|
+
this.u1f_1 = contributors;
|
|
941
|
+
this.v1f_1 = cuisineIds;
|
|
942
|
+
this.w1f_1 = description;
|
|
943
|
+
this.x1f_1 = difficultyLevel;
|
|
944
|
+
this.y1f_1 = featuredImage;
|
|
945
|
+
this.z1f_1 = id;
|
|
946
|
+
this.a1g_1 = ingredients;
|
|
947
|
+
this.b1g_1 = instructions;
|
|
948
|
+
this.c1g_1 = isAppReady;
|
|
949
|
+
this.d1g_1 = mealTypeIds;
|
|
950
|
+
this.e1g_1 = serves;
|
|
951
|
+
this.f1g_1 = suitableForDietIds;
|
|
952
|
+
this.g1g_1 = techniquesUsedIds;
|
|
953
|
+
this.h1g_1 = timings;
|
|
954
|
+
this.i1g_1 = title;
|
|
955
|
+
this.j1g_1 = utensilsAndApplianceIds;
|
|
956
|
+
this.k1g_1 = webPublicationDate;
|
|
957
|
+
}
|
|
958
|
+
protoOf(RecipeV3).g1h = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
969
959
|
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);
|
|
970
960
|
};
|
|
971
|
-
protoOf(RecipeV3).
|
|
972
|
-
bookCredit = bookCredit === VOID ? this.
|
|
973
|
-
byline = byline === VOID ? this.
|
|
974
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
975
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
976
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
977
|
-
composerId = composerId === VOID ? this.
|
|
978
|
-
contributors = contributors === VOID ? this.
|
|
979
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
980
|
-
description = description === VOID ? this.
|
|
981
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
982
|
-
featuredImage = featuredImage === VOID ? this.
|
|
983
|
-
id = id === VOID ? this.
|
|
984
|
-
ingredients = ingredients === VOID ? this.
|
|
985
|
-
instructions = instructions === VOID ? this.
|
|
986
|
-
isAppReady = isAppReady === VOID ? this.
|
|
987
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
988
|
-
serves = serves === VOID ? this.
|
|
989
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
990
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
991
|
-
timings = timings === VOID ? this.
|
|
992
|
-
title = title === VOID ? this.
|
|
993
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
994
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
995
|
-
return $super === VOID ? this.
|
|
961
|
+
protoOf(RecipeV3).c1h = 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) {
|
|
962
|
+
bookCredit = bookCredit === VOID ? this.o1f_1 : bookCredit;
|
|
963
|
+
byline = byline === VOID ? this.p1f_1 : byline;
|
|
964
|
+
canonicalArticle = canonicalArticle === VOID ? this.q1f_1 : canonicalArticle;
|
|
965
|
+
celebrationIds = celebrationIds === VOID ? this.r1f_1 : celebrationIds;
|
|
966
|
+
commerceCtas = commerceCtas === VOID ? this.s1f_1 : commerceCtas;
|
|
967
|
+
composerId = composerId === VOID ? this.t1f_1 : composerId;
|
|
968
|
+
contributors = contributors === VOID ? this.u1f_1 : contributors;
|
|
969
|
+
cuisineIds = cuisineIds === VOID ? this.v1f_1 : cuisineIds;
|
|
970
|
+
description = description === VOID ? this.w1f_1 : description;
|
|
971
|
+
difficultyLevel = difficultyLevel === VOID ? this.x1f_1 : difficultyLevel;
|
|
972
|
+
featuredImage = featuredImage === VOID ? this.y1f_1 : featuredImage;
|
|
973
|
+
id = id === VOID ? this.z1f_1 : id;
|
|
974
|
+
ingredients = ingredients === VOID ? this.a1g_1 : ingredients;
|
|
975
|
+
instructions = instructions === VOID ? this.b1g_1 : instructions;
|
|
976
|
+
isAppReady = isAppReady === VOID ? this.c1g_1 : isAppReady;
|
|
977
|
+
mealTypeIds = mealTypeIds === VOID ? this.d1g_1 : mealTypeIds;
|
|
978
|
+
serves = serves === VOID ? this.e1g_1 : serves;
|
|
979
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.f1g_1 : suitableForDietIds;
|
|
980
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.g1g_1 : techniquesUsedIds;
|
|
981
|
+
timings = timings === VOID ? this.h1g_1 : timings;
|
|
982
|
+
title = title === VOID ? this.i1g_1 : title;
|
|
983
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.j1g_1 : utensilsAndApplianceIds;
|
|
984
|
+
webPublicationDate = webPublicationDate === VOID ? this.k1g_1 : webPublicationDate;
|
|
985
|
+
return $super === VOID ? this.g1h(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.g1h.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);
|
|
996
986
|
};
|
|
997
987
|
protoOf(RecipeV3).toString = function () {
|
|
998
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
988
|
+
return 'RecipeV3(bookCredit=' + this.o1f_1 + ', byline=' + toString(this.p1f_1) + ', canonicalArticle=' + this.q1f_1 + ', celebrationIds=' + toString(this.r1f_1) + ', commerceCtas=' + toString(this.s1f_1) + ', composerId=' + this.t1f_1 + ', contributors=' + toString(this.u1f_1) + ', cuisineIds=' + toString(this.v1f_1) + ', description=' + this.w1f_1 + ', difficultyLevel=' + this.x1f_1 + ', featuredImage=' + toString(this.y1f_1) + ', id=' + this.z1f_1 + ', ingredients=' + toString(this.a1g_1) + ', instructions=' + toString(this.b1g_1) + ', isAppReady=' + this.c1g_1 + ', mealTypeIds=' + toString(this.d1g_1) + ', serves=' + toString(this.e1g_1) + ', suitableForDietIds=' + toString(this.f1g_1) + ', techniquesUsedIds=' + toString(this.g1g_1) + ', timings=' + toString(this.h1g_1) + ', title=' + this.i1g_1 + ', utensilsAndApplianceIds=' + toString(this.j1g_1) + ', webPublicationDate=' + this.k1g_1 + ')';
|
|
999
989
|
};
|
|
1000
990
|
protoOf(RecipeV3).hashCode = function () {
|
|
1001
|
-
var result = this.
|
|
1002
|
-
result = imul(result, 31) + (this.z1e_1 == null ? 0 : hashCode(this.z1e_1)) | 0;
|
|
1003
|
-
result = imul(result, 31) + (this.a1f_1 == null ? 0 : getStringHashCode(this.a1f_1)) | 0;
|
|
1004
|
-
result = imul(result, 31) + (this.b1f_1 == null ? 0 : hashCode(this.b1f_1)) | 0;
|
|
1005
|
-
result = imul(result, 31) + (this.c1f_1 == null ? 0 : hashCode(this.c1f_1)) | 0;
|
|
1006
|
-
result = imul(result, 31) + (this.d1f_1 == null ? 0 : getStringHashCode(this.d1f_1)) | 0;
|
|
1007
|
-
result = imul(result, 31) + (this.e1f_1 == null ? 0 : hashCode(this.e1f_1)) | 0;
|
|
1008
|
-
result = imul(result, 31) + (this.f1f_1 == null ? 0 : hashCode(this.f1f_1)) | 0;
|
|
1009
|
-
result = imul(result, 31) + (this.g1f_1 == null ? 0 : getStringHashCode(this.g1f_1)) | 0;
|
|
1010
|
-
result = imul(result, 31) + (this.h1f_1 == null ? 0 : getStringHashCode(this.h1f_1)) | 0;
|
|
1011
|
-
result = imul(result, 31) + (this.i1f_1 == null ? 0 : this.i1f_1.hashCode()) | 0;
|
|
1012
|
-
result = imul(result, 31) + getStringHashCode(this.j1f_1) | 0;
|
|
1013
|
-
result = imul(result, 31) + (this.k1f_1 == null ? 0 : hashCode(this.k1f_1)) | 0;
|
|
1014
|
-
result = imul(result, 31) + (this.l1f_1 == null ? 0 : hashCode(this.l1f_1)) | 0;
|
|
1015
|
-
result = imul(result, 31) + (this.m1f_1 == null ? 0 : getBooleanHashCode(this.m1f_1)) | 0;
|
|
1016
|
-
result = imul(result, 31) + (this.n1f_1 == null ? 0 : hashCode(this.n1f_1)) | 0;
|
|
1017
|
-
result = imul(result, 31) + (this.o1f_1 == null ? 0 : hashCode(this.o1f_1)) | 0;
|
|
991
|
+
var result = this.o1f_1 == null ? 0 : getStringHashCode(this.o1f_1);
|
|
1018
992
|
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1019
|
-
result = imul(result, 31) + (this.q1f_1 == null ? 0 :
|
|
993
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : getStringHashCode(this.q1f_1)) | 0;
|
|
1020
994
|
result = imul(result, 31) + (this.r1f_1 == null ? 0 : hashCode(this.r1f_1)) | 0;
|
|
1021
|
-
result = imul(result, 31) + (this.s1f_1 == null ? 0 :
|
|
1022
|
-
result = imul(result, 31) + (this.t1f_1 == null ? 0 :
|
|
1023
|
-
result = imul(result, 31) + (this.u1f_1 == null ? 0 :
|
|
995
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : hashCode(this.s1f_1)) | 0;
|
|
996
|
+
result = imul(result, 31) + (this.t1f_1 == null ? 0 : getStringHashCode(this.t1f_1)) | 0;
|
|
997
|
+
result = imul(result, 31) + (this.u1f_1 == null ? 0 : hashCode(this.u1f_1)) | 0;
|
|
998
|
+
result = imul(result, 31) + (this.v1f_1 == null ? 0 : hashCode(this.v1f_1)) | 0;
|
|
999
|
+
result = imul(result, 31) + (this.w1f_1 == null ? 0 : getStringHashCode(this.w1f_1)) | 0;
|
|
1000
|
+
result = imul(result, 31) + (this.x1f_1 == null ? 0 : getStringHashCode(this.x1f_1)) | 0;
|
|
1001
|
+
result = imul(result, 31) + (this.y1f_1 == null ? 0 : this.y1f_1.hashCode()) | 0;
|
|
1002
|
+
result = imul(result, 31) + getStringHashCode(this.z1f_1) | 0;
|
|
1003
|
+
result = imul(result, 31) + (this.a1g_1 == null ? 0 : hashCode(this.a1g_1)) | 0;
|
|
1004
|
+
result = imul(result, 31) + (this.b1g_1 == null ? 0 : hashCode(this.b1g_1)) | 0;
|
|
1005
|
+
result = imul(result, 31) + (this.c1g_1 == null ? 0 : getBooleanHashCode(this.c1g_1)) | 0;
|
|
1006
|
+
result = imul(result, 31) + (this.d1g_1 == null ? 0 : hashCode(this.d1g_1)) | 0;
|
|
1007
|
+
result = imul(result, 31) + (this.e1g_1 == null ? 0 : hashCode(this.e1g_1)) | 0;
|
|
1008
|
+
result = imul(result, 31) + (this.f1g_1 == null ? 0 : hashCode(this.f1g_1)) | 0;
|
|
1009
|
+
result = imul(result, 31) + (this.g1g_1 == null ? 0 : hashCode(this.g1g_1)) | 0;
|
|
1010
|
+
result = imul(result, 31) + (this.h1g_1 == null ? 0 : hashCode(this.h1g_1)) | 0;
|
|
1011
|
+
result = imul(result, 31) + (this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1)) | 0;
|
|
1012
|
+
result = imul(result, 31) + (this.j1g_1 == null ? 0 : hashCode(this.j1g_1)) | 0;
|
|
1013
|
+
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getStringHashCode(this.k1g_1)) | 0;
|
|
1024
1014
|
return result;
|
|
1025
1015
|
};
|
|
1026
1016
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -1028,119 +1018,119 @@
|
|
|
1028
1018
|
return true;
|
|
1029
1019
|
if (!(other instanceof RecipeV3))
|
|
1030
1020
|
return false;
|
|
1031
|
-
if (!(this.
|
|
1021
|
+
if (!(this.o1f_1 == other.o1f_1))
|
|
1032
1022
|
return false;
|
|
1033
|
-
if (!equals(this.
|
|
1023
|
+
if (!equals(this.p1f_1, other.p1f_1))
|
|
1034
1024
|
return false;
|
|
1035
|
-
if (!(this.
|
|
1025
|
+
if (!(this.q1f_1 == other.q1f_1))
|
|
1036
1026
|
return false;
|
|
1037
|
-
if (!equals(this.
|
|
1027
|
+
if (!equals(this.r1f_1, other.r1f_1))
|
|
1038
1028
|
return false;
|
|
1039
|
-
if (!equals(this.
|
|
1029
|
+
if (!equals(this.s1f_1, other.s1f_1))
|
|
1040
1030
|
return false;
|
|
1041
|
-
if (!(this.
|
|
1031
|
+
if (!(this.t1f_1 == other.t1f_1))
|
|
1042
1032
|
return false;
|
|
1043
|
-
if (!equals(this.
|
|
1033
|
+
if (!equals(this.u1f_1, other.u1f_1))
|
|
1044
1034
|
return false;
|
|
1045
|
-
if (!equals(this.
|
|
1035
|
+
if (!equals(this.v1f_1, other.v1f_1))
|
|
1046
1036
|
return false;
|
|
1047
|
-
if (!(this.
|
|
1037
|
+
if (!(this.w1f_1 == other.w1f_1))
|
|
1048
1038
|
return false;
|
|
1049
|
-
if (!(this.
|
|
1039
|
+
if (!(this.x1f_1 == other.x1f_1))
|
|
1050
1040
|
return false;
|
|
1051
|
-
if (!equals(this.
|
|
1041
|
+
if (!equals(this.y1f_1, other.y1f_1))
|
|
1052
1042
|
return false;
|
|
1053
|
-
if (!(this.
|
|
1043
|
+
if (!(this.z1f_1 === other.z1f_1))
|
|
1054
1044
|
return false;
|
|
1055
|
-
if (!equals(this.
|
|
1045
|
+
if (!equals(this.a1g_1, other.a1g_1))
|
|
1056
1046
|
return false;
|
|
1057
|
-
if (!equals(this.
|
|
1047
|
+
if (!equals(this.b1g_1, other.b1g_1))
|
|
1058
1048
|
return false;
|
|
1059
|
-
if (!(this.
|
|
1049
|
+
if (!(this.c1g_1 == other.c1g_1))
|
|
1060
1050
|
return false;
|
|
1061
|
-
if (!equals(this.
|
|
1051
|
+
if (!equals(this.d1g_1, other.d1g_1))
|
|
1062
1052
|
return false;
|
|
1063
|
-
if (!equals(this.
|
|
1053
|
+
if (!equals(this.e1g_1, other.e1g_1))
|
|
1064
1054
|
return false;
|
|
1065
|
-
if (!equals(this.
|
|
1055
|
+
if (!equals(this.f1g_1, other.f1g_1))
|
|
1066
1056
|
return false;
|
|
1067
|
-
if (!equals(this.
|
|
1057
|
+
if (!equals(this.g1g_1, other.g1g_1))
|
|
1068
1058
|
return false;
|
|
1069
|
-
if (!equals(this.
|
|
1059
|
+
if (!equals(this.h1g_1, other.h1g_1))
|
|
1070
1060
|
return false;
|
|
1071
|
-
if (!(this.
|
|
1061
|
+
if (!(this.i1g_1 == other.i1g_1))
|
|
1072
1062
|
return false;
|
|
1073
|
-
if (!equals(this.
|
|
1063
|
+
if (!equals(this.j1g_1, other.j1g_1))
|
|
1074
1064
|
return false;
|
|
1075
|
-
if (!(this.
|
|
1065
|
+
if (!(this.k1g_1 == other.k1g_1))
|
|
1076
1066
|
return false;
|
|
1077
1067
|
return true;
|
|
1078
1068
|
};
|
|
1079
1069
|
function $serializer_0() {
|
|
1080
1070
|
$serializer_instance_0 = this;
|
|
1081
1071
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.CommerceCta', this, 3);
|
|
1082
|
-
tmp0_serialDesc.
|
|
1083
|
-
tmp0_serialDesc.
|
|
1084
|
-
tmp0_serialDesc.
|
|
1085
|
-
this.
|
|
1086
|
-
}
|
|
1087
|
-
protoOf($serializer_0).
|
|
1088
|
-
var tmp0_desc = this.
|
|
1089
|
-
var tmp1_output = encoder.
|
|
1090
|
-
tmp1_output.
|
|
1091
|
-
tmp1_output.
|
|
1092
|
-
tmp1_output.
|
|
1093
|
-
tmp1_output.
|
|
1094
|
-
};
|
|
1095
|
-
protoOf($serializer_0).
|
|
1096
|
-
return this.
|
|
1097
|
-
};
|
|
1098
|
-
protoOf($serializer_0).
|
|
1099
|
-
var tmp0_desc = this.
|
|
1072
|
+
tmp0_serialDesc.ht('sponsorName', false);
|
|
1073
|
+
tmp0_serialDesc.ht('territory', false);
|
|
1074
|
+
tmp0_serialDesc.ht('url', false);
|
|
1075
|
+
this.h1h_1 = tmp0_serialDesc;
|
|
1076
|
+
}
|
|
1077
|
+
protoOf($serializer_0).i1h = function (encoder, value) {
|
|
1078
|
+
var tmp0_desc = this.h1h_1;
|
|
1079
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
1080
|
+
tmp1_output.mn(tmp0_desc, 0, value.j1h_1);
|
|
1081
|
+
tmp1_output.mn(tmp0_desc, 1, value.k1h_1);
|
|
1082
|
+
tmp1_output.mn(tmp0_desc, 2, value.l1h_1);
|
|
1083
|
+
tmp1_output.zl(tmp0_desc);
|
|
1084
|
+
};
|
|
1085
|
+
protoOf($serializer_0).cj = function (encoder, value) {
|
|
1086
|
+
return this.i1h(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
1087
|
+
};
|
|
1088
|
+
protoOf($serializer_0).dj = function (decoder) {
|
|
1089
|
+
var tmp0_desc = this.h1h_1;
|
|
1100
1090
|
var tmp1_flag = true;
|
|
1101
1091
|
var tmp2_index = 0;
|
|
1102
1092
|
var tmp3_bitMask0 = 0;
|
|
1103
1093
|
var tmp4_local0 = null;
|
|
1104
1094
|
var tmp5_local1 = null;
|
|
1105
1095
|
var tmp6_local2 = null;
|
|
1106
|
-
var tmp7_input = decoder.
|
|
1107
|
-
if (tmp7_input.
|
|
1108
|
-
tmp4_local0 = tmp7_input.
|
|
1096
|
+
var tmp7_input = decoder.yl(tmp0_desc);
|
|
1097
|
+
if (tmp7_input.om()) {
|
|
1098
|
+
tmp4_local0 = tmp7_input.im(tmp0_desc, 0);
|
|
1109
1099
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1110
|
-
tmp5_local1 = tmp7_input.
|
|
1100
|
+
tmp5_local1 = tmp7_input.im(tmp0_desc, 1);
|
|
1111
1101
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1112
|
-
tmp6_local2 = tmp7_input.
|
|
1102
|
+
tmp6_local2 = tmp7_input.im(tmp0_desc, 2);
|
|
1113
1103
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1114
1104
|
} else
|
|
1115
1105
|
while (tmp1_flag) {
|
|
1116
|
-
tmp2_index = tmp7_input.
|
|
1106
|
+
tmp2_index = tmp7_input.pm(tmp0_desc);
|
|
1117
1107
|
switch (tmp2_index) {
|
|
1118
1108
|
case -1:
|
|
1119
1109
|
tmp1_flag = false;
|
|
1120
1110
|
break;
|
|
1121
1111
|
case 0:
|
|
1122
|
-
tmp4_local0 = tmp7_input.
|
|
1112
|
+
tmp4_local0 = tmp7_input.im(tmp0_desc, 0);
|
|
1123
1113
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1124
1114
|
break;
|
|
1125
1115
|
case 1:
|
|
1126
|
-
tmp5_local1 = tmp7_input.
|
|
1116
|
+
tmp5_local1 = tmp7_input.im(tmp0_desc, 1);
|
|
1127
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1128
1118
|
break;
|
|
1129
1119
|
case 2:
|
|
1130
|
-
tmp6_local2 = tmp7_input.
|
|
1120
|
+
tmp6_local2 = tmp7_input.im(tmp0_desc, 2);
|
|
1131
1121
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1132
1122
|
break;
|
|
1133
1123
|
default:
|
|
1134
1124
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1135
1125
|
}
|
|
1136
1126
|
}
|
|
1137
|
-
tmp7_input.
|
|
1127
|
+
tmp7_input.zl(tmp0_desc);
|
|
1138
1128
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1139
1129
|
};
|
|
1140
|
-
protoOf($serializer_0).
|
|
1141
|
-
return this.
|
|
1130
|
+
protoOf($serializer_0).bj = function () {
|
|
1131
|
+
return this.h1h_1;
|
|
1142
1132
|
};
|
|
1143
|
-
protoOf($serializer_0).
|
|
1133
|
+
protoOf($serializer_0).jt = function () {
|
|
1144
1134
|
// Inline function 'kotlin.arrayOf' call
|
|
1145
1135
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1146
1136
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1154,11 +1144,11 @@
|
|
|
1154
1144
|
}
|
|
1155
1145
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1156
1146
|
if (!(7 === (7 & seen0))) {
|
|
1157
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().
|
|
1147
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().h1h_1);
|
|
1158
1148
|
}
|
|
1159
|
-
$this.
|
|
1160
|
-
$this.
|
|
1161
|
-
$this.
|
|
1149
|
+
$this.j1h_1 = sponsorName;
|
|
1150
|
+
$this.k1h_1 = territory;
|
|
1151
|
+
$this.l1h_1 = url;
|
|
1162
1152
|
return $this;
|
|
1163
1153
|
}
|
|
1164
1154
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1167,12 +1157,12 @@
|
|
|
1167
1157
|
function CommerceCta() {
|
|
1168
1158
|
}
|
|
1169
1159
|
protoOf(CommerceCta).toString = function () {
|
|
1170
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1160
|
+
return 'CommerceCta(sponsorName=' + this.j1h_1 + ', territory=' + this.k1h_1 + ', url=' + this.l1h_1 + ')';
|
|
1171
1161
|
};
|
|
1172
1162
|
protoOf(CommerceCta).hashCode = function () {
|
|
1173
|
-
var result = getStringHashCode(this.
|
|
1174
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1175
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1163
|
+
var result = getStringHashCode(this.j1h_1);
|
|
1164
|
+
result = imul(result, 31) + getStringHashCode(this.k1h_1) | 0;
|
|
1165
|
+
result = imul(result, 31) + getStringHashCode(this.l1h_1) | 0;
|
|
1176
1166
|
return result;
|
|
1177
1167
|
};
|
|
1178
1168
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1180,55 +1170,55 @@
|
|
|
1180
1170
|
return true;
|
|
1181
1171
|
if (!(other instanceof CommerceCta))
|
|
1182
1172
|
return false;
|
|
1183
|
-
if (!(this.
|
|
1173
|
+
if (!(this.j1h_1 === other.j1h_1))
|
|
1184
1174
|
return false;
|
|
1185
|
-
if (!(this.
|
|
1175
|
+
if (!(this.k1h_1 === other.k1h_1))
|
|
1186
1176
|
return false;
|
|
1187
|
-
if (!(this.
|
|
1177
|
+
if (!(this.l1h_1 === other.l1h_1))
|
|
1188
1178
|
return false;
|
|
1189
1179
|
return true;
|
|
1190
1180
|
};
|
|
1191
1181
|
function $serializer_1() {
|
|
1192
1182
|
$serializer_instance_1 = this;
|
|
1193
1183
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Image', this, 8);
|
|
1194
|
-
tmp0_serialDesc.
|
|
1195
|
-
tmp0_serialDesc.
|
|
1196
|
-
tmp0_serialDesc.
|
|
1197
|
-
tmp0_serialDesc.
|
|
1198
|
-
tmp0_serialDesc.
|
|
1199
|
-
tmp0_serialDesc.
|
|
1200
|
-
tmp0_serialDesc.
|
|
1201
|
-
tmp0_serialDesc.
|
|
1202
|
-
this.
|
|
1203
|
-
}
|
|
1204
|
-
protoOf($serializer_1).
|
|
1205
|
-
var tmp0_desc = this.
|
|
1206
|
-
var tmp1_output = encoder.
|
|
1207
|
-
if (tmp1_output.
|
|
1208
|
-
tmp1_output.
|
|
1209
|
-
}
|
|
1210
|
-
tmp1_output.
|
|
1211
|
-
if (tmp1_output.
|
|
1212
|
-
tmp1_output.
|
|
1213
|
-
}
|
|
1214
|
-
if (tmp1_output.
|
|
1215
|
-
tmp1_output.
|
|
1216
|
-
}
|
|
1217
|
-
tmp1_output.
|
|
1218
|
-
if (tmp1_output.
|
|
1219
|
-
tmp1_output.
|
|
1220
|
-
}
|
|
1221
|
-
if (tmp1_output.
|
|
1222
|
-
tmp1_output.
|
|
1223
|
-
}
|
|
1224
|
-
tmp1_output.
|
|
1225
|
-
tmp1_output.
|
|
1226
|
-
};
|
|
1227
|
-
protoOf($serializer_1).
|
|
1228
|
-
return this.
|
|
1229
|
-
};
|
|
1230
|
-
protoOf($serializer_1).
|
|
1231
|
-
var tmp0_desc = this.
|
|
1184
|
+
tmp0_serialDesc.ht('caption', true);
|
|
1185
|
+
tmp0_serialDesc.ht('cropId', false);
|
|
1186
|
+
tmp0_serialDesc.ht('imageType', true);
|
|
1187
|
+
tmp0_serialDesc.ht('mediaApiUrl', true);
|
|
1188
|
+
tmp0_serialDesc.ht('mediaId', false);
|
|
1189
|
+
tmp0_serialDesc.ht('photographer', true);
|
|
1190
|
+
tmp0_serialDesc.ht('source', true);
|
|
1191
|
+
tmp0_serialDesc.ht('url', false);
|
|
1192
|
+
this.m1h_1 = tmp0_serialDesc;
|
|
1193
|
+
}
|
|
1194
|
+
protoOf($serializer_1).n1h = function (encoder, value) {
|
|
1195
|
+
var tmp0_desc = this.m1h_1;
|
|
1196
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
1197
|
+
if (tmp1_output.un(tmp0_desc, 0) ? true : !(value.o1h_1 == null)) {
|
|
1198
|
+
tmp1_output.qn(tmp0_desc, 0, StringSerializer_getInstance(), value.o1h_1);
|
|
1199
|
+
}
|
|
1200
|
+
tmp1_output.mn(tmp0_desc, 1, value.p1h_1);
|
|
1201
|
+
if (tmp1_output.un(tmp0_desc, 2) ? true : !(value.q1h_1 == null)) {
|
|
1202
|
+
tmp1_output.qn(tmp0_desc, 2, StringSerializer_getInstance(), value.q1h_1);
|
|
1203
|
+
}
|
|
1204
|
+
if (tmp1_output.un(tmp0_desc, 3) ? true : !(value.r1h_1 == null)) {
|
|
1205
|
+
tmp1_output.qn(tmp0_desc, 3, StringSerializer_getInstance(), value.r1h_1);
|
|
1206
|
+
}
|
|
1207
|
+
tmp1_output.mn(tmp0_desc, 4, value.s1h_1);
|
|
1208
|
+
if (tmp1_output.un(tmp0_desc, 5) ? true : !(value.t1h_1 == null)) {
|
|
1209
|
+
tmp1_output.qn(tmp0_desc, 5, StringSerializer_getInstance(), value.t1h_1);
|
|
1210
|
+
}
|
|
1211
|
+
if (tmp1_output.un(tmp0_desc, 6) ? true : !(value.u1h_1 == null)) {
|
|
1212
|
+
tmp1_output.qn(tmp0_desc, 6, StringSerializer_getInstance(), value.u1h_1);
|
|
1213
|
+
}
|
|
1214
|
+
tmp1_output.mn(tmp0_desc, 7, value.v1h_1);
|
|
1215
|
+
tmp1_output.zl(tmp0_desc);
|
|
1216
|
+
};
|
|
1217
|
+
protoOf($serializer_1).cj = function (encoder, value) {
|
|
1218
|
+
return this.n1h(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1219
|
+
};
|
|
1220
|
+
protoOf($serializer_1).dj = function (decoder) {
|
|
1221
|
+
var tmp0_desc = this.m1h_1;
|
|
1232
1222
|
var tmp1_flag = true;
|
|
1233
1223
|
var tmp2_index = 0;
|
|
1234
1224
|
var tmp3_bitMask0 = 0;
|
|
@@ -1240,74 +1230,74 @@
|
|
|
1240
1230
|
var tmp9_local5 = null;
|
|
1241
1231
|
var tmp10_local6 = null;
|
|
1242
1232
|
var tmp11_local7 = null;
|
|
1243
|
-
var tmp12_input = decoder.
|
|
1244
|
-
if (tmp12_input.
|
|
1245
|
-
tmp4_local0 = tmp12_input.
|
|
1233
|
+
var tmp12_input = decoder.yl(tmp0_desc);
|
|
1234
|
+
if (tmp12_input.om()) {
|
|
1235
|
+
tmp4_local0 = tmp12_input.mm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1246
1236
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1247
|
-
tmp5_local1 = tmp12_input.
|
|
1237
|
+
tmp5_local1 = tmp12_input.im(tmp0_desc, 1);
|
|
1248
1238
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1249
|
-
tmp6_local2 = tmp12_input.
|
|
1239
|
+
tmp6_local2 = tmp12_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1250
1240
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1251
|
-
tmp7_local3 = tmp12_input.
|
|
1241
|
+
tmp7_local3 = tmp12_input.mm(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1252
1242
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1253
|
-
tmp8_local4 = tmp12_input.
|
|
1243
|
+
tmp8_local4 = tmp12_input.im(tmp0_desc, 4);
|
|
1254
1244
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1255
|
-
tmp9_local5 = tmp12_input.
|
|
1245
|
+
tmp9_local5 = tmp12_input.mm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1256
1246
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1257
|
-
tmp10_local6 = tmp12_input.
|
|
1247
|
+
tmp10_local6 = tmp12_input.mm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1258
1248
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1259
|
-
tmp11_local7 = tmp12_input.
|
|
1249
|
+
tmp11_local7 = tmp12_input.im(tmp0_desc, 7);
|
|
1260
1250
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1261
1251
|
} else
|
|
1262
1252
|
while (tmp1_flag) {
|
|
1263
|
-
tmp2_index = tmp12_input.
|
|
1253
|
+
tmp2_index = tmp12_input.pm(tmp0_desc);
|
|
1264
1254
|
switch (tmp2_index) {
|
|
1265
1255
|
case -1:
|
|
1266
1256
|
tmp1_flag = false;
|
|
1267
1257
|
break;
|
|
1268
1258
|
case 0:
|
|
1269
|
-
tmp4_local0 = tmp12_input.
|
|
1259
|
+
tmp4_local0 = tmp12_input.mm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1270
1260
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1271
1261
|
break;
|
|
1272
1262
|
case 1:
|
|
1273
|
-
tmp5_local1 = tmp12_input.
|
|
1263
|
+
tmp5_local1 = tmp12_input.im(tmp0_desc, 1);
|
|
1274
1264
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1275
1265
|
break;
|
|
1276
1266
|
case 2:
|
|
1277
|
-
tmp6_local2 = tmp12_input.
|
|
1267
|
+
tmp6_local2 = tmp12_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1278
1268
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1279
1269
|
break;
|
|
1280
1270
|
case 3:
|
|
1281
|
-
tmp7_local3 = tmp12_input.
|
|
1271
|
+
tmp7_local3 = tmp12_input.mm(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1282
1272
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1283
1273
|
break;
|
|
1284
1274
|
case 4:
|
|
1285
|
-
tmp8_local4 = tmp12_input.
|
|
1275
|
+
tmp8_local4 = tmp12_input.im(tmp0_desc, 4);
|
|
1286
1276
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1287
1277
|
break;
|
|
1288
1278
|
case 5:
|
|
1289
|
-
tmp9_local5 = tmp12_input.
|
|
1279
|
+
tmp9_local5 = tmp12_input.mm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1290
1280
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1291
1281
|
break;
|
|
1292
1282
|
case 6:
|
|
1293
|
-
tmp10_local6 = tmp12_input.
|
|
1283
|
+
tmp10_local6 = tmp12_input.mm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1294
1284
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1295
1285
|
break;
|
|
1296
1286
|
case 7:
|
|
1297
|
-
tmp11_local7 = tmp12_input.
|
|
1287
|
+
tmp11_local7 = tmp12_input.im(tmp0_desc, 7);
|
|
1298
1288
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1299
1289
|
break;
|
|
1300
1290
|
default:
|
|
1301
1291
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1302
1292
|
}
|
|
1303
1293
|
}
|
|
1304
|
-
tmp12_input.
|
|
1294
|
+
tmp12_input.zl(tmp0_desc);
|
|
1305
1295
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1306
1296
|
};
|
|
1307
|
-
protoOf($serializer_1).
|
|
1308
|
-
return this.
|
|
1297
|
+
protoOf($serializer_1).bj = function () {
|
|
1298
|
+
return this.m1h_1;
|
|
1309
1299
|
};
|
|
1310
|
-
protoOf($serializer_1).
|
|
1300
|
+
protoOf($serializer_1).jt = function () {
|
|
1311
1301
|
// Inline function 'kotlin.arrayOf' call
|
|
1312
1302
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1313
1303
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1321,31 +1311,31 @@
|
|
|
1321
1311
|
}
|
|
1322
1312
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1323
1313
|
if (!(146 === (146 & seen0))) {
|
|
1324
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_1().
|
|
1314
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_1().m1h_1);
|
|
1325
1315
|
}
|
|
1326
1316
|
if (0 === (seen0 & 1))
|
|
1327
|
-
$this.
|
|
1317
|
+
$this.o1h_1 = null;
|
|
1328
1318
|
else
|
|
1329
|
-
$this.
|
|
1330
|
-
$this.
|
|
1319
|
+
$this.o1h_1 = caption;
|
|
1320
|
+
$this.p1h_1 = cropId;
|
|
1331
1321
|
if (0 === (seen0 & 4))
|
|
1332
|
-
$this.
|
|
1322
|
+
$this.q1h_1 = null;
|
|
1333
1323
|
else
|
|
1334
|
-
$this.
|
|
1324
|
+
$this.q1h_1 = imageType;
|
|
1335
1325
|
if (0 === (seen0 & 8))
|
|
1336
|
-
$this.
|
|
1326
|
+
$this.r1h_1 = null;
|
|
1337
1327
|
else
|
|
1338
|
-
$this.
|
|
1339
|
-
$this.
|
|
1328
|
+
$this.r1h_1 = mediaApiUrl;
|
|
1329
|
+
$this.s1h_1 = mediaId;
|
|
1340
1330
|
if (0 === (seen0 & 32))
|
|
1341
|
-
$this.
|
|
1331
|
+
$this.t1h_1 = null;
|
|
1342
1332
|
else
|
|
1343
|
-
$this.
|
|
1333
|
+
$this.t1h_1 = photographer;
|
|
1344
1334
|
if (0 === (seen0 & 64))
|
|
1345
|
-
$this.
|
|
1335
|
+
$this.u1h_1 = null;
|
|
1346
1336
|
else
|
|
1347
|
-
$this.
|
|
1348
|
-
$this.
|
|
1337
|
+
$this.u1h_1 = source;
|
|
1338
|
+
$this.v1h_1 = url;
|
|
1349
1339
|
return $this;
|
|
1350
1340
|
}
|
|
1351
1341
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1354,17 +1344,17 @@
|
|
|
1354
1344
|
function Image() {
|
|
1355
1345
|
}
|
|
1356
1346
|
protoOf(Image).toString = function () {
|
|
1357
|
-
return 'Image(caption=' + this.
|
|
1347
|
+
return 'Image(caption=' + this.o1h_1 + ', cropId=' + this.p1h_1 + ', imageType=' + this.q1h_1 + ', mediaApiUrl=' + this.r1h_1 + ', mediaId=' + this.s1h_1 + ', photographer=' + this.t1h_1 + ', source=' + this.u1h_1 + ', url=' + this.v1h_1 + ')';
|
|
1358
1348
|
};
|
|
1359
1349
|
protoOf(Image).hashCode = function () {
|
|
1360
|
-
var result = this.
|
|
1361
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1362
|
-
result = imul(result, 31) + (this.
|
|
1363
|
-
result = imul(result, 31) + (this.
|
|
1364
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1365
|
-
result = imul(result, 31) + (this.
|
|
1366
|
-
result = imul(result, 31) + (this.
|
|
1367
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1350
|
+
var result = this.o1h_1 == null ? 0 : getStringHashCode(this.o1h_1);
|
|
1351
|
+
result = imul(result, 31) + getStringHashCode(this.p1h_1) | 0;
|
|
1352
|
+
result = imul(result, 31) + (this.q1h_1 == null ? 0 : getStringHashCode(this.q1h_1)) | 0;
|
|
1353
|
+
result = imul(result, 31) + (this.r1h_1 == null ? 0 : getStringHashCode(this.r1h_1)) | 0;
|
|
1354
|
+
result = imul(result, 31) + getStringHashCode(this.s1h_1) | 0;
|
|
1355
|
+
result = imul(result, 31) + (this.t1h_1 == null ? 0 : getStringHashCode(this.t1h_1)) | 0;
|
|
1356
|
+
result = imul(result, 31) + (this.u1h_1 == null ? 0 : getStringHashCode(this.u1h_1)) | 0;
|
|
1357
|
+
result = imul(result, 31) + getStringHashCode(this.v1h_1) | 0;
|
|
1368
1358
|
return result;
|
|
1369
1359
|
};
|
|
1370
1360
|
protoOf(Image).equals = function (other) {
|
|
@@ -1372,21 +1362,21 @@
|
|
|
1372
1362
|
return true;
|
|
1373
1363
|
if (!(other instanceof Image))
|
|
1374
1364
|
return false;
|
|
1375
|
-
if (!(this.
|
|
1365
|
+
if (!(this.o1h_1 == other.o1h_1))
|
|
1376
1366
|
return false;
|
|
1377
|
-
if (!(this.
|
|
1367
|
+
if (!(this.p1h_1 === other.p1h_1))
|
|
1378
1368
|
return false;
|
|
1379
|
-
if (!(this.
|
|
1369
|
+
if (!(this.q1h_1 == other.q1h_1))
|
|
1380
1370
|
return false;
|
|
1381
|
-
if (!(this.
|
|
1371
|
+
if (!(this.r1h_1 == other.r1h_1))
|
|
1382
1372
|
return false;
|
|
1383
|
-
if (!(this.
|
|
1373
|
+
if (!(this.s1h_1 === other.s1h_1))
|
|
1384
1374
|
return false;
|
|
1385
|
-
if (!(this.
|
|
1375
|
+
if (!(this.t1h_1 == other.t1h_1))
|
|
1386
1376
|
return false;
|
|
1387
|
-
if (!(this.
|
|
1377
|
+
if (!(this.u1h_1 == other.u1h_1))
|
|
1388
1378
|
return false;
|
|
1389
|
-
if (!(this.
|
|
1379
|
+
if (!(this.v1h_1 === other.v1h_1))
|
|
1390
1380
|
return false;
|
|
1391
1381
|
return true;
|
|
1392
1382
|
};
|
|
@@ -1400,7 +1390,7 @@
|
|
|
1400
1390
|
// Inline function 'kotlin.arrayOf' call
|
|
1401
1391
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1402
1392
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1403
|
-
tmp.
|
|
1393
|
+
tmp.w1h_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1404
1394
|
}
|
|
1405
1395
|
var Companion_instance_0;
|
|
1406
1396
|
function Companion_getInstance_0() {
|
|
@@ -1411,66 +1401,66 @@
|
|
|
1411
1401
|
function $serializer_2() {
|
|
1412
1402
|
$serializer_instance_2 = this;
|
|
1413
1403
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1414
|
-
tmp0_serialDesc.
|
|
1415
|
-
tmp0_serialDesc.
|
|
1416
|
-
this.
|
|
1404
|
+
tmp0_serialDesc.ht('ingredientsList', true);
|
|
1405
|
+
tmp0_serialDesc.ht('recipeSection', true);
|
|
1406
|
+
this.x1h_1 = tmp0_serialDesc;
|
|
1417
1407
|
}
|
|
1418
|
-
protoOf($serializer_2).
|
|
1419
|
-
var tmp0_desc = this.
|
|
1420
|
-
var tmp1_output = encoder.
|
|
1421
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
1422
|
-
if (tmp1_output.
|
|
1423
|
-
tmp1_output.
|
|
1408
|
+
protoOf($serializer_2).y1h = function (encoder, value) {
|
|
1409
|
+
var tmp0_desc = this.x1h_1;
|
|
1410
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
1411
|
+
var tmp2_cached = Companion_getInstance_0().w1h_1;
|
|
1412
|
+
if (tmp1_output.un(tmp0_desc, 0) ? true : !(value.l1g_1 == null)) {
|
|
1413
|
+
tmp1_output.qn(tmp0_desc, 0, tmp2_cached[0].t1(), value.l1g_1);
|
|
1424
1414
|
}
|
|
1425
|
-
if (tmp1_output.
|
|
1426
|
-
tmp1_output.
|
|
1415
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.m1g_1 == null)) {
|
|
1416
|
+
tmp1_output.qn(tmp0_desc, 1, StringSerializer_getInstance(), value.m1g_1);
|
|
1427
1417
|
}
|
|
1428
|
-
tmp1_output.
|
|
1418
|
+
tmp1_output.zl(tmp0_desc);
|
|
1429
1419
|
};
|
|
1430
|
-
protoOf($serializer_2).
|
|
1431
|
-
return this.
|
|
1420
|
+
protoOf($serializer_2).cj = function (encoder, value) {
|
|
1421
|
+
return this.y1h(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1432
1422
|
};
|
|
1433
|
-
protoOf($serializer_2).
|
|
1434
|
-
var tmp0_desc = this.
|
|
1423
|
+
protoOf($serializer_2).dj = function (decoder) {
|
|
1424
|
+
var tmp0_desc = this.x1h_1;
|
|
1435
1425
|
var tmp1_flag = true;
|
|
1436
1426
|
var tmp2_index = 0;
|
|
1437
1427
|
var tmp3_bitMask0 = 0;
|
|
1438
1428
|
var tmp4_local0 = null;
|
|
1439
1429
|
var tmp5_local1 = null;
|
|
1440
|
-
var tmp6_input = decoder.
|
|
1441
|
-
var tmp7_cached = Companion_getInstance_0().
|
|
1442
|
-
if (tmp6_input.
|
|
1443
|
-
tmp4_local0 = tmp6_input.
|
|
1430
|
+
var tmp6_input = decoder.yl(tmp0_desc);
|
|
1431
|
+
var tmp7_cached = Companion_getInstance_0().w1h_1;
|
|
1432
|
+
if (tmp6_input.om()) {
|
|
1433
|
+
tmp4_local0 = tmp6_input.mm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1444
1434
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1445
|
-
tmp5_local1 = tmp6_input.
|
|
1435
|
+
tmp5_local1 = tmp6_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1446
1436
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1447
1437
|
} else
|
|
1448
1438
|
while (tmp1_flag) {
|
|
1449
|
-
tmp2_index = tmp6_input.
|
|
1439
|
+
tmp2_index = tmp6_input.pm(tmp0_desc);
|
|
1450
1440
|
switch (tmp2_index) {
|
|
1451
1441
|
case -1:
|
|
1452
1442
|
tmp1_flag = false;
|
|
1453
1443
|
break;
|
|
1454
1444
|
case 0:
|
|
1455
|
-
tmp4_local0 = tmp6_input.
|
|
1445
|
+
tmp4_local0 = tmp6_input.mm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1456
1446
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1457
1447
|
break;
|
|
1458
1448
|
case 1:
|
|
1459
|
-
tmp5_local1 = tmp6_input.
|
|
1449
|
+
tmp5_local1 = tmp6_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1460
1450
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1461
1451
|
break;
|
|
1462
1452
|
default:
|
|
1463
1453
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1464
1454
|
}
|
|
1465
1455
|
}
|
|
1466
|
-
tmp6_input.
|
|
1456
|
+
tmp6_input.zl(tmp0_desc);
|
|
1467
1457
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1468
1458
|
};
|
|
1469
|
-
protoOf($serializer_2).
|
|
1470
|
-
return this.
|
|
1459
|
+
protoOf($serializer_2).bj = function () {
|
|
1460
|
+
return this.x1h_1;
|
|
1471
1461
|
};
|
|
1472
|
-
protoOf($serializer_2).
|
|
1473
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
1462
|
+
protoOf($serializer_2).jt = function () {
|
|
1463
|
+
var tmp0_cached = Companion_getInstance_0().w1h_1;
|
|
1474
1464
|
// Inline function 'kotlin.arrayOf' call
|
|
1475
1465
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1476
1466
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1484,16 +1474,16 @@
|
|
|
1484
1474
|
}
|
|
1485
1475
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1486
1476
|
if (!(0 === (0 & seen0))) {
|
|
1487
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().
|
|
1477
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().x1h_1);
|
|
1488
1478
|
}
|
|
1489
1479
|
if (0 === (seen0 & 1))
|
|
1490
|
-
$this.
|
|
1480
|
+
$this.l1g_1 = null;
|
|
1491
1481
|
else
|
|
1492
|
-
$this.
|
|
1482
|
+
$this.l1g_1 = ingredientsList;
|
|
1493
1483
|
if (0 === (seen0 & 2))
|
|
1494
|
-
$this.
|
|
1484
|
+
$this.m1g_1 = null;
|
|
1495
1485
|
else
|
|
1496
|
-
$this.
|
|
1486
|
+
$this.m1g_1 = recipeSection;
|
|
1497
1487
|
return $this;
|
|
1498
1488
|
}
|
|
1499
1489
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -1503,15 +1493,15 @@
|
|
|
1503
1493
|
Companion_getInstance_0();
|
|
1504
1494
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
1505
1495
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
1506
|
-
this.
|
|
1507
|
-
this.
|
|
1496
|
+
this.l1g_1 = ingredientsList;
|
|
1497
|
+
this.m1g_1 = recipeSection;
|
|
1508
1498
|
}
|
|
1509
1499
|
protoOf(IngredientsList).toString = function () {
|
|
1510
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
1500
|
+
return 'IngredientsList(ingredientsList=' + toString(this.l1g_1) + ', recipeSection=' + this.m1g_1 + ')';
|
|
1511
1501
|
};
|
|
1512
1502
|
protoOf(IngredientsList).hashCode = function () {
|
|
1513
|
-
var result = this.
|
|
1514
|
-
result = imul(result, 31) + (this.
|
|
1503
|
+
var result = this.l1g_1 == null ? 0 : hashCode(this.l1g_1);
|
|
1504
|
+
result = imul(result, 31) + (this.m1g_1 == null ? 0 : getStringHashCode(this.m1g_1)) | 0;
|
|
1515
1505
|
return result;
|
|
1516
1506
|
};
|
|
1517
1507
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -1519,9 +1509,9 @@
|
|
|
1519
1509
|
return true;
|
|
1520
1510
|
if (!(other instanceof IngredientsList))
|
|
1521
1511
|
return false;
|
|
1522
|
-
if (!equals(this.
|
|
1512
|
+
if (!equals(this.l1g_1, other.l1g_1))
|
|
1523
1513
|
return false;
|
|
1524
|
-
if (!(this.
|
|
1514
|
+
if (!(this.m1g_1 == other.m1g_1))
|
|
1525
1515
|
return false;
|
|
1526
1516
|
return true;
|
|
1527
1517
|
};
|
|
@@ -1534,54 +1524,54 @@
|
|
|
1534
1524
|
function $serializer_3() {
|
|
1535
1525
|
$serializer_instance_3 = this;
|
|
1536
1526
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientItem', this, 9);
|
|
1537
|
-
tmp0_serialDesc.
|
|
1538
|
-
tmp0_serialDesc.
|
|
1539
|
-
tmp0_serialDesc.
|
|
1540
|
-
tmp0_serialDesc.
|
|
1541
|
-
tmp0_serialDesc.
|
|
1542
|
-
tmp0_serialDesc.
|
|
1543
|
-
tmp0_serialDesc.
|
|
1544
|
-
tmp0_serialDesc.
|
|
1545
|
-
tmp0_serialDesc.
|
|
1546
|
-
this.
|
|
1527
|
+
tmp0_serialDesc.ht('amount', true);
|
|
1528
|
+
tmp0_serialDesc.ht('ingredientId', true);
|
|
1529
|
+
tmp0_serialDesc.ht('name', true);
|
|
1530
|
+
tmp0_serialDesc.ht('optional', true);
|
|
1531
|
+
tmp0_serialDesc.ht('prefix', true);
|
|
1532
|
+
tmp0_serialDesc.ht('suffix', true);
|
|
1533
|
+
tmp0_serialDesc.ht('template', true);
|
|
1534
|
+
tmp0_serialDesc.ht('text', true);
|
|
1535
|
+
tmp0_serialDesc.ht('unit', true);
|
|
1536
|
+
this.z1h_1 = tmp0_serialDesc;
|
|
1547
1537
|
}
|
|
1548
|
-
protoOf($serializer_3).
|
|
1549
|
-
var tmp0_desc = this.
|
|
1550
|
-
var tmp1_output = encoder.
|
|
1551
|
-
if (tmp1_output.
|
|
1552
|
-
tmp1_output.
|
|
1538
|
+
protoOf($serializer_3).a1i = function (encoder, value) {
|
|
1539
|
+
var tmp0_desc = this.z1h_1;
|
|
1540
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
1541
|
+
if (tmp1_output.un(tmp0_desc, 0) ? true : !(value.n1g_1 == null)) {
|
|
1542
|
+
tmp1_output.qn(tmp0_desc, 0, $serializer_getInstance_4(), value.n1g_1);
|
|
1553
1543
|
}
|
|
1554
|
-
if (tmp1_output.
|
|
1555
|
-
tmp1_output.
|
|
1544
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.o1g_1 == null)) {
|
|
1545
|
+
tmp1_output.qn(tmp0_desc, 1, StringSerializer_getInstance(), value.o1g_1);
|
|
1556
1546
|
}
|
|
1557
|
-
if (tmp1_output.
|
|
1558
|
-
tmp1_output.
|
|
1547
|
+
if (tmp1_output.un(tmp0_desc, 2) ? true : !(value.p1g_1 == null)) {
|
|
1548
|
+
tmp1_output.qn(tmp0_desc, 2, StringSerializer_getInstance(), value.p1g_1);
|
|
1559
1549
|
}
|
|
1560
|
-
if (tmp1_output.
|
|
1561
|
-
tmp1_output.
|
|
1550
|
+
if (tmp1_output.un(tmp0_desc, 3) ? true : !(value.q1g_1 == null)) {
|
|
1551
|
+
tmp1_output.qn(tmp0_desc, 3, BooleanSerializer_getInstance(), value.q1g_1);
|
|
1562
1552
|
}
|
|
1563
|
-
if (tmp1_output.
|
|
1564
|
-
tmp1_output.
|
|
1553
|
+
if (tmp1_output.un(tmp0_desc, 4) ? true : !(value.r1g_1 == null)) {
|
|
1554
|
+
tmp1_output.qn(tmp0_desc, 4, StringSerializer_getInstance(), value.r1g_1);
|
|
1565
1555
|
}
|
|
1566
|
-
if (tmp1_output.
|
|
1567
|
-
tmp1_output.
|
|
1556
|
+
if (tmp1_output.un(tmp0_desc, 5) ? true : !(value.s1g_1 == null)) {
|
|
1557
|
+
tmp1_output.qn(tmp0_desc, 5, StringSerializer_getInstance(), value.s1g_1);
|
|
1568
1558
|
}
|
|
1569
|
-
if (tmp1_output.
|
|
1570
|
-
tmp1_output.
|
|
1559
|
+
if (tmp1_output.un(tmp0_desc, 6) ? true : !(value.t1g_1 == null)) {
|
|
1560
|
+
tmp1_output.qn(tmp0_desc, 6, StringSerializer_getInstance(), value.t1g_1);
|
|
1571
1561
|
}
|
|
1572
|
-
if (tmp1_output.
|
|
1573
|
-
tmp1_output.
|
|
1562
|
+
if (tmp1_output.un(tmp0_desc, 7) ? true : !(value.u1g_1 == null)) {
|
|
1563
|
+
tmp1_output.qn(tmp0_desc, 7, StringSerializer_getInstance(), value.u1g_1);
|
|
1574
1564
|
}
|
|
1575
|
-
if (tmp1_output.
|
|
1576
|
-
tmp1_output.
|
|
1565
|
+
if (tmp1_output.un(tmp0_desc, 8) ? true : !(value.v1g_1 == null)) {
|
|
1566
|
+
tmp1_output.qn(tmp0_desc, 8, StringSerializer_getInstance(), value.v1g_1);
|
|
1577
1567
|
}
|
|
1578
|
-
tmp1_output.
|
|
1568
|
+
tmp1_output.zl(tmp0_desc);
|
|
1579
1569
|
};
|
|
1580
|
-
protoOf($serializer_3).
|
|
1581
|
-
return this.
|
|
1570
|
+
protoOf($serializer_3).cj = function (encoder, value) {
|
|
1571
|
+
return this.a1i(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
1582
1572
|
};
|
|
1583
|
-
protoOf($serializer_3).
|
|
1584
|
-
var tmp0_desc = this.
|
|
1573
|
+
protoOf($serializer_3).dj = function (decoder) {
|
|
1574
|
+
var tmp0_desc = this.z1h_1;
|
|
1585
1575
|
var tmp1_flag = true;
|
|
1586
1576
|
var tmp2_index = 0;
|
|
1587
1577
|
var tmp3_bitMask0 = 0;
|
|
@@ -1594,80 +1584,80 @@
|
|
|
1594
1584
|
var tmp10_local6 = null;
|
|
1595
1585
|
var tmp11_local7 = null;
|
|
1596
1586
|
var tmp12_local8 = null;
|
|
1597
|
-
var tmp13_input = decoder.
|
|
1598
|
-
if (tmp13_input.
|
|
1599
|
-
tmp4_local0 = tmp13_input.
|
|
1587
|
+
var tmp13_input = decoder.yl(tmp0_desc);
|
|
1588
|
+
if (tmp13_input.om()) {
|
|
1589
|
+
tmp4_local0 = tmp13_input.mm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1600
1590
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1601
|
-
tmp5_local1 = tmp13_input.
|
|
1591
|
+
tmp5_local1 = tmp13_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1602
1592
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1603
|
-
tmp6_local2 = tmp13_input.
|
|
1593
|
+
tmp6_local2 = tmp13_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1604
1594
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1605
|
-
tmp7_local3 = tmp13_input.
|
|
1595
|
+
tmp7_local3 = tmp13_input.mm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
1606
1596
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1607
|
-
tmp8_local4 = tmp13_input.
|
|
1597
|
+
tmp8_local4 = tmp13_input.mm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1608
1598
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1609
|
-
tmp9_local5 = tmp13_input.
|
|
1599
|
+
tmp9_local5 = tmp13_input.mm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1610
1600
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1611
|
-
tmp10_local6 = tmp13_input.
|
|
1601
|
+
tmp10_local6 = tmp13_input.mm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1612
1602
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1613
|
-
tmp11_local7 = tmp13_input.
|
|
1603
|
+
tmp11_local7 = tmp13_input.mm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
1614
1604
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1615
|
-
tmp12_local8 = tmp13_input.
|
|
1605
|
+
tmp12_local8 = tmp13_input.mm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1616
1606
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1617
1607
|
} else
|
|
1618
1608
|
while (tmp1_flag) {
|
|
1619
|
-
tmp2_index = tmp13_input.
|
|
1609
|
+
tmp2_index = tmp13_input.pm(tmp0_desc);
|
|
1620
1610
|
switch (tmp2_index) {
|
|
1621
1611
|
case -1:
|
|
1622
1612
|
tmp1_flag = false;
|
|
1623
1613
|
break;
|
|
1624
1614
|
case 0:
|
|
1625
|
-
tmp4_local0 = tmp13_input.
|
|
1615
|
+
tmp4_local0 = tmp13_input.mm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1626
1616
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1627
1617
|
break;
|
|
1628
1618
|
case 1:
|
|
1629
|
-
tmp5_local1 = tmp13_input.
|
|
1619
|
+
tmp5_local1 = tmp13_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1630
1620
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1631
1621
|
break;
|
|
1632
1622
|
case 2:
|
|
1633
|
-
tmp6_local2 = tmp13_input.
|
|
1623
|
+
tmp6_local2 = tmp13_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1634
1624
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1635
1625
|
break;
|
|
1636
1626
|
case 3:
|
|
1637
|
-
tmp7_local3 = tmp13_input.
|
|
1627
|
+
tmp7_local3 = tmp13_input.mm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
1638
1628
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1639
1629
|
break;
|
|
1640
1630
|
case 4:
|
|
1641
|
-
tmp8_local4 = tmp13_input.
|
|
1631
|
+
tmp8_local4 = tmp13_input.mm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1642
1632
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1643
1633
|
break;
|
|
1644
1634
|
case 5:
|
|
1645
|
-
tmp9_local5 = tmp13_input.
|
|
1635
|
+
tmp9_local5 = tmp13_input.mm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1646
1636
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1647
1637
|
break;
|
|
1648
1638
|
case 6:
|
|
1649
|
-
tmp10_local6 = tmp13_input.
|
|
1639
|
+
tmp10_local6 = tmp13_input.mm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1650
1640
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1651
1641
|
break;
|
|
1652
1642
|
case 7:
|
|
1653
|
-
tmp11_local7 = tmp13_input.
|
|
1643
|
+
tmp11_local7 = tmp13_input.mm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
1654
1644
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1655
1645
|
break;
|
|
1656
1646
|
case 8:
|
|
1657
|
-
tmp12_local8 = tmp13_input.
|
|
1647
|
+
tmp12_local8 = tmp13_input.mm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1658
1648
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1659
1649
|
break;
|
|
1660
1650
|
default:
|
|
1661
1651
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1662
1652
|
}
|
|
1663
1653
|
}
|
|
1664
|
-
tmp13_input.
|
|
1654
|
+
tmp13_input.zl(tmp0_desc);
|
|
1665
1655
|
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);
|
|
1666
1656
|
};
|
|
1667
|
-
protoOf($serializer_3).
|
|
1668
|
-
return this.
|
|
1657
|
+
protoOf($serializer_3).bj = function () {
|
|
1658
|
+
return this.z1h_1;
|
|
1669
1659
|
};
|
|
1670
|
-
protoOf($serializer_3).
|
|
1660
|
+
protoOf($serializer_3).jt = function () {
|
|
1671
1661
|
// Inline function 'kotlin.arrayOf' call
|
|
1672
1662
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1673
1663
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1681,44 +1671,44 @@
|
|
|
1681
1671
|
}
|
|
1682
1672
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
1683
1673
|
if (!(0 === (0 & seen0))) {
|
|
1684
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().
|
|
1674
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().z1h_1);
|
|
1685
1675
|
}
|
|
1686
1676
|
if (0 === (seen0 & 1))
|
|
1687
|
-
$this.
|
|
1677
|
+
$this.n1g_1 = null;
|
|
1688
1678
|
else
|
|
1689
|
-
$this.
|
|
1679
|
+
$this.n1g_1 = amount;
|
|
1690
1680
|
if (0 === (seen0 & 2))
|
|
1691
|
-
$this.
|
|
1681
|
+
$this.o1g_1 = null;
|
|
1692
1682
|
else
|
|
1693
|
-
$this.
|
|
1683
|
+
$this.o1g_1 = ingredientId;
|
|
1694
1684
|
if (0 === (seen0 & 4))
|
|
1695
|
-
$this.
|
|
1685
|
+
$this.p1g_1 = null;
|
|
1696
1686
|
else
|
|
1697
|
-
$this.
|
|
1687
|
+
$this.p1g_1 = name;
|
|
1698
1688
|
if (0 === (seen0 & 8))
|
|
1699
|
-
$this.
|
|
1689
|
+
$this.q1g_1 = null;
|
|
1700
1690
|
else
|
|
1701
|
-
$this.
|
|
1691
|
+
$this.q1g_1 = optional;
|
|
1702
1692
|
if (0 === (seen0 & 16))
|
|
1703
|
-
$this.
|
|
1693
|
+
$this.r1g_1 = null;
|
|
1704
1694
|
else
|
|
1705
|
-
$this.
|
|
1695
|
+
$this.r1g_1 = prefix;
|
|
1706
1696
|
if (0 === (seen0 & 32))
|
|
1707
|
-
$this.
|
|
1697
|
+
$this.s1g_1 = null;
|
|
1708
1698
|
else
|
|
1709
|
-
$this.
|
|
1699
|
+
$this.s1g_1 = suffix;
|
|
1710
1700
|
if (0 === (seen0 & 64))
|
|
1711
|
-
$this.
|
|
1701
|
+
$this.t1g_1 = null;
|
|
1712
1702
|
else
|
|
1713
|
-
$this.
|
|
1703
|
+
$this.t1g_1 = template;
|
|
1714
1704
|
if (0 === (seen0 & 128))
|
|
1715
|
-
$this.
|
|
1705
|
+
$this.u1g_1 = null;
|
|
1716
1706
|
else
|
|
1717
|
-
$this.
|
|
1707
|
+
$this.u1g_1 = text;
|
|
1718
1708
|
if (0 === (seen0 & 256))
|
|
1719
|
-
$this.
|
|
1709
|
+
$this.v1g_1 = null;
|
|
1720
1710
|
else
|
|
1721
|
-
$this.
|
|
1711
|
+
$this.v1g_1 = unit;
|
|
1722
1712
|
return $this;
|
|
1723
1713
|
}
|
|
1724
1714
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -1734,44 +1724,44 @@
|
|
|
1734
1724
|
template = template === VOID ? null : template;
|
|
1735
1725
|
text = text === VOID ? null : text;
|
|
1736
1726
|
unit = unit === VOID ? null : unit;
|
|
1737
|
-
this.
|
|
1738
|
-
this.
|
|
1739
|
-
this.
|
|
1740
|
-
this.
|
|
1741
|
-
this.
|
|
1742
|
-
this.
|
|
1743
|
-
this.
|
|
1744
|
-
this.
|
|
1745
|
-
this.
|
|
1746
|
-
}
|
|
1747
|
-
protoOf(IngredientItem).
|
|
1727
|
+
this.n1g_1 = amount;
|
|
1728
|
+
this.o1g_1 = ingredientId;
|
|
1729
|
+
this.p1g_1 = name;
|
|
1730
|
+
this.q1g_1 = optional;
|
|
1731
|
+
this.r1g_1 = prefix;
|
|
1732
|
+
this.s1g_1 = suffix;
|
|
1733
|
+
this.t1g_1 = template;
|
|
1734
|
+
this.u1g_1 = text;
|
|
1735
|
+
this.v1g_1 = unit;
|
|
1736
|
+
}
|
|
1737
|
+
protoOf(IngredientItem).b1i = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
1748
1738
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
1749
1739
|
};
|
|
1750
|
-
protoOf(IngredientItem).
|
|
1751
|
-
amount = amount === VOID ? this.
|
|
1752
|
-
ingredientId = ingredientId === VOID ? this.
|
|
1753
|
-
name = name === VOID ? this.
|
|
1754
|
-
optional = optional === VOID ? this.
|
|
1755
|
-
prefix = prefix === VOID ? this.
|
|
1756
|
-
suffix = suffix === VOID ? this.
|
|
1757
|
-
template = template === VOID ? this.
|
|
1758
|
-
text = text === VOID ? this.
|
|
1759
|
-
unit = unit === VOID ? this.
|
|
1760
|
-
return $super === VOID ? this.
|
|
1740
|
+
protoOf(IngredientItem).w1g = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
1741
|
+
amount = amount === VOID ? this.n1g_1 : amount;
|
|
1742
|
+
ingredientId = ingredientId === VOID ? this.o1g_1 : ingredientId;
|
|
1743
|
+
name = name === VOID ? this.p1g_1 : name;
|
|
1744
|
+
optional = optional === VOID ? this.q1g_1 : optional;
|
|
1745
|
+
prefix = prefix === VOID ? this.r1g_1 : prefix;
|
|
1746
|
+
suffix = suffix === VOID ? this.s1g_1 : suffix;
|
|
1747
|
+
template = template === VOID ? this.t1g_1 : template;
|
|
1748
|
+
text = text === VOID ? this.u1g_1 : text;
|
|
1749
|
+
unit = unit === VOID ? this.v1g_1 : unit;
|
|
1750
|
+
return $super === VOID ? this.b1i(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.b1i.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
1761
1751
|
};
|
|
1762
1752
|
protoOf(IngredientItem).toString = function () {
|
|
1763
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
1753
|
+
return 'IngredientItem(amount=' + toString(this.n1g_1) + ', ingredientId=' + this.o1g_1 + ', name=' + this.p1g_1 + ', optional=' + this.q1g_1 + ', prefix=' + this.r1g_1 + ', suffix=' + this.s1g_1 + ', template=' + this.t1g_1 + ', text=' + this.u1g_1 + ', unit=' + this.v1g_1 + ')';
|
|
1764
1754
|
};
|
|
1765
1755
|
protoOf(IngredientItem).hashCode = function () {
|
|
1766
|
-
var result = this.
|
|
1767
|
-
result = imul(result, 31) + (this.
|
|
1768
|
-
result = imul(result, 31) + (this.
|
|
1769
|
-
result = imul(result, 31) + (this.
|
|
1770
|
-
result = imul(result, 31) + (this.
|
|
1771
|
-
result = imul(result, 31) + (this.
|
|
1772
|
-
result = imul(result, 31) + (this.
|
|
1773
|
-
result = imul(result, 31) + (this.
|
|
1774
|
-
result = imul(result, 31) + (this.
|
|
1756
|
+
var result = this.n1g_1 == null ? 0 : this.n1g_1.hashCode();
|
|
1757
|
+
result = imul(result, 31) + (this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1)) | 0;
|
|
1758
|
+
result = imul(result, 31) + (this.p1g_1 == null ? 0 : getStringHashCode(this.p1g_1)) | 0;
|
|
1759
|
+
result = imul(result, 31) + (this.q1g_1 == null ? 0 : getBooleanHashCode(this.q1g_1)) | 0;
|
|
1760
|
+
result = imul(result, 31) + (this.r1g_1 == null ? 0 : getStringHashCode(this.r1g_1)) | 0;
|
|
1761
|
+
result = imul(result, 31) + (this.s1g_1 == null ? 0 : getStringHashCode(this.s1g_1)) | 0;
|
|
1762
|
+
result = imul(result, 31) + (this.t1g_1 == null ? 0 : getStringHashCode(this.t1g_1)) | 0;
|
|
1763
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : getStringHashCode(this.u1g_1)) | 0;
|
|
1764
|
+
result = imul(result, 31) + (this.v1g_1 == null ? 0 : getStringHashCode(this.v1g_1)) | 0;
|
|
1775
1765
|
return result;
|
|
1776
1766
|
};
|
|
1777
1767
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -1779,23 +1769,23 @@
|
|
|
1779
1769
|
return true;
|
|
1780
1770
|
if (!(other instanceof IngredientItem))
|
|
1781
1771
|
return false;
|
|
1782
|
-
if (!equals(this.
|
|
1772
|
+
if (!equals(this.n1g_1, other.n1g_1))
|
|
1783
1773
|
return false;
|
|
1784
|
-
if (!(this.
|
|
1774
|
+
if (!(this.o1g_1 == other.o1g_1))
|
|
1785
1775
|
return false;
|
|
1786
|
-
if (!(this.
|
|
1776
|
+
if (!(this.p1g_1 == other.p1g_1))
|
|
1787
1777
|
return false;
|
|
1788
|
-
if (!(this.
|
|
1778
|
+
if (!(this.q1g_1 == other.q1g_1))
|
|
1789
1779
|
return false;
|
|
1790
|
-
if (!(this.
|
|
1780
|
+
if (!(this.r1g_1 == other.r1g_1))
|
|
1791
1781
|
return false;
|
|
1792
|
-
if (!(this.
|
|
1782
|
+
if (!(this.s1g_1 == other.s1g_1))
|
|
1793
1783
|
return false;
|
|
1794
|
-
if (!(this.
|
|
1784
|
+
if (!(this.t1g_1 == other.t1g_1))
|
|
1795
1785
|
return false;
|
|
1796
|
-
if (!(this.
|
|
1786
|
+
if (!(this.u1g_1 == other.u1g_1))
|
|
1797
1787
|
return false;
|
|
1798
|
-
if (!(this.
|
|
1788
|
+
if (!(this.v1g_1 == other.v1g_1))
|
|
1799
1789
|
return false;
|
|
1800
1790
|
return true;
|
|
1801
1791
|
};
|
|
@@ -1808,63 +1798,63 @@
|
|
|
1808
1798
|
function $serializer_4() {
|
|
1809
1799
|
$serializer_instance_4 = this;
|
|
1810
1800
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
1811
|
-
tmp0_serialDesc.
|
|
1812
|
-
tmp0_serialDesc.
|
|
1813
|
-
this.
|
|
1801
|
+
tmp0_serialDesc.ht('max', true);
|
|
1802
|
+
tmp0_serialDesc.ht('min', true);
|
|
1803
|
+
this.c1i_1 = tmp0_serialDesc;
|
|
1814
1804
|
}
|
|
1815
|
-
protoOf($serializer_4).
|
|
1816
|
-
var tmp0_desc = this.
|
|
1817
|
-
var tmp1_output = encoder.
|
|
1818
|
-
if (tmp1_output.
|
|
1819
|
-
tmp1_output.
|
|
1805
|
+
protoOf($serializer_4).d1i = function (encoder, value) {
|
|
1806
|
+
var tmp0_desc = this.c1i_1;
|
|
1807
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
1808
|
+
if (tmp1_output.un(tmp0_desc, 0) ? true : !(value.e1i_1 == null)) {
|
|
1809
|
+
tmp1_output.qn(tmp0_desc, 0, DoubleSerializer_getInstance(), value.e1i_1);
|
|
1820
1810
|
}
|
|
1821
|
-
if (tmp1_output.
|
|
1822
|
-
tmp1_output.
|
|
1811
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.f1i_1 == null)) {
|
|
1812
|
+
tmp1_output.qn(tmp0_desc, 1, DoubleSerializer_getInstance(), value.f1i_1);
|
|
1823
1813
|
}
|
|
1824
|
-
tmp1_output.
|
|
1814
|
+
tmp1_output.zl(tmp0_desc);
|
|
1825
1815
|
};
|
|
1826
|
-
protoOf($serializer_4).
|
|
1827
|
-
return this.
|
|
1816
|
+
protoOf($serializer_4).cj = function (encoder, value) {
|
|
1817
|
+
return this.d1i(encoder, value instanceof Range ? value : THROW_CCE());
|
|
1828
1818
|
};
|
|
1829
|
-
protoOf($serializer_4).
|
|
1830
|
-
var tmp0_desc = this.
|
|
1819
|
+
protoOf($serializer_4).dj = function (decoder) {
|
|
1820
|
+
var tmp0_desc = this.c1i_1;
|
|
1831
1821
|
var tmp1_flag = true;
|
|
1832
1822
|
var tmp2_index = 0;
|
|
1833
1823
|
var tmp3_bitMask0 = 0;
|
|
1834
1824
|
var tmp4_local0 = null;
|
|
1835
1825
|
var tmp5_local1 = null;
|
|
1836
|
-
var tmp6_input = decoder.
|
|
1837
|
-
if (tmp6_input.
|
|
1838
|
-
tmp4_local0 = tmp6_input.
|
|
1826
|
+
var tmp6_input = decoder.yl(tmp0_desc);
|
|
1827
|
+
if (tmp6_input.om()) {
|
|
1828
|
+
tmp4_local0 = tmp6_input.mm(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
1839
1829
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1840
|
-
tmp5_local1 = tmp6_input.
|
|
1830
|
+
tmp5_local1 = tmp6_input.mm(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
1841
1831
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1842
1832
|
} else
|
|
1843
1833
|
while (tmp1_flag) {
|
|
1844
|
-
tmp2_index = tmp6_input.
|
|
1834
|
+
tmp2_index = tmp6_input.pm(tmp0_desc);
|
|
1845
1835
|
switch (tmp2_index) {
|
|
1846
1836
|
case -1:
|
|
1847
1837
|
tmp1_flag = false;
|
|
1848
1838
|
break;
|
|
1849
1839
|
case 0:
|
|
1850
|
-
tmp4_local0 = tmp6_input.
|
|
1840
|
+
tmp4_local0 = tmp6_input.mm(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
1851
1841
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1852
1842
|
break;
|
|
1853
1843
|
case 1:
|
|
1854
|
-
tmp5_local1 = tmp6_input.
|
|
1844
|
+
tmp5_local1 = tmp6_input.mm(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
1855
1845
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1856
1846
|
break;
|
|
1857
1847
|
default:
|
|
1858
1848
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1859
1849
|
}
|
|
1860
1850
|
}
|
|
1861
|
-
tmp6_input.
|
|
1851
|
+
tmp6_input.zl(tmp0_desc);
|
|
1862
1852
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1863
1853
|
};
|
|
1864
|
-
protoOf($serializer_4).
|
|
1865
|
-
return this.
|
|
1854
|
+
protoOf($serializer_4).bj = function () {
|
|
1855
|
+
return this.c1i_1;
|
|
1866
1856
|
};
|
|
1867
|
-
protoOf($serializer_4).
|
|
1857
|
+
protoOf($serializer_4).jt = function () {
|
|
1868
1858
|
// Inline function 'kotlin.arrayOf' call
|
|
1869
1859
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1870
1860
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1878,16 +1868,16 @@
|
|
|
1878
1868
|
}
|
|
1879
1869
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
1880
1870
|
if (!(0 === (0 & seen0))) {
|
|
1881
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
1871
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().c1i_1);
|
|
1882
1872
|
}
|
|
1883
1873
|
if (0 === (seen0 & 1))
|
|
1884
|
-
$this.
|
|
1874
|
+
$this.e1i_1 = null;
|
|
1885
1875
|
else
|
|
1886
|
-
$this.
|
|
1876
|
+
$this.e1i_1 = max;
|
|
1887
1877
|
if (0 === (seen0 & 2))
|
|
1888
|
-
$this.
|
|
1878
|
+
$this.f1i_1 = null;
|
|
1889
1879
|
else
|
|
1890
|
-
$this.
|
|
1880
|
+
$this.f1i_1 = min;
|
|
1891
1881
|
return $this;
|
|
1892
1882
|
}
|
|
1893
1883
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -1896,15 +1886,15 @@
|
|
|
1896
1886
|
function Range(max, min) {
|
|
1897
1887
|
max = max === VOID ? null : max;
|
|
1898
1888
|
min = min === VOID ? null : min;
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1889
|
+
this.e1i_1 = max;
|
|
1890
|
+
this.f1i_1 = min;
|
|
1901
1891
|
}
|
|
1902
1892
|
protoOf(Range).toString = function () {
|
|
1903
|
-
return 'Range(max=' + this.
|
|
1893
|
+
return 'Range(max=' + this.e1i_1 + ', min=' + this.f1i_1 + ')';
|
|
1904
1894
|
};
|
|
1905
1895
|
protoOf(Range).hashCode = function () {
|
|
1906
|
-
var result = this.
|
|
1907
|
-
result = imul(result, 31) + (this.
|
|
1896
|
+
var result = this.e1i_1 == null ? 0 : getNumberHashCode(this.e1i_1);
|
|
1897
|
+
result = imul(result, 31) + (this.f1i_1 == null ? 0 : getNumberHashCode(this.f1i_1)) | 0;
|
|
1908
1898
|
return result;
|
|
1909
1899
|
};
|
|
1910
1900
|
protoOf(Range).equals = function (other) {
|
|
@@ -1912,9 +1902,9 @@
|
|
|
1912
1902
|
return true;
|
|
1913
1903
|
if (!(other instanceof Range))
|
|
1914
1904
|
return false;
|
|
1915
|
-
if (!equals(this.
|
|
1905
|
+
if (!equals(this.e1i_1, other.e1i_1))
|
|
1916
1906
|
return false;
|
|
1917
|
-
if (!equals(this.
|
|
1907
|
+
if (!equals(this.f1i_1, other.f1i_1))
|
|
1918
1908
|
return false;
|
|
1919
1909
|
return true;
|
|
1920
1910
|
};
|
|
@@ -1928,7 +1918,7 @@
|
|
|
1928
1918
|
// Inline function 'kotlin.arrayOf' call
|
|
1929
1919
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1930
1920
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1931
|
-
tmp.
|
|
1921
|
+
tmp.g1i_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
1932
1922
|
}
|
|
1933
1923
|
var Companion_instance_3;
|
|
1934
1924
|
function Companion_getInstance_3() {
|
|
@@ -1939,33 +1929,33 @@
|
|
|
1939
1929
|
function $serializer_5() {
|
|
1940
1930
|
$serializer_instance_5 = this;
|
|
1941
1931
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Instruction', this, 4);
|
|
1942
|
-
tmp0_serialDesc.
|
|
1943
|
-
tmp0_serialDesc.
|
|
1944
|
-
tmp0_serialDesc.
|
|
1945
|
-
tmp0_serialDesc.
|
|
1946
|
-
this.
|
|
1932
|
+
tmp0_serialDesc.ht('description', false);
|
|
1933
|
+
tmp0_serialDesc.ht('descriptionTemplate', true);
|
|
1934
|
+
tmp0_serialDesc.ht('images', true);
|
|
1935
|
+
tmp0_serialDesc.ht('stepNumber', true);
|
|
1936
|
+
this.h1i_1 = tmp0_serialDesc;
|
|
1947
1937
|
}
|
|
1948
|
-
protoOf($serializer_5).
|
|
1949
|
-
var tmp0_desc = this.
|
|
1950
|
-
var tmp1_output = encoder.
|
|
1951
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
1952
|
-
tmp1_output.
|
|
1953
|
-
if (tmp1_output.
|
|
1954
|
-
tmp1_output.
|
|
1938
|
+
protoOf($serializer_5).i1i = function (encoder, value) {
|
|
1939
|
+
var tmp0_desc = this.h1i_1;
|
|
1940
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
1941
|
+
var tmp2_cached = Companion_getInstance_3().g1i_1;
|
|
1942
|
+
tmp1_output.mn(tmp0_desc, 0, value.x1g_1);
|
|
1943
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.y1g_1 == null)) {
|
|
1944
|
+
tmp1_output.qn(tmp0_desc, 1, StringSerializer_getInstance(), value.y1g_1);
|
|
1955
1945
|
}
|
|
1956
|
-
if (tmp1_output.
|
|
1957
|
-
tmp1_output.
|
|
1946
|
+
if (tmp1_output.un(tmp0_desc, 2) ? true : !(value.z1g_1 == null)) {
|
|
1947
|
+
tmp1_output.qn(tmp0_desc, 2, tmp2_cached[2].t1(), value.z1g_1);
|
|
1958
1948
|
}
|
|
1959
|
-
if (tmp1_output.
|
|
1960
|
-
tmp1_output.
|
|
1949
|
+
if (tmp1_output.un(tmp0_desc, 3) ? true : !(value.a1h_1 == null)) {
|
|
1950
|
+
tmp1_output.qn(tmp0_desc, 3, DoubleSerializer_getInstance(), value.a1h_1);
|
|
1961
1951
|
}
|
|
1962
|
-
tmp1_output.
|
|
1952
|
+
tmp1_output.zl(tmp0_desc);
|
|
1963
1953
|
};
|
|
1964
|
-
protoOf($serializer_5).
|
|
1965
|
-
return this.
|
|
1954
|
+
protoOf($serializer_5).cj = function (encoder, value) {
|
|
1955
|
+
return this.i1i(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
1966
1956
|
};
|
|
1967
|
-
protoOf($serializer_5).
|
|
1968
|
-
var tmp0_desc = this.
|
|
1957
|
+
protoOf($serializer_5).dj = function (decoder) {
|
|
1958
|
+
var tmp0_desc = this.h1i_1;
|
|
1969
1959
|
var tmp1_flag = true;
|
|
1970
1960
|
var tmp2_index = 0;
|
|
1971
1961
|
var tmp3_bitMask0 = 0;
|
|
@@ -1973,52 +1963,52 @@
|
|
|
1973
1963
|
var tmp5_local1 = null;
|
|
1974
1964
|
var tmp6_local2 = null;
|
|
1975
1965
|
var tmp7_local3 = null;
|
|
1976
|
-
var tmp8_input = decoder.
|
|
1977
|
-
var tmp9_cached = Companion_getInstance_3().
|
|
1978
|
-
if (tmp8_input.
|
|
1979
|
-
tmp4_local0 = tmp8_input.
|
|
1966
|
+
var tmp8_input = decoder.yl(tmp0_desc);
|
|
1967
|
+
var tmp9_cached = Companion_getInstance_3().g1i_1;
|
|
1968
|
+
if (tmp8_input.om()) {
|
|
1969
|
+
tmp4_local0 = tmp8_input.im(tmp0_desc, 0);
|
|
1980
1970
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1981
|
-
tmp5_local1 = tmp8_input.
|
|
1971
|
+
tmp5_local1 = tmp8_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1982
1972
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1983
|
-
tmp6_local2 = tmp8_input.
|
|
1973
|
+
tmp6_local2 = tmp8_input.mm(tmp0_desc, 2, tmp9_cached[2].t1(), tmp6_local2);
|
|
1984
1974
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1985
|
-
tmp7_local3 = tmp8_input.
|
|
1975
|
+
tmp7_local3 = tmp8_input.mm(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
1986
1976
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1987
1977
|
} else
|
|
1988
1978
|
while (tmp1_flag) {
|
|
1989
|
-
tmp2_index = tmp8_input.
|
|
1979
|
+
tmp2_index = tmp8_input.pm(tmp0_desc);
|
|
1990
1980
|
switch (tmp2_index) {
|
|
1991
1981
|
case -1:
|
|
1992
1982
|
tmp1_flag = false;
|
|
1993
1983
|
break;
|
|
1994
1984
|
case 0:
|
|
1995
|
-
tmp4_local0 = tmp8_input.
|
|
1985
|
+
tmp4_local0 = tmp8_input.im(tmp0_desc, 0);
|
|
1996
1986
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1997
1987
|
break;
|
|
1998
1988
|
case 1:
|
|
1999
|
-
tmp5_local1 = tmp8_input.
|
|
1989
|
+
tmp5_local1 = tmp8_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2000
1990
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2001
1991
|
break;
|
|
2002
1992
|
case 2:
|
|
2003
|
-
tmp6_local2 = tmp8_input.
|
|
1993
|
+
tmp6_local2 = tmp8_input.mm(tmp0_desc, 2, tmp9_cached[2].t1(), tmp6_local2);
|
|
2004
1994
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2005
1995
|
break;
|
|
2006
1996
|
case 3:
|
|
2007
|
-
tmp7_local3 = tmp8_input.
|
|
1997
|
+
tmp7_local3 = tmp8_input.mm(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
2008
1998
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2009
1999
|
break;
|
|
2010
2000
|
default:
|
|
2011
2001
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2012
2002
|
}
|
|
2013
2003
|
}
|
|
2014
|
-
tmp8_input.
|
|
2004
|
+
tmp8_input.zl(tmp0_desc);
|
|
2015
2005
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2016
2006
|
};
|
|
2017
|
-
protoOf($serializer_5).
|
|
2018
|
-
return this.
|
|
2007
|
+
protoOf($serializer_5).bj = function () {
|
|
2008
|
+
return this.h1i_1;
|
|
2019
2009
|
};
|
|
2020
|
-
protoOf($serializer_5).
|
|
2021
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
2010
|
+
protoOf($serializer_5).jt = function () {
|
|
2011
|
+
var tmp0_cached = Companion_getInstance_3().g1i_1;
|
|
2022
2012
|
// Inline function 'kotlin.arrayOf' call
|
|
2023
2013
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2024
2014
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2032,21 +2022,21 @@
|
|
|
2032
2022
|
}
|
|
2033
2023
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
2034
2024
|
if (!(1 === (1 & seen0))) {
|
|
2035
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().
|
|
2025
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().h1i_1);
|
|
2036
2026
|
}
|
|
2037
|
-
$this.
|
|
2027
|
+
$this.x1g_1 = description;
|
|
2038
2028
|
if (0 === (seen0 & 2))
|
|
2039
|
-
$this.
|
|
2029
|
+
$this.y1g_1 = null;
|
|
2040
2030
|
else
|
|
2041
|
-
$this.
|
|
2031
|
+
$this.y1g_1 = descriptionTemplate;
|
|
2042
2032
|
if (0 === (seen0 & 4))
|
|
2043
|
-
$this.
|
|
2033
|
+
$this.z1g_1 = null;
|
|
2044
2034
|
else
|
|
2045
|
-
$this.
|
|
2035
|
+
$this.z1g_1 = images;
|
|
2046
2036
|
if (0 === (seen0 & 8))
|
|
2047
|
-
$this.
|
|
2037
|
+
$this.a1h_1 = null;
|
|
2048
2038
|
else
|
|
2049
|
-
$this.
|
|
2039
|
+
$this.a1h_1 = stepNumber;
|
|
2050
2040
|
return $this;
|
|
2051
2041
|
}
|
|
2052
2042
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -2057,29 +2047,29 @@
|
|
|
2057
2047
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
2058
2048
|
images = images === VOID ? null : images;
|
|
2059
2049
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
2060
|
-
this.
|
|
2061
|
-
this.
|
|
2062
|
-
this.
|
|
2063
|
-
this.
|
|
2050
|
+
this.x1g_1 = description;
|
|
2051
|
+
this.y1g_1 = descriptionTemplate;
|
|
2052
|
+
this.z1g_1 = images;
|
|
2053
|
+
this.a1h_1 = stepNumber;
|
|
2064
2054
|
}
|
|
2065
|
-
protoOf(Instruction).
|
|
2055
|
+
protoOf(Instruction).j1i = function (description, descriptionTemplate, images, stepNumber) {
|
|
2066
2056
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
2067
2057
|
};
|
|
2068
|
-
protoOf(Instruction).
|
|
2069
|
-
description = description === VOID ? this.
|
|
2070
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
2071
|
-
images = images === VOID ? this.
|
|
2072
|
-
stepNumber = stepNumber === VOID ? this.
|
|
2073
|
-
return $super === VOID ? this.
|
|
2058
|
+
protoOf(Instruction).b1h = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2059
|
+
description = description === VOID ? this.x1g_1 : description;
|
|
2060
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.y1g_1 : descriptionTemplate;
|
|
2061
|
+
images = images === VOID ? this.z1g_1 : images;
|
|
2062
|
+
stepNumber = stepNumber === VOID ? this.a1h_1 : stepNumber;
|
|
2063
|
+
return $super === VOID ? this.j1i(description, descriptionTemplate, images, stepNumber) : $super.j1i.call(this, description, descriptionTemplate, images, stepNumber);
|
|
2074
2064
|
};
|
|
2075
2065
|
protoOf(Instruction).toString = function () {
|
|
2076
|
-
return 'Instruction(description=' + this.
|
|
2066
|
+
return 'Instruction(description=' + this.x1g_1 + ', descriptionTemplate=' + this.y1g_1 + ', images=' + toString(this.z1g_1) + ', stepNumber=' + this.a1h_1 + ')';
|
|
2077
2067
|
};
|
|
2078
2068
|
protoOf(Instruction).hashCode = function () {
|
|
2079
|
-
var result = getStringHashCode(this.
|
|
2080
|
-
result = imul(result, 31) + (this.
|
|
2081
|
-
result = imul(result, 31) + (this.
|
|
2082
|
-
result = imul(result, 31) + (this.
|
|
2069
|
+
var result = getStringHashCode(this.x1g_1);
|
|
2070
|
+
result = imul(result, 31) + (this.y1g_1 == null ? 0 : getStringHashCode(this.y1g_1)) | 0;
|
|
2071
|
+
result = imul(result, 31) + (this.z1g_1 == null ? 0 : hashCode(this.z1g_1)) | 0;
|
|
2072
|
+
result = imul(result, 31) + (this.a1h_1 == null ? 0 : getNumberHashCode(this.a1h_1)) | 0;
|
|
2083
2073
|
return result;
|
|
2084
2074
|
};
|
|
2085
2075
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -2087,85 +2077,85 @@
|
|
|
2087
2077
|
return true;
|
|
2088
2078
|
if (!(other instanceof Instruction))
|
|
2089
2079
|
return false;
|
|
2090
|
-
if (!(this.
|
|
2080
|
+
if (!(this.x1g_1 === other.x1g_1))
|
|
2091
2081
|
return false;
|
|
2092
|
-
if (!(this.
|
|
2082
|
+
if (!(this.y1g_1 == other.y1g_1))
|
|
2093
2083
|
return false;
|
|
2094
|
-
if (!equals(this.
|
|
2084
|
+
if (!equals(this.z1g_1, other.z1g_1))
|
|
2095
2085
|
return false;
|
|
2096
|
-
if (!equals(this.
|
|
2086
|
+
if (!equals(this.a1h_1, other.a1h_1))
|
|
2097
2087
|
return false;
|
|
2098
2088
|
return true;
|
|
2099
2089
|
};
|
|
2100
2090
|
function $serializer_6() {
|
|
2101
2091
|
$serializer_instance_6 = this;
|
|
2102
2092
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Serves', this, 3);
|
|
2103
|
-
tmp0_serialDesc.
|
|
2104
|
-
tmp0_serialDesc.
|
|
2105
|
-
tmp0_serialDesc.
|
|
2106
|
-
this.
|
|
2093
|
+
tmp0_serialDesc.ht('amount', true);
|
|
2094
|
+
tmp0_serialDesc.ht('text', true);
|
|
2095
|
+
tmp0_serialDesc.ht('unit', false);
|
|
2096
|
+
this.k1i_1 = tmp0_serialDesc;
|
|
2107
2097
|
}
|
|
2108
|
-
protoOf($serializer_6).
|
|
2109
|
-
var tmp0_desc = this.
|
|
2110
|
-
var tmp1_output = encoder.
|
|
2111
|
-
if (tmp1_output.
|
|
2112
|
-
tmp1_output.
|
|
2098
|
+
protoOf($serializer_6).l1i = function (encoder, value) {
|
|
2099
|
+
var tmp0_desc = this.k1i_1;
|
|
2100
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
2101
|
+
if (tmp1_output.un(tmp0_desc, 0) ? true : !(value.m1i_1 == null)) {
|
|
2102
|
+
tmp1_output.qn(tmp0_desc, 0, $serializer_getInstance_4(), value.m1i_1);
|
|
2113
2103
|
}
|
|
2114
|
-
if (tmp1_output.
|
|
2115
|
-
tmp1_output.
|
|
2104
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.n1i_1 == null)) {
|
|
2105
|
+
tmp1_output.qn(tmp0_desc, 1, StringSerializer_getInstance(), value.n1i_1);
|
|
2116
2106
|
}
|
|
2117
|
-
tmp1_output.
|
|
2118
|
-
tmp1_output.
|
|
2107
|
+
tmp1_output.mn(tmp0_desc, 2, value.o1i_1);
|
|
2108
|
+
tmp1_output.zl(tmp0_desc);
|
|
2119
2109
|
};
|
|
2120
|
-
protoOf($serializer_6).
|
|
2121
|
-
return this.
|
|
2110
|
+
protoOf($serializer_6).cj = function (encoder, value) {
|
|
2111
|
+
return this.l1i(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2122
2112
|
};
|
|
2123
|
-
protoOf($serializer_6).
|
|
2124
|
-
var tmp0_desc = this.
|
|
2113
|
+
protoOf($serializer_6).dj = function (decoder) {
|
|
2114
|
+
var tmp0_desc = this.k1i_1;
|
|
2125
2115
|
var tmp1_flag = true;
|
|
2126
2116
|
var tmp2_index = 0;
|
|
2127
2117
|
var tmp3_bitMask0 = 0;
|
|
2128
2118
|
var tmp4_local0 = null;
|
|
2129
2119
|
var tmp5_local1 = null;
|
|
2130
2120
|
var tmp6_local2 = null;
|
|
2131
|
-
var tmp7_input = decoder.
|
|
2132
|
-
if (tmp7_input.
|
|
2133
|
-
tmp4_local0 = tmp7_input.
|
|
2121
|
+
var tmp7_input = decoder.yl(tmp0_desc);
|
|
2122
|
+
if (tmp7_input.om()) {
|
|
2123
|
+
tmp4_local0 = tmp7_input.mm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
2134
2124
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2135
|
-
tmp5_local1 = tmp7_input.
|
|
2125
|
+
tmp5_local1 = tmp7_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2136
2126
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2137
|
-
tmp6_local2 = tmp7_input.
|
|
2127
|
+
tmp6_local2 = tmp7_input.im(tmp0_desc, 2);
|
|
2138
2128
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2139
2129
|
} else
|
|
2140
2130
|
while (tmp1_flag) {
|
|
2141
|
-
tmp2_index = tmp7_input.
|
|
2131
|
+
tmp2_index = tmp7_input.pm(tmp0_desc);
|
|
2142
2132
|
switch (tmp2_index) {
|
|
2143
2133
|
case -1:
|
|
2144
2134
|
tmp1_flag = false;
|
|
2145
2135
|
break;
|
|
2146
2136
|
case 0:
|
|
2147
|
-
tmp4_local0 = tmp7_input.
|
|
2137
|
+
tmp4_local0 = tmp7_input.mm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
2148
2138
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2149
2139
|
break;
|
|
2150
2140
|
case 1:
|
|
2151
|
-
tmp5_local1 = tmp7_input.
|
|
2141
|
+
tmp5_local1 = tmp7_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2152
2142
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2153
2143
|
break;
|
|
2154
2144
|
case 2:
|
|
2155
|
-
tmp6_local2 = tmp7_input.
|
|
2145
|
+
tmp6_local2 = tmp7_input.im(tmp0_desc, 2);
|
|
2156
2146
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2157
2147
|
break;
|
|
2158
2148
|
default:
|
|
2159
2149
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2160
2150
|
}
|
|
2161
2151
|
}
|
|
2162
|
-
tmp7_input.
|
|
2152
|
+
tmp7_input.zl(tmp0_desc);
|
|
2163
2153
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2164
2154
|
};
|
|
2165
|
-
protoOf($serializer_6).
|
|
2166
|
-
return this.
|
|
2155
|
+
protoOf($serializer_6).bj = function () {
|
|
2156
|
+
return this.k1i_1;
|
|
2167
2157
|
};
|
|
2168
|
-
protoOf($serializer_6).
|
|
2158
|
+
protoOf($serializer_6).jt = function () {
|
|
2169
2159
|
// Inline function 'kotlin.arrayOf' call
|
|
2170
2160
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2171
2161
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2179,17 +2169,17 @@
|
|
|
2179
2169
|
}
|
|
2180
2170
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2181
2171
|
if (!(4 === (4 & seen0))) {
|
|
2182
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_6().
|
|
2172
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_6().k1i_1);
|
|
2183
2173
|
}
|
|
2184
2174
|
if (0 === (seen0 & 1))
|
|
2185
|
-
$this.
|
|
2175
|
+
$this.m1i_1 = null;
|
|
2186
2176
|
else
|
|
2187
|
-
$this.
|
|
2177
|
+
$this.m1i_1 = amount;
|
|
2188
2178
|
if (0 === (seen0 & 2))
|
|
2189
|
-
$this.
|
|
2179
|
+
$this.n1i_1 = null;
|
|
2190
2180
|
else
|
|
2191
|
-
$this.
|
|
2192
|
-
$this.
|
|
2181
|
+
$this.n1i_1 = text;
|
|
2182
|
+
$this.o1i_1 = unit;
|
|
2193
2183
|
return $this;
|
|
2194
2184
|
}
|
|
2195
2185
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2198,12 +2188,12 @@
|
|
|
2198
2188
|
function Serves() {
|
|
2199
2189
|
}
|
|
2200
2190
|
protoOf(Serves).toString = function () {
|
|
2201
|
-
return 'Serves(amount=' + toString(this.
|
|
2191
|
+
return 'Serves(amount=' + toString(this.m1i_1) + ', text=' + this.n1i_1 + ', unit=' + this.o1i_1 + ')';
|
|
2202
2192
|
};
|
|
2203
2193
|
protoOf(Serves).hashCode = function () {
|
|
2204
|
-
var result = this.
|
|
2205
|
-
result = imul(result, 31) + (this.
|
|
2206
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2194
|
+
var result = this.m1i_1 == null ? 0 : this.m1i_1.hashCode();
|
|
2195
|
+
result = imul(result, 31) + (this.n1i_1 == null ? 0 : getStringHashCode(this.n1i_1)) | 0;
|
|
2196
|
+
result = imul(result, 31) + getStringHashCode(this.o1i_1) | 0;
|
|
2207
2197
|
return result;
|
|
2208
2198
|
};
|
|
2209
2199
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2211,11 +2201,11 @@
|
|
|
2211
2201
|
return true;
|
|
2212
2202
|
if (!(other instanceof Serves))
|
|
2213
2203
|
return false;
|
|
2214
|
-
if (!equals(this.
|
|
2204
|
+
if (!equals(this.m1i_1, other.m1i_1))
|
|
2215
2205
|
return false;
|
|
2216
|
-
if (!(this.
|
|
2206
|
+
if (!(this.n1i_1 == other.n1i_1))
|
|
2217
2207
|
return false;
|
|
2218
|
-
if (!(this.
|
|
2208
|
+
if (!(this.o1i_1 === other.o1i_1))
|
|
2219
2209
|
return false;
|
|
2220
2210
|
return true;
|
|
2221
2211
|
};
|
|
@@ -2228,74 +2218,74 @@
|
|
|
2228
2218
|
function $serializer_7() {
|
|
2229
2219
|
$serializer_instance_7 = this;
|
|
2230
2220
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Timing', this, 3);
|
|
2231
|
-
tmp0_serialDesc.
|
|
2232
|
-
tmp0_serialDesc.
|
|
2233
|
-
tmp0_serialDesc.
|
|
2234
|
-
this.
|
|
2221
|
+
tmp0_serialDesc.ht('durationInMins', true);
|
|
2222
|
+
tmp0_serialDesc.ht('qualifier', true);
|
|
2223
|
+
tmp0_serialDesc.ht('text', true);
|
|
2224
|
+
this.p1i_1 = tmp0_serialDesc;
|
|
2235
2225
|
}
|
|
2236
|
-
protoOf($serializer_7).
|
|
2237
|
-
var tmp0_desc = this.
|
|
2238
|
-
var tmp1_output = encoder.
|
|
2239
|
-
if (tmp1_output.
|
|
2240
|
-
tmp1_output.
|
|
2226
|
+
protoOf($serializer_7).q1i = function (encoder, value) {
|
|
2227
|
+
var tmp0_desc = this.p1i_1;
|
|
2228
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
2229
|
+
if (tmp1_output.un(tmp0_desc, 0) ? true : !(value.r1i_1 == null)) {
|
|
2230
|
+
tmp1_output.qn(tmp0_desc, 0, $serializer_getInstance_4(), value.r1i_1);
|
|
2241
2231
|
}
|
|
2242
|
-
if (tmp1_output.
|
|
2243
|
-
tmp1_output.
|
|
2232
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.s1i_1 == null)) {
|
|
2233
|
+
tmp1_output.qn(tmp0_desc, 1, StringSerializer_getInstance(), value.s1i_1);
|
|
2244
2234
|
}
|
|
2245
|
-
if (tmp1_output.
|
|
2246
|
-
tmp1_output.
|
|
2235
|
+
if (tmp1_output.un(tmp0_desc, 2) ? true : !(value.t1i_1 == null)) {
|
|
2236
|
+
tmp1_output.qn(tmp0_desc, 2, StringSerializer_getInstance(), value.t1i_1);
|
|
2247
2237
|
}
|
|
2248
|
-
tmp1_output.
|
|
2238
|
+
tmp1_output.zl(tmp0_desc);
|
|
2249
2239
|
};
|
|
2250
|
-
protoOf($serializer_7).
|
|
2251
|
-
return this.
|
|
2240
|
+
protoOf($serializer_7).cj = function (encoder, value) {
|
|
2241
|
+
return this.q1i(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2252
2242
|
};
|
|
2253
|
-
protoOf($serializer_7).
|
|
2254
|
-
var tmp0_desc = this.
|
|
2243
|
+
protoOf($serializer_7).dj = function (decoder) {
|
|
2244
|
+
var tmp0_desc = this.p1i_1;
|
|
2255
2245
|
var tmp1_flag = true;
|
|
2256
2246
|
var tmp2_index = 0;
|
|
2257
2247
|
var tmp3_bitMask0 = 0;
|
|
2258
2248
|
var tmp4_local0 = null;
|
|
2259
2249
|
var tmp5_local1 = null;
|
|
2260
2250
|
var tmp6_local2 = null;
|
|
2261
|
-
var tmp7_input = decoder.
|
|
2262
|
-
if (tmp7_input.
|
|
2263
|
-
tmp4_local0 = tmp7_input.
|
|
2251
|
+
var tmp7_input = decoder.yl(tmp0_desc);
|
|
2252
|
+
if (tmp7_input.om()) {
|
|
2253
|
+
tmp4_local0 = tmp7_input.mm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
2264
2254
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2265
|
-
tmp5_local1 = tmp7_input.
|
|
2255
|
+
tmp5_local1 = tmp7_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2266
2256
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2267
|
-
tmp6_local2 = tmp7_input.
|
|
2257
|
+
tmp6_local2 = tmp7_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2268
2258
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2269
2259
|
} else
|
|
2270
2260
|
while (tmp1_flag) {
|
|
2271
|
-
tmp2_index = tmp7_input.
|
|
2261
|
+
tmp2_index = tmp7_input.pm(tmp0_desc);
|
|
2272
2262
|
switch (tmp2_index) {
|
|
2273
2263
|
case -1:
|
|
2274
2264
|
tmp1_flag = false;
|
|
2275
2265
|
break;
|
|
2276
2266
|
case 0:
|
|
2277
|
-
tmp4_local0 = tmp7_input.
|
|
2267
|
+
tmp4_local0 = tmp7_input.mm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
2278
2268
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2279
2269
|
break;
|
|
2280
2270
|
case 1:
|
|
2281
|
-
tmp5_local1 = tmp7_input.
|
|
2271
|
+
tmp5_local1 = tmp7_input.mm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2282
2272
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2283
2273
|
break;
|
|
2284
2274
|
case 2:
|
|
2285
|
-
tmp6_local2 = tmp7_input.
|
|
2275
|
+
tmp6_local2 = tmp7_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2286
2276
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2287
2277
|
break;
|
|
2288
2278
|
default:
|
|
2289
2279
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2290
2280
|
}
|
|
2291
2281
|
}
|
|
2292
|
-
tmp7_input.
|
|
2282
|
+
tmp7_input.zl(tmp0_desc);
|
|
2293
2283
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2294
2284
|
};
|
|
2295
|
-
protoOf($serializer_7).
|
|
2296
|
-
return this.
|
|
2285
|
+
protoOf($serializer_7).bj = function () {
|
|
2286
|
+
return this.p1i_1;
|
|
2297
2287
|
};
|
|
2298
|
-
protoOf($serializer_7).
|
|
2288
|
+
protoOf($serializer_7).jt = function () {
|
|
2299
2289
|
// Inline function 'kotlin.arrayOf' call
|
|
2300
2290
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2301
2291
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2309,20 +2299,20 @@
|
|
|
2309
2299
|
}
|
|
2310
2300
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2311
2301
|
if (!(0 === (0 & seen0))) {
|
|
2312
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_7().
|
|
2302
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_7().p1i_1);
|
|
2313
2303
|
}
|
|
2314
2304
|
if (0 === (seen0 & 1))
|
|
2315
|
-
$this.
|
|
2305
|
+
$this.r1i_1 = null;
|
|
2316
2306
|
else
|
|
2317
|
-
$this.
|
|
2307
|
+
$this.r1i_1 = durationInMins;
|
|
2318
2308
|
if (0 === (seen0 & 2))
|
|
2319
|
-
$this.
|
|
2309
|
+
$this.s1i_1 = null;
|
|
2320
2310
|
else
|
|
2321
|
-
$this.
|
|
2311
|
+
$this.s1i_1 = qualifier;
|
|
2322
2312
|
if (0 === (seen0 & 4))
|
|
2323
|
-
$this.
|
|
2313
|
+
$this.t1i_1 = null;
|
|
2324
2314
|
else
|
|
2325
|
-
$this.
|
|
2315
|
+
$this.t1i_1 = text;
|
|
2326
2316
|
return $this;
|
|
2327
2317
|
}
|
|
2328
2318
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2332,17 +2322,17 @@
|
|
|
2332
2322
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2333
2323
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2334
2324
|
text = text === VOID ? null : text;
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2325
|
+
this.r1i_1 = durationInMins;
|
|
2326
|
+
this.s1i_1 = qualifier;
|
|
2327
|
+
this.t1i_1 = text;
|
|
2338
2328
|
}
|
|
2339
2329
|
protoOf(Timing).toString = function () {
|
|
2340
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2330
|
+
return 'Timing(durationInMins=' + toString(this.r1i_1) + ', qualifier=' + this.s1i_1 + ', text=' + this.t1i_1 + ')';
|
|
2341
2331
|
};
|
|
2342
2332
|
protoOf(Timing).hashCode = function () {
|
|
2343
|
-
var result = this.
|
|
2344
|
-
result = imul(result, 31) + (this.
|
|
2345
|
-
result = imul(result, 31) + (this.
|
|
2333
|
+
var result = this.r1i_1 == null ? 0 : this.r1i_1.hashCode();
|
|
2334
|
+
result = imul(result, 31) + (this.s1i_1 == null ? 0 : getStringHashCode(this.s1i_1)) | 0;
|
|
2335
|
+
result = imul(result, 31) + (this.t1i_1 == null ? 0 : getStringHashCode(this.t1i_1)) | 0;
|
|
2346
2336
|
return result;
|
|
2347
2337
|
};
|
|
2348
2338
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2350,29 +2340,29 @@
|
|
|
2350
2340
|
return true;
|
|
2351
2341
|
if (!(other instanceof Timing))
|
|
2352
2342
|
return false;
|
|
2353
|
-
if (!equals(this.
|
|
2343
|
+
if (!equals(this.r1i_1, other.r1i_1))
|
|
2354
2344
|
return false;
|
|
2355
|
-
if (!(this.
|
|
2345
|
+
if (!(this.s1i_1 == other.s1i_1))
|
|
2356
2346
|
return false;
|
|
2357
|
-
if (!(this.
|
|
2347
|
+
if (!(this.t1i_1 == other.t1i_1))
|
|
2358
2348
|
return false;
|
|
2359
2349
|
return true;
|
|
2360
2350
|
};
|
|
2361
2351
|
function ParsedTemplate(elements) {
|
|
2362
|
-
this.
|
|
2352
|
+
this.n1f_1 = elements;
|
|
2363
2353
|
}
|
|
2364
2354
|
protoOf(ParsedTemplate).toString = function () {
|
|
2365
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
2355
|
+
return 'ParsedTemplate(elements=' + toString_0(this.n1f_1) + ')';
|
|
2366
2356
|
};
|
|
2367
2357
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
2368
|
-
return hashCode(this.
|
|
2358
|
+
return hashCode(this.n1f_1);
|
|
2369
2359
|
};
|
|
2370
2360
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
2371
2361
|
if (this === other)
|
|
2372
2362
|
return true;
|
|
2373
2363
|
if (!(other instanceof ParsedTemplate))
|
|
2374
2364
|
return false;
|
|
2375
|
-
if (!equals(this.
|
|
2365
|
+
if (!equals(this.n1f_1, other.n1f_1))
|
|
2376
2366
|
return false;
|
|
2377
2367
|
return true;
|
|
2378
2368
|
};
|
|
@@ -2391,36 +2381,36 @@
|
|
|
2391
2381
|
var _iterator__ex2g4s = pattern.ya(template).h();
|
|
2392
2382
|
while (_iterator__ex2g4s.i()) {
|
|
2393
2383
|
var element = _iterator__ex2g4s.j();
|
|
2394
|
-
if (element.ab().
|
|
2395
|
-
var textPart = substring(template, lastEnd, element.ab().
|
|
2384
|
+
if (element.ab().r_1 > lastEnd) {
|
|
2385
|
+
var textPart = substring(template, lastEnd, element.ab().r_1);
|
|
2396
2386
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2397
2387
|
if (charSequenceLength(textPart) > 0) {
|
|
2398
2388
|
parts.f(new TemplateConst(textPart));
|
|
2399
2389
|
}
|
|
2400
2390
|
}
|
|
2401
2391
|
try {
|
|
2402
|
-
var jsonObj = get_jsonObject(Default_getInstance().
|
|
2403
|
-
if (jsonObj.x1().
|
|
2392
|
+
var jsonObj = get_jsonObject(Default_getInstance().m12(element.t1()));
|
|
2393
|
+
if (jsonObj.x1().l('min')) {
|
|
2404
2394
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2405
2395
|
var this_0 = get_tolerantJson();
|
|
2406
2396
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2407
|
-
var this_1 = this_0.
|
|
2397
|
+
var this_1 = this_0.nm();
|
|
2408
2398
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2409
2399
|
var this_2 = serializer(this_1, createKType(getKClass(QuantityPlaceholder), arrayOf([]), false));
|
|
2410
2400
|
var tmp$ret$3 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
2411
2401
|
// Inline function 'kotlin.let' call
|
|
2412
|
-
var it = this_0.
|
|
2402
|
+
var it = this_0.l12(tmp$ret$3, jsonObj);
|
|
2413
2403
|
parts.f(it);
|
|
2414
2404
|
} else {
|
|
2415
2405
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2416
2406
|
var this_3 = get_tolerantJson();
|
|
2417
2407
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2418
|
-
var this_4 = this_3.
|
|
2408
|
+
var this_4 = this_3.nm();
|
|
2419
2409
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2420
2410
|
var this_5 = serializer(this_4, createKType(getKClass(OvenTemperaturePlaceholder), arrayOf([]), false));
|
|
2421
2411
|
var tmp$ret$8 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
2422
2412
|
// Inline function 'kotlin.let' call
|
|
2423
|
-
var it_0 = this_3.
|
|
2413
|
+
var it_0 = this_3.l12(tmp$ret$8, jsonObj);
|
|
2424
2414
|
parts.f(it_0);
|
|
2425
2415
|
}
|
|
2426
2416
|
} catch ($p) {
|
|
@@ -2432,7 +2422,7 @@
|
|
|
2432
2422
|
throw $p;
|
|
2433
2423
|
}
|
|
2434
2424
|
}
|
|
2435
|
-
lastEnd = element.ab().
|
|
2425
|
+
lastEnd = element.ab().s_1 + 1 | 0;
|
|
2436
2426
|
}
|
|
2437
2427
|
if (lastEnd < template.length) {
|
|
2438
2428
|
var remaining = substring_0(template, lastEnd);
|
|
@@ -2445,7 +2435,7 @@
|
|
|
2445
2435
|
}
|
|
2446
2436
|
function tolerantJson$lambda($this$Json) {
|
|
2447
2437
|
_init_properties_Parser_kt__o3jwn5();
|
|
2448
|
-
$this$Json.
|
|
2438
|
+
$this$Json.e13_1 = true;
|
|
2449
2439
|
return Unit_instance;
|
|
2450
2440
|
}
|
|
2451
2441
|
var properties_initialized_Parser_kt_5uifb3;
|
|
@@ -2463,15 +2453,15 @@
|
|
|
2463
2453
|
protoOf(TemplateConst).t1 = function () {
|
|
2464
2454
|
return this.value;
|
|
2465
2455
|
};
|
|
2466
|
-
protoOf(TemplateConst).
|
|
2456
|
+
protoOf(TemplateConst).jd = function () {
|
|
2467
2457
|
return this.value;
|
|
2468
2458
|
};
|
|
2469
|
-
protoOf(TemplateConst).
|
|
2459
|
+
protoOf(TemplateConst).u1i = function (value) {
|
|
2470
2460
|
return new TemplateConst(value);
|
|
2471
2461
|
};
|
|
2472
2462
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
2473
2463
|
value = value === VOID ? this.value : value;
|
|
2474
|
-
return $super === VOID ? this.
|
|
2464
|
+
return $super === VOID ? this.u1i(value) : $super.u1i.call(this, value);
|
|
2475
2465
|
};
|
|
2476
2466
|
protoOf(TemplateConst).toString = function () {
|
|
2477
2467
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -2490,7 +2480,7 @@
|
|
|
2490
2480
|
};
|
|
2491
2481
|
function Companion_5() {
|
|
2492
2482
|
}
|
|
2493
|
-
protoOf(Companion_5).
|
|
2483
|
+
protoOf(Companion_5).t14 = function () {
|
|
2494
2484
|
return $serializer_getInstance_8();
|
|
2495
2485
|
};
|
|
2496
2486
|
var Companion_instance_5;
|
|
@@ -2500,40 +2490,40 @@
|
|
|
2500
2490
|
function $serializer_8() {
|
|
2501
2491
|
$serializer_instance_8 = this;
|
|
2502
2492
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.QuantityPlaceholder', this, 6);
|
|
2503
|
-
tmp0_serialDesc.
|
|
2504
|
-
tmp0_serialDesc.
|
|
2505
|
-
tmp0_serialDesc.
|
|
2506
|
-
tmp0_serialDesc.
|
|
2507
|
-
tmp0_serialDesc.
|
|
2508
|
-
tmp0_serialDesc.
|
|
2509
|
-
this.
|
|
2493
|
+
tmp0_serialDesc.ht('min', false);
|
|
2494
|
+
tmp0_serialDesc.ht('max', true);
|
|
2495
|
+
tmp0_serialDesc.ht('unit', true);
|
|
2496
|
+
tmp0_serialDesc.ht('scale', true);
|
|
2497
|
+
tmp0_serialDesc.ht('ingredient', true);
|
|
2498
|
+
tmp0_serialDesc.ht('usCust', true);
|
|
2499
|
+
this.v1i_1 = tmp0_serialDesc;
|
|
2510
2500
|
}
|
|
2511
|
-
protoOf($serializer_8).
|
|
2512
|
-
var tmp0_desc = this.
|
|
2513
|
-
var tmp1_output = encoder.
|
|
2514
|
-
tmp1_output.
|
|
2515
|
-
if (tmp1_output.
|
|
2516
|
-
tmp1_output.
|
|
2501
|
+
protoOf($serializer_8).w1i = function (encoder, value) {
|
|
2502
|
+
var tmp0_desc = this.v1i_1;
|
|
2503
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
2504
|
+
tmp1_output.jn(tmp0_desc, 0, value.min);
|
|
2505
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
2506
|
+
tmp1_output.qn(tmp0_desc, 1, FloatSerializer_getInstance(), value.max);
|
|
2517
2507
|
}
|
|
2518
|
-
if (tmp1_output.
|
|
2519
|
-
tmp1_output.
|
|
2508
|
+
if (tmp1_output.un(tmp0_desc, 2) ? true : !(value.unit == null)) {
|
|
2509
|
+
tmp1_output.qn(tmp0_desc, 2, StringSerializer_getInstance(), value.unit);
|
|
2520
2510
|
}
|
|
2521
|
-
if (tmp1_output.
|
|
2522
|
-
tmp1_output.
|
|
2511
|
+
if (tmp1_output.un(tmp0_desc, 3) ? true : !(value.scale === false)) {
|
|
2512
|
+
tmp1_output.en(tmp0_desc, 3, value.scale);
|
|
2523
2513
|
}
|
|
2524
|
-
if (tmp1_output.
|
|
2525
|
-
tmp1_output.
|
|
2514
|
+
if (tmp1_output.un(tmp0_desc, 4) ? true : !(value.ingredient == null)) {
|
|
2515
|
+
tmp1_output.qn(tmp0_desc, 4, StringSerializer_getInstance(), value.ingredient);
|
|
2526
2516
|
}
|
|
2527
|
-
if (tmp1_output.
|
|
2528
|
-
tmp1_output.
|
|
2517
|
+
if (tmp1_output.un(tmp0_desc, 5) ? true : !(value.usCust == null)) {
|
|
2518
|
+
tmp1_output.qn(tmp0_desc, 5, BooleanSerializer_getInstance(), value.usCust);
|
|
2529
2519
|
}
|
|
2530
|
-
tmp1_output.
|
|
2520
|
+
tmp1_output.zl(tmp0_desc);
|
|
2531
2521
|
};
|
|
2532
|
-
protoOf($serializer_8).
|
|
2533
|
-
return this.
|
|
2522
|
+
protoOf($serializer_8).cj = function (encoder, value) {
|
|
2523
|
+
return this.w1i(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
2534
2524
|
};
|
|
2535
|
-
protoOf($serializer_8).
|
|
2536
|
-
var tmp0_desc = this.
|
|
2525
|
+
protoOf($serializer_8).dj = function (decoder) {
|
|
2526
|
+
var tmp0_desc = this.v1i_1;
|
|
2537
2527
|
var tmp1_flag = true;
|
|
2538
2528
|
var tmp2_index = 0;
|
|
2539
2529
|
var tmp3_bitMask0 = 0;
|
|
@@ -2543,62 +2533,62 @@
|
|
|
2543
2533
|
var tmp7_local3 = false;
|
|
2544
2534
|
var tmp8_local4 = null;
|
|
2545
2535
|
var tmp9_local5 = null;
|
|
2546
|
-
var tmp10_input = decoder.
|
|
2547
|
-
if (tmp10_input.
|
|
2548
|
-
tmp4_local0 = tmp10_input.
|
|
2536
|
+
var tmp10_input = decoder.yl(tmp0_desc);
|
|
2537
|
+
if (tmp10_input.om()) {
|
|
2538
|
+
tmp4_local0 = tmp10_input.fm(tmp0_desc, 0);
|
|
2549
2539
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2550
|
-
tmp5_local1 = tmp10_input.
|
|
2540
|
+
tmp5_local1 = tmp10_input.mm(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
2551
2541
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2552
|
-
tmp6_local2 = tmp10_input.
|
|
2542
|
+
tmp6_local2 = tmp10_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2553
2543
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2554
|
-
tmp7_local3 = tmp10_input.
|
|
2544
|
+
tmp7_local3 = tmp10_input.am(tmp0_desc, 3);
|
|
2555
2545
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2556
|
-
tmp8_local4 = tmp10_input.
|
|
2546
|
+
tmp8_local4 = tmp10_input.mm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2557
2547
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2558
|
-
tmp9_local5 = tmp10_input.
|
|
2548
|
+
tmp9_local5 = tmp10_input.mm(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
2559
2549
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2560
2550
|
} else
|
|
2561
2551
|
while (tmp1_flag) {
|
|
2562
|
-
tmp2_index = tmp10_input.
|
|
2552
|
+
tmp2_index = tmp10_input.pm(tmp0_desc);
|
|
2563
2553
|
switch (tmp2_index) {
|
|
2564
2554
|
case -1:
|
|
2565
2555
|
tmp1_flag = false;
|
|
2566
2556
|
break;
|
|
2567
2557
|
case 0:
|
|
2568
|
-
tmp4_local0 = tmp10_input.
|
|
2558
|
+
tmp4_local0 = tmp10_input.fm(tmp0_desc, 0);
|
|
2569
2559
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2570
2560
|
break;
|
|
2571
2561
|
case 1:
|
|
2572
|
-
tmp5_local1 = tmp10_input.
|
|
2562
|
+
tmp5_local1 = tmp10_input.mm(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
2573
2563
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2574
2564
|
break;
|
|
2575
2565
|
case 2:
|
|
2576
|
-
tmp6_local2 = tmp10_input.
|
|
2566
|
+
tmp6_local2 = tmp10_input.mm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2577
2567
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2578
2568
|
break;
|
|
2579
2569
|
case 3:
|
|
2580
|
-
tmp7_local3 = tmp10_input.
|
|
2570
|
+
tmp7_local3 = tmp10_input.am(tmp0_desc, 3);
|
|
2581
2571
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2582
2572
|
break;
|
|
2583
2573
|
case 4:
|
|
2584
|
-
tmp8_local4 = tmp10_input.
|
|
2574
|
+
tmp8_local4 = tmp10_input.mm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2585
2575
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2586
2576
|
break;
|
|
2587
2577
|
case 5:
|
|
2588
|
-
tmp9_local5 = tmp10_input.
|
|
2578
|
+
tmp9_local5 = tmp10_input.mm(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
2589
2579
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2590
2580
|
break;
|
|
2591
2581
|
default:
|
|
2592
2582
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2593
2583
|
}
|
|
2594
2584
|
}
|
|
2595
|
-
tmp10_input.
|
|
2585
|
+
tmp10_input.zl(tmp0_desc);
|
|
2596
2586
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
2597
2587
|
};
|
|
2598
|
-
protoOf($serializer_8).
|
|
2599
|
-
return this.
|
|
2588
|
+
protoOf($serializer_8).bj = function () {
|
|
2589
|
+
return this.v1i_1;
|
|
2600
2590
|
};
|
|
2601
|
-
protoOf($serializer_8).
|
|
2591
|
+
protoOf($serializer_8).jt = function () {
|
|
2602
2592
|
// Inline function 'kotlin.arrayOf' call
|
|
2603
2593
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2604
2594
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2612,7 +2602,7 @@
|
|
|
2612
2602
|
}
|
|
2613
2603
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, $this) {
|
|
2614
2604
|
if (!(1 === (1 & seen0))) {
|
|
2615
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().
|
|
2605
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().v1i_1);
|
|
2616
2606
|
}
|
|
2617
2607
|
$this.min = min;
|
|
2618
2608
|
if (0 === (seen0 & 2))
|
|
@@ -2653,43 +2643,43 @@
|
|
|
2653
2643
|
this.ingredient = ingredient;
|
|
2654
2644
|
this.usCust = usCust;
|
|
2655
2645
|
}
|
|
2656
|
-
protoOf(QuantityPlaceholder).
|
|
2646
|
+
protoOf(QuantityPlaceholder).x1i = function () {
|
|
2657
2647
|
return this.min;
|
|
2658
2648
|
};
|
|
2659
|
-
protoOf(QuantityPlaceholder).
|
|
2649
|
+
protoOf(QuantityPlaceholder).y1i = function () {
|
|
2660
2650
|
return this.max;
|
|
2661
2651
|
};
|
|
2662
|
-
protoOf(QuantityPlaceholder).
|
|
2652
|
+
protoOf(QuantityPlaceholder).z1i = function () {
|
|
2663
2653
|
return this.unit;
|
|
2664
2654
|
};
|
|
2665
|
-
protoOf(QuantityPlaceholder).
|
|
2655
|
+
protoOf(QuantityPlaceholder).a1j = function () {
|
|
2666
2656
|
return this.scale;
|
|
2667
2657
|
};
|
|
2668
|
-
protoOf(QuantityPlaceholder).
|
|
2658
|
+
protoOf(QuantityPlaceholder).b1j = function () {
|
|
2669
2659
|
return this.ingredient;
|
|
2670
2660
|
};
|
|
2671
|
-
protoOf(QuantityPlaceholder).
|
|
2661
|
+
protoOf(QuantityPlaceholder).c1j = function () {
|
|
2672
2662
|
return this.usCust;
|
|
2673
2663
|
};
|
|
2674
|
-
protoOf(QuantityPlaceholder).
|
|
2664
|
+
protoOf(QuantityPlaceholder).jd = function () {
|
|
2675
2665
|
return this.min;
|
|
2676
2666
|
};
|
|
2677
|
-
protoOf(QuantityPlaceholder).
|
|
2667
|
+
protoOf(QuantityPlaceholder).kd = function () {
|
|
2678
2668
|
return this.max;
|
|
2679
2669
|
};
|
|
2680
|
-
protoOf(QuantityPlaceholder).
|
|
2670
|
+
protoOf(QuantityPlaceholder).d1j = function () {
|
|
2681
2671
|
return this.unit;
|
|
2682
2672
|
};
|
|
2683
|
-
protoOf(QuantityPlaceholder).
|
|
2673
|
+
protoOf(QuantityPlaceholder).e1j = function () {
|
|
2684
2674
|
return this.scale;
|
|
2685
2675
|
};
|
|
2686
|
-
protoOf(QuantityPlaceholder).
|
|
2676
|
+
protoOf(QuantityPlaceholder).f1j = function () {
|
|
2687
2677
|
return this.ingredient;
|
|
2688
2678
|
};
|
|
2689
|
-
protoOf(QuantityPlaceholder).
|
|
2679
|
+
protoOf(QuantityPlaceholder).g1j = function () {
|
|
2690
2680
|
return this.usCust;
|
|
2691
2681
|
};
|
|
2692
|
-
protoOf(QuantityPlaceholder).
|
|
2682
|
+
protoOf(QuantityPlaceholder).h1j = function (min, max, unit, scale, ingredient, usCust) {
|
|
2693
2683
|
return new QuantityPlaceholder(min, max, unit, scale, ingredient, usCust);
|
|
2694
2684
|
};
|
|
2695
2685
|
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, ingredient, usCust, $super) {
|
|
@@ -2699,7 +2689,7 @@
|
|
|
2699
2689
|
scale = scale === VOID ? this.scale : scale;
|
|
2700
2690
|
ingredient = ingredient === VOID ? this.ingredient : ingredient;
|
|
2701
2691
|
usCust = usCust === VOID ? this.usCust : usCust;
|
|
2702
|
-
return $super === VOID ? this.
|
|
2692
|
+
return $super === VOID ? this.h1j(min, max, unit, scale, ingredient, usCust) : $super.h1j.call(this, min, max, unit, scale, ingredient, usCust);
|
|
2703
2693
|
};
|
|
2704
2694
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
2705
2695
|
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ', ingredient=' + this.ingredient + ', usCust=' + this.usCust + ')';
|
|
@@ -2734,7 +2724,7 @@
|
|
|
2734
2724
|
};
|
|
2735
2725
|
function Companion_6() {
|
|
2736
2726
|
}
|
|
2737
|
-
protoOf(Companion_6).
|
|
2727
|
+
protoOf(Companion_6).t14 = function () {
|
|
2738
2728
|
return $serializer_getInstance_9();
|
|
2739
2729
|
};
|
|
2740
2730
|
var Companion_instance_6;
|
|
@@ -2744,34 +2734,34 @@
|
|
|
2744
2734
|
function $serializer_9() {
|
|
2745
2735
|
$serializer_instance_9 = this;
|
|
2746
2736
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.OvenTemperaturePlaceholder', this, 4);
|
|
2747
|
-
tmp0_serialDesc.
|
|
2748
|
-
tmp0_serialDesc.
|
|
2749
|
-
tmp0_serialDesc.
|
|
2750
|
-
tmp0_serialDesc.
|
|
2751
|
-
this.
|
|
2737
|
+
tmp0_serialDesc.ht('temperatureC', true);
|
|
2738
|
+
tmp0_serialDesc.ht('temperatureFanC', true);
|
|
2739
|
+
tmp0_serialDesc.ht('temperatureF', true);
|
|
2740
|
+
tmp0_serialDesc.ht('gasMark', true);
|
|
2741
|
+
this.i1j_1 = tmp0_serialDesc;
|
|
2752
2742
|
}
|
|
2753
|
-
protoOf($serializer_9).
|
|
2754
|
-
var tmp0_desc = this.
|
|
2755
|
-
var tmp1_output = encoder.
|
|
2756
|
-
if (tmp1_output.
|
|
2757
|
-
tmp1_output.
|
|
2743
|
+
protoOf($serializer_9).j1j = function (encoder, value) {
|
|
2744
|
+
var tmp0_desc = this.i1j_1;
|
|
2745
|
+
var tmp1_output = encoder.yl(tmp0_desc);
|
|
2746
|
+
if (tmp1_output.un(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
2747
|
+
tmp1_output.qn(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
2758
2748
|
}
|
|
2759
|
-
if (tmp1_output.
|
|
2760
|
-
tmp1_output.
|
|
2749
|
+
if (tmp1_output.un(tmp0_desc, 1) ? true : !(value.temperatureFanC == null)) {
|
|
2750
|
+
tmp1_output.qn(tmp0_desc, 1, IntSerializer_getInstance(), value.temperatureFanC);
|
|
2761
2751
|
}
|
|
2762
|
-
if (tmp1_output.
|
|
2763
|
-
tmp1_output.
|
|
2752
|
+
if (tmp1_output.un(tmp0_desc, 2) ? true : !(value.temperatureF == null)) {
|
|
2753
|
+
tmp1_output.qn(tmp0_desc, 2, IntSerializer_getInstance(), value.temperatureF);
|
|
2764
2754
|
}
|
|
2765
|
-
if (tmp1_output.
|
|
2766
|
-
tmp1_output.
|
|
2755
|
+
if (tmp1_output.un(tmp0_desc, 3) ? true : !(value.gasMark == null)) {
|
|
2756
|
+
tmp1_output.qn(tmp0_desc, 3, FloatSerializer_getInstance(), value.gasMark);
|
|
2767
2757
|
}
|
|
2768
|
-
tmp1_output.
|
|
2758
|
+
tmp1_output.zl(tmp0_desc);
|
|
2769
2759
|
};
|
|
2770
|
-
protoOf($serializer_9).
|
|
2771
|
-
return this.
|
|
2760
|
+
protoOf($serializer_9).cj = function (encoder, value) {
|
|
2761
|
+
return this.j1j(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
2772
2762
|
};
|
|
2773
|
-
protoOf($serializer_9).
|
|
2774
|
-
var tmp0_desc = this.
|
|
2763
|
+
protoOf($serializer_9).dj = function (decoder) {
|
|
2764
|
+
var tmp0_desc = this.i1j_1;
|
|
2775
2765
|
var tmp1_flag = true;
|
|
2776
2766
|
var tmp2_index = 0;
|
|
2777
2767
|
var tmp3_bitMask0 = 0;
|
|
@@ -2779,50 +2769,50 @@
|
|
|
2779
2769
|
var tmp5_local1 = null;
|
|
2780
2770
|
var tmp6_local2 = null;
|
|
2781
2771
|
var tmp7_local3 = null;
|
|
2782
|
-
var tmp8_input = decoder.
|
|
2783
|
-
if (tmp8_input.
|
|
2784
|
-
tmp4_local0 = tmp8_input.
|
|
2772
|
+
var tmp8_input = decoder.yl(tmp0_desc);
|
|
2773
|
+
if (tmp8_input.om()) {
|
|
2774
|
+
tmp4_local0 = tmp8_input.mm(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
2785
2775
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2786
|
-
tmp5_local1 = tmp8_input.
|
|
2776
|
+
tmp5_local1 = tmp8_input.mm(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
2787
2777
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2788
|
-
tmp6_local2 = tmp8_input.
|
|
2778
|
+
tmp6_local2 = tmp8_input.mm(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
2789
2779
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2790
|
-
tmp7_local3 = tmp8_input.
|
|
2780
|
+
tmp7_local3 = tmp8_input.mm(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
2791
2781
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2792
2782
|
} else
|
|
2793
2783
|
while (tmp1_flag) {
|
|
2794
|
-
tmp2_index = tmp8_input.
|
|
2784
|
+
tmp2_index = tmp8_input.pm(tmp0_desc);
|
|
2795
2785
|
switch (tmp2_index) {
|
|
2796
2786
|
case -1:
|
|
2797
2787
|
tmp1_flag = false;
|
|
2798
2788
|
break;
|
|
2799
2789
|
case 0:
|
|
2800
|
-
tmp4_local0 = tmp8_input.
|
|
2790
|
+
tmp4_local0 = tmp8_input.mm(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
2801
2791
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2802
2792
|
break;
|
|
2803
2793
|
case 1:
|
|
2804
|
-
tmp5_local1 = tmp8_input.
|
|
2794
|
+
tmp5_local1 = tmp8_input.mm(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
2805
2795
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2806
2796
|
break;
|
|
2807
2797
|
case 2:
|
|
2808
|
-
tmp6_local2 = tmp8_input.
|
|
2798
|
+
tmp6_local2 = tmp8_input.mm(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
2809
2799
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2810
2800
|
break;
|
|
2811
2801
|
case 3:
|
|
2812
|
-
tmp7_local3 = tmp8_input.
|
|
2802
|
+
tmp7_local3 = tmp8_input.mm(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
2813
2803
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2814
2804
|
break;
|
|
2815
2805
|
default:
|
|
2816
2806
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2817
2807
|
}
|
|
2818
2808
|
}
|
|
2819
|
-
tmp8_input.
|
|
2809
|
+
tmp8_input.zl(tmp0_desc);
|
|
2820
2810
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2821
2811
|
};
|
|
2822
|
-
protoOf($serializer_9).
|
|
2823
|
-
return this.
|
|
2812
|
+
protoOf($serializer_9).bj = function () {
|
|
2813
|
+
return this.i1j_1;
|
|
2824
2814
|
};
|
|
2825
|
-
protoOf($serializer_9).
|
|
2815
|
+
protoOf($serializer_9).jt = function () {
|
|
2826
2816
|
// Inline function 'kotlin.arrayOf' call
|
|
2827
2817
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2828
2818
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2836,7 +2826,7 @@
|
|
|
2836
2826
|
}
|
|
2837
2827
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
2838
2828
|
if (!(0 === (0 & seen0))) {
|
|
2839
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2829
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().i1j_1);
|
|
2840
2830
|
}
|
|
2841
2831
|
if (0 === (seen0 & 1))
|
|
2842
2832
|
$this.temperatureC = null;
|
|
@@ -2869,31 +2859,31 @@
|
|
|
2869
2859
|
this.temperatureF = temperatureF;
|
|
2870
2860
|
this.gasMark = gasMark;
|
|
2871
2861
|
}
|
|
2872
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2862
|
+
protoOf(OvenTemperaturePlaceholder).k1j = function () {
|
|
2873
2863
|
return this.temperatureC;
|
|
2874
2864
|
};
|
|
2875
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2865
|
+
protoOf(OvenTemperaturePlaceholder).l1j = function () {
|
|
2876
2866
|
return this.temperatureFanC;
|
|
2877
2867
|
};
|
|
2878
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2868
|
+
protoOf(OvenTemperaturePlaceholder).m1j = function () {
|
|
2879
2869
|
return this.temperatureF;
|
|
2880
2870
|
};
|
|
2881
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2871
|
+
protoOf(OvenTemperaturePlaceholder).n1j = function () {
|
|
2882
2872
|
return this.gasMark;
|
|
2883
2873
|
};
|
|
2884
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2874
|
+
protoOf(OvenTemperaturePlaceholder).jd = function () {
|
|
2885
2875
|
return this.temperatureC;
|
|
2886
2876
|
};
|
|
2887
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2877
|
+
protoOf(OvenTemperaturePlaceholder).kd = function () {
|
|
2888
2878
|
return this.temperatureFanC;
|
|
2889
2879
|
};
|
|
2890
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2880
|
+
protoOf(OvenTemperaturePlaceholder).d1j = function () {
|
|
2891
2881
|
return this.temperatureF;
|
|
2892
2882
|
};
|
|
2893
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2883
|
+
protoOf(OvenTemperaturePlaceholder).e1j = function () {
|
|
2894
2884
|
return this.gasMark;
|
|
2895
2885
|
};
|
|
2896
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2886
|
+
protoOf(OvenTemperaturePlaceholder).o1j = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
2897
2887
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
2898
2888
|
};
|
|
2899
2889
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -2901,7 +2891,7 @@
|
|
|
2901
2891
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
2902
2892
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
2903
2893
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
2904
|
-
return $super === VOID ? this.
|
|
2894
|
+
return $super === VOID ? this.o1j(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.o1j.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
2905
2895
|
};
|
|
2906
2896
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
2907
2897
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -2940,6 +2930,12 @@
|
|
|
2940
2930
|
function Metric_getInstance() {
|
|
2941
2931
|
return Metric_instance;
|
|
2942
2932
|
}
|
|
2933
|
+
function USCustomary() {
|
|
2934
|
+
}
|
|
2935
|
+
var USCustomary_instance;
|
|
2936
|
+
function USCustomary_getInstance() {
|
|
2937
|
+
return USCustomary_instance;
|
|
2938
|
+
}
|
|
2943
2939
|
var UnitType_WEIGHT_instance;
|
|
2944
2940
|
var UnitType_VOLUME_instance;
|
|
2945
2941
|
var UnitType_LENGTH_instance;
|
|
@@ -2955,118 +2951,254 @@
|
|
|
2955
2951
|
function UnitType(name, ordinal) {
|
|
2956
2952
|
Enum.call(this, name, ordinal);
|
|
2957
2953
|
}
|
|
2958
|
-
function
|
|
2959
|
-
this.
|
|
2960
|
-
this.
|
|
2961
|
-
this.
|
|
2962
|
-
this.
|
|
2963
|
-
this.
|
|
2964
|
-
this.
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
result =
|
|
2972
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2973
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2974
|
-
result = imul(result, 31) + (this.
|
|
2975
|
-
result = imul(result, 31) + (this.
|
|
2954
|
+
function MeasurementUnit(singular, plural, symbol, symbolPlural, unitType, measuringSystems, quantity) {
|
|
2955
|
+
this.g1f_1 = singular;
|
|
2956
|
+
this.h1f_1 = plural;
|
|
2957
|
+
this.i1f_1 = symbol;
|
|
2958
|
+
this.j1f_1 = symbolPlural;
|
|
2959
|
+
this.k1f_1 = unitType;
|
|
2960
|
+
this.l1f_1 = measuringSystems;
|
|
2961
|
+
this.m1f_1 = quantity;
|
|
2962
|
+
}
|
|
2963
|
+
protoOf(MeasurementUnit).toString = function () {
|
|
2964
|
+
return 'MeasurementUnit(singular=' + this.g1f_1 + ', plural=' + this.h1f_1 + ', symbol=' + this.i1f_1 + ', symbolPlural=' + this.j1f_1 + ', unitType=' + toString(this.k1f_1) + ', measuringSystems=' + toString_0(this.l1f_1) + ', quantity=' + this.m1f_1 + ')';
|
|
2965
|
+
};
|
|
2966
|
+
protoOf(MeasurementUnit).hashCode = function () {
|
|
2967
|
+
var result = getStringHashCode(this.g1f_1);
|
|
2968
|
+
result = imul(result, 31) + getStringHashCode(this.h1f_1) | 0;
|
|
2969
|
+
result = imul(result, 31) + getStringHashCode(this.i1f_1) | 0;
|
|
2970
|
+
result = imul(result, 31) + getStringHashCode(this.j1f_1) | 0;
|
|
2971
|
+
result = imul(result, 31) + (this.k1f_1 == null ? 0 : this.k1f_1.hashCode()) | 0;
|
|
2972
|
+
result = imul(result, 31) + hashCode(this.l1f_1) | 0;
|
|
2973
|
+
result = imul(result, 31) + getNumberHashCode(this.m1f_1) | 0;
|
|
2976
2974
|
return result;
|
|
2977
2975
|
};
|
|
2978
|
-
protoOf(
|
|
2976
|
+
protoOf(MeasurementUnit).equals = function (other) {
|
|
2979
2977
|
if (this === other)
|
|
2980
2978
|
return true;
|
|
2981
|
-
if (!(other instanceof
|
|
2979
|
+
if (!(other instanceof MeasurementUnit))
|
|
2980
|
+
return false;
|
|
2981
|
+
if (!(this.g1f_1 === other.g1f_1))
|
|
2982
2982
|
return false;
|
|
2983
|
-
if (!(this.
|
|
2983
|
+
if (!(this.h1f_1 === other.h1f_1))
|
|
2984
2984
|
return false;
|
|
2985
|
-
if (!(this.
|
|
2985
|
+
if (!(this.i1f_1 === other.i1f_1))
|
|
2986
2986
|
return false;
|
|
2987
|
-
if (!(this.
|
|
2987
|
+
if (!(this.j1f_1 === other.j1f_1))
|
|
2988
2988
|
return false;
|
|
2989
|
-
if (!(this.
|
|
2989
|
+
if (!equals(this.k1f_1, other.k1f_1))
|
|
2990
2990
|
return false;
|
|
2991
|
-
if (!equals(this.
|
|
2991
|
+
if (!equals(this.l1f_1, other.l1f_1))
|
|
2992
2992
|
return false;
|
|
2993
|
-
if (!equals(this.
|
|
2993
|
+
if (!equals(this.m1f_1, other.m1f_1))
|
|
2994
2994
|
return false;
|
|
2995
2995
|
return true;
|
|
2996
2996
|
};
|
|
2997
2997
|
function Units() {
|
|
2998
2998
|
Units_instance = this;
|
|
2999
|
-
this.
|
|
3000
|
-
this.
|
|
3001
|
-
this.
|
|
3002
|
-
this.
|
|
3003
|
-
this.
|
|
3004
|
-
this.
|
|
3005
|
-
this.
|
|
3006
|
-
this.
|
|
3007
|
-
this.
|
|
3008
|
-
this.
|
|
3009
|
-
this.
|
|
3010
|
-
this.
|
|
3011
|
-
this.
|
|
3012
|
-
this.
|
|
3013
|
-
this.
|
|
2999
|
+
this.b1e_1 = new MeasurementUnit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1.0);
|
|
3000
|
+
this.c1e_1 = new MeasurementUnit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3001
|
+
this.d1e_1 = new MeasurementUnit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 28.3495);
|
|
3002
|
+
this.e1e_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 16 * this.d1e_1.m1f_1);
|
|
3003
|
+
this.f1e_1 = new MeasurementUnit('millilitre', 'millilitres', 'ml', 'ml', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1.0);
|
|
3004
|
+
this.g1e_1 = new MeasurementUnit('centilitre', 'centilitres', 'cl', 'cl', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 10.0);
|
|
3005
|
+
this.h1e_1 = new MeasurementUnit('litre', 'litres', 'l', 'l', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3006
|
+
this.i1e_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 5.0);
|
|
3007
|
+
this.j1e_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 15.0);
|
|
3008
|
+
this.k1e_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4.9289);
|
|
3009
|
+
this.l1e_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 3 * this.k1e_1.m1f_1);
|
|
3010
|
+
this.m1e_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf(Imperial_instance), 6 * this.k1e_1.m1f_1);
|
|
3011
|
+
this.n1e_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(USCustomary_instance), 48 * this.k1e_1.m1f_1);
|
|
3012
|
+
this.o1e_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 250.0);
|
|
3013
|
+
this.p1e_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.n1e_1.m1f_1);
|
|
3014
|
+
this.q1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.p1e_1.m1f_1);
|
|
3015
|
+
this.r1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4 * this.q1e_1.m1f_1);
|
|
3016
|
+
this.s1e_1 = new MeasurementUnit('millimetre', 'millimetres', 'mm', 'mm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 1.0);
|
|
3017
|
+
this.t1e_1 = new MeasurementUnit('centimetre', 'centimetres', 'cm', 'cm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 10.0);
|
|
3018
|
+
this.u1e_1 = new MeasurementUnit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), setOf(Imperial_instance), 25.4);
|
|
3019
|
+
this.v1e_1 = listOf([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, this.k1e_1, this.l1e_1, this.m1e_1, this.n1e_1, this.o1e_1, this.p1e_1, this.q1e_1, this.r1e_1, this.s1e_1, this.t1e_1, this.u1e_1]);
|
|
3014
3020
|
var tmp = this;
|
|
3015
|
-
// Inline function 'kotlin.collections.
|
|
3016
|
-
var
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
var
|
|
3020
|
-
var _iterator__ex2g4s = this_0.h();
|
|
3021
|
+
// Inline function 'kotlin.collections.filter' call
|
|
3022
|
+
var tmp0 = this.v1e_1;
|
|
3023
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
3024
|
+
var destination = ArrayList_init_$Create$_0();
|
|
3025
|
+
var _iterator__ex2g4s = tmp0.h();
|
|
3021
3026
|
while (_iterator__ex2g4s.i()) {
|
|
3022
3027
|
var element = _iterator__ex2g4s.j();
|
|
3023
|
-
|
|
3024
|
-
|
|
3028
|
+
if (element.l1f_1.l(Metric_instance)) {
|
|
3029
|
+
destination.f(element);
|
|
3030
|
+
}
|
|
3025
3031
|
}
|
|
3026
|
-
|
|
3032
|
+
// Inline function 'kotlin.let' call
|
|
3027
3033
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3028
|
-
var
|
|
3029
|
-
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
3034
|
+
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3030
3035
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3031
|
-
var destination_0 = LinkedHashMap_init_$Create$(
|
|
3032
|
-
var _iterator__ex2g4s_0 =
|
|
3036
|
+
var destination_0 = LinkedHashMap_init_$Create$(capacity);
|
|
3037
|
+
var _iterator__ex2g4s_0 = destination.h();
|
|
3033
3038
|
while (_iterator__ex2g4s_0.i()) {
|
|
3034
3039
|
var element_0 = _iterator__ex2g4s_0.j();
|
|
3035
|
-
var tmp$ret$3 = element_0.
|
|
3040
|
+
var tmp$ret$3 = element_0.i1f_1;
|
|
3036
3041
|
destination_0.a2(tmp$ret$3, element_0);
|
|
3037
3042
|
}
|
|
3038
|
-
var
|
|
3043
|
+
var tmp_0 = destination_0;
|
|
3039
3044
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3040
|
-
var
|
|
3041
|
-
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_2, 10)), 16);
|
|
3045
|
+
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3042
3046
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3043
|
-
var destination_1 = LinkedHashMap_init_$Create$(
|
|
3044
|
-
var _iterator__ex2g4s_1 =
|
|
3047
|
+
var destination_1 = LinkedHashMap_init_$Create$(capacity_0);
|
|
3048
|
+
var _iterator__ex2g4s_1 = destination.h();
|
|
3045
3049
|
while (_iterator__ex2g4s_1.i()) {
|
|
3046
3050
|
var element_1 = _iterator__ex2g4s_1.j();
|
|
3047
|
-
var tmp$ret$6 = element_1.
|
|
3051
|
+
var tmp$ret$6 = element_1.j1f_1;
|
|
3048
3052
|
destination_1.a2(tmp$ret$6, element_1);
|
|
3049
3053
|
}
|
|
3050
|
-
var
|
|
3054
|
+
var tmp_1 = plus(tmp_0, destination_1);
|
|
3051
3055
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3052
|
-
var
|
|
3053
|
-
var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_3, 10)), 16);
|
|
3056
|
+
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3054
3057
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3055
|
-
var destination_2 = LinkedHashMap_init_$Create$(
|
|
3056
|
-
var _iterator__ex2g4s_2 =
|
|
3058
|
+
var destination_2 = LinkedHashMap_init_$Create$(capacity_1);
|
|
3059
|
+
var _iterator__ex2g4s_2 = destination.h();
|
|
3057
3060
|
while (_iterator__ex2g4s_2.i()) {
|
|
3058
3061
|
var element_2 = _iterator__ex2g4s_2.j();
|
|
3059
|
-
var tmp$ret$9 = element_2.
|
|
3062
|
+
var tmp$ret$9 = element_2.g1f_1;
|
|
3060
3063
|
destination_2.a2(tmp$ret$9, element_2);
|
|
3061
3064
|
}
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3065
|
+
var tmp_2 = plus(tmp_1, destination_2);
|
|
3066
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3067
|
+
var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3068
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3069
|
+
var destination_3 = LinkedHashMap_init_$Create$(capacity_2);
|
|
3070
|
+
var _iterator__ex2g4s_3 = destination.h();
|
|
3071
|
+
while (_iterator__ex2g4s_3.i()) {
|
|
3072
|
+
var element_3 = _iterator__ex2g4s_3.j();
|
|
3073
|
+
var tmp$ret$12 = element_3.h1f_1;
|
|
3074
|
+
destination_3.a2(tmp$ret$12, element_3);
|
|
3075
|
+
}
|
|
3076
|
+
tmp.w1e_1 = plus(tmp_2, destination_3);
|
|
3077
|
+
var tmp_3 = this;
|
|
3078
|
+
// Inline function 'kotlin.collections.filter' call
|
|
3079
|
+
var tmp0_0 = this.v1e_1;
|
|
3080
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
3081
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
3082
|
+
var _iterator__ex2g4s_4 = tmp0_0.h();
|
|
3083
|
+
while (_iterator__ex2g4s_4.i()) {
|
|
3084
|
+
var element_4 = _iterator__ex2g4s_4.j();
|
|
3085
|
+
if (element_4.l1f_1.l(Imperial_instance)) {
|
|
3086
|
+
destination_4.f(element_4);
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
// Inline function 'kotlin.let' call
|
|
3090
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3091
|
+
var capacity_3 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3092
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3093
|
+
var destination_5 = LinkedHashMap_init_$Create$(capacity_3);
|
|
3094
|
+
var _iterator__ex2g4s_5 = destination_4.h();
|
|
3095
|
+
while (_iterator__ex2g4s_5.i()) {
|
|
3096
|
+
var element_5 = _iterator__ex2g4s_5.j();
|
|
3097
|
+
var tmp$ret$20 = element_5.i1f_1;
|
|
3098
|
+
destination_5.a2(tmp$ret$20, element_5);
|
|
3099
|
+
}
|
|
3100
|
+
var tmp_4 = destination_5;
|
|
3101
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3102
|
+
var capacity_4 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3103
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3104
|
+
var destination_6 = LinkedHashMap_init_$Create$(capacity_4);
|
|
3105
|
+
var _iterator__ex2g4s_6 = destination_4.h();
|
|
3106
|
+
while (_iterator__ex2g4s_6.i()) {
|
|
3107
|
+
var element_6 = _iterator__ex2g4s_6.j();
|
|
3108
|
+
var tmp$ret$23 = element_6.j1f_1;
|
|
3109
|
+
destination_6.a2(tmp$ret$23, element_6);
|
|
3110
|
+
}
|
|
3111
|
+
var tmp_5 = plus(tmp_4, destination_6);
|
|
3112
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3113
|
+
var capacity_5 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3114
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3115
|
+
var destination_7 = LinkedHashMap_init_$Create$(capacity_5);
|
|
3116
|
+
var _iterator__ex2g4s_7 = destination_4.h();
|
|
3117
|
+
while (_iterator__ex2g4s_7.i()) {
|
|
3118
|
+
var element_7 = _iterator__ex2g4s_7.j();
|
|
3119
|
+
var tmp$ret$26 = element_7.g1f_1;
|
|
3120
|
+
destination_7.a2(tmp$ret$26, element_7);
|
|
3121
|
+
}
|
|
3122
|
+
var tmp_6 = plus(tmp_5, destination_7);
|
|
3123
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3124
|
+
var capacity_6 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3125
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3126
|
+
var destination_8 = LinkedHashMap_init_$Create$(capacity_6);
|
|
3127
|
+
var _iterator__ex2g4s_8 = destination_4.h();
|
|
3128
|
+
while (_iterator__ex2g4s_8.i()) {
|
|
3129
|
+
var element_8 = _iterator__ex2g4s_8.j();
|
|
3130
|
+
var tmp$ret$29 = element_8.h1f_1;
|
|
3131
|
+
destination_8.a2(tmp$ret$29, element_8);
|
|
3132
|
+
}
|
|
3133
|
+
tmp_3.x1e_1 = plus(tmp_6, destination_8);
|
|
3134
|
+
var tmp_7 = this;
|
|
3135
|
+
// Inline function 'kotlin.collections.filter' call
|
|
3136
|
+
var tmp0_1 = this.v1e_1;
|
|
3137
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
3138
|
+
var destination_9 = ArrayList_init_$Create$_0();
|
|
3139
|
+
var _iterator__ex2g4s_9 = tmp0_1.h();
|
|
3140
|
+
while (_iterator__ex2g4s_9.i()) {
|
|
3141
|
+
var element_9 = _iterator__ex2g4s_9.j();
|
|
3142
|
+
if (element_9.l1f_1.l(USCustomary_instance)) {
|
|
3143
|
+
destination_9.f(element_9);
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
// Inline function 'kotlin.let' call
|
|
3147
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3148
|
+
var capacity_7 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3149
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3150
|
+
var destination_10 = LinkedHashMap_init_$Create$(capacity_7);
|
|
3151
|
+
var _iterator__ex2g4s_10 = destination_9.h();
|
|
3152
|
+
while (_iterator__ex2g4s_10.i()) {
|
|
3153
|
+
var element_10 = _iterator__ex2g4s_10.j();
|
|
3154
|
+
var tmp$ret$37 = element_10.i1f_1;
|
|
3155
|
+
destination_10.a2(tmp$ret$37, element_10);
|
|
3156
|
+
}
|
|
3157
|
+
var tmp_8 = destination_10;
|
|
3158
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3159
|
+
var capacity_8 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3160
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3161
|
+
var destination_11 = LinkedHashMap_init_$Create$(capacity_8);
|
|
3162
|
+
var _iterator__ex2g4s_11 = destination_9.h();
|
|
3163
|
+
while (_iterator__ex2g4s_11.i()) {
|
|
3164
|
+
var element_11 = _iterator__ex2g4s_11.j();
|
|
3165
|
+
var tmp$ret$40 = element_11.j1f_1;
|
|
3166
|
+
destination_11.a2(tmp$ret$40, element_11);
|
|
3167
|
+
}
|
|
3168
|
+
var tmp_9 = plus(tmp_8, destination_11);
|
|
3169
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3170
|
+
var capacity_9 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3171
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3172
|
+
var destination_12 = LinkedHashMap_init_$Create$(capacity_9);
|
|
3173
|
+
var _iterator__ex2g4s_12 = destination_9.h();
|
|
3174
|
+
while (_iterator__ex2g4s_12.i()) {
|
|
3175
|
+
var element_12 = _iterator__ex2g4s_12.j();
|
|
3176
|
+
var tmp$ret$43 = element_12.g1f_1;
|
|
3177
|
+
destination_12.a2(tmp$ret$43, element_12);
|
|
3178
|
+
}
|
|
3179
|
+
var tmp_10 = plus(tmp_9, destination_12);
|
|
3180
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
3181
|
+
var capacity_10 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3182
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3183
|
+
var destination_13 = LinkedHashMap_init_$Create$(capacity_10);
|
|
3184
|
+
var _iterator__ex2g4s_13 = destination_9.h();
|
|
3185
|
+
while (_iterator__ex2g4s_13.i()) {
|
|
3186
|
+
var element_13 = _iterator__ex2g4s_13.j();
|
|
3187
|
+
var tmp$ret$46 = element_13.h1f_1;
|
|
3188
|
+
destination_13.a2(tmp$ret$46, element_13);
|
|
3189
|
+
}
|
|
3190
|
+
tmp_7.y1e_1 = plus(tmp_10, destination_13);
|
|
3191
|
+
}
|
|
3192
|
+
protoOf(Units).z1e = function (name) {
|
|
3193
|
+
var tmp0_elvis_lhs = this.w1e_1.w1(name);
|
|
3194
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.x1e_1.w1(name) : tmp0_elvis_lhs;
|
|
3195
|
+
var unit = tmp1_elvis_lhs == null ? this.y1e_1.w1(name) : tmp1_elvis_lhs;
|
|
3066
3196
|
if (!(unit == null)) {
|
|
3067
3197
|
return unit;
|
|
3068
3198
|
} else {
|
|
3069
|
-
|
|
3199
|
+
// Inline function 'kotlin.collections.setOf' call
|
|
3200
|
+
var tmp$ret$0 = emptySet();
|
|
3201
|
+
return new MeasurementUnit(name, name, name, name, null, tmp$ret$0, 1.0);
|
|
3070
3202
|
}
|
|
3071
3203
|
};
|
|
3072
3204
|
var Units_instance;
|
|
@@ -3087,71 +3219,111 @@
|
|
|
3087
3219
|
UnitType_initEntries();
|
|
3088
3220
|
return UnitType_LENGTH_instance;
|
|
3089
3221
|
}
|
|
3090
|
-
function
|
|
3091
|
-
|
|
3092
|
-
this.
|
|
3093
|
-
this.
|
|
3222
|
+
function UnitConversions() {
|
|
3223
|
+
UnitConversions_instance = this;
|
|
3224
|
+
this.a1f_1 = setOf_0([Units_getInstance().i1e_1, Units_getInstance().j1e_1, Units_getInstance().o1e_1]);
|
|
3225
|
+
this.b1f_1 = listOf([to(0.0, Units_getInstance().b1e_1), to(1000.0, Units_getInstance().c1e_1), to(0.0, Units_getInstance().f1e_1), to(2.5, Units_getInstance().i1e_1), to(15.0, Units_getInstance().j1e_1), to(125.0, Units_getInstance().o1e_1), to(1000.0, Units_getInstance().h1e_1), to(0.0, Units_getInstance().s1e_1), to(10.0, Units_getInstance().t1e_1)]);
|
|
3226
|
+
this.c1f_1 = listOf([to(0.0, Units_getInstance().b1e_1), to(1000.0, Units_getInstance().c1e_1), to(0.0, Units_getInstance().f1e_1), to(1000.0, Units_getInstance().h1e_1), to(0.0, Units_getInstance().s1e_1), to(10.0, Units_getInstance().t1e_1)]);
|
|
3227
|
+
this.d1f_1 = listOf([to(0.0, Units_getInstance().d1e_1), to(16.0 * Units_getInstance().d1e_1.m1f_1, Units_getInstance().e1e_1), to(0.0, Units_getInstance().k1e_1), to(3.0 * Units_getInstance().k1e_1.m1f_1, Units_getInstance().l1e_1), to(12.0 * Units_getInstance().k1e_1.m1f_1, Units_getInstance().n1e_1), to(192 * Units_getInstance().k1e_1.m1f_1, Units_getInstance().q1e_1), to(768.0 * Units_getInstance().k1e_1.m1f_1, Units_getInstance().r1e_1), to(0.0, Units_getInstance().u1e_1)]);
|
|
3228
|
+
this.e1f_1 = listOf([to(0.0, Units_getInstance().d1e_1), to(16.0 * Units_getInstance().d1e_1.m1f_1, Units_getInstance().e1e_1), to(0.0, Units_getInstance().k1e_1), to(3.0 * Units_getInstance().k1e_1.m1f_1, Units_getInstance().l1e_1), to(6.0 * Units_getInstance().k1e_1.m1f_1, Units_getInstance().m1e_1), to(768.0 * Units_getInstance().k1e_1.m1f_1, Units_getInstance().r1e_1), to(0.0, Units_getInstance().u1e_1)]);
|
|
3094
3229
|
}
|
|
3095
|
-
protoOf(
|
|
3096
|
-
if (amount.o1d_1 == null || equals(amount.o1d_1.w1e_1, target) || equals(target, Metric_instance)) {
|
|
3097
|
-
return amount;
|
|
3098
|
-
}
|
|
3230
|
+
protoOf(UnitConversions).p1j = function (amount) {
|
|
3099
3231
|
var tmp;
|
|
3100
|
-
if (amount.
|
|
3101
|
-
var tmp_0;
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
if (tmp1_safe_receiver == null) {
|
|
3107
|
-
tmp_1 = null;
|
|
3108
|
-
} else {
|
|
3109
|
-
// Inline function 'kotlin.let' call
|
|
3110
|
-
tmp_1 = tmp1_safe_receiver / UnitConversion_instance.p1e_1;
|
|
3111
|
-
}
|
|
3112
|
-
var maxCups = tmp_1;
|
|
3113
|
-
tmp_0 = new Amount(cups, maxCups, Units_getInstance().d1e_1);
|
|
3232
|
+
if (!(amount.t1d_1 == null)) {
|
|
3233
|
+
var tmp_0 = amount.r1d_1 * amount.t1d_1.m1f_1;
|
|
3234
|
+
var tmp0_safe_receiver = amount.s1d_1;
|
|
3235
|
+
var tmp_1;
|
|
3236
|
+
if (tmp0_safe_receiver == null) {
|
|
3237
|
+
tmp_1 = null;
|
|
3114
3238
|
} else {
|
|
3115
|
-
|
|
3239
|
+
// Inline function 'kotlin.let' call
|
|
3240
|
+
tmp_1 = tmp0_safe_receiver * amount.t1d_1.m1f_1;
|
|
3116
3241
|
}
|
|
3117
|
-
|
|
3242
|
+
var tmp_2 = tmp_1;
|
|
3243
|
+
var tmp1_subject = amount.t1d_1.k1f_1;
|
|
3244
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.e2_1;
|
|
3245
|
+
tmp = amount.w1d(tmp_0, tmp_2, tmp0 === 2 ? Units_getInstance().s1e_1 : tmp0 === 1 ? Units_getInstance().f1e_1 : tmp0 === 0 ? Units_getInstance().b1e_1 : amount.t1d_1);
|
|
3118
3246
|
} else {
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3247
|
+
tmp = amount;
|
|
3248
|
+
}
|
|
3249
|
+
return tmp;
|
|
3250
|
+
};
|
|
3251
|
+
protoOf(UnitConversions).f1f = function (amount, target, factor) {
|
|
3252
|
+
var tmp = amount.r1d_1 * factor;
|
|
3253
|
+
var tmp0_safe_receiver = amount.s1d_1;
|
|
3254
|
+
var tmp_0;
|
|
3255
|
+
if (tmp0_safe_receiver == null) {
|
|
3256
|
+
tmp_0 = null;
|
|
3257
|
+
} else {
|
|
3258
|
+
// Inline function 'kotlin.let' call
|
|
3259
|
+
tmp_0 = tmp0_safe_receiver * factor;
|
|
3260
|
+
}
|
|
3261
|
+
var scaledAmount = amount.w1d(tmp, tmp_0);
|
|
3262
|
+
if (scaledAmount.t1d_1 == null || (equals(target, Metric_instance) && factor === 1.0)) {
|
|
3263
|
+
return scaledAmount;
|
|
3264
|
+
}
|
|
3265
|
+
var smallestUnitAmount = this.p1j(scaledAmount);
|
|
3266
|
+
var tmp_1;
|
|
3267
|
+
if (equals(target, Metric_instance)) {
|
|
3268
|
+
tmp_1 = contains(this.a1f_1, amount.t1d_1) ? this.b1f_1 : this.c1f_1;
|
|
3269
|
+
} else if (equals(target, USCustomary_instance)) {
|
|
3270
|
+
tmp_1 = amount.u1d_1 === true ? this.d1f_1 : this.e1f_1;
|
|
3271
|
+
} else if (equals(target, Imperial_instance)) {
|
|
3272
|
+
tmp_1 = this.e1f_1;
|
|
3273
|
+
} else {
|
|
3274
|
+
noWhenBranchMatchedException();
|
|
3275
|
+
}
|
|
3276
|
+
var ladder = tmp_1;
|
|
3277
|
+
// Inline function 'kotlin.collections.filter' call
|
|
3278
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
3279
|
+
var destination = ArrayList_init_$Create$_0();
|
|
3280
|
+
var _iterator__ex2g4s = ladder.h();
|
|
3281
|
+
while (_iterator__ex2g4s.i()) {
|
|
3282
|
+
var element = _iterator__ex2g4s.j();
|
|
3283
|
+
var tmp0_safe_receiver_0 = amount.t1d_1;
|
|
3284
|
+
if (equals(element.id_1.k1f_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.k1f_1)) {
|
|
3285
|
+
destination.f(element);
|
|
3286
|
+
}
|
|
3287
|
+
}
|
|
3288
|
+
var tmp$ret$6;
|
|
3289
|
+
$l$block: {
|
|
3290
|
+
// Inline function 'kotlin.collections.lastOrNull' call
|
|
3291
|
+
var iterator = destination.q1(destination.k());
|
|
3292
|
+
while (iterator.n3()) {
|
|
3293
|
+
var element_0 = iterator.p3();
|
|
3294
|
+
if (smallestUnitAmount.r1d_1 >= element_0.hd_1) {
|
|
3295
|
+
tmp$ret$6 = element_0;
|
|
3296
|
+
break $l$block;
|
|
3142
3297
|
}
|
|
3143
|
-
|
|
3144
|
-
|
|
3298
|
+
}
|
|
3299
|
+
tmp$ret$6 = null;
|
|
3300
|
+
}
|
|
3301
|
+
var tmp2_safe_receiver = tmp$ret$6;
|
|
3302
|
+
var mostRelevantUnit = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.id_1;
|
|
3303
|
+
var tmp_2;
|
|
3304
|
+
if (mostRelevantUnit == null) {
|
|
3305
|
+
tmp_2 = null;
|
|
3306
|
+
} else {
|
|
3307
|
+
// Inline function 'kotlin.let' call
|
|
3308
|
+
var tmp_3 = smallestUnitAmount.r1d_1 / mostRelevantUnit.m1f_1;
|
|
3309
|
+
var tmp0_safe_receiver_1 = smallestUnitAmount.s1d_1;
|
|
3310
|
+
var tmp_4;
|
|
3311
|
+
if (tmp0_safe_receiver_1 == null) {
|
|
3312
|
+
tmp_4 = null;
|
|
3145
3313
|
} else {
|
|
3146
|
-
|
|
3314
|
+
// Inline function 'kotlin.let' call
|
|
3315
|
+
tmp_4 = tmp0_safe_receiver_1 / mostRelevantUnit.m1f_1;
|
|
3147
3316
|
}
|
|
3148
|
-
|
|
3317
|
+
tmp_2 = new Amount(tmp_3, tmp_4, mostRelevantUnit);
|
|
3149
3318
|
}
|
|
3150
|
-
|
|
3319
|
+
var tmp4_elvis_lhs = tmp_2;
|
|
3320
|
+
return tmp4_elvis_lhs == null ? smallestUnitAmount : tmp4_elvis_lhs;
|
|
3151
3321
|
};
|
|
3152
|
-
var
|
|
3153
|
-
function
|
|
3154
|
-
|
|
3322
|
+
var UnitConversions_instance;
|
|
3323
|
+
function UnitConversions_getInstance() {
|
|
3324
|
+
if (UnitConversions_instance == null)
|
|
3325
|
+
new UnitConversions();
|
|
3326
|
+
return UnitConversions_instance;
|
|
3155
3327
|
}
|
|
3156
3328
|
function get_tolerantJson_0() {
|
|
3157
3329
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -3163,11 +3335,11 @@
|
|
|
3163
3335
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
3164
3336
|
var this_0 = get_tolerantJson_0();
|
|
3165
3337
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3166
|
-
var this_1 = this_0.
|
|
3338
|
+
var this_1 = this_0.nm();
|
|
3167
3339
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3168
3340
|
var this_2 = serializer(this_1, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3169
3341
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3170
|
-
var parsedRecipe = this_0.
|
|
3342
|
+
var parsedRecipe = this_0.k12(tmp$ret$1, recipe);
|
|
3171
3343
|
var tmp;
|
|
3172
3344
|
switch (unit) {
|
|
3173
3345
|
case 'Imperial':
|
|
@@ -3184,16 +3356,16 @@
|
|
|
3184
3356
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
3185
3357
|
var this_3 = Default_getInstance();
|
|
3186
3358
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3187
|
-
var this_4 = this_3.
|
|
3359
|
+
var this_4 = this_3.nm();
|
|
3188
3360
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3189
3361
|
var this_5 = serializer(this_4, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3190
3362
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3191
|
-
return this_3.
|
|
3363
|
+
return this_3.j12(tmp$ret$4, scaledRecipe);
|
|
3192
3364
|
}
|
|
3193
3365
|
function parseTemplate_0(templateString) {
|
|
3194
3366
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3195
3367
|
var parsedTemplate = parseTemplate(templateString);
|
|
3196
|
-
return parsedTemplate.
|
|
3368
|
+
return parsedTemplate.n1f_1;
|
|
3197
3369
|
}
|
|
3198
3370
|
function renderTemplate_0(templateElements) {
|
|
3199
3371
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -3202,7 +3374,7 @@
|
|
|
3202
3374
|
}
|
|
3203
3375
|
function tolerantJson$lambda_0($this$Json) {
|
|
3204
3376
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3205
|
-
$this$Json.
|
|
3377
|
+
$this$Json.e13_1 = true;
|
|
3206
3378
|
return Unit_instance;
|
|
3207
3379
|
}
|
|
3208
3380
|
var properties_initialized_ScaleRecipeJsContract_kt_yki7mr;
|
|
@@ -3213,17 +3385,17 @@
|
|
|
3213
3385
|
}
|
|
3214
3386
|
}
|
|
3215
3387
|
//region block: post-declaration
|
|
3216
|
-
protoOf($serializer).
|
|
3217
|
-
protoOf($serializer_0).
|
|
3218
|
-
protoOf($serializer_1).
|
|
3219
|
-
protoOf($serializer_2).
|
|
3220
|
-
protoOf($serializer_3).
|
|
3221
|
-
protoOf($serializer_4).
|
|
3222
|
-
protoOf($serializer_5).
|
|
3223
|
-
protoOf($serializer_6).
|
|
3224
|
-
protoOf($serializer_7).
|
|
3225
|
-
protoOf($serializer_8).
|
|
3226
|
-
protoOf($serializer_9).
|
|
3388
|
+
protoOf($serializer).kt = typeParametersSerializers;
|
|
3389
|
+
protoOf($serializer_0).kt = typeParametersSerializers;
|
|
3390
|
+
protoOf($serializer_1).kt = typeParametersSerializers;
|
|
3391
|
+
protoOf($serializer_2).kt = typeParametersSerializers;
|
|
3392
|
+
protoOf($serializer_3).kt = typeParametersSerializers;
|
|
3393
|
+
protoOf($serializer_4).kt = typeParametersSerializers;
|
|
3394
|
+
protoOf($serializer_5).kt = typeParametersSerializers;
|
|
3395
|
+
protoOf($serializer_6).kt = typeParametersSerializers;
|
|
3396
|
+
protoOf($serializer_7).kt = typeParametersSerializers;
|
|
3397
|
+
protoOf($serializer_8).kt = typeParametersSerializers;
|
|
3398
|
+
protoOf($serializer_9).kt = typeParametersSerializers;
|
|
3227
3399
|
//endregion
|
|
3228
3400
|
//region block: init
|
|
3229
3401
|
Companion_instance_1 = new Companion_1();
|
|
@@ -3233,7 +3405,7 @@
|
|
|
3233
3405
|
Companion_instance_6 = new Companion_6();
|
|
3234
3406
|
Imperial_instance = new Imperial();
|
|
3235
3407
|
Metric_instance = new Metric();
|
|
3236
|
-
|
|
3408
|
+
USCustomary_instance = new USCustomary();
|
|
3237
3409
|
//endregion
|
|
3238
3410
|
//region block: exports
|
|
3239
3411
|
function $jsExportAll$(_) {
|