@cruglobal/godtools-shared 0.9.3-SNAPSHOT.1394 → 0.9.3-SNAPSHOT.1400
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/88b0986a7186d029-atomicfu-js-ir.js +32 -32
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Napier-napier-js-ir.js +64 -66
- package/Napier-napier-js-ir.js.map +1 -1
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js +3633 -3662
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js.map +1 -1
- package/colormath-root-colormath.js +1023 -1075
- package/colormath-root-colormath.js.map +1 -1
- package/fluid-locale.js +252 -266
- package/fluid-locale.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +8068 -7747
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +494 -492
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +3822 -4565
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +309 -290
- package/kotlin-mpp-godtools-tool-parser-module-state.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +1 -1
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.js +3 -3
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3722 -3860
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
|
@@ -1,107 +1,106 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof this['kotlin-kotlin-stdlib
|
|
8
|
-
throw new Error("Error loading module 'colormath-root-colormath'. Its dependency 'kotlin-kotlin-stdlib
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'colormath-root-colormath'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'colormath-root-colormath'.");
|
|
9
9
|
}
|
|
10
|
-
root['colormath-root-colormath'] = factory(typeof this['colormath-root-colormath'] === 'undefined' ? {} : this['colormath-root-colormath'], this['kotlin-kotlin-stdlib
|
|
10
|
+
root['colormath-root-colormath'] = factory(typeof this['colormath-root-colormath'] === 'undefined' ? {} : this['colormath-root-colormath'], this['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
12
|
}(this, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var log2 = Math.log2;
|
|
17
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
18
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
40
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
41
|
-
var coerceIn_0 = kotlin_kotlin.$_$.
|
|
42
|
-
var toDouble = kotlin_kotlin.$_$.
|
|
43
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var objectCreate = kotlin_kotlin.$_$.q6;
|
|
17
|
+
var protoOf = kotlin_kotlin.$_$.t6;
|
|
18
|
+
var objectMeta = kotlin_kotlin.$_$.s6;
|
|
19
|
+
var setMetadataFor = kotlin_kotlin.$_$.u6;
|
|
20
|
+
var interfaceMeta = kotlin_kotlin.$_$.i6;
|
|
21
|
+
var classMeta = kotlin_kotlin.$_$.y5;
|
|
22
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
23
|
+
var Companion_instance = kotlin_kotlin.$_$.m2;
|
|
24
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.x1;
|
|
25
|
+
var createFailure = kotlin_kotlin.$_$.n9;
|
|
26
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.a2;
|
|
27
|
+
var THROW_CCE = kotlin_kotlin.$_$.h9;
|
|
28
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.z1;
|
|
29
|
+
var startsWith = kotlin_kotlin.$_$.e8;
|
|
30
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
31
|
+
var endsWith = kotlin_kotlin.$_$.r7;
|
|
32
|
+
var coerceAtLeast = kotlin_kotlin.$_$.d7;
|
|
33
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.a3;
|
|
34
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
35
|
+
var Unit_instance = kotlin_kotlin.$_$.o2;
|
|
36
|
+
var get_lastIndex = kotlin_kotlin.$_$.x3;
|
|
37
|
+
var charSequenceLength = kotlin_kotlin.$_$.x5;
|
|
38
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
39
|
+
var coerceIn = kotlin_kotlin.$_$.f7;
|
|
40
|
+
var roundToInt = kotlin_kotlin.$_$.z6;
|
|
41
|
+
var coerceIn_0 = kotlin_kotlin.$_$.g7;
|
|
42
|
+
var toDouble = kotlin_kotlin.$_$.k8;
|
|
43
|
+
var dropLast = kotlin_kotlin.$_$.q7;
|
|
44
|
+
var Enum = kotlin_kotlin.$_$.w8;
|
|
45
|
+
var equals = kotlin_kotlin.$_$.b6;
|
|
46
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
47
|
+
var dropLast_0 = kotlin_kotlin.$_$.i3;
|
|
48
|
+
var joinTo = kotlin_kotlin.$_$.w3;
|
|
49
|
+
var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.c2;
|
|
50
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s1;
|
|
51
|
+
var indexOf = kotlin_kotlin.$_$.v7;
|
|
52
|
+
var take = kotlin_kotlin.$_$.g8;
|
|
53
|
+
var charArrayOf = kotlin_kotlin.$_$.v5;
|
|
54
|
+
var trimEnd = kotlin_kotlin.$_$.r8;
|
|
55
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.r9;
|
|
56
|
+
var isNaN_0 = kotlin_kotlin.$_$.p9;
|
|
57
|
+
var joinTo_0 = kotlin_kotlin.$_$.v3;
|
|
58
|
+
var numberToDouble = kotlin_kotlin.$_$.p6;
|
|
59
|
+
var getStringHashCode = kotlin_kotlin.$_$.g6;
|
|
60
|
+
var charSequenceGet = kotlin_kotlin.$_$.w5;
|
|
61
|
+
var toString = kotlin_kotlin.$_$.w1;
|
|
62
|
+
var copyToArray = kotlin_kotlin.$_$.h3;
|
|
63
|
+
var plus = kotlin_kotlin.$_$.i4;
|
|
64
|
+
var asList = kotlin_kotlin.$_$.y2;
|
|
65
|
+
var to = kotlin_kotlin.$_$.v9;
|
|
66
|
+
var mapOf = kotlin_kotlin.$_$.f4;
|
|
67
|
+
var withSign = kotlin_kotlin.$_$.a7;
|
|
68
|
+
var get_PI = kotlin_kotlin.$_$.y6;
|
|
69
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.b7;
|
|
70
|
+
var getNumberHashCode = kotlin_kotlin.$_$.e6;
|
|
71
|
+
var numberToInt = kotlin_kotlin.$_$.q6;
|
|
72
|
+
var FloatCompanionObject_instance = kotlin_kotlin.$_$.i2;
|
|
73
|
+
var hashCode = kotlin_kotlin.$_$.h6;
|
|
74
|
+
var isInterface = kotlin_kotlin.$_$.l6;
|
|
75
|
+
var toString_0 = kotlin_kotlin.$_$.x6;
|
|
76
|
+
var get_lastIndex_0 = kotlin_kotlin.$_$.z3;
|
|
77
|
+
var DoubleCompanionObject_instance = kotlin_kotlin.$_$.h2;
|
|
78
|
+
var Char = kotlin_kotlin.$_$.t8;
|
|
79
|
+
var toInt = kotlin_kotlin.$_$.n8;
|
|
80
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.m6;
|
|
81
|
+
var slice = kotlin_kotlin.$_$.a8;
|
|
82
|
+
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.d2;
|
|
83
|
+
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.e2;
|
|
84
|
+
var toByte = kotlin_kotlin.$_$.v6;
|
|
85
|
+
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.b2;
|
|
86
|
+
var objectCreate = kotlin_kotlin.$_$.r6;
|
|
88
87
|
//endregion
|
|
89
88
|
//region block: pre-declaration
|
|
90
89
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
91
90
|
function toHSL() {
|
|
92
|
-
return this.
|
|
91
|
+
return this.q1i().r1i();
|
|
93
92
|
}
|
|
94
93
|
function toXYZ() {
|
|
95
|
-
return this.
|
|
94
|
+
return this.q1i().x1i();
|
|
96
95
|
}
|
|
97
96
|
function toLAB() {
|
|
98
|
-
return this.
|
|
97
|
+
return this.x1i().y1i();
|
|
99
98
|
}
|
|
100
99
|
function toLCHab() {
|
|
101
|
-
return this.
|
|
100
|
+
return this.y1i().e1j();
|
|
102
101
|
}
|
|
103
102
|
function toHWB() {
|
|
104
|
-
return this.
|
|
103
|
+
return this.q1i().k1j();
|
|
105
104
|
}
|
|
106
105
|
setMetadataFor(Color, 'Color', interfaceMeta);
|
|
107
106
|
setMetadataFor(WhitePointColorSpace, 'WhitePointColorSpace', interfaceMeta);
|
|
@@ -119,7 +118,7 @@
|
|
|
119
118
|
setMetadataFor(ICtCp, 'ICtCp', classMeta, VOID, [Color]);
|
|
120
119
|
setMetadataFor(PqNonlinearity, 'PqNonlinearity', objectMeta);
|
|
121
120
|
function invoke(l, a, b, alpha) {
|
|
122
|
-
return this.
|
|
121
|
+
return this.k1k(numberToDouble(l), numberToDouble(a), numberToDouble(b), numberToDouble(alpha));
|
|
123
122
|
}
|
|
124
123
|
setMetadataFor(LABColorSpace, 'LABColorSpace', interfaceMeta, VOID, [WhitePointColorSpace]);
|
|
125
124
|
setMetadataFor(Companion_2, 'Companion', objectMeta, VOID, [LABColorSpace]);
|
|
@@ -133,34 +132,30 @@
|
|
|
133
132
|
setMetadataFor(GammaTransferFunctions, 'GammaTransferFunctions', classMeta);
|
|
134
133
|
setMetadataFor(LinearTransferFunctions, 'LinearTransferFunctions', objectMeta);
|
|
135
134
|
function invoke_0(r, g, b, alpha) {
|
|
136
|
-
return this.
|
|
135
|
+
return this.k1k(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
137
136
|
}
|
|
138
137
|
function from255(r, g, b, alpha) {
|
|
139
|
-
return this.
|
|
138
|
+
return this.k1k(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
140
139
|
}
|
|
141
140
|
function from255$default(r, g, b, alpha, $super) {
|
|
142
141
|
alpha = alpha === VOID ? 255 : alpha;
|
|
143
|
-
return $super === VOID ? this.
|
|
142
|
+
return $super === VOID ? this.g1m(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
144
143
|
}
|
|
145
144
|
function invoke_1(hex) {
|
|
146
145
|
var tmp = parseHex(validateHex(hex), 0);
|
|
147
146
|
var tmp_0 = parseHex(hex, 1);
|
|
148
147
|
var tmp_1 = parseHex(hex, 2);
|
|
149
148
|
var tmp_2;
|
|
150
|
-
var tmp$ret$1;
|
|
151
149
|
// Inline function 'kotlin.let' call
|
|
152
|
-
var tmp0_let = get_hexLength(hex);
|
|
153
150
|
// Inline function 'kotlin.contracts.contract' call
|
|
154
|
-
var tmp$ret$0;
|
|
155
151
|
// Inline function 'com.github.ajalt.colormath.model.RGBColorSpace.invoke.<anonymous>' call
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
if (tmp$ret$1) {
|
|
152
|
+
var it = get_hexLength(hex);
|
|
153
|
+
if (it === 4 ? true : it === 8) {
|
|
159
154
|
tmp_2 = parseHex(hex, 3);
|
|
160
155
|
} else {
|
|
161
156
|
tmp_2 = 255;
|
|
162
157
|
}
|
|
163
|
-
return this.
|
|
158
|
+
return this.g1m(tmp, tmp_0, tmp_1, tmp_2);
|
|
164
159
|
}
|
|
165
160
|
setMetadataFor(RGBColorSpace, 'RGBColorSpace', interfaceMeta, VOID, [WhitePointColorSpace]);
|
|
166
161
|
setMetadataFor(Companion_4, 'Companion', objectMeta, VOID, [RGBColorSpace]);
|
|
@@ -176,11 +171,11 @@
|
|
|
176
171
|
setMetadataFor(RGBColorSpaceImpl, 'RGBColorSpaceImpl', classMeta, VOID, [RGBColorSpace]);
|
|
177
172
|
setMetadataFor(BT2020TransferFunctions, 'BT2020TransferFunctions', objectMeta);
|
|
178
173
|
function invoke_2(x, y, z, alpha) {
|
|
179
|
-
return this.
|
|
174
|
+
return this.k1k(numberToDouble(x), numberToDouble(y), numberToDouble(z), numberToDouble(alpha));
|
|
180
175
|
}
|
|
181
176
|
function invoke$default(x, y, z, alpha, $super) {
|
|
182
177
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
183
|
-
return $super === VOID ? this.
|
|
178
|
+
return $super === VOID ? this.h1n(x, y, z, alpha) : invoke_2(x, y, z, alpha);
|
|
184
179
|
}
|
|
185
180
|
setMetadataFor(XYZColorSpace, 'XYZColorSpace', interfaceMeta, VOID, [WhitePointColorSpace]);
|
|
186
181
|
setMetadataFor(Companion_5, 'Companion', objectMeta, VOID, [XYZColorSpace]);
|
|
@@ -190,24 +185,21 @@
|
|
|
190
185
|
setMetadataFor(xyY, 'xyY', classMeta);
|
|
191
186
|
//endregion
|
|
192
187
|
function Companion() {
|
|
193
|
-
Companion_instance = this;
|
|
194
188
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
-
new Companion();
|
|
199
|
-
return Companion_instance;
|
|
189
|
+
var Companion_instance_0;
|
|
190
|
+
function Companion_getInstance() {
|
|
191
|
+
return Companion_instance_0;
|
|
200
192
|
}
|
|
201
193
|
function Color() {
|
|
202
194
|
}
|
|
203
195
|
function convertTo(_this__u8e3s4, space) {
|
|
204
|
-
return space.
|
|
196
|
+
return space.l1j(_this__u8e3s4);
|
|
205
197
|
}
|
|
206
198
|
function WhitePointColorSpace() {
|
|
207
199
|
}
|
|
208
200
|
function ColorComponentInfo(name, isPolar) {
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
201
|
+
this.p1j_1 = name;
|
|
202
|
+
this.q1j_1 = isPolar;
|
|
211
203
|
}
|
|
212
204
|
function parse(_this__u8e3s4, color) {
|
|
213
205
|
var tmp0_elvis_lhs = parseOrNull(_this__u8e3s4, color);
|
|
@@ -220,7 +212,7 @@
|
|
|
220
212
|
return tmp;
|
|
221
213
|
}
|
|
222
214
|
function parseOrNull(_this__u8e3s4, color_0) {
|
|
223
|
-
var keywordColor = CssColors_getInstance().
|
|
215
|
+
var keywordColor = CssColors_getInstance().r1j_1.p2(color_0);
|
|
224
216
|
var tmp;
|
|
225
217
|
if (!(keywordColor == null)) {
|
|
226
218
|
tmp = keywordColor;
|
|
@@ -230,33 +222,31 @@
|
|
|
230
222
|
var tmp_0;
|
|
231
223
|
try {
|
|
232
224
|
// Inline function 'kotlin.Companion.success' call
|
|
233
|
-
Companion_getInstance();
|
|
234
225
|
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
235
|
-
var
|
|
236
|
-
tmp_0 = _Result___init__impl__xyqfz8(
|
|
226
|
+
var value = Companion_getInstance_4().j1k(color_0);
|
|
227
|
+
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
237
228
|
} catch ($p) {
|
|
238
229
|
var tmp_1;
|
|
239
230
|
if ($p instanceof Error) {
|
|
240
231
|
var e = $p;
|
|
241
232
|
// Inline function 'kotlin.Companion.failure' call
|
|
242
|
-
Companion_getInstance();
|
|
243
233
|
tmp_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
244
234
|
} else {
|
|
245
235
|
throw $p;
|
|
246
236
|
}
|
|
247
237
|
tmp_0 = tmp_1;
|
|
248
238
|
}
|
|
249
|
-
var
|
|
239
|
+
var this_0 = tmp_0;
|
|
250
240
|
var tmp_2;
|
|
251
|
-
if (_Result___get_isFailure__impl__jpiriv(
|
|
241
|
+
if (_Result___get_isFailure__impl__jpiriv(this_0)) {
|
|
252
242
|
tmp_2 = null;
|
|
253
243
|
} else {
|
|
254
|
-
var tmp_3 = _Result___get_value__impl__bjfvqg(
|
|
255
|
-
tmp_2 = (tmp_3 == null ? true :
|
|
244
|
+
var tmp_3 = _Result___get_value__impl__bjfvqg(this_0);
|
|
245
|
+
tmp_2 = (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
|
|
256
246
|
}
|
|
257
247
|
tmp = tmp_2;
|
|
258
248
|
} else {
|
|
259
|
-
var tmp0_safe_receiver = PATTERNS_getInstance().
|
|
249
|
+
var tmp0_safe_receiver = PATTERNS_getInstance().y1j_1.l8(color_0);
|
|
260
250
|
var tmp_4;
|
|
261
251
|
if (tmp0_safe_receiver == null) {
|
|
262
252
|
tmp_4 = null;
|
|
@@ -269,7 +259,7 @@
|
|
|
269
259
|
var tmp2_elvis_lhs = tmp_4;
|
|
270
260
|
var tmp_5;
|
|
271
261
|
if (tmp2_elvis_lhs == null) {
|
|
272
|
-
var tmp1_safe_receiver = PATTERNS_getInstance().
|
|
262
|
+
var tmp1_safe_receiver = PATTERNS_getInstance().z1j_1.l8(color_0);
|
|
273
263
|
var tmp_6;
|
|
274
264
|
if (tmp1_safe_receiver == null) {
|
|
275
265
|
tmp_6 = null;
|
|
@@ -286,7 +276,7 @@
|
|
|
286
276
|
var tmp4_elvis_lhs = tmp_5;
|
|
287
277
|
var tmp_7;
|
|
288
278
|
if (tmp4_elvis_lhs == null) {
|
|
289
|
-
var tmp3_safe_receiver = PATTERNS_getInstance().
|
|
279
|
+
var tmp3_safe_receiver = PATTERNS_getInstance().a1k_1.l8(color_0);
|
|
290
280
|
var tmp_8;
|
|
291
281
|
if (tmp3_safe_receiver == null) {
|
|
292
282
|
tmp_8 = null;
|
|
@@ -303,7 +293,7 @@
|
|
|
303
293
|
var tmp6_elvis_lhs = tmp_7;
|
|
304
294
|
var tmp_9;
|
|
305
295
|
if (tmp6_elvis_lhs == null) {
|
|
306
|
-
var tmp5_safe_receiver = PATTERNS_getInstance().
|
|
296
|
+
var tmp5_safe_receiver = PATTERNS_getInstance().b1k_1.l8(color_0);
|
|
307
297
|
var tmp_10;
|
|
308
298
|
if (tmp5_safe_receiver == null) {
|
|
309
299
|
tmp_10 = null;
|
|
@@ -320,7 +310,7 @@
|
|
|
320
310
|
var tmp8_elvis_lhs = tmp_9;
|
|
321
311
|
var tmp_11;
|
|
322
312
|
if (tmp8_elvis_lhs == null) {
|
|
323
|
-
var tmp7_safe_receiver = PATTERNS_getInstance().
|
|
313
|
+
var tmp7_safe_receiver = PATTERNS_getInstance().c1k_1.l8(color_0);
|
|
324
314
|
var tmp_12;
|
|
325
315
|
if (tmp7_safe_receiver == null) {
|
|
326
316
|
tmp_12 = null;
|
|
@@ -337,7 +327,7 @@
|
|
|
337
327
|
var tmp10_elvis_lhs = tmp_11;
|
|
338
328
|
var tmp_13;
|
|
339
329
|
if (tmp10_elvis_lhs == null) {
|
|
340
|
-
var tmp9_safe_receiver = PATTERNS_getInstance().
|
|
330
|
+
var tmp9_safe_receiver = PATTERNS_getInstance().d1k_1.l8(color_0);
|
|
341
331
|
var tmp_14;
|
|
342
332
|
if (tmp9_safe_receiver == null) {
|
|
343
333
|
tmp_14 = null;
|
|
@@ -354,7 +344,7 @@
|
|
|
354
344
|
var tmp12_elvis_lhs = tmp_13;
|
|
355
345
|
var tmp_15;
|
|
356
346
|
if (tmp12_elvis_lhs == null) {
|
|
357
|
-
var tmp11_safe_receiver = PATTERNS_getInstance().
|
|
347
|
+
var tmp11_safe_receiver = PATTERNS_getInstance().e1k_1.l8(color_0);
|
|
358
348
|
var tmp_16;
|
|
359
349
|
if (tmp11_safe_receiver == null) {
|
|
360
350
|
tmp_16 = null;
|
|
@@ -371,7 +361,7 @@
|
|
|
371
361
|
var tmp14_elvis_lhs = tmp_15;
|
|
372
362
|
var tmp_17;
|
|
373
363
|
if (tmp14_elvis_lhs == null) {
|
|
374
|
-
var tmp13_safe_receiver = PATTERNS_getInstance().
|
|
364
|
+
var tmp13_safe_receiver = PATTERNS_getInstance().f1k_1.l8(color_0);
|
|
375
365
|
var tmp_18;
|
|
376
366
|
if (tmp13_safe_receiver == null) {
|
|
377
367
|
tmp_18 = null;
|
|
@@ -388,7 +378,7 @@
|
|
|
388
378
|
var tmp16_elvis_lhs = tmp_17;
|
|
389
379
|
var tmp_19;
|
|
390
380
|
if (tmp16_elvis_lhs == null) {
|
|
391
|
-
var tmp15_safe_receiver = PATTERNS_getInstance().
|
|
381
|
+
var tmp15_safe_receiver = PATTERNS_getInstance().g1k_1.l8(color_0);
|
|
392
382
|
var tmp_20;
|
|
393
383
|
if (tmp15_safe_receiver == null) {
|
|
394
384
|
tmp_20 = null;
|
|
@@ -405,7 +395,7 @@
|
|
|
405
395
|
var tmp18_elvis_lhs = tmp_19;
|
|
406
396
|
var tmp_21;
|
|
407
397
|
if (tmp18_elvis_lhs == null) {
|
|
408
|
-
var tmp17_safe_receiver = PATTERNS_getInstance().
|
|
398
|
+
var tmp17_safe_receiver = PATTERNS_getInstance().h1k_1.l8(color_0);
|
|
409
399
|
var tmp_22;
|
|
410
400
|
if (tmp17_safe_receiver == null) {
|
|
411
401
|
tmp_22 = null;
|
|
@@ -425,22 +415,22 @@
|
|
|
425
415
|
}
|
|
426
416
|
function PATTERNS() {
|
|
427
417
|
PATTERNS_instance = this;
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
418
|
+
this.s1j_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?';
|
|
419
|
+
this.t1j_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%';
|
|
420
|
+
this.u1j_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?';
|
|
421
|
+
this.v1j_1 = '\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
422
|
+
this.w1j_1 = '(?:\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
423
|
+
this.x1j_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?';
|
|
424
|
+
this.y1j_1 = Regex_init_$Create$('rgba?\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
425
|
+
this.z1j_1 = Regex_init_$Create$('rgba?\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)(?:\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
426
|
+
this.a1k_1 = Regex_init_$Create$('rgba?\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
427
|
+
this.b1k_1 = Regex_init_$Create$('rgba?\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)(?:\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
428
|
+
this.c1k_1 = Regex_init_$Create$('hsla?\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
429
|
+
this.d1k_1 = Regex_init_$Create$('hsla?\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?)\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)(?:\\s*,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
430
|
+
this.e1k_1 = Regex_init_$Create$('lab\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
431
|
+
this.f1k_1 = Regex_init_$Create$('lch\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
432
|
+
this.g1k_1 = Regex_init_$Create$('hwb\\(([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
433
|
+
this.h1k_1 = Regex_init_$Create$('color\\(([\\w\\-]+)\\s+([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?(?:\\s+[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?)*)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
444
434
|
}
|
|
445
435
|
var PATTERNS_instance;
|
|
446
436
|
function PATTERNS_getInstance() {
|
|
@@ -449,66 +439,66 @@
|
|
|
449
439
|
return PATTERNS_instance;
|
|
450
440
|
}
|
|
451
441
|
function rgb(match) {
|
|
452
|
-
var r = percentOrNumber(match.
|
|
453
|
-
var g = percentOrNumber(match.
|
|
454
|
-
var b = percentOrNumber(match.
|
|
455
|
-
var a = alpha(match.
|
|
442
|
+
var r = percentOrNumber(match.p9().b1(1));
|
|
443
|
+
var g = percentOrNumber(match.p9().b1(2));
|
|
444
|
+
var b = percentOrNumber(match.p9().b1(3));
|
|
445
|
+
var a = alpha(match.p9().b1(4));
|
|
456
446
|
var tmp;
|
|
457
|
-
if (endsWith(match.
|
|
458
|
-
tmp =
|
|
447
|
+
if (endsWith(match.p9().b1(1), '%')) {
|
|
448
|
+
tmp = Companion_getInstance_4().k1k(clampF(r), clampF(g), clampF(b), a);
|
|
459
449
|
} else {
|
|
460
|
-
tmp =
|
|
450
|
+
tmp = Companion_getInstance_4().k1k(clampInt(r) / 255.0, clampInt(g) / 255.0, clampInt(b) / 255.0, a);
|
|
461
451
|
}
|
|
462
452
|
return tmp;
|
|
463
453
|
}
|
|
464
454
|
function hsl(match) {
|
|
465
|
-
var h = hue(match.
|
|
466
|
-
var s = percent(match.
|
|
467
|
-
var l = percent(match.
|
|
468
|
-
var a = alpha(match.
|
|
455
|
+
var h = hue(match.p9().b1(1));
|
|
456
|
+
var s = percent(match.p9().b1(2));
|
|
457
|
+
var l = percent(match.p9().b1(3));
|
|
458
|
+
var a = alpha(match.p9().b1(4));
|
|
469
459
|
return new HSL(h, clampF(s), clampF(l), clampF(a));
|
|
470
460
|
}
|
|
471
461
|
function lab(match) {
|
|
472
|
-
var l = percent(match.
|
|
473
|
-
var a = number(match.
|
|
474
|
-
var b = number(match.
|
|
475
|
-
var alpha_0 = alpha(match.
|
|
476
|
-
return
|
|
462
|
+
var l = percent(match.p9().b1(1));
|
|
463
|
+
var a = number(match.p9().b1(2));
|
|
464
|
+
var b = number(match.p9().b1(3));
|
|
465
|
+
var alpha_0 = alpha(match.p9().b1(4));
|
|
466
|
+
return Companion_getInstance_2().k1k(coerceAtLeast(l, 0.0) * 100.0, a, b, alpha_0);
|
|
477
467
|
}
|
|
478
468
|
function lch(match) {
|
|
479
|
-
var l = percent(match.
|
|
480
|
-
var c = number(match.
|
|
481
|
-
var h = hue(match.
|
|
482
|
-
var a = alpha(match.
|
|
483
|
-
return
|
|
469
|
+
var l = percent(match.p9().b1(1));
|
|
470
|
+
var c = number(match.p9().b1(2));
|
|
471
|
+
var h = hue(match.p9().b1(3));
|
|
472
|
+
var a = alpha(match.p9().b1(4));
|
|
473
|
+
return Companion_getInstance_3().k1k(coerceAtLeast(l, 0.0) * 100.0, coerceAtLeast(c, 0.0), h, a);
|
|
484
474
|
}
|
|
485
475
|
function hwb(match) {
|
|
486
|
-
var h = hue(match.
|
|
487
|
-
var w = percent(match.
|
|
488
|
-
var b = percent(match.
|
|
489
|
-
var a = alpha(match.
|
|
476
|
+
var h = hue(match.p9().b1(1));
|
|
477
|
+
var w = percent(match.p9().b1(2));
|
|
478
|
+
var b = percent(match.p9().b1(3));
|
|
479
|
+
var a = alpha(match.p9().b1(4));
|
|
490
480
|
return new HWB(h, clampF(w), clampF(b), a);
|
|
491
481
|
}
|
|
492
482
|
function color(match) {
|
|
493
483
|
var tmp;
|
|
494
|
-
switch (match.
|
|
484
|
+
switch (match.p9().b1(1)) {
|
|
495
485
|
case 'srgb':
|
|
496
486
|
tmp = SRGB_getInstance();
|
|
497
487
|
break;
|
|
498
488
|
case 'display-p3':
|
|
499
|
-
tmp = RGBColorSpaces_getInstance().
|
|
489
|
+
tmp = RGBColorSpaces_getInstance().x1k_1;
|
|
500
490
|
break;
|
|
501
491
|
case 'a98-rgb':
|
|
502
|
-
tmp = RGBColorSpaces_getInstance().
|
|
492
|
+
tmp = RGBColorSpaces_getInstance().t1k_1;
|
|
503
493
|
break;
|
|
504
494
|
case 'prophoto-rgb':
|
|
505
|
-
tmp = RGBColorSpaces_getInstance().
|
|
495
|
+
tmp = RGBColorSpaces_getInstance().y1k_1;
|
|
506
496
|
break;
|
|
507
497
|
case 'rec2020':
|
|
508
|
-
tmp = RGBColorSpaces_getInstance().
|
|
498
|
+
tmp = RGBColorSpaces_getInstance().u1k_1;
|
|
509
499
|
break;
|
|
510
500
|
case 'xyz':
|
|
511
|
-
tmp = XYZColorSpaces_getInstance().
|
|
501
|
+
tmp = XYZColorSpaces_getInstance().a1l_1;
|
|
512
502
|
break;
|
|
513
503
|
default:
|
|
514
504
|
return null;
|
|
@@ -516,25 +506,23 @@
|
|
|
516
506
|
var space = tmp;
|
|
517
507
|
// Inline function 'kotlin.collections.map' call
|
|
518
508
|
// Inline function 'kotlin.text.split' call
|
|
519
|
-
var
|
|
520
|
-
var
|
|
509
|
+
var this_0 = match.p9().b1(2);
|
|
510
|
+
var this_1 = Regex_init_$Create$('\\s+').u8(this_0, 0);
|
|
521
511
|
// Inline function 'kotlin.collections.mapTo' call
|
|
522
|
-
var
|
|
523
|
-
var tmp0_iterator =
|
|
524
|
-
while (tmp0_iterator.
|
|
525
|
-
var item = tmp0_iterator.
|
|
526
|
-
var tmp$ret$1;
|
|
512
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
513
|
+
var tmp0_iterator = this_1.s();
|
|
514
|
+
while (tmp0_iterator.t()) {
|
|
515
|
+
var item = tmp0_iterator.u();
|
|
527
516
|
// Inline function 'com.github.ajalt.colormath.color.<anonymous>' call
|
|
528
|
-
tmp$ret$1 = clampF(percentOrNumber(item));
|
|
529
|
-
|
|
517
|
+
var tmp$ret$1 = clampF(percentOrNumber(item));
|
|
518
|
+
destination.p(tmp$ret$1);
|
|
530
519
|
}
|
|
531
|
-
var values =
|
|
532
|
-
var tmp$ret$10;
|
|
520
|
+
var values = destination;
|
|
533
521
|
// Inline function 'kotlin.floatArrayOf' call
|
|
534
522
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
535
523
|
var tmp_0;
|
|
536
|
-
if (0 <= get_lastIndex(values)) {
|
|
537
|
-
tmp_0 = values.
|
|
524
|
+
if (0 >= 0 ? 0 <= get_lastIndex(values) : false) {
|
|
525
|
+
tmp_0 = values.b1(0);
|
|
538
526
|
} else {
|
|
539
527
|
// Inline function 'com.github.ajalt.colormath.color.<anonymous>' call
|
|
540
528
|
tmp_0 = 0.0;
|
|
@@ -542,25 +530,24 @@
|
|
|
542
530
|
var tmp_1 = tmp_0;
|
|
543
531
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
544
532
|
var tmp_2;
|
|
545
|
-
if (1 <= get_lastIndex(values)) {
|
|
546
|
-
tmp_2 = values.
|
|
533
|
+
if (1 >= 0 ? 1 <= get_lastIndex(values) : false) {
|
|
534
|
+
tmp_2 = values.b1(1);
|
|
547
535
|
} else {
|
|
548
536
|
// Inline function 'com.github.ajalt.colormath.color.<anonymous>' call
|
|
549
537
|
tmp_2 = 0.0;
|
|
550
538
|
}
|
|
551
539
|
var tmp_3 = tmp_2;
|
|
552
|
-
var tmp$ret$9;
|
|
553
540
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
554
541
|
var tmp_4;
|
|
555
|
-
if (2 <= get_lastIndex(values)) {
|
|
556
|
-
tmp_4 = values.
|
|
542
|
+
if (2 >= 0 ? 2 <= get_lastIndex(values) : false) {
|
|
543
|
+
tmp_4 = values.b1(2);
|
|
557
544
|
} else {
|
|
558
545
|
// Inline function 'com.github.ajalt.colormath.color.<anonymous>' call
|
|
559
546
|
tmp_4 = 0.0;
|
|
560
547
|
}
|
|
561
|
-
tmp$ret$9 = tmp_4;
|
|
562
|
-
tmp$ret$10 = new Float32Array([tmp_1, tmp_3, tmp$ret$9, alpha(match.
|
|
563
|
-
return space.
|
|
548
|
+
var tmp$ret$9 = tmp_4;
|
|
549
|
+
var tmp$ret$10 = new Float32Array([tmp_1, tmp_3, tmp$ret$9, alpha(match.p9().b1(3))]);
|
|
550
|
+
return space.o1j(tmp$ret$10);
|
|
564
551
|
}
|
|
565
552
|
function percentOrNumber(str) {
|
|
566
553
|
return endsWith(str, '%') ? percent(str) : number(str);
|
|
@@ -583,42 +570,38 @@
|
|
|
583
570
|
function clampInt(_this__u8e3s4, min, max) {
|
|
584
571
|
min = min === VOID ? 0 : min;
|
|
585
572
|
max = max === VOID ? 255 : max;
|
|
586
|
-
var tmp$ret$0;
|
|
587
573
|
// Inline function 'kotlin.math.roundToInt' call
|
|
588
|
-
tmp$ret$0 = roundToInt(_this__u8e3s4);
|
|
574
|
+
var tmp$ret$0 = roundToInt(_this__u8e3s4);
|
|
589
575
|
return coerceIn_0(tmp$ret$0, min, max);
|
|
590
576
|
}
|
|
591
577
|
function hue(str) {
|
|
592
578
|
var tmp;
|
|
593
579
|
if (endsWith(str, 'deg')) {
|
|
594
580
|
// Inline function 'kotlin.text.toFloat' call
|
|
595
|
-
var
|
|
581
|
+
var this_0 = dropLast(str, 3);
|
|
596
582
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
597
583
|
// Inline function 'kotlin.js.asDynamic' call
|
|
598
|
-
tmp = toDouble(
|
|
584
|
+
tmp = toDouble(this_0);
|
|
599
585
|
} else if (endsWith(str, 'grad')) {
|
|
600
|
-
var tmp$ret$5;
|
|
601
586
|
// Inline function 'kotlin.text.toFloat' call
|
|
602
|
-
var
|
|
587
|
+
var this_1 = dropLast(str, 4);
|
|
603
588
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
604
589
|
// Inline function 'kotlin.js.asDynamic' call
|
|
605
|
-
tmp$ret$5 = toDouble(
|
|
590
|
+
var tmp$ret$5 = toDouble(this_1);
|
|
606
591
|
tmp = gradToDeg(tmp$ret$5);
|
|
607
592
|
} else if (endsWith(str, 'rad')) {
|
|
608
|
-
var tmp$ret$8;
|
|
609
593
|
// Inline function 'kotlin.text.toFloat' call
|
|
610
|
-
var
|
|
594
|
+
var this_2 = dropLast(str, 3);
|
|
611
595
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
612
596
|
// Inline function 'kotlin.js.asDynamic' call
|
|
613
|
-
tmp$ret$8 = toDouble(
|
|
597
|
+
var tmp$ret$8 = toDouble(this_2);
|
|
614
598
|
tmp = radToDeg(tmp$ret$8);
|
|
615
599
|
} else if (endsWith(str, 'turn')) {
|
|
616
|
-
var tmp$ret$11;
|
|
617
600
|
// Inline function 'kotlin.text.toFloat' call
|
|
618
|
-
var
|
|
601
|
+
var this_3 = dropLast(str, 4);
|
|
619
602
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
620
603
|
// Inline function 'kotlin.js.asDynamic' call
|
|
621
|
-
tmp$ret$11 = toDouble(
|
|
604
|
+
var tmp$ret$11 = toDouble(this_3);
|
|
622
605
|
tmp = turnToDeg(tmp$ret$11);
|
|
623
606
|
} else {
|
|
624
607
|
// Inline function 'kotlin.text.toFloat' call
|
|
@@ -631,10 +614,10 @@
|
|
|
631
614
|
}
|
|
632
615
|
function percent(str) {
|
|
633
616
|
// Inline function 'kotlin.text.toFloat' call
|
|
634
|
-
var
|
|
617
|
+
var this_0 = dropLast(str, 1);
|
|
635
618
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
636
619
|
// Inline function 'kotlin.js.asDynamic' call
|
|
637
|
-
return toDouble(
|
|
620
|
+
return toDouble(this_0) / 100.0;
|
|
638
621
|
}
|
|
639
622
|
function number(str) {
|
|
640
623
|
// Inline function 'kotlin.text.toFloat' call
|
|
@@ -648,7 +631,7 @@
|
|
|
648
631
|
var RenderCondition_entriesInitialized;
|
|
649
632
|
function RenderCondition_initEntries() {
|
|
650
633
|
if (RenderCondition_entriesInitialized)
|
|
651
|
-
return
|
|
634
|
+
return Unit_instance;
|
|
652
635
|
RenderCondition_entriesInitialized = true;
|
|
653
636
|
RenderCondition_ALWAYS_instance = new RenderCondition('ALWAYS', 0);
|
|
654
637
|
RenderCondition_NEVER_instance = new RenderCondition('NEVER', 1);
|
|
@@ -675,7 +658,7 @@
|
|
|
675
658
|
var AngleUnit_entriesInitialized;
|
|
676
659
|
function AngleUnit_initEntries() {
|
|
677
660
|
if (AngleUnit_entriesInitialized)
|
|
678
|
-
return
|
|
661
|
+
return Unit_instance;
|
|
679
662
|
AngleUnit_entriesInitialized = true;
|
|
680
663
|
AngleUnit_AUTO_instance = new AngleUnit('AUTO', 0);
|
|
681
664
|
AngleUnit_DEGREES_instance = new AngleUnit('DEGREES', 1);
|
|
@@ -695,23 +678,23 @@
|
|
|
695
678
|
legacyFormat = legacyFormat === VOID ? false : legacyFormat;
|
|
696
679
|
var tmp;
|
|
697
680
|
if (_this__u8e3s4 instanceof RGB) {
|
|
698
|
-
var tmp1_subject = _this__u8e3s4.
|
|
699
|
-
tmp = equals(tmp1_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp1_subject, RGBColorSpaces_getInstance().
|
|
681
|
+
var tmp1_subject = _this__u8e3s4.w1i_1;
|
|
682
|
+
tmp = equals(tmp1_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp1_subject, RGBColorSpaces_getInstance().x1k_1) ? renderColorFunction(_this__u8e3s4, 'display-p3', unitsPercent, alphaPercent, renderAlpha) : equals(tmp1_subject, RGBColorSpaces_getInstance().t1k_1) ? renderColorFunction(_this__u8e3s4, 'a98-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp1_subject, RGBColorSpaces_getInstance().y1k_1) ? renderColorFunction(_this__u8e3s4, 'prophoto-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp1_subject, RGBColorSpaces_getInstance().u1k_1) ? renderColorFunction(_this__u8e3s4, 'rec2020', unitsPercent, alphaPercent, renderAlpha) : null;
|
|
700
683
|
} else {
|
|
701
684
|
if (_this__u8e3s4 instanceof HSL) {
|
|
702
685
|
tmp = renderHsl(_this__u8e3s4, legacyFormat, legacyName, hueUnit, alphaPercent, renderAlpha);
|
|
703
686
|
} else {
|
|
704
687
|
if (_this__u8e3s4 instanceof LAB) {
|
|
705
|
-
tmp = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().
|
|
688
|
+
tmp = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().f1l_1), alphaPercent, renderAlpha);
|
|
706
689
|
} else {
|
|
707
690
|
if (_this__u8e3s4 instanceof LCHab) {
|
|
708
|
-
tmp = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().
|
|
691
|
+
tmp = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().d1l_1), hueUnit, alphaPercent, renderAlpha);
|
|
709
692
|
} else {
|
|
710
693
|
if (_this__u8e3s4 instanceof HWB) {
|
|
711
694
|
tmp = renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
712
695
|
} else {
|
|
713
696
|
if (_this__u8e3s4 instanceof XYZ) {
|
|
714
|
-
tmp = renderColorFunction(_this__u8e3s4.
|
|
697
|
+
tmp = renderColorFunction(_this__u8e3s4.b1l(XYZColorSpaces_getInstance().a1l_1), 'xyz', unitsPercent, alphaPercent, renderAlpha);
|
|
715
698
|
} else {
|
|
716
699
|
tmp = null;
|
|
717
700
|
}
|
|
@@ -726,37 +709,37 @@
|
|
|
726
709
|
// Inline function 'kotlin.text.buildString' call
|
|
727
710
|
// Inline function 'kotlin.contracts.contract' call
|
|
728
711
|
// Inline function 'kotlin.apply' call
|
|
729
|
-
var
|
|
712
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
730
713
|
// Inline function 'kotlin.contracts.contract' call
|
|
731
714
|
// Inline function 'com.github.ajalt.colormath.renderColorFunction.<anonymous>' call
|
|
732
|
-
|
|
733
|
-
var tmp = dropLast_0(_this__u8e3s4.
|
|
734
|
-
joinTo(tmp,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
return
|
|
715
|
+
this_0.n5('color(').n5(name).n5(' ');
|
|
716
|
+
var tmp = dropLast_0(_this__u8e3s4.y2(), 1);
|
|
717
|
+
joinTo(tmp, this_0, ' ', VOID, VOID, VOID, VOID, renderColorFunction$lambda(unitsPercent));
|
|
718
|
+
this_0.n5(renderAlpha(_this__u8e3s4, false, renderAlpha_0, alphaPercent));
|
|
719
|
+
this_0.n5(')');
|
|
720
|
+
return this_0.toString();
|
|
738
721
|
}
|
|
739
722
|
function get_dashName(_this__u8e3s4) {
|
|
740
723
|
// Inline function 'kotlin.text.lowercase' call
|
|
741
724
|
// Inline function 'kotlin.text.replace' call
|
|
742
|
-
var
|
|
725
|
+
var this_0 = _this__u8e3s4.p1i().ka();
|
|
743
726
|
// Inline function 'kotlin.js.asDynamic' call
|
|
744
|
-
return '--' + Regex_init_$Create$('\\W').
|
|
727
|
+
return '--' + Regex_init_$Create$('\\W').m8(this_0, '-').toLowerCase();
|
|
745
728
|
}
|
|
746
729
|
function renderSRGB(_this__u8e3s4, commas, namedRgba, rgbPercent, alphaPercent, renderAlpha) {
|
|
747
|
-
return renderFunction(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.
|
|
730
|
+
return renderFunction(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.s1i_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_r__impl__dulq0e(_this__u8e3s4.g1l())), rgbPercent ? render(_this__u8e3s4.t1i_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_g__impl__o93c71(_this__u8e3s4.g1l())), rgbPercent ? render(_this__u8e3s4.u1i_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_b__impl__m772ua(_this__u8e3s4.g1l()))], alphaPercent, renderAlpha, commas);
|
|
748
731
|
}
|
|
749
732
|
function renderHsl(_this__u8e3s4, commas, namedHsla, hueUnit, alphaPercent, renderAlpha) {
|
|
750
|
-
return renderFunction(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
733
|
+
return renderFunction(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.i1l_1, true), render(_this__u8e3s4.j1l_1, true)], alphaPercent, renderAlpha, commas);
|
|
751
734
|
}
|
|
752
735
|
function renderLab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
753
|
-
return renderFunction(_this__u8e3s4, 'lab', [render(_this__u8e3s4.
|
|
736
|
+
return renderFunction(_this__u8e3s4, 'lab', [render(_this__u8e3s4.f1j_1 / 100, true), render(_this__u8e3s4.g1j_1), render(_this__u8e3s4.h1j_1)], alphaPercent, renderAlpha);
|
|
754
737
|
}
|
|
755
738
|
function renderLCH(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
756
|
-
return renderFunction(_this__u8e3s4, 'lch', [render(_this__u8e3s4.
|
|
739
|
+
return renderFunction(_this__u8e3s4, 'lch', [render(_this__u8e3s4.l1l_1 / 100, true), render(_this__u8e3s4.m1l_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
757
740
|
}
|
|
758
741
|
function renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
759
|
-
return renderFunction(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
742
|
+
return renderFunction(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.r1l_1, true), render(_this__u8e3s4.s1l_1, true)], alphaPercent, renderAlpha);
|
|
760
743
|
}
|
|
761
744
|
function render(_this__u8e3s4, percent) {
|
|
762
745
|
percent = percent === VOID ? false : percent;
|
|
@@ -765,8 +748,8 @@
|
|
|
765
748
|
case true:
|
|
766
749
|
// Inline function 'kotlin.math.roundToInt' call
|
|
767
750
|
|
|
768
|
-
var
|
|
769
|
-
tmp = '' + roundToInt(
|
|
751
|
+
var this_0 = _this__u8e3s4 * 100;
|
|
752
|
+
tmp = '' + roundToInt(this_0) + '%';
|
|
770
753
|
break;
|
|
771
754
|
case false:
|
|
772
755
|
var tmp_0;
|
|
@@ -795,8 +778,8 @@
|
|
|
795
778
|
}
|
|
796
779
|
function renderAlpha(_this__u8e3s4, commas, renderAlpha, alphaPercent) {
|
|
797
780
|
var tmp;
|
|
798
|
-
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) ? true : (renderAlpha.equals(RenderCondition_AUTO_getInstance()) ? !isNaN_0(_this__u8e3s4.
|
|
799
|
-
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.
|
|
781
|
+
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) ? true : (renderAlpha.equals(RenderCondition_AUTO_getInstance()) ? !isNaN_0(_this__u8e3s4.o1i()) : false) ? !(_this__u8e3s4.o1i() === 1.0) : false) {
|
|
782
|
+
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.o1i()), alphaPercent);
|
|
800
783
|
} else {
|
|
801
784
|
tmp = '';
|
|
802
785
|
}
|
|
@@ -807,24 +790,24 @@
|
|
|
807
790
|
// Inline function 'kotlin.text.buildString' call
|
|
808
791
|
// Inline function 'kotlin.contracts.contract' call
|
|
809
792
|
// Inline function 'kotlin.apply' call
|
|
810
|
-
var
|
|
793
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
811
794
|
// Inline function 'kotlin.contracts.contract' call
|
|
812
795
|
// Inline function 'com.github.ajalt.colormath.renderFunction.<anonymous>' call
|
|
813
796
|
var sep = commas ? ', ' : ' ';
|
|
814
|
-
|
|
815
|
-
joinTo_0(components,
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
return
|
|
797
|
+
this_0.n5(name).n5('(');
|
|
798
|
+
joinTo_0(components, this_0, sep);
|
|
799
|
+
this_0.n5(renderAlpha(_this__u8e3s4, commas, renderAlpha_0, alphaPercent));
|
|
800
|
+
this_0.n5(')');
|
|
801
|
+
return this_0.toString();
|
|
819
802
|
}
|
|
820
803
|
function renderHue(_this__u8e3s4, hueUnit) {
|
|
821
804
|
var tmp;
|
|
822
|
-
switch (hueUnit.
|
|
805
|
+
switch (hueUnit.a9_1) {
|
|
823
806
|
case 0:
|
|
824
|
-
tmp = render(_this__u8e3s4.
|
|
807
|
+
tmp = render(_this__u8e3s4.u1l());
|
|
825
808
|
break;
|
|
826
809
|
case 1:
|
|
827
|
-
tmp = render(_this__u8e3s4.
|
|
810
|
+
tmp = render(_this__u8e3s4.u1l()) + 'deg';
|
|
828
811
|
break;
|
|
829
812
|
case 2:
|
|
830
813
|
tmp = render(hueAsRad(_this__u8e3s4)) + 'rad';
|
|
@@ -859,27 +842,27 @@
|
|
|
859
842
|
return AngleUnit_AUTO_instance;
|
|
860
843
|
}
|
|
861
844
|
function hueOr(_this__u8e3s4, whenNaN) {
|
|
862
|
-
return isNaN_0(_this__u8e3s4.
|
|
845
|
+
return isNaN_0(_this__u8e3s4.u1l()) ? numberToDouble(whenNaN) : _this__u8e3s4.u1l();
|
|
863
846
|
}
|
|
864
847
|
function hueAsRad(_this__u8e3s4) {
|
|
865
|
-
return degToRad(_this__u8e3s4.
|
|
848
|
+
return degToRad(_this__u8e3s4.u1l());
|
|
866
849
|
}
|
|
867
850
|
function hueAsGrad(_this__u8e3s4) {
|
|
868
|
-
return degToGrad(_this__u8e3s4.
|
|
851
|
+
return degToGrad(_this__u8e3s4.u1l());
|
|
869
852
|
}
|
|
870
853
|
function hueAsTurns(_this__u8e3s4) {
|
|
871
|
-
return degToTurns(_this__u8e3s4.
|
|
854
|
+
return degToTurns(_this__u8e3s4.u1l());
|
|
872
855
|
}
|
|
873
856
|
function WhitePoint(name, chromaticity) {
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
857
|
+
this.v1l_1 = name;
|
|
858
|
+
this.w1l_1 = chromaticity;
|
|
876
859
|
}
|
|
877
860
|
protoOf(WhitePoint).toString = function () {
|
|
878
|
-
return this.
|
|
861
|
+
return this.v1l_1;
|
|
879
862
|
};
|
|
880
863
|
protoOf(WhitePoint).hashCode = function () {
|
|
881
|
-
var result = getStringHashCode(this.
|
|
882
|
-
result = imul(result, 31) + this.
|
|
864
|
+
var result = getStringHashCode(this.v1l_1);
|
|
865
|
+
result = imul(result, 31) + this.w1l_1.hashCode() | 0;
|
|
883
866
|
return result;
|
|
884
867
|
};
|
|
885
868
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -888,22 +871,22 @@
|
|
|
888
871
|
if (!(other instanceof WhitePoint))
|
|
889
872
|
return false;
|
|
890
873
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
891
|
-
if (!(this.
|
|
874
|
+
if (!(this.v1l_1 === tmp0_other_with_cast.v1l_1))
|
|
892
875
|
return false;
|
|
893
|
-
if (!this.
|
|
876
|
+
if (!this.w1l_1.equals(tmp0_other_with_cast.w1l_1))
|
|
894
877
|
return false;
|
|
895
878
|
return true;
|
|
896
879
|
};
|
|
897
880
|
function Illuminant() {
|
|
898
881
|
Illuminant_instance = this;
|
|
899
|
-
this.
|
|
900
|
-
this.
|
|
901
|
-
this.
|
|
902
|
-
this.
|
|
903
|
-
this.
|
|
904
|
-
this.
|
|
905
|
-
this.
|
|
906
|
-
this.
|
|
882
|
+
this.x1l_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
883
|
+
this.y1l_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
884
|
+
this.z1l_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
885
|
+
this.a1m_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
886
|
+
this.b1m_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
887
|
+
this.c1m_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
888
|
+
this.d1m_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
889
|
+
this.e1m_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333));
|
|
907
890
|
}
|
|
908
891
|
var Illuminant_instance;
|
|
909
892
|
function Illuminant_getInstance() {
|
|
@@ -912,54 +895,48 @@
|
|
|
912
895
|
return Illuminant_instance;
|
|
913
896
|
}
|
|
914
897
|
function rectangularComponentInfo(name) {
|
|
915
|
-
var tmp$ret$3;
|
|
916
898
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
917
899
|
// Inline function 'kotlin.text.map' call
|
|
918
900
|
// Inline function 'kotlin.text.mapTo' call
|
|
919
|
-
var
|
|
901
|
+
var destination = ArrayList_init_$Create$(charSequenceLength(name));
|
|
920
902
|
var inductionVariable = 0;
|
|
921
|
-
|
|
922
|
-
while (inductionVariable < last) {
|
|
903
|
+
while (inductionVariable < charSequenceLength(name)) {
|
|
923
904
|
var item = charSequenceGet(name, inductionVariable);
|
|
924
905
|
inductionVariable = inductionVariable + 1 | 0;
|
|
925
|
-
var tmp$ret$0;
|
|
926
906
|
// Inline function 'com.github.ajalt.colormath.internal.rectangularComponentInfo.<anonymous>' call
|
|
927
|
-
tmp$ret$0 = toString(item);
|
|
928
|
-
|
|
907
|
+
var tmp$ret$0 = toString(item);
|
|
908
|
+
destination.p(tmp$ret$0);
|
|
929
909
|
}
|
|
930
|
-
tmp$ret$3 = copyToArray(
|
|
910
|
+
var tmp$ret$3 = copyToArray(destination);
|
|
931
911
|
return rectangularComponentInfo_0(tmp$ret$3.slice());
|
|
932
912
|
}
|
|
933
913
|
function polarComponentInfo(name) {
|
|
934
914
|
// Inline function 'kotlin.text.map' call
|
|
935
915
|
// Inline function 'kotlin.text.mapTo' call
|
|
936
|
-
var
|
|
916
|
+
var destination = ArrayList_init_$Create$(charSequenceLength(name));
|
|
937
917
|
var inductionVariable = 0;
|
|
938
|
-
|
|
939
|
-
while (inductionVariable < last) {
|
|
918
|
+
while (inductionVariable < charSequenceLength(name)) {
|
|
940
919
|
var item = charSequenceGet(name, inductionVariable);
|
|
941
920
|
inductionVariable = inductionVariable + 1 | 0;
|
|
942
|
-
var tmp$ret$0;
|
|
943
921
|
// Inline function 'com.github.ajalt.colormath.internal.polarComponentInfo.<anonymous>' call
|
|
944
|
-
tmp$ret$0 = new ColorComponentInfo(toString(item), item === _Char___init__impl__6a9atx(72));
|
|
945
|
-
|
|
922
|
+
var tmp$ret$0 = new ColorComponentInfo(toString(item), item === _Char___init__impl__6a9atx(72));
|
|
923
|
+
destination.p(tmp$ret$0);
|
|
946
924
|
}
|
|
947
|
-
return plus(
|
|
925
|
+
return plus(destination, new ColorComponentInfo('alpha', false));
|
|
948
926
|
}
|
|
949
927
|
function rectangularComponentInfo_0(names) {
|
|
950
928
|
// Inline function 'kotlin.collections.map' call
|
|
951
|
-
var
|
|
929
|
+
var this_0 = plus(asList(names), 'alpha');
|
|
952
930
|
// Inline function 'kotlin.collections.mapTo' call
|
|
953
|
-
var
|
|
954
|
-
var tmp0_iterator =
|
|
955
|
-
while (tmp0_iterator.
|
|
956
|
-
var item = tmp0_iterator.
|
|
957
|
-
var tmp$ret$0;
|
|
931
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
932
|
+
var tmp0_iterator = this_0.s();
|
|
933
|
+
while (tmp0_iterator.t()) {
|
|
934
|
+
var item = tmp0_iterator.u();
|
|
958
935
|
// Inline function 'com.github.ajalt.colormath.internal.rectangularComponentInfo.<anonymous>' call
|
|
959
|
-
tmp$ret$0 = new ColorComponentInfo(item, false);
|
|
960
|
-
|
|
936
|
+
var tmp$ret$0 = new ColorComponentInfo(item, false);
|
|
937
|
+
destination.p(tmp$ret$0);
|
|
961
938
|
}
|
|
962
|
-
return
|
|
939
|
+
return destination;
|
|
963
940
|
}
|
|
964
941
|
function get_CAT02_XYZ_TO_LMS() {
|
|
965
942
|
_init_properties_Constants_kt__atb1ur();
|
|
@@ -993,7 +970,7 @@
|
|
|
993
970
|
}
|
|
994
971
|
function CssColors() {
|
|
995
972
|
CssColors_instance = this;
|
|
996
|
-
this.
|
|
973
|
+
this.r1j_1 = mapOf([to('black', Companion_getInstance_4().f1m(0, 0, 0)), to('silver', Companion_getInstance_4().f1m(192, 192, 192)), to('gray', Companion_getInstance_4().f1m(128, 128, 128)), to('white', Companion_getInstance_4().f1m(255, 255, 255)), to('maroon', Companion_getInstance_4().f1m(128, 0, 0)), to('red', Companion_getInstance_4().f1m(255, 0, 0)), to('purple', Companion_getInstance_4().f1m(128, 0, 128)), to('fuchsia', Companion_getInstance_4().f1m(255, 0, 255)), to('green', Companion_getInstance_4().f1m(0, 128, 0)), to('lime', Companion_getInstance_4().f1m(0, 255, 0)), to('olive', Companion_getInstance_4().f1m(128, 128, 0)), to('yellow', Companion_getInstance_4().f1m(255, 255, 0)), to('navy', Companion_getInstance_4().f1m(0, 0, 128)), to('blue', Companion_getInstance_4().f1m(0, 0, 255)), to('teal', Companion_getInstance_4().f1m(0, 128, 128)), to('aqua', Companion_getInstance_4().f1m(0, 255, 255)), to('orange', Companion_getInstance_4().f1m(255, 165, 0)), to('aliceblue', Companion_getInstance_4().f1m(240, 248, 255)), to('antiquewhite', Companion_getInstance_4().f1m(250, 235, 215)), to('aquamarine', Companion_getInstance_4().f1m(127, 255, 212)), to('azure', Companion_getInstance_4().f1m(240, 255, 255)), to('beige', Companion_getInstance_4().f1m(245, 245, 220)), to('bisque', Companion_getInstance_4().f1m(255, 228, 196)), to('blanchedalmond', Companion_getInstance_4().f1m(255, 235, 205)), to('blueviolet', Companion_getInstance_4().f1m(138, 43, 226)), to('brown', Companion_getInstance_4().f1m(165, 42, 42)), to('burlywood', Companion_getInstance_4().f1m(222, 184, 135)), to('cadetblue', Companion_getInstance_4().f1m(95, 158, 160)), to('chartreuse', Companion_getInstance_4().f1m(127, 255, 0)), to('chocolate', Companion_getInstance_4().f1m(210, 105, 30)), to('coral', Companion_getInstance_4().f1m(255, 127, 80)), to('cornflowerblue', Companion_getInstance_4().f1m(100, 149, 237)), to('cornsilk', Companion_getInstance_4().f1m(255, 248, 220)), to('crimson', Companion_getInstance_4().f1m(220, 20, 60)), to('cyan', Companion_getInstance_4().f1m(0, 255, 255)), to('darkblue', Companion_getInstance_4().f1m(0, 0, 139)), to('darkcyan', Companion_getInstance_4().f1m(0, 139, 139)), to('darkgoldenrod', Companion_getInstance_4().f1m(184, 134, 11)), to('darkgray', Companion_getInstance_4().f1m(169, 169, 169)), to('darkgreen', Companion_getInstance_4().f1m(0, 100, 0)), to('darkgrey', Companion_getInstance_4().f1m(169, 169, 169)), to('darkkhaki', Companion_getInstance_4().f1m(189, 183, 107)), to('darkmagenta', Companion_getInstance_4().f1m(139, 0, 139)), to('darkolivegreen', Companion_getInstance_4().f1m(85, 107, 47)), to('darkorange', Companion_getInstance_4().f1m(255, 140, 0)), to('darkorchid', Companion_getInstance_4().f1m(153, 50, 204)), to('darkred', Companion_getInstance_4().f1m(139, 0, 0)), to('darksalmon', Companion_getInstance_4().f1m(233, 150, 122)), to('darkseagreen', Companion_getInstance_4().f1m(143, 188, 143)), to('darkslateblue', Companion_getInstance_4().f1m(72, 61, 139)), to('darkslategray', Companion_getInstance_4().f1m(47, 79, 79)), to('darkslategrey', Companion_getInstance_4().f1m(47, 79, 79)), to('darkturquoise', Companion_getInstance_4().f1m(0, 206, 209)), to('darkviolet', Companion_getInstance_4().f1m(148, 0, 211)), to('deeppink', Companion_getInstance_4().f1m(255, 20, 147)), to('deepskyblue', Companion_getInstance_4().f1m(0, 191, 255)), to('dimgray', Companion_getInstance_4().f1m(105, 105, 105)), to('dimgrey', Companion_getInstance_4().f1m(105, 105, 105)), to('dodgerblue', Companion_getInstance_4().f1m(30, 144, 255)), to('firebrick', Companion_getInstance_4().f1m(178, 34, 34)), to('floralwhite', Companion_getInstance_4().f1m(255, 250, 240)), to('forestgreen', Companion_getInstance_4().f1m(34, 139, 34)), to('gainsboro', Companion_getInstance_4().f1m(220, 220, 220)), to('ghostwhite', Companion_getInstance_4().f1m(248, 248, 255)), to('gold', Companion_getInstance_4().f1m(255, 215, 0)), to('goldenrod', Companion_getInstance_4().f1m(218, 165, 32)), to('greenyellow', Companion_getInstance_4().f1m(173, 255, 47)), to('grey', Companion_getInstance_4().f1m(128, 128, 128)), to('honeydew', Companion_getInstance_4().f1m(240, 255, 240)), to('hotpink', Companion_getInstance_4().f1m(255, 105, 180)), to('indianred', Companion_getInstance_4().f1m(205, 92, 92)), to('indigo', Companion_getInstance_4().f1m(75, 0, 130)), to('ivory', Companion_getInstance_4().f1m(255, 255, 240)), to('khaki', Companion_getInstance_4().f1m(240, 230, 140)), to('lavender', Companion_getInstance_4().f1m(230, 230, 250)), to('lavenderblush', Companion_getInstance_4().f1m(255, 240, 245)), to('lawngreen', Companion_getInstance_4().f1m(124, 252, 0)), to('lemonchiffon', Companion_getInstance_4().f1m(255, 250, 205)), to('lightblue', Companion_getInstance_4().f1m(173, 216, 230)), to('lightcoral', Companion_getInstance_4().f1m(240, 128, 128)), to('lightcyan', Companion_getInstance_4().f1m(224, 255, 255)), to('lightgoldenrodyellow', Companion_getInstance_4().f1m(250, 250, 210)), to('lightgray', Companion_getInstance_4().f1m(211, 211, 211)), to('lightgreen', Companion_getInstance_4().f1m(144, 238, 144)), to('lightgrey', Companion_getInstance_4().f1m(211, 211, 211)), to('lightpink', Companion_getInstance_4().f1m(255, 182, 193)), to('lightsalmon', Companion_getInstance_4().f1m(255, 160, 122)), to('lightseagreen', Companion_getInstance_4().f1m(32, 178, 170)), to('lightskyblue', Companion_getInstance_4().f1m(135, 206, 250)), to('lightslategray', Companion_getInstance_4().f1m(119, 136, 153)), to('lightslategrey', Companion_getInstance_4().f1m(119, 136, 153)), to('lightsteelblue', Companion_getInstance_4().f1m(176, 196, 222)), to('lightyellow', Companion_getInstance_4().f1m(255, 255, 224)), to('limegreen', Companion_getInstance_4().f1m(50, 205, 50)), to('linen', Companion_getInstance_4().f1m(250, 240, 230)), to('magenta', Companion_getInstance_4().f1m(255, 0, 255)), to('mediumaquamarine', Companion_getInstance_4().f1m(102, 205, 170)), to('mediumblue', Companion_getInstance_4().f1m(0, 0, 205)), to('mediumorchid', Companion_getInstance_4().f1m(186, 85, 211)), to('mediumpurple', Companion_getInstance_4().f1m(147, 112, 219)), to('mediumseagreen', Companion_getInstance_4().f1m(60, 179, 113)), to('mediumslateblue', Companion_getInstance_4().f1m(123, 104, 238)), to('mediumspringgreen', Companion_getInstance_4().f1m(0, 250, 154)), to('mediumturquoise', Companion_getInstance_4().f1m(72, 209, 204)), to('mediumvioletred', Companion_getInstance_4().f1m(199, 21, 133)), to('midnightblue', Companion_getInstance_4().f1m(25, 25, 112)), to('mintcream', Companion_getInstance_4().f1m(245, 255, 250)), to('mistyrose', Companion_getInstance_4().f1m(255, 228, 225)), to('moccasin', Companion_getInstance_4().f1m(255, 228, 181)), to('navajowhite', Companion_getInstance_4().f1m(255, 222, 173)), to('oldlace', Companion_getInstance_4().f1m(253, 245, 230)), to('olivedrab', Companion_getInstance_4().f1m(107, 142, 35)), to('orangered', Companion_getInstance_4().f1m(255, 69, 0)), to('orchid', Companion_getInstance_4().f1m(218, 112, 214)), to('palegoldenrod', Companion_getInstance_4().f1m(238, 232, 170)), to('palegreen', Companion_getInstance_4().f1m(152, 251, 152)), to('paleturquoise', Companion_getInstance_4().f1m(175, 238, 238)), to('palevioletred', Companion_getInstance_4().f1m(219, 112, 147)), to('papayawhip', Companion_getInstance_4().f1m(255, 239, 213)), to('peachpuff', Companion_getInstance_4().f1m(255, 218, 185)), to('peru', Companion_getInstance_4().f1m(205, 133, 63)), to('pink', Companion_getInstance_4().f1m(255, 192, 203)), to('plum', Companion_getInstance_4().f1m(221, 160, 221)), to('powderblue', Companion_getInstance_4().f1m(176, 224, 230)), to('rosybrown', Companion_getInstance_4().f1m(188, 143, 143)), to('royalblue', Companion_getInstance_4().f1m(65, 105, 225)), to('saddlebrown', Companion_getInstance_4().f1m(139, 69, 19)), to('salmon', Companion_getInstance_4().f1m(250, 128, 114)), to('sandybrown', Companion_getInstance_4().f1m(244, 164, 96)), to('seagreen', Companion_getInstance_4().f1m(46, 139, 87)), to('seashell', Companion_getInstance_4().f1m(255, 245, 238)), to('sienna', Companion_getInstance_4().f1m(160, 82, 45)), to('skyblue', Companion_getInstance_4().f1m(135, 206, 235)), to('slateblue', Companion_getInstance_4().f1m(106, 90, 205)), to('slategray', Companion_getInstance_4().f1m(112, 128, 144)), to('slategrey', Companion_getInstance_4().f1m(112, 128, 144)), to('snow', Companion_getInstance_4().f1m(255, 250, 250)), to('springgreen', Companion_getInstance_4().f1m(0, 255, 127)), to('steelblue', Companion_getInstance_4().f1m(70, 130, 180)), to('tan', Companion_getInstance_4().f1m(210, 180, 140)), to('thistle', Companion_getInstance_4().f1m(216, 191, 216)), to('tomato', Companion_getInstance_4().f1m(255, 99, 71)), to('turquoise', Companion_getInstance_4().f1m(64, 224, 208)), to('violet', Companion_getInstance_4().f1m(238, 130, 238)), to('wheat', Companion_getInstance_4().f1m(245, 222, 179)), to('whitesmoke', Companion_getInstance_4().f1m(245, 245, 245)), to('yellowgreen', Companion_getInstance_4().f1m(154, 205, 50)), to('rebeccapurple', Companion_getInstance_4().f1m(102, 51, 153)), to('transparent', Companion_getInstance_4().g1m(0, 0, 0, 0))]);
|
|
997
974
|
}
|
|
998
975
|
var CssColors_instance;
|
|
999
976
|
function CssColors_getInstance() {
|
|
@@ -1011,11 +988,10 @@
|
|
|
1011
988
|
return (_this__u8e3s4 % 360.0 + 360.0) % 360.0;
|
|
1012
989
|
}
|
|
1013
990
|
function spow_0(_this__u8e3s4, p) {
|
|
1014
|
-
var tmp$ret$1;
|
|
1015
991
|
// Inline function 'kotlin.math.pow' call
|
|
1016
992
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1017
|
-
var
|
|
1018
|
-
tmp$ret$1 = Math.pow(
|
|
993
|
+
var this_0 = Math.abs(_this__u8e3s4);
|
|
994
|
+
var tmp$ret$1 = Math.pow(this_0, p);
|
|
1019
995
|
return withSign(tmp$ret$1, _this__u8e3s4);
|
|
1020
996
|
}
|
|
1021
997
|
function normalizeDeg_0(_this__u8e3s4) {
|
|
@@ -1052,16 +1028,14 @@
|
|
|
1052
1028
|
return $this;
|
|
1053
1029
|
}
|
|
1054
1030
|
function _Matrix___init__impl__q3kp4w_0(v00, v10, v20, v01, v11, v21, v02, v12, v22) {
|
|
1055
|
-
var tmp$ret$0;
|
|
1056
1031
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1057
|
-
tmp$ret$0 = new Float32Array([v00, v10, v20, v01, v11, v21, v02, v12, v22]);
|
|
1032
|
+
var tmp$ret$0 = new Float32Array([v00, v10, v20, v01, v11, v21, v02, v12, v22]);
|
|
1058
1033
|
return _Matrix___init__impl__q3kp4w(tmp$ret$0);
|
|
1059
1034
|
}
|
|
1060
1035
|
function Matrix__copy_impl_kmkvzd($this) {
|
|
1061
|
-
var tmp$ret$1;
|
|
1062
1036
|
// Inline function 'kotlin.collections.copyOf' call
|
|
1063
1037
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1064
|
-
tmp$ret$1 = _Matrix___get_rowMajor__impl__vmgxkq($this).slice();
|
|
1038
|
+
var tmp$ret$1 = _Matrix___get_rowMajor__impl__vmgxkq($this).slice();
|
|
1065
1039
|
return _Matrix___init__impl__q3kp4w(tmp$ret$1);
|
|
1066
1040
|
}
|
|
1067
1041
|
function Matrix__get_impl_xogbpk($this, x, y) {
|
|
@@ -1127,9 +1101,8 @@
|
|
|
1127
1101
|
return $this;
|
|
1128
1102
|
}
|
|
1129
1103
|
function _Vector___init__impl__y7x4qq_0(v0, v1, v2) {
|
|
1130
|
-
var tmp$ret$0;
|
|
1131
1104
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1132
|
-
tmp$ret$0 = new Float32Array([v0, v1, v2]);
|
|
1105
|
+
var tmp$ret$0 = new Float32Array([v0, v1, v2]);
|
|
1133
1106
|
return _Vector___init__impl__y7x4qq(tmp$ret$0);
|
|
1134
1107
|
}
|
|
1135
1108
|
function _Vector___get_l__impl__envr1l($this) {
|
|
@@ -1149,86 +1122,85 @@
|
|
|
1149
1122
|
return Matrix__get_impl_xogbpk($this_dot, 0, y) * Matrix__get_impl_xogbpk($other, x, 0) + Matrix__get_impl_xogbpk($this_dot, 1, y) * Matrix__get_impl_xogbpk($other, x, 1) + Matrix__get_impl_xogbpk($this_dot, 2, y) * Matrix__get_impl_xogbpk($other, x, 2);
|
|
1150
1123
|
}
|
|
1151
1124
|
function Companion_0() {
|
|
1152
|
-
|
|
1153
|
-
this.
|
|
1125
|
+
Companion_instance_1 = this;
|
|
1126
|
+
this.h1m_1 = polarComponentInfo('HSL');
|
|
1154
1127
|
}
|
|
1155
|
-
protoOf(Companion_0).
|
|
1128
|
+
protoOf(Companion_0).ka = function () {
|
|
1156
1129
|
return 'HSL';
|
|
1157
1130
|
};
|
|
1158
|
-
protoOf(Companion_0).
|
|
1159
|
-
return this.
|
|
1131
|
+
protoOf(Companion_0).n1j = function () {
|
|
1132
|
+
return this.h1m_1;
|
|
1160
1133
|
};
|
|
1161
|
-
protoOf(Companion_0).
|
|
1162
|
-
return color.
|
|
1134
|
+
protoOf(Companion_0).l1j = function (color) {
|
|
1135
|
+
return color.r1i();
|
|
1163
1136
|
};
|
|
1164
|
-
var
|
|
1165
|
-
function
|
|
1166
|
-
if (
|
|
1137
|
+
var Companion_instance_1;
|
|
1138
|
+
function Companion_getInstance_0() {
|
|
1139
|
+
if (Companion_instance_1 == null)
|
|
1167
1140
|
new Companion_0();
|
|
1168
|
-
return
|
|
1141
|
+
return Companion_instance_1;
|
|
1169
1142
|
}
|
|
1170
1143
|
function toSRGB$f(h, s, l, n) {
|
|
1171
1144
|
var k = (n + h) % 12.0;
|
|
1172
1145
|
// Inline function 'kotlin.math.min' call
|
|
1173
|
-
var
|
|
1174
|
-
var a = s * Math.min(l,
|
|
1175
|
-
var tmp$ret$1;
|
|
1146
|
+
var b = 1 - l;
|
|
1147
|
+
var a = s * Math.min(l, b);
|
|
1176
1148
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1177
|
-
var
|
|
1178
|
-
var
|
|
1179
|
-
tmp$ret$1 = Math.min(
|
|
1149
|
+
var a_0 = k - 3;
|
|
1150
|
+
var b_0 = 9 - k;
|
|
1151
|
+
var tmp$ret$1 = Math.min(a_0, b_0, 1.0);
|
|
1180
1152
|
return l - a * coerceAtLeast_0(tmp$ret$1, -1.0);
|
|
1181
1153
|
}
|
|
1182
1154
|
function HSL(h, s, l, alpha) {
|
|
1183
|
-
|
|
1155
|
+
Companion_getInstance_0();
|
|
1184
1156
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1157
|
+
this.h1l_1 = h;
|
|
1158
|
+
this.i1l_1 = s;
|
|
1159
|
+
this.j1l_1 = l;
|
|
1160
|
+
this.k1l_1 = alpha;
|
|
1189
1161
|
}
|
|
1190
|
-
protoOf(HSL).
|
|
1191
|
-
return this.
|
|
1162
|
+
protoOf(HSL).u1l = function () {
|
|
1163
|
+
return this.h1l_1;
|
|
1192
1164
|
};
|
|
1193
|
-
protoOf(HSL).
|
|
1194
|
-
return this.
|
|
1165
|
+
protoOf(HSL).o1i = function () {
|
|
1166
|
+
return this.k1l_1;
|
|
1195
1167
|
};
|
|
1196
|
-
protoOf(HSL).
|
|
1197
|
-
return
|
|
1168
|
+
protoOf(HSL).p1i = function () {
|
|
1169
|
+
return Companion_getInstance_0();
|
|
1198
1170
|
};
|
|
1199
|
-
protoOf(HSL).
|
|
1200
|
-
if (this.
|
|
1201
|
-
return
|
|
1171
|
+
protoOf(HSL).q1i = function () {
|
|
1172
|
+
if (this.i1l_1 < 1.0E-7)
|
|
1173
|
+
return Companion_getInstance_4().k1k(this.j1l_1, this.j1l_1, this.j1l_1, this.k1l_1);
|
|
1202
1174
|
var h = normalizeDeg_0(hueOr(this, 0)) / 30.0;
|
|
1203
|
-
var s = this.
|
|
1204
|
-
var l = this.
|
|
1205
|
-
return SRGB_getInstance().
|
|
1175
|
+
var s = this.i1l_1;
|
|
1176
|
+
var l = this.j1l_1;
|
|
1177
|
+
return SRGB_getInstance().k1k(toSRGB$f(h, s, l, 0), toSRGB$f(h, s, l, 8), toSRGB$f(h, s, l, 4), this.k1l_1);
|
|
1206
1178
|
};
|
|
1207
|
-
protoOf(HSL).
|
|
1179
|
+
protoOf(HSL).r1i = function () {
|
|
1208
1180
|
return this;
|
|
1209
1181
|
};
|
|
1210
|
-
protoOf(HSL).
|
|
1182
|
+
protoOf(HSL).y2 = function () {
|
|
1211
1183
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1212
|
-
return new Float32Array([this.
|
|
1184
|
+
return new Float32Array([this.h1l_1, this.i1l_1, this.j1l_1, this.k1l_1]);
|
|
1213
1185
|
};
|
|
1214
|
-
protoOf(HSL).
|
|
1186
|
+
protoOf(HSL).o1m = function (h, s, l, alpha) {
|
|
1215
1187
|
return new HSL(h, s, l, alpha);
|
|
1216
1188
|
};
|
|
1217
|
-
protoOf(HSL).
|
|
1218
|
-
h = h === VOID ? this.
|
|
1219
|
-
s = s === VOID ? this.
|
|
1220
|
-
l = l === VOID ? this.
|
|
1221
|
-
alpha = alpha === VOID ? this.
|
|
1222
|
-
return $super === VOID ? this.
|
|
1189
|
+
protoOf(HSL).p1m = function (h, s, l, alpha, $super) {
|
|
1190
|
+
h = h === VOID ? this.h1l_1 : h;
|
|
1191
|
+
s = s === VOID ? this.i1l_1 : s;
|
|
1192
|
+
l = l === VOID ? this.j1l_1 : l;
|
|
1193
|
+
alpha = alpha === VOID ? this.k1l_1 : alpha;
|
|
1194
|
+
return $super === VOID ? this.o1m(h, s, l, alpha) : $super.o1m.call(this, h, s, l, alpha);
|
|
1223
1195
|
};
|
|
1224
1196
|
protoOf(HSL).toString = function () {
|
|
1225
|
-
return 'HSL(h=' + this.
|
|
1197
|
+
return 'HSL(h=' + this.h1l_1 + ', s=' + this.i1l_1 + ', l=' + this.j1l_1 + ', alpha=' + this.k1l_1 + ')';
|
|
1226
1198
|
};
|
|
1227
1199
|
protoOf(HSL).hashCode = function () {
|
|
1228
|
-
var result = getNumberHashCode(this.
|
|
1229
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1230
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1231
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1200
|
+
var result = getNumberHashCode(this.h1l_1);
|
|
1201
|
+
result = imul(result, 31) + getNumberHashCode(this.i1l_1) | 0;
|
|
1202
|
+
result = imul(result, 31) + getNumberHashCode(this.j1l_1) | 0;
|
|
1203
|
+
result = imul(result, 31) + getNumberHashCode(this.k1l_1) | 0;
|
|
1232
1204
|
return result;
|
|
1233
1205
|
};
|
|
1234
1206
|
protoOf(HSL).equals = function (other) {
|
|
@@ -1237,60 +1209,60 @@
|
|
|
1237
1209
|
if (!(other instanceof HSL))
|
|
1238
1210
|
return false;
|
|
1239
1211
|
var tmp0_other_with_cast = other instanceof HSL ? other : THROW_CCE();
|
|
1240
|
-
if (!equals(this.
|
|
1212
|
+
if (!equals(this.h1l_1, tmp0_other_with_cast.h1l_1))
|
|
1241
1213
|
return false;
|
|
1242
|
-
if (!equals(this.
|
|
1214
|
+
if (!equals(this.i1l_1, tmp0_other_with_cast.i1l_1))
|
|
1243
1215
|
return false;
|
|
1244
|
-
if (!equals(this.
|
|
1216
|
+
if (!equals(this.j1l_1, tmp0_other_with_cast.j1l_1))
|
|
1245
1217
|
return false;
|
|
1246
|
-
if (!equals(this.
|
|
1218
|
+
if (!equals(this.k1l_1, tmp0_other_with_cast.k1l_1))
|
|
1247
1219
|
return false;
|
|
1248
1220
|
return true;
|
|
1249
1221
|
};
|
|
1250
1222
|
function Companion_1() {
|
|
1251
|
-
|
|
1252
|
-
this.
|
|
1223
|
+
Companion_instance_2 = this;
|
|
1224
|
+
this.q1m_1 = polarComponentInfo('HWB');
|
|
1253
1225
|
}
|
|
1254
|
-
protoOf(Companion_1).
|
|
1226
|
+
protoOf(Companion_1).ka = function () {
|
|
1255
1227
|
return 'HWB';
|
|
1256
1228
|
};
|
|
1257
|
-
protoOf(Companion_1).
|
|
1258
|
-
return this.
|
|
1229
|
+
protoOf(Companion_1).n1j = function () {
|
|
1230
|
+
return this.q1m_1;
|
|
1259
1231
|
};
|
|
1260
|
-
protoOf(Companion_1).
|
|
1261
|
-
return color.
|
|
1232
|
+
protoOf(Companion_1).l1j = function (color) {
|
|
1233
|
+
return color.k1j();
|
|
1262
1234
|
};
|
|
1263
|
-
var
|
|
1264
|
-
function
|
|
1265
|
-
if (
|
|
1235
|
+
var Companion_instance_2;
|
|
1236
|
+
function Companion_getInstance_1() {
|
|
1237
|
+
if (Companion_instance_2 == null)
|
|
1266
1238
|
new Companion_1();
|
|
1267
|
-
return
|
|
1239
|
+
return Companion_instance_2;
|
|
1268
1240
|
}
|
|
1269
1241
|
function HWB(h, w, b, alpha) {
|
|
1270
|
-
|
|
1242
|
+
Companion_getInstance_1();
|
|
1271
1243
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1272
|
-
this.
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1275
|
-
this.
|
|
1276
|
-
}
|
|
1277
|
-
protoOf(HWB).
|
|
1278
|
-
return this.
|
|
1279
|
-
};
|
|
1280
|
-
protoOf(HWB).
|
|
1281
|
-
return this.
|
|
1282
|
-
};
|
|
1283
|
-
protoOf(HWB).
|
|
1284
|
-
return
|
|
1285
|
-
};
|
|
1286
|
-
protoOf(HWB).
|
|
1287
|
-
var h = this.
|
|
1288
|
-
var w = this.
|
|
1289
|
-
var b = this.
|
|
1290
|
-
var a = this.
|
|
1291
|
-
if (w + b >= 1) {
|
|
1244
|
+
this.q1l_1 = h;
|
|
1245
|
+
this.r1l_1 = w;
|
|
1246
|
+
this.s1l_1 = b;
|
|
1247
|
+
this.t1l_1 = alpha;
|
|
1248
|
+
}
|
|
1249
|
+
protoOf(HWB).u1l = function () {
|
|
1250
|
+
return this.q1l_1;
|
|
1251
|
+
};
|
|
1252
|
+
protoOf(HWB).o1i = function () {
|
|
1253
|
+
return this.t1l_1;
|
|
1254
|
+
};
|
|
1255
|
+
protoOf(HWB).p1i = function () {
|
|
1256
|
+
return Companion_getInstance_1();
|
|
1257
|
+
};
|
|
1258
|
+
protoOf(HWB).q1i = function () {
|
|
1259
|
+
var h = this.q1l_1 / 60.0;
|
|
1260
|
+
var w = this.r1l_1;
|
|
1261
|
+
var b = this.s1l_1;
|
|
1262
|
+
var a = this.t1l_1;
|
|
1263
|
+
if (w + b >= 1.0) {
|
|
1292
1264
|
var gray = w / (w + b);
|
|
1293
|
-
return
|
|
1265
|
+
return Companion_getInstance_4().k1k(gray, gray, gray, a);
|
|
1294
1266
|
}
|
|
1295
1267
|
var v = 1 - b;
|
|
1296
1268
|
var i = numberToInt(h);
|
|
@@ -1298,34 +1270,34 @@
|
|
|
1298
1270
|
var n = w + f * (v - w);
|
|
1299
1271
|
switch (i) {
|
|
1300
1272
|
case 1:
|
|
1301
|
-
return
|
|
1273
|
+
return Companion_getInstance_4().k1k(n, v, w, a);
|
|
1302
1274
|
case 2:
|
|
1303
|
-
return
|
|
1275
|
+
return Companion_getInstance_4().k1k(w, v, n, a);
|
|
1304
1276
|
case 3:
|
|
1305
|
-
return
|
|
1277
|
+
return Companion_getInstance_4().k1k(w, n, v, a);
|
|
1306
1278
|
case 4:
|
|
1307
|
-
return
|
|
1279
|
+
return Companion_getInstance_4().k1k(n, w, v, a);
|
|
1308
1280
|
case 5:
|
|
1309
|
-
return
|
|
1281
|
+
return Companion_getInstance_4().k1k(v, w, n, a);
|
|
1310
1282
|
default:
|
|
1311
|
-
return
|
|
1283
|
+
return Companion_getInstance_4().k1k(v, n, w, a);
|
|
1312
1284
|
}
|
|
1313
1285
|
};
|
|
1314
|
-
protoOf(HWB).
|
|
1286
|
+
protoOf(HWB).k1j = function () {
|
|
1315
1287
|
return this;
|
|
1316
1288
|
};
|
|
1317
|
-
protoOf(HWB).
|
|
1289
|
+
protoOf(HWB).y2 = function () {
|
|
1318
1290
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1319
|
-
return new Float32Array([this.
|
|
1291
|
+
return new Float32Array([this.q1l_1, this.r1l_1, this.s1l_1, this.t1l_1]);
|
|
1320
1292
|
};
|
|
1321
1293
|
protoOf(HWB).toString = function () {
|
|
1322
|
-
return 'HWB(h=' + this.
|
|
1294
|
+
return 'HWB(h=' + this.q1l_1 + ', w=' + this.r1l_1 + ', b=' + this.s1l_1 + ', alpha=' + this.t1l_1 + ')';
|
|
1323
1295
|
};
|
|
1324
1296
|
protoOf(HWB).hashCode = function () {
|
|
1325
|
-
var result = getNumberHashCode(this.
|
|
1326
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1327
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1328
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1297
|
+
var result = getNumberHashCode(this.q1l_1);
|
|
1298
|
+
result = imul(result, 31) + getNumberHashCode(this.r1l_1) | 0;
|
|
1299
|
+
result = imul(result, 31) + getNumberHashCode(this.s1l_1) | 0;
|
|
1300
|
+
result = imul(result, 31) + getNumberHashCode(this.t1l_1) | 0;
|
|
1329
1301
|
return result;
|
|
1330
1302
|
};
|
|
1331
1303
|
protoOf(HWB).equals = function (other) {
|
|
@@ -1334,13 +1306,13 @@
|
|
|
1334
1306
|
if (!(other instanceof HWB))
|
|
1335
1307
|
return false;
|
|
1336
1308
|
var tmp0_other_with_cast = other instanceof HWB ? other : THROW_CCE();
|
|
1337
|
-
if (!equals(this.
|
|
1309
|
+
if (!equals(this.q1l_1, tmp0_other_with_cast.q1l_1))
|
|
1338
1310
|
return false;
|
|
1339
|
-
if (!equals(this.
|
|
1311
|
+
if (!equals(this.r1l_1, tmp0_other_with_cast.r1l_1))
|
|
1340
1312
|
return false;
|
|
1341
|
-
if (!equals(this.
|
|
1313
|
+
if (!equals(this.s1l_1, tmp0_other_with_cast.s1l_1))
|
|
1342
1314
|
return false;
|
|
1343
|
-
if (!equals(this.
|
|
1315
|
+
if (!equals(this.t1l_1, tmp0_other_with_cast.t1l_1))
|
|
1344
1316
|
return false;
|
|
1345
1317
|
return true;
|
|
1346
1318
|
};
|
|
@@ -1382,53 +1354,50 @@
|
|
|
1382
1354
|
var ICTCP_LMS_TO_XYZ;
|
|
1383
1355
|
function ICtCp() {
|
|
1384
1356
|
}
|
|
1385
|
-
protoOf(ICtCp).
|
|
1386
|
-
var fo = RGBColorSpaces_getInstance().
|
|
1357
|
+
protoOf(ICtCp).v1m = function () {
|
|
1358
|
+
var fo = RGBColorSpaces_getInstance().u1k_1.w1m();
|
|
1387
1359
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1388
|
-
var
|
|
1389
|
-
var
|
|
1390
|
-
var
|
|
1391
|
-
var
|
|
1360
|
+
var this_0 = get_ICTCP_ICTCP_to_LMS();
|
|
1361
|
+
var v0 = this.r1m_1;
|
|
1362
|
+
var v1 = this.s1m_1;
|
|
1363
|
+
var v2 = this.t1m_1;
|
|
1392
1364
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
1393
|
-
var
|
|
1394
|
-
var
|
|
1395
|
-
var
|
|
1365
|
+
var l = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
1366
|
+
var m = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
1367
|
+
var s = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
1396
1368
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1397
|
-
var
|
|
1398
|
-
var
|
|
1399
|
-
var
|
|
1400
|
-
var
|
|
1369
|
+
var this_1 = get_ICTCP_LMS_to_RGB();
|
|
1370
|
+
var v0_0 = PqNonlinearity_instance.f1n(l);
|
|
1371
|
+
var v1_0 = PqNonlinearity_instance.f1n(m);
|
|
1372
|
+
var v2_0 = PqNonlinearity_instance.f1n(s);
|
|
1401
1373
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
1402
|
-
var
|
|
1403
|
-
var
|
|
1404
|
-
var
|
|
1405
|
-
return RGBColorSpaces_getInstance().
|
|
1374
|
+
var r = Matrix__get_impl_xogbpk(this_1, 0, 0) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 0) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 0) * v2_0;
|
|
1375
|
+
var g = Matrix__get_impl_xogbpk(this_1, 0, 1) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 1) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 1) * v2_0;
|
|
1376
|
+
var b = Matrix__get_impl_xogbpk(this_1, 0, 2) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 2) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 2) * v2_0;
|
|
1377
|
+
return RGBColorSpaces_getInstance().u1k_1.k1k(fo.g1n(r), fo.g1n(g), fo.g1n(b), this.u1m_1);
|
|
1406
1378
|
};
|
|
1407
1379
|
function PqNonlinearity() {
|
|
1408
|
-
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
protoOf(PqNonlinearity).n1l = function (x) {
|
|
1380
|
+
this.x1m_1 = 0.1593017578125;
|
|
1381
|
+
this.y1m_1 = 78.84375;
|
|
1382
|
+
this.z1m_1 = 0.8359375;
|
|
1383
|
+
this.a1n_1 = 18.8515625;
|
|
1384
|
+
this.b1n_1 = 18.6875;
|
|
1385
|
+
this.c1n_1 = 10000.0;
|
|
1386
|
+
this.d1n_1 = 6.277394636015326;
|
|
1387
|
+
this.e1n_1 = 0.012683313515655966;
|
|
1388
|
+
}
|
|
1389
|
+
protoOf(PqNonlinearity).f1n = function (x) {
|
|
1419
1390
|
var vp = spow(x, 0.012683313515655966);
|
|
1420
1391
|
var n = coerceAtLeast_0(vp - 0.8359375, 0.0);
|
|
1421
1392
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
1422
1393
|
return 10000.0 * l;
|
|
1423
1394
|
};
|
|
1424
|
-
protoOf(PqNonlinearity).
|
|
1395
|
+
protoOf(PqNonlinearity).g1n = function (x) {
|
|
1425
1396
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
1426
1397
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
1427
1398
|
};
|
|
1428
1399
|
var PqNonlinearity_instance;
|
|
1429
1400
|
function PqNonlinearity_getInstance() {
|
|
1430
|
-
if (PqNonlinearity_instance == null)
|
|
1431
|
-
new PqNonlinearity();
|
|
1432
1401
|
return PqNonlinearity_instance;
|
|
1433
1402
|
}
|
|
1434
1403
|
var properties_initialized_ICtCp_kt_w6y8uv;
|
|
@@ -1446,121 +1415,119 @@
|
|
|
1446
1415
|
}
|
|
1447
1416
|
}
|
|
1448
1417
|
function Companion_2() {
|
|
1449
|
-
|
|
1450
|
-
this.
|
|
1418
|
+
Companion_instance_3 = this;
|
|
1419
|
+
this.l1k_1 = LABColorSpaces_getInstance().e1l_1;
|
|
1451
1420
|
}
|
|
1452
|
-
protoOf(Companion_2).
|
|
1453
|
-
return this.
|
|
1421
|
+
protoOf(Companion_2).n1j = function () {
|
|
1422
|
+
return this.l1k_1.n1j();
|
|
1454
1423
|
};
|
|
1455
|
-
protoOf(Companion_2).
|
|
1456
|
-
return this.
|
|
1424
|
+
protoOf(Companion_2).ka = function () {
|
|
1425
|
+
return this.l1k_1.ka();
|
|
1457
1426
|
};
|
|
1458
|
-
protoOf(Companion_2).
|
|
1459
|
-
return this.
|
|
1427
|
+
protoOf(Companion_2).m1j = function () {
|
|
1428
|
+
return this.l1k_1.m1j();
|
|
1460
1429
|
};
|
|
1461
|
-
protoOf(Companion_2).
|
|
1462
|
-
return this.
|
|
1430
|
+
protoOf(Companion_2).l1j = function (color) {
|
|
1431
|
+
return this.l1k_1.l1j(color);
|
|
1463
1432
|
};
|
|
1464
|
-
protoOf(Companion_2).
|
|
1465
|
-
return this.
|
|
1433
|
+
protoOf(Companion_2).o1j = function (components) {
|
|
1434
|
+
return this.l1k_1.o1j(components);
|
|
1466
1435
|
};
|
|
1467
|
-
protoOf(Companion_2).
|
|
1468
|
-
return this.
|
|
1436
|
+
protoOf(Companion_2).k1k = function (l, a, b, alpha) {
|
|
1437
|
+
return this.l1k_1.k1k(l, a, b, alpha);
|
|
1469
1438
|
};
|
|
1470
|
-
protoOf(Companion_2).
|
|
1471
|
-
return this.
|
|
1439
|
+
protoOf(Companion_2).h1n = function (l, a, b, alpha) {
|
|
1440
|
+
return this.l1k_1.h1n(l, a, b, alpha);
|
|
1472
1441
|
};
|
|
1473
|
-
var
|
|
1474
|
-
function
|
|
1475
|
-
if (
|
|
1442
|
+
var Companion_instance_3;
|
|
1443
|
+
function Companion_getInstance_2() {
|
|
1444
|
+
if (Companion_instance_3 == null)
|
|
1476
1445
|
new Companion_2();
|
|
1477
|
-
return
|
|
1446
|
+
return Companion_instance_3;
|
|
1478
1447
|
}
|
|
1479
1448
|
function LAB(l, a, b, alpha, space) {
|
|
1480
|
-
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
1483
|
-
this.
|
|
1484
|
-
this.
|
|
1485
|
-
this.
|
|
1486
|
-
}
|
|
1487
|
-
protoOf(LAB).
|
|
1488
|
-
return this.
|
|
1489
|
-
};
|
|
1490
|
-
protoOf(LAB).
|
|
1491
|
-
return this.
|
|
1492
|
-
};
|
|
1493
|
-
protoOf(LAB).
|
|
1494
|
-
return this.
|
|
1495
|
-
};
|
|
1496
|
-
protoOf(LAB).
|
|
1497
|
-
var xyzSpace = XYZColorSpace_0(this.
|
|
1498
|
-
if (this.
|
|
1499
|
-
return xyzSpace.
|
|
1500
|
-
var fy = (this.
|
|
1501
|
-
var fz = fy - this.
|
|
1502
|
-
var fx = this.
|
|
1449
|
+
Companion_getInstance_2();
|
|
1450
|
+
this.f1j_1 = l;
|
|
1451
|
+
this.g1j_1 = a;
|
|
1452
|
+
this.h1j_1 = b;
|
|
1453
|
+
this.i1j_1 = alpha;
|
|
1454
|
+
this.j1j_1 = space;
|
|
1455
|
+
}
|
|
1456
|
+
protoOf(LAB).o1i = function () {
|
|
1457
|
+
return this.i1j_1;
|
|
1458
|
+
};
|
|
1459
|
+
protoOf(LAB).p1i = function () {
|
|
1460
|
+
return this.j1j_1;
|
|
1461
|
+
};
|
|
1462
|
+
protoOf(LAB).q1i = function () {
|
|
1463
|
+
return this.f1j_1 === 0.0 ? Companion_getInstance_4().k1k(0.0, 0.0, 0.0, this.i1j_1) : this.x1i().q1i();
|
|
1464
|
+
};
|
|
1465
|
+
protoOf(LAB).x1i = function () {
|
|
1466
|
+
var xyzSpace = XYZColorSpace_0(this.j1j_1.m1j());
|
|
1467
|
+
if (this.f1j_1 === 0.0)
|
|
1468
|
+
return xyzSpace.i1n(0.0, 0.0, 0.0);
|
|
1469
|
+
var fy = (this.f1j_1 + 16) / 116.0;
|
|
1470
|
+
var fz = fy - this.h1j_1 / 200.0;
|
|
1471
|
+
var fx = this.g1j_1 / 500.0 + fy;
|
|
1503
1472
|
var tmp;
|
|
1504
|
-
if (this.
|
|
1473
|
+
if (this.f1j_1 > get_CIE_E_times_K()) {
|
|
1505
1474
|
// Inline function 'kotlin.math.pow' call
|
|
1506
|
-
tmp = Math.pow(fy, 3
|
|
1475
|
+
tmp = Math.pow(fy, 3);
|
|
1507
1476
|
} else {
|
|
1508
|
-
tmp = this.
|
|
1477
|
+
tmp = this.f1j_1 / get_CIE_K();
|
|
1509
1478
|
}
|
|
1510
1479
|
var yr = tmp;
|
|
1511
1480
|
// Inline function 'kotlin.let' call
|
|
1512
1481
|
// Inline function 'kotlin.math.pow' call
|
|
1513
|
-
var tmp0_let = Math.pow(fz, 3.0);
|
|
1514
1482
|
// Inline function 'kotlin.contracts.contract' call
|
|
1515
1483
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toXYZ.<anonymous>' call
|
|
1516
|
-
var
|
|
1484
|
+
var it = Math.pow(fz, 3);
|
|
1485
|
+
var zr = it > get_CIE_E() ? it : (116 * fz - 16) / get_CIE_K();
|
|
1517
1486
|
// Inline function 'kotlin.let' call
|
|
1518
1487
|
// Inline function 'kotlin.math.pow' call
|
|
1519
|
-
var tmp1_let = Math.pow(fx, 3.0);
|
|
1520
1488
|
// Inline function 'kotlin.contracts.contract' call
|
|
1521
1489
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toXYZ.<anonymous>' call
|
|
1522
|
-
var
|
|
1523
|
-
var
|
|
1524
|
-
|
|
1490
|
+
var it_0 = Math.pow(fx, 3);
|
|
1491
|
+
var xr = it_0 > get_CIE_E() ? it_0 : (116 * fx - 16) / get_CIE_K();
|
|
1492
|
+
var wp = this.j1j_1.m1j().w1l_1;
|
|
1493
|
+
return xyzSpace.h1n(xr * wp.m1n(), yr * wp.l1n_1, zr * wp.n1n(), this.i1j_1);
|
|
1525
1494
|
};
|
|
1526
|
-
protoOf(LAB).
|
|
1495
|
+
protoOf(LAB).e1j = function () {
|
|
1527
1496
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
1528
|
-
var
|
|
1529
|
-
var
|
|
1497
|
+
var a = this.g1j_1;
|
|
1498
|
+
var b = this.h1j_1;
|
|
1530
1499
|
// Inline function 'kotlin.math.sqrt' call
|
|
1531
|
-
var
|
|
1532
|
-
var c = Math.sqrt(
|
|
1500
|
+
var x = a * a + b * b;
|
|
1501
|
+
var c = Math.sqrt(x);
|
|
1533
1502
|
var tmp;
|
|
1534
1503
|
if (c > -1.0E-7 ? c < 1.0E-7 : false) {
|
|
1535
|
-
FloatCompanionObject_getInstance();
|
|
1536
1504
|
tmp = NaN;
|
|
1537
1505
|
} else {
|
|
1538
|
-
var tmp$ret$1;
|
|
1539
1506
|
// Inline function 'kotlin.math.atan2' call
|
|
1540
|
-
tmp$ret$1 = Math.atan2(
|
|
1507
|
+
var tmp$ret$1 = Math.atan2(b, a);
|
|
1541
1508
|
tmp = radToDeg(tmp$ret$1);
|
|
1542
1509
|
}
|
|
1543
1510
|
var h = tmp;
|
|
1544
1511
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toLCHab.<anonymous>' call
|
|
1545
|
-
var
|
|
1546
|
-
return LCHabColorSpace(this.
|
|
1512
|
+
var h_0 = normalizeDeg_0(h);
|
|
1513
|
+
return LCHabColorSpace(this.j1j_1.m1j()).k1k(this.f1j_1, c, h_0, this.i1j_1);
|
|
1547
1514
|
};
|
|
1548
|
-
protoOf(LAB).
|
|
1515
|
+
protoOf(LAB).y1i = function () {
|
|
1549
1516
|
return this;
|
|
1550
1517
|
};
|
|
1551
|
-
protoOf(LAB).
|
|
1518
|
+
protoOf(LAB).y2 = function () {
|
|
1552
1519
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1553
|
-
return new Float32Array([this.
|
|
1520
|
+
return new Float32Array([this.f1j_1, this.g1j_1, this.h1j_1, this.i1j_1]);
|
|
1554
1521
|
};
|
|
1555
1522
|
protoOf(LAB).toString = function () {
|
|
1556
|
-
return 'LAB(l=' + this.
|
|
1523
|
+
return 'LAB(l=' + this.f1j_1 + ', a=' + this.g1j_1 + ', b=' + this.h1j_1 + ', alpha=' + this.i1j_1 + ', space=' + this.j1j_1 + ')';
|
|
1557
1524
|
};
|
|
1558
1525
|
protoOf(LAB).hashCode = function () {
|
|
1559
|
-
var result = getNumberHashCode(this.
|
|
1560
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1561
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1562
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1563
|
-
result = imul(result, 31) + hashCode(this.
|
|
1526
|
+
var result = getNumberHashCode(this.f1j_1);
|
|
1527
|
+
result = imul(result, 31) + getNumberHashCode(this.g1j_1) | 0;
|
|
1528
|
+
result = imul(result, 31) + getNumberHashCode(this.h1j_1) | 0;
|
|
1529
|
+
result = imul(result, 31) + getNumberHashCode(this.i1j_1) | 0;
|
|
1530
|
+
result = imul(result, 31) + hashCode(this.j1j_1) | 0;
|
|
1564
1531
|
return result;
|
|
1565
1532
|
};
|
|
1566
1533
|
protoOf(LAB).equals = function (other) {
|
|
@@ -1569,27 +1536,27 @@
|
|
|
1569
1536
|
if (!(other instanceof LAB))
|
|
1570
1537
|
return false;
|
|
1571
1538
|
var tmp0_other_with_cast = other instanceof LAB ? other : THROW_CCE();
|
|
1572
|
-
if (!equals(this.
|
|
1539
|
+
if (!equals(this.f1j_1, tmp0_other_with_cast.f1j_1))
|
|
1573
1540
|
return false;
|
|
1574
|
-
if (!equals(this.
|
|
1541
|
+
if (!equals(this.g1j_1, tmp0_other_with_cast.g1j_1))
|
|
1575
1542
|
return false;
|
|
1576
|
-
if (!equals(this.
|
|
1543
|
+
if (!equals(this.h1j_1, tmp0_other_with_cast.h1j_1))
|
|
1577
1544
|
return false;
|
|
1578
|
-
if (!equals(this.
|
|
1545
|
+
if (!equals(this.i1j_1, tmp0_other_with_cast.i1j_1))
|
|
1579
1546
|
return false;
|
|
1580
|
-
if (!equals(this.
|
|
1547
|
+
if (!equals(this.j1j_1, tmp0_other_with_cast.j1j_1))
|
|
1581
1548
|
return false;
|
|
1582
1549
|
return true;
|
|
1583
1550
|
};
|
|
1584
1551
|
function LABColorSpace() {
|
|
1585
1552
|
}
|
|
1586
1553
|
function LABColorSpace_0(whitePoint) {
|
|
1587
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1554
|
+
return whitePoint.equals(Illuminant_getInstance().c1m_1) ? LABColorSpaces_getInstance().e1l_1 : whitePoint.equals(Illuminant_getInstance().a1m_1) ? LABColorSpaces_getInstance().f1l_1 : new LABColorSpaceImpl(whitePoint);
|
|
1588
1555
|
}
|
|
1589
1556
|
function LABColorSpaces() {
|
|
1590
1557
|
LABColorSpaces_instance = this;
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1558
|
+
this.e1l_1 = new LABColorSpaceImpl(Illuminant_getInstance().c1m_1);
|
|
1559
|
+
this.f1l_1 = new LABColorSpaceImpl(Illuminant_getInstance().a1m_1);
|
|
1593
1560
|
}
|
|
1594
1561
|
var LABColorSpaces_instance;
|
|
1595
1562
|
function LABColorSpaces_getInstance() {
|
|
@@ -1598,37 +1565,37 @@
|
|
|
1598
1565
|
return LABColorSpaces_instance;
|
|
1599
1566
|
}
|
|
1600
1567
|
function LABColorSpaceImpl(whitePoint) {
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1568
|
+
this.o1n_1 = whitePoint;
|
|
1569
|
+
this.p1n_1 = rectangularComponentInfo('LAB');
|
|
1603
1570
|
}
|
|
1604
|
-
protoOf(LABColorSpaceImpl).
|
|
1605
|
-
return this.
|
|
1571
|
+
protoOf(LABColorSpaceImpl).m1j = function () {
|
|
1572
|
+
return this.o1n_1;
|
|
1606
1573
|
};
|
|
1607
|
-
protoOf(LABColorSpaceImpl).
|
|
1574
|
+
protoOf(LABColorSpaceImpl).ka = function () {
|
|
1608
1575
|
return 'LAB';
|
|
1609
1576
|
};
|
|
1610
|
-
protoOf(LABColorSpaceImpl).
|
|
1611
|
-
return this.
|
|
1577
|
+
protoOf(LABColorSpaceImpl).n1j = function () {
|
|
1578
|
+
return this.p1n_1;
|
|
1612
1579
|
};
|
|
1613
|
-
protoOf(LABColorSpaceImpl).
|
|
1580
|
+
protoOf(LABColorSpaceImpl).l1j = function (color) {
|
|
1614
1581
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1615
1582
|
var tmp;
|
|
1616
|
-
var tmp_0 = color.
|
|
1583
|
+
var tmp_0 = color.p1i();
|
|
1617
1584
|
var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1618
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1619
|
-
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().
|
|
1585
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1j();
|
|
1586
|
+
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().c1m_1 : tmp1_elvis_lhs).equals(this.m1j())) {
|
|
1620
1587
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.convert.<anonymous>' call
|
|
1621
|
-
tmp = color.
|
|
1588
|
+
tmp = color.y1i();
|
|
1622
1589
|
} else {
|
|
1623
1590
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.convert.<anonymous>' call
|
|
1624
|
-
tmp = color.
|
|
1591
|
+
tmp = color.x1i().b1l(XYZColorSpace_0(this.m1j())).y1i();
|
|
1625
1592
|
}
|
|
1626
1593
|
return tmp;
|
|
1627
1594
|
};
|
|
1628
|
-
protoOf(LABColorSpaceImpl).
|
|
1595
|
+
protoOf(LABColorSpaceImpl).o1j = function (components) {
|
|
1629
1596
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1630
1597
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1631
|
-
var size = this.
|
|
1598
|
+
var size = this.n1j().l();
|
|
1632
1599
|
// Inline function 'kotlin.require' call
|
|
1633
1600
|
var containsLower = size - 1 | 0;
|
|
1634
1601
|
var containsArg = components.length;
|
|
@@ -1642,26 +1609,25 @@
|
|
|
1642
1609
|
var tmp = components[0];
|
|
1643
1610
|
var tmp_0 = components[1];
|
|
1644
1611
|
var tmp_1 = components[2];
|
|
1645
|
-
var tmp$ret$2;
|
|
1646
1612
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
1647
1613
|
var tmp_2;
|
|
1648
|
-
if (3 <= get_lastIndex_0(components)) {
|
|
1614
|
+
if (3 >= 0 ? 3 <= get_lastIndex_0(components) : false) {
|
|
1649
1615
|
tmp_2 = components[3];
|
|
1650
1616
|
} else {
|
|
1651
1617
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
1652
1618
|
tmp_2 = 1.0;
|
|
1653
1619
|
}
|
|
1654
|
-
tmp$ret$2 = tmp_2;
|
|
1655
|
-
return this.
|
|
1620
|
+
var tmp$ret$2 = tmp_2;
|
|
1621
|
+
return this.k1k(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
1656
1622
|
};
|
|
1657
1623
|
protoOf(LABColorSpaceImpl).toString = function () {
|
|
1658
|
-
return 'LABColorSpace(' + this.
|
|
1624
|
+
return 'LABColorSpace(' + this.o1n_1 + ')';
|
|
1659
1625
|
};
|
|
1660
|
-
protoOf(LABColorSpaceImpl).
|
|
1626
|
+
protoOf(LABColorSpaceImpl).k1k = function (l, a, b, alpha) {
|
|
1661
1627
|
return new LAB(l, a, b, alpha, this);
|
|
1662
1628
|
};
|
|
1663
1629
|
protoOf(LABColorSpaceImpl).hashCode = function () {
|
|
1664
|
-
return this.
|
|
1630
|
+
return this.o1n_1.hashCode();
|
|
1665
1631
|
};
|
|
1666
1632
|
protoOf(LABColorSpaceImpl).equals = function (other) {
|
|
1667
1633
|
if (this === other)
|
|
@@ -1669,89 +1635,89 @@
|
|
|
1669
1635
|
if (!(other instanceof LABColorSpaceImpl))
|
|
1670
1636
|
return false;
|
|
1671
1637
|
var tmp0_other_with_cast = other instanceof LABColorSpaceImpl ? other : THROW_CCE();
|
|
1672
|
-
if (!this.
|
|
1638
|
+
if (!this.o1n_1.equals(tmp0_other_with_cast.o1n_1))
|
|
1673
1639
|
return false;
|
|
1674
1640
|
return true;
|
|
1675
1641
|
};
|
|
1676
1642
|
function Companion_3() {
|
|
1677
|
-
|
|
1678
|
-
this.
|
|
1643
|
+
Companion_instance_4 = this;
|
|
1644
|
+
this.m1k_1 = LCHabColorSpaces_getInstance().c1l_1;
|
|
1679
1645
|
}
|
|
1680
|
-
protoOf(Companion_3).
|
|
1681
|
-
return this.
|
|
1646
|
+
protoOf(Companion_3).n1j = function () {
|
|
1647
|
+
return this.m1k_1.n1j();
|
|
1682
1648
|
};
|
|
1683
|
-
protoOf(Companion_3).
|
|
1684
|
-
return this.
|
|
1649
|
+
protoOf(Companion_3).ka = function () {
|
|
1650
|
+
return this.m1k_1.ka();
|
|
1685
1651
|
};
|
|
1686
|
-
protoOf(Companion_3).
|
|
1687
|
-
return this.
|
|
1652
|
+
protoOf(Companion_3).m1j = function () {
|
|
1653
|
+
return this.m1k_1.m1j();
|
|
1688
1654
|
};
|
|
1689
|
-
protoOf(Companion_3).
|
|
1690
|
-
return this.
|
|
1655
|
+
protoOf(Companion_3).l1j = function (color) {
|
|
1656
|
+
return this.m1k_1.l1j(color);
|
|
1691
1657
|
};
|
|
1692
|
-
protoOf(Companion_3).
|
|
1693
|
-
return this.
|
|
1658
|
+
protoOf(Companion_3).o1j = function (components) {
|
|
1659
|
+
return this.m1k_1.o1j(components);
|
|
1694
1660
|
};
|
|
1695
|
-
protoOf(Companion_3).
|
|
1696
|
-
return this.
|
|
1661
|
+
protoOf(Companion_3).k1k = function (l, c, h, alpha) {
|
|
1662
|
+
return this.m1k_1.k1k(l, c, h, alpha);
|
|
1697
1663
|
};
|
|
1698
|
-
var
|
|
1699
|
-
function
|
|
1700
|
-
if (
|
|
1664
|
+
var Companion_instance_4;
|
|
1665
|
+
function Companion_getInstance_3() {
|
|
1666
|
+
if (Companion_instance_4 == null)
|
|
1701
1667
|
new Companion_3();
|
|
1702
|
-
return
|
|
1668
|
+
return Companion_instance_4;
|
|
1703
1669
|
}
|
|
1704
1670
|
function LCHab(l, c, h, alpha, space) {
|
|
1705
|
-
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1708
|
-
this.
|
|
1709
|
-
this.
|
|
1710
|
-
this.
|
|
1671
|
+
Companion_getInstance_3();
|
|
1672
|
+
this.l1l_1 = l;
|
|
1673
|
+
this.m1l_1 = c;
|
|
1674
|
+
this.n1l_1 = h;
|
|
1675
|
+
this.o1l_1 = alpha;
|
|
1676
|
+
this.p1l_1 = space;
|
|
1711
1677
|
}
|
|
1712
|
-
protoOf(LCHab).
|
|
1713
|
-
return this.
|
|
1678
|
+
protoOf(LCHab).u1l = function () {
|
|
1679
|
+
return this.n1l_1;
|
|
1714
1680
|
};
|
|
1715
|
-
protoOf(LCHab).
|
|
1716
|
-
return this.
|
|
1681
|
+
protoOf(LCHab).o1i = function () {
|
|
1682
|
+
return this.o1l_1;
|
|
1717
1683
|
};
|
|
1718
|
-
protoOf(LCHab).
|
|
1719
|
-
return this.
|
|
1684
|
+
protoOf(LCHab).p1i = function () {
|
|
1685
|
+
return this.p1l_1;
|
|
1720
1686
|
};
|
|
1721
|
-
protoOf(LCHab).
|
|
1722
|
-
return this.
|
|
1687
|
+
protoOf(LCHab).q1i = function () {
|
|
1688
|
+
return this.y1i().q1i();
|
|
1723
1689
|
};
|
|
1724
|
-
protoOf(LCHab).
|
|
1725
|
-
return this.
|
|
1690
|
+
protoOf(LCHab).x1i = function () {
|
|
1691
|
+
return this.y1i().x1i();
|
|
1726
1692
|
};
|
|
1727
|
-
protoOf(LCHab).
|
|
1693
|
+
protoOf(LCHab).y1i = function () {
|
|
1728
1694
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
1729
|
-
var
|
|
1730
|
-
var
|
|
1731
|
-
var hDegrees = isNaN_0(
|
|
1695
|
+
var c = this.m1l_1;
|
|
1696
|
+
var h = this.n1l_1;
|
|
1697
|
+
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
1732
1698
|
// Inline function 'kotlin.math.cos' call
|
|
1733
|
-
var a =
|
|
1699
|
+
var a = c * Math.cos(hDegrees);
|
|
1734
1700
|
// Inline function 'kotlin.math.sin' call
|
|
1735
|
-
var b =
|
|
1701
|
+
var b = c * Math.sin(hDegrees);
|
|
1736
1702
|
// Inline function 'com.github.ajalt.colormath.model.LCHab.toLAB.<anonymous>' call
|
|
1737
|
-
return LABColorSpace_0(this.
|
|
1703
|
+
return LABColorSpace_0(this.p1l_1.m1j()).k1k(this.l1l_1, a, b, this.o1l_1);
|
|
1738
1704
|
};
|
|
1739
|
-
protoOf(LCHab).
|
|
1705
|
+
protoOf(LCHab).e1j = function () {
|
|
1740
1706
|
return this;
|
|
1741
1707
|
};
|
|
1742
|
-
protoOf(LCHab).
|
|
1708
|
+
protoOf(LCHab).y2 = function () {
|
|
1743
1709
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1744
|
-
return new Float32Array([this.
|
|
1710
|
+
return new Float32Array([this.l1l_1, this.m1l_1, this.n1l_1, this.o1l_1]);
|
|
1745
1711
|
};
|
|
1746
1712
|
protoOf(LCHab).toString = function () {
|
|
1747
|
-
return 'LCHab(l=' + this.
|
|
1713
|
+
return 'LCHab(l=' + this.l1l_1 + ', c=' + this.m1l_1 + ', h=' + this.n1l_1 + ', alpha=' + this.o1l_1 + ', space=' + this.p1l_1 + ')';
|
|
1748
1714
|
};
|
|
1749
1715
|
protoOf(LCHab).hashCode = function () {
|
|
1750
|
-
var result = getNumberHashCode(this.
|
|
1751
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1752
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1753
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1754
|
-
result = imul(result, 31) + hashCode(this.
|
|
1716
|
+
var result = getNumberHashCode(this.l1l_1);
|
|
1717
|
+
result = imul(result, 31) + getNumberHashCode(this.m1l_1) | 0;
|
|
1718
|
+
result = imul(result, 31) + getNumberHashCode(this.n1l_1) | 0;
|
|
1719
|
+
result = imul(result, 31) + getNumberHashCode(this.o1l_1) | 0;
|
|
1720
|
+
result = imul(result, 31) + hashCode(this.p1l_1) | 0;
|
|
1755
1721
|
return result;
|
|
1756
1722
|
};
|
|
1757
1723
|
protoOf(LCHab).equals = function (other) {
|
|
@@ -1760,25 +1726,25 @@
|
|
|
1760
1726
|
if (!(other instanceof LCHab))
|
|
1761
1727
|
return false;
|
|
1762
1728
|
var tmp0_other_with_cast = other instanceof LCHab ? other : THROW_CCE();
|
|
1763
|
-
if (!equals(this.
|
|
1729
|
+
if (!equals(this.l1l_1, tmp0_other_with_cast.l1l_1))
|
|
1764
1730
|
return false;
|
|
1765
|
-
if (!equals(this.
|
|
1731
|
+
if (!equals(this.m1l_1, tmp0_other_with_cast.m1l_1))
|
|
1766
1732
|
return false;
|
|
1767
|
-
if (!equals(this.
|
|
1733
|
+
if (!equals(this.n1l_1, tmp0_other_with_cast.n1l_1))
|
|
1768
1734
|
return false;
|
|
1769
|
-
if (!equals(this.
|
|
1735
|
+
if (!equals(this.o1l_1, tmp0_other_with_cast.o1l_1))
|
|
1770
1736
|
return false;
|
|
1771
|
-
if (!equals(this.
|
|
1737
|
+
if (!equals(this.p1l_1, tmp0_other_with_cast.p1l_1))
|
|
1772
1738
|
return false;
|
|
1773
1739
|
return true;
|
|
1774
1740
|
};
|
|
1775
1741
|
function LCHabColorSpace(whitePoint) {
|
|
1776
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1742
|
+
return whitePoint.equals(Illuminant_getInstance().c1m_1) ? LCHabColorSpaces_getInstance().c1l_1 : whitePoint.equals(Illuminant_getInstance().a1m_1) ? LCHabColorSpaces_getInstance().d1l_1 : new LCHabColorSpaceImpl(whitePoint);
|
|
1777
1743
|
}
|
|
1778
1744
|
function LCHabColorSpaces() {
|
|
1779
1745
|
LCHabColorSpaces_instance = this;
|
|
1780
|
-
this.
|
|
1781
|
-
this.
|
|
1746
|
+
this.c1l_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().c1m_1);
|
|
1747
|
+
this.d1l_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().a1m_1);
|
|
1782
1748
|
}
|
|
1783
1749
|
var LCHabColorSpaces_instance;
|
|
1784
1750
|
function LCHabColorSpaces_getInstance() {
|
|
@@ -1787,37 +1753,37 @@
|
|
|
1787
1753
|
return LCHabColorSpaces_instance;
|
|
1788
1754
|
}
|
|
1789
1755
|
function LCHabColorSpaceImpl(whitePoint) {
|
|
1790
|
-
this.
|
|
1791
|
-
this.
|
|
1756
|
+
this.q1n_1 = whitePoint;
|
|
1757
|
+
this.r1n_1 = polarComponentInfo('LCH');
|
|
1792
1758
|
}
|
|
1793
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1794
|
-
return this.
|
|
1759
|
+
protoOf(LCHabColorSpaceImpl).m1j = function () {
|
|
1760
|
+
return this.q1n_1;
|
|
1795
1761
|
};
|
|
1796
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1762
|
+
protoOf(LCHabColorSpaceImpl).ka = function () {
|
|
1797
1763
|
return 'LCHab';
|
|
1798
1764
|
};
|
|
1799
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1800
|
-
return this.
|
|
1765
|
+
protoOf(LCHabColorSpaceImpl).n1j = function () {
|
|
1766
|
+
return this.r1n_1;
|
|
1801
1767
|
};
|
|
1802
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1768
|
+
protoOf(LCHabColorSpaceImpl).l1j = function (color) {
|
|
1803
1769
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1804
1770
|
var tmp;
|
|
1805
|
-
var tmp_0 = color.
|
|
1771
|
+
var tmp_0 = color.p1i();
|
|
1806
1772
|
var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1807
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1808
|
-
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().
|
|
1773
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1j();
|
|
1774
|
+
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().c1m_1 : tmp1_elvis_lhs).equals(this.m1j())) {
|
|
1809
1775
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.convert.<anonymous>' call
|
|
1810
|
-
tmp = color.
|
|
1776
|
+
tmp = color.e1j();
|
|
1811
1777
|
} else {
|
|
1812
1778
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.convert.<anonymous>' call
|
|
1813
|
-
tmp = color.
|
|
1779
|
+
tmp = color.x1i().b1l(XYZColorSpace_0(this.m1j())).e1j();
|
|
1814
1780
|
}
|
|
1815
1781
|
return tmp;
|
|
1816
1782
|
};
|
|
1817
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1783
|
+
protoOf(LCHabColorSpaceImpl).o1j = function (components) {
|
|
1818
1784
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1819
1785
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1820
|
-
var size = this.
|
|
1786
|
+
var size = this.n1j().l();
|
|
1821
1787
|
// Inline function 'kotlin.require' call
|
|
1822
1788
|
var containsLower = size - 1 | 0;
|
|
1823
1789
|
var containsArg = components.length;
|
|
@@ -1831,26 +1797,25 @@
|
|
|
1831
1797
|
var tmp = components[0];
|
|
1832
1798
|
var tmp_0 = components[1];
|
|
1833
1799
|
var tmp_1 = components[2];
|
|
1834
|
-
var tmp$ret$2;
|
|
1835
1800
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
1836
1801
|
var tmp_2;
|
|
1837
|
-
if (3 <= get_lastIndex_0(components)) {
|
|
1802
|
+
if (3 >= 0 ? 3 <= get_lastIndex_0(components) : false) {
|
|
1838
1803
|
tmp_2 = components[3];
|
|
1839
1804
|
} else {
|
|
1840
1805
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
1841
1806
|
tmp_2 = 1.0;
|
|
1842
1807
|
}
|
|
1843
|
-
tmp$ret$2 = tmp_2;
|
|
1844
|
-
return this.
|
|
1808
|
+
var tmp$ret$2 = tmp_2;
|
|
1809
|
+
return this.k1k(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
1845
1810
|
};
|
|
1846
1811
|
protoOf(LCHabColorSpaceImpl).toString = function () {
|
|
1847
|
-
return 'LCHabColorSpace(' + this.
|
|
1812
|
+
return 'LCHabColorSpace(' + this.q1n_1 + ')';
|
|
1848
1813
|
};
|
|
1849
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1814
|
+
protoOf(LCHabColorSpaceImpl).k1k = function (l, c, h, alpha) {
|
|
1850
1815
|
return new LCHab(l, c, h, alpha, this);
|
|
1851
1816
|
};
|
|
1852
1817
|
protoOf(LCHabColorSpaceImpl).hashCode = function () {
|
|
1853
|
-
return this.
|
|
1818
|
+
return this.q1n_1.hashCode();
|
|
1854
1819
|
};
|
|
1855
1820
|
protoOf(LCHabColorSpaceImpl).equals = function (other) {
|
|
1856
1821
|
if (this === other)
|
|
@@ -1858,24 +1823,24 @@
|
|
|
1858
1823
|
if (!(other instanceof LCHabColorSpaceImpl))
|
|
1859
1824
|
return false;
|
|
1860
1825
|
var tmp0_other_with_cast = other instanceof LCHabColorSpaceImpl ? other : THROW_CCE();
|
|
1861
|
-
if (!this.
|
|
1826
|
+
if (!this.q1n_1.equals(tmp0_other_with_cast.q1n_1))
|
|
1862
1827
|
return false;
|
|
1863
1828
|
return true;
|
|
1864
1829
|
};
|
|
1865
1830
|
function GammaTransferFunctions(gamma) {
|
|
1866
|
-
this.
|
|
1831
|
+
this.s1n_1 = gamma;
|
|
1867
1832
|
}
|
|
1868
|
-
protoOf(GammaTransferFunctions).
|
|
1869
|
-
return spow(x, this.
|
|
1833
|
+
protoOf(GammaTransferFunctions).f1n = function (x) {
|
|
1834
|
+
return spow(x, this.s1n_1);
|
|
1870
1835
|
};
|
|
1871
|
-
protoOf(GammaTransferFunctions).
|
|
1872
|
-
return spow(x, 1.0 / this.
|
|
1836
|
+
protoOf(GammaTransferFunctions).g1n = function (x) {
|
|
1837
|
+
return spow(x, 1.0 / this.s1n_1);
|
|
1873
1838
|
};
|
|
1874
1839
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
1875
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
1840
|
+
return 'GammaTransferFunctions(gamma=' + this.s1n_1 + ')';
|
|
1876
1841
|
};
|
|
1877
1842
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
1878
|
-
return getNumberHashCode(this.
|
|
1843
|
+
return getNumberHashCode(this.s1n_1);
|
|
1879
1844
|
};
|
|
1880
1845
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
1881
1846
|
if (this === other)
|
|
@@ -1883,106 +1848,103 @@
|
|
|
1883
1848
|
if (!(other instanceof GammaTransferFunctions))
|
|
1884
1849
|
return false;
|
|
1885
1850
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
1886
|
-
if (!equals(this.
|
|
1851
|
+
if (!equals(this.s1n_1, tmp0_other_with_cast.s1n_1))
|
|
1887
1852
|
return false;
|
|
1888
1853
|
return true;
|
|
1889
1854
|
};
|
|
1890
1855
|
function LinearTransferFunctions() {
|
|
1891
|
-
LinearTransferFunctions_instance = this;
|
|
1892
1856
|
}
|
|
1893
|
-
protoOf(LinearTransferFunctions).
|
|
1857
|
+
protoOf(LinearTransferFunctions).f1n = function (x) {
|
|
1894
1858
|
return x;
|
|
1895
1859
|
};
|
|
1896
|
-
protoOf(LinearTransferFunctions).
|
|
1860
|
+
protoOf(LinearTransferFunctions).g1n = function (x) {
|
|
1897
1861
|
return x;
|
|
1898
1862
|
};
|
|
1899
1863
|
var LinearTransferFunctions_instance;
|
|
1900
1864
|
function LinearTransferFunctions_getInstance() {
|
|
1901
|
-
if (LinearTransferFunctions_instance == null)
|
|
1902
|
-
new LinearTransferFunctions();
|
|
1903
1865
|
return LinearTransferFunctions_instance;
|
|
1904
1866
|
}
|
|
1905
1867
|
function RGBColorSpace() {
|
|
1906
1868
|
}
|
|
1907
1869
|
function Companion_4() {
|
|
1908
|
-
|
|
1909
|
-
this.
|
|
1870
|
+
Companion_instance_5 = this;
|
|
1871
|
+
this.i1k_1 = RGBColorSpaces_getInstance().n1k_1;
|
|
1910
1872
|
}
|
|
1911
|
-
protoOf(Companion_4).
|
|
1912
|
-
return this.
|
|
1873
|
+
protoOf(Companion_4).n1j = function () {
|
|
1874
|
+
return this.i1k_1.n1j();
|
|
1913
1875
|
};
|
|
1914
|
-
protoOf(Companion_4).
|
|
1915
|
-
return this.
|
|
1876
|
+
protoOf(Companion_4).u1n = function () {
|
|
1877
|
+
return this.i1k_1.u1n();
|
|
1916
1878
|
};
|
|
1917
|
-
protoOf(Companion_4).
|
|
1918
|
-
return this.
|
|
1879
|
+
protoOf(Companion_4).t1n = function () {
|
|
1880
|
+
return this.i1k_1.t1n();
|
|
1919
1881
|
};
|
|
1920
|
-
protoOf(Companion_4).
|
|
1921
|
-
return this.
|
|
1882
|
+
protoOf(Companion_4).ka = function () {
|
|
1883
|
+
return this.i1k_1.ka();
|
|
1922
1884
|
};
|
|
1923
|
-
protoOf(Companion_4).
|
|
1924
|
-
return this.
|
|
1885
|
+
protoOf(Companion_4).w1m = function () {
|
|
1886
|
+
return this.i1k_1.w1m();
|
|
1925
1887
|
};
|
|
1926
|
-
protoOf(Companion_4).
|
|
1927
|
-
return this.
|
|
1888
|
+
protoOf(Companion_4).m1j = function () {
|
|
1889
|
+
return this.i1k_1.m1j();
|
|
1928
1890
|
};
|
|
1929
|
-
protoOf(Companion_4).
|
|
1930
|
-
return this.
|
|
1891
|
+
protoOf(Companion_4).l1j = function (color) {
|
|
1892
|
+
return this.i1k_1.l1j(color);
|
|
1931
1893
|
};
|
|
1932
|
-
protoOf(Companion_4).
|
|
1933
|
-
return this.
|
|
1894
|
+
protoOf(Companion_4).o1j = function (components) {
|
|
1895
|
+
return this.i1k_1.o1j(components);
|
|
1934
1896
|
};
|
|
1935
|
-
protoOf(Companion_4).
|
|
1936
|
-
return this.
|
|
1897
|
+
protoOf(Companion_4).g1m = function (r, g, b, alpha) {
|
|
1898
|
+
return this.i1k_1.g1m(r, g, b, alpha);
|
|
1937
1899
|
};
|
|
1938
|
-
protoOf(Companion_4).
|
|
1939
|
-
return this.
|
|
1900
|
+
protoOf(Companion_4).k1k = function (r, g, b, alpha) {
|
|
1901
|
+
return this.i1k_1.k1k(r, g, b, alpha);
|
|
1940
1902
|
};
|
|
1941
|
-
protoOf(Companion_4).
|
|
1942
|
-
return this.
|
|
1903
|
+
protoOf(Companion_4).h1n = function (r, g, b, alpha) {
|
|
1904
|
+
return this.i1k_1.h1n(r, g, b, alpha);
|
|
1943
1905
|
};
|
|
1944
|
-
protoOf(Companion_4).
|
|
1945
|
-
return this.
|
|
1906
|
+
protoOf(Companion_4).j1k = function (hex) {
|
|
1907
|
+
return this.i1k_1.j1k(hex);
|
|
1946
1908
|
};
|
|
1947
|
-
var
|
|
1948
|
-
function
|
|
1949
|
-
if (
|
|
1909
|
+
var Companion_instance_5;
|
|
1910
|
+
function Companion_getInstance_4() {
|
|
1911
|
+
if (Companion_instance_5 == null)
|
|
1950
1912
|
new Companion_4();
|
|
1951
|
-
return
|
|
1913
|
+
return Companion_instance_5;
|
|
1952
1914
|
}
|
|
1953
1915
|
function RGB(r, g, b, alpha, space) {
|
|
1954
|
-
|
|
1955
|
-
this.
|
|
1956
|
-
this.
|
|
1957
|
-
this.
|
|
1958
|
-
this.
|
|
1959
|
-
this.
|
|
1916
|
+
Companion_getInstance_4();
|
|
1917
|
+
this.s1i_1 = r;
|
|
1918
|
+
this.t1i_1 = g;
|
|
1919
|
+
this.u1i_1 = b;
|
|
1920
|
+
this.v1i_1 = alpha;
|
|
1921
|
+
this.w1i_1 = space;
|
|
1960
1922
|
}
|
|
1961
|
-
protoOf(RGB).
|
|
1962
|
-
return this.
|
|
1923
|
+
protoOf(RGB).o1i = function () {
|
|
1924
|
+
return this.v1i_1;
|
|
1963
1925
|
};
|
|
1964
|
-
protoOf(RGB).
|
|
1965
|
-
return this.
|
|
1926
|
+
protoOf(RGB).p1i = function () {
|
|
1927
|
+
return this.w1i_1;
|
|
1966
1928
|
};
|
|
1967
|
-
protoOf(RGB).
|
|
1929
|
+
protoOf(RGB).g1l = function () {
|
|
1968
1930
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
1969
1931
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toRGBInt.<anonymous>' call
|
|
1970
|
-
var
|
|
1971
|
-
return _RGBInt___init__impl__lqova7_1(
|
|
1932
|
+
var $this$toSRGB = this.v1n(SRGB_getInstance());
|
|
1933
|
+
return _RGBInt___init__impl__lqova7_1($this$toSRGB.s1i_1, $this$toSRGB.t1i_1, $this$toSRGB.u1i_1, nanToOne($this$toSRGB.v1i_1));
|
|
1972
1934
|
};
|
|
1973
|
-
protoOf(RGB).
|
|
1974
|
-
var f = SRGB_getInstance().
|
|
1975
|
-
return equals(this.
|
|
1935
|
+
protoOf(RGB).v1n = function (space) {
|
|
1936
|
+
var f = SRGB_getInstance().l1m_1;
|
|
1937
|
+
return equals(this.w1i_1, space) ? this : (equals(this.w1i_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().o1k_1) : false) ? space.k1k(f.f1n(this.s1i_1), f.f1n(this.t1i_1), f.f1n(this.u1i_1), this.v1i_1) : (equals(this.w1i_1, RGBColorSpaces_getInstance().o1k_1) ? equals(space, SRGB_getInstance()) : false) ? space.k1k(f.g1n(this.s1i_1), f.g1n(this.t1i_1), f.g1n(this.u1i_1), this.v1i_1) : this.x1i().w1n(space);
|
|
1976
1938
|
};
|
|
1977
|
-
protoOf(RGB).
|
|
1939
|
+
protoOf(RGB).r1i = function () {
|
|
1978
1940
|
var tmp$ret$3;
|
|
1979
1941
|
$l$block: {
|
|
1980
1942
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
1981
1943
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
1982
|
-
var
|
|
1983
|
-
var r =
|
|
1984
|
-
var g =
|
|
1985
|
-
var b =
|
|
1944
|
+
var $this$toSRGB = this.v1n(SRGB_getInstance());
|
|
1945
|
+
var r = $this$toSRGB.s1i_1;
|
|
1946
|
+
var g = $this$toSRGB.t1i_1;
|
|
1947
|
+
var b = $this$toSRGB.u1i_1;
|
|
1986
1948
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1987
1949
|
var min = Math.min(r, g, b);
|
|
1988
1950
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -1990,7 +1952,6 @@
|
|
|
1990
1952
|
var chroma = max - min;
|
|
1991
1953
|
var tmp;
|
|
1992
1954
|
if (chroma < 1.0E-7) {
|
|
1993
|
-
DoubleCompanionObject_getInstance();
|
|
1994
1955
|
tmp = NaN;
|
|
1995
1956
|
} else if (r === max) {
|
|
1996
1957
|
tmp = (g - b) / chroma;
|
|
@@ -2003,36 +1964,36 @@
|
|
|
2003
1964
|
}
|
|
2004
1965
|
var h = tmp * 60;
|
|
2005
1966
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSL.<anonymous>' call
|
|
2006
|
-
var
|
|
1967
|
+
var h_0 = normalizeDeg(h);
|
|
2007
1968
|
var l = (min + max) / 2.0;
|
|
2008
1969
|
var s = max === min ? 0.0 : l <= 0.5 ? chroma / (max + min) : chroma / (2 - max - min);
|
|
2009
|
-
tmp$ret$3 = new HSL(
|
|
1970
|
+
tmp$ret$3 = new HSL(h_0, s, l, this.v1i_1);
|
|
2010
1971
|
break $l$block;
|
|
2011
1972
|
}
|
|
2012
1973
|
return tmp$ret$3;
|
|
2013
1974
|
};
|
|
2014
|
-
protoOf(RGB).
|
|
2015
|
-
var f = this.
|
|
1975
|
+
protoOf(RGB).x1i = function () {
|
|
1976
|
+
var f = this.w1i_1.w1m();
|
|
2016
1977
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2017
|
-
var
|
|
2018
|
-
var
|
|
2019
|
-
var
|
|
2020
|
-
var
|
|
1978
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.w1i_1.t1n());
|
|
1979
|
+
var v0 = f.f1n(this.s1i_1);
|
|
1980
|
+
var v1 = f.f1n(this.t1i_1);
|
|
1981
|
+
var v2 = f.f1n(this.u1i_1);
|
|
2021
1982
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
2022
|
-
var
|
|
2023
|
-
var
|
|
2024
|
-
var
|
|
2025
|
-
return XYZColorSpace_0(this.
|
|
1983
|
+
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
1984
|
+
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
1985
|
+
var z = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
1986
|
+
return XYZColorSpace_0(this.w1i_1.m1j()).k1k(x, y, z, this.v1i_1);
|
|
2026
1987
|
};
|
|
2027
|
-
protoOf(RGB).
|
|
1988
|
+
protoOf(RGB).k1j = function () {
|
|
2028
1989
|
var tmp$ret$3;
|
|
2029
1990
|
$l$block: {
|
|
2030
1991
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2031
1992
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2032
|
-
var
|
|
2033
|
-
var r =
|
|
2034
|
-
var g =
|
|
2035
|
-
var b =
|
|
1993
|
+
var $this$toSRGB = this.v1n(SRGB_getInstance());
|
|
1994
|
+
var r = $this$toSRGB.s1i_1;
|
|
1995
|
+
var g = $this$toSRGB.t1i_1;
|
|
1996
|
+
var b = $this$toSRGB.u1i_1;
|
|
2036
1997
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2037
1998
|
var min = Math.min(r, g, b);
|
|
2038
1999
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -2040,7 +2001,6 @@
|
|
|
2040
2001
|
var chroma = max - min;
|
|
2041
2002
|
var tmp;
|
|
2042
2003
|
if (chroma < 1.0E-7) {
|
|
2043
|
-
DoubleCompanionObject_getInstance();
|
|
2044
2004
|
tmp = NaN;
|
|
2045
2005
|
} else if (r === max) {
|
|
2046
2006
|
tmp = (g - b) / chroma;
|
|
@@ -2053,28 +2013,28 @@
|
|
|
2053
2013
|
}
|
|
2054
2014
|
var h = tmp * 60;
|
|
2055
2015
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHWB.<anonymous>' call
|
|
2056
|
-
var
|
|
2057
|
-
tmp$ret$3 = new HWB(
|
|
2016
|
+
var hue = normalizeDeg(h);
|
|
2017
|
+
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.v1i_1);
|
|
2058
2018
|
break $l$block;
|
|
2059
2019
|
}
|
|
2060
2020
|
return tmp$ret$3;
|
|
2061
2021
|
};
|
|
2062
|
-
protoOf(RGB).
|
|
2063
|
-
return this.
|
|
2022
|
+
protoOf(RGB).q1i = function () {
|
|
2023
|
+
return this.v1n(RGBColorSpaces_getInstance().n1k_1);
|
|
2064
2024
|
};
|
|
2065
|
-
protoOf(RGB).
|
|
2025
|
+
protoOf(RGB).y2 = function () {
|
|
2066
2026
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2067
|
-
return new Float32Array([this.
|
|
2027
|
+
return new Float32Array([this.s1i_1, this.t1i_1, this.u1i_1, this.v1i_1]);
|
|
2068
2028
|
};
|
|
2069
2029
|
protoOf(RGB).toString = function () {
|
|
2070
|
-
return 'RGB(r=' + this.
|
|
2030
|
+
return 'RGB(r=' + this.s1i_1 + ', g=' + this.t1i_1 + ', b=' + this.u1i_1 + ', alpha=' + this.v1i_1 + ', space=' + this.w1i_1 + ')';
|
|
2071
2031
|
};
|
|
2072
2032
|
protoOf(RGB).hashCode = function () {
|
|
2073
|
-
var result = getNumberHashCode(this.
|
|
2074
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2075
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2076
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2077
|
-
result = imul(result, 31) + hashCode(this.
|
|
2033
|
+
var result = getNumberHashCode(this.s1i_1);
|
|
2034
|
+
result = imul(result, 31) + getNumberHashCode(this.t1i_1) | 0;
|
|
2035
|
+
result = imul(result, 31) + getNumberHashCode(this.u1i_1) | 0;
|
|
2036
|
+
result = imul(result, 31) + getNumberHashCode(this.v1i_1) | 0;
|
|
2037
|
+
result = imul(result, 31) + hashCode(this.w1i_1) | 0;
|
|
2078
2038
|
return result;
|
|
2079
2039
|
};
|
|
2080
2040
|
protoOf(RGB).equals = function (other) {
|
|
@@ -2083,15 +2043,15 @@
|
|
|
2083
2043
|
if (!(other instanceof RGB))
|
|
2084
2044
|
return false;
|
|
2085
2045
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
2086
|
-
if (!equals(this.
|
|
2046
|
+
if (!equals(this.s1i_1, tmp0_other_with_cast.s1i_1))
|
|
2087
2047
|
return false;
|
|
2088
|
-
if (!equals(this.
|
|
2048
|
+
if (!equals(this.t1i_1, tmp0_other_with_cast.t1i_1))
|
|
2089
2049
|
return false;
|
|
2090
|
-
if (!equals(this.
|
|
2050
|
+
if (!equals(this.u1i_1, tmp0_other_with_cast.u1i_1))
|
|
2091
2051
|
return false;
|
|
2092
|
-
if (!equals(this.
|
|
2052
|
+
if (!equals(this.v1i_1, tmp0_other_with_cast.v1i_1))
|
|
2093
2053
|
return false;
|
|
2094
|
-
if (!equals(this.
|
|
2054
|
+
if (!equals(this.w1i_1, tmp0_other_with_cast.w1i_1))
|
|
2095
2055
|
return false;
|
|
2096
2056
|
return true;
|
|
2097
2057
|
};
|
|
@@ -2102,12 +2062,11 @@
|
|
|
2102
2062
|
tmp = toInt(slice(_this__u8e3s4, numberRangeToNumber(i, i + 1 | 0)), 16);
|
|
2103
2063
|
} else {
|
|
2104
2064
|
var i_0 = charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(35) ? startIndex + 1 | 0 : startIndex;
|
|
2105
|
-
var tmp$ret$1;
|
|
2106
2065
|
// Inline function 'kotlin.let' call
|
|
2107
|
-
var tmp0_let = charSequenceGet(_this__u8e3s4, i_0);
|
|
2108
2066
|
// Inline function 'kotlin.contracts.contract' call
|
|
2109
2067
|
// Inline function 'com.github.ajalt.colormath.model.parseHex.<anonymous>' call
|
|
2110
|
-
|
|
2068
|
+
var it = charSequenceGet(_this__u8e3s4, i_0);
|
|
2069
|
+
var tmp$ret$1 = toString(it) + toString(it);
|
|
2111
2070
|
tmp = toInt(tmp$ret$1, 16);
|
|
2112
2071
|
}
|
|
2113
2072
|
return tmp;
|
|
@@ -2118,18 +2077,17 @@
|
|
|
2118
2077
|
// Inline function 'com.github.ajalt.colormath.model.validateHex.<anonymous>' call
|
|
2119
2078
|
// Inline function 'kotlin.require' call
|
|
2120
2079
|
// Inline function 'kotlin.let' call
|
|
2121
|
-
var tmp0_let = get_hexLength(_this__u8e3s4);
|
|
2122
2080
|
// Inline function 'kotlin.contracts.contract' call
|
|
2123
|
-
var tmp$ret$0;
|
|
2124
2081
|
// Inline function 'com.github.ajalt.colormath.model.validateHex.<anonymous>.<anonymous>' call
|
|
2125
|
-
|
|
2082
|
+
var it = get_hexLength(_this__u8e3s4);
|
|
2083
|
+
switch (it) {
|
|
2126
2084
|
case 3:
|
|
2127
2085
|
case 4:
|
|
2128
2086
|
case 6:
|
|
2129
|
-
tmp$ret$0 = true;
|
|
2087
|
+
var tmp$ret$0 = true;
|
|
2130
2088
|
break;
|
|
2131
2089
|
default:
|
|
2132
|
-
tmp$ret$0 =
|
|
2090
|
+
tmp$ret$0 = it === 8;
|
|
2133
2091
|
break;
|
|
2134
2092
|
}
|
|
2135
2093
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2195,18 +2153,18 @@
|
|
|
2195
2153
|
var ACES_AP1_B;
|
|
2196
2154
|
function RGBColorSpaces() {
|
|
2197
2155
|
RGBColorSpaces_instance = this;
|
|
2198
|
-
this.
|
|
2199
|
-
this.
|
|
2200
|
-
this.
|
|
2201
|
-
this.
|
|
2202
|
-
this.
|
|
2203
|
-
this.
|
|
2204
|
-
this.
|
|
2205
|
-
this.
|
|
2206
|
-
this.
|
|
2207
|
-
this.
|
|
2208
|
-
this.
|
|
2209
|
-
this.
|
|
2156
|
+
this.n1k_1 = SRGB_getInstance();
|
|
2157
|
+
this.o1k_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().c1m_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
2158
|
+
this.p1k_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
2159
|
+
this.q1k_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2160
|
+
this.r1k_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2161
|
+
this.s1k_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2162
|
+
this.t1k_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().c1m_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));
|
|
2163
|
+
this.u1k_1 = BT2020Space_getInstance();
|
|
2164
|
+
this.v1k_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().c1m_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
2165
|
+
this.w1k_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));
|
|
2166
|
+
this.x1k_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().c1m_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
2167
|
+
this.y1k_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().a1m_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));
|
|
2210
2168
|
}
|
|
2211
2169
|
var RGBColorSpaces_instance;
|
|
2212
2170
|
function RGBColorSpaces_getInstance() {
|
|
@@ -2216,38 +2174,38 @@
|
|
|
2216
2174
|
}
|
|
2217
2175
|
function SRGB() {
|
|
2218
2176
|
SRGB_instance = this;
|
|
2219
|
-
this.
|
|
2220
|
-
this.
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2177
|
+
this.i1m_1 = 'sRGB';
|
|
2178
|
+
this.j1m_1 = rectangularComponentInfo('RGB');
|
|
2179
|
+
this.k1m_1 = Illuminant_getInstance().c1m_1;
|
|
2180
|
+
this.l1m_1 = SRGBTransferFunctions_instance;
|
|
2181
|
+
this.m1m_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.k1m_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B()));
|
|
2182
|
+
this.n1m_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.m1m_1)));
|
|
2225
2183
|
}
|
|
2226
|
-
protoOf(SRGB).
|
|
2227
|
-
return this.
|
|
2184
|
+
protoOf(SRGB).ka = function () {
|
|
2185
|
+
return this.i1m_1;
|
|
2228
2186
|
};
|
|
2229
|
-
protoOf(SRGB).
|
|
2230
|
-
return this.
|
|
2187
|
+
protoOf(SRGB).n1j = function () {
|
|
2188
|
+
return this.j1m_1;
|
|
2231
2189
|
};
|
|
2232
|
-
protoOf(SRGB).
|
|
2233
|
-
return this.
|
|
2190
|
+
protoOf(SRGB).m1j = function () {
|
|
2191
|
+
return this.k1m_1;
|
|
2234
2192
|
};
|
|
2235
|
-
protoOf(SRGB).
|
|
2236
|
-
return this.
|
|
2193
|
+
protoOf(SRGB).w1m = function () {
|
|
2194
|
+
return this.l1m_1;
|
|
2237
2195
|
};
|
|
2238
|
-
protoOf(SRGB).
|
|
2239
|
-
return this.
|
|
2196
|
+
protoOf(SRGB).t1n = function () {
|
|
2197
|
+
return this.m1m_1;
|
|
2240
2198
|
};
|
|
2241
|
-
protoOf(SRGB).
|
|
2242
|
-
return this.
|
|
2199
|
+
protoOf(SRGB).u1n = function () {
|
|
2200
|
+
return this.n1m_1;
|
|
2243
2201
|
};
|
|
2244
|
-
protoOf(SRGB).
|
|
2245
|
-
return color.
|
|
2202
|
+
protoOf(SRGB).l1j = function (color) {
|
|
2203
|
+
return color.q1i();
|
|
2246
2204
|
};
|
|
2247
|
-
protoOf(SRGB).
|
|
2205
|
+
protoOf(SRGB).o1j = function (components) {
|
|
2248
2206
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2249
2207
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2250
|
-
var size = this.
|
|
2208
|
+
var size = this.n1j().l();
|
|
2251
2209
|
// Inline function 'kotlin.require' call
|
|
2252
2210
|
var containsLower = size - 1 | 0;
|
|
2253
2211
|
var containsArg = components.length;
|
|
@@ -2261,22 +2219,21 @@
|
|
|
2261
2219
|
var tmp = components[0];
|
|
2262
2220
|
var tmp_0 = components[1];
|
|
2263
2221
|
var tmp_1 = components[2];
|
|
2264
|
-
var tmp$ret$2;
|
|
2265
2222
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
2266
2223
|
var tmp_2;
|
|
2267
|
-
if (3 <= get_lastIndex_0(components)) {
|
|
2224
|
+
if (3 >= 0 ? 3 <= get_lastIndex_0(components) : false) {
|
|
2268
2225
|
tmp_2 = components[3];
|
|
2269
2226
|
} else {
|
|
2270
2227
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
2271
2228
|
tmp_2 = 1.0;
|
|
2272
2229
|
}
|
|
2273
|
-
tmp$ret$2 = tmp_2;
|
|
2274
|
-
return this.
|
|
2230
|
+
var tmp$ret$2 = tmp_2;
|
|
2231
|
+
return this.k1k(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
2275
2232
|
};
|
|
2276
2233
|
protoOf(SRGB).toString = function () {
|
|
2277
|
-
return this.
|
|
2234
|
+
return this.i1m_1;
|
|
2278
2235
|
};
|
|
2279
|
-
protoOf(SRGB).
|
|
2236
|
+
protoOf(SRGB).k1k = function (r, g, b, alpha) {
|
|
2280
2237
|
return new RGB(r, g, b, alpha, this);
|
|
2281
2238
|
};
|
|
2282
2239
|
var SRGB_instance;
|
|
@@ -2291,32 +2248,32 @@
|
|
|
2291
2248
|
}
|
|
2292
2249
|
function ACESccTransferFunctions() {
|
|
2293
2250
|
ACESccTransferFunctions_instance = this;
|
|
2294
|
-
this.
|
|
2295
|
-
this.
|
|
2296
|
-
this.
|
|
2251
|
+
this.x1n_1 = 3.0517578125E-5;
|
|
2252
|
+
this.y1n_1 = 1.52587890625E-5;
|
|
2253
|
+
this.z1n_1 = -0.3013698630136986;
|
|
2297
2254
|
var tmp = this;
|
|
2298
2255
|
// Inline function 'kotlin.math.log2' call
|
|
2299
|
-
tmp.
|
|
2256
|
+
tmp.a1o_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2300
2257
|
}
|
|
2301
|
-
protoOf(ACESccTransferFunctions).
|
|
2258
|
+
protoOf(ACESccTransferFunctions).f1n = function (x) {
|
|
2302
2259
|
var tmp;
|
|
2303
2260
|
if (x <= -0.3013698630136986) {
|
|
2304
2261
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
2305
|
-
} else if (x < this.
|
|
2262
|
+
} else if (x < this.a1o_1) {
|
|
2306
2263
|
// Inline function 'kotlin.math.pow' call
|
|
2307
|
-
var
|
|
2308
|
-
tmp = Math.pow(2.0,
|
|
2264
|
+
var x_0 = x * 17.52 - 9.72;
|
|
2265
|
+
tmp = Math.pow(2.0, x_0);
|
|
2309
2266
|
} else {
|
|
2310
2267
|
tmp = 65504.0;
|
|
2311
2268
|
}
|
|
2312
2269
|
return tmp;
|
|
2313
2270
|
};
|
|
2314
|
-
protoOf(ACESccTransferFunctions).
|
|
2271
|
+
protoOf(ACESccTransferFunctions).g1n = function (x) {
|
|
2315
2272
|
var tmp;
|
|
2316
2273
|
if (x < 3.0517578125E-5) {
|
|
2317
2274
|
// Inline function 'kotlin.math.log2' call
|
|
2318
|
-
var
|
|
2319
|
-
tmp = (log2(
|
|
2275
|
+
var x_0 = 1.52587890625E-5 + coerceAtLeast(x, 0.0) / 2.0;
|
|
2276
|
+
tmp = (log2(x_0) + 9.72) / 17.52;
|
|
2320
2277
|
} else {
|
|
2321
2278
|
// Inline function 'kotlin.math.log2' call
|
|
2322
2279
|
tmp = (log2(x) + 9.72) / 17.52;
|
|
@@ -2331,26 +2288,26 @@
|
|
|
2331
2288
|
}
|
|
2332
2289
|
function ACEScctTransferFunctions() {
|
|
2333
2290
|
ACEScctTransferFunctions_instance = this;
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2291
|
+
this.b1o_1 = 10.5402377416545;
|
|
2292
|
+
this.c1o_1 = 0.0729055341958355;
|
|
2336
2293
|
var tmp = this;
|
|
2337
2294
|
// Inline function 'kotlin.math.log2' call
|
|
2338
|
-
tmp.
|
|
2295
|
+
tmp.d1o_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2339
2296
|
}
|
|
2340
|
-
protoOf(ACEScctTransferFunctions).
|
|
2297
|
+
protoOf(ACEScctTransferFunctions).f1n = function (x) {
|
|
2341
2298
|
var tmp;
|
|
2342
2299
|
if (x <= 0.155251141552511) {
|
|
2343
2300
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
2344
|
-
} else if (x < this.
|
|
2301
|
+
} else if (x < this.d1o_1) {
|
|
2345
2302
|
// Inline function 'kotlin.math.pow' call
|
|
2346
|
-
var
|
|
2347
|
-
tmp = Math.pow(2.0,
|
|
2303
|
+
var x_0 = x * 17.52 - 9.72;
|
|
2304
|
+
tmp = Math.pow(2.0, x_0);
|
|
2348
2305
|
} else {
|
|
2349
2306
|
tmp = 65504.0;
|
|
2350
2307
|
}
|
|
2351
2308
|
return tmp;
|
|
2352
2309
|
};
|
|
2353
|
-
protoOf(ACEScctTransferFunctions).
|
|
2310
|
+
protoOf(ACEScctTransferFunctions).g1n = function (x) {
|
|
2354
2311
|
var tmp;
|
|
2355
2312
|
if (x < 0.0078125) {
|
|
2356
2313
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -2368,45 +2325,45 @@
|
|
|
2368
2325
|
}
|
|
2369
2326
|
function BT2020Space() {
|
|
2370
2327
|
BT2020Space_instance = this;
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2373
|
-
this.
|
|
2374
|
-
this.
|
|
2375
|
-
this.
|
|
2376
|
-
this.
|
|
2377
|
-
}
|
|
2378
|
-
protoOf(BT2020Space).
|
|
2379
|
-
return this.
|
|
2328
|
+
this.e1o_1 = 'BT.2020';
|
|
2329
|
+
this.f1o_1 = rectangularComponentInfo('RGB');
|
|
2330
|
+
this.g1o_1 = Illuminant_getInstance().c1m_1;
|
|
2331
|
+
this.h1o_1 = BT2020TransferFunctions_getInstance();
|
|
2332
|
+
this.i1o_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.g1o_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046)));
|
|
2333
|
+
this.j1o_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.i1o_1)));
|
|
2334
|
+
}
|
|
2335
|
+
protoOf(BT2020Space).ka = function () {
|
|
2336
|
+
return this.e1o_1;
|
|
2380
2337
|
};
|
|
2381
|
-
protoOf(BT2020Space).
|
|
2382
|
-
return this.
|
|
2338
|
+
protoOf(BT2020Space).n1j = function () {
|
|
2339
|
+
return this.f1o_1;
|
|
2383
2340
|
};
|
|
2384
|
-
protoOf(BT2020Space).
|
|
2385
|
-
return this.
|
|
2341
|
+
protoOf(BT2020Space).m1j = function () {
|
|
2342
|
+
return this.g1o_1;
|
|
2386
2343
|
};
|
|
2387
|
-
protoOf(BT2020Space).
|
|
2388
|
-
return this.
|
|
2344
|
+
protoOf(BT2020Space).w1m = function () {
|
|
2345
|
+
return this.h1o_1;
|
|
2389
2346
|
};
|
|
2390
|
-
protoOf(BT2020Space).
|
|
2347
|
+
protoOf(BT2020Space).k1k = function (r, g, b, alpha) {
|
|
2391
2348
|
return new RGB(r, g, b, alpha, this);
|
|
2392
2349
|
};
|
|
2393
|
-
protoOf(BT2020Space).
|
|
2350
|
+
protoOf(BT2020Space).l1j = function (color) {
|
|
2394
2351
|
var tmp;
|
|
2395
2352
|
if (color instanceof RGB) {
|
|
2396
|
-
tmp = color.
|
|
2353
|
+
tmp = color.v1n(this);
|
|
2397
2354
|
} else {
|
|
2398
2355
|
if (color instanceof ICtCp) {
|
|
2399
|
-
tmp = color.
|
|
2356
|
+
tmp = color.v1m();
|
|
2400
2357
|
} else {
|
|
2401
|
-
tmp = color.
|
|
2358
|
+
tmp = color.x1i().w1n(this);
|
|
2402
2359
|
}
|
|
2403
2360
|
}
|
|
2404
2361
|
return tmp;
|
|
2405
2362
|
};
|
|
2406
|
-
protoOf(BT2020Space).
|
|
2363
|
+
protoOf(BT2020Space).o1j = function (components) {
|
|
2407
2364
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2408
2365
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2409
|
-
var size = this.
|
|
2366
|
+
var size = this.n1j().l();
|
|
2410
2367
|
// Inline function 'kotlin.require' call
|
|
2411
2368
|
var containsLower = size - 1 | 0;
|
|
2412
2369
|
var containsArg = components.length;
|
|
@@ -2420,26 +2377,25 @@
|
|
|
2420
2377
|
var tmp = components[0];
|
|
2421
2378
|
var tmp_0 = components[1];
|
|
2422
2379
|
var tmp_1 = components[2];
|
|
2423
|
-
var tmp$ret$2;
|
|
2424
2380
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
2425
2381
|
var tmp_2;
|
|
2426
|
-
if (3 <= get_lastIndex_0(components)) {
|
|
2382
|
+
if (3 >= 0 ? 3 <= get_lastIndex_0(components) : false) {
|
|
2427
2383
|
tmp_2 = components[3];
|
|
2428
2384
|
} else {
|
|
2429
2385
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
2430
2386
|
tmp_2 = 1.0;
|
|
2431
2387
|
}
|
|
2432
|
-
tmp$ret$2 = tmp_2;
|
|
2433
|
-
return this.
|
|
2388
|
+
var tmp$ret$2 = tmp_2;
|
|
2389
|
+
return this.k1k(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
2434
2390
|
};
|
|
2435
|
-
protoOf(BT2020Space).
|
|
2436
|
-
return this.
|
|
2391
|
+
protoOf(BT2020Space).t1n = function () {
|
|
2392
|
+
return this.i1o_1;
|
|
2437
2393
|
};
|
|
2438
|
-
protoOf(BT2020Space).
|
|
2439
|
-
return this.
|
|
2394
|
+
protoOf(BT2020Space).u1n = function () {
|
|
2395
|
+
return this.j1o_1;
|
|
2440
2396
|
};
|
|
2441
2397
|
protoOf(BT2020Space).toString = function () {
|
|
2442
|
-
return this.
|
|
2398
|
+
return this.e1o_1;
|
|
2443
2399
|
};
|
|
2444
2400
|
var BT2020Space_instance;
|
|
2445
2401
|
function BT2020Space_getInstance() {
|
|
@@ -2449,12 +2405,12 @@
|
|
|
2449
2405
|
}
|
|
2450
2406
|
function BT709TransferFunctions() {
|
|
2451
2407
|
BT709TransferFunctions_instance = this;
|
|
2452
|
-
this.
|
|
2408
|
+
this.k1o_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
2453
2409
|
}
|
|
2454
|
-
protoOf(BT709TransferFunctions).
|
|
2455
|
-
return numberToDouble(x < this.
|
|
2410
|
+
protoOf(BT709TransferFunctions).f1n = function (x) {
|
|
2411
|
+
return numberToDouble(x < this.k1o_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223));
|
|
2456
2412
|
};
|
|
2457
|
-
protoOf(BT709TransferFunctions).
|
|
2413
|
+
protoOf(BT709TransferFunctions).g1n = function (x) {
|
|
2458
2414
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
2459
2415
|
};
|
|
2460
2416
|
var BT709TransferFunctions_instance;
|
|
@@ -2464,87 +2420,81 @@
|
|
|
2464
2420
|
return BT709TransferFunctions_instance;
|
|
2465
2421
|
}
|
|
2466
2422
|
function SRGBTransferFunctions() {
|
|
2467
|
-
SRGBTransferFunctions_instance = this;
|
|
2468
2423
|
}
|
|
2469
|
-
protoOf(SRGBTransferFunctions).
|
|
2424
|
+
protoOf(SRGBTransferFunctions).g1n = function (x) {
|
|
2470
2425
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 0.4166666666666667) - 0.055;
|
|
2471
2426
|
};
|
|
2472
|
-
protoOf(SRGBTransferFunctions).
|
|
2427
|
+
protoOf(SRGBTransferFunctions).f1n = function (x) {
|
|
2473
2428
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
2474
2429
|
};
|
|
2475
2430
|
var SRGBTransferFunctions_instance;
|
|
2476
2431
|
function SRGBTransferFunctions_getInstance() {
|
|
2477
|
-
if (SRGBTransferFunctions_instance == null)
|
|
2478
|
-
new SRGBTransferFunctions();
|
|
2479
2432
|
return SRGBTransferFunctions_instance;
|
|
2480
2433
|
}
|
|
2481
2434
|
function ROMMTransferFunctions() {
|
|
2482
|
-
|
|
2483
|
-
this.t1m_1 = 0.001953;
|
|
2435
|
+
this.l1o_1 = 0.001953;
|
|
2484
2436
|
}
|
|
2485
|
-
protoOf(ROMMTransferFunctions).
|
|
2437
|
+
protoOf(ROMMTransferFunctions).f1n = function (x) {
|
|
2486
2438
|
return x < 0.031248 ? x / 16.0 : spow(x, 1.8);
|
|
2487
2439
|
};
|
|
2488
|
-
protoOf(ROMMTransferFunctions).
|
|
2440
|
+
protoOf(ROMMTransferFunctions).g1n = function (x) {
|
|
2489
2441
|
return x < 0.001953 ? x * 16.0 : spow(x, 0.5555555555555556);
|
|
2490
2442
|
};
|
|
2491
2443
|
var ROMMTransferFunctions_instance;
|
|
2492
2444
|
function ROMMTransferFunctions_getInstance() {
|
|
2493
|
-
if (ROMMTransferFunctions_instance == null)
|
|
2494
|
-
new ROMMTransferFunctions();
|
|
2495
2445
|
return ROMMTransferFunctions_instance;
|
|
2496
2446
|
}
|
|
2497
2447
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
2498
2448
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2499
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
2500
|
-
var wp = whitePoint.
|
|
2449
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.j1n_1, g.j1n_1, b.j1n_1, r.k1n_1, g.k1n_1, b.k1n_1, r.m1o(), g.m1o(), b.m1o());
|
|
2450
|
+
var wp = whitePoint.w1l_1;
|
|
2501
2451
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2502
|
-
var
|
|
2503
|
-
var
|
|
2504
|
-
var
|
|
2505
|
-
var
|
|
2452
|
+
var this_0 = inverse(primaries);
|
|
2453
|
+
var v0 = wp.m1n();
|
|
2454
|
+
var v1 = wp.l1n_1;
|
|
2455
|
+
var v2 = wp.n1n();
|
|
2506
2456
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
2507
|
-
var
|
|
2508
|
-
var
|
|
2509
|
-
var
|
|
2510
|
-
return dotDiagonal(primaries,
|
|
2457
|
+
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
2458
|
+
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
2459
|
+
var z = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
2460
|
+
return dotDiagonal(primaries, x, y, z);
|
|
2511
2461
|
}
|
|
2512
2462
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b) {
|
|
2513
|
-
this.
|
|
2514
|
-
this.
|
|
2515
|
-
this.
|
|
2516
|
-
this.
|
|
2517
|
-
this.
|
|
2518
|
-
this.
|
|
2519
|
-
this.
|
|
2520
|
-
this.
|
|
2521
|
-
this.
|
|
2463
|
+
this.n1o_1 = name;
|
|
2464
|
+
this.o1o_1 = whitePoint;
|
|
2465
|
+
this.p1o_1 = transferFunctions;
|
|
2466
|
+
this.q1o_1 = r;
|
|
2467
|
+
this.r1o_1 = g;
|
|
2468
|
+
this.s1o_1 = b;
|
|
2469
|
+
this.t1o_1 = rectangularComponentInfo('RGB');
|
|
2470
|
+
this.u1o_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.o1o_1, this.q1o_1, this.r1o_1, this.s1o_1));
|
|
2471
|
+
this.v1o_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.u1o_1)));
|
|
2522
2472
|
}
|
|
2523
|
-
protoOf(RGBColorSpaceImpl).
|
|
2524
|
-
return this.
|
|
2473
|
+
protoOf(RGBColorSpaceImpl).ka = function () {
|
|
2474
|
+
return this.n1o_1;
|
|
2525
2475
|
};
|
|
2526
|
-
protoOf(RGBColorSpaceImpl).
|
|
2527
|
-
return this.
|
|
2476
|
+
protoOf(RGBColorSpaceImpl).m1j = function () {
|
|
2477
|
+
return this.o1o_1;
|
|
2528
2478
|
};
|
|
2529
|
-
protoOf(RGBColorSpaceImpl).
|
|
2530
|
-
return this.
|
|
2479
|
+
protoOf(RGBColorSpaceImpl).w1m = function () {
|
|
2480
|
+
return this.p1o_1;
|
|
2531
2481
|
};
|
|
2532
|
-
protoOf(RGBColorSpaceImpl).
|
|
2533
|
-
return this.
|
|
2482
|
+
protoOf(RGBColorSpaceImpl).n1j = function () {
|
|
2483
|
+
return this.t1o_1;
|
|
2534
2484
|
};
|
|
2535
|
-
protoOf(RGBColorSpaceImpl).
|
|
2485
|
+
protoOf(RGBColorSpaceImpl).l1j = function (color) {
|
|
2536
2486
|
var tmp;
|
|
2537
2487
|
if (color instanceof RGB) {
|
|
2538
|
-
tmp = color.
|
|
2488
|
+
tmp = color.v1n(this);
|
|
2539
2489
|
} else {
|
|
2540
|
-
tmp = color.
|
|
2490
|
+
tmp = color.x1i().w1n(this);
|
|
2541
2491
|
}
|
|
2542
2492
|
return tmp;
|
|
2543
2493
|
};
|
|
2544
|
-
protoOf(RGBColorSpaceImpl).
|
|
2494
|
+
protoOf(RGBColorSpaceImpl).o1j = function (components) {
|
|
2545
2495
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2546
2496
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2547
|
-
var size = this.
|
|
2497
|
+
var size = this.n1j().l();
|
|
2548
2498
|
// Inline function 'kotlin.require' call
|
|
2549
2499
|
var containsLower = size - 1 | 0;
|
|
2550
2500
|
var containsArg = components.length;
|
|
@@ -2558,37 +2508,36 @@
|
|
|
2558
2508
|
var tmp = components[0];
|
|
2559
2509
|
var tmp_0 = components[1];
|
|
2560
2510
|
var tmp_1 = components[2];
|
|
2561
|
-
var tmp$ret$2;
|
|
2562
2511
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
2563
2512
|
var tmp_2;
|
|
2564
|
-
if (3 <= get_lastIndex_0(components)) {
|
|
2513
|
+
if (3 >= 0 ? 3 <= get_lastIndex_0(components) : false) {
|
|
2565
2514
|
tmp_2 = components[3];
|
|
2566
2515
|
} else {
|
|
2567
2516
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
2568
2517
|
tmp_2 = 1.0;
|
|
2569
2518
|
}
|
|
2570
|
-
tmp$ret$2 = tmp_2;
|
|
2571
|
-
return this.
|
|
2519
|
+
var tmp$ret$2 = tmp_2;
|
|
2520
|
+
return this.k1k(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
2572
2521
|
};
|
|
2573
|
-
protoOf(RGBColorSpaceImpl).
|
|
2574
|
-
return this.
|
|
2522
|
+
protoOf(RGBColorSpaceImpl).t1n = function () {
|
|
2523
|
+
return this.u1o_1;
|
|
2575
2524
|
};
|
|
2576
|
-
protoOf(RGBColorSpaceImpl).
|
|
2577
|
-
return this.
|
|
2525
|
+
protoOf(RGBColorSpaceImpl).u1n = function () {
|
|
2526
|
+
return this.v1o_1;
|
|
2578
2527
|
};
|
|
2579
2528
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
2580
|
-
return this.
|
|
2529
|
+
return this.n1o_1;
|
|
2581
2530
|
};
|
|
2582
|
-
protoOf(RGBColorSpaceImpl).
|
|
2531
|
+
protoOf(RGBColorSpaceImpl).k1k = function (r, g, b, alpha) {
|
|
2583
2532
|
return new RGB(r, g, b, alpha, this);
|
|
2584
2533
|
};
|
|
2585
2534
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
2586
|
-
var result = getStringHashCode(this.
|
|
2587
|
-
result = imul(result, 31) + this.
|
|
2588
|
-
result = imul(result, 31) + hashCode(this.
|
|
2589
|
-
result = imul(result, 31) + this.
|
|
2590
|
-
result = imul(result, 31) + this.
|
|
2591
|
-
result = imul(result, 31) + this.
|
|
2535
|
+
var result = getStringHashCode(this.n1o_1);
|
|
2536
|
+
result = imul(result, 31) + this.o1o_1.hashCode() | 0;
|
|
2537
|
+
result = imul(result, 31) + hashCode(this.p1o_1) | 0;
|
|
2538
|
+
result = imul(result, 31) + this.q1o_1.hashCode() | 0;
|
|
2539
|
+
result = imul(result, 31) + this.r1o_1.hashCode() | 0;
|
|
2540
|
+
result = imul(result, 31) + this.s1o_1.hashCode() | 0;
|
|
2592
2541
|
return result;
|
|
2593
2542
|
};
|
|
2594
2543
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -2597,32 +2546,32 @@
|
|
|
2597
2546
|
if (!(other instanceof RGBColorSpaceImpl))
|
|
2598
2547
|
return false;
|
|
2599
2548
|
var tmp0_other_with_cast = other instanceof RGBColorSpaceImpl ? other : THROW_CCE();
|
|
2600
|
-
if (!(this.
|
|
2549
|
+
if (!(this.n1o_1 === tmp0_other_with_cast.n1o_1))
|
|
2601
2550
|
return false;
|
|
2602
|
-
if (!this.
|
|
2551
|
+
if (!this.o1o_1.equals(tmp0_other_with_cast.o1o_1))
|
|
2603
2552
|
return false;
|
|
2604
|
-
if (!equals(this.
|
|
2553
|
+
if (!equals(this.p1o_1, tmp0_other_with_cast.p1o_1))
|
|
2605
2554
|
return false;
|
|
2606
|
-
if (!this.
|
|
2555
|
+
if (!this.q1o_1.equals(tmp0_other_with_cast.q1o_1))
|
|
2607
2556
|
return false;
|
|
2608
|
-
if (!this.
|
|
2557
|
+
if (!this.r1o_1.equals(tmp0_other_with_cast.r1o_1))
|
|
2609
2558
|
return false;
|
|
2610
|
-
if (!this.
|
|
2559
|
+
if (!this.s1o_1.equals(tmp0_other_with_cast.s1o_1))
|
|
2611
2560
|
return false;
|
|
2612
2561
|
return true;
|
|
2613
2562
|
};
|
|
2614
2563
|
function BT2020TransferFunctions() {
|
|
2615
2564
|
BT2020TransferFunctions_instance = this;
|
|
2616
|
-
this.
|
|
2617
|
-
this.
|
|
2565
|
+
this.w1o_1 = 1.0993;
|
|
2566
|
+
this.x1o_1 = 0.0181;
|
|
2618
2567
|
var tmp = this;
|
|
2619
2568
|
// Inline function 'kotlin.math.pow' call
|
|
2620
|
-
tmp.
|
|
2569
|
+
tmp.y1o_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994;
|
|
2621
2570
|
}
|
|
2622
|
-
protoOf(BT2020TransferFunctions).
|
|
2623
|
-
return numberToDouble(x < this.
|
|
2571
|
+
protoOf(BT2020TransferFunctions).f1n = function (x) {
|
|
2572
|
+
return numberToDouble(x < this.y1o_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223));
|
|
2624
2573
|
};
|
|
2625
|
-
protoOf(BT2020TransferFunctions).
|
|
2574
|
+
protoOf(BT2020TransferFunctions).g1n = function (x) {
|
|
2626
2575
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - 0.09929999999999994;
|
|
2627
2576
|
};
|
|
2628
2577
|
var BT2020TransferFunctions_instance;
|
|
@@ -2655,27 +2604,26 @@
|
|
|
2655
2604
|
}
|
|
2656
2605
|
function _RGBInt___init__impl__lqova7_0(r, g, b, alpha) {
|
|
2657
2606
|
alpha = alpha === VOID ? 255 : alpha;
|
|
2658
|
-
var tmp$ret$9;
|
|
2659
2607
|
// Inline function 'kotlin.UInt.or' call
|
|
2660
2608
|
// Inline function 'kotlin.UInt.or' call
|
|
2661
2609
|
// Inline function 'kotlin.UInt.or' call
|
|
2662
2610
|
// Inline function 'kotlin.UInt.shl' call
|
|
2663
2611
|
// Inline function 'kotlin.toUInt' call
|
|
2664
|
-
var
|
|
2665
|
-
var
|
|
2612
|
+
var this_0 = _UInt___init__impl__l7qpdl(alpha);
|
|
2613
|
+
var this_1 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) << 24);
|
|
2666
2614
|
// Inline function 'kotlin.UInt.shl' call
|
|
2667
2615
|
// Inline function 'kotlin.toUInt' call
|
|
2668
|
-
var
|
|
2669
|
-
var
|
|
2670
|
-
var
|
|
2616
|
+
var this_2 = _UInt___init__impl__l7qpdl(r);
|
|
2617
|
+
var other = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_2) << 16);
|
|
2618
|
+
var this_3 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_1) | _UInt___get_data__impl__f0vqqw(other));
|
|
2671
2619
|
// Inline function 'kotlin.UInt.shl' call
|
|
2672
2620
|
// Inline function 'kotlin.toUInt' call
|
|
2673
|
-
var
|
|
2674
|
-
var
|
|
2675
|
-
var
|
|
2621
|
+
var this_4 = _UInt___init__impl__l7qpdl(g);
|
|
2622
|
+
var other_0 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_4) << 8);
|
|
2623
|
+
var this_5 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_3) | _UInt___get_data__impl__f0vqqw(other_0));
|
|
2676
2624
|
// Inline function 'kotlin.toUInt' call
|
|
2677
|
-
var
|
|
2678
|
-
tmp$ret$9 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(
|
|
2625
|
+
var other_1 = _UInt___init__impl__l7qpdl(b);
|
|
2626
|
+
var tmp$ret$9 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_5) | _UInt___get_data__impl__f0vqqw(other_1));
|
|
2679
2627
|
return _RGBInt___init__impl__lqova7(tmp$ret$9);
|
|
2680
2628
|
}
|
|
2681
2629
|
function _RGBInt___init__impl__lqova7_1(r, g, b, alpha) {
|
|
@@ -2684,10 +2632,9 @@
|
|
|
2684
2632
|
if (isNaN_0(r)) {
|
|
2685
2633
|
tmp = 0;
|
|
2686
2634
|
} else {
|
|
2687
|
-
var tmp$ret$0;
|
|
2688
2635
|
// Inline function 'kotlin.math.roundToInt' call
|
|
2689
|
-
var
|
|
2690
|
-
tmp$ret$0 = roundToInt(
|
|
2636
|
+
var this_0 = r * 255;
|
|
2637
|
+
var tmp$ret$0 = roundToInt(this_0);
|
|
2691
2638
|
tmp = coerceIn_0(tmp$ret$0, 0, 255);
|
|
2692
2639
|
}
|
|
2693
2640
|
var tmp_0 = tmp;
|
|
@@ -2695,10 +2642,9 @@
|
|
|
2695
2642
|
if (isNaN_0(b)) {
|
|
2696
2643
|
tmp_1 = 0;
|
|
2697
2644
|
} else {
|
|
2698
|
-
var tmp$ret$1;
|
|
2699
2645
|
// Inline function 'kotlin.math.roundToInt' call
|
|
2700
|
-
var
|
|
2701
|
-
tmp$ret$1 = roundToInt(
|
|
2646
|
+
var this_1 = g * 255;
|
|
2647
|
+
var tmp$ret$1 = roundToInt(this_1);
|
|
2702
2648
|
tmp_1 = coerceIn_0(tmp$ret$1, 0, 255);
|
|
2703
2649
|
}
|
|
2704
2650
|
var tmp_2 = tmp_1;
|
|
@@ -2706,90 +2652,88 @@
|
|
|
2706
2652
|
if (isNaN_0(g)) {
|
|
2707
2653
|
tmp_3 = 0;
|
|
2708
2654
|
} else {
|
|
2709
|
-
var tmp$ret$2;
|
|
2710
2655
|
// Inline function 'kotlin.math.roundToInt' call
|
|
2711
|
-
var
|
|
2712
|
-
tmp$ret$2 = roundToInt(
|
|
2656
|
+
var this_2 = b * 255;
|
|
2657
|
+
var tmp$ret$2 = roundToInt(this_2);
|
|
2713
2658
|
tmp_3 = coerceIn_0(tmp$ret$2, 0, 255);
|
|
2714
2659
|
}
|
|
2715
2660
|
var tmp_4 = tmp_3;
|
|
2716
|
-
var tmp$ret$3;
|
|
2717
2661
|
// Inline function 'kotlin.math.roundToInt' call
|
|
2718
|
-
var
|
|
2719
|
-
tmp$ret$3 = roundToInt(
|
|
2662
|
+
var this_3 = alpha * 255;
|
|
2663
|
+
var tmp$ret$3 = roundToInt(this_3);
|
|
2720
2664
|
return _RGBInt___init__impl__lqova7_0(tmp_0, tmp_2, tmp_4, coerceIn_0(tmp$ret$3, 0, 255));
|
|
2721
2665
|
}
|
|
2722
2666
|
function _RGBInt___get_r__impl__dulq0e($this) {
|
|
2723
2667
|
// Inline function 'kotlin.UInt.toUByte' call
|
|
2724
2668
|
// Inline function 'kotlin.UInt.shr' call
|
|
2725
|
-
var
|
|
2726
|
-
var
|
|
2669
|
+
var this_0 = _RGBInt___get_argb__impl__xiee7i($this);
|
|
2670
|
+
var this_1 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) >>> 16 | 0);
|
|
2727
2671
|
// Inline function 'kotlin.toUByte' call
|
|
2728
|
-
var
|
|
2729
|
-
return _UByte___init__impl__g9hnc4(toByte(
|
|
2672
|
+
var this_2 = _UInt___get_data__impl__f0vqqw(this_1);
|
|
2673
|
+
return _UByte___init__impl__g9hnc4(toByte(this_2));
|
|
2730
2674
|
}
|
|
2731
2675
|
function _RGBInt___get_g__impl__o93c71($this) {
|
|
2732
2676
|
// Inline function 'kotlin.UInt.toUByte' call
|
|
2733
2677
|
// Inline function 'kotlin.UInt.shr' call
|
|
2734
|
-
var
|
|
2735
|
-
var
|
|
2678
|
+
var this_0 = _RGBInt___get_argb__impl__xiee7i($this);
|
|
2679
|
+
var this_1 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) >>> 8 | 0);
|
|
2736
2680
|
// Inline function 'kotlin.toUByte' call
|
|
2737
|
-
var
|
|
2738
|
-
return _UByte___init__impl__g9hnc4(toByte(
|
|
2681
|
+
var this_2 = _UInt___get_data__impl__f0vqqw(this_1);
|
|
2682
|
+
return _UByte___init__impl__g9hnc4(toByte(this_2));
|
|
2739
2683
|
}
|
|
2740
2684
|
function _RGBInt___get_b__impl__m772ua($this) {
|
|
2741
2685
|
// Inline function 'kotlin.UInt.toUByte' call
|
|
2742
2686
|
// Inline function 'kotlin.UInt.shr' call
|
|
2743
|
-
var
|
|
2744
|
-
var
|
|
2687
|
+
var this_0 = _RGBInt___get_argb__impl__xiee7i($this);
|
|
2688
|
+
var this_1 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) >>> 0 | 0);
|
|
2745
2689
|
// Inline function 'kotlin.toUByte' call
|
|
2746
|
-
var
|
|
2747
|
-
return _UByte___init__impl__g9hnc4(toByte(
|
|
2690
|
+
var this_2 = _UInt___get_data__impl__f0vqqw(this_1);
|
|
2691
|
+
return _UByte___init__impl__g9hnc4(toByte(this_2));
|
|
2748
2692
|
}
|
|
2749
2693
|
function Companion_5() {
|
|
2750
|
-
|
|
2751
|
-
this.
|
|
2694
|
+
Companion_instance_6 = this;
|
|
2695
|
+
this.z1o_1 = XYZColorSpaces_getInstance().z1k_1;
|
|
2752
2696
|
}
|
|
2753
|
-
protoOf(Companion_5).
|
|
2754
|
-
return this.
|
|
2697
|
+
protoOf(Companion_5).n1j = function () {
|
|
2698
|
+
return this.z1o_1.n1j();
|
|
2755
2699
|
};
|
|
2756
|
-
protoOf(Companion_5).
|
|
2757
|
-
return this.
|
|
2700
|
+
protoOf(Companion_5).ka = function () {
|
|
2701
|
+
return this.z1o_1.ka();
|
|
2758
2702
|
};
|
|
2759
|
-
protoOf(Companion_5).
|
|
2760
|
-
return this.
|
|
2703
|
+
protoOf(Companion_5).m1j = function () {
|
|
2704
|
+
return this.z1o_1.m1j();
|
|
2761
2705
|
};
|
|
2762
|
-
protoOf(Companion_5).
|
|
2763
|
-
return this.
|
|
2706
|
+
protoOf(Companion_5).l1j = function (color) {
|
|
2707
|
+
return this.z1o_1.l1j(color);
|
|
2764
2708
|
};
|
|
2765
|
-
protoOf(Companion_5).
|
|
2766
|
-
return this.
|
|
2709
|
+
protoOf(Companion_5).o1j = function (components) {
|
|
2710
|
+
return this.z1o_1.o1j(components);
|
|
2767
2711
|
};
|
|
2768
|
-
protoOf(Companion_5).
|
|
2769
|
-
return this.
|
|
2712
|
+
protoOf(Companion_5).k1k = function (x, y, z, alpha) {
|
|
2713
|
+
return this.z1o_1.k1k(x, y, z, alpha);
|
|
2770
2714
|
};
|
|
2771
|
-
protoOf(Companion_5).
|
|
2772
|
-
return this.
|
|
2715
|
+
protoOf(Companion_5).h1n = function (x, y, z, alpha) {
|
|
2716
|
+
return this.z1o_1.h1n(x, y, z, alpha);
|
|
2773
2717
|
};
|
|
2774
|
-
var
|
|
2775
|
-
function
|
|
2776
|
-
if (
|
|
2718
|
+
var Companion_instance_6;
|
|
2719
|
+
function Companion_getInstance_5() {
|
|
2720
|
+
if (Companion_instance_6 == null)
|
|
2777
2721
|
new Companion_5();
|
|
2778
|
-
return
|
|
2722
|
+
return Companion_instance_6;
|
|
2779
2723
|
}
|
|
2780
2724
|
function adaptToM($this, space, m, mi) {
|
|
2781
|
-
if (space.
|
|
2725
|
+
if (space.m1j().equals($this.d1j_1.m1j()))
|
|
2782
2726
|
return $this;
|
|
2783
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
2727
|
+
var transform = chromaticAdaptationMatrix(space, $this.d1j_1.m1j().w1l_1, m, mi);
|
|
2784
2728
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2785
|
-
var
|
|
2786
|
-
var
|
|
2787
|
-
var
|
|
2729
|
+
var v0 = $this.z1i_1;
|
|
2730
|
+
var v1 = $this.a1j_1;
|
|
2731
|
+
var v2 = $this.b1j_1;
|
|
2788
2732
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
2789
|
-
var
|
|
2790
|
-
var
|
|
2791
|
-
var
|
|
2792
|
-
return space.
|
|
2733
|
+
var xx = Matrix__get_impl_xogbpk(transform, 0, 0) * v0 + Matrix__get_impl_xogbpk(transform, 1, 0) * v1 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
2734
|
+
var yy = Matrix__get_impl_xogbpk(transform, 0, 1) * v0 + Matrix__get_impl_xogbpk(transform, 1, 1) * v1 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
2735
|
+
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * v0 + Matrix__get_impl_xogbpk(transform, 1, 2) * v1 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
2736
|
+
return space.k1k(xx, yy, zz, $this.c1j_1);
|
|
2793
2737
|
}
|
|
2794
2738
|
function toLAB$f(t) {
|
|
2795
2739
|
var tmp;
|
|
@@ -2802,73 +2746,73 @@
|
|
|
2802
2746
|
return tmp;
|
|
2803
2747
|
}
|
|
2804
2748
|
function XYZ(x, y, z, alpha, space) {
|
|
2805
|
-
|
|
2806
|
-
this.
|
|
2807
|
-
this.
|
|
2808
|
-
this.
|
|
2809
|
-
this.
|
|
2810
|
-
this.
|
|
2749
|
+
Companion_getInstance_5();
|
|
2750
|
+
this.z1i_1 = x;
|
|
2751
|
+
this.a1j_1 = y;
|
|
2752
|
+
this.b1j_1 = z;
|
|
2753
|
+
this.c1j_1 = alpha;
|
|
2754
|
+
this.d1j_1 = space;
|
|
2811
2755
|
}
|
|
2812
|
-
protoOf(XYZ).
|
|
2813
|
-
return this.
|
|
2756
|
+
protoOf(XYZ).o1i = function () {
|
|
2757
|
+
return this.c1j_1;
|
|
2814
2758
|
};
|
|
2815
|
-
protoOf(XYZ).
|
|
2816
|
-
return this.
|
|
2759
|
+
protoOf(XYZ).p1i = function () {
|
|
2760
|
+
return this.d1j_1;
|
|
2817
2761
|
};
|
|
2818
|
-
protoOf(XYZ).
|
|
2762
|
+
protoOf(XYZ).b1l = function (space) {
|
|
2819
2763
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
2820
2764
|
};
|
|
2821
|
-
protoOf(XYZ).
|
|
2822
|
-
var tmp0_container = this.
|
|
2823
|
-
var x = tmp0_container.
|
|
2824
|
-
var y = tmp0_container.
|
|
2825
|
-
var z = tmp0_container.
|
|
2826
|
-
var f = space.
|
|
2765
|
+
protoOf(XYZ).w1n = function (space) {
|
|
2766
|
+
var tmp0_container = this.b1l(XYZColorSpace_0(space.m1j()));
|
|
2767
|
+
var x = tmp0_container.ie();
|
|
2768
|
+
var y = tmp0_container.je();
|
|
2769
|
+
var z = tmp0_container.a1p();
|
|
2770
|
+
var f = space.w1m();
|
|
2827
2771
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2828
|
-
var
|
|
2772
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.u1n());
|
|
2829
2773
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
2830
|
-
var
|
|
2831
|
-
var
|
|
2832
|
-
var
|
|
2833
|
-
return space.
|
|
2834
|
-
};
|
|
2835
|
-
protoOf(XYZ).
|
|
2836
|
-
return this.
|
|
2837
|
-
};
|
|
2838
|
-
protoOf(XYZ).
|
|
2839
|
-
var fx = toLAB$f(this.
|
|
2840
|
-
var fy = toLAB$f(this.
|
|
2841
|
-
var fz = toLAB$f(this.
|
|
2774
|
+
var r = 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;
|
|
2775
|
+
var g = 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;
|
|
2776
|
+
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;
|
|
2777
|
+
return space.k1k(f.g1n(r), f.g1n(g), f.g1n(b), this.c1j_1);
|
|
2778
|
+
};
|
|
2779
|
+
protoOf(XYZ).q1i = function () {
|
|
2780
|
+
return this.w1n(RGBColorSpaces_getInstance().n1k_1);
|
|
2781
|
+
};
|
|
2782
|
+
protoOf(XYZ).y1i = function () {
|
|
2783
|
+
var fx = toLAB$f(this.z1i_1 / this.d1j_1.m1j().w1l_1.m1n());
|
|
2784
|
+
var fy = toLAB$f(this.a1j_1 / this.d1j_1.m1j().w1l_1.l1n_1);
|
|
2785
|
+
var fz = toLAB$f(this.b1j_1 / this.d1j_1.m1j().w1l_1.n1n());
|
|
2842
2786
|
var l = 116 * fy - 16;
|
|
2843
2787
|
var a = 500 * (fx - fy);
|
|
2844
2788
|
var b = 200 * (fy - fz);
|
|
2845
|
-
return LABColorSpace_0(this.
|
|
2789
|
+
return LABColorSpace_0(this.d1j_1.m1j()).h1n(l, a, b, this.c1j_1);
|
|
2846
2790
|
};
|
|
2847
|
-
protoOf(XYZ).
|
|
2791
|
+
protoOf(XYZ).x1i = function () {
|
|
2848
2792
|
return this;
|
|
2849
2793
|
};
|
|
2850
|
-
protoOf(XYZ).
|
|
2794
|
+
protoOf(XYZ).y2 = function () {
|
|
2851
2795
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2852
|
-
return new Float32Array([this.
|
|
2796
|
+
return new Float32Array([this.z1i_1, this.a1j_1, this.b1j_1, this.c1j_1]);
|
|
2853
2797
|
};
|
|
2854
|
-
protoOf(XYZ).
|
|
2855
|
-
return this.
|
|
2798
|
+
protoOf(XYZ).ie = function () {
|
|
2799
|
+
return this.z1i_1;
|
|
2856
2800
|
};
|
|
2857
|
-
protoOf(XYZ).
|
|
2858
|
-
return this.
|
|
2801
|
+
protoOf(XYZ).je = function () {
|
|
2802
|
+
return this.a1j_1;
|
|
2859
2803
|
};
|
|
2860
|
-
protoOf(XYZ).
|
|
2861
|
-
return this.
|
|
2804
|
+
protoOf(XYZ).a1p = function () {
|
|
2805
|
+
return this.b1j_1;
|
|
2862
2806
|
};
|
|
2863
2807
|
protoOf(XYZ).toString = function () {
|
|
2864
|
-
return 'XYZ(x=' + this.
|
|
2808
|
+
return 'XYZ(x=' + this.z1i_1 + ', y=' + this.a1j_1 + ', z=' + this.b1j_1 + ', alpha=' + this.c1j_1 + ', space=' + this.d1j_1 + ')';
|
|
2865
2809
|
};
|
|
2866
2810
|
protoOf(XYZ).hashCode = function () {
|
|
2867
|
-
var result = getNumberHashCode(this.
|
|
2868
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2869
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2870
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2871
|
-
result = imul(result, 31) + hashCode(this.
|
|
2811
|
+
var result = getNumberHashCode(this.z1i_1);
|
|
2812
|
+
result = imul(result, 31) + getNumberHashCode(this.a1j_1) | 0;
|
|
2813
|
+
result = imul(result, 31) + getNumberHashCode(this.b1j_1) | 0;
|
|
2814
|
+
result = imul(result, 31) + getNumberHashCode(this.c1j_1) | 0;
|
|
2815
|
+
result = imul(result, 31) + hashCode(this.d1j_1) | 0;
|
|
2872
2816
|
return result;
|
|
2873
2817
|
};
|
|
2874
2818
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -2877,27 +2821,27 @@
|
|
|
2877
2821
|
if (!(other instanceof XYZ))
|
|
2878
2822
|
return false;
|
|
2879
2823
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
2880
|
-
if (!equals(this.
|
|
2824
|
+
if (!equals(this.z1i_1, tmp0_other_with_cast.z1i_1))
|
|
2881
2825
|
return false;
|
|
2882
|
-
if (!equals(this.
|
|
2826
|
+
if (!equals(this.a1j_1, tmp0_other_with_cast.a1j_1))
|
|
2883
2827
|
return false;
|
|
2884
|
-
if (!equals(this.
|
|
2828
|
+
if (!equals(this.b1j_1, tmp0_other_with_cast.b1j_1))
|
|
2885
2829
|
return false;
|
|
2886
|
-
if (!equals(this.
|
|
2830
|
+
if (!equals(this.c1j_1, tmp0_other_with_cast.c1j_1))
|
|
2887
2831
|
return false;
|
|
2888
|
-
if (!equals(this.
|
|
2832
|
+
if (!equals(this.d1j_1, tmp0_other_with_cast.d1j_1))
|
|
2889
2833
|
return false;
|
|
2890
2834
|
return true;
|
|
2891
2835
|
};
|
|
2892
2836
|
function XYZColorSpace() {
|
|
2893
2837
|
}
|
|
2894
2838
|
function XYZColorSpace_0(whitePoint) {
|
|
2895
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
2839
|
+
return whitePoint.equals(Illuminant_getInstance().c1m_1) ? XYZColorSpaces_getInstance().z1k_1 : whitePoint.equals(Illuminant_getInstance().a1m_1) ? XYZColorSpaces_getInstance().a1l_1 : new XYZColorSpaceImpl(whitePoint);
|
|
2896
2840
|
}
|
|
2897
2841
|
function XYZColorSpaces() {
|
|
2898
2842
|
XYZColorSpaces_instance = this;
|
|
2899
|
-
this.
|
|
2900
|
-
this.
|
|
2843
|
+
this.z1k_1 = new XYZColorSpaceImpl(Illuminant_getInstance().c1m_1);
|
|
2844
|
+
this.a1l_1 = new XYZColorSpaceImpl(Illuminant_getInstance().a1m_1);
|
|
2901
2845
|
}
|
|
2902
2846
|
var XYZColorSpaces_instance;
|
|
2903
2847
|
function XYZColorSpaces_getInstance() {
|
|
@@ -2908,31 +2852,31 @@
|
|
|
2908
2852
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
2909
2853
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
2910
2854
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
2911
|
-
var dstWp = _this__u8e3s4.
|
|
2912
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
2913
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
2855
|
+
var dstWp = _this__u8e3s4.m1j().w1l_1;
|
|
2856
|
+
var src = dot_0(xyzToLms, srcWp.m1n(), srcWp.l1n_1, srcWp.n1n());
|
|
2857
|
+
var dst = dot_0(xyzToLms, dstWp.m1n(), dstWp.l1n_1, dstWp.n1n());
|
|
2914
2858
|
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);
|
|
2915
2859
|
}
|
|
2916
2860
|
function XYZColorSpaceImpl(whitePoint) {
|
|
2917
|
-
this.
|
|
2918
|
-
this.
|
|
2861
|
+
this.b1p_1 = whitePoint;
|
|
2862
|
+
this.c1p_1 = rectangularComponentInfo('XYZ');
|
|
2919
2863
|
}
|
|
2920
|
-
protoOf(XYZColorSpaceImpl).
|
|
2921
|
-
return this.
|
|
2864
|
+
protoOf(XYZColorSpaceImpl).m1j = function () {
|
|
2865
|
+
return this.b1p_1;
|
|
2922
2866
|
};
|
|
2923
|
-
protoOf(XYZColorSpaceImpl).
|
|
2867
|
+
protoOf(XYZColorSpaceImpl).ka = function () {
|
|
2924
2868
|
return 'XYZ';
|
|
2925
2869
|
};
|
|
2926
|
-
protoOf(XYZColorSpaceImpl).
|
|
2927
|
-
return this.
|
|
2870
|
+
protoOf(XYZColorSpaceImpl).n1j = function () {
|
|
2871
|
+
return this.c1p_1;
|
|
2928
2872
|
};
|
|
2929
|
-
protoOf(XYZColorSpaceImpl).
|
|
2930
|
-
return color.
|
|
2873
|
+
protoOf(XYZColorSpaceImpl).l1j = function (color) {
|
|
2874
|
+
return color.x1i().b1l(this);
|
|
2931
2875
|
};
|
|
2932
|
-
protoOf(XYZColorSpaceImpl).
|
|
2876
|
+
protoOf(XYZColorSpaceImpl).o1j = function (components) {
|
|
2933
2877
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2934
2878
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2935
|
-
var size = this.
|
|
2879
|
+
var size = this.n1j().l();
|
|
2936
2880
|
// Inline function 'kotlin.require' call
|
|
2937
2881
|
var containsLower = size - 1 | 0;
|
|
2938
2882
|
var containsArg = components.length;
|
|
@@ -2946,26 +2890,25 @@
|
|
|
2946
2890
|
var tmp = components[0];
|
|
2947
2891
|
var tmp_0 = components[1];
|
|
2948
2892
|
var tmp_1 = components[2];
|
|
2949
|
-
var tmp$ret$2;
|
|
2950
2893
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
2951
2894
|
var tmp_2;
|
|
2952
|
-
if (3 <= get_lastIndex_0(components)) {
|
|
2895
|
+
if (3 >= 0 ? 3 <= get_lastIndex_0(components) : false) {
|
|
2953
2896
|
tmp_2 = components[3];
|
|
2954
2897
|
} else {
|
|
2955
2898
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
2956
2899
|
tmp_2 = 1.0;
|
|
2957
2900
|
}
|
|
2958
|
-
tmp$ret$2 = tmp_2;
|
|
2959
|
-
return this.
|
|
2901
|
+
var tmp$ret$2 = tmp_2;
|
|
2902
|
+
return this.k1k(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
2960
2903
|
};
|
|
2961
2904
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
2962
|
-
return 'XYZColorSpace(' + this.
|
|
2905
|
+
return 'XYZColorSpace(' + this.b1p_1 + ')';
|
|
2963
2906
|
};
|
|
2964
|
-
protoOf(XYZColorSpaceImpl).
|
|
2907
|
+
protoOf(XYZColorSpaceImpl).k1k = function (x, y, z, alpha) {
|
|
2965
2908
|
return new XYZ(x, y, z, alpha, this);
|
|
2966
2909
|
};
|
|
2967
2910
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
2968
|
-
return this.
|
|
2911
|
+
return this.b1p_1.hashCode();
|
|
2969
2912
|
};
|
|
2970
2913
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
2971
2914
|
if (this === other)
|
|
@@ -2973,7 +2916,7 @@
|
|
|
2973
2916
|
if (!(other instanceof XYZColorSpaceImpl))
|
|
2974
2917
|
return false;
|
|
2975
2918
|
var tmp0_other_with_cast = other instanceof XYZColorSpaceImpl ? other : THROW_CCE();
|
|
2976
|
-
if (!this.
|
|
2919
|
+
if (!this.b1p_1.equals(tmp0_other_with_cast.b1p_1))
|
|
2977
2920
|
return false;
|
|
2978
2921
|
return true;
|
|
2979
2922
|
};
|
|
@@ -2987,26 +2930,26 @@
|
|
|
2987
2930
|
}
|
|
2988
2931
|
function xyY(x, y, Y) {
|
|
2989
2932
|
Y = Y === VOID ? 1.0 : Y;
|
|
2990
|
-
this.
|
|
2991
|
-
this.
|
|
2992
|
-
this.
|
|
2933
|
+
this.j1n_1 = x;
|
|
2934
|
+
this.k1n_1 = y;
|
|
2935
|
+
this.l1n_1 = Y;
|
|
2993
2936
|
}
|
|
2994
|
-
protoOf(xyY).
|
|
2995
|
-
return 1 - this.
|
|
2937
|
+
protoOf(xyY).m1o = function () {
|
|
2938
|
+
return 1 - this.j1n_1 - this.k1n_1;
|
|
2996
2939
|
};
|
|
2997
|
-
protoOf(xyY).
|
|
2998
|
-
return this.
|
|
2940
|
+
protoOf(xyY).m1n = function () {
|
|
2941
|
+
return this.j1n_1 * this.l1n_1 / this.k1n_1;
|
|
2999
2942
|
};
|
|
3000
|
-
protoOf(xyY).
|
|
3001
|
-
return (1 - this.
|
|
2943
|
+
protoOf(xyY).n1n = function () {
|
|
2944
|
+
return (1 - this.j1n_1 - this.k1n_1) * this.l1n_1 / this.k1n_1;
|
|
3002
2945
|
};
|
|
3003
2946
|
protoOf(xyY).toString = function () {
|
|
3004
|
-
return 'xyY(x=' + this.
|
|
2947
|
+
return 'xyY(x=' + this.j1n_1 + ', y=' + this.k1n_1 + ', Y=' + this.l1n_1 + ')';
|
|
3005
2948
|
};
|
|
3006
2949
|
protoOf(xyY).hashCode = function () {
|
|
3007
|
-
var result = getNumberHashCode(this.
|
|
3008
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3009
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2950
|
+
var result = getNumberHashCode(this.j1n_1);
|
|
2951
|
+
result = imul(result, 31) + getNumberHashCode(this.k1n_1) | 0;
|
|
2952
|
+
result = imul(result, 31) + getNumberHashCode(this.l1n_1) | 0;
|
|
3010
2953
|
return result;
|
|
3011
2954
|
};
|
|
3012
2955
|
protoOf(xyY).equals = function (other) {
|
|
@@ -3015,62 +2958,67 @@
|
|
|
3015
2958
|
if (!(other instanceof xyY))
|
|
3016
2959
|
return false;
|
|
3017
2960
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
3018
|
-
if (!equals(this.
|
|
2961
|
+
if (!equals(this.j1n_1, tmp0_other_with_cast.j1n_1))
|
|
3019
2962
|
return false;
|
|
3020
|
-
if (!equals(this.
|
|
2963
|
+
if (!equals(this.k1n_1, tmp0_other_with_cast.k1n_1))
|
|
3021
2964
|
return false;
|
|
3022
|
-
if (!equals(this.
|
|
2965
|
+
if (!equals(this.l1n_1, tmp0_other_with_cast.l1n_1))
|
|
3023
2966
|
return false;
|
|
3024
2967
|
return true;
|
|
3025
2968
|
};
|
|
3026
2969
|
//region block: post-declaration
|
|
3027
|
-
protoOf(HSL).
|
|
3028
|
-
protoOf(HSL).
|
|
3029
|
-
protoOf(HSL).
|
|
3030
|
-
protoOf(HSL).
|
|
3031
|
-
protoOf(HWB).
|
|
3032
|
-
protoOf(HWB).
|
|
3033
|
-
protoOf(HWB).
|
|
3034
|
-
protoOf(HWB).
|
|
3035
|
-
protoOf(LAB).
|
|
3036
|
-
protoOf(LAB).
|
|
3037
|
-
protoOf(LABColorSpaceImpl).
|
|
3038
|
-
protoOf(LCHab).
|
|
3039
|
-
protoOf(LCHab).
|
|
3040
|
-
protoOf(Companion_4).
|
|
3041
|
-
protoOf(RGB).
|
|
3042
|
-
protoOf(RGB).
|
|
3043
|
-
protoOf(SRGB).
|
|
3044
|
-
protoOf(SRGB).
|
|
3045
|
-
protoOf(SRGB).
|
|
3046
|
-
protoOf(SRGB).
|
|
3047
|
-
protoOf(BT2020Space).
|
|
3048
|
-
protoOf(BT2020Space).
|
|
3049
|
-
protoOf(BT2020Space).
|
|
3050
|
-
protoOf(BT2020Space).
|
|
3051
|
-
protoOf(RGBColorSpaceImpl).
|
|
3052
|
-
protoOf(RGBColorSpaceImpl).
|
|
3053
|
-
protoOf(RGBColorSpaceImpl).
|
|
3054
|
-
protoOf(RGBColorSpaceImpl).
|
|
3055
|
-
protoOf(Companion_5).
|
|
3056
|
-
protoOf(XYZ).
|
|
3057
|
-
protoOf(XYZ).
|
|
3058
|
-
protoOf(XYZ).
|
|
3059
|
-
protoOf(XYZColorSpaceImpl).
|
|
3060
|
-
protoOf(XYZColorSpaceImpl).
|
|
2970
|
+
protoOf(HSL).x1i = toXYZ;
|
|
2971
|
+
protoOf(HSL).y1i = toLAB;
|
|
2972
|
+
protoOf(HSL).e1j = toLCHab;
|
|
2973
|
+
protoOf(HSL).k1j = toHWB;
|
|
2974
|
+
protoOf(HWB).r1i = toHSL;
|
|
2975
|
+
protoOf(HWB).x1i = toXYZ;
|
|
2976
|
+
protoOf(HWB).y1i = toLAB;
|
|
2977
|
+
protoOf(HWB).e1j = toLCHab;
|
|
2978
|
+
protoOf(LAB).r1i = toHSL;
|
|
2979
|
+
protoOf(LAB).k1j = toHWB;
|
|
2980
|
+
protoOf(LABColorSpaceImpl).h1n = invoke;
|
|
2981
|
+
protoOf(LCHab).r1i = toHSL;
|
|
2982
|
+
protoOf(LCHab).k1j = toHWB;
|
|
2983
|
+
protoOf(Companion_4).f1m = from255$default;
|
|
2984
|
+
protoOf(RGB).y1i = toLAB;
|
|
2985
|
+
protoOf(RGB).e1j = toLCHab;
|
|
2986
|
+
protoOf(SRGB).h1n = invoke_0;
|
|
2987
|
+
protoOf(SRGB).j1k = invoke_1;
|
|
2988
|
+
protoOf(SRGB).g1m = from255;
|
|
2989
|
+
protoOf(SRGB).f1m = from255$default;
|
|
2990
|
+
protoOf(BT2020Space).h1n = invoke_0;
|
|
2991
|
+
protoOf(BT2020Space).j1k = invoke_1;
|
|
2992
|
+
protoOf(BT2020Space).g1m = from255;
|
|
2993
|
+
protoOf(BT2020Space).f1m = from255$default;
|
|
2994
|
+
protoOf(RGBColorSpaceImpl).h1n = invoke_0;
|
|
2995
|
+
protoOf(RGBColorSpaceImpl).j1k = invoke_1;
|
|
2996
|
+
protoOf(RGBColorSpaceImpl).g1m = from255;
|
|
2997
|
+
protoOf(RGBColorSpaceImpl).f1m = from255$default;
|
|
2998
|
+
protoOf(Companion_5).i1n = invoke$default;
|
|
2999
|
+
protoOf(XYZ).r1i = toHSL;
|
|
3000
|
+
protoOf(XYZ).e1j = toLCHab;
|
|
3001
|
+
protoOf(XYZ).k1j = toHWB;
|
|
3002
|
+
protoOf(XYZColorSpaceImpl).h1n = invoke_2;
|
|
3003
|
+
protoOf(XYZColorSpaceImpl).i1n = invoke$default;
|
|
3061
3004
|
//endregion
|
|
3062
3005
|
//region block: init
|
|
3006
|
+
Companion_instance_0 = new Companion();
|
|
3063
3007
|
CIE_E = 0.008856451679035631;
|
|
3064
3008
|
CIE_K = 903.2962962962963;
|
|
3065
3009
|
CIE_E_times_K = 8.0;
|
|
3010
|
+
PqNonlinearity_instance = new PqNonlinearity();
|
|
3011
|
+
LinearTransferFunctions_instance = new LinearTransferFunctions();
|
|
3012
|
+
SRGBTransferFunctions_instance = new SRGBTransferFunctions();
|
|
3013
|
+
ROMMTransferFunctions_instance = new ROMMTransferFunctions();
|
|
3066
3014
|
//endregion
|
|
3067
3015
|
//region block: exports
|
|
3068
3016
|
_.$_$ = _.$_$ || {};
|
|
3069
3017
|
_.$_$.a = formatCssString;
|
|
3070
3018
|
_.$_$.b = parse;
|
|
3071
3019
|
_.$_$.c = RenderCondition_ALWAYS_getInstance;
|
|
3072
|
-
_.$_$.d =
|
|
3073
|
-
_.$_$.e =
|
|
3020
|
+
_.$_$.d = Companion_getInstance_4;
|
|
3021
|
+
_.$_$.e = Companion_instance_0;
|
|
3074
3022
|
//endregion
|
|
3075
3023
|
return _;
|
|
3076
3024
|
}));
|