@cruglobal/godtools-shared 0.9.2-SNAPSHOT.1319 → 0.9.2-SNAPSHOT.1329
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 +44 -64
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Napier-napier-js-ir.js +36 -39
- package/Napier-napier-js-ir.js.map +1 -1
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js +3192 -3509
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js.map +1 -1
- package/colormath-root-colormath.js +932 -1342
- package/colormath-root-colormath.js.map +1 -1
- package/fluid-locale.js +306 -514
- package/fluid-locale.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +1552 -2470
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/{kotlin-mpp-godtools-tool-parser-common.js → kotlin-mpp-godtools-tool-parser-module-common.js} +2 -2
- package/{kotlin-mpp-godtools-tool-parser-parser-expressions.js → kotlin-mpp-godtools-tool-parser-module-parser-expressions.js} +533 -673
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js.map +1 -0
- package/{kotlin-mpp-godtools-tool-parser-parser.js → kotlin-mpp-godtools-tool-parser-module-parser.js} +2917 -4070
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -0
- package/{kotlin-mpp-godtools-tool-parser-state.js → kotlin-mpp-godtools-tool-parser-module-state.js} +236 -274
- package/kotlin-mpp-godtools-tool-parser-module-state.js.map +1 -0
- package/{kotlin-mpp-godtools-tool-parser-npm.d.ts → kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts} +2 -1
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.js +26 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3151 -4206
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +5 -4
- package/kotlin-mpp-godtools-tool-parser-npm.js +0 -26
- package/kotlin-mpp-godtools-tool-parser-parser-expressions.js.map +0 -1
- package/kotlin-mpp-godtools-tool-parser-parser.js.map +0 -1
- package/kotlin-mpp-godtools-tool-parser-state.js.map +0 -1
- /package/{kotlin-mpp-godtools-tool-parser-common.js.map → kotlin-mpp-godtools-tool-parser-module-common.js.map} +0 -0
- /package/{kotlin-mpp-godtools-tool-parser-npm.js.map → kotlin-mpp-godtools-tool-parser-publishing-npm.js.map} +0 -0
package/fluid-locale.js
CHANGED
|
@@ -14,37 +14,37 @@
|
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q1;
|
|
17
|
-
var to = kotlin_kotlin.$_$.
|
|
17
|
+
var to = kotlin_kotlin.$_$.u9;
|
|
18
18
|
var hashMapOf = kotlin_kotlin.$_$.p3;
|
|
19
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
20
|
-
var
|
|
21
|
-
var protoOf = kotlin_kotlin.$_$.r6;
|
|
19
|
+
var charSequenceLength = kotlin_kotlin.$_$.w5;
|
|
20
|
+
var protoOf = kotlin_kotlin.$_$.s6;
|
|
22
21
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
22
|
+
var Unit_getInstance = kotlin_kotlin.$_$.m2;
|
|
23
23
|
var sorted = kotlin_kotlin.$_$.m4;
|
|
24
24
|
var emptyList = kotlin_kotlin.$_$.h3;
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
25
|
+
var toString = kotlin_kotlin.$_$.w6;
|
|
26
26
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
27
|
-
var VOID = kotlin_kotlin.$_$.
|
|
28
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
29
|
-
var splitToSequence = kotlin_kotlin.$_$.
|
|
30
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
31
|
-
var equals = kotlin_kotlin.$_$.
|
|
32
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
33
|
-
var StringBuilder = kotlin_kotlin.$_$.
|
|
34
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
35
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
36
|
-
var equals_0 = kotlin_kotlin.$_$.
|
|
37
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
27
|
+
var VOID = kotlin_kotlin.$_$.w9;
|
|
28
|
+
var charArrayOf = kotlin_kotlin.$_$.u5;
|
|
29
|
+
var splitToSequence = kotlin_kotlin.$_$.a8;
|
|
30
|
+
var charSequenceGet = kotlin_kotlin.$_$.v5;
|
|
31
|
+
var equals = kotlin_kotlin.$_$.s7;
|
|
32
|
+
var ensureNotNull = kotlin_kotlin.$_$.n9;
|
|
33
|
+
var StringBuilder = kotlin_kotlin.$_$.l7;
|
|
34
|
+
var objectMeta = kotlin_kotlin.$_$.r6;
|
|
35
|
+
var setMetadataFor = kotlin_kotlin.$_$.t6;
|
|
36
|
+
var equals_0 = kotlin_kotlin.$_$.a6;
|
|
37
|
+
var hashCode = kotlin_kotlin.$_$.f6;
|
|
38
38
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.y2;
|
|
39
39
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
40
40
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
41
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
41
|
+
var classMeta = kotlin_kotlin.$_$.x5;
|
|
42
42
|
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.s1;
|
|
43
43
|
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.r1;
|
|
44
44
|
var checkIndexOverflow = kotlin_kotlin.$_$.x2;
|
|
45
|
-
var equals_1 = kotlin_kotlin.$_$.
|
|
46
|
-
var toCharArray = kotlin_kotlin.$_$.
|
|
47
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
45
|
+
var equals_1 = kotlin_kotlin.$_$.r7;
|
|
46
|
+
var toCharArray = kotlin_kotlin.$_$.h8;
|
|
47
|
+
var concatToString = kotlin_kotlin.$_$.m7;
|
|
48
48
|
//endregion
|
|
49
49
|
//region block: pre-declaration
|
|
50
50
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
@@ -54,112 +54,84 @@
|
|
|
54
54
|
//endregion
|
|
55
55
|
function Companion() {
|
|
56
56
|
Companion_instance = this;
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
57
|
+
this.u2u_1 = _Char___init__impl__6a9atx(120);
|
|
58
|
+
this.v2u_1 = _Char___init__impl__6a9atx(45);
|
|
59
|
+
this.w2u_1 = 'und';
|
|
60
|
+
this.x2u_1 = hashMapOf([to('art-lojban', 'jbo'), to('cel-gaulish', 'xtg-x-cel-gaulish'), to('en-gb-oed', 'en-GB-oxendict'), to('i-ami', 'ami'), to('i-bnn', 'bnn'), to('i-default', 'en-x-i-default'), to('i-enochian', 'und-x-i-enochian'), to('i-hak', 'hak'), to('i-klingon', 'tlh'), to('i-lux', 'lb'), to('i-mingo', 'see-x-i-mingo'), to('i-navajo', 'nv'), to('i-pwn', 'pwn'), to('i-tao', 'tao'), to('i-tay', 'tay'), to('i-tsu', 'tsu'), to('no-bok', 'nb'), to('no-nyn', 'nn'), to('sgn-be-fr', 'sfb'), to('sgn-be-nl', 'vgt'), to('sgn-ch-de', 'sgg'), to('zh-guoyu', 'cmn'), to('zh-hakka', 'hak'), to('zh-min', 'nan-x-zh-min'), to('zh-min-nan', 'nan'), to('zh-xiang', 'hsn')]);
|
|
61
61
|
}
|
|
62
|
-
protoOf(Companion).
|
|
63
|
-
var tmp0_safe_receiver = extension;
|
|
62
|
+
protoOf(Companion).y2u = function (extension) {
|
|
64
63
|
var tmp;
|
|
65
|
-
if (
|
|
64
|
+
if (extension == null) {
|
|
66
65
|
tmp = null;
|
|
67
66
|
} else {
|
|
68
|
-
var tmp$ret$2;
|
|
69
67
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
70
68
|
var tmp_0;
|
|
71
|
-
var tmp$ret$0;
|
|
72
69
|
// Inline function 'kotlin.text.isEmpty' call
|
|
73
|
-
|
|
74
|
-
if (tmp$ret$0) {
|
|
75
|
-
var tmp$ret$1;
|
|
70
|
+
if (charSequenceLength(extension) === 0) {
|
|
76
71
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtension.<anonymous>' call
|
|
77
|
-
|
|
78
|
-
tmp_0 = tmp$ret$1;
|
|
72
|
+
tmp_0 = null;
|
|
79
73
|
} else {
|
|
80
|
-
tmp_0 =
|
|
74
|
+
tmp_0 = extension;
|
|
81
75
|
}
|
|
82
|
-
tmp
|
|
83
|
-
tmp = tmp$ret$2;
|
|
76
|
+
tmp = tmp_0;
|
|
84
77
|
}
|
|
85
78
|
var tmp1_safe_receiver = tmp;
|
|
86
79
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
87
80
|
};
|
|
88
|
-
protoOf(Companion).
|
|
89
|
-
var tmp0_safe_receiver = singleton;
|
|
81
|
+
protoOf(Companion).z2u = function (singleton) {
|
|
90
82
|
var tmp;
|
|
91
|
-
if (
|
|
83
|
+
if (singleton == null) {
|
|
92
84
|
tmp = null;
|
|
93
85
|
} else {
|
|
94
|
-
var tmp$ret$2;
|
|
95
86
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
96
87
|
var tmp_0;
|
|
97
|
-
var tmp$ret$0;
|
|
98
88
|
// Inline function 'kotlin.text.isEmpty' call
|
|
99
|
-
|
|
100
|
-
if (tmp$ret$0) {
|
|
101
|
-
var tmp$ret$1;
|
|
89
|
+
if (charSequenceLength(singleton) === 0) {
|
|
102
90
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtensionSingleton.<anonymous>' call
|
|
103
|
-
|
|
104
|
-
tmp_0 = tmp$ret$1;
|
|
91
|
+
tmp_0 = null;
|
|
105
92
|
} else {
|
|
106
|
-
tmp_0 =
|
|
93
|
+
tmp_0 = singleton;
|
|
107
94
|
}
|
|
108
|
-
tmp
|
|
109
|
-
tmp = tmp$ret$2;
|
|
95
|
+
tmp = tmp_0;
|
|
110
96
|
}
|
|
111
97
|
var tmp1_safe_receiver = tmp;
|
|
112
98
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
113
99
|
};
|
|
114
|
-
protoOf(Companion).
|
|
115
|
-
var tmp0_safe_receiver = subtag;
|
|
100
|
+
protoOf(Companion).a2v = function (subtag) {
|
|
116
101
|
var tmp;
|
|
117
|
-
if (
|
|
102
|
+
if (subtag == null) {
|
|
118
103
|
tmp = null;
|
|
119
104
|
} else {
|
|
120
|
-
var tmp$ret$2;
|
|
121
105
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
122
106
|
var tmp_0;
|
|
123
|
-
var tmp$ret$0;
|
|
124
107
|
// Inline function 'kotlin.text.isEmpty' call
|
|
125
|
-
|
|
126
|
-
if (tmp$ret$0) {
|
|
127
|
-
var tmp$ret$1;
|
|
108
|
+
if (charSequenceLength(subtag) === 0) {
|
|
128
109
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtensionSubtag.<anonymous>' call
|
|
129
|
-
|
|
130
|
-
tmp_0 = tmp$ret$1;
|
|
110
|
+
tmp_0 = null;
|
|
131
111
|
} else {
|
|
132
|
-
tmp_0 =
|
|
112
|
+
tmp_0 = subtag;
|
|
133
113
|
}
|
|
134
|
-
tmp
|
|
135
|
-
tmp = tmp$ret$2;
|
|
114
|
+
tmp = tmp_0;
|
|
136
115
|
}
|
|
137
116
|
var tmp1_safe_receiver = tmp;
|
|
138
117
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
139
118
|
};
|
|
140
|
-
protoOf(Companion).
|
|
141
|
-
var tmp$ret$5;
|
|
119
|
+
protoOf(Companion).b2v = function (extensions) {
|
|
142
120
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
143
|
-
var tmp$ret$1;
|
|
144
121
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
145
122
|
var tmp;
|
|
146
123
|
if (extensions.m()) {
|
|
147
|
-
var tmp$ret$0;
|
|
148
124
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtensions.<anonymous>' call
|
|
149
|
-
tmp
|
|
150
|
-
tmp = tmp$ret$0;
|
|
125
|
+
tmp = null;
|
|
151
126
|
} else {
|
|
152
127
|
tmp = extensions;
|
|
153
128
|
}
|
|
154
|
-
|
|
155
|
-
var tmp0_safe_receiver = tmp$ret$1;
|
|
129
|
+
var tmp0_safe_receiver = tmp;
|
|
156
130
|
var tmp_0;
|
|
157
131
|
if (tmp0_safe_receiver == null) {
|
|
158
132
|
tmp_0 = null;
|
|
159
133
|
} else {
|
|
160
|
-
var tmp$ret$4;
|
|
161
134
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
162
|
-
var tmp$ret$3;
|
|
163
135
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
164
136
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
165
137
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -167,76 +139,56 @@
|
|
|
167
139
|
while (tmp0_iterator.g()) {
|
|
168
140
|
var element = tmp0_iterator.h();
|
|
169
141
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
170
|
-
var tmp0_safe_receiver_0 = this.
|
|
142
|
+
var tmp0_safe_receiver_0 = this.y2u(element);
|
|
171
143
|
if (tmp0_safe_receiver_0 == null)
|
|
172
144
|
null;
|
|
173
145
|
else {
|
|
174
|
-
var tmp$ret$2;
|
|
175
146
|
// Inline function 'kotlin.let' call
|
|
176
147
|
// Inline function 'kotlin.contracts.contract' call
|
|
177
148
|
tmp0_mapNotNullTo.a(tmp0_safe_receiver_0);
|
|
178
|
-
tmp$ret$2 = Unit_getInstance();
|
|
179
149
|
}
|
|
180
150
|
}
|
|
181
|
-
|
|
182
|
-
tmp$ret$4 = tmp$ret$3;
|
|
183
|
-
tmp_0 = tmp$ret$4;
|
|
151
|
+
tmp_0 = tmp0_mapNotNullTo;
|
|
184
152
|
}
|
|
185
153
|
var tmp1_safe_receiver = tmp_0;
|
|
186
|
-
var
|
|
187
|
-
|
|
188
|
-
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
189
|
-
return tmp$ret$5;
|
|
154
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : sorted(tmp1_safe_receiver);
|
|
155
|
+
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
190
156
|
};
|
|
191
|
-
protoOf(Companion).
|
|
192
|
-
var tmp0_safe_receiver = extlang;
|
|
157
|
+
protoOf(Companion).c2v = function (extlang) {
|
|
193
158
|
var tmp;
|
|
194
|
-
if (
|
|
159
|
+
if (extlang == null) {
|
|
195
160
|
tmp = null;
|
|
196
161
|
} else {
|
|
197
|
-
var tmp$ret$2;
|
|
198
162
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
199
163
|
var tmp_0;
|
|
200
|
-
var tmp$ret$0;
|
|
201
164
|
// Inline function 'kotlin.text.isEmpty' call
|
|
202
|
-
|
|
203
|
-
if (tmp$ret$0) {
|
|
204
|
-
var tmp$ret$1;
|
|
165
|
+
if (charSequenceLength(extlang) === 0) {
|
|
205
166
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtlang.<anonymous>' call
|
|
206
|
-
|
|
207
|
-
tmp_0 = tmp$ret$1;
|
|
167
|
+
tmp_0 = null;
|
|
208
168
|
} else {
|
|
209
|
-
tmp_0 =
|
|
169
|
+
tmp_0 = extlang;
|
|
210
170
|
}
|
|
211
|
-
tmp
|
|
212
|
-
tmp = tmp$ret$2;
|
|
171
|
+
tmp = tmp_0;
|
|
213
172
|
}
|
|
214
173
|
var tmp1_safe_receiver = tmp;
|
|
215
174
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
216
175
|
};
|
|
217
|
-
protoOf(Companion).
|
|
218
|
-
var tmp$ret$5;
|
|
176
|
+
protoOf(Companion).d2v = function (extlangs) {
|
|
219
177
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
220
|
-
var tmp$ret$1;
|
|
221
178
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
222
179
|
var tmp;
|
|
223
180
|
if (extlangs.m()) {
|
|
224
|
-
var tmp$ret$0;
|
|
225
181
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtlangs.<anonymous>' call
|
|
226
|
-
tmp
|
|
227
|
-
tmp = tmp$ret$0;
|
|
182
|
+
tmp = null;
|
|
228
183
|
} else {
|
|
229
184
|
tmp = extlangs;
|
|
230
185
|
}
|
|
231
|
-
|
|
232
|
-
var tmp0_safe_receiver = tmp$ret$1;
|
|
186
|
+
var tmp0_safe_receiver = tmp;
|
|
233
187
|
var tmp_0;
|
|
234
188
|
if (tmp0_safe_receiver == null) {
|
|
235
189
|
tmp_0 = null;
|
|
236
190
|
} else {
|
|
237
|
-
var tmp$ret$4;
|
|
238
191
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
239
|
-
var tmp$ret$3;
|
|
240
192
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
241
193
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
242
194
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -244,230 +196,168 @@
|
|
|
244
196
|
while (tmp0_iterator.g()) {
|
|
245
197
|
var element = tmp0_iterator.h();
|
|
246
198
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
247
|
-
var tmp0_safe_receiver_0 = this.
|
|
199
|
+
var tmp0_safe_receiver_0 = this.c2v(element);
|
|
248
200
|
if (tmp0_safe_receiver_0 == null)
|
|
249
201
|
null;
|
|
250
202
|
else {
|
|
251
|
-
var tmp$ret$2;
|
|
252
203
|
// Inline function 'kotlin.let' call
|
|
253
204
|
// Inline function 'kotlin.contracts.contract' call
|
|
254
205
|
tmp0_mapNotNullTo.a(tmp0_safe_receiver_0);
|
|
255
|
-
tmp$ret$2 = Unit_getInstance();
|
|
256
206
|
}
|
|
257
207
|
}
|
|
258
|
-
|
|
259
|
-
tmp$ret$4 = tmp$ret$3;
|
|
260
|
-
tmp_0 = tmp$ret$4;
|
|
208
|
+
tmp_0 = tmp0_mapNotNullTo;
|
|
261
209
|
}
|
|
262
|
-
var
|
|
263
|
-
|
|
264
|
-
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
265
|
-
return tmp$ret$5;
|
|
210
|
+
var tmp0_elvis_lhs = tmp_0;
|
|
211
|
+
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
266
212
|
};
|
|
267
|
-
protoOf(Companion).
|
|
268
|
-
var tmp0_safe_receiver = language;
|
|
213
|
+
protoOf(Companion).e2v = function (language) {
|
|
269
214
|
var tmp;
|
|
270
|
-
if (
|
|
215
|
+
if (language == null) {
|
|
271
216
|
tmp = null;
|
|
272
217
|
} else {
|
|
273
|
-
var tmp$ret$2;
|
|
274
218
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
275
219
|
var tmp_0;
|
|
276
|
-
var tmp$ret$0;
|
|
277
220
|
// Inline function 'kotlin.text.isEmpty' call
|
|
278
|
-
|
|
279
|
-
if (tmp$ret$0) {
|
|
280
|
-
var tmp$ret$1;
|
|
221
|
+
if (charSequenceLength(language) === 0) {
|
|
281
222
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeLanguage.<anonymous>' call
|
|
282
|
-
|
|
283
|
-
tmp_0 = tmp$ret$1;
|
|
223
|
+
tmp_0 = null;
|
|
284
224
|
} else {
|
|
285
|
-
tmp_0 =
|
|
225
|
+
tmp_0 = language;
|
|
286
226
|
}
|
|
287
|
-
tmp
|
|
288
|
-
tmp = tmp$ret$2;
|
|
227
|
+
tmp = tmp_0;
|
|
289
228
|
}
|
|
290
229
|
var tmp1_safe_receiver = tmp;
|
|
291
230
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
292
231
|
};
|
|
293
|
-
protoOf(Companion).
|
|
294
|
-
var tmp0_safe_receiver = privateuse;
|
|
232
|
+
protoOf(Companion).f2v = function (privateuse) {
|
|
295
233
|
var tmp;
|
|
296
|
-
if (
|
|
234
|
+
if (privateuse == null) {
|
|
297
235
|
tmp = null;
|
|
298
236
|
} else {
|
|
299
|
-
var tmp$ret$2;
|
|
300
237
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
301
238
|
var tmp_0;
|
|
302
|
-
var tmp$ret$0;
|
|
303
239
|
// Inline function 'kotlin.text.isEmpty' call
|
|
304
|
-
|
|
305
|
-
if (tmp$ret$0) {
|
|
306
|
-
var tmp$ret$1;
|
|
240
|
+
if (charSequenceLength(privateuse) === 0) {
|
|
307
241
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizePrivateuse.<anonymous>' call
|
|
308
|
-
|
|
309
|
-
tmp_0 = tmp$ret$1;
|
|
242
|
+
tmp_0 = null;
|
|
310
243
|
} else {
|
|
311
|
-
tmp_0 =
|
|
244
|
+
tmp_0 = privateuse;
|
|
312
245
|
}
|
|
313
|
-
tmp
|
|
314
|
-
tmp = tmp$ret$2;
|
|
246
|
+
tmp = tmp_0;
|
|
315
247
|
}
|
|
316
248
|
var tmp1_safe_receiver = tmp;
|
|
317
249
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
318
250
|
};
|
|
319
|
-
protoOf(Companion).
|
|
320
|
-
var tmp0_safe_receiver = prefix;
|
|
251
|
+
protoOf(Companion).g2v = function (prefix) {
|
|
321
252
|
var tmp;
|
|
322
|
-
if (
|
|
253
|
+
if (prefix == null) {
|
|
323
254
|
tmp = null;
|
|
324
255
|
} else {
|
|
325
|
-
var tmp$ret$2;
|
|
326
256
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
327
257
|
var tmp_0;
|
|
328
|
-
var tmp$ret$0;
|
|
329
258
|
// Inline function 'kotlin.text.isEmpty' call
|
|
330
|
-
|
|
331
|
-
if (tmp$ret$0) {
|
|
332
|
-
var tmp$ret$1;
|
|
259
|
+
if (charSequenceLength(prefix) === 0) {
|
|
333
260
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizePrivateusePrefix.<anonymous>' call
|
|
334
|
-
|
|
335
|
-
tmp_0 = tmp$ret$1;
|
|
261
|
+
tmp_0 = null;
|
|
336
262
|
} else {
|
|
337
|
-
tmp_0 =
|
|
263
|
+
tmp_0 = prefix;
|
|
338
264
|
}
|
|
339
|
-
tmp
|
|
340
|
-
tmp = tmp$ret$2;
|
|
265
|
+
tmp = tmp_0;
|
|
341
266
|
}
|
|
342
267
|
var tmp1_safe_receiver = tmp;
|
|
343
268
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
344
269
|
};
|
|
345
|
-
protoOf(Companion).
|
|
346
|
-
var tmp0_safe_receiver = subtag;
|
|
270
|
+
protoOf(Companion).h2v = function (subtag) {
|
|
347
271
|
var tmp;
|
|
348
|
-
if (
|
|
272
|
+
if (subtag == null) {
|
|
349
273
|
tmp = null;
|
|
350
274
|
} else {
|
|
351
|
-
var tmp$ret$2;
|
|
352
275
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
353
276
|
var tmp_0;
|
|
354
|
-
var tmp$ret$0;
|
|
355
277
|
// Inline function 'kotlin.text.isEmpty' call
|
|
356
|
-
|
|
357
|
-
if (tmp$ret$0) {
|
|
358
|
-
var tmp$ret$1;
|
|
278
|
+
if (charSequenceLength(subtag) === 0) {
|
|
359
279
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizePrivateuseSubtag.<anonymous>' call
|
|
360
|
-
|
|
361
|
-
tmp_0 = tmp$ret$1;
|
|
280
|
+
tmp_0 = null;
|
|
362
281
|
} else {
|
|
363
|
-
tmp_0 =
|
|
282
|
+
tmp_0 = subtag;
|
|
364
283
|
}
|
|
365
|
-
tmp
|
|
366
|
-
tmp = tmp$ret$2;
|
|
284
|
+
tmp = tmp_0;
|
|
367
285
|
}
|
|
368
286
|
var tmp1_safe_receiver = tmp;
|
|
369
287
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
370
288
|
};
|
|
371
|
-
protoOf(Companion).
|
|
372
|
-
var tmp0_safe_receiver = region;
|
|
289
|
+
protoOf(Companion).i2v = function (region) {
|
|
373
290
|
var tmp;
|
|
374
|
-
if (
|
|
291
|
+
if (region == null) {
|
|
375
292
|
tmp = null;
|
|
376
293
|
} else {
|
|
377
|
-
var tmp$ret$2;
|
|
378
294
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
379
295
|
var tmp_0;
|
|
380
|
-
var tmp$ret$0;
|
|
381
296
|
// Inline function 'kotlin.text.isEmpty' call
|
|
382
|
-
|
|
383
|
-
if (tmp$ret$0) {
|
|
384
|
-
var tmp$ret$1;
|
|
297
|
+
if (charSequenceLength(region) === 0) {
|
|
385
298
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeRegion.<anonymous>' call
|
|
386
|
-
|
|
387
|
-
tmp_0 = tmp$ret$1;
|
|
299
|
+
tmp_0 = null;
|
|
388
300
|
} else {
|
|
389
|
-
tmp_0 =
|
|
301
|
+
tmp_0 = region;
|
|
390
302
|
}
|
|
391
|
-
tmp
|
|
392
|
-
tmp = tmp$ret$2;
|
|
303
|
+
tmp = tmp_0;
|
|
393
304
|
}
|
|
394
305
|
var tmp1_safe_receiver = tmp;
|
|
395
306
|
return tmp1_safe_receiver == null ? null : toUpperCase_0(tmp1_safe_receiver);
|
|
396
307
|
};
|
|
397
|
-
protoOf(Companion).
|
|
398
|
-
var tmp0_safe_receiver = script;
|
|
308
|
+
protoOf(Companion).j2v = function (script) {
|
|
399
309
|
var tmp;
|
|
400
|
-
if (
|
|
310
|
+
if (script == null) {
|
|
401
311
|
tmp = null;
|
|
402
312
|
} else {
|
|
403
|
-
var tmp$ret$2;
|
|
404
313
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
405
314
|
var tmp_0;
|
|
406
|
-
var tmp$ret$0;
|
|
407
315
|
// Inline function 'kotlin.text.isEmpty' call
|
|
408
|
-
|
|
409
|
-
if (tmp$ret$0) {
|
|
410
|
-
var tmp$ret$1;
|
|
316
|
+
if (charSequenceLength(script) === 0) {
|
|
411
317
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeScript.<anonymous>' call
|
|
412
|
-
|
|
413
|
-
tmp_0 = tmp$ret$1;
|
|
318
|
+
tmp_0 = null;
|
|
414
319
|
} else {
|
|
415
|
-
tmp_0 =
|
|
320
|
+
tmp_0 = script;
|
|
416
321
|
}
|
|
417
|
-
tmp
|
|
418
|
-
tmp = tmp$ret$2;
|
|
322
|
+
tmp = tmp_0;
|
|
419
323
|
}
|
|
420
324
|
var tmp1_safe_receiver = tmp;
|
|
421
325
|
return tmp1_safe_receiver == null ? null : toUppercaseFirstLowercaseRest(tmp1_safe_receiver);
|
|
422
326
|
};
|
|
423
|
-
protoOf(Companion).
|
|
424
|
-
var tmp0_safe_receiver = variant;
|
|
327
|
+
protoOf(Companion).k2v = function (variant) {
|
|
425
328
|
var tmp;
|
|
426
|
-
if (
|
|
329
|
+
if (variant == null) {
|
|
427
330
|
tmp = null;
|
|
428
331
|
} else {
|
|
429
|
-
var tmp$ret$2;
|
|
430
332
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
431
333
|
var tmp_0;
|
|
432
|
-
var tmp$ret$0;
|
|
433
334
|
// Inline function 'kotlin.text.isEmpty' call
|
|
434
|
-
|
|
435
|
-
if (tmp$ret$0) {
|
|
436
|
-
var tmp$ret$1;
|
|
335
|
+
if (charSequenceLength(variant) === 0) {
|
|
437
336
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeVariant.<anonymous>' call
|
|
438
|
-
|
|
439
|
-
tmp_0 = tmp$ret$1;
|
|
337
|
+
tmp_0 = null;
|
|
440
338
|
} else {
|
|
441
|
-
tmp_0 =
|
|
339
|
+
tmp_0 = variant;
|
|
442
340
|
}
|
|
443
|
-
tmp
|
|
444
|
-
tmp = tmp$ret$2;
|
|
341
|
+
tmp = tmp_0;
|
|
445
342
|
}
|
|
446
343
|
return tmp;
|
|
447
344
|
};
|
|
448
|
-
protoOf(Companion).
|
|
449
|
-
var tmp$ret$5;
|
|
345
|
+
protoOf(Companion).l2v = function (variants) {
|
|
450
346
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
451
|
-
var tmp$ret$1;
|
|
452
347
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
453
348
|
var tmp;
|
|
454
349
|
if (variants.m()) {
|
|
455
|
-
var tmp$ret$0;
|
|
456
350
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeVariants.<anonymous>' call
|
|
457
|
-
tmp
|
|
458
|
-
tmp = tmp$ret$0;
|
|
351
|
+
tmp = null;
|
|
459
352
|
} else {
|
|
460
353
|
tmp = variants;
|
|
461
354
|
}
|
|
462
|
-
|
|
463
|
-
var tmp0_safe_receiver = tmp$ret$1;
|
|
355
|
+
var tmp0_safe_receiver = tmp;
|
|
464
356
|
var tmp_0;
|
|
465
357
|
if (tmp0_safe_receiver == null) {
|
|
466
358
|
tmp_0 = null;
|
|
467
359
|
} else {
|
|
468
|
-
var tmp$ret$4;
|
|
469
360
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
470
|
-
var tmp$ret$3;
|
|
471
361
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
472
362
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
473
363
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -475,75 +365,57 @@
|
|
|
475
365
|
while (tmp0_iterator.g()) {
|
|
476
366
|
var element = tmp0_iterator.h();
|
|
477
367
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
478
|
-
var tmp0_safe_receiver_0 = this.
|
|
368
|
+
var tmp0_safe_receiver_0 = this.k2v(element);
|
|
479
369
|
if (tmp0_safe_receiver_0 == null)
|
|
480
370
|
null;
|
|
481
371
|
else {
|
|
482
|
-
var tmp$ret$2;
|
|
483
372
|
// Inline function 'kotlin.let' call
|
|
484
373
|
// Inline function 'kotlin.contracts.contract' call
|
|
485
374
|
tmp0_mapNotNullTo.a(tmp0_safe_receiver_0);
|
|
486
|
-
tmp$ret$2 = Unit_getInstance();
|
|
487
375
|
}
|
|
488
376
|
}
|
|
489
|
-
|
|
490
|
-
tmp$ret$4 = tmp$ret$3;
|
|
491
|
-
tmp_0 = tmp$ret$4;
|
|
377
|
+
tmp_0 = tmp0_mapNotNullTo;
|
|
492
378
|
}
|
|
493
|
-
var
|
|
494
|
-
|
|
495
|
-
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
496
|
-
return tmp$ret$5;
|
|
379
|
+
var tmp0_elvis_lhs = tmp_0;
|
|
380
|
+
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
497
381
|
};
|
|
498
|
-
protoOf(Companion).
|
|
499
|
-
var canonicalLanguage = this.
|
|
500
|
-
var canonicalScript = this.
|
|
501
|
-
var canonicalRegion = this.
|
|
502
|
-
var canonicalVariants = this.
|
|
503
|
-
var canonicalExtlangs = this.
|
|
504
|
-
var canonicalExtensions = this.
|
|
505
|
-
var canonicalPrivateuse = this.
|
|
382
|
+
protoOf(Companion).m2v = function (language, script, region, variants, extlangs, extensions, privateuse) {
|
|
383
|
+
var canonicalLanguage = this.e2v(language);
|
|
384
|
+
var canonicalScript = this.j2v(script);
|
|
385
|
+
var canonicalRegion = this.i2v(region);
|
|
386
|
+
var canonicalVariants = this.l2v(variants);
|
|
387
|
+
var canonicalExtlangs = this.d2v(extlangs);
|
|
388
|
+
var canonicalExtensions = this.b2v(extensions);
|
|
389
|
+
var canonicalPrivateuse = this.f2v(privateuse);
|
|
506
390
|
// Inline function 'kotlin.require' call
|
|
507
|
-
var tmp0_require = !(canonicalLanguage == null) ? this.j2v(canonicalLanguage) : false;
|
|
508
391
|
// Inline function 'kotlin.contracts.contract' call
|
|
509
|
-
if (!
|
|
510
|
-
var tmp$ret$0;
|
|
392
|
+
if (!(!(canonicalLanguage == null) ? this.n2v(canonicalLanguage) : false)) {
|
|
511
393
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
512
|
-
|
|
513
|
-
var message = tmp$ret$0;
|
|
394
|
+
var message = 'Invalid language: ' + language;
|
|
514
395
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
515
396
|
}
|
|
516
397
|
// Inline function 'kotlin.require' call
|
|
517
|
-
var tmp1_require = canonicalScript == null ? true : this.k2v(canonicalScript);
|
|
518
398
|
// Inline function 'kotlin.contracts.contract' call
|
|
519
|
-
if (!
|
|
520
|
-
var tmp$ret$1;
|
|
399
|
+
if (!(canonicalScript == null ? true : this.o2v(canonicalScript))) {
|
|
521
400
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
522
|
-
|
|
523
|
-
var message_0 = tmp$ret$1;
|
|
401
|
+
var message_0 = 'Invalid script: ' + script;
|
|
524
402
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
525
403
|
}
|
|
526
404
|
// Inline function 'kotlin.require' call
|
|
527
|
-
var tmp2_require = canonicalRegion == null ? true : this.l2v(canonicalRegion);
|
|
528
405
|
// Inline function 'kotlin.contracts.contract' call
|
|
529
|
-
if (!
|
|
530
|
-
var tmp$ret$2;
|
|
406
|
+
if (!(canonicalRegion == null ? true : this.p2v(canonicalRegion))) {
|
|
531
407
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
532
|
-
|
|
533
|
-
var message_1 = tmp$ret$2;
|
|
408
|
+
var message_1 = 'Invalid region: ' + region;
|
|
534
409
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
535
410
|
}
|
|
536
411
|
var tmp0_iterator = canonicalVariants.f();
|
|
537
412
|
while (tmp0_iterator.g()) {
|
|
538
413
|
var variant = tmp0_iterator.h();
|
|
539
414
|
// Inline function 'kotlin.require' call
|
|
540
|
-
var tmp3_require = this.m2v(variant);
|
|
541
415
|
// Inline function 'kotlin.contracts.contract' call
|
|
542
|
-
if (!
|
|
543
|
-
var tmp$ret$3;
|
|
416
|
+
if (!this.q2v(variant)) {
|
|
544
417
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
545
|
-
|
|
546
|
-
var message_2 = tmp$ret$3;
|
|
418
|
+
var message_2 = 'Invalid variant: ' + variant;
|
|
547
419
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
548
420
|
}
|
|
549
421
|
}
|
|
@@ -551,13 +423,10 @@
|
|
|
551
423
|
while (tmp1_iterator.g()) {
|
|
552
424
|
var extlang = tmp1_iterator.h();
|
|
553
425
|
// Inline function 'kotlin.require' call
|
|
554
|
-
var tmp4_require = this.n2v(extlang);
|
|
555
426
|
// Inline function 'kotlin.contracts.contract' call
|
|
556
|
-
if (!
|
|
557
|
-
var tmp$ret$4;
|
|
427
|
+
if (!this.r2v(extlang)) {
|
|
558
428
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
559
|
-
|
|
560
|
-
var message_3 = tmp$ret$4;
|
|
429
|
+
var message_3 = 'Invalid extlang: ' + extlang;
|
|
561
430
|
throw IllegalArgumentException_init_$Create$(toString(message_3));
|
|
562
431
|
}
|
|
563
432
|
}
|
|
@@ -565,61 +434,53 @@
|
|
|
565
434
|
while (tmp2_iterator.g()) {
|
|
566
435
|
var extension = tmp2_iterator.h();
|
|
567
436
|
// Inline function 'kotlin.require' call
|
|
568
|
-
var tmp5_require = this.o2v(extension);
|
|
569
437
|
// Inline function 'kotlin.contracts.contract' call
|
|
570
|
-
if (!
|
|
571
|
-
var tmp$ret$5;
|
|
438
|
+
if (!this.s2v(extension)) {
|
|
572
439
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
573
|
-
|
|
574
|
-
var message_4 = tmp$ret$5;
|
|
440
|
+
var message_4 = 'Invalid extension: ' + extension;
|
|
575
441
|
throw IllegalArgumentException_init_$Create$(toString(message_4));
|
|
576
442
|
}
|
|
577
443
|
}
|
|
578
444
|
// Inline function 'kotlin.require' call
|
|
579
|
-
var tmp6_require = canonicalPrivateuse == null ? true : this.p2v(canonicalPrivateuse);
|
|
580
445
|
// Inline function 'kotlin.contracts.contract' call
|
|
581
|
-
if (!
|
|
582
|
-
var tmp$ret$6;
|
|
446
|
+
if (!(canonicalPrivateuse == null ? true : this.t2v(canonicalPrivateuse))) {
|
|
583
447
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
584
|
-
|
|
585
|
-
var message_5 = tmp$ret$6;
|
|
448
|
+
var message_5 = 'Invalid privateuse: ' + privateuse;
|
|
586
449
|
throw IllegalArgumentException_init_$Create$(toString(message_5));
|
|
587
450
|
}
|
|
588
451
|
return new LanguageTag(canonicalExtensions, canonicalExtlangs, canonicalLanguage, canonicalPrivateuse, canonicalRegion, canonicalScript, canonicalVariants);
|
|
589
452
|
};
|
|
590
|
-
protoOf(Companion).
|
|
453
|
+
protoOf(Companion).u2v = function (language, script, region, variants, extlangs, extensions, privateuse, $super) {
|
|
591
454
|
script = script === VOID ? null : script;
|
|
592
455
|
region = region === VOID ? null : region;
|
|
593
456
|
variants = variants === VOID ? emptyList() : variants;
|
|
594
457
|
extlangs = extlangs === VOID ? emptyList() : extlangs;
|
|
595
458
|
extensions = extensions === VOID ? emptyList() : extensions;
|
|
596
459
|
privateuse = privateuse === VOID ? null : privateuse;
|
|
597
|
-
return $super === VOID ? this.
|
|
460
|
+
return $super === VOID ? this.m2v(language, script, region, variants, extlangs, extensions, privateuse) : $super.m2v.call(this, language, script, region, variants, extlangs, extensions, privateuse);
|
|
598
461
|
};
|
|
599
|
-
protoOf(Companion).
|
|
462
|
+
protoOf(Companion).s2v = function (extension) {
|
|
600
463
|
var tokens = splitToSequence(extension, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
601
|
-
if (!this.
|
|
464
|
+
if (!this.v2v(tokens.h()))
|
|
602
465
|
return false;
|
|
603
466
|
if (!tokens.g())
|
|
604
467
|
return false;
|
|
605
|
-
var tmp$ret$0;
|
|
606
468
|
// Inline function 'kotlin.collections.iterator' call
|
|
607
|
-
|
|
608
|
-
var tmp0_iterator = tmp$ret$0;
|
|
469
|
+
var tmp0_iterator = tokens;
|
|
609
470
|
while (tmp0_iterator.g()) {
|
|
610
471
|
var token = tmp0_iterator.h();
|
|
611
|
-
if (!this.
|
|
472
|
+
if (!this.w2v(token))
|
|
612
473
|
return false;
|
|
613
474
|
}
|
|
614
475
|
return true;
|
|
615
476
|
};
|
|
616
|
-
protoOf(Companion).
|
|
617
|
-
return isAlphaNumeric(singleton) ? !this.
|
|
477
|
+
protoOf(Companion).x2v = function (singleton) {
|
|
478
|
+
return isAlphaNumeric(singleton) ? !this.y2v(singleton) : false;
|
|
618
479
|
};
|
|
619
|
-
protoOf(Companion).
|
|
620
|
-
return singleton.length === 1 ? this.
|
|
480
|
+
protoOf(Companion).v2v = function (singleton) {
|
|
481
|
+
return singleton.length === 1 ? this.x2v(charSequenceGet(singleton, 0)) : false;
|
|
621
482
|
};
|
|
622
|
-
protoOf(Companion).
|
|
483
|
+
protoOf(Companion).w2v = function (extension) {
|
|
623
484
|
var tmp;
|
|
624
485
|
var containsArg = extension.length;
|
|
625
486
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -629,10 +490,10 @@
|
|
|
629
490
|
}
|
|
630
491
|
return tmp;
|
|
631
492
|
};
|
|
632
|
-
protoOf(Companion).
|
|
493
|
+
protoOf(Companion).r2v = function (extlang) {
|
|
633
494
|
return extlang.length === 3 ? isAlpha_0(extlang) : false;
|
|
634
495
|
};
|
|
635
|
-
protoOf(Companion).
|
|
496
|
+
protoOf(Companion).n2v = function (language) {
|
|
636
497
|
var tmp;
|
|
637
498
|
var containsArg = language.length;
|
|
638
499
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -642,30 +503,28 @@
|
|
|
642
503
|
}
|
|
643
504
|
return tmp;
|
|
644
505
|
};
|
|
645
|
-
protoOf(Companion).
|
|
506
|
+
protoOf(Companion).t2v = function (privateuse) {
|
|
646
507
|
var tokens = splitToSequence(privateuse, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
647
|
-
if (!this.
|
|
508
|
+
if (!this.z2v(tokens.h()))
|
|
648
509
|
return false;
|
|
649
510
|
if (!tokens.g())
|
|
650
511
|
return false;
|
|
651
|
-
var tmp$ret$0;
|
|
652
512
|
// Inline function 'kotlin.collections.iterator' call
|
|
653
|
-
|
|
654
|
-
var tmp0_iterator = tmp$ret$0;
|
|
513
|
+
var tmp0_iterator = tokens;
|
|
655
514
|
while (tmp0_iterator.g()) {
|
|
656
515
|
var token = tmp0_iterator.h();
|
|
657
|
-
if (!this.
|
|
516
|
+
if (!this.a2w(token))
|
|
658
517
|
return false;
|
|
659
518
|
}
|
|
660
519
|
return true;
|
|
661
520
|
};
|
|
662
|
-
protoOf(Companion).
|
|
521
|
+
protoOf(Companion).y2v = function (prefix) {
|
|
663
522
|
return equals(prefix, _Char___init__impl__6a9atx(120), true);
|
|
664
523
|
};
|
|
665
|
-
protoOf(Companion).
|
|
666
|
-
return prefix.length === 1 ? this.
|
|
524
|
+
protoOf(Companion).z2v = function (prefix) {
|
|
525
|
+
return prefix.length === 1 ? this.y2v(charSequenceGet(prefix, 0)) : false;
|
|
667
526
|
};
|
|
668
|
-
protoOf(Companion).
|
|
527
|
+
protoOf(Companion).a2w = function (privateuse) {
|
|
669
528
|
var tmp;
|
|
670
529
|
var containsArg = privateuse.length;
|
|
671
530
|
if (1 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -675,9 +534,8 @@
|
|
|
675
534
|
}
|
|
676
535
|
return tmp;
|
|
677
536
|
};
|
|
678
|
-
protoOf(Companion).
|
|
679
|
-
|
|
680
|
-
switch (tmp0_subject) {
|
|
537
|
+
protoOf(Companion).p2v = function (region) {
|
|
538
|
+
switch (region.length) {
|
|
681
539
|
case 2:
|
|
682
540
|
return isAlpha_0(region);
|
|
683
541
|
case 3:
|
|
@@ -686,15 +544,15 @@
|
|
|
686
544
|
return false;
|
|
687
545
|
}
|
|
688
546
|
};
|
|
689
|
-
protoOf(Companion).
|
|
547
|
+
protoOf(Companion).o2v = function (script) {
|
|
690
548
|
return script.length === 4 ? isAlpha_0(script) : false;
|
|
691
549
|
};
|
|
692
|
-
protoOf(Companion).
|
|
550
|
+
protoOf(Companion).q2v = function (variant) {
|
|
693
551
|
var tmp0_subject = variant.length;
|
|
694
552
|
return tmp0_subject === 4 ? ((isNumeric(charSequenceGet(variant, 0)) ? isAlphaNumeric(charSequenceGet(variant, 1)) : false) ? isAlphaNumeric(charSequenceGet(variant, 2)) : false) ? isAlphaNumeric(charSequenceGet(variant, 3)) : false : (5 <= tmp0_subject ? tmp0_subject <= 8 : false) ? isAlphaNumeric_0(variant) : false;
|
|
695
553
|
};
|
|
696
|
-
protoOf(Companion).
|
|
697
|
-
var tmp0_elvis_lhs = this.
|
|
554
|
+
protoOf(Companion).b2w = function (string) {
|
|
555
|
+
var tmp0_elvis_lhs = this.x2u_1.f2(toLowerCase_0(string));
|
|
698
556
|
var string_0 = tmp0_elvis_lhs == null ? string : tmp0_elvis_lhs;
|
|
699
557
|
var tokens = splitToSequence(string_0, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
700
558
|
var extlangs = null;
|
|
@@ -706,97 +564,84 @@
|
|
|
706
564
|
var variants = null;
|
|
707
565
|
var token;
|
|
708
566
|
token = tokens.h();
|
|
709
|
-
if (this.
|
|
710
|
-
language = this.
|
|
567
|
+
if (this.n2v(token)) {
|
|
568
|
+
language = this.e2v(token);
|
|
711
569
|
token = nextOrNull(tokens);
|
|
712
|
-
if (!(token == null) ? this.
|
|
713
|
-
var tmp$ret$0;
|
|
570
|
+
if (!(token == null) ? this.r2v(token) : false) {
|
|
714
571
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
715
|
-
|
|
716
|
-
extlangs = tmp$ret$0;
|
|
572
|
+
extlangs = ArrayList_init_$Create$();
|
|
717
573
|
do {
|
|
718
|
-
extlangs.a(ensureNotNull(this.
|
|
574
|
+
extlangs.a(ensureNotNull(this.c2v(token)));
|
|
719
575
|
token = nextOrNull(tokens);
|
|
720
576
|
}
|
|
721
|
-
while ((!(token == null) ? extlangs.i() < 3 : false) ? this.
|
|
577
|
+
while ((!(token == null) ? extlangs.i() < 3 : false) ? this.r2v(token) : false);
|
|
722
578
|
}
|
|
723
|
-
if (!(token == null) ? this.
|
|
724
|
-
script = this.
|
|
579
|
+
if (!(token == null) ? this.o2v(token) : false) {
|
|
580
|
+
script = this.j2v(token);
|
|
725
581
|
token = nextOrNull(tokens);
|
|
726
582
|
}
|
|
727
|
-
if (!(token == null) ? this.
|
|
728
|
-
region = this.
|
|
583
|
+
if (!(token == null) ? this.p2v(token) : false) {
|
|
584
|
+
region = this.i2v(token);
|
|
729
585
|
token = nextOrNull(tokens);
|
|
730
586
|
}
|
|
731
|
-
if (!(token == null) ? this.
|
|
732
|
-
var tmp$ret$1;
|
|
587
|
+
if (!(token == null) ? this.q2v(token) : false) {
|
|
733
588
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
734
|
-
|
|
735
|
-
variants = tmp$ret$1;
|
|
589
|
+
variants = ArrayList_init_$Create$();
|
|
736
590
|
do {
|
|
737
|
-
variants.a(ensureNotNull(this.
|
|
591
|
+
variants.a(ensureNotNull(this.k2v(token)));
|
|
738
592
|
token = nextOrNull(tokens);
|
|
739
593
|
}
|
|
740
|
-
while (!(token == null) ? this.
|
|
594
|
+
while (!(token == null) ? this.q2v(token) : false);
|
|
741
595
|
}
|
|
742
|
-
if (!(token == null) ? this.
|
|
743
|
-
var tmp$ret$2;
|
|
596
|
+
if (!(token == null) ? this.v2v(token) : false) {
|
|
744
597
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
745
|
-
|
|
746
|
-
extensions = tmp$ret$2;
|
|
598
|
+
extensions = ArrayList_init_$Create$();
|
|
747
599
|
do {
|
|
748
|
-
var extensionBuilder = new StringBuilder(ensureNotNull(this.
|
|
600
|
+
var extensionBuilder = new StringBuilder(ensureNotNull(this.z2u(token)));
|
|
749
601
|
token = nextOrNull(tokens);
|
|
750
|
-
if (!(token == null) ? this.
|
|
602
|
+
if (!(token == null) ? this.w2v(token) : false) {
|
|
751
603
|
do {
|
|
752
|
-
extensionBuilder.
|
|
753
|
-
extensionBuilder.
|
|
604
|
+
extensionBuilder.t5(_Char___init__impl__6a9atx(45));
|
|
605
|
+
extensionBuilder.dc(this.a2v(token));
|
|
754
606
|
token = nextOrNull(tokens);
|
|
755
607
|
}
|
|
756
|
-
while (!(token == null) ? this.
|
|
608
|
+
while (!(token == null) ? this.w2v(token) : false);
|
|
757
609
|
} else
|
|
758
610
|
return null;
|
|
759
611
|
extensions.a(extensionBuilder.toString());
|
|
760
612
|
}
|
|
761
|
-
while (!(token == null) ? this.
|
|
613
|
+
while (!(token == null) ? this.v2v(token) : false);
|
|
762
614
|
}
|
|
763
615
|
}
|
|
764
|
-
if (!(token == null) ? this.
|
|
765
|
-
var privateuseBuilder = new StringBuilder(ensureNotNull(this.
|
|
616
|
+
if (!(token == null) ? this.z2v(token) : false) {
|
|
617
|
+
var privateuseBuilder = new StringBuilder(ensureNotNull(this.g2v(token)));
|
|
766
618
|
token = nextOrNull(tokens);
|
|
767
|
-
if (!(token == null) ? this.
|
|
619
|
+
if (!(token == null) ? this.a2w(token) : false) {
|
|
768
620
|
do {
|
|
769
|
-
privateuseBuilder.
|
|
770
|
-
privateuseBuilder.
|
|
621
|
+
privateuseBuilder.t5(_Char___init__impl__6a9atx(45));
|
|
622
|
+
privateuseBuilder.dc(this.h2v(token));
|
|
771
623
|
token = nextOrNull(tokens);
|
|
772
624
|
}
|
|
773
|
-
while (!(token == null) ? this.
|
|
625
|
+
while (!(token == null) ? this.a2w(token) : false);
|
|
774
626
|
} else
|
|
775
627
|
return null;
|
|
776
628
|
privateuse = privateuseBuilder.toString();
|
|
777
629
|
}
|
|
778
630
|
if (!(token == null))
|
|
779
631
|
return null;
|
|
780
|
-
var tmp$ret$3;
|
|
781
632
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
782
|
-
var
|
|
783
|
-
var
|
|
784
|
-
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
785
|
-
var tmp = tmp$ret$3;
|
|
786
|
-
var tmp$ret$4;
|
|
633
|
+
var tmp0_elvis_lhs_0 = extensions;
|
|
634
|
+
var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
787
635
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
788
|
-
var
|
|
789
|
-
var
|
|
790
|
-
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
791
|
-
var tmp_0 = tmp$ret$4;
|
|
636
|
+
var tmp0_elvis_lhs_1 = extlangs;
|
|
637
|
+
var tmp_0 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
792
638
|
var tmp_1 = language;
|
|
793
639
|
var tmp_2 = privateuse;
|
|
794
640
|
var tmp_3 = region;
|
|
795
641
|
var tmp_4 = script;
|
|
796
642
|
var tmp$ret$5;
|
|
797
643
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
798
|
-
var
|
|
799
|
-
var tmp0_elvis_lhs_2 = tmp2_orEmpty;
|
|
644
|
+
var tmp0_elvis_lhs_2 = variants;
|
|
800
645
|
tmp$ret$5 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
801
646
|
return new LanguageTag(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp$ret$5);
|
|
802
647
|
};
|
|
@@ -808,13 +653,13 @@
|
|
|
808
653
|
}
|
|
809
654
|
function LanguageTag(extensions, extlangs, language, privateuse, region, script, variants) {
|
|
810
655
|
Companion_getInstance();
|
|
811
|
-
this.
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
656
|
+
this.c2w_1 = extensions;
|
|
657
|
+
this.d2w_1 = extlangs;
|
|
658
|
+
this.e2w_1 = language;
|
|
659
|
+
this.f2w_1 = privateuse;
|
|
660
|
+
this.g2w_1 = region;
|
|
661
|
+
this.h2w_1 = script;
|
|
662
|
+
this.i2w_1 = variants;
|
|
818
663
|
}
|
|
819
664
|
protoOf(LanguageTag).equals = function (other) {
|
|
820
665
|
var tmp;
|
|
@@ -829,37 +674,37 @@
|
|
|
829
674
|
var tmp_5;
|
|
830
675
|
var tmp_6;
|
|
831
676
|
if (other instanceof LanguageTag) {
|
|
832
|
-
tmp_6 = equals_0(this.
|
|
677
|
+
tmp_6 = equals_0(this.c2w_1, other.c2w_1);
|
|
833
678
|
} else {
|
|
834
679
|
tmp_6 = false;
|
|
835
680
|
}
|
|
836
681
|
if (tmp_6) {
|
|
837
|
-
tmp_5 = equals_0(this.
|
|
682
|
+
tmp_5 = equals_0(this.d2w_1, other.d2w_1);
|
|
838
683
|
} else {
|
|
839
684
|
tmp_5 = false;
|
|
840
685
|
}
|
|
841
686
|
if (tmp_5) {
|
|
842
|
-
tmp_4 = this.
|
|
687
|
+
tmp_4 = this.e2w_1 == other.e2w_1;
|
|
843
688
|
} else {
|
|
844
689
|
tmp_4 = false;
|
|
845
690
|
}
|
|
846
691
|
if (tmp_4) {
|
|
847
|
-
tmp_3 = this.
|
|
692
|
+
tmp_3 = this.f2w_1 == other.f2w_1;
|
|
848
693
|
} else {
|
|
849
694
|
tmp_3 = false;
|
|
850
695
|
}
|
|
851
696
|
if (tmp_3) {
|
|
852
|
-
tmp_2 = this.
|
|
697
|
+
tmp_2 = this.g2w_1 == other.g2w_1;
|
|
853
698
|
} else {
|
|
854
699
|
tmp_2 = false;
|
|
855
700
|
}
|
|
856
701
|
if (tmp_2) {
|
|
857
|
-
tmp_1 = this.
|
|
702
|
+
tmp_1 = this.h2w_1 == other.h2w_1;
|
|
858
703
|
} else {
|
|
859
704
|
tmp_1 = false;
|
|
860
705
|
}
|
|
861
706
|
if (tmp_1) {
|
|
862
|
-
tmp_0 = equals_2(this.
|
|
707
|
+
tmp_0 = equals_2(this.i2w_1, other.i2w_1, true);
|
|
863
708
|
} else {
|
|
864
709
|
tmp_0 = false;
|
|
865
710
|
}
|
|
@@ -868,161 +713,131 @@
|
|
|
868
713
|
return tmp;
|
|
869
714
|
};
|
|
870
715
|
protoOf(LanguageTag).hashCode = function () {
|
|
871
|
-
var result = hashCode(this.
|
|
872
|
-
result = imul(31, result) + hashCode(this.
|
|
716
|
+
var result = hashCode(this.c2w_1);
|
|
717
|
+
result = imul(31, result) + hashCode(this.d2w_1) | 0;
|
|
873
718
|
var tmp = imul(31, result);
|
|
874
|
-
var tmp$ret$0;
|
|
875
719
|
// Inline function 'kotlin.hashCode' call
|
|
876
|
-
var
|
|
877
|
-
var tmp0_safe_receiver = tmp0_hashCode;
|
|
720
|
+
var tmp0_safe_receiver = this.e2w_1;
|
|
878
721
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
879
|
-
|
|
880
|
-
result = tmp + tmp$ret$0 | 0;
|
|
722
|
+
result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
881
723
|
var tmp_0 = imul(31, result);
|
|
882
|
-
var tmp$ret$1;
|
|
883
724
|
// Inline function 'kotlin.hashCode' call
|
|
884
|
-
var
|
|
885
|
-
var tmp0_safe_receiver_0 = tmp1_hashCode;
|
|
725
|
+
var tmp0_safe_receiver_0 = this.f2w_1;
|
|
886
726
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
887
|
-
|
|
888
|
-
result = tmp_0 + tmp$ret$1 | 0;
|
|
727
|
+
result = tmp_0 + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
|
|
889
728
|
var tmp_1 = imul(31, result);
|
|
890
|
-
var tmp$ret$2;
|
|
891
729
|
// Inline function 'kotlin.hashCode' call
|
|
892
|
-
var
|
|
893
|
-
var tmp0_safe_receiver_1 = tmp2_hashCode;
|
|
730
|
+
var tmp0_safe_receiver_1 = this.g2w_1;
|
|
894
731
|
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
|
|
895
|
-
|
|
896
|
-
result = tmp_1 + tmp$ret$2 | 0;
|
|
732
|
+
result = tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
|
|
897
733
|
var tmp_2 = imul(31, result);
|
|
898
|
-
var tmp$ret$3;
|
|
899
734
|
// Inline function 'kotlin.hashCode' call
|
|
900
|
-
var
|
|
901
|
-
var tmp0_safe_receiver_2 = tmp3_hashCode;
|
|
735
|
+
var tmp0_safe_receiver_2 = this.h2w_1;
|
|
902
736
|
var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
|
|
903
|
-
|
|
904
|
-
result = tmp_2 + tmp$ret$3 | 0;
|
|
737
|
+
result = tmp_2 + (tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2) | 0;
|
|
905
738
|
var tmp_3 = imul(31, result);
|
|
906
|
-
var tmp$ret$8;
|
|
907
739
|
// Inline function 'kotlin.hashCode' call
|
|
908
|
-
var tmp$ret$5;
|
|
909
740
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
910
|
-
var tmp4_ifEmpty = this.
|
|
741
|
+
var tmp4_ifEmpty = this.i2w_1;
|
|
911
742
|
var tmp_4;
|
|
912
743
|
if (tmp4_ifEmpty.m()) {
|
|
913
|
-
var tmp$ret$4;
|
|
914
744
|
// Inline function 'io.fluidsonic.locale.LanguageTag.hashCode.<anonymous>' call
|
|
915
|
-
|
|
916
|
-
tmp_4 = tmp$ret$4;
|
|
745
|
+
tmp_4 = null;
|
|
917
746
|
} else {
|
|
918
747
|
tmp_4 = tmp4_ifEmpty;
|
|
919
748
|
}
|
|
920
|
-
|
|
921
|
-
var tmp0_safe_receiver_3 = tmp$ret$5;
|
|
749
|
+
var tmp0_safe_receiver_3 = tmp_4;
|
|
922
750
|
var tmp_5;
|
|
923
751
|
if (tmp0_safe_receiver_3 == null) {
|
|
924
752
|
tmp_5 = null;
|
|
925
753
|
} else {
|
|
926
|
-
var tmp$ret$7;
|
|
927
754
|
// Inline function 'kotlin.collections.map' call
|
|
928
|
-
var tmp$ret$6;
|
|
929
755
|
// Inline function 'kotlin.collections.mapTo' call
|
|
930
|
-
var
|
|
756
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_safe_receiver_3, 10));
|
|
931
757
|
var tmp0_iterator = tmp0_safe_receiver_3.f();
|
|
932
758
|
while (tmp0_iterator.g()) {
|
|
933
759
|
var item = tmp0_iterator.h();
|
|
934
|
-
|
|
760
|
+
var tmp$ret$6;
|
|
761
|
+
tmp$ret$6 = toLowerCase_0(item);
|
|
762
|
+
tmp0_mapTo.a(tmp$ret$6);
|
|
935
763
|
}
|
|
936
|
-
|
|
937
|
-
tmp$ret$7 = tmp$ret$6;
|
|
938
|
-
tmp_5 = tmp$ret$7;
|
|
764
|
+
tmp_5 = tmp0_mapTo;
|
|
939
765
|
}
|
|
940
|
-
var
|
|
941
|
-
var tmp0_safe_receiver_4 = tmp6_hashCode;
|
|
766
|
+
var tmp0_safe_receiver_4 = tmp_5;
|
|
942
767
|
var tmp1_elvis_lhs_3 = tmp0_safe_receiver_4 == null ? null : hashCode(tmp0_safe_receiver_4);
|
|
943
|
-
|
|
944
|
-
result = tmp_3 + tmp$ret$8 | 0;
|
|
768
|
+
result = tmp_3 + (tmp1_elvis_lhs_3 == null ? 0 : tmp1_elvis_lhs_3) | 0;
|
|
945
769
|
return result;
|
|
946
770
|
};
|
|
947
771
|
protoOf(LanguageTag).toString = function () {
|
|
948
|
-
var tmp$ret$2;
|
|
949
772
|
// Inline function 'kotlin.text.buildString' call
|
|
950
773
|
// Inline function 'kotlin.contracts.contract' call
|
|
951
|
-
var tmp$ret$1;
|
|
952
774
|
// Inline function 'kotlin.apply' call
|
|
953
775
|
var tmp0_apply = StringBuilder_init_$Create$();
|
|
954
776
|
// Inline function 'kotlin.contracts.contract' call
|
|
955
777
|
// Inline function 'io.fluidsonic.locale.LanguageTag.toString.<anonymous>' call
|
|
956
|
-
if (!(this.
|
|
957
|
-
tmp0_apply.
|
|
958
|
-
var tmp0_iterator = this.
|
|
778
|
+
if (!(this.e2w_1 == null)) {
|
|
779
|
+
tmp0_apply.dc(this.e2w_1);
|
|
780
|
+
var tmp0_iterator = this.d2w_1.f();
|
|
959
781
|
while (tmp0_iterator.g()) {
|
|
960
782
|
var extlang = tmp0_iterator.h();
|
|
961
783
|
Companion_getInstance();
|
|
962
|
-
tmp0_apply.
|
|
963
|
-
tmp0_apply.
|
|
784
|
+
tmp0_apply.t5(_Char___init__impl__6a9atx(45));
|
|
785
|
+
tmp0_apply.dc(extlang);
|
|
964
786
|
}
|
|
965
|
-
if (!(this.
|
|
787
|
+
if (!(this.h2w_1 == null)) {
|
|
966
788
|
Companion_getInstance();
|
|
967
|
-
tmp0_apply.
|
|
968
|
-
tmp0_apply.
|
|
789
|
+
tmp0_apply.t5(_Char___init__impl__6a9atx(45));
|
|
790
|
+
tmp0_apply.dc(this.h2w_1);
|
|
969
791
|
}
|
|
970
|
-
if (!(this.
|
|
792
|
+
if (!(this.g2w_1 == null)) {
|
|
971
793
|
Companion_getInstance();
|
|
972
|
-
tmp0_apply.
|
|
973
|
-
tmp0_apply.
|
|
794
|
+
tmp0_apply.t5(_Char___init__impl__6a9atx(45));
|
|
795
|
+
tmp0_apply.dc(this.g2w_1);
|
|
974
796
|
}
|
|
975
|
-
var tmp1_iterator = this.
|
|
797
|
+
var tmp1_iterator = this.i2w_1.f();
|
|
976
798
|
while (tmp1_iterator.g()) {
|
|
977
799
|
var variant = tmp1_iterator.h();
|
|
978
800
|
Companion_getInstance();
|
|
979
|
-
tmp0_apply.
|
|
980
|
-
tmp0_apply.
|
|
801
|
+
tmp0_apply.t5(_Char___init__impl__6a9atx(45));
|
|
802
|
+
tmp0_apply.dc(variant);
|
|
981
803
|
}
|
|
982
|
-
var tmp2_iterator = this.
|
|
804
|
+
var tmp2_iterator = this.c2w_1.f();
|
|
983
805
|
while (tmp2_iterator.g()) {
|
|
984
806
|
var extension = tmp2_iterator.h();
|
|
985
807
|
Companion_getInstance();
|
|
986
|
-
tmp0_apply.
|
|
987
|
-
tmp0_apply.
|
|
808
|
+
tmp0_apply.t5(_Char___init__impl__6a9atx(45));
|
|
809
|
+
tmp0_apply.dc(extension);
|
|
988
810
|
}
|
|
989
811
|
}
|
|
990
|
-
if (!(this.
|
|
991
|
-
var tmp$ret$0;
|
|
812
|
+
if (!(this.f2w_1 == null)) {
|
|
992
813
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
993
|
-
|
|
994
|
-
if (tmp$ret$0) {
|
|
814
|
+
if (charSequenceLength(tmp0_apply) > 0) {
|
|
995
815
|
Companion_getInstance();
|
|
996
|
-
tmp0_apply.
|
|
816
|
+
tmp0_apply.t5(_Char___init__impl__6a9atx(45));
|
|
997
817
|
}
|
|
998
|
-
tmp0_apply.
|
|
818
|
+
tmp0_apply.dc(this.f2w_1);
|
|
999
819
|
}
|
|
1000
|
-
|
|
1001
|
-
tmp$ret$2 = tmp$ret$1.toString();
|
|
1002
|
-
return tmp$ret$2;
|
|
820
|
+
return tmp0_apply.toString();
|
|
1003
821
|
};
|
|
1004
822
|
function Companion_0() {
|
|
1005
823
|
Companion_instance_0 = this;
|
|
1006
824
|
var tmp = this;
|
|
1007
825
|
var tmp_0 = Companion_getInstance();
|
|
1008
826
|
Companion_getInstance();
|
|
1009
|
-
tmp.
|
|
827
|
+
tmp.j2w_1 = new Locale(tmp_0.u2v('und'));
|
|
1010
828
|
}
|
|
1011
|
-
protoOf(Companion_0).
|
|
1012
|
-
|
|
1013
|
-
return tmp0_subject.equals(this.f2w_1.h2w_1) ? this.f2w_1 : new Locale(tag);
|
|
829
|
+
protoOf(Companion_0).k2w = function (tag) {
|
|
830
|
+
return tag.equals(this.j2w_1.l2w_1) ? this.j2w_1 : new Locale(tag);
|
|
1014
831
|
};
|
|
1015
|
-
protoOf(Companion_0).
|
|
1016
|
-
var tmp0_safe_receiver = Companion_getInstance().
|
|
832
|
+
protoOf(Companion_0).m2w = function (tag) {
|
|
833
|
+
var tmp0_safe_receiver = Companion_getInstance().b2w(tag);
|
|
1017
834
|
var tmp;
|
|
1018
835
|
if (tmp0_safe_receiver == null) {
|
|
1019
836
|
tmp = null;
|
|
1020
837
|
} else {
|
|
1021
|
-
var tmp$ret$0;
|
|
1022
838
|
// Inline function 'kotlin.let' call
|
|
1023
839
|
// Inline function 'kotlin.contracts.contract' call
|
|
1024
|
-
tmp
|
|
1025
|
-
tmp = tmp$ret$0;
|
|
840
|
+
tmp = this.k2w(tmp0_safe_receiver);
|
|
1026
841
|
}
|
|
1027
842
|
return tmp;
|
|
1028
843
|
};
|
|
@@ -1034,7 +849,7 @@
|
|
|
1034
849
|
}
|
|
1035
850
|
function Locale(languageTag) {
|
|
1036
851
|
Companion_getInstance_0();
|
|
1037
|
-
this.
|
|
852
|
+
this.l2w_1 = languageTag;
|
|
1038
853
|
}
|
|
1039
854
|
protoOf(Locale).equals = function (other) {
|
|
1040
855
|
var tmp;
|
|
@@ -1043,7 +858,7 @@
|
|
|
1043
858
|
} else {
|
|
1044
859
|
var tmp_0;
|
|
1045
860
|
if (other instanceof Locale) {
|
|
1046
|
-
tmp_0 = this.
|
|
861
|
+
tmp_0 = this.l2w_1.equals(other.l2w_1);
|
|
1047
862
|
} else {
|
|
1048
863
|
tmp_0 = false;
|
|
1049
864
|
}
|
|
@@ -1052,10 +867,10 @@
|
|
|
1052
867
|
return tmp;
|
|
1053
868
|
};
|
|
1054
869
|
protoOf(Locale).hashCode = function () {
|
|
1055
|
-
return this.
|
|
870
|
+
return this.l2w_1.hashCode();
|
|
1056
871
|
};
|
|
1057
872
|
protoOf(Locale).toString = function () {
|
|
1058
|
-
return this.
|
|
873
|
+
return this.l2w_1.toString();
|
|
1059
874
|
};
|
|
1060
875
|
function isAlphaNumeric(_this__u8e3s4) {
|
|
1061
876
|
return isAlpha(_this__u8e3s4) ? true : isNumeric(_this__u8e3s4);
|
|
@@ -1092,106 +907,93 @@
|
|
|
1092
907
|
// Inline function 'io.fluidsonic.locale.equals.<anonymous>' call
|
|
1093
908
|
var tmp1 = index;
|
|
1094
909
|
index = tmp1 + 1 | 0;
|
|
1095
|
-
var
|
|
1096
|
-
if (!equals_1(item, other.k(
|
|
910
|
+
var tmp0_anonymous = checkIndexOverflow(tmp1);
|
|
911
|
+
if (!equals_1(item, other.k(tmp0_anonymous), ignoreCase))
|
|
1097
912
|
return false;
|
|
1098
913
|
}
|
|
1099
914
|
return true;
|
|
1100
915
|
}
|
|
1101
916
|
function toLowerCase_0(_this__u8e3s4) {
|
|
1102
|
-
var tmp$ret$
|
|
917
|
+
var tmp$ret$1;
|
|
1103
918
|
$l$block: {
|
|
1104
919
|
// Inline function 'kotlin.text.all' call
|
|
1105
|
-
var indexedObject = _this__u8e3s4;
|
|
1106
920
|
var inductionVariable = 0;
|
|
1107
|
-
var last =
|
|
921
|
+
var last = _this__u8e3s4.length;
|
|
1108
922
|
while (inductionVariable < last) {
|
|
1109
|
-
var element = charSequenceGet(
|
|
923
|
+
var element = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
1110
924
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1111
925
|
if (!isLowerCase(element)) {
|
|
1112
|
-
tmp$ret$
|
|
926
|
+
tmp$ret$1 = false;
|
|
1113
927
|
break $l$block;
|
|
1114
928
|
}
|
|
1115
929
|
}
|
|
1116
|
-
tmp$ret$
|
|
930
|
+
tmp$ret$1 = true;
|
|
1117
931
|
}
|
|
1118
|
-
if (tmp$ret$
|
|
932
|
+
if (tmp$ret$1)
|
|
1119
933
|
return _this__u8e3s4;
|
|
1120
|
-
var tmp$ret$1;
|
|
1121
934
|
// Inline function 'io.fluidsonic.locale.mapCharacters' call
|
|
1122
935
|
var characters = toCharArray(_this__u8e3s4);
|
|
1123
936
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1124
937
|
var index = 0;
|
|
1125
|
-
var indexedObject_0 = characters;
|
|
1126
938
|
var inductionVariable_0 = 0;
|
|
1127
|
-
var last_0 =
|
|
939
|
+
var last_0 = characters.length;
|
|
1128
940
|
while (inductionVariable_0 < last_0) {
|
|
1129
|
-
var item =
|
|
941
|
+
var item = characters[inductionVariable_0];
|
|
1130
942
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1131
943
|
// Inline function 'io.fluidsonic.locale.mapCharacters.<anonymous>' call
|
|
1132
944
|
var tmp1 = index;
|
|
1133
945
|
index = tmp1 + 1 | 0;
|
|
1134
|
-
|
|
1135
|
-
characters[tmp0__anonymous__q1qw7t] = toLowerCase(item);
|
|
946
|
+
characters[tmp1] = toLowerCase(item);
|
|
1136
947
|
}
|
|
1137
|
-
|
|
1138
|
-
return tmp$ret$1;
|
|
948
|
+
return concatToString(characters);
|
|
1139
949
|
}
|
|
1140
950
|
function toUpperCase_0(_this__u8e3s4) {
|
|
1141
|
-
var tmp$ret$
|
|
951
|
+
var tmp$ret$1;
|
|
1142
952
|
$l$block: {
|
|
1143
953
|
// Inline function 'kotlin.text.all' call
|
|
1144
|
-
var indexedObject = _this__u8e3s4;
|
|
1145
954
|
var inductionVariable = 0;
|
|
1146
|
-
var last =
|
|
955
|
+
var last = _this__u8e3s4.length;
|
|
1147
956
|
while (inductionVariable < last) {
|
|
1148
|
-
var element = charSequenceGet(
|
|
957
|
+
var element = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
1149
958
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1150
959
|
if (!isUpperCase(element)) {
|
|
1151
|
-
tmp$ret$
|
|
960
|
+
tmp$ret$1 = false;
|
|
1152
961
|
break $l$block;
|
|
1153
962
|
}
|
|
1154
963
|
}
|
|
1155
|
-
tmp$ret$
|
|
964
|
+
tmp$ret$1 = true;
|
|
1156
965
|
}
|
|
1157
|
-
if (tmp$ret$
|
|
966
|
+
if (tmp$ret$1)
|
|
1158
967
|
return _this__u8e3s4;
|
|
1159
|
-
var tmp$ret$1;
|
|
1160
968
|
// Inline function 'io.fluidsonic.locale.mapCharacters' call
|
|
1161
969
|
var characters = toCharArray(_this__u8e3s4);
|
|
1162
970
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1163
971
|
var index = 0;
|
|
1164
|
-
var indexedObject_0 = characters;
|
|
1165
972
|
var inductionVariable_0 = 0;
|
|
1166
|
-
var last_0 =
|
|
973
|
+
var last_0 = characters.length;
|
|
1167
974
|
while (inductionVariable_0 < last_0) {
|
|
1168
|
-
var item =
|
|
975
|
+
var item = characters[inductionVariable_0];
|
|
1169
976
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1170
977
|
// Inline function 'io.fluidsonic.locale.mapCharacters.<anonymous>' call
|
|
1171
978
|
var tmp1 = index;
|
|
1172
979
|
index = tmp1 + 1 | 0;
|
|
1173
|
-
|
|
1174
|
-
characters[tmp0__anonymous__q1qw7t] = toUpperCase(item);
|
|
980
|
+
characters[tmp1] = toUpperCase(item);
|
|
1175
981
|
}
|
|
1176
|
-
|
|
1177
|
-
return tmp$ret$1;
|
|
982
|
+
return concatToString(characters);
|
|
1178
983
|
}
|
|
1179
984
|
function toUppercaseFirstLowercaseRest(_this__u8e3s4) {
|
|
1180
985
|
var needsConversion = false;
|
|
1181
986
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1182
987
|
var index = 0;
|
|
1183
|
-
var indexedObject = _this__u8e3s4;
|
|
1184
988
|
var inductionVariable = 0;
|
|
1185
|
-
var last =
|
|
989
|
+
var last = _this__u8e3s4.length;
|
|
1186
990
|
while (inductionVariable < last) {
|
|
1187
|
-
var item = charSequenceGet(
|
|
991
|
+
var item = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
1188
992
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1189
993
|
// Inline function 'io.fluidsonic.locale.toUppercaseFirstLowercaseRest.<anonymous>' call
|
|
1190
994
|
var tmp1 = index;
|
|
1191
995
|
index = tmp1 + 1 | 0;
|
|
1192
|
-
|
|
1193
|
-
var tmp0_subject = tmp0__anonymous__q1qw7t;
|
|
1194
|
-
if (tmp0_subject === 0) {
|
|
996
|
+
if (tmp1 === 0) {
|
|
1195
997
|
if (_Char___init__impl__6a9atx(97) <= item ? item <= _Char___init__impl__6a9atx(122) : false)
|
|
1196
998
|
needsConversion = true;
|
|
1197
999
|
} else if (_Char___init__impl__6a9atx(65) <= item ? item <= _Char___init__impl__6a9atx(90) : false)
|
|
@@ -1199,86 +1001,76 @@
|
|
|
1199
1001
|
}
|
|
1200
1002
|
if (!needsConversion)
|
|
1201
1003
|
return _this__u8e3s4;
|
|
1202
|
-
var tmp$ret$1;
|
|
1203
1004
|
// Inline function 'io.fluidsonic.locale.mapCharactersIndexed' call
|
|
1204
1005
|
var characters = toCharArray(_this__u8e3s4);
|
|
1205
1006
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1206
1007
|
var index_0 = 0;
|
|
1207
|
-
var indexedObject_0 = characters;
|
|
1208
1008
|
var inductionVariable_0 = 0;
|
|
1209
|
-
var last_0 =
|
|
1009
|
+
var last_0 = characters.length;
|
|
1210
1010
|
while (inductionVariable_0 < last_0) {
|
|
1211
|
-
var item_0 =
|
|
1011
|
+
var item_0 = characters[inductionVariable_0];
|
|
1212
1012
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1213
1013
|
// Inline function 'io.fluidsonic.locale.mapCharactersIndexed.<anonymous>' call
|
|
1214
1014
|
var tmp1_0 = index_0;
|
|
1215
1015
|
index_0 = tmp1_0 + 1 | 0;
|
|
1216
|
-
var tmp1__anonymous__uwfjfc = tmp1_0;
|
|
1217
|
-
var tmp$ret$0;
|
|
1218
1016
|
// Inline function 'io.fluidsonic.locale.toUppercaseFirstLowercaseRest.<anonymous>' call
|
|
1219
|
-
|
|
1220
|
-
tmp$ret$0 = tmp0_subject_0 === 0 ? toUpperCase(item_0) : toLowerCase(item_0);
|
|
1221
|
-
characters[tmp1__anonymous__uwfjfc] = tmp$ret$0;
|
|
1017
|
+
characters[tmp1_0] = tmp1_0 === 0 ? toUpperCase(item_0) : toLowerCase(item_0);
|
|
1222
1018
|
}
|
|
1223
|
-
|
|
1224
|
-
return tmp$ret$1;
|
|
1019
|
+
return concatToString(characters);
|
|
1225
1020
|
}
|
|
1226
1021
|
function isAlphaNumeric_0(_this__u8e3s4) {
|
|
1227
|
-
var tmp$ret$
|
|
1022
|
+
var tmp$ret$1;
|
|
1228
1023
|
$l$block: {
|
|
1229
1024
|
// Inline function 'kotlin.text.all' call
|
|
1230
|
-
var indexedObject = _this__u8e3s4;
|
|
1231
1025
|
var inductionVariable = 0;
|
|
1232
|
-
var last =
|
|
1026
|
+
var last = _this__u8e3s4.length;
|
|
1233
1027
|
while (inductionVariable < last) {
|
|
1234
|
-
var element = charSequenceGet(
|
|
1028
|
+
var element = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
1235
1029
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1236
1030
|
if (!isAlphaNumeric(element)) {
|
|
1237
|
-
tmp$ret$
|
|
1031
|
+
tmp$ret$1 = false;
|
|
1238
1032
|
break $l$block;
|
|
1239
1033
|
}
|
|
1240
1034
|
}
|
|
1241
|
-
tmp$ret$
|
|
1035
|
+
tmp$ret$1 = true;
|
|
1242
1036
|
}
|
|
1243
|
-
return tmp$ret$
|
|
1037
|
+
return tmp$ret$1;
|
|
1244
1038
|
}
|
|
1245
1039
|
function isAlpha_0(_this__u8e3s4) {
|
|
1246
|
-
var tmp$ret$
|
|
1040
|
+
var tmp$ret$1;
|
|
1247
1041
|
$l$block: {
|
|
1248
1042
|
// Inline function 'kotlin.text.all' call
|
|
1249
|
-
var indexedObject = _this__u8e3s4;
|
|
1250
1043
|
var inductionVariable = 0;
|
|
1251
|
-
var last =
|
|
1044
|
+
var last = _this__u8e3s4.length;
|
|
1252
1045
|
while (inductionVariable < last) {
|
|
1253
|
-
var element = charSequenceGet(
|
|
1046
|
+
var element = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
1254
1047
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1255
1048
|
if (!isAlpha(element)) {
|
|
1256
|
-
tmp$ret$
|
|
1049
|
+
tmp$ret$1 = false;
|
|
1257
1050
|
break $l$block;
|
|
1258
1051
|
}
|
|
1259
1052
|
}
|
|
1260
|
-
tmp$ret$
|
|
1053
|
+
tmp$ret$1 = true;
|
|
1261
1054
|
}
|
|
1262
|
-
return tmp$ret$
|
|
1055
|
+
return tmp$ret$1;
|
|
1263
1056
|
}
|
|
1264
1057
|
function isNumeric_0(_this__u8e3s4) {
|
|
1265
|
-
var tmp$ret$
|
|
1058
|
+
var tmp$ret$1;
|
|
1266
1059
|
$l$block: {
|
|
1267
1060
|
// Inline function 'kotlin.text.all' call
|
|
1268
|
-
var indexedObject = _this__u8e3s4;
|
|
1269
1061
|
var inductionVariable = 0;
|
|
1270
|
-
var last =
|
|
1062
|
+
var last = _this__u8e3s4.length;
|
|
1271
1063
|
while (inductionVariable < last) {
|
|
1272
|
-
var element = charSequenceGet(
|
|
1064
|
+
var element = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
1273
1065
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1274
1066
|
if (!isNumeric(element)) {
|
|
1275
|
-
tmp$ret$
|
|
1067
|
+
tmp$ret$1 = false;
|
|
1276
1068
|
break $l$block;
|
|
1277
1069
|
}
|
|
1278
1070
|
}
|
|
1279
|
-
tmp$ret$
|
|
1071
|
+
tmp$ret$1 = true;
|
|
1280
1072
|
}
|
|
1281
|
-
return tmp$ret$
|
|
1073
|
+
return tmp$ret$1;
|
|
1282
1074
|
}
|
|
1283
1075
|
//region block: exports
|
|
1284
1076
|
_.$_$ = _.$_$ || {};
|