@dhis2/expression-parser 1.1.0-beta.6 → 1.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +178 -165
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.mjs +195 -181
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.mjs.map +1 -1
- package/KotlinBigInteger-bignum-js-ir.js +2091 -2383
- package/KotlinBigInteger-bignum-js-ir.js.map +1 -1
- package/KotlinBigInteger-bignum-js-ir.mjs +2096 -2388
- package/KotlinBigInteger-bignum-js-ir.mjs.map +1 -1
- package/expression-parser.d.ts +423 -54
- package/expression-parser.js +3943 -4807
- package/expression-parser.js.map +1 -1
- package/expression-parser.mjs +3923 -4816
- package/expression-parser.mjs.map +1 -1
- package/kotlin-js.js +112 -0
- package/kotlin-js.js.map +1 -0
- package/kotlin-js.mjs +110 -0
- package/kotlin-js.mjs.map +1 -0
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +7869 -7224
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/{kotlin-kotlin-stdlib-js-ir.mjs → kotlin-kotlin-stdlib.mjs} +7872 -7227
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin-kotlinx-atomicfu-runtime.js +8 -0
- package/kotlin-kotlinx-atomicfu-runtime.js.map +1 -0
- package/kotlin-kotlinx-atomicfu-runtime.mjs +4 -0
- package/kotlin-kotlinx-atomicfu-runtime.mjs.map +1 -0
- package/kotlinx-atomicfu.js +8 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-atomicfu.mjs +4 -0
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-coroutines-core.js +8 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-coroutines-core.mjs +4 -0
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +5 -5
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.mjs +5 -5
- package/package.json +1 -1
- package/seskar-core.js +8 -0
- package/seskar-core.js.map +1 -0
- package/seskar-core.mjs +4 -0
- package/seskar-core.mjs.map +1 -0
- package/seskar-react.js +8 -0
- package/seskar-react.js.map +1 -0
- package/seskar-react.mjs +4 -0
- package/seskar-react.mjs.map +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
- package/kotlin-kotlin-stdlib-js-ir.mjs.map +0 -1
|
@@ -7,41 +7,44 @@
|
|
|
7
7
|
var LocalDateTime = $module$_js_joda_core_gcv2k.LocalDateTime;
|
|
8
8
|
var ZoneOffset = $module$_js_joda_core_gcv2k.ZoneOffset;
|
|
9
9
|
var ZoneId = $module$_js_joda_core_gcv2k.ZoneId;
|
|
10
|
-
var VOID = kotlin_kotlin.$_$.
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
13
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
14
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
15
|
-
var Long = kotlin_kotlin.$_$.
|
|
16
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
17
|
-
var toLong = kotlin_kotlin.$_$.
|
|
18
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
19
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var IllegalArgumentException_init_$
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
10
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.m5;
|
|
12
|
+
var objectCreate = kotlin_kotlin.$_$.k5;
|
|
13
|
+
var objectMeta = kotlin_kotlin.$_$.l5;
|
|
14
|
+
var setMetadataFor = kotlin_kotlin.$_$.n5;
|
|
15
|
+
var Long = kotlin_kotlin.$_$.i7;
|
|
16
|
+
var classMeta = kotlin_kotlin.$_$.o4;
|
|
17
|
+
var toLong = kotlin_kotlin.$_$.o5;
|
|
18
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
19
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.a1;
|
|
20
|
+
var Unit_instance = kotlin_kotlin.$_$.l2;
|
|
21
|
+
var abs = kotlin_kotlin.$_$.q5;
|
|
22
|
+
var padStart = kotlin_kotlin.$_$.o6;
|
|
23
|
+
var IntCompanionObject_instance = kotlin_kotlin.$_$.g2;
|
|
24
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.f5;
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.l7;
|
|
26
|
+
var ClosedRange = kotlin_kotlin.$_$.s5;
|
|
27
|
+
var isInterface = kotlin_kotlin.$_$.b5;
|
|
28
|
+
var contains = kotlin_kotlin.$_$.w5;
|
|
29
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
30
|
+
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.p;
|
|
31
|
+
var captureStack = kotlin_kotlin.$_$.k4;
|
|
32
|
+
var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.o;
|
|
33
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.h7;
|
|
34
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.w;
|
|
35
|
+
var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.u;
|
|
36
|
+
var RuntimeException = kotlin_kotlin.$_$.k7;
|
|
37
|
+
var Comparable = kotlin_kotlin.$_$.e7;
|
|
38
|
+
var equals = kotlin_kotlin.$_$.r4;
|
|
39
|
+
var numberToInt = kotlin_kotlin.$_$.i5;
|
|
37
40
|
//endregion
|
|
38
41
|
//region block: pre-declaration
|
|
39
42
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
40
43
|
setMetadataFor(DateTimePeriod, 'DateTimePeriod', classMeta);
|
|
41
|
-
setMetadataFor(DatePeriod, 'DatePeriod', classMeta, DateTimePeriod);
|
|
44
|
+
setMetadataFor(DatePeriod, 'DatePeriod', classMeta, DateTimePeriod, VOID, DatePeriod_init_$Create$);
|
|
42
45
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
43
|
-
setMetadataFor(DateTimeFormatException, 'DateTimeFormatException', classMeta, IllegalArgumentException);
|
|
44
|
-
setMetadataFor(DateTimeArithmeticException, 'DateTimeArithmeticException', classMeta, RuntimeException);
|
|
46
|
+
setMetadataFor(DateTimeFormatException, 'DateTimeFormatException', classMeta, IllegalArgumentException, VOID, DateTimeFormatException_init_$Create$);
|
|
47
|
+
setMetadataFor(DateTimeArithmeticException, 'DateTimeArithmeticException', classMeta, RuntimeException, VOID, DateTimeArithmeticException_init_$Create$);
|
|
45
48
|
setMetadataFor(Instant, 'Instant', classMeta, VOID, [Comparable]);
|
|
46
49
|
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
47
50
|
setMetadataFor(LocalDate_0, 'LocalDate', classMeta, VOID, [Comparable]);
|
|
@@ -65,193 +68,204 @@
|
|
|
65
68
|
return DatePeriod_init_$Init$(years, months, days, objectCreate(protoOf(DatePeriod)));
|
|
66
69
|
}
|
|
67
70
|
function Companion() {
|
|
68
|
-
Companion_instance = this;
|
|
69
71
|
}
|
|
70
72
|
var Companion_instance;
|
|
71
73
|
function Companion_getInstance() {
|
|
72
|
-
if (Companion_instance == null)
|
|
73
|
-
new Companion();
|
|
74
74
|
return Companion_instance;
|
|
75
75
|
}
|
|
76
76
|
function DatePeriod(totalMonths, days) {
|
|
77
|
-
Companion_getInstance();
|
|
78
77
|
DateTimePeriod.call(this);
|
|
79
|
-
this.
|
|
80
|
-
this.
|
|
78
|
+
this.fg_1 = totalMonths;
|
|
79
|
+
this.gg_1 = days;
|
|
81
80
|
}
|
|
82
|
-
protoOf(DatePeriod).
|
|
83
|
-
return this.
|
|
81
|
+
protoOf(DatePeriod).hg = function () {
|
|
82
|
+
return this.fg_1;
|
|
84
83
|
};
|
|
85
|
-
protoOf(DatePeriod).
|
|
86
|
-
return this.
|
|
84
|
+
protoOf(DatePeriod).ig = function () {
|
|
85
|
+
return this.gg_1;
|
|
87
86
|
};
|
|
88
|
-
protoOf(DatePeriod).
|
|
87
|
+
protoOf(DatePeriod).jg = function () {
|
|
89
88
|
return 0;
|
|
90
89
|
};
|
|
91
|
-
protoOf(DatePeriod).
|
|
90
|
+
protoOf(DatePeriod).kg = function () {
|
|
92
91
|
return 0;
|
|
93
92
|
};
|
|
94
|
-
protoOf(DatePeriod).
|
|
93
|
+
protoOf(DatePeriod).lg = function () {
|
|
95
94
|
return 0;
|
|
96
95
|
};
|
|
97
|
-
protoOf(DatePeriod).
|
|
96
|
+
protoOf(DatePeriod).mg = function () {
|
|
98
97
|
return 0;
|
|
99
98
|
};
|
|
100
|
-
protoOf(DatePeriod).
|
|
99
|
+
protoOf(DatePeriod).ng = function () {
|
|
101
100
|
return new Long(0, 0);
|
|
102
101
|
};
|
|
103
102
|
function allNonpositive($this) {
|
|
104
|
-
return (($this.
|
|
103
|
+
return (($this.hg() <= 0 ? $this.ig() <= 0 : false) ? $this.ng().m5(new Long(0, 0)) <= 0 : false) ? !(($this.hg() | $this.ig()) === 0) ? true : !$this.ng().equals(new Long(0, 0)) : false;
|
|
105
104
|
}
|
|
106
105
|
function Companion_0() {
|
|
107
|
-
Companion_instance_0 = this;
|
|
108
106
|
}
|
|
109
107
|
var Companion_instance_0;
|
|
110
108
|
function Companion_getInstance_0() {
|
|
111
|
-
if (Companion_instance_0 == null)
|
|
112
|
-
new Companion_0();
|
|
113
109
|
return Companion_instance_0;
|
|
114
110
|
}
|
|
115
111
|
function DateTimePeriod() {
|
|
116
|
-
Companion_getInstance_0();
|
|
117
112
|
}
|
|
118
|
-
protoOf(DateTimePeriod).
|
|
119
|
-
return this.
|
|
113
|
+
protoOf(DateTimePeriod).og = function () {
|
|
114
|
+
return this.hg() / 12 | 0;
|
|
120
115
|
};
|
|
121
|
-
protoOf(DateTimePeriod).
|
|
122
|
-
return this.
|
|
116
|
+
protoOf(DateTimePeriod).pg = function () {
|
|
117
|
+
return this.hg() % 12 | 0;
|
|
123
118
|
};
|
|
124
|
-
protoOf(DateTimePeriod).
|
|
125
|
-
return this.
|
|
119
|
+
protoOf(DateTimePeriod).jg = function () {
|
|
120
|
+
return this.ng().p9(new Long(817405952, 838)).i8();
|
|
126
121
|
};
|
|
127
|
-
protoOf(DateTimePeriod).
|
|
128
|
-
return this.
|
|
122
|
+
protoOf(DateTimePeriod).kg = function () {
|
|
123
|
+
return this.ng().q9(new Long(817405952, 838)).p9(new Long(-129542144, 13)).i8();
|
|
129
124
|
};
|
|
130
|
-
protoOf(DateTimePeriod).
|
|
125
|
+
protoOf(DateTimePeriod).lg = function () {
|
|
131
126
|
// Inline function 'kotlin.Long.div' call
|
|
132
|
-
var
|
|
133
|
-
var
|
|
134
|
-
return
|
|
127
|
+
var this_0 = this.ng().q9(new Long(-129542144, 13));
|
|
128
|
+
var other = get_NANOS_PER_ONE();
|
|
129
|
+
return this_0.p9(toLong(other)).i8();
|
|
135
130
|
};
|
|
136
|
-
protoOf(DateTimePeriod).
|
|
131
|
+
protoOf(DateTimePeriod).mg = function () {
|
|
137
132
|
// Inline function 'kotlin.Long.rem' call
|
|
138
|
-
var
|
|
139
|
-
var
|
|
140
|
-
return
|
|
133
|
+
var this_0 = this.ng();
|
|
134
|
+
var other = get_NANOS_PER_ONE();
|
|
135
|
+
return this_0.q9(toLong(other)).i8();
|
|
141
136
|
};
|
|
142
137
|
protoOf(DateTimePeriod).toString = function () {
|
|
143
138
|
// Inline function 'kotlin.text.buildString' call
|
|
144
139
|
// Inline function 'kotlin.contracts.contract' call
|
|
145
140
|
// Inline function 'kotlin.apply' call
|
|
146
|
-
var
|
|
141
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
147
142
|
// Inline function 'kotlin.contracts.contract' call
|
|
148
143
|
// Inline function 'kotlinx.datetime.DateTimePeriod.toString.<anonymous>' call
|
|
149
144
|
var tmp;
|
|
150
145
|
if (allNonpositive(this)) {
|
|
151
|
-
|
|
146
|
+
this_0.r4(_Char___init__impl__6a9atx(45));
|
|
152
147
|
tmp = -1;
|
|
153
148
|
} else {
|
|
154
149
|
tmp = 1;
|
|
155
150
|
}
|
|
156
151
|
var sign = tmp;
|
|
157
|
-
|
|
158
|
-
if (!(this.
|
|
159
|
-
|
|
152
|
+
this_0.r4(_Char___init__impl__6a9atx(80));
|
|
153
|
+
if (!(this.og() === 0)) {
|
|
154
|
+
this_0.p4(imul(this.og(), sign)).r4(_Char___init__impl__6a9atx(89));
|
|
160
155
|
}
|
|
161
|
-
if (!(this.
|
|
162
|
-
|
|
156
|
+
if (!(this.pg() === 0)) {
|
|
157
|
+
this_0.p4(imul(this.pg(), sign)).r4(_Char___init__impl__6a9atx(77));
|
|
163
158
|
}
|
|
164
|
-
if (!(this.
|
|
165
|
-
|
|
159
|
+
if (!(this.ig() === 0)) {
|
|
160
|
+
this_0.p4(imul(this.ig(), sign)).r4(_Char___init__impl__6a9atx(68));
|
|
166
161
|
}
|
|
167
162
|
var t = 'T';
|
|
168
|
-
if (!(this.
|
|
163
|
+
if (!(this.jg() === 0)) {
|
|
169
164
|
// Inline function 'kotlin.also' call
|
|
170
|
-
|
|
165
|
+
this_0.q4(t).p4(imul(this.jg(), sign)).r4(_Char___init__impl__6a9atx(72));
|
|
171
166
|
// Inline function 'kotlin.contracts.contract' call
|
|
172
167
|
// Inline function 'kotlinx.datetime.DateTimePeriod.toString.<anonymous>.<anonymous>' call
|
|
173
168
|
t = '';
|
|
174
169
|
}
|
|
175
|
-
if (!(this.
|
|
170
|
+
if (!(this.kg() === 0)) {
|
|
176
171
|
// Inline function 'kotlin.also' call
|
|
177
|
-
|
|
172
|
+
this_0.q4(t).p4(imul(this.kg(), sign)).r4(_Char___init__impl__6a9atx(77));
|
|
178
173
|
// Inline function 'kotlin.contracts.contract' call
|
|
179
174
|
// Inline function 'kotlinx.datetime.DateTimePeriod.toString.<anonymous>.<anonymous>' call
|
|
180
175
|
t = '';
|
|
181
176
|
}
|
|
182
|
-
if (!((this.
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if (!(this.
|
|
186
|
-
var tmp_0 =
|
|
187
|
-
var tmp$ret$2;
|
|
177
|
+
if (!((this.lg() | this.mg()) === 0)) {
|
|
178
|
+
this_0.q4(t);
|
|
179
|
+
this_0.p4(!(this.lg() === 0) ? imul(this.lg(), sign) : imul(this.mg(), sign) < 0 ? '-0' : '0');
|
|
180
|
+
if (!(this.mg() === 0)) {
|
|
181
|
+
var tmp_0 = this_0.r4(_Char___init__impl__6a9atx(46));
|
|
188
182
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
189
|
-
var
|
|
190
|
-
tmp$ret$2 = abs(
|
|
191
|
-
tmp_0.
|
|
183
|
+
var this_1 = this.mg();
|
|
184
|
+
var tmp$ret$2 = abs(this_1);
|
|
185
|
+
tmp_0.q4(padStart(tmp$ret$2.toString(), 9, _Char___init__impl__6a9atx(48)));
|
|
192
186
|
}
|
|
193
|
-
|
|
187
|
+
this_0.r4(_Char___init__impl__6a9atx(83));
|
|
194
188
|
}
|
|
195
|
-
if (
|
|
196
|
-
|
|
189
|
+
if (this_0.a() === 1) {
|
|
190
|
+
this_0.q4('0D');
|
|
197
191
|
}
|
|
198
|
-
return
|
|
192
|
+
return this_0.toString();
|
|
199
193
|
};
|
|
200
194
|
protoOf(DateTimePeriod).equals = function (other) {
|
|
201
195
|
if (this === other)
|
|
202
196
|
return true;
|
|
203
197
|
if (!(other instanceof DateTimePeriod))
|
|
204
198
|
return false;
|
|
205
|
-
if (!(this.
|
|
199
|
+
if (!(this.hg() === other.hg()))
|
|
206
200
|
return false;
|
|
207
|
-
if (!(this.
|
|
201
|
+
if (!(this.ig() === other.ig()))
|
|
208
202
|
return false;
|
|
209
|
-
if (!this.
|
|
203
|
+
if (!this.ng().equals(other.ng()))
|
|
210
204
|
return false;
|
|
211
205
|
return true;
|
|
212
206
|
};
|
|
213
207
|
protoOf(DateTimePeriod).hashCode = function () {
|
|
214
|
-
var result = this.
|
|
215
|
-
result = imul(31, result) + this.
|
|
216
|
-
result = imul(31, result) + this.
|
|
208
|
+
var result = this.hg();
|
|
209
|
+
result = imul(31, result) + this.ig() | 0;
|
|
210
|
+
result = imul(31, result) + this.ng().hashCode() | 0;
|
|
217
211
|
return result;
|
|
218
212
|
};
|
|
219
213
|
function totalMonths(years, months) {
|
|
220
214
|
// Inline function 'kotlin.Long.times' call
|
|
221
|
-
var totalMonths = toLong(years).
|
|
215
|
+
var totalMonths = toLong(years).o9(toLong(12)).m9(toLong(months));
|
|
222
216
|
var tmp;
|
|
223
217
|
// Inline function 'kotlin.ranges.contains' call
|
|
224
|
-
var
|
|
225
|
-
if (contains(isInterface(
|
|
226
|
-
tmp = totalMonths.
|
|
218
|
+
var this_0 = numberRangeToNumber(IntCompanionObject_instance.MIN_VALUE, IntCompanionObject_instance.MAX_VALUE);
|
|
219
|
+
if (contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), totalMonths)) {
|
|
220
|
+
tmp = totalMonths.i8();
|
|
227
221
|
} else {
|
|
228
222
|
throw IllegalArgumentException_init_$Create$('The total number of months in ' + years + ' years and ' + months + ' months overflows an Int');
|
|
229
223
|
}
|
|
230
224
|
return tmp;
|
|
231
225
|
}
|
|
232
|
-
function DateTimeFormatException_init_$Init$(
|
|
233
|
-
IllegalArgumentException_init_$Init$(
|
|
226
|
+
function DateTimeFormatException_init_$Init$($this) {
|
|
227
|
+
IllegalArgumentException_init_$Init$($this);
|
|
234
228
|
DateTimeFormatException.call($this);
|
|
235
229
|
return $this;
|
|
236
230
|
}
|
|
237
|
-
function DateTimeFormatException_init_$Create$(
|
|
238
|
-
var tmp = DateTimeFormatException_init_$Init$(
|
|
231
|
+
function DateTimeFormatException_init_$Create$() {
|
|
232
|
+
var tmp = DateTimeFormatException_init_$Init$(objectCreate(protoOf(DateTimeFormatException)));
|
|
239
233
|
captureStack(tmp, DateTimeFormatException_init_$Create$);
|
|
240
234
|
return tmp;
|
|
241
235
|
}
|
|
236
|
+
function DateTimeFormatException_init_$Init$_0(cause, $this) {
|
|
237
|
+
IllegalArgumentException_init_$Init$_0(cause, $this);
|
|
238
|
+
DateTimeFormatException.call($this);
|
|
239
|
+
return $this;
|
|
240
|
+
}
|
|
241
|
+
function DateTimeFormatException_init_$Create$_0(cause) {
|
|
242
|
+
var tmp = DateTimeFormatException_init_$Init$_0(cause, objectCreate(protoOf(DateTimeFormatException)));
|
|
243
|
+
captureStack(tmp, DateTimeFormatException_init_$Create$_0);
|
|
244
|
+
return tmp;
|
|
245
|
+
}
|
|
242
246
|
function DateTimeFormatException() {
|
|
243
247
|
captureStack(this, DateTimeFormatException);
|
|
244
248
|
}
|
|
245
|
-
function DateTimeArithmeticException_init_$Init$(
|
|
246
|
-
RuntimeException_init_$Init$(
|
|
249
|
+
function DateTimeArithmeticException_init_$Init$($this) {
|
|
250
|
+
RuntimeException_init_$Init$($this);
|
|
247
251
|
DateTimeArithmeticException.call($this);
|
|
248
252
|
return $this;
|
|
249
253
|
}
|
|
250
|
-
function DateTimeArithmeticException_init_$Create$(
|
|
251
|
-
var tmp = DateTimeArithmeticException_init_$Init$(
|
|
254
|
+
function DateTimeArithmeticException_init_$Create$() {
|
|
255
|
+
var tmp = DateTimeArithmeticException_init_$Init$(objectCreate(protoOf(DateTimeArithmeticException)));
|
|
252
256
|
captureStack(tmp, DateTimeArithmeticException_init_$Create$);
|
|
253
257
|
return tmp;
|
|
254
258
|
}
|
|
259
|
+
function DateTimeArithmeticException_init_$Init$_0(cause, $this) {
|
|
260
|
+
RuntimeException_init_$Init$_0(cause, $this);
|
|
261
|
+
DateTimeArithmeticException.call($this);
|
|
262
|
+
return $this;
|
|
263
|
+
}
|
|
264
|
+
function DateTimeArithmeticException_init_$Create$_0(cause) {
|
|
265
|
+
var tmp = DateTimeArithmeticException_init_$Init$_0(cause, objectCreate(protoOf(DateTimeArithmeticException)));
|
|
266
|
+
captureStack(tmp, DateTimeArithmeticException_init_$Create$_0);
|
|
267
|
+
return tmp;
|
|
268
|
+
}
|
|
255
269
|
function DateTimeArithmeticException() {
|
|
256
270
|
captureStack(this, DateTimeArithmeticException);
|
|
257
271
|
}
|
|
@@ -278,22 +292,22 @@
|
|
|
278
292
|
}
|
|
279
293
|
function Companion_1() {
|
|
280
294
|
Companion_instance_1 = this;
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
295
|
+
this.qg_1 = new LocalDate_0(LocalDate.MIN);
|
|
296
|
+
this.rg_1 = new LocalDate_0(LocalDate.MAX);
|
|
283
297
|
}
|
|
284
|
-
protoOf(Companion_1).
|
|
298
|
+
protoOf(Companion_1).sg = function (isoString) {
|
|
285
299
|
var tmp;
|
|
286
300
|
try {
|
|
287
301
|
// Inline function 'kotlin.let' call
|
|
288
|
-
var
|
|
302
|
+
var this_0 = LocalDate.parse(isoString);
|
|
289
303
|
// Inline function 'kotlin.contracts.contract' call
|
|
290
|
-
tmp = new LocalDate_0(
|
|
304
|
+
tmp = new LocalDate_0(this_0);
|
|
291
305
|
} catch ($p) {
|
|
292
306
|
var tmp_0;
|
|
293
307
|
if ($p instanceof Error) {
|
|
294
308
|
var e = $p;
|
|
295
309
|
if (isJodaDateTimeParseException(e))
|
|
296
|
-
throw DateTimeFormatException_init_$Create$(e);
|
|
310
|
+
throw DateTimeFormatException_init_$Create$_0(e);
|
|
297
311
|
throw e;
|
|
298
312
|
} else {
|
|
299
313
|
throw $p;
|
|
@@ -309,7 +323,7 @@
|
|
|
309
323
|
}
|
|
310
324
|
function LocalDate_0(value) {
|
|
311
325
|
Companion_getInstance_1();
|
|
312
|
-
this.
|
|
326
|
+
this.tg_1 = value;
|
|
313
327
|
}
|
|
314
328
|
protoOf(LocalDate_0).equals = function (other) {
|
|
315
329
|
var tmp;
|
|
@@ -318,7 +332,7 @@
|
|
|
318
332
|
} else {
|
|
319
333
|
var tmp_0;
|
|
320
334
|
if (other instanceof LocalDate_0) {
|
|
321
|
-
tmp_0 = equals(this.
|
|
335
|
+
tmp_0 = equals(this.tg_1, other.tg_1);
|
|
322
336
|
} else {
|
|
323
337
|
tmp_0 = false;
|
|
324
338
|
}
|
|
@@ -327,16 +341,16 @@
|
|
|
327
341
|
return tmp;
|
|
328
342
|
};
|
|
329
343
|
protoOf(LocalDate_0).hashCode = function () {
|
|
330
|
-
return numberToInt(this.
|
|
344
|
+
return numberToInt(this.tg_1.hashCode());
|
|
331
345
|
};
|
|
332
346
|
protoOf(LocalDate_0).toString = function () {
|
|
333
|
-
return this.
|
|
347
|
+
return this.tg_1.toString();
|
|
334
348
|
};
|
|
335
|
-
protoOf(LocalDate_0).
|
|
336
|
-
return numberToInt(this.
|
|
349
|
+
protoOf(LocalDate_0).ug = function (other) {
|
|
350
|
+
return numberToInt(this.tg_1.compareTo(other.tg_1));
|
|
337
351
|
};
|
|
338
|
-
protoOf(LocalDate_0).
|
|
339
|
-
return this.
|
|
352
|
+
protoOf(LocalDate_0).d = function (other) {
|
|
353
|
+
return this.ug(other instanceof LocalDate_0 ? other : THROW_CCE());
|
|
340
354
|
};
|
|
341
355
|
function plus(_this__u8e3s4, period) {
|
|
342
356
|
var tmp;
|
|
@@ -347,21 +361,21 @@
|
|
|
347
361
|
// Inline function 'kotlinx.datetime.plus.<anonymous>' call
|
|
348
362
|
// Inline function 'kotlin.run' call
|
|
349
363
|
// Inline function 'kotlin.run' call
|
|
350
|
-
var tmp0_run = _this__u8e3s4.re_1;
|
|
351
364
|
// Inline function 'kotlin.contracts.contract' call
|
|
352
365
|
// Inline function 'kotlinx.datetime.plus.<anonymous>.<anonymous>' call
|
|
353
|
-
var
|
|
366
|
+
var $this$run = _this__u8e3s4.tg_1;
|
|
354
367
|
// Inline function 'kotlin.contracts.contract' call
|
|
355
368
|
// Inline function 'kotlinx.datetime.plus.<anonymous>.<anonymous>' call
|
|
356
|
-
var
|
|
369
|
+
var $this$run_0 = !(period.fg_1 === 0) ? $this$run.plusMonths(period.fg_1) : $this$run;
|
|
370
|
+
var this_0 = !(period.gg_1 === 0) ? $this$run_0.plusDays(period.gg_1) : $this$run_0;
|
|
357
371
|
// Inline function 'kotlin.contracts.contract' call
|
|
358
|
-
tmp = new LocalDate_0(
|
|
372
|
+
tmp = new LocalDate_0(this_0);
|
|
359
373
|
} catch ($p) {
|
|
360
374
|
var tmp_0;
|
|
361
375
|
if ($p instanceof Error) {
|
|
362
376
|
var e = $p;
|
|
363
377
|
if (isJodaDateTimeException(e) ? true : isJodaArithmeticException(e))
|
|
364
|
-
throw DateTimeArithmeticException_init_$Create$(e);
|
|
378
|
+
throw DateTimeArithmeticException_init_$Create$_0(e);
|
|
365
379
|
throw e;
|
|
366
380
|
} else {
|
|
367
381
|
throw $p;
|
|
@@ -370,18 +384,18 @@
|
|
|
370
384
|
return tmp;
|
|
371
385
|
}
|
|
372
386
|
function daysUntil(_this__u8e3s4, other) {
|
|
373
|
-
return numberToInt(_this__u8e3s4.
|
|
387
|
+
return numberToInt(_this__u8e3s4.tg_1.until(other.tg_1, ChronoUnit.DAYS));
|
|
374
388
|
}
|
|
375
389
|
function monthsUntil(_this__u8e3s4, other) {
|
|
376
|
-
return numberToInt(_this__u8e3s4.
|
|
390
|
+
return numberToInt(_this__u8e3s4.tg_1.until(other.tg_1, ChronoUnit.MONTHS));
|
|
377
391
|
}
|
|
378
392
|
function yearsUntil(_this__u8e3s4, other) {
|
|
379
|
-
return numberToInt(_this__u8e3s4.
|
|
393
|
+
return numberToInt(_this__u8e3s4.tg_1.until(other.tg_1, ChronoUnit.YEARS));
|
|
380
394
|
}
|
|
381
395
|
function Companion_2() {
|
|
382
396
|
Companion_instance_2 = this;
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
397
|
+
this.vg_1 = new LocalDateTime_0(LocalDateTime.MIN);
|
|
398
|
+
this.wg_1 = new LocalDateTime_0(LocalDateTime.MAX);
|
|
385
399
|
}
|
|
386
400
|
var Companion_instance_2;
|
|
387
401
|
function Companion_getInstance_2() {
|
|
@@ -391,10 +405,10 @@
|
|
|
391
405
|
}
|
|
392
406
|
function LocalDateTime_0(value) {
|
|
393
407
|
Companion_getInstance_2();
|
|
394
|
-
this.
|
|
408
|
+
this.xg_1 = value;
|
|
395
409
|
}
|
|
396
|
-
protoOf(LocalDateTime_0).
|
|
397
|
-
return new LocalDate_0(this.
|
|
410
|
+
protoOf(LocalDateTime_0).yg = function () {
|
|
411
|
+
return new LocalDate_0(this.xg_1.toLocalDate());
|
|
398
412
|
};
|
|
399
413
|
protoOf(LocalDateTime_0).equals = function (other) {
|
|
400
414
|
var tmp;
|
|
@@ -403,7 +417,7 @@
|
|
|
403
417
|
} else {
|
|
404
418
|
var tmp_0;
|
|
405
419
|
if (other instanceof LocalDateTime_0) {
|
|
406
|
-
tmp_0 = equals(this.
|
|
420
|
+
tmp_0 = equals(this.xg_1, other.xg_1);
|
|
407
421
|
} else {
|
|
408
422
|
tmp_0 = false;
|
|
409
423
|
}
|
|
@@ -412,30 +426,30 @@
|
|
|
412
426
|
return tmp;
|
|
413
427
|
};
|
|
414
428
|
protoOf(LocalDateTime_0).hashCode = function () {
|
|
415
|
-
return numberToInt(this.
|
|
429
|
+
return numberToInt(this.xg_1.hashCode());
|
|
416
430
|
};
|
|
417
431
|
protoOf(LocalDateTime_0).toString = function () {
|
|
418
|
-
return this.
|
|
432
|
+
return this.xg_1.toString();
|
|
419
433
|
};
|
|
420
|
-
protoOf(LocalDateTime_0).
|
|
421
|
-
return numberToInt(this.
|
|
434
|
+
protoOf(LocalDateTime_0).zg = function (other) {
|
|
435
|
+
return numberToInt(this.xg_1.compareTo(other.xg_1));
|
|
422
436
|
};
|
|
423
|
-
protoOf(LocalDateTime_0).
|
|
424
|
-
return this.
|
|
437
|
+
protoOf(LocalDateTime_0).d = function (other) {
|
|
438
|
+
return this.zg(other instanceof LocalDateTime_0 ? other : THROW_CCE());
|
|
425
439
|
};
|
|
426
440
|
function toLocalDateTime(_this__u8e3s4, timeZone) {
|
|
427
441
|
var tmp;
|
|
428
442
|
try {
|
|
429
443
|
// Inline function 'kotlin.let' call
|
|
430
|
-
var
|
|
444
|
+
var this_0 = LocalDateTime.ofInstant(_this__u8e3s4.ah_1, timeZone.bh_1);
|
|
431
445
|
// Inline function 'kotlin.contracts.contract' call
|
|
432
|
-
tmp = new LocalDateTime_0(
|
|
446
|
+
tmp = new LocalDateTime_0(this_0);
|
|
433
447
|
} catch ($p) {
|
|
434
448
|
var tmp_0;
|
|
435
449
|
if ($p instanceof Error) {
|
|
436
450
|
var e = $p;
|
|
437
451
|
if (isJodaDateTimeException(e))
|
|
438
|
-
throw DateTimeArithmeticException_init_$Create$(e);
|
|
452
|
+
throw DateTimeArithmeticException_init_$Create$_0(e);
|
|
439
453
|
throw e;
|
|
440
454
|
} else {
|
|
441
455
|
throw $p;
|
|
@@ -459,9 +473,9 @@
|
|
|
459
473
|
}
|
|
460
474
|
function Companion_3() {
|
|
461
475
|
Companion_instance_3 = this;
|
|
462
|
-
this.
|
|
476
|
+
this.ch_1 = asTimeZone(new UtcOffset(ZoneOffset.UTC));
|
|
463
477
|
}
|
|
464
|
-
protoOf(Companion_3).
|
|
478
|
+
protoOf(Companion_3).dh = function () {
|
|
465
479
|
return ofZone(this, ZoneId.systemDefault());
|
|
466
480
|
};
|
|
467
481
|
var Companion_instance_3;
|
|
@@ -472,7 +486,7 @@
|
|
|
472
486
|
}
|
|
473
487
|
function TimeZone(zoneId) {
|
|
474
488
|
Companion_getInstance_3();
|
|
475
|
-
this.
|
|
489
|
+
this.bh_1 = zoneId;
|
|
476
490
|
}
|
|
477
491
|
protoOf(TimeZone).equals = function (other) {
|
|
478
492
|
var tmp;
|
|
@@ -481,7 +495,7 @@
|
|
|
481
495
|
} else {
|
|
482
496
|
var tmp_0;
|
|
483
497
|
if (other instanceof TimeZone) {
|
|
484
|
-
tmp_0 = equals(this.
|
|
498
|
+
tmp_0 = equals(this.bh_1, other.bh_1);
|
|
485
499
|
} else {
|
|
486
500
|
tmp_0 = false;
|
|
487
501
|
}
|
|
@@ -490,35 +504,31 @@
|
|
|
490
504
|
return tmp;
|
|
491
505
|
};
|
|
492
506
|
protoOf(TimeZone).hashCode = function () {
|
|
493
|
-
return numberToInt(this.
|
|
507
|
+
return numberToInt(this.bh_1.hashCode());
|
|
494
508
|
};
|
|
495
509
|
protoOf(TimeZone).toString = function () {
|
|
496
|
-
return this.
|
|
510
|
+
return this.bh_1.toString();
|
|
497
511
|
};
|
|
498
512
|
function FixedOffsetTimeZone_init_$Init$(offset, $this) {
|
|
499
|
-
FixedOffsetTimeZone.call($this, offset, offset.
|
|
513
|
+
FixedOffsetTimeZone.call($this, offset, offset.eh_1);
|
|
500
514
|
return $this;
|
|
501
515
|
}
|
|
502
516
|
function FixedOffsetTimeZone_init_$Create$(offset) {
|
|
503
517
|
return FixedOffsetTimeZone_init_$Init$(offset, objectCreate(protoOf(FixedOffsetTimeZone)));
|
|
504
518
|
}
|
|
505
519
|
function Companion_4() {
|
|
506
|
-
Companion_instance_4 = this;
|
|
507
520
|
}
|
|
508
521
|
var Companion_instance_4;
|
|
509
522
|
function Companion_getInstance_4() {
|
|
510
|
-
if (Companion_instance_4 == null)
|
|
511
|
-
new Companion_4();
|
|
512
523
|
return Companion_instance_4;
|
|
513
524
|
}
|
|
514
525
|
function FixedOffsetTimeZone(offset, zoneId) {
|
|
515
|
-
Companion_getInstance_4();
|
|
516
526
|
TimeZone.call(this, zoneId);
|
|
517
|
-
this.
|
|
527
|
+
this.gh_1 = offset;
|
|
518
528
|
}
|
|
519
529
|
function Companion_5() {
|
|
520
530
|
Companion_instance_5 = this;
|
|
521
|
-
this.
|
|
531
|
+
this.hh_1 = new UtcOffset(ZoneOffset.UTC);
|
|
522
532
|
}
|
|
523
533
|
var Companion_instance_5;
|
|
524
534
|
function Companion_getInstance_5() {
|
|
@@ -528,25 +538,28 @@
|
|
|
528
538
|
}
|
|
529
539
|
function UtcOffset(zoneOffset) {
|
|
530
540
|
Companion_getInstance_5();
|
|
531
|
-
this.
|
|
541
|
+
this.eh_1 = zoneOffset;
|
|
532
542
|
}
|
|
533
543
|
protoOf(UtcOffset).hashCode = function () {
|
|
534
|
-
return numberToInt(this.
|
|
544
|
+
return numberToInt(this.eh_1.hashCode());
|
|
535
545
|
};
|
|
536
546
|
protoOf(UtcOffset).equals = function (other) {
|
|
537
547
|
var tmp;
|
|
538
548
|
if (other instanceof UtcOffset) {
|
|
539
|
-
tmp = equals(this.
|
|
549
|
+
tmp = equals(this.eh_1, other.eh_1);
|
|
540
550
|
} else {
|
|
541
551
|
tmp = false;
|
|
542
552
|
}
|
|
543
553
|
return tmp;
|
|
544
554
|
};
|
|
545
555
|
protoOf(UtcOffset).toString = function () {
|
|
546
|
-
return this.
|
|
556
|
+
return this.eh_1.toString();
|
|
547
557
|
};
|
|
548
558
|
//region block: init
|
|
559
|
+
Companion_instance = new Companion();
|
|
560
|
+
Companion_instance_0 = new Companion_0();
|
|
549
561
|
NANOS_PER_ONE = 1000000000;
|
|
562
|
+
Companion_instance_4 = new Companion_4();
|
|
550
563
|
//endregion
|
|
551
564
|
//region block: exports
|
|
552
565
|
_.$_$ = _.$_$ || {};
|
|
@@ -562,6 +575,6 @@
|
|
|
562
575
|
_.$_$.j = yearsUntil;
|
|
563
576
|
//endregion
|
|
564
577
|
return _;
|
|
565
|
-
}(module.exports, require('@js-joda/core'), require('./kotlin-kotlin-stdlib
|
|
578
|
+
}(module.exports, require('@js-joda/core'), require('./kotlin-kotlin-stdlib.js')));
|
|
566
579
|
|
|
567
580
|
//# sourceMappingURL=Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map
|