@cruglobal/godtools-shared 1.2.1-SNAPSHOT.1800 → 1.3.0-SNAPSHOT.1806

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.
@@ -70,16 +70,16 @@
70
70
  //endregion
71
71
  //region block: pre-declaration
72
72
  function toHSL() {
73
- return this.q2x().r2x();
73
+ return this.n2x().o2x();
74
74
  }
75
75
  function toXYZ() {
76
- return this.q2x().x2x();
76
+ return this.n2x().u2x();
77
77
  }
78
78
  function toLAB() {
79
- return this.x2x().y2x();
79
+ return this.u2x().v2x();
80
80
  }
81
81
  function toLCHab() {
82
- return this.y2x().e2y();
82
+ return this.v2x().b2y();
83
83
  }
84
84
  initMetadataForInterface(Color, 'Color');
85
85
  initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
@@ -95,7 +95,7 @@
95
95
  initMetadataForClass(ICtCp, 'ICtCp', VOID, VOID, [Color]);
96
96
  initMetadataForObject(PqNonlinearity, 'PqNonlinearity');
97
97
  function invoke(l, a, b, alpha) {
98
- return this.o30(numberToDouble(l), numberToDouble(a), numberToDouble(b), numberToDouble(alpha));
98
+ return this.l30(numberToDouble(l), numberToDouble(a), numberToDouble(b), numberToDouble(alpha));
99
99
  }
100
100
  initMetadataForInterface(LABColorSpace, 'LABColorSpace', VOID, VOID, [WhitePointColorSpace]);
101
101
  initMetadataForCompanion(Companion_0, VOID, [LABColorSpace]);
@@ -112,7 +112,7 @@
112
112
  initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
113
113
  initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
114
114
  function invoke_0(r, g, b, alpha) {
115
- return this.o30(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
115
+ return this.l30(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
116
116
  }
117
117
  initMetadataForInterface(RGBColorSpace, 'RGBColorSpace', VOID, VOID, [WhitePointColorSpace]);
118
118
  initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
@@ -129,11 +129,11 @@
129
129
  initMetadataForCompanion(Companion_3);
130
130
  initMetadataForClass(RGBInt, 'RGBInt', VOID, VOID, [Color]);
131
131
  function invoke_1(x, y, z, alpha) {
132
- return this.o30(numberToDouble(x), numberToDouble(y), numberToDouble(z), numberToDouble(alpha));
132
+ return this.l30(numberToDouble(x), numberToDouble(y), numberToDouble(z), numberToDouble(alpha));
133
133
  }
134
134
  function invoke$default(x, y, z, alpha, $super) {
135
135
  alpha = alpha === VOID ? 1.0 : alpha;
136
- return $super === VOID ? this.j31(x, y, z, alpha) : invoke_1(x, y, z, alpha);
136
+ return $super === VOID ? this.g31(x, y, z, alpha) : invoke_1(x, y, z, alpha);
137
137
  }
138
138
  initMetadataForInterface(XYZColorSpace, 'XYZColorSpace', VOID, VOID, [WhitePointColorSpace]);
139
139
  initMetadataForCompanion(Companion_4, VOID, [XYZColorSpace]);
@@ -145,15 +145,15 @@
145
145
  function Color() {
146
146
  }
147
147
  function convertTo(_this__u8e3s4, space) {
148
- return space.k2y(_this__u8e3s4);
148
+ return space.h2y(_this__u8e3s4);
149
149
  }
150
150
  function ColorComponentInfo(name, isPolar, min, max) {
151
- this.l2y_1 = name;
152
- this.m2y_1 = isPolar;
153
- this.n2y_1 = min;
154
- this.o2y_1 = max;
151
+ this.i2y_1 = name;
152
+ this.j2y_1 = isPolar;
153
+ this.k2y_1 = min;
154
+ this.l2y_1 = max;
155
155
  // Inline function 'kotlin.require' call
156
- if (!(this.n2y_1 <= this.o2y_1)) {
156
+ if (!(this.k2y_1 <= this.l2y_1)) {
157
157
  var message = 'min must be less than or equal to max';
158
158
  throw IllegalArgumentException_init_$Create$(toString(message));
159
159
  }
@@ -220,7 +220,7 @@
220
220
  var _iterator__ex2g4s = tmp0.j();
221
221
  while (_iterator__ex2g4s.k()) {
222
222
  var element = _iterator__ex2g4s.l();
223
- if (equals(element.n1(), _this__u8e3s4.p2x())) {
223
+ if (equals(element.n1(), _this__u8e3s4.m2x())) {
224
224
  tmp$ret$1 = element;
225
225
  break $l$block;
226
226
  }
@@ -241,17 +241,17 @@
241
241
  if (tmp2_elvis_lhs == null) {
242
242
  var tmp_1;
243
243
  if (_this__u8e3s4 instanceof RGB) {
244
- var tmp4_subject = _this__u8e3s4.w2x_1;
245
- tmp_1 = equals(tmp4_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().p2z_1) ? renderFn(_this__u8e3s4, 'display-p3', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().l2z_1) ? renderFn(_this__u8e3s4, 'a98-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().q2z_1) ? renderFn(_this__u8e3s4, 'prophoto-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().m2z_1) ? renderFn(_this__u8e3s4, 'rec2020', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().g2z_1) ? renderFn(_this__u8e3s4, 'srgb-linear', unitsPercent, alphaPercent, renderAlpha) : null;
244
+ var tmp4_subject = _this__u8e3s4.t2x_1;
245
+ tmp_1 = equals(tmp4_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().m2z_1) ? renderFn(_this__u8e3s4, 'display-p3', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().i2z_1) ? renderFn(_this__u8e3s4, 'a98-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().n2z_1) ? renderFn(_this__u8e3s4, 'prophoto-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().j2z_1) ? renderFn(_this__u8e3s4, 'rec2020', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().d2z_1) ? renderFn(_this__u8e3s4, 'srgb-linear', unitsPercent, alphaPercent, renderAlpha) : null;
246
246
  } else {
247
247
  if (_this__u8e3s4 instanceof HSL) {
248
248
  tmp_1 = renderHsl(_this__u8e3s4, legacyFormat, legacyName, hueUnit, alphaPercent, renderAlpha);
249
249
  } else {
250
250
  if (_this__u8e3s4 instanceof LAB) {
251
- tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().e2z_1), alphaPercent, renderAlpha);
251
+ tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().b2z_1), alphaPercent, renderAlpha);
252
252
  } else {
253
253
  if (_this__u8e3s4 instanceof LCHab) {
254
- tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().c2z_1), hueUnit, alphaPercent, renderAlpha);
254
+ tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().z2y_1), hueUnit, alphaPercent, renderAlpha);
255
255
  } else {
256
256
  if (_this__u8e3s4 instanceof HWB) {
257
257
  tmp_1 = renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
@@ -263,7 +263,7 @@
263
263
  tmp_1 = renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
264
264
  } else {
265
265
  if (_this__u8e3s4 instanceof XYZ) {
266
- tmp_1 = _this__u8e3s4.d2y_1.p2y().equals(Illuminant_getInstance().y2y_1) ? renderFn(_this__u8e3s4, 'xyz-d65', unitsPercent, alphaPercent, renderAlpha) : renderFn(_this__u8e3s4.s2y(XYZColorSpaces_getInstance().r2y_1), 'xyz', unitsPercent, alphaPercent, renderAlpha);
266
+ tmp_1 = _this__u8e3s4.a2y_1.m2y().equals(Illuminant_getInstance().v2y_1) ? renderFn(_this__u8e3s4, 'xyz-d65', unitsPercent, alphaPercent, renderAlpha) : renderFn(_this__u8e3s4.p2y(XYZColorSpaces_getInstance().o2y_1), 'xyz', unitsPercent, alphaPercent, renderAlpha);
267
267
  } else {
268
268
  tmp_1 = null;
269
269
  }
@@ -292,32 +292,32 @@
292
292
  return this_0.toString();
293
293
  }
294
294
  function get_dashName(_this__u8e3s4) {
295
- var tmp0 = _this__u8e3s4.p2x().w1();
295
+ var tmp0 = _this__u8e3s4.m2x().w1();
296
296
  // Inline function 'kotlin.text.replace' call
297
297
  // Inline function 'kotlin.text.lowercase' call
298
298
  // Inline function 'kotlin.js.asDynamic' call
299
299
  return '--' + Regex_init_$Create$('\\W').rb(tmp0, '-').toLowerCase();
300
300
  }
301
301
  function renderSRGB(_this__u8e3s4, commas, namedRgba, rgbPercent, alphaPercent, renderAlpha) {
302
- return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.s2x_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_r__impl__dulq0e(_this__u8e3s4.r2z())), rgbPercent ? render(_this__u8e3s4.t2x_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_g__impl__o93c71(_this__u8e3s4.r2z())), rgbPercent ? render(_this__u8e3s4.u2x_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_b__impl__m772ua(_this__u8e3s4.r2z()))], alphaPercent, renderAlpha, commas);
302
+ return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.p2x_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_r__impl__dulq0e(_this__u8e3s4.o2z())), rgbPercent ? render(_this__u8e3s4.q2x_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_g__impl__o93c71(_this__u8e3s4.o2z())), rgbPercent ? render(_this__u8e3s4.r2x_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_b__impl__m772ua(_this__u8e3s4.o2z()))], alphaPercent, renderAlpha, commas);
303
303
  }
304
304
  function renderHsl(_this__u8e3s4, commas, namedHsla, hueUnit, alphaPercent, renderAlpha) {
305
- return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.t2z_1, true), render(_this__u8e3s4.u2z_1, true)], alphaPercent, renderAlpha, commas);
305
+ return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.q2z_1, true), render(_this__u8e3s4.r2z_1, true)], alphaPercent, renderAlpha, commas);
306
306
  }
307
307
  function renderLab(_this__u8e3s4, alphaPercent, renderAlpha) {
308
- return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.f2y_1 / 100, true), render(_this__u8e3s4.g2y_1), render(_this__u8e3s4.h2y_1)], alphaPercent, renderAlpha);
308
+ return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.c2y_1 / 100, true), render(_this__u8e3s4.d2y_1), render(_this__u8e3s4.e2y_1)], alphaPercent, renderAlpha);
309
309
  }
310
310
  function renderLCH(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
311
- return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.w2z_1 / 100, true), render(_this__u8e3s4.x2z_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
311
+ return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.t2z_1 / 100, true), render(_this__u8e3s4.u2z_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
312
312
  }
313
313
  function renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
314
- return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.b30_1, true), render(_this__u8e3s4.c30_1, true)], alphaPercent, renderAlpha);
314
+ return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.y2z_1, true), render(_this__u8e3s4.z2z_1, true)], alphaPercent, renderAlpha);
315
315
  }
316
316
  function renderOklab(_this__u8e3s4, alphaPercent, renderAlpha) {
317
- return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.d30_1, true), render(_this__u8e3s4.e30_1), render(_this__u8e3s4.f30_1)], alphaPercent, renderAlpha);
317
+ return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.a30_1, true), render(_this__u8e3s4.b30_1), render(_this__u8e3s4.c30_1)], alphaPercent, renderAlpha);
318
318
  }
319
319
  function renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
320
- return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.g30_1, true), render(_this__u8e3s4.h30_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
320
+ return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.d30_1, true), render(_this__u8e3s4.e30_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
321
321
  }
322
322
  function render(_this__u8e3s4, percent, precision) {
323
323
  percent = percent === VOID ? false : percent;
@@ -344,8 +344,8 @@
344
344
  }
345
345
  function renderAlpha(_this__u8e3s4, commas, renderAlpha, alphaPercent) {
346
346
  var tmp;
347
- if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) || (renderAlpha.equals(RenderCondition_AUTO_getInstance()) && !isNaN_0(_this__u8e3s4.o2x()) && !(_this__u8e3s4.o2x() === 1.0))) {
348
- tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.o2x()), alphaPercent);
347
+ if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) || (renderAlpha.equals(RenderCondition_AUTO_getInstance()) && !isNaN_0(_this__u8e3s4.l2x()) && !(_this__u8e3s4.l2x() === 1.0))) {
348
+ tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.l2x()), alphaPercent);
349
349
  } else {
350
350
  tmp = '';
351
351
  }
@@ -365,16 +365,16 @@
365
365
  }
366
366
  function renderHue(_this__u8e3s4, hueUnit) {
367
367
  var tmp;
368
- if (isNaN_0(_this__u8e3s4.i30())) {
368
+ if (isNaN_0(_this__u8e3s4.f30())) {
369
369
  tmp = 'none';
370
370
  } else {
371
371
  var tmp_0;
372
372
  switch (hueUnit.v1_1) {
373
373
  case 0:
374
- tmp_0 = render(_this__u8e3s4.i30());
374
+ tmp_0 = render(_this__u8e3s4.f30());
375
375
  break;
376
376
  case 1:
377
- tmp_0 = render(_this__u8e3s4.i30()) + 'deg';
377
+ tmp_0 = render(_this__u8e3s4.f30()) + 'deg';
378
378
  break;
379
379
  case 2:
380
380
  tmp_0 = render(hueAsRad(_this__u8e3s4)) + 'rad';
@@ -411,27 +411,27 @@
411
411
  return AngleUnit_AUTO_instance;
412
412
  }
413
413
  function hueOr(_this__u8e3s4, whenNaN) {
414
- return isNaN_0(_this__u8e3s4.i30()) ? numberToDouble(whenNaN) : _this__u8e3s4.i30();
414
+ return isNaN_0(_this__u8e3s4.f30()) ? numberToDouble(whenNaN) : _this__u8e3s4.f30();
415
415
  }
416
416
  function hueAsRad(_this__u8e3s4) {
417
- return degToRad(_this__u8e3s4.i30());
417
+ return degToRad(_this__u8e3s4.f30());
418
418
  }
419
419
  function hueAsGrad(_this__u8e3s4) {
420
- return degToGrad(_this__u8e3s4.i30());
420
+ return degToGrad(_this__u8e3s4.f30());
421
421
  }
422
422
  function hueAsTurns(_this__u8e3s4) {
423
- return degToTurns(_this__u8e3s4.i30());
423
+ return degToTurns(_this__u8e3s4.f30());
424
424
  }
425
425
  function WhitePoint(name, chromaticity) {
426
- this.j30_1 = name;
427
- this.k30_1 = chromaticity;
426
+ this.g30_1 = name;
427
+ this.h30_1 = chromaticity;
428
428
  }
429
429
  protoOf(WhitePoint).toString = function () {
430
- return this.j30_1;
430
+ return this.g30_1;
431
431
  };
432
432
  protoOf(WhitePoint).hashCode = function () {
433
- var result = getStringHashCode(this.j30_1);
434
- result = imul(result, 31) + this.k30_1.hashCode() | 0;
433
+ var result = getStringHashCode(this.g30_1);
434
+ result = imul(result, 31) + this.h30_1.hashCode() | 0;
435
435
  return result;
436
436
  };
437
437
  protoOf(WhitePoint).equals = function (other) {
@@ -440,22 +440,22 @@
440
440
  if (!(other instanceof WhitePoint))
441
441
  return false;
442
442
  var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
443
- if (!(this.j30_1 === tmp0_other_with_cast.j30_1))
443
+ if (!(this.g30_1 === tmp0_other_with_cast.g30_1))
444
444
  return false;
445
- if (!this.k30_1.equals(tmp0_other_with_cast.k30_1))
445
+ if (!this.h30_1.equals(tmp0_other_with_cast.h30_1))
446
446
  return false;
447
447
  return true;
448
448
  };
449
449
  function Illuminant() {
450
450
  Illuminant_instance = this;
451
- this.t2y_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
452
- this.u2y_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
453
- this.v2y_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
454
- this.w2y_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
455
- this.x2y_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
456
- this.y2y_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
457
- this.z2y_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
458
- this.a2z_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
451
+ this.q2y_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
452
+ this.r2y_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
453
+ this.s2y_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
454
+ this.t2y_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
455
+ this.u2y_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
456
+ this.v2y_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
457
+ this.w2y_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
458
+ this.x2y_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
459
459
  }
460
460
  var Illuminant_instance;
461
461
  function Illuminant_getInstance() {
@@ -607,22 +607,22 @@
607
607
  function Matrix__equals_impl_g5p8p9($this, other) {
608
608
  if (!(other instanceof Matrix))
609
609
  return false;
610
- var tmp0_other_with_cast = other instanceof Matrix ? other.l30_1 : THROW_CCE();
610
+ var tmp0_other_with_cast = other instanceof Matrix ? other.i30_1 : THROW_CCE();
611
611
  if (!equals($this, tmp0_other_with_cast))
612
612
  return false;
613
613
  return true;
614
614
  }
615
615
  function Matrix(rowMajor) {
616
- this.l30_1 = rowMajor;
616
+ this.i30_1 = rowMajor;
617
617
  }
618
618
  protoOf(Matrix).toString = function () {
619
- return Matrix__toString_impl_l0abk0(this.l30_1);
619
+ return Matrix__toString_impl_l0abk0(this.i30_1);
620
620
  };
621
621
  protoOf(Matrix).hashCode = function () {
622
- return Matrix__hashCode_impl_s9ntm9(this.l30_1);
622
+ return Matrix__hashCode_impl_s9ntm9(this.i30_1);
623
623
  };
624
624
  protoOf(Matrix).equals = function (other) {
625
- return Matrix__equals_impl_g5p8p9(this.l30_1, other);
625
+ return Matrix__equals_impl_g5p8p9(this.i30_1, other);
626
626
  };
627
627
  function inverse(_this__u8e3s4, inPlace) {
628
628
  inPlace = inPlace === VOID ? false : inPlace;
@@ -703,13 +703,13 @@
703
703
  }
704
704
  function Companion() {
705
705
  Companion_instance = this;
706
- this.m30_1 = polarComponentInfo('HSL', 0.0, 1.0);
706
+ this.j30_1 = polarComponentInfo('HSL', 0.0, 1.0);
707
707
  }
708
708
  protoOf(Companion).w1 = function () {
709
709
  return 'HSL';
710
710
  };
711
- protoOf(Companion).k2y = function (color) {
712
- return color.r2x();
711
+ protoOf(Companion).h2y = function (color) {
712
+ return color.o2x();
713
713
  };
714
714
  var Companion_instance;
715
715
  function Companion_getInstance() {
@@ -731,53 +731,53 @@
731
731
  function HSL(h, s, l, alpha) {
732
732
  Companion_getInstance();
733
733
  alpha = alpha === VOID ? 1.0 : alpha;
734
- this.s2z_1 = h;
735
- this.t2z_1 = s;
736
- this.u2z_1 = l;
737
- this.v2z_1 = alpha;
734
+ this.p2z_1 = h;
735
+ this.q2z_1 = s;
736
+ this.r2z_1 = l;
737
+ this.s2z_1 = alpha;
738
738
  }
739
- protoOf(HSL).i30 = function () {
740
- return this.s2z_1;
739
+ protoOf(HSL).f30 = function () {
740
+ return this.p2z_1;
741
741
  };
742
- protoOf(HSL).o2x = function () {
743
- return this.v2z_1;
742
+ protoOf(HSL).l2x = function () {
743
+ return this.s2z_1;
744
744
  };
745
- protoOf(HSL).p2x = function () {
745
+ protoOf(HSL).m2x = function () {
746
746
  return Companion_getInstance();
747
747
  };
748
- protoOf(HSL).q2x = function () {
749
- if (this.t2z_1 < 1.0E-7)
750
- return Companion_getInstance_2().o30(this.u2z_1, this.u2z_1, this.u2z_1, this.v2z_1);
748
+ protoOf(HSL).n2x = function () {
749
+ if (this.q2z_1 < 1.0E-7)
750
+ return Companion_getInstance_2().l30(this.r2z_1, this.r2z_1, this.r2z_1, this.s2z_1);
751
751
  var h = normalizeDeg_0(hueOr(this, 0)) / 30.0;
752
- var s = this.t2z_1;
753
- var l = this.u2z_1;
754
- return SRGB_getInstance().o30(toSRGB$f(h, s, l, 0), toSRGB$f(h, s, l, 8), toSRGB$f(h, s, l, 4), this.v2z_1);
752
+ var s = this.q2z_1;
753
+ var l = this.r2z_1;
754
+ return SRGB_getInstance().l30(toSRGB$f(h, s, l, 0), toSRGB$f(h, s, l, 8), toSRGB$f(h, s, l, 4), this.s2z_1);
755
755
  };
756
- protoOf(HSL).r2x = function () {
756
+ protoOf(HSL).o2x = function () {
757
757
  return this;
758
758
  };
759
759
  protoOf(HSL).a5 = function () {
760
760
  // Inline function 'kotlin.floatArrayOf' call
761
- return new Float32Array([this.s2z_1, this.t2z_1, this.u2z_1, this.v2z_1]);
761
+ return new Float32Array([this.p2z_1, this.q2z_1, this.r2z_1, this.s2z_1]);
762
762
  };
763
- protoOf(HSL).q30 = function (h, s, l, alpha) {
763
+ protoOf(HSL).n30 = function (h, s, l, alpha) {
764
764
  return new HSL(h, s, l, alpha);
765
765
  };
766
- protoOf(HSL).r30 = function (h, s, l, alpha, $super) {
767
- h = h === VOID ? this.s2z_1 : h;
768
- s = s === VOID ? this.t2z_1 : s;
769
- l = l === VOID ? this.u2z_1 : l;
770
- alpha = alpha === VOID ? this.v2z_1 : alpha;
771
- return $super === VOID ? this.q30(h, s, l, alpha) : $super.q30.call(this, h, s, l, alpha);
766
+ protoOf(HSL).o30 = function (h, s, l, alpha, $super) {
767
+ h = h === VOID ? this.p2z_1 : h;
768
+ s = s === VOID ? this.q2z_1 : s;
769
+ l = l === VOID ? this.r2z_1 : l;
770
+ alpha = alpha === VOID ? this.s2z_1 : alpha;
771
+ return $super === VOID ? this.n30(h, s, l, alpha) : $super.n30.call(this, h, s, l, alpha);
772
772
  };
773
773
  protoOf(HSL).toString = function () {
774
- return 'HSL(h=' + this.s2z_1 + ', s=' + this.t2z_1 + ', l=' + this.u2z_1 + ', alpha=' + this.v2z_1 + ')';
774
+ return 'HSL(h=' + this.p2z_1 + ', s=' + this.q2z_1 + ', l=' + this.r2z_1 + ', alpha=' + this.s2z_1 + ')';
775
775
  };
776
776
  protoOf(HSL).hashCode = function () {
777
- var result = getNumberHashCode(this.s2z_1);
778
- result = imul(result, 31) + getNumberHashCode(this.t2z_1) | 0;
779
- result = imul(result, 31) + getNumberHashCode(this.u2z_1) | 0;
780
- result = imul(result, 31) + getNumberHashCode(this.v2z_1) | 0;
777
+ var result = getNumberHashCode(this.p2z_1);
778
+ result = imul(result, 31) + getNumberHashCode(this.q2z_1) | 0;
779
+ result = imul(result, 31) + getNumberHashCode(this.r2z_1) | 0;
780
+ result = imul(result, 31) + getNumberHashCode(this.s2z_1) | 0;
781
781
  return result;
782
782
  };
783
783
  protoOf(HSL).equals = function (other) {
@@ -786,13 +786,13 @@
786
786
  if (!(other instanceof HSL))
787
787
  return false;
788
788
  var tmp0_other_with_cast = other instanceof HSL ? other : THROW_CCE();
789
- if (!equals(this.s2z_1, tmp0_other_with_cast.s2z_1))
789
+ if (!equals(this.p2z_1, tmp0_other_with_cast.p2z_1))
790
790
  return false;
791
- if (!equals(this.t2z_1, tmp0_other_with_cast.t2z_1))
791
+ if (!equals(this.q2z_1, tmp0_other_with_cast.q2z_1))
792
792
  return false;
793
- if (!equals(this.u2z_1, tmp0_other_with_cast.u2z_1))
793
+ if (!equals(this.r2z_1, tmp0_other_with_cast.r2z_1))
794
794
  return false;
795
- if (!equals(this.v2z_1, tmp0_other_with_cast.v2z_1))
795
+ if (!equals(this.s2z_1, tmp0_other_with_cast.s2z_1))
796
796
  return false;
797
797
  return true;
798
798
  };
@@ -836,43 +836,43 @@
836
836
  var ICTCP_LMS_TO_XYZ;
837
837
  function ICtCp() {
838
838
  }
839
- protoOf(ICtCp).w30 = function () {
840
- var fo = RGBColorSpaces_getInstance().m2z_1.x30();
839
+ protoOf(ICtCp).t30 = function () {
840
+ var fo = RGBColorSpaces_getInstance().j2z_1.u30();
841
841
  var tmp0 = get_ICTCP_ICTCP_to_LMS();
842
- var tmp1 = this.s30_1;
843
- var tmp2 = this.t30_1;
842
+ var tmp1 = this.p30_1;
843
+ var tmp2 = this.q30_1;
844
844
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
845
- var v2 = this.u30_1;
845
+ var v2 = this.r30_1;
846
846
  var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
847
847
  var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
848
848
  var s = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
849
849
  var tmp0_0 = get_ICTCP_LMS_to_RGB();
850
- var tmp1_0 = PqNonlinearity_instance.g31(tmp4);
851
- var tmp2_0 = PqNonlinearity_instance.g31(tmp5);
850
+ var tmp1_0 = PqNonlinearity_instance.d31(tmp4);
851
+ var tmp2_0 = PqNonlinearity_instance.d31(tmp5);
852
852
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
853
- var v2_0 = PqNonlinearity_instance.g31(s);
853
+ var v2_0 = PqNonlinearity_instance.d31(s);
854
854
  var tmp4_0 = Matrix__get_impl_xogbpk(tmp0_0, 0, 0) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 0) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 0) * v2_0;
855
855
  var tmp5_0 = Matrix__get_impl_xogbpk(tmp0_0, 0, 1) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 1) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 1) * v2_0;
856
856
  var b = Matrix__get_impl_xogbpk(tmp0_0, 0, 2) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 2) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 2) * v2_0;
857
- return RGBColorSpaces_getInstance().m2z_1.o30(fo.h31(tmp4_0), fo.h31(tmp5_0), fo.h31(b), this.v30_1);
857
+ return RGBColorSpaces_getInstance().j2z_1.l30(fo.e31(tmp4_0), fo.e31(tmp5_0), fo.e31(b), this.s30_1);
858
858
  };
859
859
  function PqNonlinearity() {
860
- this.y30_1 = 0.1593017578125;
861
- this.z30_1 = 78.84375;
862
- this.a31_1 = 0.8359375;
863
- this.b31_1 = 18.8515625;
864
- this.c31_1 = 18.6875;
865
- this.d31_1 = 10000.0;
866
- this.e31_1 = 6.277394636015326;
867
- this.f31_1 = 0.012683313515655966;
868
- }
869
- protoOf(PqNonlinearity).g31 = function (x) {
860
+ this.v30_1 = 0.1593017578125;
861
+ this.w30_1 = 78.84375;
862
+ this.x30_1 = 0.8359375;
863
+ this.y30_1 = 18.8515625;
864
+ this.z30_1 = 18.6875;
865
+ this.a31_1 = 10000.0;
866
+ this.b31_1 = 6.277394636015326;
867
+ this.c31_1 = 0.012683313515655966;
868
+ }
869
+ protoOf(PqNonlinearity).d31 = function (x) {
870
870
  var vp = spow(x, 0.012683313515655966);
871
871
  var n = coerceAtLeast(vp - 0.8359375, 0.0);
872
872
  var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
873
873
  return 10000.0 * l;
874
874
  };
875
- protoOf(PqNonlinearity).h31 = function (x) {
875
+ protoOf(PqNonlinearity).e31 = function (x) {
876
876
  var yp = spow_0(x / 10000.0, 0.1593017578125);
877
877
  return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
878
878
  };
@@ -896,28 +896,28 @@
896
896
  }
897
897
  function Companion_0() {
898
898
  Companion_instance_0 = this;
899
- this.i31_1 = LABColorSpaces_getInstance().d2z_1;
899
+ this.f31_1 = LABColorSpaces_getInstance().a2z_1;
900
900
  }
901
901
  protoOf(Companion_0).equals = function (other) {
902
- return equals(LABColorSpaces_getInstance().d2z_1, other);
902
+ return equals(LABColorSpaces_getInstance().a2z_1, other);
903
903
  };
904
904
  protoOf(Companion_0).hashCode = function () {
905
- return hashCode(LABColorSpaces_getInstance().d2z_1);
905
+ return hashCode(LABColorSpaces_getInstance().a2z_1);
906
906
  };
907
- protoOf(Companion_0).o30 = function (l, a, b, alpha) {
908
- return this.i31_1.o30(l, a, b, alpha);
907
+ protoOf(Companion_0).l30 = function (l, a, b, alpha) {
908
+ return this.f31_1.l30(l, a, b, alpha);
909
909
  };
910
- protoOf(Companion_0).j31 = function (l, a, b, alpha) {
911
- return this.i31_1.j31(l, a, b, alpha);
910
+ protoOf(Companion_0).g31 = function (l, a, b, alpha) {
911
+ return this.f31_1.g31(l, a, b, alpha);
912
912
  };
913
- protoOf(Companion_0).p2y = function () {
914
- return this.i31_1.p2y();
913
+ protoOf(Companion_0).m2y = function () {
914
+ return this.f31_1.m2y();
915
915
  };
916
916
  protoOf(Companion_0).w1 = function () {
917
- return this.i31_1.w1();
917
+ return this.f31_1.w1();
918
918
  };
919
- protoOf(Companion_0).k2y = function (color) {
920
- return this.i31_1.k2y(color);
919
+ protoOf(Companion_0).h2y = function (color) {
920
+ return this.f31_1.h2y(color);
921
921
  };
922
922
  var Companion_instance_0;
923
923
  function Companion_getInstance_0() {
@@ -927,34 +927,34 @@
927
927
  }
928
928
  function LAB(l, a, b, alpha, space) {
929
929
  Companion_getInstance_0();
930
- this.f2y_1 = l;
931
- this.g2y_1 = a;
932
- this.h2y_1 = b;
933
- this.i2y_1 = alpha;
934
- this.j2y_1 = space;
935
- }
936
- protoOf(LAB).o2x = function () {
937
- return this.i2y_1;
938
- };
939
- protoOf(LAB).p2x = function () {
940
- return this.j2y_1;
941
- };
942
- protoOf(LAB).q2x = function () {
943
- return this.f2y_1 === 0.0 ? Companion_getInstance_2().o30(0.0, 0.0, 0.0, this.i2y_1) : this.x2x().q2x();
944
- };
945
- protoOf(LAB).x2x = function () {
946
- var xyzSpace = XYZColorSpace_0(this.j2y_1.p2y());
947
- if (this.f2y_1 === 0.0)
948
- return xyzSpace.k31(0.0, 0.0, 0.0);
949
- var fy = (this.f2y_1 + 16) / 116.0;
950
- var fz = fy - this.h2y_1 / 200.0;
951
- var fx = this.g2y_1 / 500.0 + fy;
930
+ this.c2y_1 = l;
931
+ this.d2y_1 = a;
932
+ this.e2y_1 = b;
933
+ this.f2y_1 = alpha;
934
+ this.g2y_1 = space;
935
+ }
936
+ protoOf(LAB).l2x = function () {
937
+ return this.f2y_1;
938
+ };
939
+ protoOf(LAB).m2x = function () {
940
+ return this.g2y_1;
941
+ };
942
+ protoOf(LAB).n2x = function () {
943
+ return this.c2y_1 === 0.0 ? Companion_getInstance_2().l30(0.0, 0.0, 0.0, this.f2y_1) : this.u2x().n2x();
944
+ };
945
+ protoOf(LAB).u2x = function () {
946
+ var xyzSpace = XYZColorSpace_0(this.g2y_1.m2y());
947
+ if (this.c2y_1 === 0.0)
948
+ return xyzSpace.h31(0.0, 0.0, 0.0);
949
+ var fy = (this.c2y_1 + 16) / 116.0;
950
+ var fz = fy - this.e2y_1 / 200.0;
951
+ var fx = this.d2y_1 / 500.0 + fy;
952
952
  var tmp;
953
- if (this.f2y_1 > 8.0) {
953
+ if (this.c2y_1 > 8.0) {
954
954
  // Inline function 'kotlin.math.pow' call
955
955
  tmp = Math.pow(fy, 3);
956
956
  } else {
957
- tmp = this.f2y_1 / 903.2962962962963;
957
+ tmp = this.c2y_1 / 903.2962962962963;
958
958
  }
959
959
  var yr = tmp;
960
960
  // Inline function 'kotlin.math.pow' call
@@ -965,13 +965,13 @@
965
965
  // Inline function 'kotlin.let' call
966
966
  var it_0 = Math.pow(fx, 3);
967
967
  var xr = it_0 > 0.008856451679035631 ? it_0 : (116 * fx - 16) / 903.2962962962963;
968
- var wp = this.j2y_1.p2y().k30_1;
969
- return xyzSpace.j31(xr * wp.o31(), yr * wp.n31_1, zr * wp.p31(), this.i2y_1);
968
+ var wp = this.g2y_1.m2y().h30_1;
969
+ return xyzSpace.g31(xr * wp.l31(), yr * wp.k31_1, zr * wp.m31(), this.f2y_1);
970
970
  };
971
- protoOf(LAB).e2y = function () {
972
- var tmp0 = this.g2y_1;
971
+ protoOf(LAB).b2y = function () {
972
+ var tmp0 = this.d2y_1;
973
973
  // Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
974
- var b = this.h2y_1;
974
+ var b = this.e2y_1;
975
975
  // Inline function 'kotlin.math.sqrt' call
976
976
  var x = tmp0 * tmp0 + b * b;
977
977
  var c = Math.sqrt(x);
@@ -985,24 +985,24 @@
985
985
  }
986
986
  var h = tmp;
987
987
  var h_0 = normalizeDeg_0(h);
988
- return LCHabColorSpace_0(this.j2y_1.p2y()).o30(this.f2y_1, c, h_0, this.i2y_1);
988
+ return LCHabColorSpace_0(this.g2y_1.m2y()).l30(this.c2y_1, c, h_0, this.f2y_1);
989
989
  };
990
- protoOf(LAB).y2x = function () {
990
+ protoOf(LAB).v2x = function () {
991
991
  return this;
992
992
  };
993
993
  protoOf(LAB).a5 = function () {
994
994
  // Inline function 'kotlin.floatArrayOf' call
995
- return new Float32Array([this.f2y_1, this.g2y_1, this.h2y_1, this.i2y_1]);
995
+ return new Float32Array([this.c2y_1, this.d2y_1, this.e2y_1, this.f2y_1]);
996
996
  };
997
997
  protoOf(LAB).toString = function () {
998
- return 'LAB(l=' + this.f2y_1 + ', a=' + this.g2y_1 + ', b=' + this.h2y_1 + ', alpha=' + this.i2y_1 + ', space=' + toString(this.j2y_1) + ')';
998
+ return 'LAB(l=' + this.c2y_1 + ', a=' + this.d2y_1 + ', b=' + this.e2y_1 + ', alpha=' + this.f2y_1 + ', space=' + toString(this.g2y_1) + ')';
999
999
  };
1000
1000
  protoOf(LAB).hashCode = function () {
1001
- var result = getNumberHashCode(this.f2y_1);
1002
- result = imul(result, 31) + getNumberHashCode(this.g2y_1) | 0;
1003
- result = imul(result, 31) + getNumberHashCode(this.h2y_1) | 0;
1004
- result = imul(result, 31) + getNumberHashCode(this.i2y_1) | 0;
1005
- result = imul(result, 31) + hashCode(this.j2y_1) | 0;
1001
+ var result = getNumberHashCode(this.c2y_1);
1002
+ result = imul(result, 31) + getNumberHashCode(this.d2y_1) | 0;
1003
+ result = imul(result, 31) + getNumberHashCode(this.e2y_1) | 0;
1004
+ result = imul(result, 31) + getNumberHashCode(this.f2y_1) | 0;
1005
+ result = imul(result, 31) + hashCode(this.g2y_1) | 0;
1006
1006
  return result;
1007
1007
  };
1008
1008
  protoOf(LAB).equals = function (other) {
@@ -1011,27 +1011,27 @@
1011
1011
  if (!(other instanceof LAB))
1012
1012
  return false;
1013
1013
  var tmp0_other_with_cast = other instanceof LAB ? other : THROW_CCE();
1014
- if (!equals(this.f2y_1, tmp0_other_with_cast.f2y_1))
1014
+ if (!equals(this.c2y_1, tmp0_other_with_cast.c2y_1))
1015
1015
  return false;
1016
- if (!equals(this.g2y_1, tmp0_other_with_cast.g2y_1))
1016
+ if (!equals(this.d2y_1, tmp0_other_with_cast.d2y_1))
1017
1017
  return false;
1018
- if (!equals(this.h2y_1, tmp0_other_with_cast.h2y_1))
1018
+ if (!equals(this.e2y_1, tmp0_other_with_cast.e2y_1))
1019
1019
  return false;
1020
- if (!equals(this.i2y_1, tmp0_other_with_cast.i2y_1))
1020
+ if (!equals(this.f2y_1, tmp0_other_with_cast.f2y_1))
1021
1021
  return false;
1022
- if (!equals(this.j2y_1, tmp0_other_with_cast.j2y_1))
1022
+ if (!equals(this.g2y_1, tmp0_other_with_cast.g2y_1))
1023
1023
  return false;
1024
1024
  return true;
1025
1025
  };
1026
1026
  function LABColorSpace() {
1027
1027
  }
1028
1028
  function LABColorSpace_0(whitePoint) {
1029
- return whitePoint.equals(Illuminant_getInstance().y2y_1) ? LABColorSpaces_getInstance().d2z_1 : whitePoint.equals(Illuminant_getInstance().w2y_1) ? LABColorSpaces_getInstance().e2z_1 : new LABColorSpaceImpl(whitePoint);
1029
+ return whitePoint.equals(Illuminant_getInstance().v2y_1) ? LABColorSpaces_getInstance().a2z_1 : whitePoint.equals(Illuminant_getInstance().t2y_1) ? LABColorSpaces_getInstance().b2z_1 : new LABColorSpaceImpl(whitePoint);
1030
1030
  }
1031
1031
  function LABColorSpaces() {
1032
1032
  LABColorSpaces_instance = this;
1033
- this.d2z_1 = new LABColorSpaceImpl(Illuminant_getInstance().y2y_1);
1034
- this.e2z_1 = new LABColorSpaceImpl(Illuminant_getInstance().w2y_1);
1033
+ this.a2z_1 = new LABColorSpaceImpl(Illuminant_getInstance().v2y_1);
1034
+ this.b2z_1 = new LABColorSpaceImpl(Illuminant_getInstance().t2y_1);
1035
1035
  }
1036
1036
  var LABColorSpaces_instance;
1037
1037
  function LABColorSpaces_getInstance() {
@@ -1040,41 +1040,41 @@
1040
1040
  return LABColorSpaces_instance;
1041
1041
  }
1042
1042
  function LABColorSpaceImpl(whitePoint) {
1043
- this.q31_1 = whitePoint;
1044
- this.r31_1 = threeComponentInfo('L', 0.0, 100.0, 'A', -128.0, 128.0, 'B', -128.0, 128.0);
1043
+ this.n31_1 = whitePoint;
1044
+ this.o31_1 = threeComponentInfo('L', 0.0, 100.0, 'A', -128.0, 128.0, 'B', -128.0, 128.0);
1045
1045
  }
1046
- protoOf(LABColorSpaceImpl).p2y = function () {
1047
- return this.q31_1;
1046
+ protoOf(LABColorSpaceImpl).m2y = function () {
1047
+ return this.n31_1;
1048
1048
  };
1049
1049
  protoOf(LABColorSpaceImpl).w1 = function () {
1050
1050
  return 'LAB';
1051
1051
  };
1052
- protoOf(LABColorSpaceImpl).k2y = function (color) {
1052
+ protoOf(LABColorSpaceImpl).h2y = function (color) {
1053
1053
  // Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
1054
1054
  var tmp;
1055
- var tmp_0 = color.p2x();
1055
+ var tmp_0 = color.m2x();
1056
1056
  var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
1057
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2y();
1058
- if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().y2y_1 : tmp1_elvis_lhs).equals(this.p2y())) {
1059
- tmp = color.y2x();
1057
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2y();
1058
+ if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().v2y_1 : tmp1_elvis_lhs).equals(this.m2y())) {
1059
+ tmp = color.v2x();
1060
1060
  } else {
1061
- tmp = color.x2x().s2y(XYZColorSpace_0(this.p2y())).y2x();
1061
+ tmp = color.u2x().p2y(XYZColorSpace_0(this.m2y())).v2x();
1062
1062
  }
1063
1063
  return tmp;
1064
1064
  };
1065
1065
  protoOf(LABColorSpaceImpl).toString = function () {
1066
- return 'LABColorSpace(' + this.q31_1.toString() + ')';
1066
+ return 'LABColorSpace(' + this.n31_1.toString() + ')';
1067
1067
  };
1068
- protoOf(LABColorSpaceImpl).o30 = function (l, a, b, alpha) {
1068
+ protoOf(LABColorSpaceImpl).l30 = function (l, a, b, alpha) {
1069
1069
  return new LAB(l, a, b, alpha, this);
1070
1070
  };
1071
1071
  protoOf(LABColorSpaceImpl).hashCode = function () {
1072
- return this.q31_1.hashCode();
1072
+ return this.n31_1.hashCode();
1073
1073
  };
1074
1074
  protoOf(LABColorSpaceImpl).equals = function (other) {
1075
1075
  var tmp;
1076
1076
  if (!(other == null) ? isInterface(other, LABColorSpace) : false) {
1077
- tmp = this.q31_1.equals(other.p2y());
1077
+ tmp = this.n31_1.equals(other.m2y());
1078
1078
  } else {
1079
1079
  tmp = false;
1080
1080
  }
@@ -1082,25 +1082,25 @@
1082
1082
  };
1083
1083
  function Companion_1() {
1084
1084
  Companion_instance_1 = this;
1085
- this.s31_1 = LCHabColorSpaces_getInstance().b2z_1;
1085
+ this.p31_1 = LCHabColorSpaces_getInstance().y2y_1;
1086
1086
  }
1087
1087
  protoOf(Companion_1).equals = function (other) {
1088
- return equals(LCHabColorSpaces_getInstance().b2z_1, other);
1088
+ return equals(LCHabColorSpaces_getInstance().y2y_1, other);
1089
1089
  };
1090
1090
  protoOf(Companion_1).hashCode = function () {
1091
- return hashCode(LCHabColorSpaces_getInstance().b2z_1);
1091
+ return hashCode(LCHabColorSpaces_getInstance().y2y_1);
1092
1092
  };
1093
- protoOf(Companion_1).o30 = function (l, c, h, alpha) {
1094
- return this.s31_1.o30(l, c, h, alpha);
1093
+ protoOf(Companion_1).l30 = function (l, c, h, alpha) {
1094
+ return this.p31_1.l30(l, c, h, alpha);
1095
1095
  };
1096
- protoOf(Companion_1).p2y = function () {
1097
- return this.s31_1.p2y();
1096
+ protoOf(Companion_1).m2y = function () {
1097
+ return this.p31_1.m2y();
1098
1098
  };
1099
1099
  protoOf(Companion_1).w1 = function () {
1100
- return this.s31_1.w1();
1100
+ return this.p31_1.w1();
1101
1101
  };
1102
- protoOf(Companion_1).k2y = function (color) {
1103
- return this.s31_1.k2y(color);
1102
+ protoOf(Companion_1).h2y = function (color) {
1103
+ return this.p31_1.h2y(color);
1104
1104
  };
1105
1105
  var Companion_instance_1;
1106
1106
  function Companion_getInstance_1() {
@@ -1110,54 +1110,54 @@
1110
1110
  }
1111
1111
  function LCHab(l, c, h, alpha, space) {
1112
1112
  Companion_getInstance_1();
1113
- this.w2z_1 = l;
1114
- this.x2z_1 = c;
1115
- this.y2z_1 = h;
1116
- this.z2z_1 = alpha;
1117
- this.a30_1 = space;
1113
+ this.t2z_1 = l;
1114
+ this.u2z_1 = c;
1115
+ this.v2z_1 = h;
1116
+ this.w2z_1 = alpha;
1117
+ this.x2z_1 = space;
1118
1118
  }
1119
- protoOf(LCHab).i30 = function () {
1120
- return this.y2z_1;
1119
+ protoOf(LCHab).f30 = function () {
1120
+ return this.v2z_1;
1121
1121
  };
1122
- protoOf(LCHab).o2x = function () {
1123
- return this.z2z_1;
1122
+ protoOf(LCHab).l2x = function () {
1123
+ return this.w2z_1;
1124
1124
  };
1125
- protoOf(LCHab).p2x = function () {
1126
- return this.a30_1;
1125
+ protoOf(LCHab).m2x = function () {
1126
+ return this.x2z_1;
1127
1127
  };
1128
- protoOf(LCHab).q2x = function () {
1129
- return this.y2x().q2x();
1128
+ protoOf(LCHab).n2x = function () {
1129
+ return this.v2x().n2x();
1130
1130
  };
1131
- protoOf(LCHab).x2x = function () {
1132
- return this.y2x().x2x();
1131
+ protoOf(LCHab).u2x = function () {
1132
+ return this.v2x().u2x();
1133
1133
  };
1134
- protoOf(LCHab).y2x = function () {
1135
- var tmp0 = this.x2z_1;
1134
+ protoOf(LCHab).v2x = function () {
1135
+ var tmp0 = this.u2z_1;
1136
1136
  // Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
1137
- var h = this.y2z_1;
1137
+ var h = this.v2z_1;
1138
1138
  var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
1139
1139
  // Inline function 'kotlin.math.cos' call
1140
1140
  var a = tmp0 * Math.cos(hDegrees);
1141
1141
  // Inline function 'kotlin.math.sin' call
1142
1142
  var b = tmp0 * Math.sin(hDegrees);
1143
- return LABColorSpace_0(this.a30_1.p2y()).o30(this.w2z_1, a, b, this.z2z_1);
1143
+ return LABColorSpace_0(this.x2z_1.m2y()).l30(this.t2z_1, a, b, this.w2z_1);
1144
1144
  };
1145
- protoOf(LCHab).e2y = function () {
1145
+ protoOf(LCHab).b2y = function () {
1146
1146
  return this;
1147
1147
  };
1148
1148
  protoOf(LCHab).a5 = function () {
1149
1149
  // Inline function 'kotlin.floatArrayOf' call
1150
- return new Float32Array([this.w2z_1, this.x2z_1, this.y2z_1, this.z2z_1]);
1150
+ return new Float32Array([this.t2z_1, this.u2z_1, this.v2z_1, this.w2z_1]);
1151
1151
  };
1152
1152
  protoOf(LCHab).toString = function () {
1153
- return 'LCHab(l=' + this.w2z_1 + ', c=' + this.x2z_1 + ', h=' + this.y2z_1 + ', alpha=' + this.z2z_1 + ', space=' + toString(this.a30_1) + ')';
1153
+ return 'LCHab(l=' + this.t2z_1 + ', c=' + this.u2z_1 + ', h=' + this.v2z_1 + ', alpha=' + this.w2z_1 + ', space=' + toString(this.x2z_1) + ')';
1154
1154
  };
1155
1155
  protoOf(LCHab).hashCode = function () {
1156
- var result = getNumberHashCode(this.w2z_1);
1157
- result = imul(result, 31) + getNumberHashCode(this.x2z_1) | 0;
1158
- result = imul(result, 31) + getNumberHashCode(this.y2z_1) | 0;
1159
- result = imul(result, 31) + getNumberHashCode(this.z2z_1) | 0;
1160
- result = imul(result, 31) + hashCode(this.a30_1) | 0;
1156
+ var result = getNumberHashCode(this.t2z_1);
1157
+ result = imul(result, 31) + getNumberHashCode(this.u2z_1) | 0;
1158
+ result = imul(result, 31) + getNumberHashCode(this.v2z_1) | 0;
1159
+ result = imul(result, 31) + getNumberHashCode(this.w2z_1) | 0;
1160
+ result = imul(result, 31) + hashCode(this.x2z_1) | 0;
1161
1161
  return result;
1162
1162
  };
1163
1163
  protoOf(LCHab).equals = function (other) {
@@ -1166,27 +1166,27 @@
1166
1166
  if (!(other instanceof LCHab))
1167
1167
  return false;
1168
1168
  var tmp0_other_with_cast = other instanceof LCHab ? other : THROW_CCE();
1169
- if (!equals(this.w2z_1, tmp0_other_with_cast.w2z_1))
1169
+ if (!equals(this.t2z_1, tmp0_other_with_cast.t2z_1))
1170
1170
  return false;
1171
- if (!equals(this.x2z_1, tmp0_other_with_cast.x2z_1))
1171
+ if (!equals(this.u2z_1, tmp0_other_with_cast.u2z_1))
1172
1172
  return false;
1173
- if (!equals(this.y2z_1, tmp0_other_with_cast.y2z_1))
1173
+ if (!equals(this.v2z_1, tmp0_other_with_cast.v2z_1))
1174
1174
  return false;
1175
- if (!equals(this.z2z_1, tmp0_other_with_cast.z2z_1))
1175
+ if (!equals(this.w2z_1, tmp0_other_with_cast.w2z_1))
1176
1176
  return false;
1177
- if (!equals(this.a30_1, tmp0_other_with_cast.a30_1))
1177
+ if (!equals(this.x2z_1, tmp0_other_with_cast.x2z_1))
1178
1178
  return false;
1179
1179
  return true;
1180
1180
  };
1181
1181
  function LCHabColorSpace() {
1182
1182
  }
1183
1183
  function LCHabColorSpace_0(whitePoint) {
1184
- return whitePoint.equals(Illuminant_getInstance().y2y_1) ? LCHabColorSpaces_getInstance().b2z_1 : whitePoint.equals(Illuminant_getInstance().w2y_1) ? LCHabColorSpaces_getInstance().c2z_1 : new LCHabColorSpaceImpl(whitePoint);
1184
+ return whitePoint.equals(Illuminant_getInstance().v2y_1) ? LCHabColorSpaces_getInstance().y2y_1 : whitePoint.equals(Illuminant_getInstance().t2y_1) ? LCHabColorSpaces_getInstance().z2y_1 : new LCHabColorSpaceImpl(whitePoint);
1185
1185
  }
1186
1186
  function LCHabColorSpaces() {
1187
1187
  LCHabColorSpaces_instance = this;
1188
- this.b2z_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().y2y_1);
1189
- this.c2z_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().w2y_1);
1188
+ this.y2y_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().v2y_1);
1189
+ this.z2y_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().t2y_1);
1190
1190
  }
1191
1191
  var LCHabColorSpaces_instance;
1192
1192
  function LCHabColorSpaces_getInstance() {
@@ -1195,41 +1195,41 @@
1195
1195
  return LCHabColorSpaces_instance;
1196
1196
  }
1197
1197
  function LCHabColorSpaceImpl(whitePoint) {
1198
- this.t31_1 = whitePoint;
1199
- this.u31_1 = componentInfoList([new ColorComponentInfo('L', false, 0.0, 100.0), new ColorComponentInfo('C', false, 0.0, 150.0), new ColorComponentInfo('H', true, 0.0, 360.0)]);
1198
+ this.q31_1 = whitePoint;
1199
+ this.r31_1 = componentInfoList([new ColorComponentInfo('L', false, 0.0, 100.0), new ColorComponentInfo('C', false, 0.0, 150.0), new ColorComponentInfo('H', true, 0.0, 360.0)]);
1200
1200
  }
1201
- protoOf(LCHabColorSpaceImpl).p2y = function () {
1202
- return this.t31_1;
1201
+ protoOf(LCHabColorSpaceImpl).m2y = function () {
1202
+ return this.q31_1;
1203
1203
  };
1204
1204
  protoOf(LCHabColorSpaceImpl).w1 = function () {
1205
1205
  return 'LCHab';
1206
1206
  };
1207
- protoOf(LCHabColorSpaceImpl).k2y = function (color) {
1207
+ protoOf(LCHabColorSpaceImpl).h2y = function (color) {
1208
1208
  // Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
1209
1209
  var tmp;
1210
- var tmp_0 = color.p2x();
1210
+ var tmp_0 = color.m2x();
1211
1211
  var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
1212
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2y();
1213
- if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().y2y_1 : tmp1_elvis_lhs).equals(this.p2y())) {
1214
- tmp = color.e2y();
1212
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2y();
1213
+ if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().v2y_1 : tmp1_elvis_lhs).equals(this.m2y())) {
1214
+ tmp = color.b2y();
1215
1215
  } else {
1216
- tmp = color.x2x().s2y(XYZColorSpace_0(this.p2y())).e2y();
1216
+ tmp = color.u2x().p2y(XYZColorSpace_0(this.m2y())).b2y();
1217
1217
  }
1218
1218
  return tmp;
1219
1219
  };
1220
1220
  protoOf(LCHabColorSpaceImpl).toString = function () {
1221
- return 'LCHabColorSpace(' + this.t31_1.toString() + ')';
1221
+ return 'LCHabColorSpace(' + this.q31_1.toString() + ')';
1222
1222
  };
1223
- protoOf(LCHabColorSpaceImpl).o30 = function (l, c, h, alpha) {
1223
+ protoOf(LCHabColorSpaceImpl).l30 = function (l, c, h, alpha) {
1224
1224
  return new LCHab(l, c, h, alpha, this);
1225
1225
  };
1226
1226
  protoOf(LCHabColorSpaceImpl).hashCode = function () {
1227
- return this.t31_1.hashCode();
1227
+ return this.q31_1.hashCode();
1228
1228
  };
1229
1229
  protoOf(LCHabColorSpaceImpl).equals = function (other) {
1230
1230
  var tmp;
1231
1231
  if (!(other == null) ? isInterface(other, LCHabColorSpace) : false) {
1232
- tmp = this.t31_1.equals(other.p2y());
1232
+ tmp = this.q31_1.equals(other.m2y());
1233
1233
  } else {
1234
1234
  tmp = false;
1235
1235
  }
@@ -1240,19 +1240,19 @@
1240
1240
  function Oklch() {
1241
1241
  }
1242
1242
  function GammaTransferFunctions(gamma) {
1243
- this.v31_1 = gamma;
1243
+ this.s31_1 = gamma;
1244
1244
  }
1245
- protoOf(GammaTransferFunctions).g31 = function (x) {
1246
- return spow(x, this.v31_1);
1245
+ protoOf(GammaTransferFunctions).d31 = function (x) {
1246
+ return spow(x, this.s31_1);
1247
1247
  };
1248
- protoOf(GammaTransferFunctions).h31 = function (x) {
1249
- return spow(x, 1.0 / this.v31_1);
1248
+ protoOf(GammaTransferFunctions).e31 = function (x) {
1249
+ return spow(x, 1.0 / this.s31_1);
1250
1250
  };
1251
1251
  protoOf(GammaTransferFunctions).toString = function () {
1252
- return 'GammaTransferFunctions(gamma=' + this.v31_1 + ')';
1252
+ return 'GammaTransferFunctions(gamma=' + this.s31_1 + ')';
1253
1253
  };
1254
1254
  protoOf(GammaTransferFunctions).hashCode = function () {
1255
- return getNumberHashCode(this.v31_1);
1255
+ return getNumberHashCode(this.s31_1);
1256
1256
  };
1257
1257
  protoOf(GammaTransferFunctions).equals = function (other) {
1258
1258
  if (this === other)
@@ -1260,16 +1260,16 @@
1260
1260
  if (!(other instanceof GammaTransferFunctions))
1261
1261
  return false;
1262
1262
  var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
1263
- if (!equals(this.v31_1, tmp0_other_with_cast.v31_1))
1263
+ if (!equals(this.s31_1, tmp0_other_with_cast.s31_1))
1264
1264
  return false;
1265
1265
  return true;
1266
1266
  };
1267
1267
  function LinearTransferFunctions() {
1268
1268
  }
1269
- protoOf(LinearTransferFunctions).g31 = function (x) {
1269
+ protoOf(LinearTransferFunctions).d31 = function (x) {
1270
1270
  return x;
1271
1271
  };
1272
- protoOf(LinearTransferFunctions).h31 = function (x) {
1272
+ protoOf(LinearTransferFunctions).e31 = function (x) {
1273
1273
  return x;
1274
1274
  };
1275
1275
  var LinearTransferFunctions_instance;
@@ -1280,37 +1280,37 @@
1280
1280
  }
1281
1281
  function Companion_2() {
1282
1282
  Companion_instance_2 = this;
1283
- this.n30_1 = RGBColorSpaces_getInstance().f2z_1;
1283
+ this.k30_1 = RGBColorSpaces_getInstance().c2z_1;
1284
1284
  }
1285
1285
  protoOf(Companion_2).equals = function (other) {
1286
- return equals(RGBColorSpaces_getInstance().f2z_1, other);
1286
+ return equals(RGBColorSpaces_getInstance().c2z_1, other);
1287
1287
  };
1288
1288
  protoOf(Companion_2).hashCode = function () {
1289
- return hashCode(RGBColorSpaces_getInstance().f2z_1);
1289
+ return hashCode(RGBColorSpaces_getInstance().c2z_1);
1290
1290
  };
1291
- protoOf(Companion_2).o30 = function (r, g, b, alpha) {
1292
- return this.n30_1.o30(r, g, b, alpha);
1291
+ protoOf(Companion_2).l30 = function (r, g, b, alpha) {
1292
+ return this.k30_1.l30(r, g, b, alpha);
1293
1293
  };
1294
- protoOf(Companion_2).j31 = function (r, g, b, alpha) {
1295
- return this.n30_1.j31(r, g, b, alpha);
1294
+ protoOf(Companion_2).g31 = function (r, g, b, alpha) {
1295
+ return this.k30_1.g31(r, g, b, alpha);
1296
1296
  };
1297
- protoOf(Companion_2).x30 = function () {
1298
- return this.n30_1.x30();
1297
+ protoOf(Companion_2).u30 = function () {
1298
+ return this.k30_1.u30();
1299
1299
  };
1300
- protoOf(Companion_2).w31 = function () {
1301
- return this.n30_1.w31();
1300
+ protoOf(Companion_2).t31 = function () {
1301
+ return this.k30_1.t31();
1302
1302
  };
1303
- protoOf(Companion_2).x31 = function () {
1304
- return this.n30_1.x31();
1303
+ protoOf(Companion_2).u31 = function () {
1304
+ return this.k30_1.u31();
1305
1305
  };
1306
- protoOf(Companion_2).p2y = function () {
1307
- return this.n30_1.p2y();
1306
+ protoOf(Companion_2).m2y = function () {
1307
+ return this.k30_1.m2y();
1308
1308
  };
1309
1309
  protoOf(Companion_2).w1 = function () {
1310
- return this.n30_1.w1();
1310
+ return this.k30_1.w1();
1311
1311
  };
1312
- protoOf(Companion_2).k2y = function (color) {
1313
- return this.n30_1.k2y(color);
1312
+ protoOf(Companion_2).h2y = function (color) {
1313
+ return this.k30_1.h2y(color);
1314
1314
  };
1315
1315
  var Companion_instance_2;
1316
1316
  function Companion_getInstance_2() {
@@ -1320,36 +1320,36 @@
1320
1320
  }
1321
1321
  function RGB(r, g, b, alpha, space) {
1322
1322
  Companion_getInstance_2();
1323
- this.s2x_1 = r;
1324
- this.t2x_1 = g;
1325
- this.u2x_1 = b;
1326
- this.v2x_1 = alpha;
1327
- this.w2x_1 = space;
1323
+ this.p2x_1 = r;
1324
+ this.q2x_1 = g;
1325
+ this.r2x_1 = b;
1326
+ this.s2x_1 = alpha;
1327
+ this.t2x_1 = space;
1328
1328
  }
1329
- protoOf(RGB).o2x = function () {
1330
- return this.v2x_1;
1329
+ protoOf(RGB).l2x = function () {
1330
+ return this.s2x_1;
1331
1331
  };
1332
- protoOf(RGB).p2x = function () {
1333
- return this.w2x_1;
1332
+ protoOf(RGB).m2x = function () {
1333
+ return this.t2x_1;
1334
1334
  };
1335
- protoOf(RGB).r2z = function () {
1335
+ protoOf(RGB).o2z = function () {
1336
1336
  // Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
1337
- var $this$toSRGB = this.y31(SRGB_getInstance());
1338
- return _RGBInt___init__impl__lqova7_1($this$toSRGB.s2x_1, $this$toSRGB.t2x_1, $this$toSRGB.u2x_1, nanToOne($this$toSRGB.v2x_1));
1337
+ var $this$toSRGB = this.v31(SRGB_getInstance());
1338
+ return _RGBInt___init__impl__lqova7_1($this$toSRGB.p2x_1, $this$toSRGB.q2x_1, $this$toSRGB.r2x_1, nanToOne($this$toSRGB.s2x_1));
1339
1339
  };
1340
- protoOf(RGB).y31 = function (space) {
1341
- var f = SRGB_getInstance().x30();
1342
- return equals(this.w2x_1, space) ? this : equals(this.w2x_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().g2z_1) ? space.o30(f.g31(this.s2x_1), f.g31(this.t2x_1), f.g31(this.u2x_1), this.v2x_1) : equals(this.w2x_1, RGBColorSpaces_getInstance().g2z_1) && equals(space, SRGB_getInstance()) ? space.o30(f.h31(this.s2x_1), f.h31(this.t2x_1), f.h31(this.u2x_1), this.v2x_1) : this.x2x().a32(space);
1340
+ protoOf(RGB).v31 = function (space) {
1341
+ var f = SRGB_getInstance().u30();
1342
+ return equals(this.t2x_1, space) ? this : equals(this.t2x_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().d2z_1) ? space.l30(f.d31(this.p2x_1), f.d31(this.q2x_1), f.d31(this.r2x_1), this.s2x_1) : equals(this.t2x_1, RGBColorSpaces_getInstance().d2z_1) && equals(space, SRGB_getInstance()) ? space.l30(f.e31(this.p2x_1), f.e31(this.q2x_1), f.e31(this.r2x_1), this.s2x_1) : this.u2x().x31(space);
1343
1343
  };
1344
- protoOf(RGB).r2x = function () {
1344
+ protoOf(RGB).o2x = function () {
1345
1345
  var tmp$ret$3;
1346
1346
  $l$block: {
1347
1347
  // Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
1348
1348
  // Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
1349
- var $this$toSRGB = this.y31(SRGB_getInstance());
1350
- var r = $this$toSRGB.s2x_1;
1351
- var g = $this$toSRGB.t2x_1;
1352
- var b = $this$toSRGB.u2x_1;
1349
+ var $this$toSRGB = this.v31(SRGB_getInstance());
1350
+ var r = $this$toSRGB.p2x_1;
1351
+ var g = $this$toSRGB.q2x_1;
1352
+ var b = $this$toSRGB.r2x_1;
1353
1353
  // Inline function 'kotlin.comparisons.minOf' call
1354
1354
  var min = Math.min(r, g, b);
1355
1355
  // Inline function 'kotlin.comparisons.maxOf' call
@@ -1359,39 +1359,39 @@
1359
1359
  var h_0 = normalizeDeg(h);
1360
1360
  var l = (min + max) / 2.0;
1361
1361
  var s = max === min ? 0.0 : l <= 0.5 ? chroma / (max + min) : chroma / (2 - max - min);
1362
- tmp$ret$3 = new HSL(h_0, s, l, this.v2x_1);
1362
+ tmp$ret$3 = new HSL(h_0, s, l, this.s2x_1);
1363
1363
  break $l$block;
1364
1364
  }
1365
1365
  return tmp$ret$3;
1366
1366
  };
1367
- protoOf(RGB).x2x = function () {
1368
- var f = this.w2x_1.x30();
1369
- var tmp0 = _Matrix___init__impl__q3kp4w(this.w2x_1.w31());
1370
- var tmp1 = f.g31(this.s2x_1);
1371
- var tmp2 = f.g31(this.t2x_1);
1367
+ protoOf(RGB).u2x = function () {
1368
+ var f = this.t2x_1.u30();
1369
+ var tmp0 = _Matrix___init__impl__q3kp4w(this.t2x_1.t31());
1370
+ var tmp1 = f.d31(this.p2x_1);
1371
+ var tmp2 = f.d31(this.q2x_1);
1372
1372
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
1373
- var v2 = f.g31(this.u2x_1);
1373
+ var v2 = f.d31(this.r2x_1);
1374
1374
  var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
1375
1375
  var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
1376
1376
  var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
1377
- return XYZColorSpace_0(this.w2x_1.p2y()).o30(tmp4, tmp5, z, this.v2x_1);
1377
+ return XYZColorSpace_0(this.t2x_1.m2y()).l30(tmp4, tmp5, z, this.s2x_1);
1378
1378
  };
1379
- protoOf(RGB).q2x = function () {
1380
- return this.y31(RGBColorSpaces_getInstance().f2z_1);
1379
+ protoOf(RGB).n2x = function () {
1380
+ return this.v31(RGBColorSpaces_getInstance().c2z_1);
1381
1381
  };
1382
1382
  protoOf(RGB).a5 = function () {
1383
1383
  // Inline function 'kotlin.floatArrayOf' call
1384
- return new Float32Array([this.s2x_1, this.t2x_1, this.u2x_1, this.v2x_1]);
1384
+ return new Float32Array([this.p2x_1, this.q2x_1, this.r2x_1, this.s2x_1]);
1385
1385
  };
1386
1386
  protoOf(RGB).toString = function () {
1387
- return 'RGB(r=' + this.s2x_1 + ', g=' + this.t2x_1 + ', b=' + this.u2x_1 + ', alpha=' + this.v2x_1 + ', space=' + toString(this.w2x_1) + ')';
1387
+ return 'RGB(r=' + this.p2x_1 + ', g=' + this.q2x_1 + ', b=' + this.r2x_1 + ', alpha=' + this.s2x_1 + ', space=' + toString(this.t2x_1) + ')';
1388
1388
  };
1389
1389
  protoOf(RGB).hashCode = function () {
1390
- var result = getNumberHashCode(this.s2x_1);
1391
- result = imul(result, 31) + getNumberHashCode(this.t2x_1) | 0;
1392
- result = imul(result, 31) + getNumberHashCode(this.u2x_1) | 0;
1393
- result = imul(result, 31) + getNumberHashCode(this.v2x_1) | 0;
1394
- result = imul(result, 31) + hashCode(this.w2x_1) | 0;
1390
+ var result = getNumberHashCode(this.p2x_1);
1391
+ result = imul(result, 31) + getNumberHashCode(this.q2x_1) | 0;
1392
+ result = imul(result, 31) + getNumberHashCode(this.r2x_1) | 0;
1393
+ result = imul(result, 31) + getNumberHashCode(this.s2x_1) | 0;
1394
+ result = imul(result, 31) + hashCode(this.t2x_1) | 0;
1395
1395
  return result;
1396
1396
  };
1397
1397
  protoOf(RGB).equals = function (other) {
@@ -1400,15 +1400,15 @@
1400
1400
  if (!(other instanceof RGB))
1401
1401
  return false;
1402
1402
  var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
1403
- if (!equals(this.s2x_1, tmp0_other_with_cast.s2x_1))
1403
+ if (!equals(this.p2x_1, tmp0_other_with_cast.p2x_1))
1404
1404
  return false;
1405
- if (!equals(this.t2x_1, tmp0_other_with_cast.t2x_1))
1405
+ if (!equals(this.q2x_1, tmp0_other_with_cast.q2x_1))
1406
1406
  return false;
1407
- if (!equals(this.u2x_1, tmp0_other_with_cast.u2x_1))
1407
+ if (!equals(this.r2x_1, tmp0_other_with_cast.r2x_1))
1408
1408
  return false;
1409
- if (!equals(this.v2x_1, tmp0_other_with_cast.v2x_1))
1409
+ if (!equals(this.s2x_1, tmp0_other_with_cast.s2x_1))
1410
1410
  return false;
1411
- if (!equals(this.w2x_1, tmp0_other_with_cast.w2x_1))
1411
+ if (!equals(this.t2x_1, tmp0_other_with_cast.t2x_1))
1412
1412
  return false;
1413
1413
  return true;
1414
1414
  };
@@ -1463,17 +1463,17 @@
1463
1463
  }
1464
1464
  var ACES_AP1_B;
1465
1465
  function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
1466
- return it.q2x();
1466
+ return it.n2x();
1467
1467
  }
1468
1468
  function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
1469
1469
  var tmp;
1470
1470
  if (color instanceof RGB) {
1471
- tmp = color.y31($this$RGBColorSpaceImpl);
1471
+ tmp = color.v31($this$RGBColorSpaceImpl);
1472
1472
  } else {
1473
1473
  if (color instanceof ICtCp) {
1474
- tmp = color.w30();
1474
+ tmp = color.t30();
1475
1475
  } else {
1476
- tmp = color.x2x().a32($this$RGBColorSpaceImpl);
1476
+ tmp = color.u2x().x31($this$RGBColorSpaceImpl);
1477
1477
  }
1478
1478
  }
1479
1479
  return tmp;
@@ -1481,29 +1481,29 @@
1481
1481
  function RGBColorSpaces() {
1482
1482
  RGBColorSpaces_instance = this;
1483
1483
  var tmp = this;
1484
- var tmp_0 = Illuminant_getInstance().y2y_1;
1484
+ var tmp_0 = Illuminant_getInstance().v2y_1;
1485
1485
  var tmp_1 = SRGBTransferFunctions_instance;
1486
1486
  var tmp_2 = get_SRGB_R();
1487
1487
  var tmp_3 = get_SRGB_G();
1488
1488
  var tmp_4 = get_SRGB_B();
1489
- tmp.f2z_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
1490
- this.g2z_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().y2y_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
1491
- this.h2z_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
1492
- this.i2z_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1493
- this.j2z_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1494
- this.k2z_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1495
- this.l2z_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().y2y_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06));
1489
+ tmp.c2z_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
1490
+ this.d2z_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().v2y_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
1491
+ this.e2z_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
1492
+ this.f2z_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1493
+ this.g2z_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1494
+ this.h2z_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1495
+ this.i2z_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().v2y_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06));
1496
1496
  var tmp_5 = this;
1497
- var tmp_6 = Illuminant_getInstance().y2y_1;
1497
+ var tmp_6 = Illuminant_getInstance().v2y_1;
1498
1498
  var tmp_7 = BT2020TransferFunctions_getInstance();
1499
1499
  var tmp_8 = xyY_init_$Create$(0.708, 0.292);
1500
1500
  var tmp_9 = xyY_init_$Create$(0.17, 0.797);
1501
1501
  var tmp_10 = xyY_init_$Create$(0.131, 0.046);
1502
- tmp_5.m2z_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
1503
- this.n2z_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().y2y_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
1504
- this.o2z_1 = RGBColorSpace_0('DCI P3', new WhitePoint('DCI P3', xyY_init_$Create$(0.314, 0.351)), new GammaTransferFunctions(2.6), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
1505
- this.p2z_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().y2y_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
1506
- this.q2z_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().w2y_1, ROMMTransferFunctions_instance, xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4));
1502
+ tmp_5.j2z_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
1503
+ this.k2z_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().v2y_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
1504
+ this.l2z_1 = RGBColorSpace_0('DCI P3', new WhitePoint('DCI P3', xyY_init_$Create$(0.314, 0.351)), new GammaTransferFunctions(2.6), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
1505
+ this.m2z_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().v2y_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
1506
+ this.n2z_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().t2y_1, ROMMTransferFunctions_instance, xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4));
1507
1507
  }
1508
1508
  var RGBColorSpaces_instance;
1509
1509
  function RGBColorSpaces_getInstance() {
@@ -1513,40 +1513,40 @@
1513
1513
  }
1514
1514
  function SRGB() {
1515
1515
  SRGB_instance = this;
1516
- this.p30_1 = RGBColorSpaces_getInstance().f2z_1;
1516
+ this.m30_1 = RGBColorSpaces_getInstance().c2z_1;
1517
1517
  }
1518
1518
  protoOf(SRGB).equals = function (other) {
1519
- return equals(RGBColorSpaces_getInstance().f2z_1, other);
1519
+ return equals(RGBColorSpaces_getInstance().c2z_1, other);
1520
1520
  };
1521
1521
  protoOf(SRGB).hashCode = function () {
1522
- return hashCode(RGBColorSpaces_getInstance().f2z_1);
1522
+ return hashCode(RGBColorSpaces_getInstance().c2z_1);
1523
1523
  };
1524
1524
  protoOf(SRGB).toString = function () {
1525
1525
  return 'sRGB';
1526
1526
  };
1527
- protoOf(SRGB).o30 = function (r, g, b, alpha) {
1528
- return this.p30_1.o30(r, g, b, alpha);
1527
+ protoOf(SRGB).l30 = function (r, g, b, alpha) {
1528
+ return this.m30_1.l30(r, g, b, alpha);
1529
1529
  };
1530
- protoOf(SRGB).j31 = function (r, g, b, alpha) {
1531
- return this.p30_1.j31(r, g, b, alpha);
1530
+ protoOf(SRGB).g31 = function (r, g, b, alpha) {
1531
+ return this.m30_1.g31(r, g, b, alpha);
1532
1532
  };
1533
- protoOf(SRGB).x30 = function () {
1534
- return this.p30_1.x30();
1533
+ protoOf(SRGB).u30 = function () {
1534
+ return this.m30_1.u30();
1535
1535
  };
1536
- protoOf(SRGB).w31 = function () {
1537
- return this.p30_1.w31();
1536
+ protoOf(SRGB).t31 = function () {
1537
+ return this.m30_1.t31();
1538
1538
  };
1539
- protoOf(SRGB).x31 = function () {
1540
- return this.p30_1.x31();
1539
+ protoOf(SRGB).u31 = function () {
1540
+ return this.m30_1.u31();
1541
1541
  };
1542
- protoOf(SRGB).p2y = function () {
1543
- return this.p30_1.p2y();
1542
+ protoOf(SRGB).m2y = function () {
1543
+ return this.m30_1.m2y();
1544
1544
  };
1545
1545
  protoOf(SRGB).w1 = function () {
1546
- return this.p30_1.w1();
1546
+ return this.m30_1.w1();
1547
1547
  };
1548
- protoOf(SRGB).k2y = function (color) {
1549
- return this.p30_1.k2y(color);
1548
+ protoOf(SRGB).h2y = function (color) {
1549
+ return this.m30_1.h2y(color);
1550
1550
  };
1551
1551
  var SRGB_instance;
1552
1552
  function SRGB_getInstance() {
@@ -1555,39 +1555,39 @@
1555
1555
  return SRGB_instance;
1556
1556
  }
1557
1557
  function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
1558
- this.b32_1 = name;
1559
- this.c32_1 = whitePoint;
1560
- this.d32_1 = transferFunctions;
1561
- this.e32_1 = r;
1562
- this.f32_1 = g;
1563
- this.g32_1 = b;
1564
- this.h32_1 = convertImpl;
1565
- this.i32_1 = zeroOneComponentInfo('RGB');
1566
- this.j32_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.c32_1, this.e32_1, this.f32_1, this.g32_1));
1567
- this.k32_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.j32_1)));
1558
+ this.y31_1 = name;
1559
+ this.z31_1 = whitePoint;
1560
+ this.a32_1 = transferFunctions;
1561
+ this.b32_1 = r;
1562
+ this.c32_1 = g;
1563
+ this.d32_1 = b;
1564
+ this.e32_1 = convertImpl;
1565
+ this.f32_1 = zeroOneComponentInfo('RGB');
1566
+ this.g32_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.z31_1, this.b32_1, this.c32_1, this.d32_1));
1567
+ this.h32_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.g32_1)));
1568
1568
  }
1569
1569
  protoOf(RGBColorSpaceImpl).w1 = function () {
1570
- return this.b32_1;
1570
+ return this.y31_1;
1571
1571
  };
1572
- protoOf(RGBColorSpaceImpl).p2y = function () {
1573
- return this.c32_1;
1572
+ protoOf(RGBColorSpaceImpl).m2y = function () {
1573
+ return this.z31_1;
1574
1574
  };
1575
- protoOf(RGBColorSpaceImpl).x30 = function () {
1576
- return this.d32_1;
1575
+ protoOf(RGBColorSpaceImpl).u30 = function () {
1576
+ return this.a32_1;
1577
1577
  };
1578
- protoOf(RGBColorSpaceImpl).k2y = function (color) {
1579
- return this.h32_1(this, color);
1578
+ protoOf(RGBColorSpaceImpl).h2y = function (color) {
1579
+ return this.e32_1(this, color);
1580
1580
  };
1581
- protoOf(RGBColorSpaceImpl).w31 = function () {
1582
- return this.j32_1;
1581
+ protoOf(RGBColorSpaceImpl).t31 = function () {
1582
+ return this.g32_1;
1583
1583
  };
1584
- protoOf(RGBColorSpaceImpl).x31 = function () {
1585
- return this.k32_1;
1584
+ protoOf(RGBColorSpaceImpl).u31 = function () {
1585
+ return this.h32_1;
1586
1586
  };
1587
1587
  protoOf(RGBColorSpaceImpl).toString = function () {
1588
- return this.b32_1;
1588
+ return this.y31_1;
1589
1589
  };
1590
- protoOf(RGBColorSpaceImpl).o30 = function (r, g, b, alpha) {
1590
+ protoOf(RGBColorSpaceImpl).l30 = function (r, g, b, alpha) {
1591
1591
  return new RGB(r, g, b, alpha, this);
1592
1592
  };
1593
1593
  protoOf(RGBColorSpaceImpl).equals = function (other) {
@@ -1595,42 +1595,42 @@
1595
1595
  return true;
1596
1596
  if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
1597
1597
  return false;
1598
- if (!(this.b32_1 === other.w1()))
1598
+ if (!(this.y31_1 === other.w1()))
1599
1599
  return false;
1600
- if (!this.c32_1.equals(other.p2y()))
1600
+ if (!this.z31_1.equals(other.m2y()))
1601
1601
  return false;
1602
- if (!equals(this.d32_1, other.x30()))
1602
+ if (!equals(this.a32_1, other.u30()))
1603
1603
  return false;
1604
1604
  if (other instanceof RGBColorSpaceImpl) {
1605
- if (!this.e32_1.equals(other.e32_1))
1605
+ if (!this.b32_1.equals(other.b32_1))
1606
1606
  return false;
1607
- if (!this.f32_1.equals(other.f32_1))
1607
+ if (!this.c32_1.equals(other.c32_1))
1608
1608
  return false;
1609
- if (!this.g32_1.equals(other.g32_1))
1609
+ if (!this.d32_1.equals(other.d32_1))
1610
1610
  return false;
1611
1611
  } else {
1612
- if (!contentEquals(this.j32_1, other.w31()))
1612
+ if (!contentEquals(this.g32_1, other.t31()))
1613
1613
  return false;
1614
- if (!contentEquals(this.k32_1, other.x31()))
1614
+ if (!contentEquals(this.h32_1, other.u31()))
1615
1615
  return false;
1616
1616
  }
1617
1617
  return true;
1618
1618
  };
1619
1619
  protoOf(RGBColorSpaceImpl).hashCode = function () {
1620
- var result = getStringHashCode(this.b32_1);
1620
+ var result = getStringHashCode(this.y31_1);
1621
+ result = imul(31, result) + this.z31_1.hashCode() | 0;
1622
+ result = imul(31, result) + hashCode(this.a32_1) | 0;
1623
+ result = imul(31, result) + this.b32_1.hashCode() | 0;
1621
1624
  result = imul(31, result) + this.c32_1.hashCode() | 0;
1622
- result = imul(31, result) + hashCode(this.d32_1) | 0;
1623
- result = imul(31, result) + this.e32_1.hashCode() | 0;
1624
- result = imul(31, result) + this.f32_1.hashCode() | 0;
1625
- result = imul(31, result) + this.g32_1.hashCode() | 0;
1625
+ result = imul(31, result) + this.d32_1.hashCode() | 0;
1626
1626
  return result;
1627
1627
  };
1628
1628
  function SRGBTransferFunctions() {
1629
1629
  }
1630
- protoOf(SRGBTransferFunctions).h31 = function (x) {
1630
+ protoOf(SRGBTransferFunctions).e31 = function (x) {
1631
1631
  return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
1632
1632
  };
1633
- protoOf(SRGBTransferFunctions).g31 = function (x) {
1633
+ protoOf(SRGBTransferFunctions).d31 = function (x) {
1634
1634
  return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
1635
1635
  };
1636
1636
  var SRGBTransferFunctions_instance;
@@ -1643,18 +1643,18 @@
1643
1643
  }
1644
1644
  function ACESccTransferFunctions() {
1645
1645
  ACESccTransferFunctions_instance = this;
1646
- this.l32_1 = 3.0517578125E-5;
1647
- this.m32_1 = 1.52587890625E-5;
1648
- this.n32_1 = -0.3013698630136986;
1646
+ this.i32_1 = 3.0517578125E-5;
1647
+ this.j32_1 = 1.52587890625E-5;
1648
+ this.k32_1 = -0.3013698630136986;
1649
1649
  var tmp = this;
1650
1650
  // Inline function 'kotlin.math.log2' call
1651
- tmp.o32_1 = (log2(65504.0) + 9.72) / 17.52;
1651
+ tmp.l32_1 = (log2(65504.0) + 9.72) / 17.52;
1652
1652
  }
1653
- protoOf(ACESccTransferFunctions).g31 = function (x) {
1653
+ protoOf(ACESccTransferFunctions).d31 = function (x) {
1654
1654
  var tmp;
1655
1655
  if (x <= -0.3013698630136986) {
1656
1656
  tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
1657
- } else if (x < this.o32_1) {
1657
+ } else if (x < this.l32_1) {
1658
1658
  // Inline function 'kotlin.math.pow' call
1659
1659
  var x_0 = x * 17.52 - 9.72;
1660
1660
  tmp = Math.pow(2.0, x_0);
@@ -1663,7 +1663,7 @@
1663
1663
  }
1664
1664
  return tmp;
1665
1665
  };
1666
- protoOf(ACESccTransferFunctions).h31 = function (x) {
1666
+ protoOf(ACESccTransferFunctions).e31 = function (x) {
1667
1667
  var tmp;
1668
1668
  if (x < 3.0517578125E-5) {
1669
1669
  // Inline function 'kotlin.math.log2' call
@@ -1683,17 +1683,17 @@
1683
1683
  }
1684
1684
  function ACEScctTransferFunctions() {
1685
1685
  ACEScctTransferFunctions_instance = this;
1686
- this.p32_1 = 10.5402377416545;
1687
- this.q32_1 = 0.0729055341958355;
1686
+ this.m32_1 = 10.5402377416545;
1687
+ this.n32_1 = 0.0729055341958355;
1688
1688
  var tmp = this;
1689
1689
  // Inline function 'kotlin.math.log2' call
1690
- tmp.r32_1 = (log2(65504.0) + 9.72) / 17.52;
1690
+ tmp.o32_1 = (log2(65504.0) + 9.72) / 17.52;
1691
1691
  }
1692
- protoOf(ACEScctTransferFunctions).g31 = function (x) {
1692
+ protoOf(ACEScctTransferFunctions).d31 = function (x) {
1693
1693
  var tmp;
1694
1694
  if (x <= 0.155251141552511) {
1695
1695
  tmp = (x - 0.0729055341958355) / 10.5402377416545;
1696
- } else if (x < this.r32_1) {
1696
+ } else if (x < this.o32_1) {
1697
1697
  // Inline function 'kotlin.math.pow' call
1698
1698
  var x_0 = x * 17.52 - 9.72;
1699
1699
  tmp = Math.pow(2.0, x_0);
@@ -1702,7 +1702,7 @@
1702
1702
  }
1703
1703
  return tmp;
1704
1704
  };
1705
- protoOf(ACEScctTransferFunctions).h31 = function (x) {
1705
+ protoOf(ACEScctTransferFunctions).e31 = function (x) {
1706
1706
  var tmp;
1707
1707
  if (x < 0.0078125) {
1708
1708
  tmp = 10.5402377416545 * x + 0.0729055341958355;
@@ -1720,16 +1720,16 @@
1720
1720
  }
1721
1721
  function BT2020TransferFunctions() {
1722
1722
  BT2020TransferFunctions_instance = this;
1723
- this.s32_1 = 1.0993;
1724
- this.t32_1 = 0.0181;
1723
+ this.p32_1 = 1.0993;
1724
+ this.q32_1 = 0.0181;
1725
1725
  var tmp = this;
1726
1726
  // Inline function 'kotlin.math.pow' call
1727
- tmp.u32_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
1727
+ tmp.r32_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
1728
1728
  }
1729
- protoOf(BT2020TransferFunctions).g31 = function (x) {
1730
- return numberToDouble(x < this.u32_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
1729
+ protoOf(BT2020TransferFunctions).d31 = function (x) {
1730
+ return numberToDouble(x < this.r32_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
1731
1731
  };
1732
- protoOf(BT2020TransferFunctions).h31 = function (x) {
1732
+ protoOf(BT2020TransferFunctions).e31 = function (x) {
1733
1733
  return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
1734
1734
  };
1735
1735
  var BT2020TransferFunctions_instance;
@@ -1740,12 +1740,12 @@
1740
1740
  }
1741
1741
  function BT709TransferFunctions() {
1742
1742
  BT709TransferFunctions_instance = this;
1743
- this.v32_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
1743
+ this.s32_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
1744
1744
  }
1745
- protoOf(BT709TransferFunctions).g31 = function (x) {
1746
- return numberToDouble(x < this.v32_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
1745
+ protoOf(BT709TransferFunctions).d31 = function (x) {
1746
+ return numberToDouble(x < this.s32_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
1747
1747
  };
1748
- protoOf(BT709TransferFunctions).h31 = function (x) {
1748
+ protoOf(BT709TransferFunctions).e31 = function (x) {
1749
1749
  return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
1750
1750
  };
1751
1751
  var BT709TransferFunctions_instance;
@@ -1755,12 +1755,12 @@
1755
1755
  return BT709TransferFunctions_instance;
1756
1756
  }
1757
1757
  function ROMMTransferFunctions() {
1758
- this.w32_1 = 0.001953;
1758
+ this.t32_1 = 0.001953;
1759
1759
  }
1760
- protoOf(ROMMTransferFunctions).g31 = function (x) {
1760
+ protoOf(ROMMTransferFunctions).d31 = function (x) {
1761
1761
  return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
1762
1762
  };
1763
- protoOf(ROMMTransferFunctions).h31 = function (x) {
1763
+ protoOf(ROMMTransferFunctions).e31 = function (x) {
1764
1764
  return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
1765
1765
  };
1766
1766
  var ROMMTransferFunctions_instance;
@@ -1769,13 +1769,13 @@
1769
1769
  }
1770
1770
  function rgbToXyzMatrix(whitePoint, r, g, b) {
1771
1771
  _init_properties_RGBColorSpaces_kt__nc9fsz();
1772
- var primaries = _Matrix___init__impl__q3kp4w_0(r.l31_1, g.l31_1, b.l31_1, r.m31_1, g.m31_1, b.m31_1, r.x32(), g.x32(), b.x32());
1773
- var wp = whitePoint.k30_1;
1772
+ var primaries = _Matrix___init__impl__q3kp4w_0(r.i31_1, g.i31_1, b.i31_1, r.j31_1, g.j31_1, b.j31_1, r.u32(), g.u32(), b.u32());
1773
+ var wp = whitePoint.h30_1;
1774
1774
  var tmp0 = inverse(primaries);
1775
- var tmp1 = wp.o31();
1776
- var tmp2 = wp.n31_1;
1775
+ var tmp1 = wp.l31();
1776
+ var tmp2 = wp.k31_1;
1777
1777
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
1778
- var v2 = wp.p31();
1778
+ var v2 = wp.m31();
1779
1779
  var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
1780
1780
  var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
1781
1781
  var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
@@ -1785,9 +1785,9 @@
1785
1785
  _init_properties_RGBColorSpaces_kt__nc9fsz();
1786
1786
  var tmp;
1787
1787
  if (color instanceof RGB) {
1788
- tmp = color.y31($this$RGBColorSpaceImpl);
1788
+ tmp = color.v31($this$RGBColorSpaceImpl);
1789
1789
  } else {
1790
- tmp = color.x2x().a32($this$RGBColorSpaceImpl);
1790
+ tmp = color.u2x().x31($this$RGBColorSpaceImpl);
1791
1791
  }
1792
1792
  return tmp;
1793
1793
  }
@@ -1815,16 +1815,16 @@
1815
1815
  }
1816
1816
  function Companion_3() {
1817
1817
  Companion_instance_3 = this;
1818
- this.y32_1 = threeComponentInfo('R', 0.0, 255.0, 'G', 0.0, 255.0, 'B', 0.0, 255.0);
1818
+ this.v32_1 = threeComponentInfo('R', 0.0, 255.0, 'G', 0.0, 255.0, 'B', 0.0, 255.0);
1819
1819
  }
1820
1820
  protoOf(Companion_3).w1 = function () {
1821
1821
  return 'RGBInt';
1822
1822
  };
1823
- protoOf(Companion_3).z32 = function (color) {
1824
- return color.q2x().r2z();
1823
+ protoOf(Companion_3).w32 = function (color) {
1824
+ return color.n2x().o2z();
1825
1825
  };
1826
- protoOf(Companion_3).k2y = function (color) {
1827
- return new RGBInt(this.z32(color));
1826
+ protoOf(Companion_3).h2y = function (color) {
1827
+ return new RGBInt(this.w32(color));
1828
1828
  };
1829
1829
  var Companion_instance_3;
1830
1830
  function Companion_getInstance_3() {
@@ -1956,7 +1956,7 @@
1956
1956
  return (_UByte___get_data__impl__jof9qr(this_0) & 255) / 255.0;
1957
1957
  }
1958
1958
  function RGBInt__toSRGB_impl_m0acyy($this) {
1959
- return Companion_getInstance_2().o30(_RGBInt___get_redFloat__impl__lnt6cx($this), _RGBInt___get_greenFloat__impl__opq1mn($this), _RGBInt___get_blueFloat__impl__jt6mw2($this), _RGBInt___get_alpha__impl__yl2tay($this));
1959
+ return Companion_getInstance_2().l30(_RGBInt___get_redFloat__impl__lnt6cx($this), _RGBInt___get_greenFloat__impl__opq1mn($this), _RGBInt___get_blueFloat__impl__jt6mw2($this), _RGBInt___get_alpha__impl__yl2tay($this));
1960
1960
  }
1961
1961
  function RGBInt__toArray_impl_73rlu9($this) {
1962
1962
  // Inline function 'kotlin.UByte.toFloat' call
@@ -1995,59 +1995,59 @@
1995
1995
  function RGBInt__equals_impl_qmmpmc($this, other) {
1996
1996
  if (!(other instanceof RGBInt))
1997
1997
  return false;
1998
- if (!($this === (other instanceof RGBInt ? other.z31_1 : THROW_CCE())))
1998
+ if (!($this === (other instanceof RGBInt ? other.w31_1 : THROW_CCE())))
1999
1999
  return false;
2000
2000
  return true;
2001
2001
  }
2002
2002
  function RGBInt(argb) {
2003
2003
  Companion_getInstance_3();
2004
- this.z31_1 = argb;
2004
+ this.w31_1 = argb;
2005
2005
  }
2006
- protoOf(RGBInt).o2x = function () {
2007
- return _RGBInt___get_alpha__impl__yl2tay(this.z31_1);
2006
+ protoOf(RGBInt).l2x = function () {
2007
+ return _RGBInt___get_alpha__impl__yl2tay(this.w31_1);
2008
2008
  };
2009
- protoOf(RGBInt).p2x = function () {
2010
- return _RGBInt___get_space__impl__emgnsy(this.z31_1);
2009
+ protoOf(RGBInt).m2x = function () {
2010
+ return _RGBInt___get_space__impl__emgnsy(this.w31_1);
2011
2011
  };
2012
- protoOf(RGBInt).q2x = function () {
2013
- return RGBInt__toSRGB_impl_m0acyy(this.z31_1);
2012
+ protoOf(RGBInt).n2x = function () {
2013
+ return RGBInt__toSRGB_impl_m0acyy(this.w31_1);
2014
2014
  };
2015
2015
  protoOf(RGBInt).a5 = function () {
2016
- return RGBInt__toArray_impl_73rlu9(this.z31_1);
2016
+ return RGBInt__toArray_impl_73rlu9(this.w31_1);
2017
2017
  };
2018
2018
  protoOf(RGBInt).toString = function () {
2019
- return RGBInt__toString_impl_cf5r29(this.z31_1);
2019
+ return RGBInt__toString_impl_cf5r29(this.w31_1);
2020
2020
  };
2021
2021
  protoOf(RGBInt).hashCode = function () {
2022
- return RGBInt__hashCode_impl_y6bnv4(this.z31_1);
2022
+ return RGBInt__hashCode_impl_y6bnv4(this.w31_1);
2023
2023
  };
2024
2024
  protoOf(RGBInt).equals = function (other) {
2025
- return RGBInt__equals_impl_qmmpmc(this.z31_1, other);
2025
+ return RGBInt__equals_impl_qmmpmc(this.w31_1, other);
2026
2026
  };
2027
2027
  function Companion_4() {
2028
2028
  Companion_instance_4 = this;
2029
- this.a33_1 = XYZColorSpaces_getInstance().q2y_1;
2029
+ this.x32_1 = XYZColorSpaces_getInstance().n2y_1;
2030
2030
  }
2031
2031
  protoOf(Companion_4).hashCode = function () {
2032
- return hashCode(XYZColorSpaces_getInstance().q2y_1);
2032
+ return hashCode(XYZColorSpaces_getInstance().n2y_1);
2033
2033
  };
2034
2034
  protoOf(Companion_4).equals = function (other) {
2035
- return equals(XYZColorSpaces_getInstance().q2y_1, other);
2035
+ return equals(XYZColorSpaces_getInstance().n2y_1, other);
2036
2036
  };
2037
- protoOf(Companion_4).o30 = function (x, y, z, alpha) {
2038
- return this.a33_1.o30(x, y, z, alpha);
2037
+ protoOf(Companion_4).l30 = function (x, y, z, alpha) {
2038
+ return this.x32_1.l30(x, y, z, alpha);
2039
2039
  };
2040
- protoOf(Companion_4).j31 = function (x, y, z, alpha) {
2041
- return this.a33_1.j31(x, y, z, alpha);
2040
+ protoOf(Companion_4).g31 = function (x, y, z, alpha) {
2041
+ return this.x32_1.g31(x, y, z, alpha);
2042
2042
  };
2043
- protoOf(Companion_4).p2y = function () {
2044
- return this.a33_1.p2y();
2043
+ protoOf(Companion_4).m2y = function () {
2044
+ return this.x32_1.m2y();
2045
2045
  };
2046
2046
  protoOf(Companion_4).w1 = function () {
2047
- return this.a33_1.w1();
2047
+ return this.x32_1.w1();
2048
2048
  };
2049
- protoOf(Companion_4).k2y = function (color) {
2050
- return this.a33_1.k2y(color);
2049
+ protoOf(Companion_4).h2y = function (color) {
2050
+ return this.x32_1.h2y(color);
2051
2051
  };
2052
2052
  var Companion_instance_4;
2053
2053
  function Companion_getInstance_4() {
@@ -2056,17 +2056,17 @@
2056
2056
  return Companion_instance_4;
2057
2057
  }
2058
2058
  function adaptToM($this, space, m, mi) {
2059
- if (space.p2y().equals($this.d2y_1.p2y()))
2059
+ if (space.m2y().equals($this.a2y_1.m2y()))
2060
2060
  return $this;
2061
- var transform = chromaticAdaptationMatrix(space, $this.d2y_1.p2y().k30_1, m, mi);
2062
- var tmp1 = $this.z2x_1;
2063
- var tmp2 = $this.a2y_1;
2061
+ var transform = chromaticAdaptationMatrix(space, $this.a2y_1.m2y().h30_1, m, mi);
2062
+ var tmp1 = $this.w2x_1;
2063
+ var tmp2 = $this.x2x_1;
2064
2064
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
2065
- var v2 = $this.b2y_1;
2065
+ var v2 = $this.y2x_1;
2066
2066
  var tmp4 = Matrix__get_impl_xogbpk(transform, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
2067
2067
  var tmp5 = Matrix__get_impl_xogbpk(transform, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
2068
2068
  var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
2069
- return space.o30(tmp4, tmp5, zz, $this.c2y_1);
2069
+ return space.l30(tmp4, tmp5, zz, $this.z2x_1);
2070
2070
  }
2071
2071
  function toLAB$f(t) {
2072
2072
  var tmp;
@@ -2080,71 +2080,71 @@
2080
2080
  }
2081
2081
  function XYZ(x, y, z, alpha, space) {
2082
2082
  Companion_getInstance_4();
2083
- this.z2x_1 = x;
2084
- this.a2y_1 = y;
2085
- this.b2y_1 = z;
2086
- this.c2y_1 = alpha;
2087
- this.d2y_1 = space;
2083
+ this.w2x_1 = x;
2084
+ this.x2x_1 = y;
2085
+ this.y2x_1 = z;
2086
+ this.z2x_1 = alpha;
2087
+ this.a2y_1 = space;
2088
2088
  }
2089
- protoOf(XYZ).o2x = function () {
2090
- return this.c2y_1;
2089
+ protoOf(XYZ).l2x = function () {
2090
+ return this.z2x_1;
2091
2091
  };
2092
- protoOf(XYZ).p2x = function () {
2093
- return this.d2y_1;
2092
+ protoOf(XYZ).m2x = function () {
2093
+ return this.a2y_1;
2094
2094
  };
2095
- protoOf(XYZ).s2y = function (space) {
2095
+ protoOf(XYZ).p2y = function (space) {
2096
2096
  return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
2097
2097
  };
2098
- protoOf(XYZ).a32 = function (space) {
2099
- var _destruct__k2r9zo = this.s2y(XYZColorSpace_0(space.p2y()));
2098
+ protoOf(XYZ).x31 = function (space) {
2099
+ var _destruct__k2r9zo = this.p2y(XYZColorSpace_0(space.m2y()));
2100
2100
  var x = _destruct__k2r9zo.me();
2101
2101
  var y = _destruct__k2r9zo.ne();
2102
- var z = _destruct__k2r9zo.b33();
2103
- var f = space.x30();
2102
+ var z = _destruct__k2r9zo.y32();
2103
+ var f = space.u30();
2104
2104
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
2105
- var this_0 = _Matrix___init__impl__q3kp4w(space.x31());
2105
+ var this_0 = _Matrix___init__impl__q3kp4w(space.u31());
2106
2106
  var tmp4 = Matrix__get_impl_xogbpk(this_0, 0, 0) * x + Matrix__get_impl_xogbpk(this_0, 1, 0) * y + Matrix__get_impl_xogbpk(this_0, 2, 0) * z;
2107
2107
  var tmp5 = Matrix__get_impl_xogbpk(this_0, 0, 1) * x + Matrix__get_impl_xogbpk(this_0, 1, 1) * y + Matrix__get_impl_xogbpk(this_0, 2, 1) * z;
2108
2108
  var b = Matrix__get_impl_xogbpk(this_0, 0, 2) * x + Matrix__get_impl_xogbpk(this_0, 1, 2) * y + Matrix__get_impl_xogbpk(this_0, 2, 2) * z;
2109
- return space.o30(f.h31(tmp4), f.h31(tmp5), f.h31(b), this.c2y_1);
2109
+ return space.l30(f.e31(tmp4), f.e31(tmp5), f.e31(b), this.z2x_1);
2110
2110
  };
2111
- protoOf(XYZ).q2x = function () {
2112
- return this.a32(RGBColorSpaces_getInstance().f2z_1);
2111
+ protoOf(XYZ).n2x = function () {
2112
+ return this.x31(RGBColorSpaces_getInstance().c2z_1);
2113
2113
  };
2114
- protoOf(XYZ).y2x = function () {
2115
- var fx = toLAB$f(this.z2x_1 / this.d2y_1.p2y().k30_1.o31());
2116
- var fy = toLAB$f(this.a2y_1 / this.d2y_1.p2y().k30_1.n31_1);
2117
- var fz = toLAB$f(this.b2y_1 / this.d2y_1.p2y().k30_1.p31());
2114
+ protoOf(XYZ).v2x = function () {
2115
+ var fx = toLAB$f(this.w2x_1 / this.a2y_1.m2y().h30_1.l31());
2116
+ var fy = toLAB$f(this.x2x_1 / this.a2y_1.m2y().h30_1.k31_1);
2117
+ var fz = toLAB$f(this.y2x_1 / this.a2y_1.m2y().h30_1.m31());
2118
2118
  var l = 116 * fy - 16;
2119
2119
  var a = 500 * (fx - fy);
2120
2120
  var b = 200 * (fy - fz);
2121
- return LABColorSpace_0(this.d2y_1.p2y()).j31(l, a, b, this.c2y_1);
2121
+ return LABColorSpace_0(this.a2y_1.m2y()).g31(l, a, b, this.z2x_1);
2122
2122
  };
2123
- protoOf(XYZ).x2x = function () {
2123
+ protoOf(XYZ).u2x = function () {
2124
2124
  return this;
2125
2125
  };
2126
2126
  protoOf(XYZ).a5 = function () {
2127
2127
  // Inline function 'kotlin.floatArrayOf' call
2128
- return new Float32Array([this.z2x_1, this.a2y_1, this.b2y_1, this.c2y_1]);
2128
+ return new Float32Array([this.w2x_1, this.x2x_1, this.y2x_1, this.z2x_1]);
2129
2129
  };
2130
2130
  protoOf(XYZ).me = function () {
2131
- return this.z2x_1;
2131
+ return this.w2x_1;
2132
2132
  };
2133
2133
  protoOf(XYZ).ne = function () {
2134
- return this.a2y_1;
2134
+ return this.x2x_1;
2135
2135
  };
2136
- protoOf(XYZ).b33 = function () {
2137
- return this.b2y_1;
2136
+ protoOf(XYZ).y32 = function () {
2137
+ return this.y2x_1;
2138
2138
  };
2139
2139
  protoOf(XYZ).toString = function () {
2140
- return 'XYZ(x=' + this.z2x_1 + ', y=' + this.a2y_1 + ', z=' + this.b2y_1 + ', alpha=' + this.c2y_1 + ', space=' + toString(this.d2y_1) + ')';
2140
+ return 'XYZ(x=' + this.w2x_1 + ', y=' + this.x2x_1 + ', z=' + this.y2x_1 + ', alpha=' + this.z2x_1 + ', space=' + toString(this.a2y_1) + ')';
2141
2141
  };
2142
2142
  protoOf(XYZ).hashCode = function () {
2143
- var result = getNumberHashCode(this.z2x_1);
2144
- result = imul(result, 31) + getNumberHashCode(this.a2y_1) | 0;
2145
- result = imul(result, 31) + getNumberHashCode(this.b2y_1) | 0;
2146
- result = imul(result, 31) + getNumberHashCode(this.c2y_1) | 0;
2147
- result = imul(result, 31) + hashCode(this.d2y_1) | 0;
2143
+ var result = getNumberHashCode(this.w2x_1);
2144
+ result = imul(result, 31) + getNumberHashCode(this.x2x_1) | 0;
2145
+ result = imul(result, 31) + getNumberHashCode(this.y2x_1) | 0;
2146
+ result = imul(result, 31) + getNumberHashCode(this.z2x_1) | 0;
2147
+ result = imul(result, 31) + hashCode(this.a2y_1) | 0;
2148
2148
  return result;
2149
2149
  };
2150
2150
  protoOf(XYZ).equals = function (other) {
@@ -2153,27 +2153,27 @@
2153
2153
  if (!(other instanceof XYZ))
2154
2154
  return false;
2155
2155
  var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
2156
- if (!equals(this.z2x_1, tmp0_other_with_cast.z2x_1))
2156
+ if (!equals(this.w2x_1, tmp0_other_with_cast.w2x_1))
2157
2157
  return false;
2158
- if (!equals(this.a2y_1, tmp0_other_with_cast.a2y_1))
2158
+ if (!equals(this.x2x_1, tmp0_other_with_cast.x2x_1))
2159
2159
  return false;
2160
- if (!equals(this.b2y_1, tmp0_other_with_cast.b2y_1))
2160
+ if (!equals(this.y2x_1, tmp0_other_with_cast.y2x_1))
2161
2161
  return false;
2162
- if (!equals(this.c2y_1, tmp0_other_with_cast.c2y_1))
2162
+ if (!equals(this.z2x_1, tmp0_other_with_cast.z2x_1))
2163
2163
  return false;
2164
- if (!equals(this.d2y_1, tmp0_other_with_cast.d2y_1))
2164
+ if (!equals(this.a2y_1, tmp0_other_with_cast.a2y_1))
2165
2165
  return false;
2166
2166
  return true;
2167
2167
  };
2168
2168
  function XYZColorSpace() {
2169
2169
  }
2170
2170
  function XYZColorSpace_0(whitePoint) {
2171
- return whitePoint.equals(Illuminant_getInstance().y2y_1) ? XYZColorSpaces_getInstance().q2y_1 : whitePoint.equals(Illuminant_getInstance().w2y_1) ? XYZColorSpaces_getInstance().r2y_1 : new XYZColorSpaceImpl(whitePoint);
2171
+ return whitePoint.equals(Illuminant_getInstance().v2y_1) ? XYZColorSpaces_getInstance().n2y_1 : whitePoint.equals(Illuminant_getInstance().t2y_1) ? XYZColorSpaces_getInstance().o2y_1 : new XYZColorSpaceImpl(whitePoint);
2172
2172
  }
2173
2173
  function XYZColorSpaces() {
2174
2174
  XYZColorSpaces_instance = this;
2175
- this.q2y_1 = new XYZColorSpaceImpl(Illuminant_getInstance().y2y_1);
2176
- this.r2y_1 = new XYZColorSpaceImpl(Illuminant_getInstance().w2y_1);
2175
+ this.n2y_1 = new XYZColorSpaceImpl(Illuminant_getInstance().v2y_1);
2176
+ this.o2y_1 = new XYZColorSpaceImpl(Illuminant_getInstance().t2y_1);
2177
2177
  }
2178
2178
  var XYZColorSpaces_instance;
2179
2179
  function XYZColorSpaces_getInstance() {
@@ -2184,37 +2184,37 @@
2184
2184
  function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
2185
2185
  xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
2186
2186
  lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
2187
- var dstWp = _this__u8e3s4.p2y().k30_1;
2188
- var src = dot_0(xyzToLms, srcWp.o31(), srcWp.n31_1, srcWp.p31());
2189
- var dst = dot_0(xyzToLms, dstWp.o31(), dstWp.n31_1, dstWp.p31());
2187
+ var dstWp = _this__u8e3s4.m2y().h30_1;
2188
+ var src = dot_0(xyzToLms, srcWp.l31(), srcWp.k31_1, srcWp.m31());
2189
+ var dst = dot_0(xyzToLms, dstWp.l31(), dstWp.k31_1, dstWp.m31());
2190
2190
  return dot(dotDiagonal(lmsToXyz, _Vector___get_l__impl__envr1l(dst) / _Vector___get_l__impl__envr1l(src), _Vector___get_m__impl__e5qq0m(dst) / _Vector___get_m__impl__e5qq0m(src), _Vector___get_s__impl__pzuljk(dst) / _Vector___get_s__impl__pzuljk(src)), xyzToLms);
2191
2191
  }
2192
2192
  function XYZColorSpaceImpl(whitePoint) {
2193
- this.c33_1 = whitePoint;
2194
- this.d33_1 = zeroOneComponentInfo('XYZ');
2193
+ this.z32_1 = whitePoint;
2194
+ this.a33_1 = zeroOneComponentInfo('XYZ');
2195
2195
  }
2196
- protoOf(XYZColorSpaceImpl).p2y = function () {
2197
- return this.c33_1;
2196
+ protoOf(XYZColorSpaceImpl).m2y = function () {
2197
+ return this.z32_1;
2198
2198
  };
2199
2199
  protoOf(XYZColorSpaceImpl).w1 = function () {
2200
2200
  return 'XYZ';
2201
2201
  };
2202
- protoOf(XYZColorSpaceImpl).k2y = function (color) {
2203
- return color.x2x().s2y(this);
2202
+ protoOf(XYZColorSpaceImpl).h2y = function (color) {
2203
+ return color.u2x().p2y(this);
2204
2204
  };
2205
2205
  protoOf(XYZColorSpaceImpl).toString = function () {
2206
- return 'XYZColorSpace(' + this.c33_1.toString() + ')';
2206
+ return 'XYZColorSpace(' + this.z32_1.toString() + ')';
2207
2207
  };
2208
- protoOf(XYZColorSpaceImpl).o30 = function (x, y, z, alpha) {
2208
+ protoOf(XYZColorSpaceImpl).l30 = function (x, y, z, alpha) {
2209
2209
  return new XYZ(x, y, z, alpha, this);
2210
2210
  };
2211
2211
  protoOf(XYZColorSpaceImpl).hashCode = function () {
2212
- return this.c33_1.hashCode();
2212
+ return this.z32_1.hashCode();
2213
2213
  };
2214
2214
  protoOf(XYZColorSpaceImpl).equals = function (other) {
2215
2215
  var tmp;
2216
2216
  if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
2217
- tmp = this.c33_1.equals(other.p2y());
2217
+ tmp = this.z32_1.equals(other.m2y());
2218
2218
  } else {
2219
2219
  tmp = false;
2220
2220
  }
@@ -2230,26 +2230,26 @@
2230
2230
  }
2231
2231
  function xyY(x, y, Y) {
2232
2232
  Y = Y === VOID ? 1.0 : Y;
2233
- this.l31_1 = x;
2234
- this.m31_1 = y;
2235
- this.n31_1 = Y;
2233
+ this.i31_1 = x;
2234
+ this.j31_1 = y;
2235
+ this.k31_1 = Y;
2236
2236
  }
2237
- protoOf(xyY).x32 = function () {
2238
- return 1 - this.l31_1 - this.m31_1;
2237
+ protoOf(xyY).u32 = function () {
2238
+ return 1 - this.i31_1 - this.j31_1;
2239
2239
  };
2240
- protoOf(xyY).o31 = function () {
2241
- return this.l31_1 * this.n31_1 / this.m31_1;
2240
+ protoOf(xyY).l31 = function () {
2241
+ return this.i31_1 * this.k31_1 / this.j31_1;
2242
2242
  };
2243
- protoOf(xyY).p31 = function () {
2244
- return (1 - this.l31_1 - this.m31_1) * this.n31_1 / this.m31_1;
2243
+ protoOf(xyY).m31 = function () {
2244
+ return (1 - this.i31_1 - this.j31_1) * this.k31_1 / this.j31_1;
2245
2245
  };
2246
2246
  protoOf(xyY).toString = function () {
2247
- return 'xyY(x=' + this.l31_1 + ', y=' + this.m31_1 + ', Y=' + this.n31_1 + ')';
2247
+ return 'xyY(x=' + this.i31_1 + ', y=' + this.j31_1 + ', Y=' + this.k31_1 + ')';
2248
2248
  };
2249
2249
  protoOf(xyY).hashCode = function () {
2250
- var result = getNumberHashCode(this.l31_1);
2251
- result = imul(result, 31) + getNumberHashCode(this.m31_1) | 0;
2252
- result = imul(result, 31) + getNumberHashCode(this.n31_1) | 0;
2250
+ var result = getNumberHashCode(this.i31_1);
2251
+ result = imul(result, 31) + getNumberHashCode(this.j31_1) | 0;
2252
+ result = imul(result, 31) + getNumberHashCode(this.k31_1) | 0;
2253
2253
  return result;
2254
2254
  };
2255
2255
  protoOf(xyY).equals = function (other) {
@@ -2258,33 +2258,33 @@
2258
2258
  if (!(other instanceof xyY))
2259
2259
  return false;
2260
2260
  var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
2261
- if (!equals(this.l31_1, tmp0_other_with_cast.l31_1))
2261
+ if (!equals(this.i31_1, tmp0_other_with_cast.i31_1))
2262
2262
  return false;
2263
- if (!equals(this.m31_1, tmp0_other_with_cast.m31_1))
2263
+ if (!equals(this.j31_1, tmp0_other_with_cast.j31_1))
2264
2264
  return false;
2265
- if (!equals(this.n31_1, tmp0_other_with_cast.n31_1))
2265
+ if (!equals(this.k31_1, tmp0_other_with_cast.k31_1))
2266
2266
  return false;
2267
2267
  return true;
2268
2268
  };
2269
2269
  //region block: post-declaration
2270
- protoOf(HSL).x2x = toXYZ;
2271
- protoOf(HSL).y2x = toLAB;
2272
- protoOf(HSL).e2y = toLCHab;
2273
- protoOf(LAB).r2x = toHSL;
2274
- protoOf(LABColorSpaceImpl).j31 = invoke;
2275
- protoOf(LCHab).r2x = toHSL;
2276
- protoOf(RGB).y2x = toLAB;
2277
- protoOf(RGB).e2y = toLCHab;
2278
- protoOf(RGBColorSpaceImpl).j31 = invoke_0;
2279
- protoOf(RGBInt).r2x = toHSL;
2280
- protoOf(RGBInt).x2x = toXYZ;
2281
- protoOf(RGBInt).y2x = toLAB;
2282
- protoOf(RGBInt).e2y = toLCHab;
2283
- protoOf(Companion_4).k31 = invoke$default;
2284
- protoOf(XYZ).r2x = toHSL;
2285
- protoOf(XYZ).e2y = toLCHab;
2286
- protoOf(XYZColorSpaceImpl).j31 = invoke_1;
2287
- protoOf(XYZColorSpaceImpl).k31 = invoke$default;
2270
+ protoOf(HSL).u2x = toXYZ;
2271
+ protoOf(HSL).v2x = toLAB;
2272
+ protoOf(HSL).b2y = toLCHab;
2273
+ protoOf(LAB).o2x = toHSL;
2274
+ protoOf(LABColorSpaceImpl).g31 = invoke;
2275
+ protoOf(LCHab).o2x = toHSL;
2276
+ protoOf(RGB).v2x = toLAB;
2277
+ protoOf(RGB).b2y = toLCHab;
2278
+ protoOf(RGBColorSpaceImpl).g31 = invoke_0;
2279
+ protoOf(RGBInt).o2x = toHSL;
2280
+ protoOf(RGBInt).u2x = toXYZ;
2281
+ protoOf(RGBInt).v2x = toLAB;
2282
+ protoOf(RGBInt).b2y = toLCHab;
2283
+ protoOf(Companion_4).h31 = invoke$default;
2284
+ protoOf(XYZ).o2x = toHSL;
2285
+ protoOf(XYZ).b2y = toLCHab;
2286
+ protoOf(XYZColorSpaceImpl).g31 = invoke_1;
2287
+ protoOf(XYZColorSpaceImpl).h31 = invoke$default;
2288
2288
  //endregion
2289
2289
  //region block: init
2290
2290
  PqNonlinearity_instance = new PqNonlinearity();