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