munchies-user-service-shared 0.11.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.
@@ -0,0 +1,683 @@
1
+ //region block: polyfills
2
+ if (typeof ArrayBuffer.isView === 'undefined') {
3
+ ArrayBuffer.isView = function (a) {
4
+ return a != null && a.__proto__ != null && a.__proto__.__proto__ === Int8Array.prototype.__proto__;
5
+ };
6
+ }
7
+ if (typeof Math.imul === 'undefined') {
8
+ Math.imul = function imul(a, b) {
9
+ return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
10
+ };
11
+ }
12
+ //endregion
13
+ (function (_) {
14
+ 'use strict';
15
+ //region block: imports
16
+ var imul = Math.imul;
17
+ var isView = ArrayBuffer.isView;
18
+ //endregion
19
+ //region block: pre-declaration
20
+ setMetadataFor(Number_0, 'Number', classMeta);
21
+ setMetadataFor(Unit, 'Unit', objectMeta);
22
+ setMetadataFor(IntCompanionObject, 'IntCompanionObject', objectMeta);
23
+ setMetadataFor(Companion, 'Companion', objectMeta);
24
+ setMetadataFor(Collection, 'Collection', interfaceMeta);
25
+ setMetadataFor(Long, 'Long', classMeta, Number_0);
26
+ setMetadataFor(Exception, 'Exception', classMeta, Error, VOID, Exception_init_$Create$);
27
+ setMetadataFor(RuntimeException, 'RuntimeException', classMeta, Exception, VOID, RuntimeException_init_$Create$);
28
+ setMetadataFor(IllegalArgumentException, 'IllegalArgumentException', classMeta, RuntimeException, VOID, IllegalArgumentException_init_$Create$);
29
+ setMetadataFor(NoSuchElementException, 'NoSuchElementException', classMeta, RuntimeException, VOID, NoSuchElementException_init_$Create$);
30
+ setMetadataFor(ClassCastException, 'ClassCastException', classMeta, RuntimeException, VOID, ClassCastException_init_$Create$);
31
+ setMetadataFor(IntIterator, 'IntIterator', classMeta);
32
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
33
+ setMetadataFor(IntProgression, 'IntProgression', classMeta);
34
+ setMetadataFor(IntRange, 'IntRange', classMeta, IntProgression);
35
+ setMetadataFor(IntProgressionIterator, 'IntProgressionIterator', classMeta, IntIterator);
36
+ setMetadataFor(Companion_1, 'Companion', objectMeta);
37
+ //endregion
38
+ function Number_0() {
39
+ }
40
+ function Unit() {
41
+ }
42
+ protoOf(Unit).toString = function () {
43
+ return 'kotlin.Unit';
44
+ };
45
+ var Unit_instance;
46
+ function Unit_getInstance() {
47
+ return Unit_instance;
48
+ }
49
+ function IntCompanionObject() {
50
+ this.MIN_VALUE = -2147483648;
51
+ this.MAX_VALUE = 2147483647;
52
+ this.SIZE_BYTES = 4;
53
+ this.SIZE_BITS = 32;
54
+ }
55
+ protoOf(IntCompanionObject).a = function () {
56
+ return this.MIN_VALUE;
57
+ };
58
+ protoOf(IntCompanionObject).b = function () {
59
+ return this.MAX_VALUE;
60
+ };
61
+ protoOf(IntCompanionObject).c = function () {
62
+ return this.SIZE_BYTES;
63
+ };
64
+ protoOf(IntCompanionObject).d = function () {
65
+ return this.SIZE_BITS;
66
+ };
67
+ var IntCompanionObject_instance;
68
+ function IntCompanionObject_getInstance() {
69
+ return IntCompanionObject_instance;
70
+ }
71
+ function isWhitespace(_this__u8e3s4) {
72
+ return isWhitespaceImpl(_this__u8e3s4);
73
+ }
74
+ function isBlank(_this__u8e3s4) {
75
+ var tmp;
76
+ if (charSequenceLength(_this__u8e3s4) === 0) {
77
+ tmp = true;
78
+ } else {
79
+ var tmp$ret$0;
80
+ $l$block_0: {
81
+ // Inline function 'kotlin.collections.all' call
82
+ var this_0 = get_indices(_this__u8e3s4);
83
+ var tmp_0;
84
+ if (isInterface(this_0, Collection)) {
85
+ tmp_0 = this_0.e();
86
+ } else {
87
+ tmp_0 = false;
88
+ }
89
+ if (tmp_0) {
90
+ tmp$ret$0 = true;
91
+ break $l$block_0;
92
+ }
93
+ var tmp0_iterator = this_0.f();
94
+ while (tmp0_iterator.g()) {
95
+ var element = tmp0_iterator.h();
96
+ // Inline function 'kotlin.text.isBlank.<anonymous>' call
97
+ if (!isWhitespace(charSequenceGet(_this__u8e3s4, element))) {
98
+ tmp$ret$0 = false;
99
+ break $l$block_0;
100
+ }
101
+ }
102
+ tmp$ret$0 = true;
103
+ }
104
+ tmp = tmp$ret$0;
105
+ }
106
+ return tmp;
107
+ }
108
+ function _Char___init__impl__6a9atx(value) {
109
+ return value;
110
+ }
111
+ function _get_value__a43j40($this) {
112
+ return $this;
113
+ }
114
+ function _Char___init__impl__6a9atx_0(code) {
115
+ // Inline function 'kotlin.UShort.toInt' call
116
+ var tmp$ret$0 = _UShort___get_data__impl__g0245(code) & 65535;
117
+ return _Char___init__impl__6a9atx(tmp$ret$0);
118
+ }
119
+ function Char__toInt_impl_vasixd($this) {
120
+ return _get_value__a43j40($this);
121
+ }
122
+ function Companion() {
123
+ Companion_instance = this;
124
+ this.i_1 = _Char___init__impl__6a9atx(0);
125
+ this.j_1 = _Char___init__impl__6a9atx(65535);
126
+ this.k_1 = _Char___init__impl__6a9atx(55296);
127
+ this.l_1 = _Char___init__impl__6a9atx(56319);
128
+ this.m_1 = _Char___init__impl__6a9atx(56320);
129
+ this.n_1 = _Char___init__impl__6a9atx(57343);
130
+ this.o_1 = _Char___init__impl__6a9atx(55296);
131
+ this.p_1 = _Char___init__impl__6a9atx(57343);
132
+ this.q_1 = 2;
133
+ this.r_1 = 16;
134
+ }
135
+ var Companion_instance;
136
+ function Companion_getInstance() {
137
+ if (Companion_instance == null)
138
+ new Companion();
139
+ return Companion_instance;
140
+ }
141
+ function Collection() {
142
+ }
143
+ function implement(interfaces) {
144
+ var maxSize = 1;
145
+ var masks = [];
146
+ var inductionVariable = 0;
147
+ var last = interfaces.length;
148
+ while (inductionVariable < last) {
149
+ var i = interfaces[inductionVariable];
150
+ inductionVariable = inductionVariable + 1 | 0;
151
+ var currentSize = maxSize;
152
+ var tmp1_elvis_lhs = i.prototype.$imask$;
153
+ var imask = tmp1_elvis_lhs == null ? i.$imask$ : tmp1_elvis_lhs;
154
+ if (!(imask == null)) {
155
+ masks.push(imask);
156
+ currentSize = imask.length;
157
+ }
158
+ var iid = i.$metadata$.iid;
159
+ var tmp;
160
+ if (iid == null) {
161
+ tmp = null;
162
+ } else {
163
+ // Inline function 'kotlin.let' call
164
+ // Inline function 'kotlin.contracts.contract' call
165
+ // Inline function 'kotlin.js.implement.<anonymous>' call
166
+ tmp = bitMaskWith(iid);
167
+ }
168
+ var iidImask = tmp;
169
+ if (!(iidImask == null)) {
170
+ masks.push(iidImask);
171
+ currentSize = Math.max(currentSize, iidImask.length);
172
+ }
173
+ if (currentSize > maxSize) {
174
+ maxSize = currentSize;
175
+ }
176
+ }
177
+ return compositeBitMask(maxSize, masks);
178
+ }
179
+ function bitMaskWith(activeBit) {
180
+ var numberIndex = activeBit >> 5;
181
+ var intArray = new Int32Array(numberIndex + 1 | 0);
182
+ var positionInNumber = activeBit & 31;
183
+ var numberWithSettledBit = 1 << positionInNumber;
184
+ intArray[numberIndex] = intArray[numberIndex] | numberWithSettledBit;
185
+ return intArray;
186
+ }
187
+ function compositeBitMask(capacity, masks) {
188
+ var tmp = 0;
189
+ var tmp_0 = new Int32Array(capacity);
190
+ while (tmp < capacity) {
191
+ var tmp_1 = tmp;
192
+ var result = 0;
193
+ var inductionVariable = 0;
194
+ var last = masks.length;
195
+ while (inductionVariable < last) {
196
+ var mask = masks[inductionVariable];
197
+ inductionVariable = inductionVariable + 1 | 0;
198
+ if (tmp_1 < mask.length) {
199
+ result = result | mask[tmp_1];
200
+ }
201
+ }
202
+ tmp_0[tmp_1] = result;
203
+ tmp = tmp + 1 | 0;
204
+ }
205
+ return tmp_0;
206
+ }
207
+ function isBitSet(_this__u8e3s4, possibleActiveBit) {
208
+ var numberIndex = possibleActiveBit >> 5;
209
+ if (numberIndex > _this__u8e3s4.length)
210
+ return false;
211
+ var positionInNumber = possibleActiveBit & 31;
212
+ var numberWithSettledBit = 1 << positionInNumber;
213
+ return !((_this__u8e3s4[numberIndex] & numberWithSettledBit) === 0);
214
+ }
215
+ function charSequenceGet(a, index) {
216
+ var tmp;
217
+ if (isString(a)) {
218
+ // Inline function 'kotlin.Char' call
219
+ // Inline function 'kotlin.js.unsafeCast' call
220
+ // Inline function 'kotlin.js.asDynamic' call
221
+ var code = a.charCodeAt(index);
222
+ var tmp_0;
223
+ // Inline function 'kotlin.code' call
224
+ Companion_getInstance();
225
+ var this_0 = _Char___init__impl__6a9atx(0);
226
+ if (code < Char__toInt_impl_vasixd(this_0)) {
227
+ tmp_0 = true;
228
+ } else {
229
+ // Inline function 'kotlin.code' call
230
+ Companion_getInstance();
231
+ var this_1 = _Char___init__impl__6a9atx(65535);
232
+ tmp_0 = code > Char__toInt_impl_vasixd(this_1);
233
+ }
234
+ if (tmp_0) {
235
+ throw IllegalArgumentException_init_$Create$_0('Invalid Char code: ' + code);
236
+ }
237
+ tmp = numberToChar(code);
238
+ } else {
239
+ tmp = a.s(index);
240
+ }
241
+ return tmp;
242
+ }
243
+ function isString(a) {
244
+ return typeof a === 'string';
245
+ }
246
+ function charSequenceLength(a) {
247
+ var tmp;
248
+ if (isString(a)) {
249
+ // Inline function 'kotlin.js.unsafeCast' call
250
+ // Inline function 'kotlin.js.asDynamic' call
251
+ tmp = a.length;
252
+ } else {
253
+ tmp = a.t();
254
+ }
255
+ return tmp;
256
+ }
257
+ function toString(o) {
258
+ var tmp;
259
+ if (o == null) {
260
+ tmp = 'null';
261
+ } else if (isArrayish(o)) {
262
+ tmp = '[...]';
263
+ } else if (!(typeof o.toString === 'function')) {
264
+ tmp = anyToString(o);
265
+ } else {
266
+ // Inline function 'kotlin.js.unsafeCast' call
267
+ tmp = o.toString();
268
+ }
269
+ return tmp;
270
+ }
271
+ function anyToString(o) {
272
+ return Object.prototype.toString.call(o);
273
+ }
274
+ function getStringHashCode(str) {
275
+ var hash = 0;
276
+ var length = str.length;
277
+ var inductionVariable = 0;
278
+ var last = length - 1 | 0;
279
+ if (inductionVariable <= last)
280
+ do {
281
+ var i = inductionVariable;
282
+ inductionVariable = inductionVariable + 1 | 0;
283
+ // Inline function 'kotlin.js.asDynamic' call
284
+ var code = str.charCodeAt(i);
285
+ hash = imul(hash, 31) + code | 0;
286
+ }
287
+ while (!(i === last));
288
+ return hash;
289
+ }
290
+ function captureStack(instance, constructorFunction) {
291
+ if (Error.captureStackTrace != null) {
292
+ Error.captureStackTrace(instance, constructorFunction);
293
+ } else {
294
+ // Inline function 'kotlin.js.asDynamic' call
295
+ instance.stack = (new Error()).stack;
296
+ }
297
+ }
298
+ function protoOf(constructor) {
299
+ return constructor.prototype;
300
+ }
301
+ function defineProp(obj, name, getter, setter) {
302
+ return Object.defineProperty(obj, name, {configurable: true, get: getter, set: setter});
303
+ }
304
+ function objectCreate(proto) {
305
+ return Object.create(proto);
306
+ }
307
+ function extendThrowable(this_, message, cause) {
308
+ Error.call(this_);
309
+ setPropertiesToThrowableInstance(this_, message, cause);
310
+ }
311
+ function setPropertiesToThrowableInstance(this_, message, cause) {
312
+ var errorInfo = calculateErrorInfo(Object.getPrototypeOf(this_));
313
+ if ((errorInfo & 1) === 0) {
314
+ var tmp;
315
+ if (message == null) {
316
+ var tmp_0;
317
+ if (!(message === null)) {
318
+ var tmp1_elvis_lhs = cause == null ? null : cause.toString();
319
+ tmp_0 = tmp1_elvis_lhs == null ? VOID : tmp1_elvis_lhs;
320
+ } else {
321
+ tmp_0 = VOID;
322
+ }
323
+ tmp = tmp_0;
324
+ } else {
325
+ tmp = message;
326
+ }
327
+ this_.message = tmp;
328
+ }
329
+ if ((errorInfo & 2) === 0) {
330
+ this_.cause = cause;
331
+ }
332
+ this_.name = Object.getPrototypeOf(this_).constructor.name;
333
+ }
334
+ function THROW_CCE() {
335
+ throw ClassCastException_init_$Create$();
336
+ }
337
+ function Long() {
338
+ }
339
+ protoOf(Long).v = function () {
340
+ return this.u_1;
341
+ };
342
+ function classMeta(name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) {
343
+ return createMetadata('class', name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity, null);
344
+ }
345
+ function createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity, iid) {
346
+ var undef = VOID;
347
+ return {kind: kind, simpleName: name, associatedObjectKey: associatedObjectKey, associatedObjects: associatedObjects, suspendArity: suspendArity, $kClass$: undef, defaultConstructor: defaultConstructor, iid: iid};
348
+ }
349
+ function setMetadataFor(ctor, name, metadataConstructor, parent, interfaces, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) {
350
+ if (!(parent == null)) {
351
+ ctor.prototype = Object.create(parent.prototype);
352
+ ctor.prototype.constructor = ctor;
353
+ }
354
+ var metadata = metadataConstructor(name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity == null ? [] : suspendArity);
355
+ ctor.$metadata$ = metadata;
356
+ if (!(interfaces == null)) {
357
+ var receiver = !(metadata.iid == null) ? ctor : ctor.prototype;
358
+ receiver.$imask$ = implement(interfaces);
359
+ }
360
+ }
361
+ function interfaceMeta(name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) {
362
+ return createMetadata('interface', name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity, generateInterfaceId());
363
+ }
364
+ function generateInterfaceId() {
365
+ if (iid === VOID) {
366
+ iid = 0;
367
+ }
368
+ // Inline function 'kotlin.js.unsafeCast' call
369
+ iid = iid + 1 | 0;
370
+ // Inline function 'kotlin.js.unsafeCast' call
371
+ return iid;
372
+ }
373
+ var iid;
374
+ function objectMeta(name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) {
375
+ return createMetadata('object', name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity, null);
376
+ }
377
+ function numberToInt(a) {
378
+ var tmp;
379
+ if (a instanceof Long) {
380
+ tmp = a.v();
381
+ } else {
382
+ tmp = doubleToInt(a);
383
+ }
384
+ return tmp;
385
+ }
386
+ function doubleToInt(a) {
387
+ var tmp;
388
+ if (a > 2.147483647E9) {
389
+ tmp = 2147483647;
390
+ } else if (a < -2.147483648E9) {
391
+ tmp = -2147483648;
392
+ } else {
393
+ // Inline function 'kotlin.js.jsBitwiseOr' call
394
+ tmp = a | 0;
395
+ }
396
+ return tmp;
397
+ }
398
+ function toShort(a) {
399
+ // Inline function 'kotlin.js.unsafeCast' call
400
+ return a << 16 >> 16;
401
+ }
402
+ function numberToChar(a) {
403
+ // Inline function 'kotlin.toUShort' call
404
+ var this_0 = numberToInt(a);
405
+ var tmp$ret$0 = _UShort___init__impl__jigrne(toShort(this_0));
406
+ return _Char___init__impl__6a9atx_0(tmp$ret$0);
407
+ }
408
+ function numberRangeToNumber(start, endInclusive) {
409
+ return new IntRange(start, endInclusive);
410
+ }
411
+ function isArrayish(o) {
412
+ return isJsArray(o) ? true : isView(o);
413
+ }
414
+ function isJsArray(obj) {
415
+ // Inline function 'kotlin.js.unsafeCast' call
416
+ return Array.isArray(obj);
417
+ }
418
+ function isInterface(obj, iface) {
419
+ return isInterfaceImpl(obj, iface.$metadata$.iid);
420
+ }
421
+ function isInterfaceImpl(obj, iface) {
422
+ // Inline function 'kotlin.js.unsafeCast' call
423
+ var tmp0_elvis_lhs = obj.$imask$;
424
+ var tmp;
425
+ if (tmp0_elvis_lhs == null) {
426
+ return false;
427
+ } else {
428
+ tmp = tmp0_elvis_lhs;
429
+ }
430
+ var mask = tmp;
431
+ return isBitSet(mask, iface);
432
+ }
433
+ function calculateErrorInfo(proto) {
434
+ var tmp0_safe_receiver = proto.constructor;
435
+ var metadata = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.$metadata$;
436
+ var tmp2_safe_receiver = metadata == null ? null : metadata.errorInfo;
437
+ if (tmp2_safe_receiver == null)
438
+ null;
439
+ else {
440
+ // Inline function 'kotlin.let' call
441
+ // Inline function 'kotlin.contracts.contract' call
442
+ return tmp2_safe_receiver;
443
+ }
444
+ var result = 0;
445
+ if (hasProp(proto, 'message'))
446
+ result = result | 1;
447
+ if (hasProp(proto, 'cause'))
448
+ result = result | 2;
449
+ if (!(result === 3)) {
450
+ var parentProto = getPrototypeOf(proto);
451
+ if (parentProto != Error.prototype) {
452
+ result = result | calculateErrorInfo(parentProto);
453
+ }
454
+ }
455
+ if (!(metadata == null)) {
456
+ metadata.errorInfo = result;
457
+ }
458
+ return result;
459
+ }
460
+ function hasProp(proto, propName) {
461
+ return proto.hasOwnProperty(propName);
462
+ }
463
+ function getPrototypeOf(obj) {
464
+ return Object.getPrototypeOf(obj);
465
+ }
466
+ function get_VOID() {
467
+ _init_properties_void_kt__3zg9as();
468
+ return VOID;
469
+ }
470
+ var VOID;
471
+ var properties_initialized_void_kt_e4ret2;
472
+ function _init_properties_void_kt__3zg9as() {
473
+ if (!properties_initialized_void_kt_e4ret2) {
474
+ properties_initialized_void_kt_e4ret2 = true;
475
+ VOID = void 0;
476
+ }
477
+ }
478
+ function isWhitespaceImpl(_this__u8e3s4) {
479
+ // Inline function 'kotlin.code' call
480
+ var ch = Char__toInt_impl_vasixd(_this__u8e3s4);
481
+ return (((9 <= ch ? ch <= 13 : false) ? true : 28 <= ch ? ch <= 32 : false) ? true : ch === 160) ? true : ch > 4096 ? (((((ch === 5760 ? true : 8192 <= ch ? ch <= 8202 : false) ? true : ch === 8232) ? true : ch === 8233) ? true : ch === 8239) ? true : ch === 8287) ? true : ch === 12288 : false;
482
+ }
483
+ function Exception_init_$Init$($this) {
484
+ extendThrowable($this);
485
+ Exception.call($this);
486
+ return $this;
487
+ }
488
+ function Exception_init_$Create$() {
489
+ var tmp = Exception_init_$Init$(objectCreate(protoOf(Exception)));
490
+ captureStack(tmp, Exception_init_$Create$);
491
+ return tmp;
492
+ }
493
+ function Exception_init_$Init$_0(message, $this) {
494
+ extendThrowable($this, message);
495
+ Exception.call($this);
496
+ return $this;
497
+ }
498
+ function Exception() {
499
+ captureStack(this, Exception);
500
+ }
501
+ function IllegalArgumentException_init_$Init$($this) {
502
+ RuntimeException_init_$Init$($this);
503
+ IllegalArgumentException.call($this);
504
+ return $this;
505
+ }
506
+ function IllegalArgumentException_init_$Create$() {
507
+ var tmp = IllegalArgumentException_init_$Init$(objectCreate(protoOf(IllegalArgumentException)));
508
+ captureStack(tmp, IllegalArgumentException_init_$Create$);
509
+ return tmp;
510
+ }
511
+ function IllegalArgumentException_init_$Init$_0(message, $this) {
512
+ RuntimeException_init_$Init$_0(message, $this);
513
+ IllegalArgumentException.call($this);
514
+ return $this;
515
+ }
516
+ function IllegalArgumentException_init_$Create$_0(message) {
517
+ var tmp = IllegalArgumentException_init_$Init$_0(message, objectCreate(protoOf(IllegalArgumentException)));
518
+ captureStack(tmp, IllegalArgumentException_init_$Create$_0);
519
+ return tmp;
520
+ }
521
+ function IllegalArgumentException() {
522
+ captureStack(this, IllegalArgumentException);
523
+ }
524
+ function RuntimeException_init_$Init$($this) {
525
+ Exception_init_$Init$($this);
526
+ RuntimeException.call($this);
527
+ return $this;
528
+ }
529
+ function RuntimeException_init_$Create$() {
530
+ var tmp = RuntimeException_init_$Init$(objectCreate(protoOf(RuntimeException)));
531
+ captureStack(tmp, RuntimeException_init_$Create$);
532
+ return tmp;
533
+ }
534
+ function RuntimeException_init_$Init$_0(message, $this) {
535
+ Exception_init_$Init$_0(message, $this);
536
+ RuntimeException.call($this);
537
+ return $this;
538
+ }
539
+ function RuntimeException() {
540
+ captureStack(this, RuntimeException);
541
+ }
542
+ function NoSuchElementException_init_$Init$($this) {
543
+ RuntimeException_init_$Init$($this);
544
+ NoSuchElementException.call($this);
545
+ return $this;
546
+ }
547
+ function NoSuchElementException_init_$Create$() {
548
+ var tmp = NoSuchElementException_init_$Init$(objectCreate(protoOf(NoSuchElementException)));
549
+ captureStack(tmp, NoSuchElementException_init_$Create$);
550
+ return tmp;
551
+ }
552
+ function NoSuchElementException() {
553
+ captureStack(this, NoSuchElementException);
554
+ }
555
+ function ClassCastException_init_$Init$($this) {
556
+ RuntimeException_init_$Init$($this);
557
+ ClassCastException.call($this);
558
+ return $this;
559
+ }
560
+ function ClassCastException_init_$Create$() {
561
+ var tmp = ClassCastException_init_$Init$(objectCreate(protoOf(ClassCastException)));
562
+ captureStack(tmp, ClassCastException_init_$Create$);
563
+ return tmp;
564
+ }
565
+ function ClassCastException() {
566
+ captureStack(this, ClassCastException);
567
+ }
568
+ function IntIterator() {
569
+ }
570
+ protoOf(IntIterator).h = function () {
571
+ return this.y();
572
+ };
573
+ function getProgressionLastElement(start, end, step) {
574
+ var tmp;
575
+ if (step > 0) {
576
+ tmp = start >= end ? end : end - differenceModulo(end, start, step) | 0;
577
+ } else if (step < 0) {
578
+ tmp = start <= end ? end : end + differenceModulo(start, end, -step | 0) | 0;
579
+ } else {
580
+ throw IllegalArgumentException_init_$Create$_0('Step is zero.');
581
+ }
582
+ return tmp;
583
+ }
584
+ function differenceModulo(a, b, c) {
585
+ return mod(mod(a, c) - mod(b, c) | 0, c);
586
+ }
587
+ function mod(a, b) {
588
+ var mod = a % b | 0;
589
+ return mod >= 0 ? mod : mod + b | 0;
590
+ }
591
+ function Companion_0() {
592
+ Companion_instance_0 = this;
593
+ this.z_1 = new IntRange(1, 0);
594
+ }
595
+ var Companion_instance_0;
596
+ function Companion_getInstance_0() {
597
+ if (Companion_instance_0 == null)
598
+ new Companion_0();
599
+ return Companion_instance_0;
600
+ }
601
+ function IntRange(start, endInclusive) {
602
+ Companion_getInstance_0();
603
+ IntProgression.call(this, start, endInclusive, 1);
604
+ }
605
+ protoOf(IntRange).toString = function () {
606
+ return '' + this.a1_1 + '..' + this.b1_1;
607
+ };
608
+ function IntProgressionIterator(first, last, step) {
609
+ IntIterator.call(this);
610
+ this.d1_1 = step;
611
+ this.e1_1 = last;
612
+ this.f1_1 = this.d1_1 > 0 ? first <= last : first >= last;
613
+ this.g1_1 = this.f1_1 ? first : this.e1_1;
614
+ }
615
+ protoOf(IntProgressionIterator).g = function () {
616
+ return this.f1_1;
617
+ };
618
+ protoOf(IntProgressionIterator).y = function () {
619
+ var value = this.g1_1;
620
+ if (value === this.e1_1) {
621
+ if (!this.f1_1)
622
+ throw NoSuchElementException_init_$Create$();
623
+ this.f1_1 = false;
624
+ } else {
625
+ this.g1_1 = this.g1_1 + this.d1_1 | 0;
626
+ }
627
+ return value;
628
+ };
629
+ function Companion_1() {
630
+ }
631
+ var Companion_instance_1;
632
+ function Companion_getInstance_1() {
633
+ return Companion_instance_1;
634
+ }
635
+ function IntProgression(start, endInclusive, step) {
636
+ if (step === 0)
637
+ throw IllegalArgumentException_init_$Create$_0('Step must be non-zero.');
638
+ if (step === IntCompanionObject_instance.MIN_VALUE)
639
+ throw IllegalArgumentException_init_$Create$_0('Step must be greater than Int.MIN_VALUE to avoid overflow on negation.');
640
+ this.a1_1 = start;
641
+ this.b1_1 = getProgressionLastElement(start, endInclusive, step);
642
+ this.c1_1 = step;
643
+ }
644
+ protoOf(IntProgression).f = function () {
645
+ return new IntProgressionIterator(this.a1_1, this.b1_1, this.c1_1);
646
+ };
647
+ protoOf(IntProgression).toString = function () {
648
+ return this.c1_1 > 0 ? '' + this.a1_1 + '..' + this.b1_1 + ' step ' + this.c1_1 : '' + this.a1_1 + ' downTo ' + this.b1_1 + ' step ' + (-this.c1_1 | 0);
649
+ };
650
+ function get_indices(_this__u8e3s4) {
651
+ return numberRangeToNumber(0, charSequenceLength(_this__u8e3s4) - 1 | 0);
652
+ }
653
+ function _UShort___init__impl__jigrne(data) {
654
+ return data;
655
+ }
656
+ function _UShort___get_data__impl__g0245($this) {
657
+ return $this;
658
+ }
659
+ //region block: init
660
+ Unit_instance = new Unit();
661
+ IntCompanionObject_instance = new IntCompanionObject();
662
+ Companion_instance_1 = new Companion_1();
663
+ //endregion
664
+ //region block: exports
665
+ _.$_$ = _.$_$ || {};
666
+ _.$_$.a = VOID;
667
+ _.$_$.b = IllegalArgumentException_init_$Create$_0;
668
+ _.$_$.c = charSequenceLength;
669
+ _.$_$.d = classMeta;
670
+ _.$_$.e = defineProp;
671
+ _.$_$.f = getStringHashCode;
672
+ _.$_$.g = interfaceMeta;
673
+ _.$_$.h = objectMeta;
674
+ _.$_$.i = protoOf;
675
+ _.$_$.j = setMetadataFor;
676
+ _.$_$.k = toString;
677
+ _.$_$.l = isBlank;
678
+ _.$_$.m = THROW_CCE;
679
+ //endregion
680
+ return _;
681
+ }(module.exports));
682
+
683
+ //# sourceMappingURL=kotlin-kotlin-stdlib.js.map