@guardian/feast-multiplatform-library 12.0.0 → 14.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.
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
var listOfNotNull = kotlin_kotlin.$_$.c5;
|
|
19
19
|
var joinToString = kotlin_kotlin.$_$.x4;
|
|
20
20
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bb;
|
|
21
|
+
var isBlank = kotlin_kotlin.$_$.v8;
|
|
21
22
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.d4;
|
|
22
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
23
24
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d1;
|
|
@@ -79,7 +80,6 @@
|
|
|
79
80
|
var print = kotlin_kotlin.$_$.w5;
|
|
80
81
|
var Exception = kotlin_kotlin.$_$.ba;
|
|
81
82
|
var substring_0 = kotlin_kotlin.$_$.d9;
|
|
82
|
-
var isBlank = kotlin_kotlin.$_$.v8;
|
|
83
83
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
84
84
|
var initMetadataForInterface = kotlin_kotlin.$_$.g7;
|
|
85
85
|
var Enum = kotlin_kotlin.$_$.aa;
|
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
initMetadataForObject(Imperial, 'Imperial');
|
|
140
140
|
initMetadataForObject(Metric, 'Metric');
|
|
141
141
|
initMetadataForObject(USCustomary, 'USCustomary');
|
|
142
|
+
initMetadataForObject(USCustomaryWithMetric, 'USCustomaryWithMetric');
|
|
143
|
+
initMetadataForObject(USCustomaryWithImperial, 'USCustomaryWithImperial');
|
|
144
|
+
initMetadataForObject(USCombined, 'USCombined');
|
|
142
145
|
initMetadataForClass(UnitType, 'UnitType', VOID, Enum);
|
|
143
146
|
initMetadataForClass(MeasurementUnit, 'MeasurementUnit');
|
|
144
147
|
initMetadataForObject(Units, 'Units');
|
|
@@ -201,7 +204,7 @@
|
|
|
201
204
|
var integerPart = numberToInt(number);
|
|
202
205
|
var integerPartStr = integerPart > 0 ? integerPart.toString() : '';
|
|
203
206
|
var fractionalPart = number - integerPart;
|
|
204
|
-
return (0.0 <= fractionalPart ? fractionalPart <= 0.
|
|
207
|
+
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);
|
|
205
208
|
};
|
|
206
209
|
protoOf(FormatUtils).i1d = function (number, decimals, fraction) {
|
|
207
210
|
if (fraction) {
|
|
@@ -303,11 +306,11 @@
|
|
|
303
306
|
tmp_1 = this.k1d_1.p1e(tmp1_safe_receiver);
|
|
304
307
|
}
|
|
305
308
|
var density = tmp_1;
|
|
306
|
-
amount = UnitConversions_getInstance().
|
|
309
|
+
amount = UnitConversions_getInstance().y1e(amount, measuringSystem, factorToUse, density);
|
|
307
310
|
var tmp2_subject = amount.c1d_1;
|
|
308
|
-
var decimals = equals(tmp2_subject, Units_getInstance().n1d_1) || (equals(tmp2_subject, Units_getInstance().r1d_1) || equals(tmp2_subject, Units_getInstance().e1e_1)) ? 0 : equals(tmp2_subject, Units_getInstance().f1e_1) || equals(tmp2_subject, Units_getInstance().g1e_1) ? 1 : 1;
|
|
311
|
+
var decimals = equals(tmp2_subject, Units_getInstance().n1d_1) || (equals(tmp2_subject, Units_getInstance().r1d_1) || equals(tmp2_subject, Units_getInstance().e1e_1)) || (equals(tmp2_subject, Units_getInstance().w1d_1) || equals(tmp2_subject, Units_getInstance().u1d_1) || (equals(tmp2_subject, Units_getInstance().x1d_1) || equals(tmp2_subject, Units_getInstance().v1d_1))) ? 0 : equals(tmp2_subject, Units_getInstance().f1e_1) || equals(tmp2_subject, Units_getInstance().g1e_1) ? 1 : 1;
|
|
309
312
|
var tmp3_subject = amount.c1d_1;
|
|
310
|
-
var fraction = equals(tmp3_subject, Units_getInstance().s1d_1) || (equals(tmp3_subject, Units_getInstance().r1d_1) || equals(tmp3_subject, Units_getInstance().f1e_1)) || (equals(tmp3_subject, Units_getInstance().n1d_1) || (equals(tmp3_subject, Units_getInstance().o1d_1) || equals(tmp3_subject, Units_getInstance().e1e_1))) ? false : true;
|
|
313
|
+
var fraction = equals(tmp3_subject, Units_getInstance().s1d_1) || (equals(tmp3_subject, Units_getInstance().r1d_1) || equals(tmp3_subject, Units_getInstance().f1e_1)) || (equals(tmp3_subject, Units_getInstance().n1d_1) || (equals(tmp3_subject, Units_getInstance().o1d_1) || equals(tmp3_subject, Units_getInstance().e1e_1))) ? false : equals(tmp3_subject, Units_getInstance().u1d_1) || equals(tmp3_subject, Units_getInstance().v1d_1) || (equals(tmp3_subject, Units_getInstance().x1d_1) || equals(tmp3_subject, Units_getInstance().w1d_1)) ? amount.a1d_1 < 1.0 : true;
|
|
311
314
|
var tmp_2;
|
|
312
315
|
if (!(amount.c1d_1 == null)) {
|
|
313
316
|
var tmp_3;
|
|
@@ -316,9 +319,9 @@
|
|
|
316
319
|
// Inline function 'kotlin.math.max' call
|
|
317
320
|
var b = tmp4_elvis_lhs == null ? amount.a1d_1 : tmp4_elvis_lhs;
|
|
318
321
|
if (Math.max(tmp0, b) > 1.1) {
|
|
319
|
-
tmp_3 = ' ' + amount.c1d_1.
|
|
322
|
+
tmp_3 = ' ' + amount.c1d_1.c1f_1;
|
|
320
323
|
} else {
|
|
321
|
-
tmp_3 = ' ' + amount.c1d_1.
|
|
324
|
+
tmp_3 = ' ' + amount.c1d_1.b1f_1;
|
|
322
325
|
}
|
|
323
326
|
tmp_2 = tmp_3;
|
|
324
327
|
} else {
|
|
@@ -336,13 +339,94 @@
|
|
|
336
339
|
}
|
|
337
340
|
return joinToString(listOfNotNull([tmp_4, tmp_5, unitString]), '');
|
|
338
341
|
};
|
|
339
|
-
protoOf(TemplateSession).
|
|
342
|
+
protoOf(TemplateSession).g1f = function (element, factor, measuringSystem) {
|
|
340
343
|
var tmp;
|
|
341
344
|
if (element instanceof TemplateConst) {
|
|
342
345
|
tmp = element.value;
|
|
343
346
|
} else {
|
|
344
347
|
if (element instanceof QuantityPlaceholder) {
|
|
345
|
-
|
|
348
|
+
var tmp_0;
|
|
349
|
+
var tmp_1;
|
|
350
|
+
if (measuringSystem instanceof Metric) {
|
|
351
|
+
tmp_1 = true;
|
|
352
|
+
} else {
|
|
353
|
+
var tmp_2;
|
|
354
|
+
if (measuringSystem instanceof Imperial) {
|
|
355
|
+
tmp_2 = true;
|
|
356
|
+
} else {
|
|
357
|
+
tmp_2 = measuringSystem instanceof USCustomary;
|
|
358
|
+
}
|
|
359
|
+
tmp_1 = tmp_2;
|
|
360
|
+
}
|
|
361
|
+
if (tmp_1) {
|
|
362
|
+
tmp_0 = this.m1d(element, factor, measuringSystem);
|
|
363
|
+
} else {
|
|
364
|
+
if (measuringSystem instanceof USCustomaryWithMetric) {
|
|
365
|
+
var tmp_3;
|
|
366
|
+
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
367
|
+
var this_0 = element.unit;
|
|
368
|
+
if (this_0 == null || isBlank(this_0)) {
|
|
369
|
+
tmp_3 = this.m1d(element, factor, USCustomary_instance);
|
|
370
|
+
} else {
|
|
371
|
+
var cupsPart = this.m1d(element, factor, USCustomary_instance);
|
|
372
|
+
var metricPart = this.m1d(element, factor, Metric_instance);
|
|
373
|
+
var tmp_4;
|
|
374
|
+
if (cupsPart === metricPart) {
|
|
375
|
+
tmp_4 = cupsPart;
|
|
376
|
+
} else {
|
|
377
|
+
tmp_4 = metricPart + ' (' + cupsPart + ')';
|
|
378
|
+
}
|
|
379
|
+
tmp_3 = tmp_4;
|
|
380
|
+
}
|
|
381
|
+
tmp_0 = tmp_3;
|
|
382
|
+
} else {
|
|
383
|
+
if (measuringSystem instanceof USCustomaryWithImperial) {
|
|
384
|
+
var tmp_5;
|
|
385
|
+
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
386
|
+
var this_1 = element.unit;
|
|
387
|
+
if (this_1 == null || isBlank(this_1)) {
|
|
388
|
+
tmp_5 = this.m1d(element, factor, USCustomary_instance);
|
|
389
|
+
} else {
|
|
390
|
+
var cupsPart_0 = this.m1d(element, factor, USCustomary_instance);
|
|
391
|
+
var imperialPart = this.m1d(element, factor, Imperial_instance);
|
|
392
|
+
var tmp_6;
|
|
393
|
+
if (cupsPart_0 === imperialPart) {
|
|
394
|
+
tmp_6 = cupsPart_0;
|
|
395
|
+
} else {
|
|
396
|
+
tmp_6 = imperialPart + ' (' + cupsPart_0 + ')';
|
|
397
|
+
}
|
|
398
|
+
tmp_5 = tmp_6;
|
|
399
|
+
}
|
|
400
|
+
tmp_0 = tmp_5;
|
|
401
|
+
} else {
|
|
402
|
+
if (measuringSystem instanceof USCombined) {
|
|
403
|
+
var tmp_7;
|
|
404
|
+
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
405
|
+
var this_2 = element.unit;
|
|
406
|
+
if (this_2 == null || isBlank(this_2)) {
|
|
407
|
+
tmp_7 = this.m1d(element, factor, USCustomary_instance);
|
|
408
|
+
} else {
|
|
409
|
+
var cupsPart_1 = this.m1d(element, factor, USCustomary_instance);
|
|
410
|
+
var imperialPart_0 = this.m1d(element, factor, Imperial_instance);
|
|
411
|
+
var metricPart_0 = this.m1d(element, factor, Metric_instance);
|
|
412
|
+
var tmp_8;
|
|
413
|
+
if (cupsPart_1 === metricPart_0 && cupsPart_1 === imperialPart_0) {
|
|
414
|
+
tmp_8 = metricPart_0;
|
|
415
|
+
} else if (cupsPart_1 === imperialPart_0) {
|
|
416
|
+
tmp_8 = metricPart_0 + ' (' + cupsPart_1 + ')';
|
|
417
|
+
} else {
|
|
418
|
+
tmp_8 = metricPart_0 + ' (' + imperialPart_0 + ' \u2022 ' + cupsPart_1 + ')';
|
|
419
|
+
}
|
|
420
|
+
tmp_7 = tmp_8;
|
|
421
|
+
}
|
|
422
|
+
tmp_0 = tmp_7;
|
|
423
|
+
} else {
|
|
424
|
+
noWhenBranchMatchedException();
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
tmp = tmp_0;
|
|
346
430
|
} else {
|
|
347
431
|
if (element instanceof OvenTemperaturePlaceholder) {
|
|
348
432
|
tmp = this.l1d(element);
|
|
@@ -353,22 +437,22 @@
|
|
|
353
437
|
}
|
|
354
438
|
return tmp;
|
|
355
439
|
};
|
|
356
|
-
protoOf(TemplateSession).
|
|
440
|
+
protoOf(TemplateSession).h1f = function (template, factor, measuringSystem) {
|
|
357
441
|
// Inline function 'kotlin.collections.map' call
|
|
358
|
-
var this_0 = template.
|
|
442
|
+
var this_0 = template.i1f_1;
|
|
359
443
|
// Inline function 'kotlin.collections.mapTo' call
|
|
360
444
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
361
445
|
var _iterator__ex2g4s = this_0.s();
|
|
362
446
|
while (_iterator__ex2g4s.t()) {
|
|
363
447
|
var item = _iterator__ex2g4s.u();
|
|
364
|
-
var tmp$ret$0 = this.
|
|
448
|
+
var tmp$ret$0 = this.g1f(item, factor, measuringSystem);
|
|
365
449
|
destination.w(tmp$ret$0);
|
|
366
450
|
}
|
|
367
451
|
var renderedParts = destination;
|
|
368
452
|
return FormatUtils_getInstance().j1d(joinToString(renderedParts, ''));
|
|
369
453
|
};
|
|
370
454
|
protoOf(TemplateSession).scaleAndConvertUnitRecipe = function (recipe, factor, measuringSystem) {
|
|
371
|
-
var tmp0_safe_receiver = recipe.
|
|
455
|
+
var tmp0_safe_receiver = recipe.v1f_1;
|
|
372
456
|
var tmp;
|
|
373
457
|
if (tmp0_safe_receiver == null) {
|
|
374
458
|
tmp = null;
|
|
@@ -379,7 +463,7 @@
|
|
|
379
463
|
var _iterator__ex2g4s = tmp0_safe_receiver.s();
|
|
380
464
|
while (_iterator__ex2g4s.t()) {
|
|
381
465
|
var item = _iterator__ex2g4s.u();
|
|
382
|
-
var tmp0_safe_receiver_0 = item.
|
|
466
|
+
var tmp0_safe_receiver_0 = item.g1g_1;
|
|
383
467
|
var tmp_0;
|
|
384
468
|
if (tmp0_safe_receiver_0 == null) {
|
|
385
469
|
tmp_0 = null;
|
|
@@ -390,28 +474,28 @@
|
|
|
390
474
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.s();
|
|
391
475
|
while (_iterator__ex2g4s_0.t()) {
|
|
392
476
|
var item_0 = _iterator__ex2g4s_0.u();
|
|
393
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
477
|
+
var tmp0_safe_receiver_1 = item_0.o1g_1;
|
|
394
478
|
var tmp_1;
|
|
395
479
|
if (tmp0_safe_receiver_1 == null) {
|
|
396
480
|
tmp_1 = null;
|
|
397
481
|
} else {
|
|
398
482
|
// Inline function 'kotlin.let' call
|
|
399
|
-
tmp_1 = wrapWithStrongTag(this.
|
|
483
|
+
tmp_1 = wrapWithStrongTag(this.h1f(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
400
484
|
}
|
|
401
485
|
var tmp1_elvis_lhs = tmp_1;
|
|
402
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
403
|
-
var tmp$ret$2 = item_0.
|
|
486
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.p1g_1 : tmp1_elvis_lhs;
|
|
487
|
+
var tmp$ret$2 = item_0.r1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
404
488
|
destination_0.w(tmp$ret$2);
|
|
405
489
|
}
|
|
406
490
|
tmp_0 = destination_0;
|
|
407
491
|
}
|
|
408
|
-
var tmp$ret$5 = new IngredientsList(tmp_0, item.
|
|
492
|
+
var tmp$ret$5 = new IngredientsList(tmp_0, item.h1g_1);
|
|
409
493
|
destination.w(tmp$ret$5);
|
|
410
494
|
}
|
|
411
495
|
tmp = destination;
|
|
412
496
|
}
|
|
413
497
|
var scaledIngredients = tmp;
|
|
414
|
-
var tmp1_safe_receiver = recipe.
|
|
498
|
+
var tmp1_safe_receiver = recipe.w1f_1;
|
|
415
499
|
var tmp_2;
|
|
416
500
|
if (tmp1_safe_receiver == null) {
|
|
417
501
|
tmp_2 = null;
|
|
@@ -422,22 +506,22 @@
|
|
|
422
506
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.s();
|
|
423
507
|
while (_iterator__ex2g4s_1.t()) {
|
|
424
508
|
var item_1 = _iterator__ex2g4s_1.u();
|
|
425
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
509
|
+
var tmp0_safe_receiver_2 = item_1.t1g_1;
|
|
426
510
|
var tmp_3;
|
|
427
511
|
if (tmp0_safe_receiver_2 == null) {
|
|
428
512
|
tmp_3 = null;
|
|
429
513
|
} else {
|
|
430
514
|
// Inline function 'kotlin.let' call
|
|
431
|
-
tmp_3 = this.
|
|
515
|
+
tmp_3 = this.h1f(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
432
516
|
}
|
|
433
517
|
var description = tmp_3;
|
|
434
|
-
var tmp$ret$10 = item_1.
|
|
518
|
+
var tmp$ret$10 = item_1.w1g(description == null ? item_1.s1g_1 : description);
|
|
435
519
|
destination_1.w(tmp$ret$10);
|
|
436
520
|
}
|
|
437
521
|
tmp_2 = destination_1;
|
|
438
522
|
}
|
|
439
523
|
var scaledInstructions = tmp_2;
|
|
440
|
-
return recipe.
|
|
524
|
+
return recipe.x1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
441
525
|
};
|
|
442
526
|
function splitBeforeSuffix(value) {
|
|
443
527
|
// Inline function 'kotlin.charArrayOf' call
|
|
@@ -493,7 +577,7 @@
|
|
|
493
577
|
// Inline function 'kotlin.arrayOf' call
|
|
494
578
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
495
579
|
// Inline function 'kotlin.js.asDynamic' call
|
|
496
|
-
tmp.
|
|
580
|
+
tmp.y1g_1 = [null, tmp_1, lazy(tmp_2, TableSchema$Companion$$childSerializers$_anonymous__48gmsb_0)];
|
|
497
581
|
}
|
|
498
582
|
var Companion_instance_0;
|
|
499
583
|
function Companion_getInstance() {
|
|
@@ -507,22 +591,22 @@
|
|
|
507
591
|
tmp0_serialDesc.rs('prepared_at', false);
|
|
508
592
|
tmp0_serialDesc.rs('key', false);
|
|
509
593
|
tmp0_serialDesc.rs('values', false);
|
|
510
|
-
this.
|
|
594
|
+
this.z1g_1 = tmp0_serialDesc;
|
|
511
595
|
}
|
|
512
|
-
protoOf($serializer).
|
|
513
|
-
var tmp0_desc = this.
|
|
596
|
+
protoOf($serializer).a1h = function (encoder, value) {
|
|
597
|
+
var tmp0_desc = this.z1g_1;
|
|
514
598
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
515
|
-
var tmp2_cached = Companion_getInstance().
|
|
516
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
517
|
-
tmp1_output.ym(tmp0_desc, 1, tmp2_cached[1].h2(), value.
|
|
518
|
-
tmp1_output.ym(tmp0_desc, 2, tmp2_cached[2].h2(), value.
|
|
599
|
+
var tmp2_cached = Companion_getInstance().y1g_1;
|
|
600
|
+
tmp1_output.wm(tmp0_desc, 0, value.b1h_1);
|
|
601
|
+
tmp1_output.ym(tmp0_desc, 1, tmp2_cached[1].h2(), value.c1h_1);
|
|
602
|
+
tmp1_output.ym(tmp0_desc, 2, tmp2_cached[2].h2(), value.d1h_1);
|
|
519
603
|
tmp1_output.jl(tmp0_desc);
|
|
520
604
|
};
|
|
521
605
|
protoOf($serializer).li = function (encoder, value) {
|
|
522
|
-
return this.
|
|
606
|
+
return this.a1h(encoder, value instanceof TableSchema ? value : THROW_CCE());
|
|
523
607
|
};
|
|
524
608
|
protoOf($serializer).mi = function (decoder) {
|
|
525
|
-
var tmp0_desc = this.
|
|
609
|
+
var tmp0_desc = this.z1g_1;
|
|
526
610
|
var tmp1_flag = true;
|
|
527
611
|
var tmp2_index = 0;
|
|
528
612
|
var tmp3_bitMask0 = 0;
|
|
@@ -530,7 +614,7 @@
|
|
|
530
614
|
var tmp5_local1 = null;
|
|
531
615
|
var tmp6_local2 = null;
|
|
532
616
|
var tmp7_input = decoder.il(tmp0_desc);
|
|
533
|
-
var tmp8_cached = Companion_getInstance().
|
|
617
|
+
var tmp8_cached = Companion_getInstance().y1g_1;
|
|
534
618
|
if (tmp7_input.yl()) {
|
|
535
619
|
tmp4_local0 = tmp7_input.sl(tmp0_desc, 0);
|
|
536
620
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -565,10 +649,10 @@
|
|
|
565
649
|
return TableSchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
566
650
|
};
|
|
567
651
|
protoOf($serializer).ki = function () {
|
|
568
|
-
return this.
|
|
652
|
+
return this.z1g_1;
|
|
569
653
|
};
|
|
570
654
|
protoOf($serializer).ts = function () {
|
|
571
|
-
var tmp0_cached = Companion_getInstance().
|
|
655
|
+
var tmp0_cached = Companion_getInstance().y1g_1;
|
|
572
656
|
// Inline function 'kotlin.arrayOf' call
|
|
573
657
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
574
658
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -582,11 +666,11 @@
|
|
|
582
666
|
}
|
|
583
667
|
function TableSchema_init_$Init$(seen0, preparedAt, key, values, serializationConstructorMarker, $this) {
|
|
584
668
|
if (!(7 === (7 & seen0))) {
|
|
585
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
669
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().z1g_1);
|
|
586
670
|
}
|
|
587
|
-
$this.
|
|
588
|
-
$this.
|
|
589
|
-
$this.
|
|
671
|
+
$this.b1h_1 = preparedAt;
|
|
672
|
+
$this.c1h_1 = key;
|
|
673
|
+
$this.d1h_1 = values;
|
|
590
674
|
return $this;
|
|
591
675
|
}
|
|
592
676
|
function TableSchema_init_$Create$(seen0, preparedAt, key, values, serializationConstructorMarker) {
|
|
@@ -594,17 +678,17 @@
|
|
|
594
678
|
}
|
|
595
679
|
function TableSchema(preparedAt, key, values) {
|
|
596
680
|
Companion_getInstance();
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
681
|
+
this.b1h_1 = preparedAt;
|
|
682
|
+
this.c1h_1 = key;
|
|
683
|
+
this.d1h_1 = values;
|
|
600
684
|
}
|
|
601
685
|
protoOf(TableSchema).toString = function () {
|
|
602
|
-
return 'TableSchema(preparedAt=' + this.
|
|
686
|
+
return 'TableSchema(preparedAt=' + this.b1h_1 + ', key=' + toString_0(this.c1h_1) + ', values=' + toString_0(this.d1h_1) + ')';
|
|
603
687
|
};
|
|
604
688
|
protoOf(TableSchema).hashCode = function () {
|
|
605
|
-
var result = getStringHashCode(this.
|
|
606
|
-
result = imul(result, 31) + hashCode(this.b1h_1) | 0;
|
|
689
|
+
var result = getStringHashCode(this.b1h_1);
|
|
607
690
|
result = imul(result, 31) + hashCode(this.c1h_1) | 0;
|
|
691
|
+
result = imul(result, 31) + hashCode(this.d1h_1) | 0;
|
|
608
692
|
return result;
|
|
609
693
|
};
|
|
610
694
|
protoOf(TableSchema).equals = function (other) {
|
|
@@ -612,12 +696,12 @@
|
|
|
612
696
|
return true;
|
|
613
697
|
if (!(other instanceof TableSchema))
|
|
614
698
|
return false;
|
|
615
|
-
if (!(this.
|
|
616
|
-
return false;
|
|
617
|
-
if (!equals(this.b1h_1, other.b1h_1))
|
|
699
|
+
if (!(this.b1h_1 === other.b1h_1))
|
|
618
700
|
return false;
|
|
619
701
|
if (!equals(this.c1h_1, other.c1h_1))
|
|
620
702
|
return false;
|
|
703
|
+
if (!equals(this.d1h_1, other.d1h_1))
|
|
704
|
+
return false;
|
|
621
705
|
return true;
|
|
622
706
|
};
|
|
623
707
|
function Companion_0() {
|
|
@@ -633,22 +717,22 @@
|
|
|
633
717
|
tmp0_serialDesc.rs('name', false);
|
|
634
718
|
tmp0_serialDesc.rs('normalised_name', false);
|
|
635
719
|
tmp0_serialDesc.rs('density', false);
|
|
636
|
-
this.
|
|
720
|
+
this.e1h_1 = tmp0_serialDesc;
|
|
637
721
|
}
|
|
638
|
-
protoOf($serializer_0).
|
|
639
|
-
var tmp0_desc = this.
|
|
722
|
+
protoOf($serializer_0).f1h = function (encoder, value) {
|
|
723
|
+
var tmp0_desc = this.e1h_1;
|
|
640
724
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
641
|
-
tmp1_output.rm(tmp0_desc, 0, value.
|
|
642
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
643
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
644
|
-
tmp1_output.tm(tmp0_desc, 3, value.
|
|
725
|
+
tmp1_output.rm(tmp0_desc, 0, value.g1h_1);
|
|
726
|
+
tmp1_output.wm(tmp0_desc, 1, value.h1h_1);
|
|
727
|
+
tmp1_output.wm(tmp0_desc, 2, value.i1h_1);
|
|
728
|
+
tmp1_output.tm(tmp0_desc, 3, value.j1h_1);
|
|
645
729
|
tmp1_output.jl(tmp0_desc);
|
|
646
730
|
};
|
|
647
731
|
protoOf($serializer_0).li = function (encoder, value) {
|
|
648
|
-
return this.
|
|
732
|
+
return this.f1h(encoder, value instanceof Ingredient ? value : THROW_CCE());
|
|
649
733
|
};
|
|
650
734
|
protoOf($serializer_0).mi = function (decoder) {
|
|
651
|
-
var tmp0_desc = this.
|
|
735
|
+
var tmp0_desc = this.e1h_1;
|
|
652
736
|
var tmp1_flag = true;
|
|
653
737
|
var tmp2_index = 0;
|
|
654
738
|
var tmp3_bitMask0 = 0;
|
|
@@ -697,7 +781,7 @@
|
|
|
697
781
|
return Ingredient_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
698
782
|
};
|
|
699
783
|
protoOf($serializer_0).ki = function () {
|
|
700
|
-
return this.
|
|
784
|
+
return this.e1h_1;
|
|
701
785
|
};
|
|
702
786
|
protoOf($serializer_0).ts = function () {
|
|
703
787
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -713,31 +797,31 @@
|
|
|
713
797
|
}
|
|
714
798
|
function Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, $this) {
|
|
715
799
|
if (!(15 === (15 & seen0))) {
|
|
716
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().
|
|
800
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().e1h_1);
|
|
717
801
|
}
|
|
718
|
-
$this.
|
|
719
|
-
$this.
|
|
720
|
-
$this.
|
|
721
|
-
$this.
|
|
802
|
+
$this.g1h_1 = id;
|
|
803
|
+
$this.h1h_1 = name;
|
|
804
|
+
$this.i1h_1 = normalised_name;
|
|
805
|
+
$this.j1h_1 = density;
|
|
722
806
|
return $this;
|
|
723
807
|
}
|
|
724
808
|
function Ingredient_init_$Create$(seen0, id, name, normalised_name, density, serializationConstructorMarker) {
|
|
725
809
|
return Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, objectCreate(protoOf(Ingredient)));
|
|
726
810
|
}
|
|
727
811
|
function Ingredient(id, name, normalised_name, density) {
|
|
728
|
-
this.
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
731
|
-
this.
|
|
812
|
+
this.g1h_1 = id;
|
|
813
|
+
this.h1h_1 = name;
|
|
814
|
+
this.i1h_1 = normalised_name;
|
|
815
|
+
this.j1h_1 = density;
|
|
732
816
|
}
|
|
733
817
|
protoOf(Ingredient).toString = function () {
|
|
734
|
-
return 'Ingredient(id=' + this.
|
|
818
|
+
return 'Ingredient(id=' + this.g1h_1 + ', name=' + this.h1h_1 + ', normalised_name=' + this.i1h_1 + ', density=' + this.j1h_1 + ')';
|
|
735
819
|
};
|
|
736
820
|
protoOf(Ingredient).hashCode = function () {
|
|
737
|
-
var result = this.
|
|
738
|
-
result = imul(result, 31) + getStringHashCode(this.g1h_1) | 0;
|
|
821
|
+
var result = this.g1h_1;
|
|
739
822
|
result = imul(result, 31) + getStringHashCode(this.h1h_1) | 0;
|
|
740
|
-
result = imul(result, 31) +
|
|
823
|
+
result = imul(result, 31) + getStringHashCode(this.i1h_1) | 0;
|
|
824
|
+
result = imul(result, 31) + getNumberHashCode(this.j1h_1) | 0;
|
|
741
825
|
return result;
|
|
742
826
|
};
|
|
743
827
|
protoOf(Ingredient).equals = function (other) {
|
|
@@ -745,13 +829,13 @@
|
|
|
745
829
|
return true;
|
|
746
830
|
if (!(other instanceof Ingredient))
|
|
747
831
|
return false;
|
|
748
|
-
if (!(this.f1h_1 === other.f1h_1))
|
|
749
|
-
return false;
|
|
750
832
|
if (!(this.g1h_1 === other.g1h_1))
|
|
751
833
|
return false;
|
|
752
834
|
if (!(this.h1h_1 === other.h1h_1))
|
|
753
835
|
return false;
|
|
754
|
-
if (!
|
|
836
|
+
if (!(this.i1h_1 === other.i1h_1))
|
|
837
|
+
return false;
|
|
838
|
+
if (!equals(this.j1h_1, other.j1h_1))
|
|
755
839
|
return false;
|
|
756
840
|
return true;
|
|
757
841
|
};
|
|
@@ -767,7 +851,7 @@
|
|
|
767
851
|
tmp = null;
|
|
768
852
|
} else {
|
|
769
853
|
// Inline function 'kotlin.let' call
|
|
770
|
-
return tmp0_safe_receiver.
|
|
854
|
+
return tmp0_safe_receiver.j1h_1;
|
|
771
855
|
}
|
|
772
856
|
return tmp;
|
|
773
857
|
};
|
|
@@ -785,7 +869,7 @@
|
|
|
785
869
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
786
870
|
var data = this_0.u11(tmp$ret$1, raw);
|
|
787
871
|
// Inline function 'kotlin.collections.map' call
|
|
788
|
-
var this_3 = data.
|
|
872
|
+
var this_3 = data.d1h_1;
|
|
789
873
|
// Inline function 'kotlin.collections.mapTo' call
|
|
790
874
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
791
875
|
var _iterator__ex2g4s = this_3.s();
|
|
@@ -803,7 +887,7 @@
|
|
|
803
887
|
while (_iterator__ex2g4s_0.t()) {
|
|
804
888
|
var element = _iterator__ex2g4s_0.u();
|
|
805
889
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
806
|
-
var pair = to(element.
|
|
890
|
+
var pair = to(element.i1h_1, element);
|
|
807
891
|
destination_0.o2(pair.fd_1, pair.gd_1);
|
|
808
892
|
}
|
|
809
893
|
var normalised_map = destination_0;
|
|
@@ -815,11 +899,11 @@
|
|
|
815
899
|
while (_iterator__ex2g4s_1.t()) {
|
|
816
900
|
var element_0 = _iterator__ex2g4s_1.u();
|
|
817
901
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
818
|
-
var pair_0 = to(element_0.
|
|
902
|
+
var pair_0 = to(element_0.h1h_1, element_0);
|
|
819
903
|
destination_1.o2(pair_0.fd_1, pair_0.gd_1);
|
|
820
904
|
}
|
|
821
905
|
var name_map = destination_1;
|
|
822
|
-
var table = new DensityTable(data.
|
|
906
|
+
var table = new DensityTable(data.b1h_1, normalised_map, name_map);
|
|
823
907
|
// Inline function 'kotlin.Companion.success' call
|
|
824
908
|
return _Result___init__impl__xyqfz8(table);
|
|
825
909
|
} catch ($p) {
|
|
@@ -927,7 +1011,7 @@
|
|
|
927
1011
|
// Inline function 'kotlin.arrayOf' call
|
|
928
1012
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
929
1013
|
// Inline function 'kotlin.js.asDynamic' call
|
|
930
|
-
tmp.
|
|
1014
|
+
tmp.k1h_1 = [null, tmp_1, null, tmp_3, tmp_5, null, tmp_7, tmp_9, null, null, null, null, tmp_11, tmp_13, null, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, null, lazy(tmp_24, RecipeV3$Companion$$childSerializers$_anonymous__7om4qn_11), null];
|
|
931
1015
|
}
|
|
932
1016
|
var Companion_instance_2;
|
|
933
1017
|
function Companion_getInstance_1() {
|
|
@@ -961,86 +1045,86 @@
|
|
|
961
1045
|
tmp0_serialDesc.rs('title', true);
|
|
962
1046
|
tmp0_serialDesc.rs('utensilsAndApplianceIds', true);
|
|
963
1047
|
tmp0_serialDesc.rs('webPublicationDate', true);
|
|
964
|
-
this.
|
|
1048
|
+
this.l1h_1 = tmp0_serialDesc;
|
|
965
1049
|
}
|
|
966
|
-
protoOf($serializer_1).
|
|
967
|
-
var tmp0_desc = this.
|
|
1050
|
+
protoOf($serializer_1).m1h = function (encoder, value) {
|
|
1051
|
+
var tmp0_desc = this.l1h_1;
|
|
968
1052
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
969
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
970
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
971
|
-
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1053
|
+
var tmp2_cached = Companion_getInstance_1().k1h_1;
|
|
1054
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.j1f_1 == null)) {
|
|
1055
|
+
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.j1f_1);
|
|
972
1056
|
}
|
|
973
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
974
|
-
tmp1_output.an(tmp0_desc, 1, tmp2_cached[1].h2(), value.
|
|
1057
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.k1f_1 == null)) {
|
|
1058
|
+
tmp1_output.an(tmp0_desc, 1, tmp2_cached[1].h2(), value.k1f_1);
|
|
975
1059
|
}
|
|
976
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
977
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1060
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.l1f_1 == null)) {
|
|
1061
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.l1f_1);
|
|
978
1062
|
}
|
|
979
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
980
|
-
tmp1_output.an(tmp0_desc, 3, tmp2_cached[3].h2(), value.
|
|
1063
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.m1f_1 == null)) {
|
|
1064
|
+
tmp1_output.an(tmp0_desc, 3, tmp2_cached[3].h2(), value.m1f_1);
|
|
981
1065
|
}
|
|
982
|
-
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.
|
|
983
|
-
tmp1_output.an(tmp0_desc, 4, tmp2_cached[4].h2(), value.
|
|
1066
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.n1f_1 == null)) {
|
|
1067
|
+
tmp1_output.an(tmp0_desc, 4, tmp2_cached[4].h2(), value.n1f_1);
|
|
984
1068
|
}
|
|
985
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
986
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1069
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.o1f_1 == null)) {
|
|
1070
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.o1f_1);
|
|
987
1071
|
}
|
|
988
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
989
|
-
tmp1_output.an(tmp0_desc, 6, tmp2_cached[6].h2(), value.
|
|
1072
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.p1f_1 == null)) {
|
|
1073
|
+
tmp1_output.an(tmp0_desc, 6, tmp2_cached[6].h2(), value.p1f_1);
|
|
990
1074
|
}
|
|
991
|
-
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.
|
|
992
|
-
tmp1_output.an(tmp0_desc, 7, tmp2_cached[7].h2(), value.
|
|
1075
|
+
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.q1f_1 == null)) {
|
|
1076
|
+
tmp1_output.an(tmp0_desc, 7, tmp2_cached[7].h2(), value.q1f_1);
|
|
993
1077
|
}
|
|
994
|
-
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.
|
|
995
|
-
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
1078
|
+
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.r1f_1 == null)) {
|
|
1079
|
+
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.r1f_1);
|
|
996
1080
|
}
|
|
997
|
-
if (tmp1_output.en(tmp0_desc, 9) ? true : !(value.
|
|
998
|
-
tmp1_output.an(tmp0_desc, 9, StringSerializer_getInstance(), value.
|
|
1081
|
+
if (tmp1_output.en(tmp0_desc, 9) ? true : !(value.s1f_1 == null)) {
|
|
1082
|
+
tmp1_output.an(tmp0_desc, 9, StringSerializer_getInstance(), value.s1f_1);
|
|
999
1083
|
}
|
|
1000
|
-
if (tmp1_output.en(tmp0_desc, 10) ? true : !(value.
|
|
1001
|
-
tmp1_output.an(tmp0_desc, 10, $serializer_getInstance_3(), value.
|
|
1084
|
+
if (tmp1_output.en(tmp0_desc, 10) ? true : !(value.t1f_1 == null)) {
|
|
1085
|
+
tmp1_output.an(tmp0_desc, 10, $serializer_getInstance_3(), value.t1f_1);
|
|
1002
1086
|
}
|
|
1003
|
-
tmp1_output.wm(tmp0_desc, 11, value.
|
|
1004
|
-
if (tmp1_output.en(tmp0_desc, 12) ? true : !(value.
|
|
1005
|
-
tmp1_output.an(tmp0_desc, 12, tmp2_cached[12].h2(), value.
|
|
1087
|
+
tmp1_output.wm(tmp0_desc, 11, value.u1f_1);
|
|
1088
|
+
if (tmp1_output.en(tmp0_desc, 12) ? true : !(value.v1f_1 == null)) {
|
|
1089
|
+
tmp1_output.an(tmp0_desc, 12, tmp2_cached[12].h2(), value.v1f_1);
|
|
1006
1090
|
}
|
|
1007
|
-
if (tmp1_output.en(tmp0_desc, 13) ? true : !(value.
|
|
1008
|
-
tmp1_output.an(tmp0_desc, 13, tmp2_cached[13].h2(), value.
|
|
1091
|
+
if (tmp1_output.en(tmp0_desc, 13) ? true : !(value.w1f_1 == null)) {
|
|
1092
|
+
tmp1_output.an(tmp0_desc, 13, tmp2_cached[13].h2(), value.w1f_1);
|
|
1009
1093
|
}
|
|
1010
|
-
if (tmp1_output.en(tmp0_desc, 14) ? true : !(value.
|
|
1011
|
-
tmp1_output.an(tmp0_desc, 14, BooleanSerializer_getInstance(), value.
|
|
1094
|
+
if (tmp1_output.en(tmp0_desc, 14) ? true : !(value.x1f_1 == null)) {
|
|
1095
|
+
tmp1_output.an(tmp0_desc, 14, BooleanSerializer_getInstance(), value.x1f_1);
|
|
1012
1096
|
}
|
|
1013
|
-
if (tmp1_output.en(tmp0_desc, 15) ? true : !(value.
|
|
1014
|
-
tmp1_output.an(tmp0_desc, 15, tmp2_cached[15].h2(), value.
|
|
1097
|
+
if (tmp1_output.en(tmp0_desc, 15) ? true : !(value.y1f_1 == null)) {
|
|
1098
|
+
tmp1_output.an(tmp0_desc, 15, tmp2_cached[15].h2(), value.y1f_1);
|
|
1015
1099
|
}
|
|
1016
|
-
if (tmp1_output.en(tmp0_desc, 16) ? true : !(value.
|
|
1017
|
-
tmp1_output.an(tmp0_desc, 16, tmp2_cached[16].h2(), value.
|
|
1100
|
+
if (tmp1_output.en(tmp0_desc, 16) ? true : !(value.z1f_1 == null)) {
|
|
1101
|
+
tmp1_output.an(tmp0_desc, 16, tmp2_cached[16].h2(), value.z1f_1);
|
|
1018
1102
|
}
|
|
1019
|
-
if (tmp1_output.en(tmp0_desc, 17) ? true : !(value.
|
|
1020
|
-
tmp1_output.an(tmp0_desc, 17, tmp2_cached[17].h2(), value.
|
|
1103
|
+
if (tmp1_output.en(tmp0_desc, 17) ? true : !(value.a1g_1 == null)) {
|
|
1104
|
+
tmp1_output.an(tmp0_desc, 17, tmp2_cached[17].h2(), value.a1g_1);
|
|
1021
1105
|
}
|
|
1022
|
-
if (tmp1_output.en(tmp0_desc, 18) ? true : !(value.
|
|
1023
|
-
tmp1_output.an(tmp0_desc, 18, tmp2_cached[18].h2(), value.
|
|
1106
|
+
if (tmp1_output.en(tmp0_desc, 18) ? true : !(value.b1g_1 == null)) {
|
|
1107
|
+
tmp1_output.an(tmp0_desc, 18, tmp2_cached[18].h2(), value.b1g_1);
|
|
1024
1108
|
}
|
|
1025
|
-
if (tmp1_output.en(tmp0_desc, 19) ? true : !(value.
|
|
1026
|
-
tmp1_output.an(tmp0_desc, 19, tmp2_cached[19].h2(), value.
|
|
1109
|
+
if (tmp1_output.en(tmp0_desc, 19) ? true : !(value.c1g_1 == null)) {
|
|
1110
|
+
tmp1_output.an(tmp0_desc, 19, tmp2_cached[19].h2(), value.c1g_1);
|
|
1027
1111
|
}
|
|
1028
|
-
if (tmp1_output.en(tmp0_desc, 20) ? true : !(value.
|
|
1029
|
-
tmp1_output.an(tmp0_desc, 20, StringSerializer_getInstance(), value.
|
|
1112
|
+
if (tmp1_output.en(tmp0_desc, 20) ? true : !(value.d1g_1 == null)) {
|
|
1113
|
+
tmp1_output.an(tmp0_desc, 20, StringSerializer_getInstance(), value.d1g_1);
|
|
1030
1114
|
}
|
|
1031
|
-
if (tmp1_output.en(tmp0_desc, 21) ? true : !(value.
|
|
1032
|
-
tmp1_output.an(tmp0_desc, 21, tmp2_cached[21].h2(), value.
|
|
1115
|
+
if (tmp1_output.en(tmp0_desc, 21) ? true : !(value.e1g_1 == null)) {
|
|
1116
|
+
tmp1_output.an(tmp0_desc, 21, tmp2_cached[21].h2(), value.e1g_1);
|
|
1033
1117
|
}
|
|
1034
|
-
if (tmp1_output.en(tmp0_desc, 22) ? true : !(value.
|
|
1035
|
-
tmp1_output.an(tmp0_desc, 22, StringSerializer_getInstance(), value.
|
|
1118
|
+
if (tmp1_output.en(tmp0_desc, 22) ? true : !(value.f1g_1 == null)) {
|
|
1119
|
+
tmp1_output.an(tmp0_desc, 22, StringSerializer_getInstance(), value.f1g_1);
|
|
1036
1120
|
}
|
|
1037
1121
|
tmp1_output.jl(tmp0_desc);
|
|
1038
1122
|
};
|
|
1039
1123
|
protoOf($serializer_1).li = function (encoder, value) {
|
|
1040
|
-
return this.
|
|
1124
|
+
return this.m1h(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
1041
1125
|
};
|
|
1042
1126
|
protoOf($serializer_1).mi = function (decoder) {
|
|
1043
|
-
var tmp0_desc = this.
|
|
1127
|
+
var tmp0_desc = this.l1h_1;
|
|
1044
1128
|
var tmp1_flag = true;
|
|
1045
1129
|
var tmp2_index = 0;
|
|
1046
1130
|
var tmp3_bitMask0 = 0;
|
|
@@ -1068,7 +1152,7 @@
|
|
|
1068
1152
|
var tmp25_local21 = null;
|
|
1069
1153
|
var tmp26_local22 = null;
|
|
1070
1154
|
var tmp27_input = decoder.il(tmp0_desc);
|
|
1071
|
-
var tmp28_cached = Companion_getInstance_1().
|
|
1155
|
+
var tmp28_cached = Companion_getInstance_1().k1h_1;
|
|
1072
1156
|
if (tmp27_input.yl()) {
|
|
1073
1157
|
tmp4_local0 = tmp27_input.wl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1074
1158
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1223,10 +1307,10 @@
|
|
|
1223
1307
|
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);
|
|
1224
1308
|
};
|
|
1225
1309
|
protoOf($serializer_1).ki = function () {
|
|
1226
|
-
return this.
|
|
1310
|
+
return this.l1h_1;
|
|
1227
1311
|
};
|
|
1228
1312
|
protoOf($serializer_1).ts = function () {
|
|
1229
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
1313
|
+
var tmp0_cached = Companion_getInstance_1().k1h_1;
|
|
1230
1314
|
// Inline function 'kotlin.arrayOf' call
|
|
1231
1315
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1232
1316
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1240,97 +1324,97 @@
|
|
|
1240
1324
|
}
|
|
1241
1325
|
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) {
|
|
1242
1326
|
if (!(2048 === (2048 & seen0))) {
|
|
1243
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().
|
|
1327
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().l1h_1);
|
|
1244
1328
|
}
|
|
1245
1329
|
if (0 === (seen0 & 1))
|
|
1246
|
-
$this.
|
|
1330
|
+
$this.j1f_1 = null;
|
|
1247
1331
|
else
|
|
1248
|
-
$this.
|
|
1332
|
+
$this.j1f_1 = bookCredit;
|
|
1249
1333
|
if (0 === (seen0 & 2))
|
|
1250
|
-
$this.
|
|
1334
|
+
$this.k1f_1 = null;
|
|
1251
1335
|
else
|
|
1252
|
-
$this.
|
|
1336
|
+
$this.k1f_1 = byline;
|
|
1253
1337
|
if (0 === (seen0 & 4))
|
|
1254
|
-
$this.
|
|
1338
|
+
$this.l1f_1 = null;
|
|
1255
1339
|
else
|
|
1256
|
-
$this.
|
|
1340
|
+
$this.l1f_1 = canonicalArticle;
|
|
1257
1341
|
if (0 === (seen0 & 8))
|
|
1258
|
-
$this.
|
|
1342
|
+
$this.m1f_1 = null;
|
|
1259
1343
|
else
|
|
1260
|
-
$this.
|
|
1344
|
+
$this.m1f_1 = celebrationIds;
|
|
1261
1345
|
if (0 === (seen0 & 16))
|
|
1262
|
-
$this.
|
|
1346
|
+
$this.n1f_1 = null;
|
|
1263
1347
|
else
|
|
1264
|
-
$this.
|
|
1348
|
+
$this.n1f_1 = commerceCtas;
|
|
1265
1349
|
if (0 === (seen0 & 32))
|
|
1266
|
-
$this.
|
|
1350
|
+
$this.o1f_1 = null;
|
|
1267
1351
|
else
|
|
1268
|
-
$this.
|
|
1352
|
+
$this.o1f_1 = composerId;
|
|
1269
1353
|
if (0 === (seen0 & 64))
|
|
1270
|
-
$this.
|
|
1354
|
+
$this.p1f_1 = null;
|
|
1271
1355
|
else
|
|
1272
|
-
$this.
|
|
1356
|
+
$this.p1f_1 = contributors;
|
|
1273
1357
|
if (0 === (seen0 & 128))
|
|
1274
|
-
$this.
|
|
1358
|
+
$this.q1f_1 = null;
|
|
1275
1359
|
else
|
|
1276
|
-
$this.
|
|
1360
|
+
$this.q1f_1 = cuisineIds;
|
|
1277
1361
|
if (0 === (seen0 & 256))
|
|
1278
|
-
$this.
|
|
1362
|
+
$this.r1f_1 = null;
|
|
1279
1363
|
else
|
|
1280
|
-
$this.
|
|
1364
|
+
$this.r1f_1 = description;
|
|
1281
1365
|
if (0 === (seen0 & 512))
|
|
1282
|
-
$this.
|
|
1366
|
+
$this.s1f_1 = null;
|
|
1283
1367
|
else
|
|
1284
|
-
$this.
|
|
1368
|
+
$this.s1f_1 = difficultyLevel;
|
|
1285
1369
|
if (0 === (seen0 & 1024))
|
|
1286
|
-
$this.
|
|
1370
|
+
$this.t1f_1 = null;
|
|
1287
1371
|
else
|
|
1288
|
-
$this.
|
|
1289
|
-
$this.
|
|
1372
|
+
$this.t1f_1 = featuredImage;
|
|
1373
|
+
$this.u1f_1 = id;
|
|
1290
1374
|
if (0 === (seen0 & 4096))
|
|
1291
|
-
$this.
|
|
1375
|
+
$this.v1f_1 = null;
|
|
1292
1376
|
else
|
|
1293
|
-
$this.
|
|
1377
|
+
$this.v1f_1 = ingredients;
|
|
1294
1378
|
if (0 === (seen0 & 8192))
|
|
1295
|
-
$this.
|
|
1379
|
+
$this.w1f_1 = null;
|
|
1296
1380
|
else
|
|
1297
|
-
$this.
|
|
1381
|
+
$this.w1f_1 = instructions;
|
|
1298
1382
|
if (0 === (seen0 & 16384))
|
|
1299
|
-
$this.
|
|
1383
|
+
$this.x1f_1 = null;
|
|
1300
1384
|
else
|
|
1301
|
-
$this.
|
|
1385
|
+
$this.x1f_1 = isAppReady;
|
|
1302
1386
|
if (0 === (seen0 & 32768))
|
|
1303
|
-
$this.
|
|
1387
|
+
$this.y1f_1 = null;
|
|
1304
1388
|
else
|
|
1305
|
-
$this.
|
|
1389
|
+
$this.y1f_1 = mealTypeIds;
|
|
1306
1390
|
if (0 === (seen0 & 65536))
|
|
1307
|
-
$this.
|
|
1391
|
+
$this.z1f_1 = null;
|
|
1308
1392
|
else
|
|
1309
|
-
$this.
|
|
1393
|
+
$this.z1f_1 = serves;
|
|
1310
1394
|
if (0 === (seen0 & 131072))
|
|
1311
|
-
$this.
|
|
1395
|
+
$this.a1g_1 = null;
|
|
1312
1396
|
else
|
|
1313
|
-
$this.
|
|
1397
|
+
$this.a1g_1 = suitableForDietIds;
|
|
1314
1398
|
if (0 === (seen0 & 262144))
|
|
1315
|
-
$this.
|
|
1399
|
+
$this.b1g_1 = null;
|
|
1316
1400
|
else
|
|
1317
|
-
$this.
|
|
1401
|
+
$this.b1g_1 = techniquesUsedIds;
|
|
1318
1402
|
if (0 === (seen0 & 524288))
|
|
1319
|
-
$this.
|
|
1403
|
+
$this.c1g_1 = null;
|
|
1320
1404
|
else
|
|
1321
|
-
$this.
|
|
1405
|
+
$this.c1g_1 = timings;
|
|
1322
1406
|
if (0 === (seen0 & 1048576))
|
|
1323
|
-
$this.
|
|
1407
|
+
$this.d1g_1 = null;
|
|
1324
1408
|
else
|
|
1325
|
-
$this.
|
|
1409
|
+
$this.d1g_1 = title;
|
|
1326
1410
|
if (0 === (seen0 & 2097152))
|
|
1327
|
-
$this.
|
|
1411
|
+
$this.e1g_1 = null;
|
|
1328
1412
|
else
|
|
1329
|
-
$this.
|
|
1413
|
+
$this.e1g_1 = utensilsAndApplianceIds;
|
|
1330
1414
|
if (0 === (seen0 & 4194304))
|
|
1331
|
-
$this.
|
|
1415
|
+
$this.f1g_1 = null;
|
|
1332
1416
|
else
|
|
1333
|
-
$this.
|
|
1417
|
+
$this.f1g_1 = webPublicationDate;
|
|
1334
1418
|
return $this;
|
|
1335
1419
|
}
|
|
1336
1420
|
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) {
|
|
@@ -1360,86 +1444,86 @@
|
|
|
1360
1444
|
title = title === VOID ? null : title;
|
|
1361
1445
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
1362
1446
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
}
|
|
1387
|
-
protoOf(RecipeV3).
|
|
1447
|
+
this.j1f_1 = bookCredit;
|
|
1448
|
+
this.k1f_1 = byline;
|
|
1449
|
+
this.l1f_1 = canonicalArticle;
|
|
1450
|
+
this.m1f_1 = celebrationIds;
|
|
1451
|
+
this.n1f_1 = commerceCtas;
|
|
1452
|
+
this.o1f_1 = composerId;
|
|
1453
|
+
this.p1f_1 = contributors;
|
|
1454
|
+
this.q1f_1 = cuisineIds;
|
|
1455
|
+
this.r1f_1 = description;
|
|
1456
|
+
this.s1f_1 = difficultyLevel;
|
|
1457
|
+
this.t1f_1 = featuredImage;
|
|
1458
|
+
this.u1f_1 = id;
|
|
1459
|
+
this.v1f_1 = ingredients;
|
|
1460
|
+
this.w1f_1 = instructions;
|
|
1461
|
+
this.x1f_1 = isAppReady;
|
|
1462
|
+
this.y1f_1 = mealTypeIds;
|
|
1463
|
+
this.z1f_1 = serves;
|
|
1464
|
+
this.a1g_1 = suitableForDietIds;
|
|
1465
|
+
this.b1g_1 = techniquesUsedIds;
|
|
1466
|
+
this.c1g_1 = timings;
|
|
1467
|
+
this.d1g_1 = title;
|
|
1468
|
+
this.e1g_1 = utensilsAndApplianceIds;
|
|
1469
|
+
this.f1g_1 = webPublicationDate;
|
|
1470
|
+
}
|
|
1471
|
+
protoOf(RecipeV3).n1h = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
1388
1472
|
return new RecipeV3(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
1389
1473
|
};
|
|
1390
|
-
protoOf(RecipeV3).
|
|
1391
|
-
bookCredit = bookCredit === VOID ? this.
|
|
1392
|
-
byline = byline === VOID ? this.
|
|
1393
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
1394
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
1395
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
1396
|
-
composerId = composerId === VOID ? this.
|
|
1397
|
-
contributors = contributors === VOID ? this.
|
|
1398
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
1399
|
-
description = description === VOID ? this.
|
|
1400
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
1401
|
-
featuredImage = featuredImage === VOID ? this.
|
|
1402
|
-
id = id === VOID ? this.
|
|
1403
|
-
ingredients = ingredients === VOID ? this.
|
|
1404
|
-
instructions = instructions === VOID ? this.
|
|
1405
|
-
isAppReady = isAppReady === VOID ? this.
|
|
1406
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
1407
|
-
serves = serves === VOID ? this.
|
|
1408
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
1409
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
1410
|
-
timings = timings === VOID ? this.
|
|
1411
|
-
title = title === VOID ? this.
|
|
1412
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
1413
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
1414
|
-
return $super === VOID ? this.
|
|
1474
|
+
protoOf(RecipeV3).x1g = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, $super) {
|
|
1475
|
+
bookCredit = bookCredit === VOID ? this.j1f_1 : bookCredit;
|
|
1476
|
+
byline = byline === VOID ? this.k1f_1 : byline;
|
|
1477
|
+
canonicalArticle = canonicalArticle === VOID ? this.l1f_1 : canonicalArticle;
|
|
1478
|
+
celebrationIds = celebrationIds === VOID ? this.m1f_1 : celebrationIds;
|
|
1479
|
+
commerceCtas = commerceCtas === VOID ? this.n1f_1 : commerceCtas;
|
|
1480
|
+
composerId = composerId === VOID ? this.o1f_1 : composerId;
|
|
1481
|
+
contributors = contributors === VOID ? this.p1f_1 : contributors;
|
|
1482
|
+
cuisineIds = cuisineIds === VOID ? this.q1f_1 : cuisineIds;
|
|
1483
|
+
description = description === VOID ? this.r1f_1 : description;
|
|
1484
|
+
difficultyLevel = difficultyLevel === VOID ? this.s1f_1 : difficultyLevel;
|
|
1485
|
+
featuredImage = featuredImage === VOID ? this.t1f_1 : featuredImage;
|
|
1486
|
+
id = id === VOID ? this.u1f_1 : id;
|
|
1487
|
+
ingredients = ingredients === VOID ? this.v1f_1 : ingredients;
|
|
1488
|
+
instructions = instructions === VOID ? this.w1f_1 : instructions;
|
|
1489
|
+
isAppReady = isAppReady === VOID ? this.x1f_1 : isAppReady;
|
|
1490
|
+
mealTypeIds = mealTypeIds === VOID ? this.y1f_1 : mealTypeIds;
|
|
1491
|
+
serves = serves === VOID ? this.z1f_1 : serves;
|
|
1492
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.a1g_1 : suitableForDietIds;
|
|
1493
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.b1g_1 : techniquesUsedIds;
|
|
1494
|
+
timings = timings === VOID ? this.c1g_1 : timings;
|
|
1495
|
+
title = title === VOID ? this.d1g_1 : title;
|
|
1496
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.e1g_1 : utensilsAndApplianceIds;
|
|
1497
|
+
webPublicationDate = webPublicationDate === VOID ? this.f1g_1 : webPublicationDate;
|
|
1498
|
+
return $super === VOID ? this.n1h(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.n1h.call(this, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
1415
1499
|
};
|
|
1416
1500
|
protoOf(RecipeV3).toString = function () {
|
|
1417
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
1501
|
+
return 'RecipeV3(bookCredit=' + this.j1f_1 + ', byline=' + toString(this.k1f_1) + ', canonicalArticle=' + this.l1f_1 + ', celebrationIds=' + toString(this.m1f_1) + ', commerceCtas=' + toString(this.n1f_1) + ', composerId=' + this.o1f_1 + ', contributors=' + toString(this.p1f_1) + ', cuisineIds=' + toString(this.q1f_1) + ', description=' + this.r1f_1 + ', difficultyLevel=' + this.s1f_1 + ', featuredImage=' + toString(this.t1f_1) + ', id=' + this.u1f_1 + ', ingredients=' + toString(this.v1f_1) + ', instructions=' + toString(this.w1f_1) + ', isAppReady=' + this.x1f_1 + ', mealTypeIds=' + toString(this.y1f_1) + ', serves=' + toString(this.z1f_1) + ', suitableForDietIds=' + toString(this.a1g_1) + ', techniquesUsedIds=' + toString(this.b1g_1) + ', timings=' + toString(this.c1g_1) + ', title=' + this.d1g_1 + ', utensilsAndApplianceIds=' + toString(this.e1g_1) + ', webPublicationDate=' + this.f1g_1 + ')';
|
|
1418
1502
|
};
|
|
1419
1503
|
protoOf(RecipeV3).hashCode = function () {
|
|
1420
|
-
var result = this.
|
|
1421
|
-
result = imul(result, 31) + (this.
|
|
1422
|
-
result = imul(result, 31) + (this.
|
|
1423
|
-
result = imul(result, 31) + (this.l1f_1 == null ? 0 : hashCode(this.l1f_1)) | 0;
|
|
1504
|
+
var result = this.j1f_1 == null ? 0 : getStringHashCode(this.j1f_1);
|
|
1505
|
+
result = imul(result, 31) + (this.k1f_1 == null ? 0 : hashCode(this.k1f_1)) | 0;
|
|
1506
|
+
result = imul(result, 31) + (this.l1f_1 == null ? 0 : getStringHashCode(this.l1f_1)) | 0;
|
|
1424
1507
|
result = imul(result, 31) + (this.m1f_1 == null ? 0 : hashCode(this.m1f_1)) | 0;
|
|
1425
|
-
result = imul(result, 31) + (this.n1f_1 == null ? 0 :
|
|
1426
|
-
result = imul(result, 31) + (this.o1f_1 == null ? 0 :
|
|
1508
|
+
result = imul(result, 31) + (this.n1f_1 == null ? 0 : hashCode(this.n1f_1)) | 0;
|
|
1509
|
+
result = imul(result, 31) + (this.o1f_1 == null ? 0 : getStringHashCode(this.o1f_1)) | 0;
|
|
1427
1510
|
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1428
|
-
result = imul(result, 31) + (this.q1f_1 == null ? 0 :
|
|
1511
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : hashCode(this.q1f_1)) | 0;
|
|
1429
1512
|
result = imul(result, 31) + (this.r1f_1 == null ? 0 : getStringHashCode(this.r1f_1)) | 0;
|
|
1430
|
-
result = imul(result, 31) + (this.s1f_1 == null ? 0 : this.s1f_1
|
|
1431
|
-
result = imul(result, 31) +
|
|
1432
|
-
result = imul(result, 31) + (this.u1f_1
|
|
1513
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : getStringHashCode(this.s1f_1)) | 0;
|
|
1514
|
+
result = imul(result, 31) + (this.t1f_1 == null ? 0 : this.t1f_1.hashCode()) | 0;
|
|
1515
|
+
result = imul(result, 31) + getStringHashCode(this.u1f_1) | 0;
|
|
1433
1516
|
result = imul(result, 31) + (this.v1f_1 == null ? 0 : hashCode(this.v1f_1)) | 0;
|
|
1434
|
-
result = imul(result, 31) + (this.w1f_1 == null ? 0 :
|
|
1435
|
-
result = imul(result, 31) + (this.x1f_1 == null ? 0 :
|
|
1517
|
+
result = imul(result, 31) + (this.w1f_1 == null ? 0 : hashCode(this.w1f_1)) | 0;
|
|
1518
|
+
result = imul(result, 31) + (this.x1f_1 == null ? 0 : getBooleanHashCode(this.x1f_1)) | 0;
|
|
1436
1519
|
result = imul(result, 31) + (this.y1f_1 == null ? 0 : hashCode(this.y1f_1)) | 0;
|
|
1437
1520
|
result = imul(result, 31) + (this.z1f_1 == null ? 0 : hashCode(this.z1f_1)) | 0;
|
|
1438
1521
|
result = imul(result, 31) + (this.a1g_1 == null ? 0 : hashCode(this.a1g_1)) | 0;
|
|
1439
1522
|
result = imul(result, 31) + (this.b1g_1 == null ? 0 : hashCode(this.b1g_1)) | 0;
|
|
1440
|
-
result = imul(result, 31) + (this.c1g_1 == null ? 0 :
|
|
1441
|
-
result = imul(result, 31) + (this.d1g_1 == null ? 0 :
|
|
1442
|
-
result = imul(result, 31) + (this.e1g_1 == null ? 0 :
|
|
1523
|
+
result = imul(result, 31) + (this.c1g_1 == null ? 0 : hashCode(this.c1g_1)) | 0;
|
|
1524
|
+
result = imul(result, 31) + (this.d1g_1 == null ? 0 : getStringHashCode(this.d1g_1)) | 0;
|
|
1525
|
+
result = imul(result, 31) + (this.e1g_1 == null ? 0 : hashCode(this.e1g_1)) | 0;
|
|
1526
|
+
result = imul(result, 31) + (this.f1g_1 == null ? 0 : getStringHashCode(this.f1g_1)) | 0;
|
|
1443
1527
|
return result;
|
|
1444
1528
|
};
|
|
1445
1529
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -1447,37 +1531,35 @@
|
|
|
1447
1531
|
return true;
|
|
1448
1532
|
if (!(other instanceof RecipeV3))
|
|
1449
1533
|
return false;
|
|
1450
|
-
if (!(this.
|
|
1451
|
-
return false;
|
|
1452
|
-
if (!equals(this.j1f_1, other.j1f_1))
|
|
1534
|
+
if (!(this.j1f_1 == other.j1f_1))
|
|
1453
1535
|
return false;
|
|
1454
|
-
if (!(this.k1f_1
|
|
1536
|
+
if (!equals(this.k1f_1, other.k1f_1))
|
|
1455
1537
|
return false;
|
|
1456
|
-
if (!
|
|
1538
|
+
if (!(this.l1f_1 == other.l1f_1))
|
|
1457
1539
|
return false;
|
|
1458
1540
|
if (!equals(this.m1f_1, other.m1f_1))
|
|
1459
1541
|
return false;
|
|
1460
|
-
if (!(this.n1f_1
|
|
1542
|
+
if (!equals(this.n1f_1, other.n1f_1))
|
|
1461
1543
|
return false;
|
|
1462
|
-
if (!
|
|
1544
|
+
if (!(this.o1f_1 == other.o1f_1))
|
|
1463
1545
|
return false;
|
|
1464
1546
|
if (!equals(this.p1f_1, other.p1f_1))
|
|
1465
1547
|
return false;
|
|
1466
|
-
if (!(this.q1f_1
|
|
1548
|
+
if (!equals(this.q1f_1, other.q1f_1))
|
|
1467
1549
|
return false;
|
|
1468
1550
|
if (!(this.r1f_1 == other.r1f_1))
|
|
1469
1551
|
return false;
|
|
1470
|
-
if (!
|
|
1552
|
+
if (!(this.s1f_1 == other.s1f_1))
|
|
1471
1553
|
return false;
|
|
1472
|
-
if (!(this.t1f_1
|
|
1554
|
+
if (!equals(this.t1f_1, other.t1f_1))
|
|
1473
1555
|
return false;
|
|
1474
|
-
if (!
|
|
1556
|
+
if (!(this.u1f_1 === other.u1f_1))
|
|
1475
1557
|
return false;
|
|
1476
1558
|
if (!equals(this.v1f_1, other.v1f_1))
|
|
1477
1559
|
return false;
|
|
1478
|
-
if (!(this.w1f_1
|
|
1560
|
+
if (!equals(this.w1f_1, other.w1f_1))
|
|
1479
1561
|
return false;
|
|
1480
|
-
if (!
|
|
1562
|
+
if (!(this.x1f_1 == other.x1f_1))
|
|
1481
1563
|
return false;
|
|
1482
1564
|
if (!equals(this.y1f_1, other.y1f_1))
|
|
1483
1565
|
return false;
|
|
@@ -1487,11 +1569,13 @@
|
|
|
1487
1569
|
return false;
|
|
1488
1570
|
if (!equals(this.b1g_1, other.b1g_1))
|
|
1489
1571
|
return false;
|
|
1490
|
-
if (!(this.c1g_1
|
|
1572
|
+
if (!equals(this.c1g_1, other.c1g_1))
|
|
1491
1573
|
return false;
|
|
1492
|
-
if (!
|
|
1574
|
+
if (!(this.d1g_1 == other.d1g_1))
|
|
1493
1575
|
return false;
|
|
1494
|
-
if (!(this.e1g_1
|
|
1576
|
+
if (!equals(this.e1g_1, other.e1g_1))
|
|
1577
|
+
return false;
|
|
1578
|
+
if (!(this.f1g_1 == other.f1g_1))
|
|
1495
1579
|
return false;
|
|
1496
1580
|
return true;
|
|
1497
1581
|
};
|
|
@@ -1501,21 +1585,21 @@
|
|
|
1501
1585
|
tmp0_serialDesc.rs('sponsorName', false);
|
|
1502
1586
|
tmp0_serialDesc.rs('territory', false);
|
|
1503
1587
|
tmp0_serialDesc.rs('url', false);
|
|
1504
|
-
this.
|
|
1588
|
+
this.o1h_1 = tmp0_serialDesc;
|
|
1505
1589
|
}
|
|
1506
|
-
protoOf($serializer_2).
|
|
1507
|
-
var tmp0_desc = this.
|
|
1590
|
+
protoOf($serializer_2).p1h = function (encoder, value) {
|
|
1591
|
+
var tmp0_desc = this.o1h_1;
|
|
1508
1592
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1509
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
1510
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
1511
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
1593
|
+
tmp1_output.wm(tmp0_desc, 0, value.q1h_1);
|
|
1594
|
+
tmp1_output.wm(tmp0_desc, 1, value.r1h_1);
|
|
1595
|
+
tmp1_output.wm(tmp0_desc, 2, value.s1h_1);
|
|
1512
1596
|
tmp1_output.jl(tmp0_desc);
|
|
1513
1597
|
};
|
|
1514
1598
|
protoOf($serializer_2).li = function (encoder, value) {
|
|
1515
|
-
return this.
|
|
1599
|
+
return this.p1h(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
1516
1600
|
};
|
|
1517
1601
|
protoOf($serializer_2).mi = function (decoder) {
|
|
1518
|
-
var tmp0_desc = this.
|
|
1602
|
+
var tmp0_desc = this.o1h_1;
|
|
1519
1603
|
var tmp1_flag = true;
|
|
1520
1604
|
var tmp2_index = 0;
|
|
1521
1605
|
var tmp3_bitMask0 = 0;
|
|
@@ -1557,7 +1641,7 @@
|
|
|
1557
1641
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1558
1642
|
};
|
|
1559
1643
|
protoOf($serializer_2).ki = function () {
|
|
1560
|
-
return this.
|
|
1644
|
+
return this.o1h_1;
|
|
1561
1645
|
};
|
|
1562
1646
|
protoOf($serializer_2).ts = function () {
|
|
1563
1647
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1573,11 +1657,11 @@
|
|
|
1573
1657
|
}
|
|
1574
1658
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1575
1659
|
if (!(7 === (7 & seen0))) {
|
|
1576
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().
|
|
1660
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().o1h_1);
|
|
1577
1661
|
}
|
|
1578
|
-
$this.
|
|
1579
|
-
$this.
|
|
1580
|
-
$this.
|
|
1662
|
+
$this.q1h_1 = sponsorName;
|
|
1663
|
+
$this.r1h_1 = territory;
|
|
1664
|
+
$this.s1h_1 = url;
|
|
1581
1665
|
return $this;
|
|
1582
1666
|
}
|
|
1583
1667
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1586,12 +1670,12 @@
|
|
|
1586
1670
|
function CommerceCta() {
|
|
1587
1671
|
}
|
|
1588
1672
|
protoOf(CommerceCta).toString = function () {
|
|
1589
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1673
|
+
return 'CommerceCta(sponsorName=' + this.q1h_1 + ', territory=' + this.r1h_1 + ', url=' + this.s1h_1 + ')';
|
|
1590
1674
|
};
|
|
1591
1675
|
protoOf(CommerceCta).hashCode = function () {
|
|
1592
|
-
var result = getStringHashCode(this.
|
|
1593
|
-
result = imul(result, 31) + getStringHashCode(this.q1h_1) | 0;
|
|
1676
|
+
var result = getStringHashCode(this.q1h_1);
|
|
1594
1677
|
result = imul(result, 31) + getStringHashCode(this.r1h_1) | 0;
|
|
1678
|
+
result = imul(result, 31) + getStringHashCode(this.s1h_1) | 0;
|
|
1595
1679
|
return result;
|
|
1596
1680
|
};
|
|
1597
1681
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1599,12 +1683,12 @@
|
|
|
1599
1683
|
return true;
|
|
1600
1684
|
if (!(other instanceof CommerceCta))
|
|
1601
1685
|
return false;
|
|
1602
|
-
if (!(this.p1h_1 === other.p1h_1))
|
|
1603
|
-
return false;
|
|
1604
1686
|
if (!(this.q1h_1 === other.q1h_1))
|
|
1605
1687
|
return false;
|
|
1606
1688
|
if (!(this.r1h_1 === other.r1h_1))
|
|
1607
1689
|
return false;
|
|
1690
|
+
if (!(this.s1h_1 === other.s1h_1))
|
|
1691
|
+
return false;
|
|
1608
1692
|
return true;
|
|
1609
1693
|
};
|
|
1610
1694
|
function $serializer_3() {
|
|
@@ -1618,36 +1702,36 @@
|
|
|
1618
1702
|
tmp0_serialDesc.rs('photographer', true);
|
|
1619
1703
|
tmp0_serialDesc.rs('source', true);
|
|
1620
1704
|
tmp0_serialDesc.rs('url', false);
|
|
1621
|
-
this.
|
|
1705
|
+
this.t1h_1 = tmp0_serialDesc;
|
|
1622
1706
|
}
|
|
1623
|
-
protoOf($serializer_3).
|
|
1624
|
-
var tmp0_desc = this.
|
|
1707
|
+
protoOf($serializer_3).u1h = function (encoder, value) {
|
|
1708
|
+
var tmp0_desc = this.t1h_1;
|
|
1625
1709
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1626
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1627
|
-
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1710
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.v1h_1 == null)) {
|
|
1711
|
+
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.v1h_1);
|
|
1628
1712
|
}
|
|
1629
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
1630
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
1631
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1713
|
+
tmp1_output.wm(tmp0_desc, 1, value.w1h_1);
|
|
1714
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.x1h_1 == null)) {
|
|
1715
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.x1h_1);
|
|
1632
1716
|
}
|
|
1633
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
1634
|
-
tmp1_output.an(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
1717
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.y1h_1 == null)) {
|
|
1718
|
+
tmp1_output.an(tmp0_desc, 3, StringSerializer_getInstance(), value.y1h_1);
|
|
1635
1719
|
}
|
|
1636
|
-
tmp1_output.wm(tmp0_desc, 4, value.
|
|
1637
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
1638
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1720
|
+
tmp1_output.wm(tmp0_desc, 4, value.z1h_1);
|
|
1721
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.a1i_1 == null)) {
|
|
1722
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.a1i_1);
|
|
1639
1723
|
}
|
|
1640
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
1641
|
-
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
1724
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.b1i_1 == null)) {
|
|
1725
|
+
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.b1i_1);
|
|
1642
1726
|
}
|
|
1643
|
-
tmp1_output.wm(tmp0_desc, 7, value.
|
|
1727
|
+
tmp1_output.wm(tmp0_desc, 7, value.c1i_1);
|
|
1644
1728
|
tmp1_output.jl(tmp0_desc);
|
|
1645
1729
|
};
|
|
1646
1730
|
protoOf($serializer_3).li = function (encoder, value) {
|
|
1647
|
-
return this.
|
|
1731
|
+
return this.u1h(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1648
1732
|
};
|
|
1649
1733
|
protoOf($serializer_3).mi = function (decoder) {
|
|
1650
|
-
var tmp0_desc = this.
|
|
1734
|
+
var tmp0_desc = this.t1h_1;
|
|
1651
1735
|
var tmp1_flag = true;
|
|
1652
1736
|
var tmp2_index = 0;
|
|
1653
1737
|
var tmp3_bitMask0 = 0;
|
|
@@ -1724,7 +1808,7 @@
|
|
|
1724
1808
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1725
1809
|
};
|
|
1726
1810
|
protoOf($serializer_3).ki = function () {
|
|
1727
|
-
return this.
|
|
1811
|
+
return this.t1h_1;
|
|
1728
1812
|
};
|
|
1729
1813
|
protoOf($serializer_3).ts = function () {
|
|
1730
1814
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1740,31 +1824,31 @@
|
|
|
1740
1824
|
}
|
|
1741
1825
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1742
1826
|
if (!(146 === (146 & seen0))) {
|
|
1743
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().
|
|
1827
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().t1h_1);
|
|
1744
1828
|
}
|
|
1745
1829
|
if (0 === (seen0 & 1))
|
|
1746
|
-
$this.
|
|
1830
|
+
$this.v1h_1 = null;
|
|
1747
1831
|
else
|
|
1748
|
-
$this.
|
|
1749
|
-
$this.
|
|
1832
|
+
$this.v1h_1 = caption;
|
|
1833
|
+
$this.w1h_1 = cropId;
|
|
1750
1834
|
if (0 === (seen0 & 4))
|
|
1751
|
-
$this.
|
|
1835
|
+
$this.x1h_1 = null;
|
|
1752
1836
|
else
|
|
1753
|
-
$this.
|
|
1837
|
+
$this.x1h_1 = imageType;
|
|
1754
1838
|
if (0 === (seen0 & 8))
|
|
1755
|
-
$this.
|
|
1839
|
+
$this.y1h_1 = null;
|
|
1756
1840
|
else
|
|
1757
|
-
$this.
|
|
1758
|
-
$this.
|
|
1841
|
+
$this.y1h_1 = mediaApiUrl;
|
|
1842
|
+
$this.z1h_1 = mediaId;
|
|
1759
1843
|
if (0 === (seen0 & 32))
|
|
1760
|
-
$this.
|
|
1844
|
+
$this.a1i_1 = null;
|
|
1761
1845
|
else
|
|
1762
|
-
$this.
|
|
1846
|
+
$this.a1i_1 = photographer;
|
|
1763
1847
|
if (0 === (seen0 & 64))
|
|
1764
|
-
$this.
|
|
1848
|
+
$this.b1i_1 = null;
|
|
1765
1849
|
else
|
|
1766
|
-
$this.
|
|
1767
|
-
$this.
|
|
1850
|
+
$this.b1i_1 = source;
|
|
1851
|
+
$this.c1i_1 = url;
|
|
1768
1852
|
return $this;
|
|
1769
1853
|
}
|
|
1770
1854
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1773,17 +1857,17 @@
|
|
|
1773
1857
|
function Image() {
|
|
1774
1858
|
}
|
|
1775
1859
|
protoOf(Image).toString = function () {
|
|
1776
|
-
return 'Image(caption=' + this.
|
|
1860
|
+
return 'Image(caption=' + this.v1h_1 + ', cropId=' + this.w1h_1 + ', imageType=' + this.x1h_1 + ', mediaApiUrl=' + this.y1h_1 + ', mediaId=' + this.z1h_1 + ', photographer=' + this.a1i_1 + ', source=' + this.b1i_1 + ', url=' + this.c1i_1 + ')';
|
|
1777
1861
|
};
|
|
1778
1862
|
protoOf(Image).hashCode = function () {
|
|
1779
|
-
var result = this.
|
|
1780
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1781
|
-
result = imul(result, 31) + (this.w1h_1 == null ? 0 : getStringHashCode(this.w1h_1)) | 0;
|
|
1863
|
+
var result = this.v1h_1 == null ? 0 : getStringHashCode(this.v1h_1);
|
|
1864
|
+
result = imul(result, 31) + getStringHashCode(this.w1h_1) | 0;
|
|
1782
1865
|
result = imul(result, 31) + (this.x1h_1 == null ? 0 : getStringHashCode(this.x1h_1)) | 0;
|
|
1783
|
-
result = imul(result, 31) + getStringHashCode(this.y1h_1) | 0;
|
|
1784
|
-
result = imul(result, 31) +
|
|
1866
|
+
result = imul(result, 31) + (this.y1h_1 == null ? 0 : getStringHashCode(this.y1h_1)) | 0;
|
|
1867
|
+
result = imul(result, 31) + getStringHashCode(this.z1h_1) | 0;
|
|
1785
1868
|
result = imul(result, 31) + (this.a1i_1 == null ? 0 : getStringHashCode(this.a1i_1)) | 0;
|
|
1786
|
-
result = imul(result, 31) + getStringHashCode(this.b1i_1) | 0;
|
|
1869
|
+
result = imul(result, 31) + (this.b1i_1 == null ? 0 : getStringHashCode(this.b1i_1)) | 0;
|
|
1870
|
+
result = imul(result, 31) + getStringHashCode(this.c1i_1) | 0;
|
|
1787
1871
|
return result;
|
|
1788
1872
|
};
|
|
1789
1873
|
protoOf(Image).equals = function (other) {
|
|
@@ -1791,21 +1875,21 @@
|
|
|
1791
1875
|
return true;
|
|
1792
1876
|
if (!(other instanceof Image))
|
|
1793
1877
|
return false;
|
|
1794
|
-
if (!(this.
|
|
1878
|
+
if (!(this.v1h_1 == other.v1h_1))
|
|
1795
1879
|
return false;
|
|
1796
|
-
if (!(this.
|
|
1797
|
-
return false;
|
|
1798
|
-
if (!(this.w1h_1 == other.w1h_1))
|
|
1880
|
+
if (!(this.w1h_1 === other.w1h_1))
|
|
1799
1881
|
return false;
|
|
1800
1882
|
if (!(this.x1h_1 == other.x1h_1))
|
|
1801
1883
|
return false;
|
|
1802
|
-
if (!(this.y1h_1
|
|
1884
|
+
if (!(this.y1h_1 == other.y1h_1))
|
|
1803
1885
|
return false;
|
|
1804
|
-
if (!(this.z1h_1
|
|
1886
|
+
if (!(this.z1h_1 === other.z1h_1))
|
|
1805
1887
|
return false;
|
|
1806
1888
|
if (!(this.a1i_1 == other.a1i_1))
|
|
1807
1889
|
return false;
|
|
1808
|
-
if (!(this.b1i_1
|
|
1890
|
+
if (!(this.b1i_1 == other.b1i_1))
|
|
1891
|
+
return false;
|
|
1892
|
+
if (!(this.c1i_1 === other.c1i_1))
|
|
1809
1893
|
return false;
|
|
1810
1894
|
return true;
|
|
1811
1895
|
};
|
|
@@ -1819,7 +1903,7 @@
|
|
|
1819
1903
|
// Inline function 'kotlin.arrayOf' call
|
|
1820
1904
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1821
1905
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1822
|
-
tmp.
|
|
1906
|
+
tmp.d1i_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1823
1907
|
}
|
|
1824
1908
|
var Companion_instance_3;
|
|
1825
1909
|
function Companion_getInstance_2() {
|
|
@@ -1832,32 +1916,32 @@
|
|
|
1832
1916
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1833
1917
|
tmp0_serialDesc.rs('ingredientsList', true);
|
|
1834
1918
|
tmp0_serialDesc.rs('recipeSection', true);
|
|
1835
|
-
this.
|
|
1919
|
+
this.e1i_1 = tmp0_serialDesc;
|
|
1836
1920
|
}
|
|
1837
|
-
protoOf($serializer_4).
|
|
1838
|
-
var tmp0_desc = this.
|
|
1921
|
+
protoOf($serializer_4).f1i = function (encoder, value) {
|
|
1922
|
+
var tmp0_desc = this.e1i_1;
|
|
1839
1923
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1840
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
1841
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1842
|
-
tmp1_output.an(tmp0_desc, 0, tmp2_cached[0].h2(), value.
|
|
1924
|
+
var tmp2_cached = Companion_getInstance_2().d1i_1;
|
|
1925
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.g1g_1 == null)) {
|
|
1926
|
+
tmp1_output.an(tmp0_desc, 0, tmp2_cached[0].h2(), value.g1g_1);
|
|
1843
1927
|
}
|
|
1844
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
1845
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1928
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.h1g_1 == null)) {
|
|
1929
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.h1g_1);
|
|
1846
1930
|
}
|
|
1847
1931
|
tmp1_output.jl(tmp0_desc);
|
|
1848
1932
|
};
|
|
1849
1933
|
protoOf($serializer_4).li = function (encoder, value) {
|
|
1850
|
-
return this.
|
|
1934
|
+
return this.f1i(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1851
1935
|
};
|
|
1852
1936
|
protoOf($serializer_4).mi = function (decoder) {
|
|
1853
|
-
var tmp0_desc = this.
|
|
1937
|
+
var tmp0_desc = this.e1i_1;
|
|
1854
1938
|
var tmp1_flag = true;
|
|
1855
1939
|
var tmp2_index = 0;
|
|
1856
1940
|
var tmp3_bitMask0 = 0;
|
|
1857
1941
|
var tmp4_local0 = null;
|
|
1858
1942
|
var tmp5_local1 = null;
|
|
1859
1943
|
var tmp6_input = decoder.il(tmp0_desc);
|
|
1860
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
1944
|
+
var tmp7_cached = Companion_getInstance_2().d1i_1;
|
|
1861
1945
|
if (tmp6_input.yl()) {
|
|
1862
1946
|
tmp4_local0 = tmp6_input.wl(tmp0_desc, 0, tmp7_cached[0].h2(), tmp4_local0);
|
|
1863
1947
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1886,10 +1970,10 @@
|
|
|
1886
1970
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1887
1971
|
};
|
|
1888
1972
|
protoOf($serializer_4).ki = function () {
|
|
1889
|
-
return this.
|
|
1973
|
+
return this.e1i_1;
|
|
1890
1974
|
};
|
|
1891
1975
|
protoOf($serializer_4).ts = function () {
|
|
1892
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
1976
|
+
var tmp0_cached = Companion_getInstance_2().d1i_1;
|
|
1893
1977
|
// Inline function 'kotlin.arrayOf' call
|
|
1894
1978
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1895
1979
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1903,16 +1987,16 @@
|
|
|
1903
1987
|
}
|
|
1904
1988
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1905
1989
|
if (!(0 === (0 & seen0))) {
|
|
1906
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
1990
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().e1i_1);
|
|
1907
1991
|
}
|
|
1908
1992
|
if (0 === (seen0 & 1))
|
|
1909
|
-
$this.
|
|
1993
|
+
$this.g1g_1 = null;
|
|
1910
1994
|
else
|
|
1911
|
-
$this.
|
|
1995
|
+
$this.g1g_1 = ingredientsList;
|
|
1912
1996
|
if (0 === (seen0 & 2))
|
|
1913
|
-
$this.
|
|
1997
|
+
$this.h1g_1 = null;
|
|
1914
1998
|
else
|
|
1915
|
-
$this.
|
|
1999
|
+
$this.h1g_1 = recipeSection;
|
|
1916
2000
|
return $this;
|
|
1917
2001
|
}
|
|
1918
2002
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -1922,15 +2006,15 @@
|
|
|
1922
2006
|
Companion_getInstance_2();
|
|
1923
2007
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
1924
2008
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
2009
|
+
this.g1g_1 = ingredientsList;
|
|
2010
|
+
this.h1g_1 = recipeSection;
|
|
1927
2011
|
}
|
|
1928
2012
|
protoOf(IngredientsList).toString = function () {
|
|
1929
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
2013
|
+
return 'IngredientsList(ingredientsList=' + toString(this.g1g_1) + ', recipeSection=' + this.h1g_1 + ')';
|
|
1930
2014
|
};
|
|
1931
2015
|
protoOf(IngredientsList).hashCode = function () {
|
|
1932
|
-
var result = this.
|
|
1933
|
-
result = imul(result, 31) + (this.
|
|
2016
|
+
var result = this.g1g_1 == null ? 0 : hashCode(this.g1g_1);
|
|
2017
|
+
result = imul(result, 31) + (this.h1g_1 == null ? 0 : getStringHashCode(this.h1g_1)) | 0;
|
|
1934
2018
|
return result;
|
|
1935
2019
|
};
|
|
1936
2020
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -1938,9 +2022,9 @@
|
|
|
1938
2022
|
return true;
|
|
1939
2023
|
if (!(other instanceof IngredientsList))
|
|
1940
2024
|
return false;
|
|
1941
|
-
if (!equals(this.
|
|
2025
|
+
if (!equals(this.g1g_1, other.g1g_1))
|
|
1942
2026
|
return false;
|
|
1943
|
-
if (!(this.
|
|
2027
|
+
if (!(this.h1g_1 == other.h1g_1))
|
|
1944
2028
|
return false;
|
|
1945
2029
|
return true;
|
|
1946
2030
|
};
|
|
@@ -1962,45 +2046,45 @@
|
|
|
1962
2046
|
tmp0_serialDesc.rs('template', true);
|
|
1963
2047
|
tmp0_serialDesc.rs('text', true);
|
|
1964
2048
|
tmp0_serialDesc.rs('unit', true);
|
|
1965
|
-
this.
|
|
2049
|
+
this.g1i_1 = tmp0_serialDesc;
|
|
1966
2050
|
}
|
|
1967
|
-
protoOf($serializer_5).
|
|
1968
|
-
var tmp0_desc = this.
|
|
2051
|
+
protoOf($serializer_5).h1i = function (encoder, value) {
|
|
2052
|
+
var tmp0_desc = this.g1i_1;
|
|
1969
2053
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1970
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1971
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2054
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.i1g_1 == null)) {
|
|
2055
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.i1g_1);
|
|
1972
2056
|
}
|
|
1973
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
1974
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2057
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.j1g_1 == null)) {
|
|
2058
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.j1g_1);
|
|
1975
2059
|
}
|
|
1976
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
1977
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2060
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.k1g_1 == null)) {
|
|
2061
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.k1g_1);
|
|
1978
2062
|
}
|
|
1979
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
1980
|
-
tmp1_output.an(tmp0_desc, 3, BooleanSerializer_getInstance(), value.
|
|
2063
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.l1g_1 == null)) {
|
|
2064
|
+
tmp1_output.an(tmp0_desc, 3, BooleanSerializer_getInstance(), value.l1g_1);
|
|
1981
2065
|
}
|
|
1982
|
-
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.
|
|
1983
|
-
tmp1_output.an(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
2066
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.m1g_1 == null)) {
|
|
2067
|
+
tmp1_output.an(tmp0_desc, 4, StringSerializer_getInstance(), value.m1g_1);
|
|
1984
2068
|
}
|
|
1985
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
1986
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
2069
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.n1g_1 == null)) {
|
|
2070
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.n1g_1);
|
|
1987
2071
|
}
|
|
1988
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
1989
|
-
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
2072
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.o1g_1 == null)) {
|
|
2073
|
+
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.o1g_1);
|
|
1990
2074
|
}
|
|
1991
|
-
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.
|
|
1992
|
-
tmp1_output.an(tmp0_desc, 7, StringSerializer_getInstance(), value.
|
|
2075
|
+
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.p1g_1 == null)) {
|
|
2076
|
+
tmp1_output.an(tmp0_desc, 7, StringSerializer_getInstance(), value.p1g_1);
|
|
1993
2077
|
}
|
|
1994
|
-
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.
|
|
1995
|
-
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
2078
|
+
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.q1g_1 == null)) {
|
|
2079
|
+
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.q1g_1);
|
|
1996
2080
|
}
|
|
1997
2081
|
tmp1_output.jl(tmp0_desc);
|
|
1998
2082
|
};
|
|
1999
2083
|
protoOf($serializer_5).li = function (encoder, value) {
|
|
2000
|
-
return this.
|
|
2084
|
+
return this.h1i(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
2001
2085
|
};
|
|
2002
2086
|
protoOf($serializer_5).mi = function (decoder) {
|
|
2003
|
-
var tmp0_desc = this.
|
|
2087
|
+
var tmp0_desc = this.g1i_1;
|
|
2004
2088
|
var tmp1_flag = true;
|
|
2005
2089
|
var tmp2_index = 0;
|
|
2006
2090
|
var tmp3_bitMask0 = 0;
|
|
@@ -2084,7 +2168,7 @@
|
|
|
2084
2168
|
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);
|
|
2085
2169
|
};
|
|
2086
2170
|
protoOf($serializer_5).ki = function () {
|
|
2087
|
-
return this.
|
|
2171
|
+
return this.g1i_1;
|
|
2088
2172
|
};
|
|
2089
2173
|
protoOf($serializer_5).ts = function () {
|
|
2090
2174
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2100,44 +2184,44 @@
|
|
|
2100
2184
|
}
|
|
2101
2185
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
2102
2186
|
if (!(0 === (0 & seen0))) {
|
|
2103
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().
|
|
2187
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().g1i_1);
|
|
2104
2188
|
}
|
|
2105
2189
|
if (0 === (seen0 & 1))
|
|
2106
|
-
$this.
|
|
2190
|
+
$this.i1g_1 = null;
|
|
2107
2191
|
else
|
|
2108
|
-
$this.
|
|
2192
|
+
$this.i1g_1 = amount;
|
|
2109
2193
|
if (0 === (seen0 & 2))
|
|
2110
|
-
$this.
|
|
2194
|
+
$this.j1g_1 = null;
|
|
2111
2195
|
else
|
|
2112
|
-
$this.
|
|
2196
|
+
$this.j1g_1 = ingredientId;
|
|
2113
2197
|
if (0 === (seen0 & 4))
|
|
2114
|
-
$this.
|
|
2198
|
+
$this.k1g_1 = null;
|
|
2115
2199
|
else
|
|
2116
|
-
$this.
|
|
2200
|
+
$this.k1g_1 = name;
|
|
2117
2201
|
if (0 === (seen0 & 8))
|
|
2118
|
-
$this.
|
|
2202
|
+
$this.l1g_1 = null;
|
|
2119
2203
|
else
|
|
2120
|
-
$this.
|
|
2204
|
+
$this.l1g_1 = optional;
|
|
2121
2205
|
if (0 === (seen0 & 16))
|
|
2122
|
-
$this.
|
|
2206
|
+
$this.m1g_1 = null;
|
|
2123
2207
|
else
|
|
2124
|
-
$this.
|
|
2208
|
+
$this.m1g_1 = prefix;
|
|
2125
2209
|
if (0 === (seen0 & 32))
|
|
2126
|
-
$this.
|
|
2210
|
+
$this.n1g_1 = null;
|
|
2127
2211
|
else
|
|
2128
|
-
$this.
|
|
2212
|
+
$this.n1g_1 = suffix;
|
|
2129
2213
|
if (0 === (seen0 & 64))
|
|
2130
|
-
$this.
|
|
2214
|
+
$this.o1g_1 = null;
|
|
2131
2215
|
else
|
|
2132
|
-
$this.
|
|
2216
|
+
$this.o1g_1 = template;
|
|
2133
2217
|
if (0 === (seen0 & 128))
|
|
2134
|
-
$this.
|
|
2218
|
+
$this.p1g_1 = null;
|
|
2135
2219
|
else
|
|
2136
|
-
$this.
|
|
2220
|
+
$this.p1g_1 = text;
|
|
2137
2221
|
if (0 === (seen0 & 256))
|
|
2138
|
-
$this.
|
|
2222
|
+
$this.q1g_1 = null;
|
|
2139
2223
|
else
|
|
2140
|
-
$this.
|
|
2224
|
+
$this.q1g_1 = unit;
|
|
2141
2225
|
return $this;
|
|
2142
2226
|
}
|
|
2143
2227
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -2153,44 +2237,44 @@
|
|
|
2153
2237
|
template = template === VOID ? null : template;
|
|
2154
2238
|
text = text === VOID ? null : text;
|
|
2155
2239
|
unit = unit === VOID ? null : unit;
|
|
2156
|
-
this.
|
|
2157
|
-
this.
|
|
2158
|
-
this.
|
|
2159
|
-
this.
|
|
2160
|
-
this.
|
|
2161
|
-
this.
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
}
|
|
2166
|
-
protoOf(IngredientItem).
|
|
2240
|
+
this.i1g_1 = amount;
|
|
2241
|
+
this.j1g_1 = ingredientId;
|
|
2242
|
+
this.k1g_1 = name;
|
|
2243
|
+
this.l1g_1 = optional;
|
|
2244
|
+
this.m1g_1 = prefix;
|
|
2245
|
+
this.n1g_1 = suffix;
|
|
2246
|
+
this.o1g_1 = template;
|
|
2247
|
+
this.p1g_1 = text;
|
|
2248
|
+
this.q1g_1 = unit;
|
|
2249
|
+
}
|
|
2250
|
+
protoOf(IngredientItem).i1i = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
2167
2251
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2168
2252
|
};
|
|
2169
|
-
protoOf(IngredientItem).
|
|
2170
|
-
amount = amount === VOID ? this.
|
|
2171
|
-
ingredientId = ingredientId === VOID ? this.
|
|
2172
|
-
name = name === VOID ? this.
|
|
2173
|
-
optional = optional === VOID ? this.
|
|
2174
|
-
prefix = prefix === VOID ? this.
|
|
2175
|
-
suffix = suffix === VOID ? this.
|
|
2176
|
-
template = template === VOID ? this.
|
|
2177
|
-
text = text === VOID ? this.
|
|
2178
|
-
unit = unit === VOID ? this.
|
|
2179
|
-
return $super === VOID ? this.
|
|
2253
|
+
protoOf(IngredientItem).r1g = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
2254
|
+
amount = amount === VOID ? this.i1g_1 : amount;
|
|
2255
|
+
ingredientId = ingredientId === VOID ? this.j1g_1 : ingredientId;
|
|
2256
|
+
name = name === VOID ? this.k1g_1 : name;
|
|
2257
|
+
optional = optional === VOID ? this.l1g_1 : optional;
|
|
2258
|
+
prefix = prefix === VOID ? this.m1g_1 : prefix;
|
|
2259
|
+
suffix = suffix === VOID ? this.n1g_1 : suffix;
|
|
2260
|
+
template = template === VOID ? this.o1g_1 : template;
|
|
2261
|
+
text = text === VOID ? this.p1g_1 : text;
|
|
2262
|
+
unit = unit === VOID ? this.q1g_1 : unit;
|
|
2263
|
+
return $super === VOID ? this.i1i(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.i1i.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2180
2264
|
};
|
|
2181
2265
|
protoOf(IngredientItem).toString = function () {
|
|
2182
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
2266
|
+
return 'IngredientItem(amount=' + toString(this.i1g_1) + ', ingredientId=' + this.j1g_1 + ', name=' + this.k1g_1 + ', optional=' + this.l1g_1 + ', prefix=' + this.m1g_1 + ', suffix=' + this.n1g_1 + ', template=' + this.o1g_1 + ', text=' + this.p1g_1 + ', unit=' + this.q1g_1 + ')';
|
|
2183
2267
|
};
|
|
2184
2268
|
protoOf(IngredientItem).hashCode = function () {
|
|
2185
|
-
var result = this.
|
|
2186
|
-
result = imul(result, 31) + (this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1)) | 0;
|
|
2269
|
+
var result = this.i1g_1 == null ? 0 : this.i1g_1.hashCode();
|
|
2187
2270
|
result = imul(result, 31) + (this.j1g_1 == null ? 0 : getStringHashCode(this.j1g_1)) | 0;
|
|
2188
|
-
result = imul(result, 31) + (this.k1g_1 == null ? 0 :
|
|
2189
|
-
result = imul(result, 31) + (this.l1g_1 == null ? 0 :
|
|
2271
|
+
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getStringHashCode(this.k1g_1)) | 0;
|
|
2272
|
+
result = imul(result, 31) + (this.l1g_1 == null ? 0 : getBooleanHashCode(this.l1g_1)) | 0;
|
|
2190
2273
|
result = imul(result, 31) + (this.m1g_1 == null ? 0 : getStringHashCode(this.m1g_1)) | 0;
|
|
2191
2274
|
result = imul(result, 31) + (this.n1g_1 == null ? 0 : getStringHashCode(this.n1g_1)) | 0;
|
|
2192
2275
|
result = imul(result, 31) + (this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1)) | 0;
|
|
2193
2276
|
result = imul(result, 31) + (this.p1g_1 == null ? 0 : getStringHashCode(this.p1g_1)) | 0;
|
|
2277
|
+
result = imul(result, 31) + (this.q1g_1 == null ? 0 : getStringHashCode(this.q1g_1)) | 0;
|
|
2194
2278
|
return result;
|
|
2195
2279
|
};
|
|
2196
2280
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -2198,9 +2282,7 @@
|
|
|
2198
2282
|
return true;
|
|
2199
2283
|
if (!(other instanceof IngredientItem))
|
|
2200
2284
|
return false;
|
|
2201
|
-
if (!equals(this.
|
|
2202
|
-
return false;
|
|
2203
|
-
if (!(this.i1g_1 == other.i1g_1))
|
|
2285
|
+
if (!equals(this.i1g_1, other.i1g_1))
|
|
2204
2286
|
return false;
|
|
2205
2287
|
if (!(this.j1g_1 == other.j1g_1))
|
|
2206
2288
|
return false;
|
|
@@ -2216,6 +2298,8 @@
|
|
|
2216
2298
|
return false;
|
|
2217
2299
|
if (!(this.p1g_1 == other.p1g_1))
|
|
2218
2300
|
return false;
|
|
2301
|
+
if (!(this.q1g_1 == other.q1g_1))
|
|
2302
|
+
return false;
|
|
2219
2303
|
return true;
|
|
2220
2304
|
};
|
|
2221
2305
|
function Companion_4() {
|
|
@@ -2229,24 +2313,24 @@
|
|
|
2229
2313
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
2230
2314
|
tmp0_serialDesc.rs('max', true);
|
|
2231
2315
|
tmp0_serialDesc.rs('min', true);
|
|
2232
|
-
this.
|
|
2316
|
+
this.j1i_1 = tmp0_serialDesc;
|
|
2233
2317
|
}
|
|
2234
|
-
protoOf($serializer_6).
|
|
2235
|
-
var tmp0_desc = this.
|
|
2318
|
+
protoOf($serializer_6).k1i = function (encoder, value) {
|
|
2319
|
+
var tmp0_desc = this.j1i_1;
|
|
2236
2320
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2237
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2238
|
-
tmp1_output.an(tmp0_desc, 0, DoubleSerializer_getInstance(), value.
|
|
2321
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.l1i_1 == null)) {
|
|
2322
|
+
tmp1_output.an(tmp0_desc, 0, DoubleSerializer_getInstance(), value.l1i_1);
|
|
2239
2323
|
}
|
|
2240
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2241
|
-
tmp1_output.an(tmp0_desc, 1, DoubleSerializer_getInstance(), value.
|
|
2324
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.m1i_1 == null)) {
|
|
2325
|
+
tmp1_output.an(tmp0_desc, 1, DoubleSerializer_getInstance(), value.m1i_1);
|
|
2242
2326
|
}
|
|
2243
2327
|
tmp1_output.jl(tmp0_desc);
|
|
2244
2328
|
};
|
|
2245
2329
|
protoOf($serializer_6).li = function (encoder, value) {
|
|
2246
|
-
return this.
|
|
2330
|
+
return this.k1i(encoder, value instanceof Range ? value : THROW_CCE());
|
|
2247
2331
|
};
|
|
2248
2332
|
protoOf($serializer_6).mi = function (decoder) {
|
|
2249
|
-
var tmp0_desc = this.
|
|
2333
|
+
var tmp0_desc = this.j1i_1;
|
|
2250
2334
|
var tmp1_flag = true;
|
|
2251
2335
|
var tmp2_index = 0;
|
|
2252
2336
|
var tmp3_bitMask0 = 0;
|
|
@@ -2281,7 +2365,7 @@
|
|
|
2281
2365
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2282
2366
|
};
|
|
2283
2367
|
protoOf($serializer_6).ki = function () {
|
|
2284
|
-
return this.
|
|
2368
|
+
return this.j1i_1;
|
|
2285
2369
|
};
|
|
2286
2370
|
protoOf($serializer_6).ts = function () {
|
|
2287
2371
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2297,16 +2381,16 @@
|
|
|
2297
2381
|
}
|
|
2298
2382
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
2299
2383
|
if (!(0 === (0 & seen0))) {
|
|
2300
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
2384
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().j1i_1);
|
|
2301
2385
|
}
|
|
2302
2386
|
if (0 === (seen0 & 1))
|
|
2303
|
-
$this.
|
|
2387
|
+
$this.l1i_1 = null;
|
|
2304
2388
|
else
|
|
2305
|
-
$this.
|
|
2389
|
+
$this.l1i_1 = max;
|
|
2306
2390
|
if (0 === (seen0 & 2))
|
|
2307
|
-
$this.
|
|
2391
|
+
$this.m1i_1 = null;
|
|
2308
2392
|
else
|
|
2309
|
-
$this.
|
|
2393
|
+
$this.m1i_1 = min;
|
|
2310
2394
|
return $this;
|
|
2311
2395
|
}
|
|
2312
2396
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -2315,15 +2399,15 @@
|
|
|
2315
2399
|
function Range(max, min) {
|
|
2316
2400
|
max = max === VOID ? null : max;
|
|
2317
2401
|
min = min === VOID ? null : min;
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2402
|
+
this.l1i_1 = max;
|
|
2403
|
+
this.m1i_1 = min;
|
|
2320
2404
|
}
|
|
2321
2405
|
protoOf(Range).toString = function () {
|
|
2322
|
-
return 'Range(max=' + this.
|
|
2406
|
+
return 'Range(max=' + this.l1i_1 + ', min=' + this.m1i_1 + ')';
|
|
2323
2407
|
};
|
|
2324
2408
|
protoOf(Range).hashCode = function () {
|
|
2325
|
-
var result = this.
|
|
2326
|
-
result = imul(result, 31) + (this.
|
|
2409
|
+
var result = this.l1i_1 == null ? 0 : getNumberHashCode(this.l1i_1);
|
|
2410
|
+
result = imul(result, 31) + (this.m1i_1 == null ? 0 : getNumberHashCode(this.m1i_1)) | 0;
|
|
2327
2411
|
return result;
|
|
2328
2412
|
};
|
|
2329
2413
|
protoOf(Range).equals = function (other) {
|
|
@@ -2331,10 +2415,10 @@
|
|
|
2331
2415
|
return true;
|
|
2332
2416
|
if (!(other instanceof Range))
|
|
2333
2417
|
return false;
|
|
2334
|
-
if (!equals(this.k1i_1, other.k1i_1))
|
|
2335
|
-
return false;
|
|
2336
2418
|
if (!equals(this.l1i_1, other.l1i_1))
|
|
2337
2419
|
return false;
|
|
2420
|
+
if (!equals(this.m1i_1, other.m1i_1))
|
|
2421
|
+
return false;
|
|
2338
2422
|
return true;
|
|
2339
2423
|
};
|
|
2340
2424
|
function Instruction$Companion$$childSerializers$_anonymous__sbbefw() {
|
|
@@ -2347,7 +2431,7 @@
|
|
|
2347
2431
|
// Inline function 'kotlin.arrayOf' call
|
|
2348
2432
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2349
2433
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2350
|
-
tmp.
|
|
2434
|
+
tmp.n1i_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
2351
2435
|
}
|
|
2352
2436
|
var Companion_instance_6;
|
|
2353
2437
|
function Companion_getInstance_5() {
|
|
@@ -2362,29 +2446,29 @@
|
|
|
2362
2446
|
tmp0_serialDesc.rs('descriptionTemplate', true);
|
|
2363
2447
|
tmp0_serialDesc.rs('images', true);
|
|
2364
2448
|
tmp0_serialDesc.rs('stepNumber', true);
|
|
2365
|
-
this.
|
|
2449
|
+
this.o1i_1 = tmp0_serialDesc;
|
|
2366
2450
|
}
|
|
2367
|
-
protoOf($serializer_7).
|
|
2368
|
-
var tmp0_desc = this.
|
|
2451
|
+
protoOf($serializer_7).p1i = function (encoder, value) {
|
|
2452
|
+
var tmp0_desc = this.o1i_1;
|
|
2369
2453
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2370
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
2371
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
2372
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2373
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2454
|
+
var tmp2_cached = Companion_getInstance_5().n1i_1;
|
|
2455
|
+
tmp1_output.wm(tmp0_desc, 0, value.s1g_1);
|
|
2456
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.t1g_1 == null)) {
|
|
2457
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.t1g_1);
|
|
2374
2458
|
}
|
|
2375
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
2376
|
-
tmp1_output.an(tmp0_desc, 2, tmp2_cached[2].h2(), value.
|
|
2459
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.u1g_1 == null)) {
|
|
2460
|
+
tmp1_output.an(tmp0_desc, 2, tmp2_cached[2].h2(), value.u1g_1);
|
|
2377
2461
|
}
|
|
2378
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
2379
|
-
tmp1_output.an(tmp0_desc, 3, DoubleSerializer_getInstance(), value.
|
|
2462
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.v1g_1 == null)) {
|
|
2463
|
+
tmp1_output.an(tmp0_desc, 3, DoubleSerializer_getInstance(), value.v1g_1);
|
|
2380
2464
|
}
|
|
2381
2465
|
tmp1_output.jl(tmp0_desc);
|
|
2382
2466
|
};
|
|
2383
2467
|
protoOf($serializer_7).li = function (encoder, value) {
|
|
2384
|
-
return this.
|
|
2468
|
+
return this.p1i(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
2385
2469
|
};
|
|
2386
2470
|
protoOf($serializer_7).mi = function (decoder) {
|
|
2387
|
-
var tmp0_desc = this.
|
|
2471
|
+
var tmp0_desc = this.o1i_1;
|
|
2388
2472
|
var tmp1_flag = true;
|
|
2389
2473
|
var tmp2_index = 0;
|
|
2390
2474
|
var tmp3_bitMask0 = 0;
|
|
@@ -2393,7 +2477,7 @@
|
|
|
2393
2477
|
var tmp6_local2 = null;
|
|
2394
2478
|
var tmp7_local3 = null;
|
|
2395
2479
|
var tmp8_input = decoder.il(tmp0_desc);
|
|
2396
|
-
var tmp9_cached = Companion_getInstance_5().
|
|
2480
|
+
var tmp9_cached = Companion_getInstance_5().n1i_1;
|
|
2397
2481
|
if (tmp8_input.yl()) {
|
|
2398
2482
|
tmp4_local0 = tmp8_input.sl(tmp0_desc, 0);
|
|
2399
2483
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2434,10 +2518,10 @@
|
|
|
2434
2518
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2435
2519
|
};
|
|
2436
2520
|
protoOf($serializer_7).ki = function () {
|
|
2437
|
-
return this.
|
|
2521
|
+
return this.o1i_1;
|
|
2438
2522
|
};
|
|
2439
2523
|
protoOf($serializer_7).ts = function () {
|
|
2440
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
2524
|
+
var tmp0_cached = Companion_getInstance_5().n1i_1;
|
|
2441
2525
|
// Inline function 'kotlin.arrayOf' call
|
|
2442
2526
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2443
2527
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2451,21 +2535,21 @@
|
|
|
2451
2535
|
}
|
|
2452
2536
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
2453
2537
|
if (!(1 === (1 & seen0))) {
|
|
2454
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().
|
|
2538
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().o1i_1);
|
|
2455
2539
|
}
|
|
2456
|
-
$this.
|
|
2540
|
+
$this.s1g_1 = description;
|
|
2457
2541
|
if (0 === (seen0 & 2))
|
|
2458
|
-
$this.
|
|
2542
|
+
$this.t1g_1 = null;
|
|
2459
2543
|
else
|
|
2460
|
-
$this.
|
|
2544
|
+
$this.t1g_1 = descriptionTemplate;
|
|
2461
2545
|
if (0 === (seen0 & 4))
|
|
2462
|
-
$this.
|
|
2546
|
+
$this.u1g_1 = null;
|
|
2463
2547
|
else
|
|
2464
|
-
$this.
|
|
2548
|
+
$this.u1g_1 = images;
|
|
2465
2549
|
if (0 === (seen0 & 8))
|
|
2466
|
-
$this.
|
|
2550
|
+
$this.v1g_1 = null;
|
|
2467
2551
|
else
|
|
2468
|
-
$this.
|
|
2552
|
+
$this.v1g_1 = stepNumber;
|
|
2469
2553
|
return $this;
|
|
2470
2554
|
}
|
|
2471
2555
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -2476,29 +2560,29 @@
|
|
|
2476
2560
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
2477
2561
|
images = images === VOID ? null : images;
|
|
2478
2562
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2481
|
-
this.
|
|
2482
|
-
this.
|
|
2563
|
+
this.s1g_1 = description;
|
|
2564
|
+
this.t1g_1 = descriptionTemplate;
|
|
2565
|
+
this.u1g_1 = images;
|
|
2566
|
+
this.v1g_1 = stepNumber;
|
|
2483
2567
|
}
|
|
2484
|
-
protoOf(Instruction).
|
|
2568
|
+
protoOf(Instruction).q1i = function (description, descriptionTemplate, images, stepNumber) {
|
|
2485
2569
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
2486
2570
|
};
|
|
2487
|
-
protoOf(Instruction).
|
|
2488
|
-
description = description === VOID ? this.
|
|
2489
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
2490
|
-
images = images === VOID ? this.
|
|
2491
|
-
stepNumber = stepNumber === VOID ? this.
|
|
2492
|
-
return $super === VOID ? this.
|
|
2571
|
+
protoOf(Instruction).w1g = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2572
|
+
description = description === VOID ? this.s1g_1 : description;
|
|
2573
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.t1g_1 : descriptionTemplate;
|
|
2574
|
+
images = images === VOID ? this.u1g_1 : images;
|
|
2575
|
+
stepNumber = stepNumber === VOID ? this.v1g_1 : stepNumber;
|
|
2576
|
+
return $super === VOID ? this.q1i(description, descriptionTemplate, images, stepNumber) : $super.q1i.call(this, description, descriptionTemplate, images, stepNumber);
|
|
2493
2577
|
};
|
|
2494
2578
|
protoOf(Instruction).toString = function () {
|
|
2495
|
-
return 'Instruction(description=' + this.
|
|
2579
|
+
return 'Instruction(description=' + this.s1g_1 + ', descriptionTemplate=' + this.t1g_1 + ', images=' + toString(this.u1g_1) + ', stepNumber=' + this.v1g_1 + ')';
|
|
2496
2580
|
};
|
|
2497
2581
|
protoOf(Instruction).hashCode = function () {
|
|
2498
|
-
var result = getStringHashCode(this.
|
|
2499
|
-
result = imul(result, 31) + (this.
|
|
2500
|
-
result = imul(result, 31) + (this.
|
|
2501
|
-
result = imul(result, 31) + (this.
|
|
2582
|
+
var result = getStringHashCode(this.s1g_1);
|
|
2583
|
+
result = imul(result, 31) + (this.t1g_1 == null ? 0 : getStringHashCode(this.t1g_1)) | 0;
|
|
2584
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : hashCode(this.u1g_1)) | 0;
|
|
2585
|
+
result = imul(result, 31) + (this.v1g_1 == null ? 0 : getNumberHashCode(this.v1g_1)) | 0;
|
|
2502
2586
|
return result;
|
|
2503
2587
|
};
|
|
2504
2588
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -2506,14 +2590,14 @@
|
|
|
2506
2590
|
return true;
|
|
2507
2591
|
if (!(other instanceof Instruction))
|
|
2508
2592
|
return false;
|
|
2509
|
-
if (!(this.
|
|
2510
|
-
return false;
|
|
2511
|
-
if (!(this.s1g_1 == other.s1g_1))
|
|
2593
|
+
if (!(this.s1g_1 === other.s1g_1))
|
|
2512
2594
|
return false;
|
|
2513
|
-
if (!
|
|
2595
|
+
if (!(this.t1g_1 == other.t1g_1))
|
|
2514
2596
|
return false;
|
|
2515
2597
|
if (!equals(this.u1g_1, other.u1g_1))
|
|
2516
2598
|
return false;
|
|
2599
|
+
if (!equals(this.v1g_1, other.v1g_1))
|
|
2600
|
+
return false;
|
|
2517
2601
|
return true;
|
|
2518
2602
|
};
|
|
2519
2603
|
function $serializer_8() {
|
|
@@ -2522,25 +2606,25 @@
|
|
|
2522
2606
|
tmp0_serialDesc.rs('amount', true);
|
|
2523
2607
|
tmp0_serialDesc.rs('text', true);
|
|
2524
2608
|
tmp0_serialDesc.rs('unit', false);
|
|
2525
|
-
this.
|
|
2609
|
+
this.r1i_1 = tmp0_serialDesc;
|
|
2526
2610
|
}
|
|
2527
|
-
protoOf($serializer_8).
|
|
2528
|
-
var tmp0_desc = this.
|
|
2611
|
+
protoOf($serializer_8).s1i = function (encoder, value) {
|
|
2612
|
+
var tmp0_desc = this.r1i_1;
|
|
2529
2613
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2530
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2531
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2614
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.t1i_1 == null)) {
|
|
2615
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.t1i_1);
|
|
2532
2616
|
}
|
|
2533
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2534
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2617
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.u1i_1 == null)) {
|
|
2618
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.u1i_1);
|
|
2535
2619
|
}
|
|
2536
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
2620
|
+
tmp1_output.wm(tmp0_desc, 2, value.v1i_1);
|
|
2537
2621
|
tmp1_output.jl(tmp0_desc);
|
|
2538
2622
|
};
|
|
2539
2623
|
protoOf($serializer_8).li = function (encoder, value) {
|
|
2540
|
-
return this.
|
|
2624
|
+
return this.s1i(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2541
2625
|
};
|
|
2542
2626
|
protoOf($serializer_8).mi = function (decoder) {
|
|
2543
|
-
var tmp0_desc = this.
|
|
2627
|
+
var tmp0_desc = this.r1i_1;
|
|
2544
2628
|
var tmp1_flag = true;
|
|
2545
2629
|
var tmp2_index = 0;
|
|
2546
2630
|
var tmp3_bitMask0 = 0;
|
|
@@ -2582,7 +2666,7 @@
|
|
|
2582
2666
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2583
2667
|
};
|
|
2584
2668
|
protoOf($serializer_8).ki = function () {
|
|
2585
|
-
return this.
|
|
2669
|
+
return this.r1i_1;
|
|
2586
2670
|
};
|
|
2587
2671
|
protoOf($serializer_8).ts = function () {
|
|
2588
2672
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2598,17 +2682,17 @@
|
|
|
2598
2682
|
}
|
|
2599
2683
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2600
2684
|
if (!(4 === (4 & seen0))) {
|
|
2601
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().
|
|
2685
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().r1i_1);
|
|
2602
2686
|
}
|
|
2603
2687
|
if (0 === (seen0 & 1))
|
|
2604
|
-
$this.
|
|
2688
|
+
$this.t1i_1 = null;
|
|
2605
2689
|
else
|
|
2606
|
-
$this.
|
|
2690
|
+
$this.t1i_1 = amount;
|
|
2607
2691
|
if (0 === (seen0 & 2))
|
|
2608
|
-
$this.
|
|
2692
|
+
$this.u1i_1 = null;
|
|
2609
2693
|
else
|
|
2610
|
-
$this.
|
|
2611
|
-
$this.
|
|
2694
|
+
$this.u1i_1 = text;
|
|
2695
|
+
$this.v1i_1 = unit;
|
|
2612
2696
|
return $this;
|
|
2613
2697
|
}
|
|
2614
2698
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2617,12 +2701,12 @@
|
|
|
2617
2701
|
function Serves() {
|
|
2618
2702
|
}
|
|
2619
2703
|
protoOf(Serves).toString = function () {
|
|
2620
|
-
return 'Serves(amount=' + toString(this.
|
|
2704
|
+
return 'Serves(amount=' + toString(this.t1i_1) + ', text=' + this.u1i_1 + ', unit=' + this.v1i_1 + ')';
|
|
2621
2705
|
};
|
|
2622
2706
|
protoOf(Serves).hashCode = function () {
|
|
2623
|
-
var result = this.
|
|
2624
|
-
result = imul(result, 31) + (this.
|
|
2625
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2707
|
+
var result = this.t1i_1 == null ? 0 : this.t1i_1.hashCode();
|
|
2708
|
+
result = imul(result, 31) + (this.u1i_1 == null ? 0 : getStringHashCode(this.u1i_1)) | 0;
|
|
2709
|
+
result = imul(result, 31) + getStringHashCode(this.v1i_1) | 0;
|
|
2626
2710
|
return result;
|
|
2627
2711
|
};
|
|
2628
2712
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2630,11 +2714,11 @@
|
|
|
2630
2714
|
return true;
|
|
2631
2715
|
if (!(other instanceof Serves))
|
|
2632
2716
|
return false;
|
|
2633
|
-
if (!equals(this.
|
|
2717
|
+
if (!equals(this.t1i_1, other.t1i_1))
|
|
2634
2718
|
return false;
|
|
2635
|
-
if (!(this.
|
|
2719
|
+
if (!(this.u1i_1 == other.u1i_1))
|
|
2636
2720
|
return false;
|
|
2637
|
-
if (!(this.
|
|
2721
|
+
if (!(this.v1i_1 === other.v1i_1))
|
|
2638
2722
|
return false;
|
|
2639
2723
|
return true;
|
|
2640
2724
|
};
|
|
@@ -2650,27 +2734,27 @@
|
|
|
2650
2734
|
tmp0_serialDesc.rs('durationInMins', true);
|
|
2651
2735
|
tmp0_serialDesc.rs('qualifier', true);
|
|
2652
2736
|
tmp0_serialDesc.rs('text', true);
|
|
2653
|
-
this.
|
|
2737
|
+
this.w1i_1 = tmp0_serialDesc;
|
|
2654
2738
|
}
|
|
2655
|
-
protoOf($serializer_9).
|
|
2656
|
-
var tmp0_desc = this.
|
|
2739
|
+
protoOf($serializer_9).x1i = function (encoder, value) {
|
|
2740
|
+
var tmp0_desc = this.w1i_1;
|
|
2657
2741
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2658
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2659
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2742
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.y1i_1 == null)) {
|
|
2743
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.y1i_1);
|
|
2660
2744
|
}
|
|
2661
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2662
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2745
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.z1i_1 == null)) {
|
|
2746
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.z1i_1);
|
|
2663
2747
|
}
|
|
2664
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
2665
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2748
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.a1j_1 == null)) {
|
|
2749
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.a1j_1);
|
|
2666
2750
|
}
|
|
2667
2751
|
tmp1_output.jl(tmp0_desc);
|
|
2668
2752
|
};
|
|
2669
2753
|
protoOf($serializer_9).li = function (encoder, value) {
|
|
2670
|
-
return this.
|
|
2754
|
+
return this.x1i(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2671
2755
|
};
|
|
2672
2756
|
protoOf($serializer_9).mi = function (decoder) {
|
|
2673
|
-
var tmp0_desc = this.
|
|
2757
|
+
var tmp0_desc = this.w1i_1;
|
|
2674
2758
|
var tmp1_flag = true;
|
|
2675
2759
|
var tmp2_index = 0;
|
|
2676
2760
|
var tmp3_bitMask0 = 0;
|
|
@@ -2712,7 +2796,7 @@
|
|
|
2712
2796
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2713
2797
|
};
|
|
2714
2798
|
protoOf($serializer_9).ki = function () {
|
|
2715
|
-
return this.
|
|
2799
|
+
return this.w1i_1;
|
|
2716
2800
|
};
|
|
2717
2801
|
protoOf($serializer_9).ts = function () {
|
|
2718
2802
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2728,20 +2812,20 @@
|
|
|
2728
2812
|
}
|
|
2729
2813
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2730
2814
|
if (!(0 === (0 & seen0))) {
|
|
2731
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2815
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().w1i_1);
|
|
2732
2816
|
}
|
|
2733
2817
|
if (0 === (seen0 & 1))
|
|
2734
|
-
$this.
|
|
2818
|
+
$this.y1i_1 = null;
|
|
2735
2819
|
else
|
|
2736
|
-
$this.
|
|
2820
|
+
$this.y1i_1 = durationInMins;
|
|
2737
2821
|
if (0 === (seen0 & 2))
|
|
2738
|
-
$this.
|
|
2822
|
+
$this.z1i_1 = null;
|
|
2739
2823
|
else
|
|
2740
|
-
$this.
|
|
2824
|
+
$this.z1i_1 = qualifier;
|
|
2741
2825
|
if (0 === (seen0 & 4))
|
|
2742
|
-
$this.
|
|
2826
|
+
$this.a1j_1 = null;
|
|
2743
2827
|
else
|
|
2744
|
-
$this.
|
|
2828
|
+
$this.a1j_1 = text;
|
|
2745
2829
|
return $this;
|
|
2746
2830
|
}
|
|
2747
2831
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2751,17 +2835,17 @@
|
|
|
2751
2835
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2752
2836
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2753
2837
|
text = text === VOID ? null : text;
|
|
2754
|
-
this.
|
|
2755
|
-
this.
|
|
2756
|
-
this.
|
|
2838
|
+
this.y1i_1 = durationInMins;
|
|
2839
|
+
this.z1i_1 = qualifier;
|
|
2840
|
+
this.a1j_1 = text;
|
|
2757
2841
|
}
|
|
2758
2842
|
protoOf(Timing).toString = function () {
|
|
2759
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2843
|
+
return 'Timing(durationInMins=' + toString(this.y1i_1) + ', qualifier=' + this.z1i_1 + ', text=' + this.a1j_1 + ')';
|
|
2760
2844
|
};
|
|
2761
2845
|
protoOf(Timing).hashCode = function () {
|
|
2762
|
-
var result = this.
|
|
2763
|
-
result = imul(result, 31) + (this.y1i_1 == null ? 0 : getStringHashCode(this.y1i_1)) | 0;
|
|
2846
|
+
var result = this.y1i_1 == null ? 0 : this.y1i_1.hashCode();
|
|
2764
2847
|
result = imul(result, 31) + (this.z1i_1 == null ? 0 : getStringHashCode(this.z1i_1)) | 0;
|
|
2848
|
+
result = imul(result, 31) + (this.a1j_1 == null ? 0 : getStringHashCode(this.a1j_1)) | 0;
|
|
2765
2849
|
return result;
|
|
2766
2850
|
};
|
|
2767
2851
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2769,29 +2853,29 @@
|
|
|
2769
2853
|
return true;
|
|
2770
2854
|
if (!(other instanceof Timing))
|
|
2771
2855
|
return false;
|
|
2772
|
-
if (!equals(this.
|
|
2773
|
-
return false;
|
|
2774
|
-
if (!(this.y1i_1 == other.y1i_1))
|
|
2856
|
+
if (!equals(this.y1i_1, other.y1i_1))
|
|
2775
2857
|
return false;
|
|
2776
2858
|
if (!(this.z1i_1 == other.z1i_1))
|
|
2777
2859
|
return false;
|
|
2860
|
+
if (!(this.a1j_1 == other.a1j_1))
|
|
2861
|
+
return false;
|
|
2778
2862
|
return true;
|
|
2779
2863
|
};
|
|
2780
2864
|
function ParsedTemplate(elements) {
|
|
2781
|
-
this.
|
|
2865
|
+
this.i1f_1 = elements;
|
|
2782
2866
|
}
|
|
2783
2867
|
protoOf(ParsedTemplate).toString = function () {
|
|
2784
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
2868
|
+
return 'ParsedTemplate(elements=' + toString_0(this.i1f_1) + ')';
|
|
2785
2869
|
};
|
|
2786
2870
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
2787
|
-
return hashCode(this.
|
|
2871
|
+
return hashCode(this.i1f_1);
|
|
2788
2872
|
};
|
|
2789
2873
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
2790
2874
|
if (this === other)
|
|
2791
2875
|
return true;
|
|
2792
2876
|
if (!(other instanceof ParsedTemplate))
|
|
2793
2877
|
return false;
|
|
2794
|
-
if (!equals(this.
|
|
2878
|
+
if (!equals(this.i1f_1, other.i1f_1))
|
|
2795
2879
|
return false;
|
|
2796
2880
|
return true;
|
|
2797
2881
|
};
|
|
@@ -2885,12 +2969,12 @@
|
|
|
2885
2969
|
protoOf(TemplateConst).hd = function () {
|
|
2886
2970
|
return this.value;
|
|
2887
2971
|
};
|
|
2888
|
-
protoOf(TemplateConst).
|
|
2972
|
+
protoOf(TemplateConst).b1j = function (value) {
|
|
2889
2973
|
return new TemplateConst(value);
|
|
2890
2974
|
};
|
|
2891
2975
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
2892
2976
|
value = value === VOID ? this.value : value;
|
|
2893
|
-
return $super === VOID ? this.
|
|
2977
|
+
return $super === VOID ? this.b1j(value) : $super.b1j.call(this, value);
|
|
2894
2978
|
};
|
|
2895
2979
|
protoOf(TemplateConst).toString = function () {
|
|
2896
2980
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -2922,10 +3006,10 @@
|
|
|
2922
3006
|
tmp0_serialDesc.rs('scale', true);
|
|
2923
3007
|
tmp0_serialDesc.rs('ingredient', true);
|
|
2924
3008
|
tmp0_serialDesc.rs('usCust', true);
|
|
2925
|
-
this.
|
|
3009
|
+
this.c1j_1 = tmp0_serialDesc;
|
|
2926
3010
|
}
|
|
2927
|
-
protoOf($serializer_10).
|
|
2928
|
-
var tmp0_desc = this.
|
|
3011
|
+
protoOf($serializer_10).d1j = function (encoder, value) {
|
|
3012
|
+
var tmp0_desc = this.c1j_1;
|
|
2929
3013
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2930
3014
|
tmp1_output.tm(tmp0_desc, 0, value.min);
|
|
2931
3015
|
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
@@ -2946,10 +3030,10 @@
|
|
|
2946
3030
|
tmp1_output.jl(tmp0_desc);
|
|
2947
3031
|
};
|
|
2948
3032
|
protoOf($serializer_10).li = function (encoder, value) {
|
|
2949
|
-
return this.
|
|
3033
|
+
return this.d1j(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
2950
3034
|
};
|
|
2951
3035
|
protoOf($serializer_10).mi = function (decoder) {
|
|
2952
|
-
var tmp0_desc = this.
|
|
3036
|
+
var tmp0_desc = this.c1j_1;
|
|
2953
3037
|
var tmp1_flag = true;
|
|
2954
3038
|
var tmp2_index = 0;
|
|
2955
3039
|
var tmp3_bitMask0 = 0;
|
|
@@ -3012,7 +3096,7 @@
|
|
|
3012
3096
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
3013
3097
|
};
|
|
3014
3098
|
protoOf($serializer_10).ki = function () {
|
|
3015
|
-
return this.
|
|
3099
|
+
return this.c1j_1;
|
|
3016
3100
|
};
|
|
3017
3101
|
protoOf($serializer_10).ts = function () {
|
|
3018
3102
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3028,7 +3112,7 @@
|
|
|
3028
3112
|
}
|
|
3029
3113
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, $this) {
|
|
3030
3114
|
if (!(1 === (1 & seen0))) {
|
|
3031
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
3115
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().c1j_1);
|
|
3032
3116
|
}
|
|
3033
3117
|
$this.min = min;
|
|
3034
3118
|
if (0 === (seen0 & 2))
|
|
@@ -3069,22 +3153,22 @@
|
|
|
3069
3153
|
this.ingredient = ingredient;
|
|
3070
3154
|
this.usCust = usCust;
|
|
3071
3155
|
}
|
|
3072
|
-
protoOf(QuantityPlaceholder).
|
|
3156
|
+
protoOf(QuantityPlaceholder).e1j = function () {
|
|
3073
3157
|
return this.min;
|
|
3074
3158
|
};
|
|
3075
|
-
protoOf(QuantityPlaceholder).
|
|
3159
|
+
protoOf(QuantityPlaceholder).f1j = function () {
|
|
3076
3160
|
return this.max;
|
|
3077
3161
|
};
|
|
3078
|
-
protoOf(QuantityPlaceholder).
|
|
3162
|
+
protoOf(QuantityPlaceholder).g1j = function () {
|
|
3079
3163
|
return this.unit;
|
|
3080
3164
|
};
|
|
3081
|
-
protoOf(QuantityPlaceholder).
|
|
3165
|
+
protoOf(QuantityPlaceholder).h1j = function () {
|
|
3082
3166
|
return this.scale;
|
|
3083
3167
|
};
|
|
3084
|
-
protoOf(QuantityPlaceholder).
|
|
3168
|
+
protoOf(QuantityPlaceholder).i1j = function () {
|
|
3085
3169
|
return this.ingredient;
|
|
3086
3170
|
};
|
|
3087
|
-
protoOf(QuantityPlaceholder).
|
|
3171
|
+
protoOf(QuantityPlaceholder).j1j = function () {
|
|
3088
3172
|
return this.usCust;
|
|
3089
3173
|
};
|
|
3090
3174
|
protoOf(QuantityPlaceholder).hd = function () {
|
|
@@ -3093,19 +3177,19 @@
|
|
|
3093
3177
|
protoOf(QuantityPlaceholder).id = function () {
|
|
3094
3178
|
return this.max;
|
|
3095
3179
|
};
|
|
3096
|
-
protoOf(QuantityPlaceholder).
|
|
3180
|
+
protoOf(QuantityPlaceholder).k1j = function () {
|
|
3097
3181
|
return this.unit;
|
|
3098
3182
|
};
|
|
3099
|
-
protoOf(QuantityPlaceholder).
|
|
3183
|
+
protoOf(QuantityPlaceholder).l1j = function () {
|
|
3100
3184
|
return this.scale;
|
|
3101
3185
|
};
|
|
3102
|
-
protoOf(QuantityPlaceholder).
|
|
3186
|
+
protoOf(QuantityPlaceholder).m1j = function () {
|
|
3103
3187
|
return this.ingredient;
|
|
3104
3188
|
};
|
|
3105
|
-
protoOf(QuantityPlaceholder).
|
|
3189
|
+
protoOf(QuantityPlaceholder).n1j = function () {
|
|
3106
3190
|
return this.usCust;
|
|
3107
3191
|
};
|
|
3108
|
-
protoOf(QuantityPlaceholder).
|
|
3192
|
+
protoOf(QuantityPlaceholder).o1j = function (min, max, unit, scale, ingredient, usCust) {
|
|
3109
3193
|
return new QuantityPlaceholder(min, max, unit, scale, ingredient, usCust);
|
|
3110
3194
|
};
|
|
3111
3195
|
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, ingredient, usCust, $super) {
|
|
@@ -3115,7 +3199,7 @@
|
|
|
3115
3199
|
scale = scale === VOID ? this.scale : scale;
|
|
3116
3200
|
ingredient = ingredient === VOID ? this.ingredient : ingredient;
|
|
3117
3201
|
usCust = usCust === VOID ? this.usCust : usCust;
|
|
3118
|
-
return $super === VOID ? this.
|
|
3202
|
+
return $super === VOID ? this.o1j(min, max, unit, scale, ingredient, usCust) : $super.o1j.call(this, min, max, unit, scale, ingredient, usCust);
|
|
3119
3203
|
};
|
|
3120
3204
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
3121
3205
|
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ', ingredient=' + this.ingredient + ', usCust=' + this.usCust + ')';
|
|
@@ -3161,10 +3245,10 @@
|
|
|
3161
3245
|
tmp0_serialDesc.rs('temperatureFanC', true);
|
|
3162
3246
|
tmp0_serialDesc.rs('temperatureF', true);
|
|
3163
3247
|
tmp0_serialDesc.rs('gasMark', true);
|
|
3164
|
-
this.
|
|
3248
|
+
this.p1j_1 = tmp0_serialDesc;
|
|
3165
3249
|
}
|
|
3166
|
-
protoOf($serializer_11).
|
|
3167
|
-
var tmp0_desc = this.
|
|
3250
|
+
protoOf($serializer_11).q1j = function (encoder, value) {
|
|
3251
|
+
var tmp0_desc = this.p1j_1;
|
|
3168
3252
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
3169
3253
|
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
3170
3254
|
tmp1_output.an(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
@@ -3181,10 +3265,10 @@
|
|
|
3181
3265
|
tmp1_output.jl(tmp0_desc);
|
|
3182
3266
|
};
|
|
3183
3267
|
protoOf($serializer_11).li = function (encoder, value) {
|
|
3184
|
-
return this.
|
|
3268
|
+
return this.q1j(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
3185
3269
|
};
|
|
3186
3270
|
protoOf($serializer_11).mi = function (decoder) {
|
|
3187
|
-
var tmp0_desc = this.
|
|
3271
|
+
var tmp0_desc = this.p1j_1;
|
|
3188
3272
|
var tmp1_flag = true;
|
|
3189
3273
|
var tmp2_index = 0;
|
|
3190
3274
|
var tmp3_bitMask0 = 0;
|
|
@@ -3233,7 +3317,7 @@
|
|
|
3233
3317
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3234
3318
|
};
|
|
3235
3319
|
protoOf($serializer_11).ki = function () {
|
|
3236
|
-
return this.
|
|
3320
|
+
return this.p1j_1;
|
|
3237
3321
|
};
|
|
3238
3322
|
protoOf($serializer_11).ts = function () {
|
|
3239
3323
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3249,7 +3333,7 @@
|
|
|
3249
3333
|
}
|
|
3250
3334
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
3251
3335
|
if (!(0 === (0 & seen0))) {
|
|
3252
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().
|
|
3336
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().p1j_1);
|
|
3253
3337
|
}
|
|
3254
3338
|
if (0 === (seen0 & 1))
|
|
3255
3339
|
$this.temperatureC = null;
|
|
@@ -3282,16 +3366,16 @@
|
|
|
3282
3366
|
this.temperatureF = temperatureF;
|
|
3283
3367
|
this.gasMark = gasMark;
|
|
3284
3368
|
}
|
|
3285
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3369
|
+
protoOf(OvenTemperaturePlaceholder).r1j = function () {
|
|
3286
3370
|
return this.temperatureC;
|
|
3287
3371
|
};
|
|
3288
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3372
|
+
protoOf(OvenTemperaturePlaceholder).s1j = function () {
|
|
3289
3373
|
return this.temperatureFanC;
|
|
3290
3374
|
};
|
|
3291
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3375
|
+
protoOf(OvenTemperaturePlaceholder).t1j = function () {
|
|
3292
3376
|
return this.temperatureF;
|
|
3293
3377
|
};
|
|
3294
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3378
|
+
protoOf(OvenTemperaturePlaceholder).u1j = function () {
|
|
3295
3379
|
return this.gasMark;
|
|
3296
3380
|
};
|
|
3297
3381
|
protoOf(OvenTemperaturePlaceholder).hd = function () {
|
|
@@ -3300,13 +3384,13 @@
|
|
|
3300
3384
|
protoOf(OvenTemperaturePlaceholder).id = function () {
|
|
3301
3385
|
return this.temperatureFanC;
|
|
3302
3386
|
};
|
|
3303
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3387
|
+
protoOf(OvenTemperaturePlaceholder).k1j = function () {
|
|
3304
3388
|
return this.temperatureF;
|
|
3305
3389
|
};
|
|
3306
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3390
|
+
protoOf(OvenTemperaturePlaceholder).l1j = function () {
|
|
3307
3391
|
return this.gasMark;
|
|
3308
3392
|
};
|
|
3309
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3393
|
+
protoOf(OvenTemperaturePlaceholder).v1j = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3310
3394
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3311
3395
|
};
|
|
3312
3396
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -3314,7 +3398,7 @@
|
|
|
3314
3398
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
3315
3399
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
3316
3400
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
3317
|
-
return $super === VOID ? this.
|
|
3401
|
+
return $super === VOID ? this.v1j(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.v1j.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3318
3402
|
};
|
|
3319
3403
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
3320
3404
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -3359,6 +3443,24 @@
|
|
|
3359
3443
|
function USCustomary_getInstance() {
|
|
3360
3444
|
return USCustomary_instance;
|
|
3361
3445
|
}
|
|
3446
|
+
function USCustomaryWithMetric() {
|
|
3447
|
+
}
|
|
3448
|
+
var USCustomaryWithMetric_instance;
|
|
3449
|
+
function USCustomaryWithMetric_getInstance() {
|
|
3450
|
+
return USCustomaryWithMetric_instance;
|
|
3451
|
+
}
|
|
3452
|
+
function USCustomaryWithImperial() {
|
|
3453
|
+
}
|
|
3454
|
+
var USCustomaryWithImperial_instance;
|
|
3455
|
+
function USCustomaryWithImperial_getInstance() {
|
|
3456
|
+
return USCustomaryWithImperial_instance;
|
|
3457
|
+
}
|
|
3458
|
+
function USCombined() {
|
|
3459
|
+
}
|
|
3460
|
+
var USCombined_instance;
|
|
3461
|
+
function USCombined_getInstance() {
|
|
3462
|
+
return USCombined_instance;
|
|
3463
|
+
}
|
|
3362
3464
|
var UnitType_WEIGHT_instance;
|
|
3363
3465
|
var UnitType_VOLUME_instance;
|
|
3364
3466
|
var UnitType_LENGTH_instance;
|
|
@@ -3375,25 +3477,25 @@
|
|
|
3375
3477
|
Enum.call(this, name, ordinal);
|
|
3376
3478
|
}
|
|
3377
3479
|
function MeasurementUnit(singular, plural, symbol, symbolPlural, unitType, measuringSystems, quantity) {
|
|
3378
|
-
this.
|
|
3379
|
-
this.
|
|
3380
|
-
this.
|
|
3381
|
-
this.
|
|
3382
|
-
this.
|
|
3383
|
-
this.
|
|
3384
|
-
this.
|
|
3480
|
+
this.z1e_1 = singular;
|
|
3481
|
+
this.a1f_1 = plural;
|
|
3482
|
+
this.b1f_1 = symbol;
|
|
3483
|
+
this.c1f_1 = symbolPlural;
|
|
3484
|
+
this.d1f_1 = unitType;
|
|
3485
|
+
this.e1f_1 = measuringSystems;
|
|
3486
|
+
this.f1f_1 = quantity;
|
|
3385
3487
|
}
|
|
3386
3488
|
protoOf(MeasurementUnit).toString = function () {
|
|
3387
|
-
return 'MeasurementUnit(singular=' + this.
|
|
3489
|
+
return 'MeasurementUnit(singular=' + this.z1e_1 + ', plural=' + this.a1f_1 + ', symbol=' + this.b1f_1 + ', symbolPlural=' + this.c1f_1 + ', unitType=' + toString(this.d1f_1) + ', measuringSystems=' + toString_0(this.e1f_1) + ', quantity=' + this.f1f_1 + ')';
|
|
3388
3490
|
};
|
|
3389
3491
|
protoOf(MeasurementUnit).hashCode = function () {
|
|
3390
|
-
var result = getStringHashCode(this.
|
|
3391
|
-
result = imul(result, 31) + getStringHashCode(this.z1e_1) | 0;
|
|
3492
|
+
var result = getStringHashCode(this.z1e_1);
|
|
3392
3493
|
result = imul(result, 31) + getStringHashCode(this.a1f_1) | 0;
|
|
3393
3494
|
result = imul(result, 31) + getStringHashCode(this.b1f_1) | 0;
|
|
3394
|
-
result = imul(result, 31) + (this.c1f_1
|
|
3395
|
-
result = imul(result, 31) +
|
|
3396
|
-
result = imul(result, 31) +
|
|
3495
|
+
result = imul(result, 31) + getStringHashCode(this.c1f_1) | 0;
|
|
3496
|
+
result = imul(result, 31) + (this.d1f_1 == null ? 0 : this.d1f_1.hashCode()) | 0;
|
|
3497
|
+
result = imul(result, 31) + hashCode(this.e1f_1) | 0;
|
|
3498
|
+
result = imul(result, 31) + getNumberHashCode(this.f1f_1) | 0;
|
|
3397
3499
|
return result;
|
|
3398
3500
|
};
|
|
3399
3501
|
protoOf(MeasurementUnit).equals = function (other) {
|
|
@@ -3401,20 +3503,20 @@
|
|
|
3401
3503
|
return true;
|
|
3402
3504
|
if (!(other instanceof MeasurementUnit))
|
|
3403
3505
|
return false;
|
|
3404
|
-
if (!(this.y1e_1 === other.y1e_1))
|
|
3405
|
-
return false;
|
|
3406
3506
|
if (!(this.z1e_1 === other.z1e_1))
|
|
3407
3507
|
return false;
|
|
3408
3508
|
if (!(this.a1f_1 === other.a1f_1))
|
|
3409
3509
|
return false;
|
|
3410
3510
|
if (!(this.b1f_1 === other.b1f_1))
|
|
3411
3511
|
return false;
|
|
3412
|
-
if (!
|
|
3512
|
+
if (!(this.c1f_1 === other.c1f_1))
|
|
3413
3513
|
return false;
|
|
3414
3514
|
if (!equals(this.d1f_1, other.d1f_1))
|
|
3415
3515
|
return false;
|
|
3416
3516
|
if (!equals(this.e1f_1, other.e1f_1))
|
|
3417
3517
|
return false;
|
|
3518
|
+
if (!equals(this.f1f_1, other.f1f_1))
|
|
3519
|
+
return false;
|
|
3418
3520
|
return true;
|
|
3419
3521
|
};
|
|
3420
3522
|
function Units() {
|
|
@@ -3422,20 +3524,20 @@
|
|
|
3422
3524
|
this.n1d_1 = new MeasurementUnit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1.0);
|
|
3423
3525
|
this.o1d_1 = new MeasurementUnit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3424
3526
|
this.p1d_1 = new MeasurementUnit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 28.3495);
|
|
3425
|
-
this.q1d_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 16 * this.p1d_1.
|
|
3527
|
+
this.q1d_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 16 * this.p1d_1.f1f_1);
|
|
3426
3528
|
this.r1d_1 = new MeasurementUnit('millilitre', 'millilitres', 'ml', 'ml', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1.0);
|
|
3427
3529
|
this.s1d_1 = new MeasurementUnit('centilitre', 'centilitres', 'cl', 'cl', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 10.0);
|
|
3428
3530
|
this.t1d_1 = new MeasurementUnit('litre', 'litres', 'l', 'l', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3429
3531
|
this.u1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 5.0);
|
|
3430
3532
|
this.v1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 15.0);
|
|
3431
3533
|
this.w1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4.9289);
|
|
3432
|
-
this.x1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 3 * this.w1d_1.
|
|
3433
|
-
this.y1d_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf(Imperial_instance), 6 * this.w1d_1.
|
|
3434
|
-
this.z1d_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(USCustomary_instance), 48 * this.w1d_1.
|
|
3534
|
+
this.x1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 3 * this.w1d_1.f1f_1);
|
|
3535
|
+
this.y1d_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf(Imperial_instance), 6 * this.w1d_1.f1f_1);
|
|
3536
|
+
this.z1d_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(USCustomary_instance), 48 * this.w1d_1.f1f_1);
|
|
3435
3537
|
this.a1e_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 250.0);
|
|
3436
|
-
this.b1e_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.z1d_1.
|
|
3437
|
-
this.c1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.b1e_1.
|
|
3438
|
-
this.d1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4 * this.c1e_1.
|
|
3538
|
+
this.b1e_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.z1d_1.f1f_1);
|
|
3539
|
+
this.c1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.b1e_1.f1f_1);
|
|
3540
|
+
this.d1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4 * this.c1e_1.f1f_1);
|
|
3439
3541
|
this.e1e_1 = new MeasurementUnit('millimetre', 'millimetres', 'mm', 'mm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 1.0);
|
|
3440
3542
|
this.f1e_1 = new MeasurementUnit('centimetre', 'centimetres', 'cm', 'cm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 10.0);
|
|
3441
3543
|
this.g1e_1 = new MeasurementUnit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), setOf(Imperial_instance), 25.4);
|
|
@@ -3448,7 +3550,7 @@
|
|
|
3448
3550
|
var _iterator__ex2g4s = tmp0.s();
|
|
3449
3551
|
while (_iterator__ex2g4s.t()) {
|
|
3450
3552
|
var element = _iterator__ex2g4s.u();
|
|
3451
|
-
if (element.
|
|
3553
|
+
if (element.e1f_1.z(Metric_instance)) {
|
|
3452
3554
|
destination.w(element);
|
|
3453
3555
|
}
|
|
3454
3556
|
}
|
|
@@ -3460,7 +3562,7 @@
|
|
|
3460
3562
|
var _iterator__ex2g4s_0 = destination.s();
|
|
3461
3563
|
while (_iterator__ex2g4s_0.t()) {
|
|
3462
3564
|
var element_0 = _iterator__ex2g4s_0.u();
|
|
3463
|
-
var tmp$ret$3 = element_0.
|
|
3565
|
+
var tmp$ret$3 = element_0.b1f_1;
|
|
3464
3566
|
destination_0.o2(tmp$ret$3, element_0);
|
|
3465
3567
|
}
|
|
3466
3568
|
var tmp_0 = destination_0;
|
|
@@ -3471,7 +3573,7 @@
|
|
|
3471
3573
|
var _iterator__ex2g4s_1 = destination.s();
|
|
3472
3574
|
while (_iterator__ex2g4s_1.t()) {
|
|
3473
3575
|
var element_1 = _iterator__ex2g4s_1.u();
|
|
3474
|
-
var tmp$ret$6 = element_1.
|
|
3576
|
+
var tmp$ret$6 = element_1.c1f_1;
|
|
3475
3577
|
destination_1.o2(tmp$ret$6, element_1);
|
|
3476
3578
|
}
|
|
3477
3579
|
var tmp_1 = plus(tmp_0, destination_1);
|
|
@@ -3482,7 +3584,7 @@
|
|
|
3482
3584
|
var _iterator__ex2g4s_2 = destination.s();
|
|
3483
3585
|
while (_iterator__ex2g4s_2.t()) {
|
|
3484
3586
|
var element_2 = _iterator__ex2g4s_2.u();
|
|
3485
|
-
var tmp$ret$9 = element_2.
|
|
3587
|
+
var tmp$ret$9 = element_2.z1e_1;
|
|
3486
3588
|
destination_2.o2(tmp$ret$9, element_2);
|
|
3487
3589
|
}
|
|
3488
3590
|
var tmp_2 = plus(tmp_1, destination_2);
|
|
@@ -3493,7 +3595,7 @@
|
|
|
3493
3595
|
var _iterator__ex2g4s_3 = destination.s();
|
|
3494
3596
|
while (_iterator__ex2g4s_3.t()) {
|
|
3495
3597
|
var element_3 = _iterator__ex2g4s_3.u();
|
|
3496
|
-
var tmp$ret$12 = element_3.
|
|
3598
|
+
var tmp$ret$12 = element_3.a1f_1;
|
|
3497
3599
|
destination_3.o2(tmp$ret$12, element_3);
|
|
3498
3600
|
}
|
|
3499
3601
|
tmp.i1e_1 = plus(tmp_2, destination_3);
|
|
@@ -3505,7 +3607,7 @@
|
|
|
3505
3607
|
var _iterator__ex2g4s_4 = tmp0_0.s();
|
|
3506
3608
|
while (_iterator__ex2g4s_4.t()) {
|
|
3507
3609
|
var element_4 = _iterator__ex2g4s_4.u();
|
|
3508
|
-
if (element_4.
|
|
3610
|
+
if (element_4.e1f_1.z(Imperial_instance)) {
|
|
3509
3611
|
destination_4.w(element_4);
|
|
3510
3612
|
}
|
|
3511
3613
|
}
|
|
@@ -3517,7 +3619,7 @@
|
|
|
3517
3619
|
var _iterator__ex2g4s_5 = destination_4.s();
|
|
3518
3620
|
while (_iterator__ex2g4s_5.t()) {
|
|
3519
3621
|
var element_5 = _iterator__ex2g4s_5.u();
|
|
3520
|
-
var tmp$ret$20 = element_5.
|
|
3622
|
+
var tmp$ret$20 = element_5.b1f_1;
|
|
3521
3623
|
destination_5.o2(tmp$ret$20, element_5);
|
|
3522
3624
|
}
|
|
3523
3625
|
var tmp_4 = destination_5;
|
|
@@ -3528,7 +3630,7 @@
|
|
|
3528
3630
|
var _iterator__ex2g4s_6 = destination_4.s();
|
|
3529
3631
|
while (_iterator__ex2g4s_6.t()) {
|
|
3530
3632
|
var element_6 = _iterator__ex2g4s_6.u();
|
|
3531
|
-
var tmp$ret$23 = element_6.
|
|
3633
|
+
var tmp$ret$23 = element_6.c1f_1;
|
|
3532
3634
|
destination_6.o2(tmp$ret$23, element_6);
|
|
3533
3635
|
}
|
|
3534
3636
|
var tmp_5 = plus(tmp_4, destination_6);
|
|
@@ -3539,7 +3641,7 @@
|
|
|
3539
3641
|
var _iterator__ex2g4s_7 = destination_4.s();
|
|
3540
3642
|
while (_iterator__ex2g4s_7.t()) {
|
|
3541
3643
|
var element_7 = _iterator__ex2g4s_7.u();
|
|
3542
|
-
var tmp$ret$26 = element_7.
|
|
3644
|
+
var tmp$ret$26 = element_7.z1e_1;
|
|
3543
3645
|
destination_7.o2(tmp$ret$26, element_7);
|
|
3544
3646
|
}
|
|
3545
3647
|
var tmp_6 = plus(tmp_5, destination_7);
|
|
@@ -3550,7 +3652,7 @@
|
|
|
3550
3652
|
var _iterator__ex2g4s_8 = destination_4.s();
|
|
3551
3653
|
while (_iterator__ex2g4s_8.t()) {
|
|
3552
3654
|
var element_8 = _iterator__ex2g4s_8.u();
|
|
3553
|
-
var tmp$ret$29 = element_8.
|
|
3655
|
+
var tmp$ret$29 = element_8.a1f_1;
|
|
3554
3656
|
destination_8.o2(tmp$ret$29, element_8);
|
|
3555
3657
|
}
|
|
3556
3658
|
tmp_3.j1e_1 = plus(tmp_6, destination_8);
|
|
@@ -3562,7 +3664,7 @@
|
|
|
3562
3664
|
var _iterator__ex2g4s_9 = tmp0_1.s();
|
|
3563
3665
|
while (_iterator__ex2g4s_9.t()) {
|
|
3564
3666
|
var element_9 = _iterator__ex2g4s_9.u();
|
|
3565
|
-
if (element_9.
|
|
3667
|
+
if (element_9.e1f_1.z(USCustomary_instance)) {
|
|
3566
3668
|
destination_9.w(element_9);
|
|
3567
3669
|
}
|
|
3568
3670
|
}
|
|
@@ -3574,7 +3676,7 @@
|
|
|
3574
3676
|
var _iterator__ex2g4s_10 = destination_9.s();
|
|
3575
3677
|
while (_iterator__ex2g4s_10.t()) {
|
|
3576
3678
|
var element_10 = _iterator__ex2g4s_10.u();
|
|
3577
|
-
var tmp$ret$37 = element_10.
|
|
3679
|
+
var tmp$ret$37 = element_10.b1f_1;
|
|
3578
3680
|
destination_10.o2(tmp$ret$37, element_10);
|
|
3579
3681
|
}
|
|
3580
3682
|
var tmp_8 = destination_10;
|
|
@@ -3585,7 +3687,7 @@
|
|
|
3585
3687
|
var _iterator__ex2g4s_11 = destination_9.s();
|
|
3586
3688
|
while (_iterator__ex2g4s_11.t()) {
|
|
3587
3689
|
var element_11 = _iterator__ex2g4s_11.u();
|
|
3588
|
-
var tmp$ret$40 = element_11.
|
|
3690
|
+
var tmp$ret$40 = element_11.c1f_1;
|
|
3589
3691
|
destination_11.o2(tmp$ret$40, element_11);
|
|
3590
3692
|
}
|
|
3591
3693
|
var tmp_9 = plus(tmp_8, destination_11);
|
|
@@ -3596,7 +3698,7 @@
|
|
|
3596
3698
|
var _iterator__ex2g4s_12 = destination_9.s();
|
|
3597
3699
|
while (_iterator__ex2g4s_12.t()) {
|
|
3598
3700
|
var element_12 = _iterator__ex2g4s_12.u();
|
|
3599
|
-
var tmp$ret$43 = element_12.
|
|
3701
|
+
var tmp$ret$43 = element_12.z1e_1;
|
|
3600
3702
|
destination_12.o2(tmp$ret$43, element_12);
|
|
3601
3703
|
}
|
|
3602
3704
|
var tmp_10 = plus(tmp_9, destination_12);
|
|
@@ -3607,7 +3709,7 @@
|
|
|
3607
3709
|
var _iterator__ex2g4s_13 = destination_9.s();
|
|
3608
3710
|
while (_iterator__ex2g4s_13.t()) {
|
|
3609
3711
|
var element_13 = _iterator__ex2g4s_13.u();
|
|
3610
|
-
var tmp$ret$46 = element_13.
|
|
3712
|
+
var tmp$ret$46 = element_13.a1f_1;
|
|
3611
3713
|
destination_13.o2(tmp$ret$46, element_13);
|
|
3612
3714
|
}
|
|
3613
3715
|
tmp_7.k1e_1 = plus(tmp_10, destination_13);
|
|
@@ -3649,23 +3751,24 @@
|
|
|
3649
3751
|
this.s1e_1 = setOf_0([Units_getInstance().u1d_1, Units_getInstance().v1d_1, Units_getInstance().a1e_1]);
|
|
3650
3752
|
this.t1e_1 = listOf([to(0.0, Units_getInstance().n1d_1), to(1000.0, Units_getInstance().o1d_1), to(0.0, Units_getInstance().r1d_1), to(2.5, Units_getInstance().u1d_1), to(15.0, Units_getInstance().v1d_1), to(125.0, Units_getInstance().a1e_1), to(1000.0, Units_getInstance().t1d_1), to(0.0, Units_getInstance().e1e_1), to(10.0, Units_getInstance().f1e_1)]);
|
|
3651
3753
|
this.u1e_1 = listOf([to(0.0, Units_getInstance().n1d_1), to(1000.0, Units_getInstance().o1d_1), to(0.0, Units_getInstance().r1d_1), to(1000.0, Units_getInstance().t1d_1), to(0.0, Units_getInstance().e1e_1), to(10.0, Units_getInstance().f1e_1)]);
|
|
3652
|
-
this.v1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.
|
|
3653
|
-
this.w1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.
|
|
3754
|
+
this.v1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.f1f_1, Units_getInstance().q1d_1), to(0.0, Units_getInstance().w1d_1), to(3.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().x1d_1), to(12.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().z1d_1), to(192 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().c1e_1), to(768.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().d1e_1), to(0.0, Units_getInstance().g1e_1)]);
|
|
3755
|
+
this.w1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.f1f_1, Units_getInstance().q1d_1), to(0.0, Units_getInstance().w1d_1), to(3.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().x1d_1), to(12.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().z1d_1), to(0.0, Units_getInstance().g1e_1)]);
|
|
3756
|
+
this.x1e_1 = listOf([to(0.0, Units_getInstance().p1d_1), to(16.0 * Units_getInstance().p1d_1.f1f_1, Units_getInstance().q1d_1), to(0.0, Units_getInstance().w1d_1), to(3.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().x1d_1), to(6.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().y1d_1), to(768.0 * Units_getInstance().w1d_1.f1f_1, Units_getInstance().d1e_1), to(0.0, Units_getInstance().g1e_1)]);
|
|
3654
3757
|
}
|
|
3655
|
-
protoOf(UnitConversions).
|
|
3758
|
+
protoOf(UnitConversions).w1j = function (amount) {
|
|
3656
3759
|
var tmp;
|
|
3657
3760
|
if (!(amount.c1d_1 == null)) {
|
|
3658
|
-
var tmp_0 = amount.a1d_1 * amount.c1d_1.
|
|
3761
|
+
var tmp_0 = amount.a1d_1 * amount.c1d_1.f1f_1;
|
|
3659
3762
|
var tmp0_safe_receiver = amount.b1d_1;
|
|
3660
3763
|
var tmp_1;
|
|
3661
3764
|
if (tmp0_safe_receiver == null) {
|
|
3662
3765
|
tmp_1 = null;
|
|
3663
3766
|
} else {
|
|
3664
3767
|
// Inline function 'kotlin.let' call
|
|
3665
|
-
tmp_1 = tmp0_safe_receiver * amount.c1d_1.
|
|
3768
|
+
tmp_1 = tmp0_safe_receiver * amount.c1d_1.f1f_1;
|
|
3666
3769
|
}
|
|
3667
3770
|
var tmp_2 = tmp_1;
|
|
3668
|
-
var tmp1_subject = amount.c1d_1.
|
|
3771
|
+
var tmp1_subject = amount.c1d_1.d1f_1;
|
|
3669
3772
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.s2_1;
|
|
3670
3773
|
tmp = amount.f1d(tmp_0, tmp_2, tmp0 === 2 ? Units_getInstance().e1e_1 : tmp0 === 1 ? Units_getInstance().r1d_1 : tmp0 === 0 ? Units_getInstance().n1d_1 : amount.c1d_1);
|
|
3671
3774
|
} else {
|
|
@@ -3673,7 +3776,7 @@
|
|
|
3673
3776
|
}
|
|
3674
3777
|
return tmp;
|
|
3675
3778
|
};
|
|
3676
|
-
protoOf(UnitConversions).
|
|
3779
|
+
protoOf(UnitConversions).y1e = function (amount, target, factor, density) {
|
|
3677
3780
|
var tmp = amount.a1d_1 * factor;
|
|
3678
3781
|
var tmp0_safe_receiver = amount.b1d_1;
|
|
3679
3782
|
var tmp_0;
|
|
@@ -3687,41 +3790,54 @@
|
|
|
3687
3790
|
if (scaledAmount.c1d_1 == null || (equals(target, Metric_instance) && factor === 1.0)) {
|
|
3688
3791
|
return scaledAmount;
|
|
3689
3792
|
}
|
|
3690
|
-
var smallestUnitAmount = this.
|
|
3793
|
+
var smallestUnitAmount = this.w1j(scaledAmount);
|
|
3691
3794
|
var tmp_1;
|
|
3692
3795
|
if (equals(target, Metric_instance)) {
|
|
3693
3796
|
tmp_1 = contains(this.s1e_1, amount.c1d_1) ? this.t1e_1 : this.u1e_1;
|
|
3694
3797
|
} else if (equals(target, USCustomary_instance)) {
|
|
3695
|
-
|
|
3798
|
+
var tmp_2;
|
|
3799
|
+
var tmp_3;
|
|
3800
|
+
if (amount.d1d_1 === true) {
|
|
3801
|
+
var tmp2_safe_receiver = amount.c1d_1;
|
|
3802
|
+
tmp_3 = equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d1f_1, UnitType_WEIGHT_getInstance());
|
|
3803
|
+
} else {
|
|
3804
|
+
tmp_3 = false;
|
|
3805
|
+
}
|
|
3806
|
+
if (tmp_3) {
|
|
3807
|
+
tmp_2 = this.w1e_1;
|
|
3808
|
+
} else {
|
|
3809
|
+
tmp_2 = this.v1e_1;
|
|
3810
|
+
}
|
|
3811
|
+
tmp_1 = tmp_2;
|
|
3696
3812
|
} else if (equals(target, Imperial_instance)) {
|
|
3697
|
-
tmp_1 = this.
|
|
3813
|
+
tmp_1 = this.x1e_1;
|
|
3698
3814
|
} else {
|
|
3699
3815
|
noWhenBranchMatchedException();
|
|
3700
3816
|
}
|
|
3701
3817
|
var ladder = tmp_1;
|
|
3702
|
-
var
|
|
3703
|
-
var
|
|
3704
|
-
if (amount.d1d_1 === true && !(density == null)) {
|
|
3705
|
-
var
|
|
3706
|
-
|
|
3818
|
+
var tmp_4;
|
|
3819
|
+
var tmp_5;
|
|
3820
|
+
if (amount.d1d_1 === true && equals(target, USCustomary_instance) && !(density == null)) {
|
|
3821
|
+
var tmp4_safe_receiver = amount.c1d_1;
|
|
3822
|
+
tmp_5 = equals(tmp4_safe_receiver == null ? null : tmp4_safe_receiver.d1f_1, UnitType_WEIGHT_getInstance());
|
|
3707
3823
|
} else {
|
|
3708
|
-
|
|
3709
|
-
}
|
|
3710
|
-
if (
|
|
3711
|
-
var
|
|
3712
|
-
var
|
|
3713
|
-
var
|
|
3714
|
-
if (
|
|
3715
|
-
|
|
3824
|
+
tmp_5 = false;
|
|
3825
|
+
}
|
|
3826
|
+
if (tmp_5) {
|
|
3827
|
+
var tmp_6 = smallestUnitAmount.a1d_1 / density;
|
|
3828
|
+
var tmp3_safe_receiver = smallestUnitAmount.b1d_1;
|
|
3829
|
+
var tmp_7;
|
|
3830
|
+
if (tmp3_safe_receiver == null) {
|
|
3831
|
+
tmp_7 = null;
|
|
3716
3832
|
} else {
|
|
3717
3833
|
// Inline function 'kotlin.let' call
|
|
3718
|
-
|
|
3834
|
+
tmp_7 = tmp3_safe_receiver / density;
|
|
3719
3835
|
}
|
|
3720
|
-
|
|
3836
|
+
tmp_4 = new Amount(tmp_6, tmp_7, Units_getInstance().r1d_1);
|
|
3721
3837
|
} else {
|
|
3722
|
-
|
|
3838
|
+
tmp_4 = smallestUnitAmount;
|
|
3723
3839
|
}
|
|
3724
|
-
var amountToConvert =
|
|
3840
|
+
var amountToConvert = tmp_4;
|
|
3725
3841
|
// Inline function 'kotlin.collections.filter' call
|
|
3726
3842
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3727
3843
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3729,7 +3845,7 @@
|
|
|
3729
3845
|
while (_iterator__ex2g4s.t()) {
|
|
3730
3846
|
var element = _iterator__ex2g4s.u();
|
|
3731
3847
|
var tmp0_safe_receiver_0 = amountToConvert.c1d_1;
|
|
3732
|
-
if (equals(element.gd_1.
|
|
3848
|
+
if (equals(element.gd_1.d1f_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.d1f_1)) {
|
|
3733
3849
|
destination.w(element);
|
|
3734
3850
|
}
|
|
3735
3851
|
}
|
|
@@ -3746,26 +3862,26 @@
|
|
|
3746
3862
|
}
|
|
3747
3863
|
tmp$ret$8 = null;
|
|
3748
3864
|
}
|
|
3749
|
-
var
|
|
3750
|
-
var mostRelevantUnit =
|
|
3751
|
-
var
|
|
3865
|
+
var tmp5_safe_receiver = tmp$ret$8;
|
|
3866
|
+
var mostRelevantUnit = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.gd_1;
|
|
3867
|
+
var tmp_8;
|
|
3752
3868
|
if (mostRelevantUnit == null) {
|
|
3753
|
-
|
|
3869
|
+
tmp_8 = null;
|
|
3754
3870
|
} else {
|
|
3755
3871
|
// Inline function 'kotlin.let' call
|
|
3756
|
-
var
|
|
3872
|
+
var tmp_9 = amountToConvert.a1d_1 / mostRelevantUnit.f1f_1;
|
|
3757
3873
|
var tmp0_safe_receiver_1 = amountToConvert.b1d_1;
|
|
3758
|
-
var
|
|
3874
|
+
var tmp_10;
|
|
3759
3875
|
if (tmp0_safe_receiver_1 == null) {
|
|
3760
|
-
|
|
3876
|
+
tmp_10 = null;
|
|
3761
3877
|
} else {
|
|
3762
3878
|
// Inline function 'kotlin.let' call
|
|
3763
|
-
|
|
3879
|
+
tmp_10 = tmp0_safe_receiver_1 / mostRelevantUnit.f1f_1;
|
|
3764
3880
|
}
|
|
3765
|
-
|
|
3881
|
+
tmp_8 = new Amount(tmp_9, tmp_10, mostRelevantUnit);
|
|
3766
3882
|
}
|
|
3767
|
-
var
|
|
3768
|
-
return
|
|
3883
|
+
var tmp7_elvis_lhs = tmp_8;
|
|
3884
|
+
return tmp7_elvis_lhs == null ? amountToConvert : tmp7_elvis_lhs;
|
|
3769
3885
|
};
|
|
3770
3886
|
var UnitConversions_instance;
|
|
3771
3887
|
function UnitConversions_getInstance() {
|
|
@@ -3799,6 +3915,15 @@
|
|
|
3799
3915
|
case 'US':
|
|
3800
3916
|
tmp = USCustomary_instance;
|
|
3801
3917
|
break;
|
|
3918
|
+
case 'USWithMetric':
|
|
3919
|
+
tmp = USCustomaryWithMetric_instance;
|
|
3920
|
+
break;
|
|
3921
|
+
case 'USWithImperial':
|
|
3922
|
+
tmp = USCustomaryWithImperial_instance;
|
|
3923
|
+
break;
|
|
3924
|
+
case 'Combined':
|
|
3925
|
+
tmp = USCombined_instance;
|
|
3926
|
+
break;
|
|
3802
3927
|
default:
|
|
3803
3928
|
throw IllegalArgumentException_init_$Create$('Unknown unit: ' + unit);
|
|
3804
3929
|
}
|
|
@@ -3816,12 +3941,12 @@
|
|
|
3816
3941
|
function parseTemplate_0(templateString) {
|
|
3817
3942
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3818
3943
|
var parsedTemplate = parseTemplate(templateString);
|
|
3819
|
-
return parsedTemplate.
|
|
3944
|
+
return parsedTemplate.i1f_1;
|
|
3820
3945
|
}
|
|
3821
3946
|
function renderTemplate(templateElements, session) {
|
|
3822
3947
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3823
3948
|
var template = new ParsedTemplate(templateElements);
|
|
3824
|
-
return session.
|
|
3949
|
+
return session.h1f(template, 1.0, Metric_instance);
|
|
3825
3950
|
}
|
|
3826
3951
|
function createTemplateSession(rawDensityData) {
|
|
3827
3952
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -3869,6 +3994,9 @@
|
|
|
3869
3994
|
Imperial_instance = new Imperial();
|
|
3870
3995
|
Metric_instance = new Metric();
|
|
3871
3996
|
USCustomary_instance = new USCustomary();
|
|
3997
|
+
USCustomaryWithMetric_instance = new USCustomaryWithMetric();
|
|
3998
|
+
USCustomaryWithImperial_instance = new USCustomaryWithImperial();
|
|
3999
|
+
USCombined_instance = new USCombined();
|
|
3872
4000
|
//endregion
|
|
3873
4001
|
//region block: exports
|
|
3874
4002
|
function $jsExportAll$(_) {
|