@glandais/vcyclist-engine 6.0.1 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +122 -122
- package/index.d.ts +12 -1
- package/kotlin-kotlin-stdlib.js +880 -442
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +9 -9
- package/kotlinx-coroutines-core.js +199 -97
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +1 -1
- package/package.json +1 -1
- package/vcyclist-elevation.js +1273 -196
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.d.ts +1 -0
- package/vcyclist-engine.js +126 -131
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +47 -47
- package/vcyclist-gpx.js +123 -123
- package/xmlutil-core.js +102 -102
package/kotlinx-atomicfu.js
CHANGED
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
16
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
18
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.s7;
|
|
16
|
+
var defineProp = kotlin_kotlin.$_$.u6;
|
|
17
|
+
var initMetadataForClass = kotlin_kotlin.$_$.d7;
|
|
18
|
+
var initMetadataForObject = kotlin_kotlin.$_$.j7;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.a;
|
|
20
|
-
var toString = kotlin_kotlin.$_$.
|
|
21
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
22
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
23
|
-
var add = kotlin_kotlin.$_$.
|
|
24
|
-
var subtract = kotlin_kotlin.$_$.
|
|
20
|
+
var toString = kotlin_kotlin.$_$.qb;
|
|
21
|
+
var equalsLong = kotlin_kotlin.$_$.z5;
|
|
22
|
+
var get_ONE = kotlin_kotlin.$_$.p5;
|
|
23
|
+
var add = kotlin_kotlin.$_$.q5;
|
|
24
|
+
var subtract = kotlin_kotlin.$_$.i6;
|
|
25
25
|
//endregion
|
|
26
26
|
//region block: pre-declaration
|
|
27
27
|
initMetadataForClass(atomicfu$AtomicRefArray$ref, 'AtomicArray');
|
|
@@ -16,99 +16,100 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
20
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
21
|
-
var Element = kotlin_kotlin.$_$.
|
|
22
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
19
|
+
var Unit_instance = kotlin_kotlin.$_$.k1;
|
|
20
|
+
var protoOf = kotlin_kotlin.$_$.s7;
|
|
21
|
+
var Element = kotlin_kotlin.$_$.j5;
|
|
22
|
+
var Continuation = kotlin_kotlin.$_$.f5;
|
|
23
|
+
var initMetadataForClass = kotlin_kotlin.$_$.d7;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.a;
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
25
|
+
var toString = kotlin_kotlin.$_$.v7;
|
|
26
26
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
27
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
28
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
29
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
30
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
27
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.o5;
|
|
28
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m1;
|
|
29
|
+
var Companion_instance = kotlin_kotlin.$_$.j1;
|
|
30
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.k;
|
|
31
31
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
32
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
33
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
34
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
35
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
36
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
38
|
-
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.
|
|
39
|
-
var Key_instance = kotlin_kotlin.$_$.
|
|
40
|
-
var equals = kotlin_kotlin.$_$.
|
|
41
|
-
var createCoroutineUnintercepted = kotlin_kotlin.$_$.
|
|
42
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
44
|
-
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
45
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
47
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
49
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
50
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
32
|
+
var intercepted = kotlin_kotlin.$_$.y4;
|
|
33
|
+
var CoroutineImpl = kotlin_kotlin.$_$.l5;
|
|
34
|
+
var copyToArray = kotlin_kotlin.$_$.k3;
|
|
35
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.w4;
|
|
36
|
+
var emptyList = kotlin_kotlin.$_$.l3;
|
|
37
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.f7;
|
|
38
|
+
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.b1;
|
|
39
|
+
var Key_instance = kotlin_kotlin.$_$.a1;
|
|
40
|
+
var equals = kotlin_kotlin.$_$.w6;
|
|
41
|
+
var createCoroutineUnintercepted = kotlin_kotlin.$_$.x4;
|
|
42
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.h2;
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.h7;
|
|
44
|
+
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.q2;
|
|
45
|
+
var isInterface = kotlin_kotlin.$_$.l7;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.xa;
|
|
47
|
+
var toString_0 = kotlin_kotlin.$_$.qb;
|
|
48
|
+
var initMetadataForObject = kotlin_kotlin.$_$.j7;
|
|
49
|
+
var hashCode = kotlin_kotlin.$_$.c7;
|
|
50
|
+
var createFailure = kotlin_kotlin.$_$.fb;
|
|
51
51
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
52
|
-
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
53
|
-
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.
|
|
54
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
55
|
-
var AbstractCoroutineContextKey = kotlin_kotlin.$_$.
|
|
56
|
-
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.
|
|
57
|
-
var get = kotlin_kotlin.$_$.
|
|
58
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
59
|
-
var ContinuationInterceptor = kotlin_kotlin.$_$.
|
|
60
|
-
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.
|
|
61
|
-
var addSuppressed = kotlin_kotlin.$_$.
|
|
62
|
-
var Enum = kotlin_kotlin.$_$.
|
|
63
|
-
var startCoroutine = kotlin_kotlin.$_$.
|
|
64
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
65
|
-
var Long = kotlin_kotlin.$_$.
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var add = kotlin_kotlin.$_$.
|
|
69
|
-
var subtract = kotlin_kotlin.$_$.
|
|
70
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
71
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
72
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
73
|
-
var Error_0 = kotlin_kotlin.$_$.
|
|
74
|
-
var Error_init_$Init$ = kotlin_kotlin.$_$.
|
|
75
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
76
|
-
var ArrayList = kotlin_kotlin.$_$.
|
|
77
|
-
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
78
|
-
var plus = kotlin_kotlin.$_$.
|
|
79
|
-
var get_0 = kotlin_kotlin.$_$.
|
|
80
|
-
var fold = kotlin_kotlin.$_$.
|
|
81
|
-
var minusKey_0 = kotlin_kotlin.$_$.
|
|
82
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
83
|
-
var anyToString = kotlin_kotlin.$_$.
|
|
84
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
85
|
-
var UnsupportedOperationException = kotlin_kotlin.$_$.
|
|
86
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
87
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
88
|
-
var Exception = kotlin_kotlin.$_$.
|
|
89
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
90
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
91
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
92
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
93
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
94
|
-
var startCoroutineUninterceptedOrReturnNonGeneratorVersion = kotlin_kotlin.$_$.
|
|
95
|
-
var Unit = kotlin_kotlin.$_$.
|
|
96
|
-
var divide = kotlin_kotlin.$_$.
|
|
97
|
-
var modulo = kotlin_kotlin.$_$.
|
|
52
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
53
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.l;
|
|
54
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.o;
|
|
55
|
+
var AbstractCoroutineContextKey = kotlin_kotlin.$_$.b5;
|
|
56
|
+
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.a5;
|
|
57
|
+
var get = kotlin_kotlin.$_$.c5;
|
|
58
|
+
var minusKey = kotlin_kotlin.$_$.d5;
|
|
59
|
+
var ContinuationInterceptor = kotlin_kotlin.$_$.e5;
|
|
60
|
+
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.p2;
|
|
61
|
+
var addSuppressed = kotlin_kotlin.$_$.eb;
|
|
62
|
+
var Enum = kotlin_kotlin.$_$.na;
|
|
63
|
+
var startCoroutine = kotlin_kotlin.$_$.m5;
|
|
64
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.lb;
|
|
65
|
+
var Long = kotlin_kotlin.$_$.sa;
|
|
66
|
+
var compare = kotlin_kotlin.$_$.u5;
|
|
67
|
+
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
68
|
+
var add = kotlin_kotlin.$_$.q5;
|
|
69
|
+
var subtract = kotlin_kotlin.$_$.i6;
|
|
70
|
+
var RuntimeException = kotlin_kotlin.$_$.wa;
|
|
71
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.o2;
|
|
72
|
+
var captureStack = kotlin_kotlin.$_$.n6;
|
|
73
|
+
var Error_0 = kotlin_kotlin.$_$.oa;
|
|
74
|
+
var Error_init_$Init$ = kotlin_kotlin.$_$.z1;
|
|
75
|
+
var CancellationException = kotlin_kotlin.$_$.v4;
|
|
76
|
+
var ArrayList = kotlin_kotlin.$_$.r2;
|
|
77
|
+
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.i2;
|
|
78
|
+
var plus = kotlin_kotlin.$_$.k5;
|
|
79
|
+
var get_0 = kotlin_kotlin.$_$.h5;
|
|
80
|
+
var fold = kotlin_kotlin.$_$.g5;
|
|
81
|
+
var minusKey_0 = kotlin_kotlin.$_$.i5;
|
|
82
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
83
|
+
var anyToString = kotlin_kotlin.$_$.l6;
|
|
84
|
+
var constructCallableReference = kotlin_kotlin.$_$.t6;
|
|
85
|
+
var UnsupportedOperationException = kotlin_kotlin.$_$.db;
|
|
86
|
+
var ensureNotNull = kotlin_kotlin.$_$.gb;
|
|
87
|
+
var fromInt = kotlin_kotlin.$_$.a6;
|
|
88
|
+
var Exception = kotlin_kotlin.$_$.pa;
|
|
89
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
90
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.d2;
|
|
91
|
+
var defineProp = kotlin_kotlin.$_$.u6;
|
|
92
|
+
var convertToInt = kotlin_kotlin.$_$.w5;
|
|
93
|
+
var toLongOrNull = kotlin_kotlin.$_$.da;
|
|
94
|
+
var startCoroutineUninterceptedOrReturnNonGeneratorVersion = kotlin_kotlin.$_$.z4;
|
|
95
|
+
var Unit = kotlin_kotlin.$_$.cb;
|
|
96
|
+
var divide = kotlin_kotlin.$_$.y5;
|
|
97
|
+
var modulo = kotlin_kotlin.$_$.b6;
|
|
98
98
|
var atomic$long$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
99
99
|
var atomicfu$AtomicRefArray$ofNulls = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
100
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
101
|
-
var Exception_init_$Create$ = kotlin_kotlin.$_$.
|
|
102
|
-
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.
|
|
103
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
104
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
105
|
-
var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.
|
|
106
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
107
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
108
|
-
var removeFirstOrNull = kotlin_kotlin.$_$.
|
|
109
|
-
var
|
|
110
|
-
var
|
|
111
|
-
var KtList = kotlin_kotlin.$_$.
|
|
100
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.l8;
|
|
101
|
+
var Exception_init_$Create$ = kotlin_kotlin.$_$.c2;
|
|
102
|
+
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.w1;
|
|
103
|
+
var getStringHashCode = kotlin_kotlin.$_$.b7;
|
|
104
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
105
|
+
var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.n2;
|
|
106
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
107
|
+
var stackTraceToString = kotlin_kotlin.$_$.nb;
|
|
108
|
+
var removeFirstOrNull = kotlin_kotlin.$_$.f4;
|
|
109
|
+
var Collection = kotlin_kotlin.$_$.s2;
|
|
110
|
+
var MutableIterable = kotlin_kotlin.$_$.v2;
|
|
111
|
+
var KtList = kotlin_kotlin.$_$.t2;
|
|
112
|
+
var coerceIn = kotlin_kotlin.$_$.f8;
|
|
112
113
|
//endregion
|
|
113
114
|
//region block: pre-declaration
|
|
114
115
|
initMetadataForInterface(ParentJob, 'ParentJob', VOID, VOID, [Element], [0]);
|
|
@@ -148,6 +149,7 @@
|
|
|
148
149
|
initMetadataForObject(Key_0, 'Key');
|
|
149
150
|
initMetadataForObject(GlobalScope, 'GlobalScope', VOID, VOID, [CoroutineScope]);
|
|
150
151
|
initMetadataForClass(CoroutineStart, 'CoroutineStart', VOID, Enum);
|
|
152
|
+
initMetadataForInterface(Delay, 'Delay', VOID, VOID, VOID, [1]);
|
|
151
153
|
initMetadataForClass(EventLoop, 'EventLoop', VOID, CoroutineDispatcher);
|
|
152
154
|
initMetadataForObject(ThreadLocalEventLoop, 'ThreadLocalEventLoop');
|
|
153
155
|
initMetadataForClass(CompletionHandlerException, 'CompletionHandlerException', VOID, RuntimeException);
|
|
@@ -184,9 +186,9 @@
|
|
|
184
186
|
initMetadataForClass(MutexImpl, 'MutexImpl', VOID, SemaphoreAndMutexImpl, VOID, [1, 0]);
|
|
185
187
|
initMetadataForClass(SemaphoreImpl, 'SemaphoreImpl', VOID, SemaphoreAndMutexImpl, VOID, [0]);
|
|
186
188
|
initMetadataForClass(SemaphoreSegment, 'SemaphoreSegment', VOID, Segment);
|
|
187
|
-
initMetadataForClass(SetTimeoutBasedDispatcher, 'SetTimeoutBasedDispatcher', VOID, CoroutineDispatcher,
|
|
189
|
+
initMetadataForClass(SetTimeoutBasedDispatcher, 'SetTimeoutBasedDispatcher', VOID, CoroutineDispatcher, [Delay], [1]);
|
|
188
190
|
initMetadataForObject(NodeDispatcher, 'NodeDispatcher', VOID, SetTimeoutBasedDispatcher, VOID, [1]);
|
|
189
|
-
initMetadataForClass(MessageQueue, 'MessageQueue', VOID, VOID, [
|
|
191
|
+
initMetadataForClass(MessageQueue, 'MessageQueue', VOID, VOID, [Collection, MutableIterable, KtList]);
|
|
190
192
|
initMetadataForClass(ScheduledMessageQueue, 'ScheduledMessageQueue', VOID, MessageQueue);
|
|
191
193
|
initMetadataForClass(WindowMessageQueue, 'WindowMessageQueue', VOID, MessageQueue);
|
|
192
194
|
initMetadataForClass(UndispatchedCoroutine, 'UndispatchedCoroutine', VOID, ScopeCoroutine, VOID, [0]);
|
|
@@ -198,7 +200,9 @@
|
|
|
198
200
|
initMetadataForClass(CommonThreadLocal, 'CommonThreadLocal', CommonThreadLocal);
|
|
199
201
|
initMetadataForClass(UnconfinedEventLoop, 'UnconfinedEventLoop', UnconfinedEventLoop, EventLoop);
|
|
200
202
|
initMetadataForObject(SetTimeoutDispatcher, 'SetTimeoutDispatcher', VOID, SetTimeoutBasedDispatcher, VOID, [1]);
|
|
201
|
-
initMetadataForClass(
|
|
203
|
+
initMetadataForClass(ClearTimeout, 'ClearTimeout', VOID, VOID, [CancelHandler]);
|
|
204
|
+
initMetadataForClass(WindowClearTimeout, 'WindowClearTimeout', VOID, ClearTimeout);
|
|
205
|
+
initMetadataForClass(WindowDispatcher, 'WindowDispatcher', VOID, CoroutineDispatcher, [Delay], [1]);
|
|
202
206
|
//endregion
|
|
203
207
|
function AbstractCoroutine(parentContext, initParentJob, active) {
|
|
204
208
|
JobSupport.call(this, active);
|
|
@@ -1205,6 +1209,17 @@
|
|
|
1205
1209
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
1206
1210
|
dispatchResume(this, this.resumeMode_1);
|
|
1207
1211
|
};
|
|
1212
|
+
protoOf(CancellableContinuationImpl).resumeUndispatched_tyhwz7_k$ = function (_this__u8e3s4, value) {
|
|
1213
|
+
var tmp = this.delegate_1;
|
|
1214
|
+
var dc = tmp instanceof DispatchedContinuation ? tmp : null;
|
|
1215
|
+
var tmp_0;
|
|
1216
|
+
if ((dc == null ? null : dc.dispatcher_1) === _this__u8e3s4) {
|
|
1217
|
+
tmp_0 = 4;
|
|
1218
|
+
} else {
|
|
1219
|
+
tmp_0 = this.resumeMode_1;
|
|
1220
|
+
}
|
|
1221
|
+
this.resumeImpl$default_sev3sz_k$(value, tmp_0);
|
|
1222
|
+
};
|
|
1208
1223
|
protoOf(CancellableContinuationImpl).getSuccessfulResult_4uqe9r_k$ = function (state) {
|
|
1209
1224
|
var tmp;
|
|
1210
1225
|
if (state instanceof CompletedContinuation) {
|
|
@@ -1584,6 +1599,23 @@
|
|
|
1584
1599
|
static_init();
|
|
1585
1600
|
return CoroutineStart_LAZY_instance;
|
|
1586
1601
|
}
|
|
1602
|
+
function delay(timeMillis, $completion) {
|
|
1603
|
+
if (compare(timeMillis, new Long(0, 0)) <= 0)
|
|
1604
|
+
return Unit_instance;
|
|
1605
|
+
var cancellable = new CancellableContinuationImpl(intercepted($completion), 1);
|
|
1606
|
+
cancellable.initCancellability_shqc60_k$();
|
|
1607
|
+
if (compare(timeMillis, new Long(-1, 2147483647)) < 0) {
|
|
1608
|
+
get_delay(cancellable.get_context_h02k06_k$()).scheduleResumeAfterDelay_iugqq8_k$(timeMillis, cancellable);
|
|
1609
|
+
}
|
|
1610
|
+
return cancellable.getResult_fck196_k$();
|
|
1611
|
+
}
|
|
1612
|
+
function Delay() {
|
|
1613
|
+
}
|
|
1614
|
+
function get_delay(_this__u8e3s4) {
|
|
1615
|
+
var tmp = _this__u8e3s4.get_y2st91_k$(Key_instance);
|
|
1616
|
+
var tmp0_elvis_lhs = (!(tmp == null) ? isInterface(tmp, Delay) : false) ? tmp : null;
|
|
1617
|
+
return tmp0_elvis_lhs == null ? get_DefaultDelay() : tmp0_elvis_lhs;
|
|
1618
|
+
}
|
|
1587
1619
|
function delta($this, unconfined) {
|
|
1588
1620
|
return unconfined ? new Long(0, 1) : new Long(1, 0);
|
|
1589
1621
|
}
|
|
@@ -4194,6 +4226,12 @@
|
|
|
4194
4226
|
protoOf(CancellableContinuationWithOwner).invokeOnCancellation_effrxe_k$ = function (segment, index) {
|
|
4195
4227
|
this.cont_1.invokeOnCancellation_effrxe_k$(segment, index);
|
|
4196
4228
|
};
|
|
4229
|
+
protoOf(CancellableContinuationWithOwner).resumeUndispatched_lj2o9a_k$ = function (_this__u8e3s4, value) {
|
|
4230
|
+
this.cont_1.resumeUndispatched_tyhwz7_k$(_this__u8e3s4, Unit_instance);
|
|
4231
|
+
};
|
|
4232
|
+
protoOf(CancellableContinuationWithOwner).resumeUndispatched_tyhwz7_k$ = function (_this__u8e3s4, value) {
|
|
4233
|
+
return this.resumeUndispatched_lj2o9a_k$(_this__u8e3s4, value instanceof Unit ? value : THROW_CCE());
|
|
4234
|
+
};
|
|
4197
4235
|
protoOf(CancellableContinuationWithOwner).resumeWith_lgtnnr_k$ = function (result) {
|
|
4198
4236
|
this.cont_1.resumeWith_rk9gbt_k$(result);
|
|
4199
4237
|
};
|
|
@@ -4766,6 +4804,9 @@
|
|
|
4766
4804
|
protoOf(ScheduledMessageQueue).setTimeout_6sdjei_k$ = function (timeout) {
|
|
4767
4805
|
setTimeout(this.processQueue_1, timeout);
|
|
4768
4806
|
};
|
|
4807
|
+
function w3cSetTimeout(handler, timeout) {
|
|
4808
|
+
return setTimeout(handler, timeout);
|
|
4809
|
+
}
|
|
4769
4810
|
function WindowMessageQueue$lambda(this$0) {
|
|
4770
4811
|
return function (event) {
|
|
4771
4812
|
var tmp;
|
|
@@ -4796,6 +4837,18 @@
|
|
|
4796
4837
|
protoOf(WindowMessageQueue).reschedule_mhlssa_k$ = function () {
|
|
4797
4838
|
this.window_1.postMessage(this.messageName_1, '*');
|
|
4798
4839
|
};
|
|
4840
|
+
function w3cSetTimeout_0(window_0, handler, timeout) {
|
|
4841
|
+
return setTimeout_0(window_0, handler, timeout);
|
|
4842
|
+
}
|
|
4843
|
+
function w3cClearTimeout(window_0, handle) {
|
|
4844
|
+
return window_0.clearTimeout(handle);
|
|
4845
|
+
}
|
|
4846
|
+
function w3cClearTimeout_0(handle) {
|
|
4847
|
+
return clearTimeout(handle);
|
|
4848
|
+
}
|
|
4849
|
+
function setTimeout_0(window_0, handler, timeout) {
|
|
4850
|
+
return window_0.setTimeout(handler, timeout);
|
|
4851
|
+
}
|
|
4799
4852
|
function toThrowable(_this__u8e3s4) {
|
|
4800
4853
|
var tmp0_elvis_lhs = _this__u8e3s4 instanceof Error ? _this__u8e3s4 : null;
|
|
4801
4854
|
return tmp0_elvis_lhs == null ? Exception_init_$Create$("Promise resolved with a non-Throwable exception '" + _this__u8e3s4.toString() + "' (type " + toString(getKClassFromExpression(_this__u8e3s4)) + ')') : tmp0_elvis_lhs;
|
|
@@ -4834,6 +4887,10 @@
|
|
|
4834
4887
|
function toDebugString(_this__u8e3s4) {
|
|
4835
4888
|
return toString(_this__u8e3s4);
|
|
4836
4889
|
}
|
|
4890
|
+
function get_DefaultDelay() {
|
|
4891
|
+
var tmp = Dispatchers_getInstance().Default_1;
|
|
4892
|
+
return isInterface(tmp, Delay) ? tmp : THROW_CCE();
|
|
4893
|
+
}
|
|
4837
4894
|
function get_coroutineName(_this__u8e3s4) {
|
|
4838
4895
|
return null;
|
|
4839
4896
|
}
|
|
@@ -5121,6 +5178,13 @@
|
|
|
5121
5178
|
new SetTimeoutDispatcher();
|
|
5122
5179
|
return SetTimeoutDispatcher_instance;
|
|
5123
5180
|
}
|
|
5181
|
+
function SetTimeoutBasedDispatcher$scheduleResumeAfterDelay$lambda($continuation, this$0) {
|
|
5182
|
+
return function () {
|
|
5183
|
+
// Inline function 'kotlin.with' call
|
|
5184
|
+
$continuation.resumeUndispatched_tyhwz7_k$(this$0, Unit_instance);
|
|
5185
|
+
return Unit_instance;
|
|
5186
|
+
};
|
|
5187
|
+
}
|
|
5124
5188
|
function SetTimeoutBasedDispatcher() {
|
|
5125
5189
|
CoroutineDispatcher.call(this);
|
|
5126
5190
|
this.messageQueue_1 = new ScheduledMessageQueue(this);
|
|
@@ -5128,6 +5192,10 @@
|
|
|
5128
5192
|
protoOf(SetTimeoutBasedDispatcher).dispatch_qa3n0o_k$ = function (context, block) {
|
|
5129
5193
|
this.messageQueue_1.enqueue_uiib2n_k$(block);
|
|
5130
5194
|
};
|
|
5195
|
+
protoOf(SetTimeoutBasedDispatcher).scheduleResumeAfterDelay_iugqq8_k$ = function (timeMillis, continuation) {
|
|
5196
|
+
var handle = w3cSetTimeout(SetTimeoutBasedDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
5197
|
+
invokeOnCancellation(continuation, new ClearTimeout(handle));
|
|
5198
|
+
};
|
|
5131
5199
|
function MessageQueue() {
|
|
5132
5200
|
this.$$delegate_0__1 = ArrayDeque_init_$Create$();
|
|
5133
5201
|
this.yieldEvery_1 = 16;
|
|
@@ -5232,6 +5300,20 @@
|
|
|
5232
5300
|
protoOf(MessageQueue).get_size_woubt6_k$ = function () {
|
|
5233
5301
|
return this.$$delegate_0__1.size_1;
|
|
5234
5302
|
};
|
|
5303
|
+
function WindowClearTimeout($outer, handle) {
|
|
5304
|
+
this.$this_1 = $outer;
|
|
5305
|
+
ClearTimeout.call(this, handle);
|
|
5306
|
+
}
|
|
5307
|
+
protoOf(WindowClearTimeout).dispose_3nnxhr_k$ = function () {
|
|
5308
|
+
w3cClearTimeout(this.$this_1.window_1, this.handle_1);
|
|
5309
|
+
};
|
|
5310
|
+
function WindowDispatcher$scheduleResumeAfterDelay$lambda($continuation, this$0) {
|
|
5311
|
+
return function () {
|
|
5312
|
+
// Inline function 'kotlin.with' call
|
|
5313
|
+
$continuation.resumeUndispatched_tyhwz7_k$(this$0, Unit_instance);
|
|
5314
|
+
return Unit_instance;
|
|
5315
|
+
};
|
|
5316
|
+
}
|
|
5235
5317
|
function WindowDispatcher(window_0) {
|
|
5236
5318
|
CoroutineDispatcher.call(this);
|
|
5237
5319
|
this.window_1 = window_0;
|
|
@@ -5240,6 +5322,25 @@
|
|
|
5240
5322
|
protoOf(WindowDispatcher).dispatch_qa3n0o_k$ = function (context, block) {
|
|
5241
5323
|
return this.queue_1.enqueue_uiib2n_k$(block);
|
|
5242
5324
|
};
|
|
5325
|
+
protoOf(WindowDispatcher).scheduleResumeAfterDelay_iugqq8_k$ = function (timeMillis, continuation) {
|
|
5326
|
+
var handle = w3cSetTimeout_0(this.window_1, WindowDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
5327
|
+
invokeOnCancellation(continuation, new WindowClearTimeout(this, handle));
|
|
5328
|
+
};
|
|
5329
|
+
function delayToInt(timeMillis) {
|
|
5330
|
+
return convertToInt(coerceIn(timeMillis, new Long(0, 0), new Long(2147483647, 0)));
|
|
5331
|
+
}
|
|
5332
|
+
function ClearTimeout(handle) {
|
|
5333
|
+
this.handle_1 = handle;
|
|
5334
|
+
}
|
|
5335
|
+
protoOf(ClearTimeout).dispose_3nnxhr_k$ = function () {
|
|
5336
|
+
w3cClearTimeout_0(this.handle_1);
|
|
5337
|
+
};
|
|
5338
|
+
protoOf(ClearTimeout).invoke_py2q9a_k$ = function (cause) {
|
|
5339
|
+
this.dispose_3nnxhr_k$();
|
|
5340
|
+
};
|
|
5341
|
+
protoOf(ClearTimeout).toString = function () {
|
|
5342
|
+
return 'ClearTimeout[' + this.handle_1 + ']';
|
|
5343
|
+
};
|
|
5243
5344
|
//region block: post-declaration
|
|
5244
5345
|
protoOf(JobSupport).plus_s13ygv_k$ = plus;
|
|
5245
5346
|
protoOf(JobSupport).get_y2st91_k$ = get_0;
|
|
@@ -5268,13 +5369,14 @@
|
|
|
5268
5369
|
_.$_$.c = awaitAll;
|
|
5269
5370
|
_.$_$.d = await_0;
|
|
5270
5371
|
_.$_$.e = coroutineScope;
|
|
5271
|
-
_.$_$.f =
|
|
5272
|
-
_.$_$.g =
|
|
5273
|
-
_.$_$.h =
|
|
5274
|
-
_.$_$.i =
|
|
5275
|
-
_.$_$.j =
|
|
5276
|
-
_.$_$.k =
|
|
5277
|
-
_.$_$.l =
|
|
5372
|
+
_.$_$.f = delay;
|
|
5373
|
+
_.$_$.g = withContext;
|
|
5374
|
+
_.$_$.h = Mutex;
|
|
5375
|
+
_.$_$.i = Semaphore;
|
|
5376
|
+
_.$_$.j = CompletableDeferred;
|
|
5377
|
+
_.$_$.k = CoroutineScope;
|
|
5378
|
+
_.$_$.l = async;
|
|
5379
|
+
_.$_$.m = promise;
|
|
5278
5380
|
//endregion
|
|
5279
5381
|
return _;
|
|
5280
5382
|
}));
|