@guardian/feast-multiplatform-library 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/feast-multiplatform-library-library.d.ts +5 -0
- package/kotlin/feast-multiplatform-library-library.js +1034 -0
- package/kotlin/feast-multiplatform-library-library.js.map +1 -0
- package/kotlin/kotlin-kotlin-stdlib.js +10949 -0
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +5475 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +4867 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/package.json +20 -0
|
@@ -0,0 +1,1034 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var protoOf = kotlin_kotlin.$_$.l7;
|
|
6
|
+
var initMetadataForObject = kotlin_kotlin.$_$.u6;
|
|
7
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.z3;
|
|
8
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
9
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.fa;
|
|
10
|
+
var Pair = kotlin_kotlin.$_$.j9;
|
|
11
|
+
var numberToInt = kotlin_kotlin.$_$.j7;
|
|
12
|
+
var Unit_instance = kotlin_kotlin.$_$.j3;
|
|
13
|
+
var joinToString = kotlin_kotlin.$_$.s4;
|
|
14
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
15
|
+
var toString = kotlin_kotlin.$_$.ha;
|
|
16
|
+
var getStringHashCode = kotlin_kotlin.$_$.n6;
|
|
17
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.k6;
|
|
18
|
+
var equals = kotlin_kotlin.$_$.j6;
|
|
19
|
+
var initMetadataForClass = kotlin_kotlin.$_$.p6;
|
|
20
|
+
var hashCode = kotlin_kotlin.$_$.o6;
|
|
21
|
+
var getNumberHashCode = kotlin_kotlin.$_$.l6;
|
|
22
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
23
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
24
|
+
var substring = kotlin_kotlin.$_$.m8;
|
|
25
|
+
var isBlank = kotlin_kotlin.$_$.e8;
|
|
26
|
+
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
27
|
+
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
28
|
+
var getKClass = kotlin_kotlin.$_$.w7;
|
|
29
|
+
var arrayOf = kotlin_kotlin.$_$.w9;
|
|
30
|
+
var createKType = kotlin_kotlin.$_$.u7;
|
|
31
|
+
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
32
|
+
var THROW_CCE = kotlin_kotlin.$_$.l9;
|
|
33
|
+
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
34
|
+
var isInterface = kotlin_kotlin.$_$.c7;
|
|
35
|
+
var print = kotlin_kotlin.$_$.l5;
|
|
36
|
+
var Exception = kotlin_kotlin.$_$.g9;
|
|
37
|
+
var substring_0 = kotlin_kotlin.$_$.l8;
|
|
38
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.q6;
|
|
39
|
+
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
40
|
+
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
41
|
+
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
42
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
43
|
+
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
|
|
44
|
+
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
45
|
+
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
46
|
+
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1;
|
|
47
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
|
|
48
|
+
var objectCreate = kotlin_kotlin.$_$.k7;
|
|
49
|
+
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
50
|
+
var toString_0 = kotlin_kotlin.$_$.n7;
|
|
51
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
52
|
+
//endregion
|
|
53
|
+
//region block: pre-declaration
|
|
54
|
+
initMetadataForObject(Imperial, 'Imperial');
|
|
55
|
+
initMetadataForObject(Metric, 'Metric');
|
|
56
|
+
initMetadataForClass(IngredientsListIngredientsList, 'IngredientsListIngredientsList', IngredientsListIngredientsList);
|
|
57
|
+
initMetadataForClass(RecipeV2, 'RecipeV2');
|
|
58
|
+
initMetadataForClass(IngredientElement, 'IngredientElement', IngredientElement);
|
|
59
|
+
initMetadataForClass(InstructionElement, 'InstructionElement');
|
|
60
|
+
initMetadataForClass(RecipeV3, 'RecipeV3');
|
|
61
|
+
initMetadataForCompanion(Companion);
|
|
62
|
+
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
63
|
+
initMetadataForCompanion(Companion_0);
|
|
64
|
+
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
65
|
+
initMetadataForClass(TemplateConst, 'TemplateConst');
|
|
66
|
+
initMetadataForClass(QuantityPlaceholder, 'QuantityPlaceholder', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
67
|
+
initMetadataForClass(OvenTemperaturePlaceholder, 'OvenTemperaturePlaceholder', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
68
|
+
initMetadataForClass(ParsedTemplate, 'ParsedTemplate');
|
|
69
|
+
//endregion
|
|
70
|
+
function Imperial() {
|
|
71
|
+
}
|
|
72
|
+
var Imperial_instance;
|
|
73
|
+
function Imperial_getInstance() {
|
|
74
|
+
return Imperial_instance;
|
|
75
|
+
}
|
|
76
|
+
function Metric() {
|
|
77
|
+
}
|
|
78
|
+
var Metric_instance;
|
|
79
|
+
function Metric_getInstance() {
|
|
80
|
+
return Metric_instance;
|
|
81
|
+
}
|
|
82
|
+
function scaleTemplate(template, factor) {
|
|
83
|
+
// Inline function 'kotlin.collections.map' call
|
|
84
|
+
var this_0 = template.y1a_1;
|
|
85
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
86
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
87
|
+
var _iterator__ex2g4s = this_0.h();
|
|
88
|
+
while (_iterator__ex2g4s.i()) {
|
|
89
|
+
var item = _iterator__ex2g4s.j();
|
|
90
|
+
var tmp;
|
|
91
|
+
if (item instanceof TemplateConst) {
|
|
92
|
+
tmp = item.h1b_1;
|
|
93
|
+
} else {
|
|
94
|
+
if (item instanceof QuantityPlaceholder) {
|
|
95
|
+
var tmp_0;
|
|
96
|
+
if (item.g1b_1) {
|
|
97
|
+
var scaledMin = item.d1b_1 * factor;
|
|
98
|
+
var tmp1_safe_receiver = item.e1b_1;
|
|
99
|
+
var tmp_1;
|
|
100
|
+
if (tmp1_safe_receiver == null) {
|
|
101
|
+
tmp_1 = null;
|
|
102
|
+
} else {
|
|
103
|
+
// Inline function 'kotlin.let' call
|
|
104
|
+
tmp_1 = tmp1_safe_receiver * factor;
|
|
105
|
+
}
|
|
106
|
+
var scaledMax = tmp_1;
|
|
107
|
+
tmp_0 = new Pair(scaledMin, scaledMax);
|
|
108
|
+
} else {
|
|
109
|
+
tmp_0 = new Pair(item.d1b_1, item.e1b_1);
|
|
110
|
+
}
|
|
111
|
+
var _destruct__k2r9zo = tmp_0;
|
|
112
|
+
var scaledMin_0 = _destruct__k2r9zo.cc();
|
|
113
|
+
var scaledMax_0 = _destruct__k2r9zo.dc();
|
|
114
|
+
var tmp2_elvis_lhs = item.f1b_1;
|
|
115
|
+
var unit = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
|
|
116
|
+
var tmp_2;
|
|
117
|
+
if (!(scaledMax_0 == null)) {
|
|
118
|
+
tmp_2 = '' + numberToInt(scaledMin_0) + '-' + numberToInt(scaledMax_0) + ' ' + unit;
|
|
119
|
+
} else {
|
|
120
|
+
tmp_2 = '' + numberToInt(scaledMin_0) + ' ' + unit;
|
|
121
|
+
}
|
|
122
|
+
tmp = tmp_2;
|
|
123
|
+
} else {
|
|
124
|
+
if (item instanceof OvenTemperaturePlaceholder) {
|
|
125
|
+
var tempC = item.z1a_1;
|
|
126
|
+
var tempFanC = item.a1b_1;
|
|
127
|
+
var tmp_3;
|
|
128
|
+
if (tempFanC == null) {
|
|
129
|
+
tmp_3 = null;
|
|
130
|
+
} else {
|
|
131
|
+
// Inline function 'kotlin.let' call
|
|
132
|
+
tmp_3 = ' (' + tempFanC + '\xB0C fan)';
|
|
133
|
+
}
|
|
134
|
+
var tmp4_elvis_lhs = tmp_3;
|
|
135
|
+
tmp = '' + tempC + '\xB0C' + (tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs);
|
|
136
|
+
} else {
|
|
137
|
+
noWhenBranchMatchedException();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
var tmp$ret$4 = tmp;
|
|
142
|
+
destination.f(tmp$ret$4);
|
|
143
|
+
}
|
|
144
|
+
var scaledParts = destination;
|
|
145
|
+
return joinToString(scaledParts, '');
|
|
146
|
+
}
|
|
147
|
+
function scaleRecipe(recipe, factor, unit) {
|
|
148
|
+
var tmp0_safe_receiver = recipe.u1b_1;
|
|
149
|
+
var tmp;
|
|
150
|
+
if (tmp0_safe_receiver == null) {
|
|
151
|
+
tmp = null;
|
|
152
|
+
} else {
|
|
153
|
+
// Inline function 'kotlin.collections.map' call
|
|
154
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
155
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
156
|
+
var _iterator__ex2g4s = tmp0_safe_receiver.h();
|
|
157
|
+
while (_iterator__ex2g4s.i()) {
|
|
158
|
+
var item = _iterator__ex2g4s.j();
|
|
159
|
+
var tmp0_safe_receiver_0 = item.g1c_1;
|
|
160
|
+
var tmp_0;
|
|
161
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
162
|
+
tmp_0 = null;
|
|
163
|
+
} else {
|
|
164
|
+
// Inline function 'kotlin.collections.map' call
|
|
165
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
166
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver_0, 10));
|
|
167
|
+
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.h();
|
|
168
|
+
while (_iterator__ex2g4s_0.i()) {
|
|
169
|
+
var item_0 = _iterator__ex2g4s_0.j();
|
|
170
|
+
var tmp0_safe_receiver_1 = item_0.q1c_1;
|
|
171
|
+
var tmp_1;
|
|
172
|
+
if (tmp0_safe_receiver_1 == null) {
|
|
173
|
+
tmp_1 = null;
|
|
174
|
+
} else {
|
|
175
|
+
// Inline function 'kotlin.let' call
|
|
176
|
+
tmp_1 = scaleTemplate(parseTemplate(tmp0_safe_receiver_1), factor);
|
|
177
|
+
}
|
|
178
|
+
var tmp1_elvis_lhs = tmp_1;
|
|
179
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.o1c_1 : tmp1_elvis_lhs;
|
|
180
|
+
var tmp$ret$2 = new IngredientsListIngredientsList(item_0.i1c_1, item_0.j1c_1, item_0.k1c_1, item_0.l1c_1, item_0.m1c_1, item_0.n1c_1, scaledText, item_0.p1c_1);
|
|
181
|
+
destination_0.f(tmp$ret$2);
|
|
182
|
+
}
|
|
183
|
+
tmp_0 = destination_0;
|
|
184
|
+
}
|
|
185
|
+
var tmp$ret$5 = new IngredientElement(tmp_0, item.h1c_1);
|
|
186
|
+
destination.f(tmp$ret$5);
|
|
187
|
+
}
|
|
188
|
+
tmp = destination;
|
|
189
|
+
}
|
|
190
|
+
var scaledIngredients = tmp;
|
|
191
|
+
var tmp1_safe_receiver = recipe.w1b_1;
|
|
192
|
+
var tmp_2;
|
|
193
|
+
if (tmp1_safe_receiver == null) {
|
|
194
|
+
tmp_2 = null;
|
|
195
|
+
} else {
|
|
196
|
+
// Inline function 'kotlin.collections.map' call
|
|
197
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
198
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
199
|
+
var _iterator__ex2g4s_1 = tmp1_safe_receiver.h();
|
|
200
|
+
while (_iterator__ex2g4s_1.i()) {
|
|
201
|
+
var item_1 = _iterator__ex2g4s_1.j();
|
|
202
|
+
var description = scaleTemplate(parseTemplate(item_1.r1c_1), factor);
|
|
203
|
+
var tmp$ret$8 = new InstructionElement(description, item_1.s1c_1, item_1.t1c_1);
|
|
204
|
+
destination_1.f(tmp$ret$8);
|
|
205
|
+
}
|
|
206
|
+
tmp_2 = destination_1;
|
|
207
|
+
}
|
|
208
|
+
var scaledInstructions = tmp_2;
|
|
209
|
+
return new RecipeV2(recipe.i1b_1, recipe.j1b_1, recipe.k1b_1, recipe.l1b_1, recipe.m1b_1, recipe.n1b_1, recipe.o1b_1, recipe.p1b_1, recipe.q1b_1, recipe.r1b_1, recipe.s1b_1, scaledIngredients, scaledInstructions, recipe.x1b_1, recipe.y1b_1, recipe.z1b_1, recipe.a1c_1, recipe.b1c_1, recipe.c1c_1, recipe.d1c_1, recipe.e1c_1, recipe.f1c_1);
|
|
210
|
+
}
|
|
211
|
+
function IngredientsListIngredientsList(amount, ingredientID, name, optional, prefix, suffix, text, unit) {
|
|
212
|
+
amount = amount === VOID ? null : amount;
|
|
213
|
+
ingredientID = ingredientID === VOID ? null : ingredientID;
|
|
214
|
+
name = name === VOID ? null : name;
|
|
215
|
+
optional = optional === VOID ? null : optional;
|
|
216
|
+
prefix = prefix === VOID ? null : prefix;
|
|
217
|
+
suffix = suffix === VOID ? null : suffix;
|
|
218
|
+
text = text === VOID ? null : text;
|
|
219
|
+
unit = unit === VOID ? null : unit;
|
|
220
|
+
this.u1c_1 = amount;
|
|
221
|
+
this.v1c_1 = ingredientID;
|
|
222
|
+
this.w1c_1 = name;
|
|
223
|
+
this.x1c_1 = optional;
|
|
224
|
+
this.y1c_1 = prefix;
|
|
225
|
+
this.z1c_1 = suffix;
|
|
226
|
+
this.a1d_1 = text;
|
|
227
|
+
this.b1d_1 = unit;
|
|
228
|
+
}
|
|
229
|
+
protoOf(IngredientsListIngredientsList).toString = function () {
|
|
230
|
+
return 'IngredientsListIngredientsList(amount=' + toString(this.u1c_1) + ', ingredientID=' + this.v1c_1 + ', name=' + this.w1c_1 + ', optional=' + this.x1c_1 + ', prefix=' + this.y1c_1 + ', suffix=' + this.z1c_1 + ', text=' + this.a1d_1 + ', unit=' + this.b1d_1 + ')';
|
|
231
|
+
};
|
|
232
|
+
protoOf(IngredientsListIngredientsList).hashCode = function () {
|
|
233
|
+
var result = this.u1c_1 == null ? 0 : this.u1c_1.hashCode();
|
|
234
|
+
result = imul(result, 31) + (this.v1c_1 == null ? 0 : getStringHashCode(this.v1c_1)) | 0;
|
|
235
|
+
result = imul(result, 31) + (this.w1c_1 == null ? 0 : getStringHashCode(this.w1c_1)) | 0;
|
|
236
|
+
result = imul(result, 31) + (this.x1c_1 == null ? 0 : getBooleanHashCode(this.x1c_1)) | 0;
|
|
237
|
+
result = imul(result, 31) + (this.y1c_1 == null ? 0 : getStringHashCode(this.y1c_1)) | 0;
|
|
238
|
+
result = imul(result, 31) + (this.z1c_1 == null ? 0 : getStringHashCode(this.z1c_1)) | 0;
|
|
239
|
+
result = imul(result, 31) + (this.a1d_1 == null ? 0 : getStringHashCode(this.a1d_1)) | 0;
|
|
240
|
+
result = imul(result, 31) + (this.b1d_1 == null ? 0 : getStringHashCode(this.b1d_1)) | 0;
|
|
241
|
+
return result;
|
|
242
|
+
};
|
|
243
|
+
protoOf(IngredientsListIngredientsList).equals = function (other) {
|
|
244
|
+
if (this === other)
|
|
245
|
+
return true;
|
|
246
|
+
if (!(other instanceof IngredientsListIngredientsList))
|
|
247
|
+
return false;
|
|
248
|
+
if (!equals(this.u1c_1, other.u1c_1))
|
|
249
|
+
return false;
|
|
250
|
+
if (!(this.v1c_1 == other.v1c_1))
|
|
251
|
+
return false;
|
|
252
|
+
if (!(this.w1c_1 == other.w1c_1))
|
|
253
|
+
return false;
|
|
254
|
+
if (!(this.x1c_1 == other.x1c_1))
|
|
255
|
+
return false;
|
|
256
|
+
if (!(this.y1c_1 == other.y1c_1))
|
|
257
|
+
return false;
|
|
258
|
+
if (!(this.z1c_1 == other.z1c_1))
|
|
259
|
+
return false;
|
|
260
|
+
if (!(this.a1d_1 == other.a1d_1))
|
|
261
|
+
return false;
|
|
262
|
+
if (!(this.b1d_1 == other.b1d_1))
|
|
263
|
+
return false;
|
|
264
|
+
return true;
|
|
265
|
+
};
|
|
266
|
+
function RecipeV2(bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate) {
|
|
267
|
+
bookCredit = bookCredit === VOID ? null : bookCredit;
|
|
268
|
+
byline = byline === VOID ? null : byline;
|
|
269
|
+
canonicalArticle = canonicalArticle === VOID ? null : canonicalArticle;
|
|
270
|
+
celebrationIDS = celebrationIDS === VOID ? null : celebrationIDS;
|
|
271
|
+
composerID = composerID === VOID ? null : composerID;
|
|
272
|
+
contributors = contributors === VOID ? null : contributors;
|
|
273
|
+
cuisineIDS = cuisineIDS === VOID ? null : cuisineIDS;
|
|
274
|
+
description = description === VOID ? null : description;
|
|
275
|
+
difficultyLevel = difficultyLevel === VOID ? null : difficultyLevel;
|
|
276
|
+
featuredImage = featuredImage === VOID ? null : featuredImage;
|
|
277
|
+
ingredients = ingredients === VOID ? null : ingredients;
|
|
278
|
+
instructions = instructions === VOID ? null : instructions;
|
|
279
|
+
isAppReady = isAppReady === VOID ? null : isAppReady;
|
|
280
|
+
mealTypeIDS = mealTypeIDS === VOID ? null : mealTypeIDS;
|
|
281
|
+
serves = serves === VOID ? null : serves;
|
|
282
|
+
suitableForDietIDS = suitableForDietIDS === VOID ? null : suitableForDietIDS;
|
|
283
|
+
techniquesUsedIDS = techniquesUsedIDS === VOID ? null : techniquesUsedIDS;
|
|
284
|
+
timings = timings === VOID ? null : timings;
|
|
285
|
+
title = title === VOID ? null : title;
|
|
286
|
+
utensilsAndApplianceIDS = utensilsAndApplianceIDS === VOID ? null : utensilsAndApplianceIDS;
|
|
287
|
+
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
288
|
+
this.c1d_1 = bookCredit;
|
|
289
|
+
this.d1d_1 = byline;
|
|
290
|
+
this.e1d_1 = canonicalArticle;
|
|
291
|
+
this.f1d_1 = celebrationIDS;
|
|
292
|
+
this.g1d_1 = composerID;
|
|
293
|
+
this.h1d_1 = contributors;
|
|
294
|
+
this.i1d_1 = cuisineIDS;
|
|
295
|
+
this.j1d_1 = description;
|
|
296
|
+
this.k1d_1 = difficultyLevel;
|
|
297
|
+
this.l1d_1 = featuredImage;
|
|
298
|
+
this.m1d_1 = id;
|
|
299
|
+
this.n1d_1 = ingredients;
|
|
300
|
+
this.o1d_1 = instructions;
|
|
301
|
+
this.p1d_1 = isAppReady;
|
|
302
|
+
this.q1d_1 = mealTypeIDS;
|
|
303
|
+
this.r1d_1 = serves;
|
|
304
|
+
this.s1d_1 = suitableForDietIDS;
|
|
305
|
+
this.t1d_1 = techniquesUsedIDS;
|
|
306
|
+
this.u1d_1 = timings;
|
|
307
|
+
this.v1d_1 = title;
|
|
308
|
+
this.w1d_1 = utensilsAndApplianceIDS;
|
|
309
|
+
this.x1d_1 = webPublicationDate;
|
|
310
|
+
}
|
|
311
|
+
protoOf(RecipeV2).toString = function () {
|
|
312
|
+
return 'RecipeV2(bookCredit=' + this.c1d_1 + ', byline=' + toString(this.d1d_1) + ', canonicalArticle=' + this.e1d_1 + ', celebrationIDS=' + toString(this.f1d_1) + ', composerID=' + this.g1d_1 + ', contributors=' + toString(this.h1d_1) + ', cuisineIDS=' + toString(this.i1d_1) + ', description=' + this.j1d_1 + ', difficultyLevel=' + this.k1d_1 + ', featuredImage=' + toString(this.l1d_1) + ', id=' + this.m1d_1 + ', ingredients=' + toString(this.n1d_1) + ', instructions=' + toString(this.o1d_1) + ', isAppReady=' + this.p1d_1 + ', mealTypeIDS=' + toString(this.q1d_1) + ', serves=' + toString(this.r1d_1) + ', suitableForDietIDS=' + toString(this.s1d_1) + ', techniquesUsedIDS=' + toString(this.t1d_1) + ', timings=' + toString(this.u1d_1) + ', title=' + this.v1d_1 + ', utensilsAndApplianceIDS=' + toString(this.w1d_1) + ', webPublicationDate=' + this.x1d_1 + ')';
|
|
313
|
+
};
|
|
314
|
+
protoOf(RecipeV2).hashCode = function () {
|
|
315
|
+
var result = this.c1d_1 == null ? 0 : getStringHashCode(this.c1d_1);
|
|
316
|
+
result = imul(result, 31) + (this.d1d_1 == null ? 0 : hashCode(this.d1d_1)) | 0;
|
|
317
|
+
result = imul(result, 31) + (this.e1d_1 == null ? 0 : getStringHashCode(this.e1d_1)) | 0;
|
|
318
|
+
result = imul(result, 31) + (this.f1d_1 == null ? 0 : hashCode(this.f1d_1)) | 0;
|
|
319
|
+
result = imul(result, 31) + (this.g1d_1 == null ? 0 : getStringHashCode(this.g1d_1)) | 0;
|
|
320
|
+
result = imul(result, 31) + (this.h1d_1 == null ? 0 : hashCode(this.h1d_1)) | 0;
|
|
321
|
+
result = imul(result, 31) + (this.i1d_1 == null ? 0 : hashCode(this.i1d_1)) | 0;
|
|
322
|
+
result = imul(result, 31) + (this.j1d_1 == null ? 0 : getStringHashCode(this.j1d_1)) | 0;
|
|
323
|
+
result = imul(result, 31) + (this.k1d_1 == null ? 0 : getStringHashCode(this.k1d_1)) | 0;
|
|
324
|
+
result = imul(result, 31) + (this.l1d_1 == null ? 0 : this.l1d_1.hashCode()) | 0;
|
|
325
|
+
result = imul(result, 31) + getStringHashCode(this.m1d_1) | 0;
|
|
326
|
+
result = imul(result, 31) + (this.n1d_1 == null ? 0 : hashCode(this.n1d_1)) | 0;
|
|
327
|
+
result = imul(result, 31) + (this.o1d_1 == null ? 0 : hashCode(this.o1d_1)) | 0;
|
|
328
|
+
result = imul(result, 31) + (this.p1d_1 == null ? 0 : getBooleanHashCode(this.p1d_1)) | 0;
|
|
329
|
+
result = imul(result, 31) + (this.q1d_1 == null ? 0 : hashCode(this.q1d_1)) | 0;
|
|
330
|
+
result = imul(result, 31) + (this.r1d_1 == null ? 0 : hashCode(this.r1d_1)) | 0;
|
|
331
|
+
result = imul(result, 31) + (this.s1d_1 == null ? 0 : hashCode(this.s1d_1)) | 0;
|
|
332
|
+
result = imul(result, 31) + (this.t1d_1 == null ? 0 : hashCode(this.t1d_1)) | 0;
|
|
333
|
+
result = imul(result, 31) + (this.u1d_1 == null ? 0 : hashCode(this.u1d_1)) | 0;
|
|
334
|
+
result = imul(result, 31) + (this.v1d_1 == null ? 0 : getStringHashCode(this.v1d_1)) | 0;
|
|
335
|
+
result = imul(result, 31) + (this.w1d_1 == null ? 0 : hashCode(this.w1d_1)) | 0;
|
|
336
|
+
result = imul(result, 31) + (this.x1d_1 == null ? 0 : getStringHashCode(this.x1d_1)) | 0;
|
|
337
|
+
return result;
|
|
338
|
+
};
|
|
339
|
+
protoOf(RecipeV2).equals = function (other) {
|
|
340
|
+
if (this === other)
|
|
341
|
+
return true;
|
|
342
|
+
if (!(other instanceof RecipeV2))
|
|
343
|
+
return false;
|
|
344
|
+
if (!(this.c1d_1 == other.c1d_1))
|
|
345
|
+
return false;
|
|
346
|
+
if (!equals(this.d1d_1, other.d1d_1))
|
|
347
|
+
return false;
|
|
348
|
+
if (!(this.e1d_1 == other.e1d_1))
|
|
349
|
+
return false;
|
|
350
|
+
if (!equals(this.f1d_1, other.f1d_1))
|
|
351
|
+
return false;
|
|
352
|
+
if (!(this.g1d_1 == other.g1d_1))
|
|
353
|
+
return false;
|
|
354
|
+
if (!equals(this.h1d_1, other.h1d_1))
|
|
355
|
+
return false;
|
|
356
|
+
if (!equals(this.i1d_1, other.i1d_1))
|
|
357
|
+
return false;
|
|
358
|
+
if (!(this.j1d_1 == other.j1d_1))
|
|
359
|
+
return false;
|
|
360
|
+
if (!(this.k1d_1 == other.k1d_1))
|
|
361
|
+
return false;
|
|
362
|
+
if (!equals(this.l1d_1, other.l1d_1))
|
|
363
|
+
return false;
|
|
364
|
+
if (!(this.m1d_1 === other.m1d_1))
|
|
365
|
+
return false;
|
|
366
|
+
if (!equals(this.n1d_1, other.n1d_1))
|
|
367
|
+
return false;
|
|
368
|
+
if (!equals(this.o1d_1, other.o1d_1))
|
|
369
|
+
return false;
|
|
370
|
+
if (!(this.p1d_1 == other.p1d_1))
|
|
371
|
+
return false;
|
|
372
|
+
if (!equals(this.q1d_1, other.q1d_1))
|
|
373
|
+
return false;
|
|
374
|
+
if (!equals(this.r1d_1, other.r1d_1))
|
|
375
|
+
return false;
|
|
376
|
+
if (!equals(this.s1d_1, other.s1d_1))
|
|
377
|
+
return false;
|
|
378
|
+
if (!equals(this.t1d_1, other.t1d_1))
|
|
379
|
+
return false;
|
|
380
|
+
if (!equals(this.u1d_1, other.u1d_1))
|
|
381
|
+
return false;
|
|
382
|
+
if (!(this.v1d_1 == other.v1d_1))
|
|
383
|
+
return false;
|
|
384
|
+
if (!equals(this.w1d_1, other.w1d_1))
|
|
385
|
+
return false;
|
|
386
|
+
if (!(this.x1d_1 == other.x1d_1))
|
|
387
|
+
return false;
|
|
388
|
+
return true;
|
|
389
|
+
};
|
|
390
|
+
function IngredientElement(ingredientsList, recipeSection) {
|
|
391
|
+
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
392
|
+
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
393
|
+
this.y1d_1 = ingredientsList;
|
|
394
|
+
this.z1d_1 = recipeSection;
|
|
395
|
+
}
|
|
396
|
+
protoOf(IngredientElement).toString = function () {
|
|
397
|
+
return 'IngredientElement(ingredientsList=' + toString(this.y1d_1) + ', recipeSection=' + this.z1d_1 + ')';
|
|
398
|
+
};
|
|
399
|
+
protoOf(IngredientElement).hashCode = function () {
|
|
400
|
+
var result = this.y1d_1 == null ? 0 : hashCode(this.y1d_1);
|
|
401
|
+
result = imul(result, 31) + (this.z1d_1 == null ? 0 : getStringHashCode(this.z1d_1)) | 0;
|
|
402
|
+
return result;
|
|
403
|
+
};
|
|
404
|
+
protoOf(IngredientElement).equals = function (other) {
|
|
405
|
+
if (this === other)
|
|
406
|
+
return true;
|
|
407
|
+
if (!(other instanceof IngredientElement))
|
|
408
|
+
return false;
|
|
409
|
+
if (!equals(this.y1d_1, other.y1d_1))
|
|
410
|
+
return false;
|
|
411
|
+
if (!(this.z1d_1 == other.z1d_1))
|
|
412
|
+
return false;
|
|
413
|
+
return true;
|
|
414
|
+
};
|
|
415
|
+
function InstructionElement(description, images, stepNumber) {
|
|
416
|
+
images = images === VOID ? null : images;
|
|
417
|
+
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
418
|
+
this.a1e_1 = description;
|
|
419
|
+
this.b1e_1 = images;
|
|
420
|
+
this.c1e_1 = stepNumber;
|
|
421
|
+
}
|
|
422
|
+
protoOf(InstructionElement).toString = function () {
|
|
423
|
+
return 'InstructionElement(description=' + this.a1e_1 + ', images=' + toString(this.b1e_1) + ', stepNumber=' + this.c1e_1 + ')';
|
|
424
|
+
};
|
|
425
|
+
protoOf(InstructionElement).hashCode = function () {
|
|
426
|
+
var result = getStringHashCode(this.a1e_1);
|
|
427
|
+
result = imul(result, 31) + (this.b1e_1 == null ? 0 : hashCode(this.b1e_1)) | 0;
|
|
428
|
+
result = imul(result, 31) + (this.c1e_1 == null ? 0 : getNumberHashCode(this.c1e_1)) | 0;
|
|
429
|
+
return result;
|
|
430
|
+
};
|
|
431
|
+
protoOf(InstructionElement).equals = function (other) {
|
|
432
|
+
if (this === other)
|
|
433
|
+
return true;
|
|
434
|
+
if (!(other instanceof InstructionElement))
|
|
435
|
+
return false;
|
|
436
|
+
if (!(this.a1e_1 === other.a1e_1))
|
|
437
|
+
return false;
|
|
438
|
+
if (!equals(this.b1e_1, other.b1e_1))
|
|
439
|
+
return false;
|
|
440
|
+
if (!equals(this.c1e_1, other.c1e_1))
|
|
441
|
+
return false;
|
|
442
|
+
return true;
|
|
443
|
+
};
|
|
444
|
+
function RecipeV3(bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, ingredientsTemplate, instructions, instructionsTemplate, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate) {
|
|
445
|
+
bookCredit = bookCredit === VOID ? null : bookCredit;
|
|
446
|
+
byline = byline === VOID ? null : byline;
|
|
447
|
+
canonicalArticle = canonicalArticle === VOID ? null : canonicalArticle;
|
|
448
|
+
celebrationIDS = celebrationIDS === VOID ? null : celebrationIDS;
|
|
449
|
+
composerID = composerID === VOID ? null : composerID;
|
|
450
|
+
contributors = contributors === VOID ? null : contributors;
|
|
451
|
+
cuisineIDS = cuisineIDS === VOID ? null : cuisineIDS;
|
|
452
|
+
description = description === VOID ? null : description;
|
|
453
|
+
difficultyLevel = difficultyLevel === VOID ? null : difficultyLevel;
|
|
454
|
+
featuredImage = featuredImage === VOID ? null : featuredImage;
|
|
455
|
+
ingredients = ingredients === VOID ? null : ingredients;
|
|
456
|
+
ingredientsTemplate = ingredientsTemplate === VOID ? null : ingredientsTemplate;
|
|
457
|
+
instructions = instructions === VOID ? null : instructions;
|
|
458
|
+
instructionsTemplate = instructionsTemplate === VOID ? null : instructionsTemplate;
|
|
459
|
+
isAppReady = isAppReady === VOID ? null : isAppReady;
|
|
460
|
+
mealTypeIDS = mealTypeIDS === VOID ? null : mealTypeIDS;
|
|
461
|
+
serves = serves === VOID ? null : serves;
|
|
462
|
+
suitableForDietIDS = suitableForDietIDS === VOID ? null : suitableForDietIDS;
|
|
463
|
+
techniquesUsedIDS = techniquesUsedIDS === VOID ? null : techniquesUsedIDS;
|
|
464
|
+
timings = timings === VOID ? null : timings;
|
|
465
|
+
title = title === VOID ? null : title;
|
|
466
|
+
utensilsAndApplianceIDS = utensilsAndApplianceIDS === VOID ? null : utensilsAndApplianceIDS;
|
|
467
|
+
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
468
|
+
this.i1b_1 = bookCredit;
|
|
469
|
+
this.j1b_1 = byline;
|
|
470
|
+
this.k1b_1 = canonicalArticle;
|
|
471
|
+
this.l1b_1 = celebrationIDS;
|
|
472
|
+
this.m1b_1 = composerID;
|
|
473
|
+
this.n1b_1 = contributors;
|
|
474
|
+
this.o1b_1 = cuisineIDS;
|
|
475
|
+
this.p1b_1 = description;
|
|
476
|
+
this.q1b_1 = difficultyLevel;
|
|
477
|
+
this.r1b_1 = featuredImage;
|
|
478
|
+
this.s1b_1 = id;
|
|
479
|
+
this.t1b_1 = ingredients;
|
|
480
|
+
this.u1b_1 = ingredientsTemplate;
|
|
481
|
+
this.v1b_1 = instructions;
|
|
482
|
+
this.w1b_1 = instructionsTemplate;
|
|
483
|
+
this.x1b_1 = isAppReady;
|
|
484
|
+
this.y1b_1 = mealTypeIDS;
|
|
485
|
+
this.z1b_1 = serves;
|
|
486
|
+
this.a1c_1 = suitableForDietIDS;
|
|
487
|
+
this.b1c_1 = techniquesUsedIDS;
|
|
488
|
+
this.c1c_1 = timings;
|
|
489
|
+
this.d1c_1 = title;
|
|
490
|
+
this.e1c_1 = utensilsAndApplianceIDS;
|
|
491
|
+
this.f1c_1 = webPublicationDate;
|
|
492
|
+
}
|
|
493
|
+
protoOf(RecipeV3).toString = function () {
|
|
494
|
+
return 'RecipeV3(bookCredit=' + this.i1b_1 + ', byline=' + toString(this.j1b_1) + ', canonicalArticle=' + this.k1b_1 + ', celebrationIDS=' + toString(this.l1b_1) + ', composerID=' + this.m1b_1 + ', contributors=' + toString(this.n1b_1) + ', cuisineIDS=' + toString(this.o1b_1) + ', description=' + this.p1b_1 + ', difficultyLevel=' + this.q1b_1 + ', featuredImage=' + toString(this.r1b_1) + ', id=' + this.s1b_1 + ', ingredients=' + toString(this.t1b_1) + ', ingredientsTemplate=' + toString(this.u1b_1) + ', instructions=' + toString(this.v1b_1) + ', instructionsTemplate=' + toString(this.w1b_1) + ', isAppReady=' + this.x1b_1 + ', mealTypeIDS=' + toString(this.y1b_1) + ', serves=' + toString(this.z1b_1) + ', suitableForDietIDS=' + toString(this.a1c_1) + ', techniquesUsedIDS=' + toString(this.b1c_1) + ', timings=' + toString(this.c1c_1) + ', title=' + this.d1c_1 + ', utensilsAndApplianceIDS=' + toString(this.e1c_1) + ', webPublicationDate=' + this.f1c_1 + ')';
|
|
495
|
+
};
|
|
496
|
+
protoOf(RecipeV3).hashCode = function () {
|
|
497
|
+
var result = this.i1b_1 == null ? 0 : getStringHashCode(this.i1b_1);
|
|
498
|
+
result = imul(result, 31) + (this.j1b_1 == null ? 0 : hashCode(this.j1b_1)) | 0;
|
|
499
|
+
result = imul(result, 31) + (this.k1b_1 == null ? 0 : getStringHashCode(this.k1b_1)) | 0;
|
|
500
|
+
result = imul(result, 31) + (this.l1b_1 == null ? 0 : hashCode(this.l1b_1)) | 0;
|
|
501
|
+
result = imul(result, 31) + (this.m1b_1 == null ? 0 : getStringHashCode(this.m1b_1)) | 0;
|
|
502
|
+
result = imul(result, 31) + (this.n1b_1 == null ? 0 : hashCode(this.n1b_1)) | 0;
|
|
503
|
+
result = imul(result, 31) + (this.o1b_1 == null ? 0 : hashCode(this.o1b_1)) | 0;
|
|
504
|
+
result = imul(result, 31) + (this.p1b_1 == null ? 0 : getStringHashCode(this.p1b_1)) | 0;
|
|
505
|
+
result = imul(result, 31) + (this.q1b_1 == null ? 0 : getStringHashCode(this.q1b_1)) | 0;
|
|
506
|
+
result = imul(result, 31) + (this.r1b_1 == null ? 0 : this.r1b_1.hashCode()) | 0;
|
|
507
|
+
result = imul(result, 31) + getStringHashCode(this.s1b_1) | 0;
|
|
508
|
+
result = imul(result, 31) + (this.t1b_1 == null ? 0 : hashCode(this.t1b_1)) | 0;
|
|
509
|
+
result = imul(result, 31) + (this.u1b_1 == null ? 0 : hashCode(this.u1b_1)) | 0;
|
|
510
|
+
result = imul(result, 31) + (this.v1b_1 == null ? 0 : hashCode(this.v1b_1)) | 0;
|
|
511
|
+
result = imul(result, 31) + (this.w1b_1 == null ? 0 : hashCode(this.w1b_1)) | 0;
|
|
512
|
+
result = imul(result, 31) + (this.x1b_1 == null ? 0 : getBooleanHashCode(this.x1b_1)) | 0;
|
|
513
|
+
result = imul(result, 31) + (this.y1b_1 == null ? 0 : hashCode(this.y1b_1)) | 0;
|
|
514
|
+
result = imul(result, 31) + (this.z1b_1 == null ? 0 : hashCode(this.z1b_1)) | 0;
|
|
515
|
+
result = imul(result, 31) + (this.a1c_1 == null ? 0 : hashCode(this.a1c_1)) | 0;
|
|
516
|
+
result = imul(result, 31) + (this.b1c_1 == null ? 0 : hashCode(this.b1c_1)) | 0;
|
|
517
|
+
result = imul(result, 31) + (this.c1c_1 == null ? 0 : hashCode(this.c1c_1)) | 0;
|
|
518
|
+
result = imul(result, 31) + (this.d1c_1 == null ? 0 : getStringHashCode(this.d1c_1)) | 0;
|
|
519
|
+
result = imul(result, 31) + (this.e1c_1 == null ? 0 : hashCode(this.e1c_1)) | 0;
|
|
520
|
+
result = imul(result, 31) + (this.f1c_1 == null ? 0 : getStringHashCode(this.f1c_1)) | 0;
|
|
521
|
+
return result;
|
|
522
|
+
};
|
|
523
|
+
protoOf(RecipeV3).equals = function (other) {
|
|
524
|
+
if (this === other)
|
|
525
|
+
return true;
|
|
526
|
+
if (!(other instanceof RecipeV3))
|
|
527
|
+
return false;
|
|
528
|
+
if (!(this.i1b_1 == other.i1b_1))
|
|
529
|
+
return false;
|
|
530
|
+
if (!equals(this.j1b_1, other.j1b_1))
|
|
531
|
+
return false;
|
|
532
|
+
if (!(this.k1b_1 == other.k1b_1))
|
|
533
|
+
return false;
|
|
534
|
+
if (!equals(this.l1b_1, other.l1b_1))
|
|
535
|
+
return false;
|
|
536
|
+
if (!(this.m1b_1 == other.m1b_1))
|
|
537
|
+
return false;
|
|
538
|
+
if (!equals(this.n1b_1, other.n1b_1))
|
|
539
|
+
return false;
|
|
540
|
+
if (!equals(this.o1b_1, other.o1b_1))
|
|
541
|
+
return false;
|
|
542
|
+
if (!(this.p1b_1 == other.p1b_1))
|
|
543
|
+
return false;
|
|
544
|
+
if (!(this.q1b_1 == other.q1b_1))
|
|
545
|
+
return false;
|
|
546
|
+
if (!equals(this.r1b_1, other.r1b_1))
|
|
547
|
+
return false;
|
|
548
|
+
if (!(this.s1b_1 === other.s1b_1))
|
|
549
|
+
return false;
|
|
550
|
+
if (!equals(this.t1b_1, other.t1b_1))
|
|
551
|
+
return false;
|
|
552
|
+
if (!equals(this.u1b_1, other.u1b_1))
|
|
553
|
+
return false;
|
|
554
|
+
if (!equals(this.v1b_1, other.v1b_1))
|
|
555
|
+
return false;
|
|
556
|
+
if (!equals(this.w1b_1, other.w1b_1))
|
|
557
|
+
return false;
|
|
558
|
+
if (!(this.x1b_1 == other.x1b_1))
|
|
559
|
+
return false;
|
|
560
|
+
if (!equals(this.y1b_1, other.y1b_1))
|
|
561
|
+
return false;
|
|
562
|
+
if (!equals(this.z1b_1, other.z1b_1))
|
|
563
|
+
return false;
|
|
564
|
+
if (!equals(this.a1c_1, other.a1c_1))
|
|
565
|
+
return false;
|
|
566
|
+
if (!equals(this.b1c_1, other.b1c_1))
|
|
567
|
+
return false;
|
|
568
|
+
if (!equals(this.c1c_1, other.c1c_1))
|
|
569
|
+
return false;
|
|
570
|
+
if (!(this.d1c_1 == other.d1c_1))
|
|
571
|
+
return false;
|
|
572
|
+
if (!equals(this.e1c_1, other.e1c_1))
|
|
573
|
+
return false;
|
|
574
|
+
if (!(this.f1c_1 == other.f1c_1))
|
|
575
|
+
return false;
|
|
576
|
+
return true;
|
|
577
|
+
};
|
|
578
|
+
function parseTemplate(template) {
|
|
579
|
+
var pattern = Regex_init_$Create$('\\{(?:[^{}"]|"(?:[^"\\\\\\\\]|\\\\\\\\.)*")*\\}');
|
|
580
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
581
|
+
var parts = ArrayList_init_$Create$_0();
|
|
582
|
+
var lastEnd = 0;
|
|
583
|
+
// Inline function 'kotlin.sequences.forEach' call
|
|
584
|
+
var _iterator__ex2g4s = pattern.fa(template).h();
|
|
585
|
+
while (_iterator__ex2g4s.i()) {
|
|
586
|
+
var element = _iterator__ex2g4s.j();
|
|
587
|
+
if (element.ta().p_1 > lastEnd) {
|
|
588
|
+
var textPart = substring(template, lastEnd, element.ta().p_1);
|
|
589
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
590
|
+
if (!isBlank(textPart)) {
|
|
591
|
+
parts.f(new TemplateConst(textPart));
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
try {
|
|
595
|
+
var jsonObj = get_jsonObject(Default_getInstance().t10(element.o1()));
|
|
596
|
+
if (jsonObj.s1().l1('min')) {
|
|
597
|
+
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
598
|
+
var this_0 = Default_getInstance();
|
|
599
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
600
|
+
var this_1 = this_0.cl();
|
|
601
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
602
|
+
var this_2 = serializer(this_1, createKType(getKClass(QuantityPlaceholder), arrayOf([]), false));
|
|
603
|
+
var tmp$ret$3 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
604
|
+
// Inline function 'kotlin.let' call
|
|
605
|
+
var it = this_0.s10(tmp$ret$3, jsonObj);
|
|
606
|
+
parts.f(it);
|
|
607
|
+
} else {
|
|
608
|
+
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
609
|
+
var this_3 = Default_getInstance();
|
|
610
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
611
|
+
var this_4 = this_3.cl();
|
|
612
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
613
|
+
var this_5 = serializer(this_4, createKType(getKClass(OvenTemperaturePlaceholder), arrayOf([]), false));
|
|
614
|
+
var tmp$ret$8 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
615
|
+
// Inline function 'kotlin.let' call
|
|
616
|
+
var it_0 = this_3.s10(tmp$ret$8, jsonObj);
|
|
617
|
+
parts.f(it_0);
|
|
618
|
+
}
|
|
619
|
+
} catch ($p) {
|
|
620
|
+
if ($p instanceof Exception) {
|
|
621
|
+
var e = $p;
|
|
622
|
+
print('Failed to parse JSON: ' + element.o1() + ', error: ' + e.message);
|
|
623
|
+
parts.f(new TemplateConst(element.o1()));
|
|
624
|
+
} else {
|
|
625
|
+
throw $p;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
lastEnd = element.ta().q_1 + 1 | 0;
|
|
629
|
+
}
|
|
630
|
+
if (lastEnd < template.length) {
|
|
631
|
+
var remaining = substring_0(template, lastEnd);
|
|
632
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
633
|
+
if (!isBlank(remaining)) {
|
|
634
|
+
parts.f(new TemplateConst(remaining));
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
return new ParsedTemplate(parts);
|
|
638
|
+
}
|
|
639
|
+
function Companion() {
|
|
640
|
+
}
|
|
641
|
+
var Companion_instance;
|
|
642
|
+
function Companion_getInstance() {
|
|
643
|
+
return Companion_instance;
|
|
644
|
+
}
|
|
645
|
+
function $serializer() {
|
|
646
|
+
$serializer_instance = this;
|
|
647
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.TemplateElement.QuantityPlaceholder', this, 4);
|
|
648
|
+
tmp0_serialDesc.wr('min', false);
|
|
649
|
+
tmp0_serialDesc.wr('max', true);
|
|
650
|
+
tmp0_serialDesc.wr('unit', true);
|
|
651
|
+
tmp0_serialDesc.wr('scale', true);
|
|
652
|
+
this.d1e_1 = tmp0_serialDesc;
|
|
653
|
+
}
|
|
654
|
+
protoOf($serializer).e1e = function (encoder, value) {
|
|
655
|
+
var tmp0_desc = this.d1e_1;
|
|
656
|
+
var tmp1_output = encoder.nk(tmp0_desc);
|
|
657
|
+
tmp1_output.yl(tmp0_desc, 0, value.d1b_1);
|
|
658
|
+
if (tmp1_output.jm(tmp0_desc, 1) ? true : !(value.e1b_1 == null)) {
|
|
659
|
+
tmp1_output.fm(tmp0_desc, 1, FloatSerializer_getInstance(), value.e1b_1);
|
|
660
|
+
}
|
|
661
|
+
if (tmp1_output.jm(tmp0_desc, 2) ? true : !(value.f1b_1 == null)) {
|
|
662
|
+
tmp1_output.fm(tmp0_desc, 2, StringSerializer_getInstance(), value.f1b_1);
|
|
663
|
+
}
|
|
664
|
+
if (tmp1_output.jm(tmp0_desc, 3) ? true : !(value.g1b_1 === false)) {
|
|
665
|
+
tmp1_output.tl(tmp0_desc, 3, value.g1b_1);
|
|
666
|
+
}
|
|
667
|
+
tmp1_output.ok(tmp0_desc);
|
|
668
|
+
};
|
|
669
|
+
protoOf($serializer).rh = function (encoder, value) {
|
|
670
|
+
return this.e1e(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
671
|
+
};
|
|
672
|
+
protoOf($serializer).sh = function (decoder) {
|
|
673
|
+
var tmp0_desc = this.d1e_1;
|
|
674
|
+
var tmp1_flag = true;
|
|
675
|
+
var tmp2_index = 0;
|
|
676
|
+
var tmp3_bitMask0 = 0;
|
|
677
|
+
var tmp4_local0 = 0.0;
|
|
678
|
+
var tmp5_local1 = null;
|
|
679
|
+
var tmp6_local2 = null;
|
|
680
|
+
var tmp7_local3 = false;
|
|
681
|
+
var tmp8_input = decoder.nk(tmp0_desc);
|
|
682
|
+
if (tmp8_input.dl()) {
|
|
683
|
+
tmp4_local0 = tmp8_input.uk(tmp0_desc, 0);
|
|
684
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
685
|
+
tmp5_local1 = tmp8_input.bl(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
686
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
687
|
+
tmp6_local2 = tmp8_input.bl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
688
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
689
|
+
tmp7_local3 = tmp8_input.pk(tmp0_desc, 3);
|
|
690
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
691
|
+
} else
|
|
692
|
+
while (tmp1_flag) {
|
|
693
|
+
tmp2_index = tmp8_input.el(tmp0_desc);
|
|
694
|
+
switch (tmp2_index) {
|
|
695
|
+
case -1:
|
|
696
|
+
tmp1_flag = false;
|
|
697
|
+
break;
|
|
698
|
+
case 0:
|
|
699
|
+
tmp4_local0 = tmp8_input.uk(tmp0_desc, 0);
|
|
700
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
701
|
+
break;
|
|
702
|
+
case 1:
|
|
703
|
+
tmp5_local1 = tmp8_input.bl(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
704
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
705
|
+
break;
|
|
706
|
+
case 2:
|
|
707
|
+
tmp6_local2 = tmp8_input.bl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
708
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
709
|
+
break;
|
|
710
|
+
case 3:
|
|
711
|
+
tmp7_local3 = tmp8_input.pk(tmp0_desc, 3);
|
|
712
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
713
|
+
break;
|
|
714
|
+
default:
|
|
715
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
tmp8_input.ok(tmp0_desc);
|
|
719
|
+
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
720
|
+
};
|
|
721
|
+
protoOf($serializer).qh = function () {
|
|
722
|
+
return this.d1e_1;
|
|
723
|
+
};
|
|
724
|
+
protoOf($serializer).yr = function () {
|
|
725
|
+
// Inline function 'kotlin.arrayOf' call
|
|
726
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
727
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
728
|
+
return [FloatSerializer_getInstance(), get_nullable(FloatSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()];
|
|
729
|
+
};
|
|
730
|
+
var $serializer_instance;
|
|
731
|
+
function $serializer_getInstance() {
|
|
732
|
+
if ($serializer_instance == null)
|
|
733
|
+
new $serializer();
|
|
734
|
+
return $serializer_instance;
|
|
735
|
+
}
|
|
736
|
+
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, $this) {
|
|
737
|
+
if (!(1 === (1 & seen0))) {
|
|
738
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance().d1e_1);
|
|
739
|
+
}
|
|
740
|
+
$this.d1b_1 = min;
|
|
741
|
+
if (0 === (seen0 & 2))
|
|
742
|
+
$this.e1b_1 = null;
|
|
743
|
+
else
|
|
744
|
+
$this.e1b_1 = max;
|
|
745
|
+
if (0 === (seen0 & 4))
|
|
746
|
+
$this.f1b_1 = null;
|
|
747
|
+
else
|
|
748
|
+
$this.f1b_1 = unit;
|
|
749
|
+
if (0 === (seen0 & 8))
|
|
750
|
+
$this.g1b_1 = false;
|
|
751
|
+
else
|
|
752
|
+
$this.g1b_1 = scale;
|
|
753
|
+
return $this;
|
|
754
|
+
}
|
|
755
|
+
function QuantityPlaceholder_init_$Create$(seen0, min, max, unit, scale, serializationConstructorMarker) {
|
|
756
|
+
return QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, objectCreate(protoOf(QuantityPlaceholder)));
|
|
757
|
+
}
|
|
758
|
+
function Companion_0() {
|
|
759
|
+
}
|
|
760
|
+
var Companion_instance_0;
|
|
761
|
+
function Companion_getInstance_0() {
|
|
762
|
+
return Companion_instance_0;
|
|
763
|
+
}
|
|
764
|
+
function $serializer_0() {
|
|
765
|
+
$serializer_instance_0 = this;
|
|
766
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.TemplateElement.OvenTemperaturePlaceholder', this, 4);
|
|
767
|
+
tmp0_serialDesc.wr('temperatureC', false);
|
|
768
|
+
tmp0_serialDesc.wr('temperatureFanC', true);
|
|
769
|
+
tmp0_serialDesc.wr('temperatureF', true);
|
|
770
|
+
tmp0_serialDesc.wr('gasMark', true);
|
|
771
|
+
this.f1e_1 = tmp0_serialDesc;
|
|
772
|
+
}
|
|
773
|
+
protoOf($serializer_0).g1e = function (encoder, value) {
|
|
774
|
+
var tmp0_desc = this.f1e_1;
|
|
775
|
+
var tmp1_output = encoder.nk(tmp0_desc);
|
|
776
|
+
tmp1_output.wl(tmp0_desc, 0, value.z1a_1);
|
|
777
|
+
if (tmp1_output.jm(tmp0_desc, 1) ? true : !(value.a1b_1 == null)) {
|
|
778
|
+
tmp1_output.fm(tmp0_desc, 1, IntSerializer_getInstance(), value.a1b_1);
|
|
779
|
+
}
|
|
780
|
+
if (tmp1_output.jm(tmp0_desc, 2) ? true : !(value.b1b_1 == null)) {
|
|
781
|
+
tmp1_output.fm(tmp0_desc, 2, IntSerializer_getInstance(), value.b1b_1);
|
|
782
|
+
}
|
|
783
|
+
if (tmp1_output.jm(tmp0_desc, 3) ? true : !(value.c1b_1 == null)) {
|
|
784
|
+
tmp1_output.fm(tmp0_desc, 3, FloatSerializer_getInstance(), value.c1b_1);
|
|
785
|
+
}
|
|
786
|
+
tmp1_output.ok(tmp0_desc);
|
|
787
|
+
};
|
|
788
|
+
protoOf($serializer_0).rh = function (encoder, value) {
|
|
789
|
+
return this.g1e(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
790
|
+
};
|
|
791
|
+
protoOf($serializer_0).sh = function (decoder) {
|
|
792
|
+
var tmp0_desc = this.f1e_1;
|
|
793
|
+
var tmp1_flag = true;
|
|
794
|
+
var tmp2_index = 0;
|
|
795
|
+
var tmp3_bitMask0 = 0;
|
|
796
|
+
var tmp4_local0 = 0;
|
|
797
|
+
var tmp5_local1 = null;
|
|
798
|
+
var tmp6_local2 = null;
|
|
799
|
+
var tmp7_local3 = null;
|
|
800
|
+
var tmp8_input = decoder.nk(tmp0_desc);
|
|
801
|
+
if (tmp8_input.dl()) {
|
|
802
|
+
tmp4_local0 = tmp8_input.sk(tmp0_desc, 0);
|
|
803
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
804
|
+
tmp5_local1 = tmp8_input.bl(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
805
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
806
|
+
tmp6_local2 = tmp8_input.bl(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
807
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
808
|
+
tmp7_local3 = tmp8_input.bl(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
809
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
810
|
+
} else
|
|
811
|
+
while (tmp1_flag) {
|
|
812
|
+
tmp2_index = tmp8_input.el(tmp0_desc);
|
|
813
|
+
switch (tmp2_index) {
|
|
814
|
+
case -1:
|
|
815
|
+
tmp1_flag = false;
|
|
816
|
+
break;
|
|
817
|
+
case 0:
|
|
818
|
+
tmp4_local0 = tmp8_input.sk(tmp0_desc, 0);
|
|
819
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
820
|
+
break;
|
|
821
|
+
case 1:
|
|
822
|
+
tmp5_local1 = tmp8_input.bl(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
823
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
824
|
+
break;
|
|
825
|
+
case 2:
|
|
826
|
+
tmp6_local2 = tmp8_input.bl(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
827
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
828
|
+
break;
|
|
829
|
+
case 3:
|
|
830
|
+
tmp7_local3 = tmp8_input.bl(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
831
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
832
|
+
break;
|
|
833
|
+
default:
|
|
834
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
tmp8_input.ok(tmp0_desc);
|
|
838
|
+
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
839
|
+
};
|
|
840
|
+
protoOf($serializer_0).qh = function () {
|
|
841
|
+
return this.f1e_1;
|
|
842
|
+
};
|
|
843
|
+
protoOf($serializer_0).yr = function () {
|
|
844
|
+
// Inline function 'kotlin.arrayOf' call
|
|
845
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
846
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
847
|
+
return [IntSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())];
|
|
848
|
+
};
|
|
849
|
+
var $serializer_instance_0;
|
|
850
|
+
function $serializer_getInstance_0() {
|
|
851
|
+
if ($serializer_instance_0 == null)
|
|
852
|
+
new $serializer_0();
|
|
853
|
+
return $serializer_instance_0;
|
|
854
|
+
}
|
|
855
|
+
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
856
|
+
if (!(1 === (1 & seen0))) {
|
|
857
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().f1e_1);
|
|
858
|
+
}
|
|
859
|
+
$this.z1a_1 = temperatureC;
|
|
860
|
+
if (0 === (seen0 & 2))
|
|
861
|
+
$this.a1b_1 = null;
|
|
862
|
+
else
|
|
863
|
+
$this.a1b_1 = temperatureFanC;
|
|
864
|
+
if (0 === (seen0 & 4))
|
|
865
|
+
$this.b1b_1 = null;
|
|
866
|
+
else
|
|
867
|
+
$this.b1b_1 = temperatureF;
|
|
868
|
+
if (0 === (seen0 & 8))
|
|
869
|
+
$this.c1b_1 = null;
|
|
870
|
+
else
|
|
871
|
+
$this.c1b_1 = gasMark;
|
|
872
|
+
return $this;
|
|
873
|
+
}
|
|
874
|
+
function OvenTemperaturePlaceholder_init_$Create$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker) {
|
|
875
|
+
return OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, objectCreate(protoOf(OvenTemperaturePlaceholder)));
|
|
876
|
+
}
|
|
877
|
+
function TemplateConst(value) {
|
|
878
|
+
this.h1b_1 = value;
|
|
879
|
+
}
|
|
880
|
+
protoOf(TemplateConst).toString = function () {
|
|
881
|
+
return 'TemplateConst(value=' + this.h1b_1 + ')';
|
|
882
|
+
};
|
|
883
|
+
protoOf(TemplateConst).hashCode = function () {
|
|
884
|
+
return getStringHashCode(this.h1b_1);
|
|
885
|
+
};
|
|
886
|
+
protoOf(TemplateConst).equals = function (other) {
|
|
887
|
+
if (this === other)
|
|
888
|
+
return true;
|
|
889
|
+
if (!(other instanceof TemplateConst))
|
|
890
|
+
return false;
|
|
891
|
+
if (!(this.h1b_1 === other.h1b_1))
|
|
892
|
+
return false;
|
|
893
|
+
return true;
|
|
894
|
+
};
|
|
895
|
+
function QuantityPlaceholder(min, max, unit, scale) {
|
|
896
|
+
max = max === VOID ? null : max;
|
|
897
|
+
unit = unit === VOID ? null : unit;
|
|
898
|
+
scale = scale === VOID ? false : scale;
|
|
899
|
+
this.d1b_1 = min;
|
|
900
|
+
this.e1b_1 = max;
|
|
901
|
+
this.f1b_1 = unit;
|
|
902
|
+
this.g1b_1 = scale;
|
|
903
|
+
}
|
|
904
|
+
protoOf(QuantityPlaceholder).toString = function () {
|
|
905
|
+
return 'QuantityPlaceholder(min=' + this.d1b_1 + ', max=' + this.e1b_1 + ', unit=' + this.f1b_1 + ', scale=' + this.g1b_1 + ')';
|
|
906
|
+
};
|
|
907
|
+
protoOf(QuantityPlaceholder).hashCode = function () {
|
|
908
|
+
var result = getNumberHashCode(this.d1b_1);
|
|
909
|
+
result = imul(result, 31) + (this.e1b_1 == null ? 0 : getNumberHashCode(this.e1b_1)) | 0;
|
|
910
|
+
result = imul(result, 31) + (this.f1b_1 == null ? 0 : getStringHashCode(this.f1b_1)) | 0;
|
|
911
|
+
result = imul(result, 31) + getBooleanHashCode(this.g1b_1) | 0;
|
|
912
|
+
return result;
|
|
913
|
+
};
|
|
914
|
+
protoOf(QuantityPlaceholder).equals = function (other) {
|
|
915
|
+
if (this === other)
|
|
916
|
+
return true;
|
|
917
|
+
if (!(other instanceof QuantityPlaceholder))
|
|
918
|
+
return false;
|
|
919
|
+
if (!equals(this.d1b_1, other.d1b_1))
|
|
920
|
+
return false;
|
|
921
|
+
if (!equals(this.e1b_1, other.e1b_1))
|
|
922
|
+
return false;
|
|
923
|
+
if (!(this.f1b_1 == other.f1b_1))
|
|
924
|
+
return false;
|
|
925
|
+
if (!(this.g1b_1 === other.g1b_1))
|
|
926
|
+
return false;
|
|
927
|
+
return true;
|
|
928
|
+
};
|
|
929
|
+
function OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
930
|
+
temperatureFanC = temperatureFanC === VOID ? null : temperatureFanC;
|
|
931
|
+
temperatureF = temperatureF === VOID ? null : temperatureF;
|
|
932
|
+
gasMark = gasMark === VOID ? null : gasMark;
|
|
933
|
+
this.z1a_1 = temperatureC;
|
|
934
|
+
this.a1b_1 = temperatureFanC;
|
|
935
|
+
this.b1b_1 = temperatureF;
|
|
936
|
+
this.c1b_1 = gasMark;
|
|
937
|
+
}
|
|
938
|
+
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
939
|
+
return 'OvenTemperaturePlaceholder(temperatureC=' + this.z1a_1 + ', temperatureFanC=' + this.a1b_1 + ', temperatureF=' + this.b1b_1 + ', gasMark=' + this.c1b_1 + ')';
|
|
940
|
+
};
|
|
941
|
+
protoOf(OvenTemperaturePlaceholder).hashCode = function () {
|
|
942
|
+
var result = this.z1a_1;
|
|
943
|
+
result = imul(result, 31) + (this.a1b_1 == null ? 0 : this.a1b_1) | 0;
|
|
944
|
+
result = imul(result, 31) + (this.b1b_1 == null ? 0 : this.b1b_1) | 0;
|
|
945
|
+
result = imul(result, 31) + (this.c1b_1 == null ? 0 : getNumberHashCode(this.c1b_1)) | 0;
|
|
946
|
+
return result;
|
|
947
|
+
};
|
|
948
|
+
protoOf(OvenTemperaturePlaceholder).equals = function (other) {
|
|
949
|
+
if (this === other)
|
|
950
|
+
return true;
|
|
951
|
+
if (!(other instanceof OvenTemperaturePlaceholder))
|
|
952
|
+
return false;
|
|
953
|
+
if (!(this.z1a_1 === other.z1a_1))
|
|
954
|
+
return false;
|
|
955
|
+
if (!(this.a1b_1 == other.a1b_1))
|
|
956
|
+
return false;
|
|
957
|
+
if (!(this.b1b_1 == other.b1b_1))
|
|
958
|
+
return false;
|
|
959
|
+
if (!equals(this.c1b_1, other.c1b_1))
|
|
960
|
+
return false;
|
|
961
|
+
return true;
|
|
962
|
+
};
|
|
963
|
+
function ParsedTemplate(elements) {
|
|
964
|
+
this.y1a_1 = elements;
|
|
965
|
+
}
|
|
966
|
+
protoOf(ParsedTemplate).toString = function () {
|
|
967
|
+
return 'ParsedTemplate(elements=' + toString_0(this.y1a_1) + ')';
|
|
968
|
+
};
|
|
969
|
+
protoOf(ParsedTemplate).hashCode = function () {
|
|
970
|
+
return hashCode(this.y1a_1);
|
|
971
|
+
};
|
|
972
|
+
protoOf(ParsedTemplate).equals = function (other) {
|
|
973
|
+
if (this === other)
|
|
974
|
+
return true;
|
|
975
|
+
if (!(other instanceof ParsedTemplate))
|
|
976
|
+
return false;
|
|
977
|
+
if (!equals(this.y1a_1, other.y1a_1))
|
|
978
|
+
return false;
|
|
979
|
+
return true;
|
|
980
|
+
};
|
|
981
|
+
function scaleRecipe_0(recipe, factor, unit) {
|
|
982
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
983
|
+
var this_0 = Default_getInstance();
|
|
984
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
985
|
+
var this_1 = this_0.cl();
|
|
986
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
987
|
+
var this_2 = serializer(this_1, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
988
|
+
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
989
|
+
var parsedRecipe = this_0.r10(tmp$ret$1, recipe);
|
|
990
|
+
var tmp;
|
|
991
|
+
switch (unit) {
|
|
992
|
+
case 'Imperial':
|
|
993
|
+
tmp = Imperial_instance;
|
|
994
|
+
break;
|
|
995
|
+
case 'Metric':
|
|
996
|
+
tmp = Metric_instance;
|
|
997
|
+
break;
|
|
998
|
+
default:
|
|
999
|
+
throw IllegalArgumentException_init_$Create$('Unknown unit: ' + unit);
|
|
1000
|
+
}
|
|
1001
|
+
var ingredientUnit = tmp;
|
|
1002
|
+
var scaledRecipe = scaleRecipe(parsedRecipe, factor, ingredientUnit);
|
|
1003
|
+
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
1004
|
+
var this_3 = Default_getInstance();
|
|
1005
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1006
|
+
var this_4 = this_3.cl();
|
|
1007
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1008
|
+
var this_5 = serializer(this_4, createKType(getKClass(RecipeV2), arrayOf([]), false));
|
|
1009
|
+
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
1010
|
+
return this_3.q10(tmp$ret$4, scaledRecipe);
|
|
1011
|
+
}
|
|
1012
|
+
//region block: post-declaration
|
|
1013
|
+
protoOf($serializer).zr = typeParametersSerializers;
|
|
1014
|
+
protoOf($serializer_0).zr = typeParametersSerializers;
|
|
1015
|
+
//endregion
|
|
1016
|
+
//region block: init
|
|
1017
|
+
Imperial_instance = new Imperial();
|
|
1018
|
+
Metric_instance = new Metric();
|
|
1019
|
+
Companion_instance = new Companion();
|
|
1020
|
+
Companion_instance_0 = new Companion_0();
|
|
1021
|
+
//endregion
|
|
1022
|
+
//region block: exports
|
|
1023
|
+
function $jsExportAll$(_) {
|
|
1024
|
+
var $com = _.com || (_.com = {});
|
|
1025
|
+
var $com$gu = $com.gu || ($com.gu = {});
|
|
1026
|
+
var $com$gu$recipe = $com$gu.recipe || ($com$gu.recipe = {});
|
|
1027
|
+
$com$gu$recipe.scaleRecipe = scaleRecipe_0;
|
|
1028
|
+
}
|
|
1029
|
+
$jsExportAll$(_);
|
|
1030
|
+
//endregion
|
|
1031
|
+
return _;
|
|
1032
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js')));
|
|
1033
|
+
|
|
1034
|
+
//# sourceMappingURL=feast-multiplatform-library-library.js.map
|