(function (root, factory) { if (typeof define === 'function' && define.amd) define(['exports', 'kotlin'], factory); else if (typeof exports === 'object') factory(module.exports, require('kotlin')); else { if (typeof kotlin === 'undefined') { throw new Error("Error loading module 'klock-root-klock-js-legacy'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'klock-root-klock-js-legacy'."); }root['klock-root-klock-js-legacy'] = factory(typeof this['klock-root-klock-js-legacy'] === 'undefined' ? {} : this['klock-root-klock-js-legacy'], kotlin); } }(this, function (_, Kotlin) { 'use strict'; var $$importsForInline$$ = _.$$importsForInline$$ || (_.$$importsForInline$$ = {}); var L1 = Kotlin.Long.ONE; var Kind_OBJECT = Kotlin.Kind.OBJECT; var abs = Kotlin.kotlin.math.abs_za3lpa$; var padStart = Kotlin.kotlin.text.padStart_vrc1nu$; var Kind_CLASS = Kotlin.Kind.CLASS; var Comparable = Kotlin.kotlin.Comparable; var RuntimeException_init = Kotlin.kotlin.RuntimeException_init_pdl1vj$; var RuntimeException = Kotlin.kotlin.RuntimeException; var Throwable = Error; var ensureNotNull = Kotlin.ensureNotNull; var listOf = Kotlin.kotlin.collections.listOf_i5x0yv$; var Kind_INTERFACE = Kotlin.Kind.INTERFACE; var Enum = Kotlin.kotlin.Enum; var throwISE = Kotlin.throwISE; var IllegalStateException_init = Kotlin.kotlin.IllegalStateException_init_pdl1vj$; var JsMath = Math; var listOf_0 = Kotlin.kotlin.collections.listOf_mh5how$; var listOfNotNull = Kotlin.kotlin.collections.listOfNotNull_jurz7g$; var emptyList = Kotlin.kotlin.collections.emptyList_287e2$; var collectionSizeOrDefault = Kotlin.kotlin.collections.collectionSizeOrDefault_ba2ldo$; var ArrayList_init = Kotlin.kotlin.collections.ArrayList_init_ww73n8$; var plus = Kotlin.kotlin.collections.plus_mydzjv$; var first = Kotlin.kotlin.collections.first_2p1efm$; var getOrNull = Kotlin.kotlin.collections.getOrNull_yzln2o$; var equals = Kotlin.equals; var toMutableList = Kotlin.kotlin.collections.toMutableList_4c7yge$; var until = Kotlin.kotlin.ranges.until_dqglrj$; var slice = Kotlin.kotlin.collections.slice_6bjbi1$; var firstOrNull = Kotlin.kotlin.collections.firstOrNull_2p1efm$; var lastOrNull = Kotlin.kotlin.collections.lastOrNull_2p1efm$; var toList = Kotlin.kotlin.collections.toList_us0mfu$; var toList_0 = Kotlin.kotlin.collections.toList_7wnvza$; var sortedWith = Kotlin.kotlin.collections.sortedWith_eknfly$; var wrapFunction = Kotlin.wrapFunction; var Comparator = Kotlin.kotlin.Comparator; var ArrayList_init_0 = Kotlin.kotlin.collections.ArrayList_init_287e2$; var joinToString = Kotlin.kotlin.collections.joinToString_fmv235$; var endsWith = Kotlin.kotlin.text.endsWith_sgbm27$; var replace = Kotlin.kotlin.text.replace_r2fvfm$; var unboxChar = Kotlin.unboxChar; var numberToInt = Kotlin.numberToInt; var StringBuilder_init = Kotlin.kotlin.text.StringBuilder_init; var NotImplementedError_init = Kotlin.kotlin.NotImplementedError; var indexOf = Kotlin.kotlin.collections.indexOf_mjy6jw$; var defineInlineFunction = Kotlin.defineInlineFunction; var Array_0 = Array; var startsWith = Kotlin.kotlin.text.startsWith_7epoxm$; var startsWith_0 = Kotlin.kotlin.text.startsWith_sgbm27$; var drop = Kotlin.kotlin.collections.drop_ba2ldo$; var zip = Kotlin.kotlin.collections.zip_45mdf7$; var toInt = Kotlin.kotlin.text.toInt_pdl1vz$; var toDouble = Kotlin.kotlin.text.toDouble_pdl1vz$; var first_0 = Kotlin.kotlin.text.first_gw00vp$; var drop_0 = Kotlin.kotlin.text.drop_6ic1pp$; var take = Kotlin.kotlin.text.take_6ic1pp$; var substringBefore = Kotlin.kotlin.text.substringBefore_8cymmc$; var substringAfter = Kotlin.kotlin.text.substringAfter_8cymmc$; var LinkedHashMap_init = Kotlin.kotlin.collections.LinkedHashMap_init_q3lmfv$; var Regex = Kotlin.kotlin.text.Regex; var Regex_init = Kotlin.kotlin.text.Regex_init_61zpoe$; var checkIndexOverflow = Kotlin.kotlin.collections.checkIndexOverflow_za3lpa$; var reversed = Kotlin.kotlin.collections.reversed_7wnvza$; var kotlin_js_internal_DoubleCompanionObject = Kotlin.kotlin.js.internal.DoubleCompanionObject; var plus_0 = Kotlin.kotlin.collections.plus_iwxh38$; var to = Kotlin.kotlin.to_ujzrz7$; var toMap = Kotlin.kotlin.collections.toMap_v2dak7$; var Annotation = Kotlin.kotlin.Annotation; var kotlin = Kotlin.kotlin; var PrimitiveClasses$intClass = Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.intClass; var Long = Kotlin.Long; var PrimitiveClasses$doubleClass = Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.doubleClass; var sum = Kotlin.kotlin.collections.sum_dmxgdv$; var minOrNull = Kotlin.kotlin.collections.minOrNull_l63kqw$; var maxOrNull = Kotlin.kotlin.collections.maxOrNull_l63kqw$; var println = Kotlin.kotlin.io.println_s8jyv4$; var getKClass = Kotlin.getKClass; var throwCCE = Kotlin.throwCCE; var round = Kotlin.kotlin.math.round_14dthe$; var removeSuffix = Kotlin.kotlin.text.removeSuffix_gsj5wt$; var toBoxedChar = Kotlin.toBoxedChar; var get_indices = Kotlin.kotlin.text.get_indices_gw00vp$; var coerceAtMost = Kotlin.kotlin.ranges.coerceAtMost_dqglrj$; var toIntOrNull = Kotlin.kotlin.text.toIntOrNull_pdl1vz$; var toDoubleOrNull = Kotlin.kotlin.text.toDoubleOrNull_pdl1vz$; var CharRange = Kotlin.kotlin.ranges.CharRange; var replace_0 = Kotlin.kotlin.text.replace_680rmw$; var padEnd = Kotlin.kotlin.text.padEnd_vrc1nu$; var substring = Kotlin.kotlin.text.substring_fc3b62$; var substringBeforeLast = Kotlin.kotlin.text.substringBeforeLast_8cymmc$; var lazy = Kotlin.kotlin.lazy_klfg04$; DateException.prototype = Object.create(RuntimeException.prototype); DateException.prototype.constructor = DateException; DateTime$Companion$DatePart.prototype = Object.create(Enum.prototype); DateTime$Companion$DatePart.prototype.constructor = DateTime$Companion$DatePart; DayOfWeek.prototype = Object.create(Enum.prototype); DayOfWeek.prototype.constructor = DayOfWeek; KlockLocale$English.prototype = Object.create(KlockLocale.prototype); KlockLocale$English.prototype.constructor = KlockLocale$English; KlockLocale$English$Companion.prototype = Object.create(KlockLocale$English.prototype); KlockLocale$English$Companion.prototype.constructor = KlockLocale$English$Companion; KlockLocaleGender.prototype = Object.create(Enum.prototype); KlockLocaleGender.prototype.constructor = KlockLocaleGender; Month.prototype = Object.create(Enum.prototype); Month.prototype.constructor = Month; GermanKlockLocale.prototype = Object.create(KlockLocale.prototype); GermanKlockLocale.prototype.constructor = GermanKlockLocale; GermanKlockLocale$Companion.prototype = Object.create(GermanKlockLocale.prototype); GermanKlockLocale$Companion.prototype.constructor = GermanKlockLocale$Companion; SpanishKlockLocale.prototype = Object.create(KlockLocale.prototype); SpanishKlockLocale.prototype.constructor = SpanishKlockLocale; SpanishKlockLocale$Companion.prototype = Object.create(SpanishKlockLocale.prototype); SpanishKlockLocale$Companion.prototype.constructor = SpanishKlockLocale$Companion; FrenchKlockLocale.prototype = Object.create(KlockLocale.prototype); FrenchKlockLocale.prototype.constructor = FrenchKlockLocale; FrenchKlockLocale$Companion.prototype = Object.create(FrenchKlockLocale.prototype); FrenchKlockLocale$Companion.prototype.constructor = FrenchKlockLocale$Companion; ItalianKlockLocale.prototype = Object.create(KlockLocale.prototype); ItalianKlockLocale.prototype.constructor = ItalianKlockLocale; ItalianKlockLocale$Companion.prototype = Object.create(ItalianKlockLocale.prototype); ItalianKlockLocale$Companion.prototype.constructor = ItalianKlockLocale$Companion; JapaneseKlockLocale.prototype = Object.create(KlockLocale.prototype); JapaneseKlockLocale.prototype.constructor = JapaneseKlockLocale; JapaneseKlockLocale$Companion.prototype = Object.create(JapaneseKlockLocale.prototype); JapaneseKlockLocale$Companion.prototype.constructor = JapaneseKlockLocale$Companion; KoreanKlockLocale.prototype = Object.create(KlockLocale.prototype); KoreanKlockLocale.prototype.constructor = KoreanKlockLocale; KoreanKlockLocale$Companion.prototype = Object.create(KoreanKlockLocale.prototype); KoreanKlockLocale$Companion.prototype.constructor = KoreanKlockLocale$Companion; NorwegianKlockLocale.prototype = Object.create(KlockLocale.prototype); NorwegianKlockLocale.prototype.constructor = NorwegianKlockLocale; NorwegianKlockLocale$Companion.prototype = Object.create(NorwegianKlockLocale.prototype); NorwegianKlockLocale$Companion.prototype.constructor = NorwegianKlockLocale$Companion; DutchKlockLocale.prototype = Object.create(KlockLocale.prototype); DutchKlockLocale.prototype.constructor = DutchKlockLocale; DutchKlockLocale$Companion.prototype = Object.create(DutchKlockLocale.prototype); DutchKlockLocale$Companion.prototype.constructor = DutchKlockLocale$Companion; PortugueseKlockLocale.prototype = Object.create(KlockLocale.prototype); PortugueseKlockLocale.prototype.constructor = PortugueseKlockLocale; PortugueseKlockLocale$Companion.prototype = Object.create(PortugueseKlockLocale.prototype); PortugueseKlockLocale$Companion.prototype.constructor = PortugueseKlockLocale$Companion; RussianKlockLocale.prototype = Object.create(KlockLocale.prototype); RussianKlockLocale.prototype.constructor = RussianKlockLocale; RussianKlockLocale$Companion.prototype = Object.create(RussianKlockLocale.prototype); RussianKlockLocale$Companion.prototype.constructor = RussianKlockLocale$Companion; SwedishKlockLocale.prototype = Object.create(KlockLocale.prototype); SwedishKlockLocale.prototype.constructor = SwedishKlockLocale; SwedishKlockLocale$Companion.prototype = Object.create(SwedishKlockLocale.prototype); SwedishKlockLocale$Companion.prototype.constructor = SwedishKlockLocale$Companion; UkrainianKlockLocale.prototype = Object.create(KlockLocale.prototype); UkrainianKlockLocale.prototype.constructor = UkrainianKlockLocale; UkrainianKlockLocale$Companion.prototype = Object.create(UkrainianKlockLocale.prototype); UkrainianKlockLocale$Companion.prototype.constructor = UkrainianKlockLocale$Companion; ChineseKlockLocale.prototype = Object.create(KlockLocale.prototype); ChineseKlockLocale.prototype.constructor = ChineseKlockLocale; ChineseKlockLocale$Companion.prototype = Object.create(ChineseKlockLocale.prototype); ChineseKlockLocale$Companion.prototype.constructor = ChineseKlockLocale$Companion; function Date_0(encoded) { Date$Companion_getInstance(); this.encoded = encoded; } function Date$Companion() { Date$Companion_instance = this; this.serialVersionUID_0 = L1; } Date$Companion.prototype.invoke_qt1dr2$ = function (year, month, day) { return new Date_0(year << 16 | month << 8 | day << 0); }; Date$Companion.prototype.invoke_uza4s2$ = function (year, month, day) { return Date$Companion_getInstance().invoke_qt1dr2$(year, month.index1, day); }; Date$Companion.prototype.invoke_mo62bp$ = function (year, month, day) { return Date$Companion_getInstance().invoke_qt1dr2$(year.year, month.index1, day); }; Date$Companion.prototype.invoke_fgzd47$ = function (yearMonth, day) { return Date$Companion_getInstance().invoke_qt1dr2$(yearMonth.yearInt, yearMonth.month1, day); }; Date$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var Date$Companion_instance = null; function Date$Companion_getInstance() { if (Date$Companion_instance === null) { new Date$Companion(); }return Date$Companion_instance; } Object.defineProperty(Date_0.prototype, 'year', { configurable: true, get: function () { return this.encoded >> 16; } }); Object.defineProperty(Date_0.prototype, 'month1', { configurable: true, get: function () { return this.encoded >>> 8 & 255; } }); Object.defineProperty(Date_0.prototype, 'month', { configurable: true, get: function () { return Month$Companion_getInstance().get_za3lpa$(this.month1); } }); Object.defineProperty(Date_0.prototype, 'day', { configurable: true, get: function () { return this.encoded >>> 0 & 255; } }); Object.defineProperty(Date_0.prototype, 'yearYear', { configurable: true, get: function () { return new Year(this.year); } }); Object.defineProperty(Date_0.prototype, 'dateTimeDayStart', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_qw7meq$(this.year, this.month, this.day); } }); Object.defineProperty(Date_0.prototype, 'dayOfYear', { configurable: true, get: function () { return this.dateTimeDayStart.dayOfYear; } }); Object.defineProperty(Date_0.prototype, 'dayOfWeek', { configurable: true, get: function () { return this.dateTimeDayStart.dayOfWeek; } }); Object.defineProperty(Date_0.prototype, 'dayOfWeekInt', { configurable: true, get: function () { return this.dateTimeDayStart.dayOfWeekInt; } }); Date_0.prototype.format_61zpoe$ = function (format) { return this.dateTimeDayStart.format_61zpoe$(format); }; Date_0.prototype.format_cgtbg3$ = function (format) { return this.dateTimeDayStart.format_cgtbg3$(format); }; Date_0.prototype.toString = function () { return (this.year < 0 ? '-' : '') + abs(this.year).toString() + '-' + padStart(abs(this.month1).toString(), 2, 48) + '-' + padStart(abs(this.day).toString(), 2, 48); }; Date_0.prototype.compareTo_11rb$ = function (other) { return Kotlin.primitiveCompareTo(this.encoded, other.encoded); }; Date_0.$metadata$ = { kind: Kind_CLASS, simpleName: 'Date', interfaces: [Serializable, Comparable] }; Date_0.prototype.unbox = function () { return this.encoded; }; Date_0.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.encoded) | 0; return result; }; Date_0.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.encoded, other.encoded)))); }; function plus_1($receiver, time) { return $receiver.dateTimeDayStart.plus_fv8bff$(time).date; } function plus_2($receiver, time) { return $receiver.dateTimeDayStart.plus_glepj8$(time).date; } function plus_3($receiver, time) { return $receiver.dateTimeDayStart.plus_5gml0z$(time).date; } function plus_4($receiver, time) { return DateTime$Companion_getInstance().createAdjusted_ui44o2$($receiver.year, $receiver.month1, $receiver.day, time.hour, time.minute, time.second, time.millisecond); } function minus($receiver, time) { return $receiver.dateTimeDayStart.minus_fv8bff$(time).date; } function minus_0($receiver, time) { return $receiver.dateTimeDayStart.minus_glepj8$(time).date; } function minus_1($receiver, time) { return $receiver.dateTimeDayStart.minus_5gml0z$(time).date; } function minus_2($receiver, time) { return DateTime$Companion_getInstance().createAdjusted_ui44o2$($receiver.year, $receiver.month1, $receiver.day, -time.hour | 0, -time.minute | 0, -time.second | 0, -time.millisecond | 0); } function DateException(msg) { RuntimeException_init(msg, this); this.name = 'DateException'; } DateException.$metadata$ = { kind: Kind_CLASS, simpleName: 'DateException', interfaces: [RuntimeException] }; function DateFormat() { DateFormat$Companion_getInstance(); } DateFormat.prototype.tryParse_ivxn3r$ = function (str, doThrow, callback$default) { if (doThrow === void 0) doThrow = false; return callback$default ? callback$default(str, doThrow) : this.tryParse_ivxn3r$$default(str, doThrow); }; function DateFormat$Companion() { DateFormat$Companion_instance = this; this.DEFAULT_FORMAT = DateFormat$Companion_getInstance().invoke_61zpoe$('EEE, dd MMM yyyy HH:mm:ss z'); this.FORMAT1 = DateFormat$Companion_getInstance().invoke_61zpoe$("yyyy-MM-dd'T'HH:mm:ssXXX"); this.FORMAT2 = DateFormat$Companion_getInstance().invoke_61zpoe$("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); this.FORMAT_DATE = DateFormat$Companion_getInstance().invoke_61zpoe$('yyyy-MM-dd'); this.FORMATS = listOf([this.DEFAULT_FORMAT, this.FORMAT1, this.FORMAT2, this.FORMAT_DATE]); } DateFormat$Companion.prototype.parse_61zpoe$ = function (date) { var tmp$; var lastError = null; tmp$ = this.FORMATS.iterator(); while (tmp$.hasNext()) { var format = tmp$.next(); try { return parse(format, date); } catch (e) { if (Kotlin.isType(e, Throwable)) { lastError = e; } else throw e; } } throw ensureNotNull(lastError); }; DateFormat$Companion.prototype.invoke_61zpoe$ = function (pattern) { return new PatternDateFormat(pattern); }; DateFormat$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DateFormat$Companion_instance = null; function DateFormat$Companion_getInstance() { if (DateFormat$Companion_instance === null) { new DateFormat$Companion(); }return DateFormat$Companion_instance; } DateFormat.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'DateFormat', interfaces: [] }; function parse($receiver, str) { var tmp$; tmp$ = $receiver.tryParse_ivxn3r$(str, true); if (tmp$ == null) { throw new DateException("Not a valid format: '" + str + "' for '" + $receiver + "'"); }return tmp$; } function parseDate($receiver, str) { return parse($receiver, str).local.date; } function parseUtc($receiver, str) { return parse($receiver, str).utc; } function format($receiver, date) { return format_1($receiver, DateTime$Companion_getInstance().fromUnix_14dthe$(date)); } function format_0($receiver, date) { return format_1($receiver, DateTime$Companion_getInstance().fromUnix_s8cxhz$(date)); } function format_1($receiver, dd) { return $receiver.format_j01w8f$(dd.toOffsetUnadjusted_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$(0))); } function format_2($receiver, dd) { return format_1($receiver, dd.dateTimeDayStart); } function DateTime(unixMillis) { DateTime$Companion_getInstance(); this.unixMillis = unixMillis; } function DateTime$Companion() { DateTime$Companion_instance = this; this.serialVersionUID_0 = L1; this.EPOCH = new DateTime(0.0); this.EPOCH_INTERNAL_MILLIS_8be2vx$ = 6.21355968E13; } DateTime$Companion.prototype.invoke_4lrum3$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return new DateTime(DateTime$Companion_getInstance().dateToMillis_0(year.year, month.index1, day) + DateTime$Companion_getInstance().timeToMillis_0(hour, minute, second) + milliseconds); }; DateTime$Companion.prototype.invoke_6h4hbf$ = function (date, time) { if (time === void 0) { time = new Time(TimeSpan.Companion.fromMilliseconds_14dthe$(0)); }return DateTime$Companion_getInstance().invoke_ui44o2$(date.year, date.month1, date.day, time.hour, time.minute, time.second, time.millisecond); }; DateTime$Companion.prototype.invoke_qw7meq$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return new DateTime(DateTime$Companion_getInstance().dateToMillis_0(year, month.index1, day) + DateTime$Companion_getInstance().timeToMillis_0(hour, minute, second) + milliseconds); }; DateTime$Companion.prototype.invoke_ui44o2$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return new DateTime(DateTime$Companion_getInstance().dateToMillis_0(year, month, day) + DateTime$Companion_getInstance().timeToMillis_0(hour, minute, second) + milliseconds); }; DateTime$Companion.prototype.createClamped_ui44o2$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; var clampedMonth = clamp_2(month, 1, 12); return this.createUnchecked_ui44o2$(year, clampedMonth, clamp_2(day, 1, Month$Companion_getInstance().invoke_za3lpa$(month).days_za3lpa$(year)), clamp_2(hour, 0, 23), clamp_2(minute, 0, 59), clamp_2(second, 0, 59), milliseconds); }; DateTime$Companion.prototype.createAdjusted_ui44o2$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; var dy = year; var dm = month; var dd = day; var th = hour; var tm = minute; var ts = second; tm = tm + cycleSteps(ts, 0, 59) | 0; ts = cycle(ts, 0, 59); th = th + cycleSteps(tm, 0, 59) | 0; tm = cycle(tm, 0, 59); dd = dd + cycleSteps(th, 0, 23) | 0; th = cycle(th, 0, 23); while (true) { var dup = Month$Companion_getInstance().invoke_za3lpa$(dm).days_za3lpa$(dy); dm = dm + cycleSteps(dd, 1, dup) | 0; dd = cycle(dd, 1, dup); dy = dy + cycleSteps(dm, 1, 12) | 0; dm = cycle(dm, 1, 12); if (cycle(dd, 1, Month$Companion_getInstance().invoke_za3lpa$(dm).days_za3lpa$(dy)) === dd) { break; }} return this.createUnchecked_ui44o2$(dy, dm, dd, th, tm, ts, milliseconds); }; DateTime$Companion.prototype.createUnchecked_ui44o2$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return new DateTime(DateTime$Companion_getInstance().dateToMillisUnchecked_cub51b$(year, month, day) + DateTime$Companion_getInstance().timeToMillisUnchecked_0(hour, minute, second) + milliseconds); }; DateTime$Companion.prototype.invoke_s8cxhz$ = function (unix) { return this.fromUnix_s8cxhz$(unix); }; DateTime$Companion.prototype.invoke_14dthe$ = function (unix) { return this.fromUnix_14dthe$(unix); }; DateTime$Companion.prototype.fromUnix_14dthe$ = function (unix) { return new DateTime(unix); }; DateTime$Companion.prototype.fromUnix_s8cxhz$ = function (unix) { return this.fromUnix_14dthe$(unix.toNumber()); }; DateTime$Companion.prototype.fromString_61zpoe$ = function (str) { return DateFormat$Companion_getInstance().parse_61zpoe$(str); }; DateTime$Companion.prototype.parse_61zpoe$ = function (str) { return DateFormat$Companion_getInstance().parse_61zpoe$(str); }; DateTime$Companion.prototype.now = function () { return new DateTime(KlockInternal_getInstance().currentTime); }; DateTime$Companion.prototype.nowLocal = function () { return DateTimeTz$Companion_getInstance().nowLocal(); }; DateTime$Companion.prototype.nowUnix = function () { return KlockInternal_getInstance().currentTime; }; DateTime$Companion.prototype.nowUnixLong = function () { return Kotlin.Long.fromNumber(KlockInternal_getInstance().currentTime); }; function DateTime$Companion$DatePart(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function DateTime$Companion$DatePart_initFields() { DateTime$Companion$DatePart_initFields = function () { }; DateTime$Companion$DatePart$Year_instance = new DateTime$Companion$DatePart('Year', 0); DateTime$Companion$DatePart$DayOfYear_instance = new DateTime$Companion$DatePart('DayOfYear', 1); DateTime$Companion$DatePart$Month_instance = new DateTime$Companion$DatePart('Month', 2); DateTime$Companion$DatePart$Day_instance = new DateTime$Companion$DatePart('Day', 3); } var DateTime$Companion$DatePart$Year_instance; function DateTime$Companion$DatePart$Year_getInstance() { DateTime$Companion$DatePart_initFields(); return DateTime$Companion$DatePart$Year_instance; } var DateTime$Companion$DatePart$DayOfYear_instance; function DateTime$Companion$DatePart$DayOfYear_getInstance() { DateTime$Companion$DatePart_initFields(); return DateTime$Companion$DatePart$DayOfYear_instance; } var DateTime$Companion$DatePart$Month_instance; function DateTime$Companion$DatePart$Month_getInstance() { DateTime$Companion$DatePart_initFields(); return DateTime$Companion$DatePart$Month_instance; } var DateTime$Companion$DatePart$Day_instance; function DateTime$Companion$DatePart$Day_getInstance() { DateTime$Companion$DatePart_initFields(); return DateTime$Companion$DatePart$Day_instance; } DateTime$Companion$DatePart.$metadata$ = { kind: Kind_CLASS, simpleName: 'DatePart', interfaces: [Enum] }; function DateTime$Companion$DatePart$values() { return [DateTime$Companion$DatePart$Year_getInstance(), DateTime$Companion$DatePart$DayOfYear_getInstance(), DateTime$Companion$DatePart$Month_getInstance(), DateTime$Companion$DatePart$Day_getInstance()]; } DateTime$Companion$DatePart.values = DateTime$Companion$DatePart$values; function DateTime$Companion$DatePart$valueOf(name) { switch (name) { case 'Year': return DateTime$Companion$DatePart$Year_getInstance(); case 'DayOfYear': return DateTime$Companion$DatePart$DayOfYear_getInstance(); case 'Month': return DateTime$Companion$DatePart$Month_getInstance(); case 'Day': return DateTime$Companion$DatePart$Day_getInstance(); default:throwISE('No enum constant com.soywiz.klock.DateTime.Companion.DatePart.' + name); } } DateTime$Companion$DatePart.valueOf_61zpoe$ = DateTime$Companion$DatePart$valueOf; DateTime$Companion.prototype.dateToMillisUnchecked_cub51b$ = function (year, month, day) { return ((new Year(year)).daysSinceOne + Month$Companion_getInstance().invoke_za3lpa$(month).daysToStart_za3lpa$(year) + day - 1 | 0) * 86400000 - this.EPOCH_INTERNAL_MILLIS_8be2vx$; }; DateTime$Companion.prototype.timeToMillisUnchecked_0 = function (hour, minute, second) { return hour * 3600000 + minute * 60000 + second * 1000; }; DateTime$Companion.prototype.dateToMillis_0 = function (year, month, day) { var tmp$; Month$Companion_getInstance().checked_za3lpa$(month); tmp$ = Month$Companion_getInstance().invoke_za3lpa$(month).days_za3lpa$(year); if (!(1 <= day && day <= tmp$)) throw new DateException('Day ' + day + ' not valid for year=' + year + ' and month=' + month); return this.dateToMillisUnchecked_cub51b$(year, month, day); }; DateTime$Companion.prototype.timeToMillis_0 = function (hour, minute, second) { if (!(0 <= hour && hour <= 23)) throw new DateException('Hour ' + hour + ' not in 0..23'); if (!(0 <= minute && minute <= 59)) throw new DateException('Minute ' + minute + ' not in 0..59'); if (!(0 <= second && second <= 59)) throw new DateException('Second ' + second + ' not in 0..59'); return this.timeToMillisUnchecked_0(hour, minute, second); }; DateTime$Companion.prototype.getDatePart_2pm4tv$ = function (millis, part) { var tmp$; var totalDays = toInt2(millis / 86400000); var year = Year$Companion_getInstance().fromDays_za3lpa$(totalDays); if (part === DateTime$Companion$DatePart$Year_getInstance()) return year.year; var isLeap = year.isLeap; var startYearDays = year.daysSinceOne; var dayOfYear = 1 + umod(totalDays - startYearDays | 0, year.days) | 0; if (part === DateTime$Companion$DatePart$DayOfYear_getInstance()) return dayOfYear; var tmp$_0; if ((tmp$ = Month$Companion_getInstance().fromDayOfYear_fzusl$(dayOfYear, isLeap)) != null) tmp$_0 = tmp$; else { throw IllegalStateException_init(('Invalid dayOfYear=' + dayOfYear + ', isLeap=' + isLeap).toString()); } var month = tmp$_0; if (part === DateTime$Companion$DatePart$Month_getInstance()) return month.index1; var dayOfMonth = dayOfYear - month.daysToStart_6taknv$(isLeap) | 0; if (part === DateTime$Companion$DatePart$Day_getInstance()) return dayOfMonth; throw IllegalStateException_init('Invalid DATE_PART'.toString()); }; DateTime$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DateTime$Companion_instance = null; function DateTime$Companion_getInstance() { if (DateTime$Companion_instance === null) { new DateTime$Companion(); }return DateTime$Companion_instance; } Object.defineProperty(DateTime.prototype, 'yearOneMillis', { configurable: true, get: function () { return DateTime$Companion_getInstance().EPOCH_INTERNAL_MILLIS_8be2vx$ + this.unixMillis; } }); Object.defineProperty(DateTime.prototype, 'localOffset', { configurable: true, get: function () { return TimezoneOffset$Companion_getInstance().local_mw5vjr$(new DateTime(this.unixMillisDouble)); } }); Object.defineProperty(DateTime.prototype, 'unixMillisDouble', { configurable: true, get: function () { return this.unixMillis; } }); Object.defineProperty(DateTime.prototype, 'unixMillisLong', { configurable: true, get: function () { return Kotlin.Long.fromNumber(this.unixMillisDouble); } }); Object.defineProperty(DateTime.prototype, 'year', { configurable: true, get: function () { return new Year(this.yearInt); } }); Object.defineProperty(DateTime.prototype, 'yearInt', { configurable: true, get: function () { return DateTime$Companion_getInstance().getDatePart_2pm4tv$(this.yearOneMillis, DateTime$Companion$DatePart$Year_getInstance()); } }); Object.defineProperty(DateTime.prototype, 'month', { configurable: true, get: function () { return Month$Companion_getInstance().get_za3lpa$(this.month1); } }); Object.defineProperty(DateTime.prototype, 'month0', { configurable: true, get: function () { return this.month1 - 1 | 0; } }); Object.defineProperty(DateTime.prototype, 'month1', { configurable: true, get: function () { return DateTime$Companion_getInstance().getDatePart_2pm4tv$(this.yearOneMillis, DateTime$Companion$DatePart$Month_getInstance()); } }); Object.defineProperty(DateTime.prototype, 'yearMonth', { configurable: true, get: function () { return YearMonth$Companion_getInstance().invoke_wk05xp$(this.year, this.month); } }); Object.defineProperty(DateTime.prototype, 'dayOfMonth', { configurable: true, get: function () { return DateTime$Companion_getInstance().getDatePart_2pm4tv$(this.yearOneMillis, DateTime$Companion$DatePart$Day_getInstance()); } }); Object.defineProperty(DateTime.prototype, 'dayOfWeek', { configurable: true, get: function () { return DayOfWeek$Companion_getInstance().get_za3lpa$(this.dayOfWeekInt); } }); Object.defineProperty(DateTime.prototype, 'dayOfWeekInt', { configurable: true, get: function () { return toIntMod(this.yearOneMillis / 86400000 + 1, 7); } }); Object.defineProperty(DateTime.prototype, 'dayOfYear', { configurable: true, get: function () { return DateTime$Companion_getInstance().getDatePart_2pm4tv$(this.yearOneMillis, DateTime$Companion$DatePart$DayOfYear_getInstance()); } }); Object.defineProperty(DateTime.prototype, 'hours', { configurable: true, get: function () { return toIntMod(this.yearOneMillis / 3600000, 24); } }); Object.defineProperty(DateTime.prototype, 'minutes', { configurable: true, get: function () { return toIntMod(this.yearOneMillis / 60000, 60); } }); Object.defineProperty(DateTime.prototype, 'seconds', { configurable: true, get: function () { return toIntMod(this.yearOneMillis / 1000, 60); } }); Object.defineProperty(DateTime.prototype, 'milliseconds', { configurable: true, get: function () { return toIntMod(this.yearOneMillis, 1000); } }); Object.defineProperty(DateTime.prototype, 'localUnadjusted', { configurable: true, get: function () { return DateTimeTz$Companion_getInstance().local_rq74cp$(this, this.localOffset); } }); DateTime.prototype.toOffsetUnadjusted_fv8bff$ = function (offset) { return this.toOffsetUnadjusted_q6c6ai$(get_offset(offset)); }; DateTime.prototype.toOffsetUnadjusted_q6c6ai$ = function (offset) { return DateTimeTz$Companion_getInstance().local_rq74cp$(this, offset); }; Object.defineProperty(DateTime.prototype, 'local', { configurable: true, get: function () { return DateTimeTz$Companion_getInstance().utc_rq74cp$(this, this.localOffset); } }); DateTime.prototype.toOffset_fv8bff$ = function (offset) { return this.toOffset_q6c6ai$(get_offset(offset)); }; DateTime.prototype.toOffset_q6c6ai$ = function (offset) { return DateTimeTz$Companion_getInstance().utc_rq74cp$(this, offset); }; Object.defineProperty(DateTime.prototype, 'utc', { configurable: true, get: function () { return DateTimeTz$Companion_getInstance().utc_rq74cp$(this, TimezoneOffset$Companion_getInstance().invoke_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$(0))); } }); Object.defineProperty(DateTime.prototype, 'dateDayStart', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, 0, 0, 0, 0); } }); Object.defineProperty(DateTime.prototype, 'dateDayEnd', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, 23, 59, 59, 999); } }); Object.defineProperty(DateTime.prototype, 'quarter', { configurable: true, get: function () { return (this.month0 / 3 | 0) + 1 | 0; } }); Object.defineProperty(DateTime.prototype, 'startOfYear', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, Month$January_getInstance(), 1); } }); Object.defineProperty(DateTime.prototype, 'startOfMonth', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, 1); } }); Object.defineProperty(DateTime.prototype, 'startOfQuarter', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, Month$Companion_getInstance().get_za3lpa$(((this.quarter - 1 | 0) * 3 | 0) + 1 | 0), 1); } }); DateTime.prototype.startOfDayOfWeek_76hapz$ = function (day) { for (var n = 0; n < 7; n++) { var date = this.minus_fv8bff$(TimeSpan.Companion.fromDays_14dthe$(n)); if (date.dayOfWeek === day) return date.startOfDay; } throw IllegalStateException_init("Shouldn't happen".toString()); }; Object.defineProperty(DateTime.prototype, 'startOfWeek', { configurable: true, get: function () { return this.startOfDayOfWeek_76hapz$(DayOfWeek$Sunday_getInstance()); } }); Object.defineProperty(DateTime.prototype, 'startOfIsoWeek', { configurable: true, get: function () { return this.startOfDayOfWeek_76hapz$(DayOfWeek$Monday_getInstance()); } }); Object.defineProperty(DateTime.prototype, 'startOfDay', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth); } }); Object.defineProperty(DateTime.prototype, 'startOfHour', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, this.hours); } }); Object.defineProperty(DateTime.prototype, 'startOfMinute', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, this.hours, this.minutes); } }); Object.defineProperty(DateTime.prototype, 'startOfSecond', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, this.hours, this.minutes, this.seconds); } }); Object.defineProperty(DateTime.prototype, 'endOfYear', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, Month$December_getInstance(), 31, 23, 59, 59, 999); } }); Object.defineProperty(DateTime.prototype, 'endOfMonth', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.month.days_ccxljp$(this.year), 23, 59, 59, 999); } }); Object.defineProperty(DateTime.prototype, 'endOfQuarter', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, Month$Companion_getInstance().get_za3lpa$(((this.quarter - 1 | 0) * 3 | 0) + 3 | 0), this.month.days_ccxljp$(this.year), 23, 59, 59, 999); } }); DateTime.prototype.endOfDayOfWeek_76hapz$ = function (day) { for (var n = 0; n < 7; n++) { var date = this.plus_fv8bff$(TimeSpan.Companion.fromDays_14dthe$(n)); if (date.dayOfWeek === day) return date.endOfDay; } throw IllegalStateException_init("Shouldn't happen".toString()); }; Object.defineProperty(DateTime.prototype, 'endOfWeek', { configurable: true, get: function () { return this.endOfDayOfWeek_76hapz$(DayOfWeek$Monday_getInstance()); } }); Object.defineProperty(DateTime.prototype, 'endOfIsoWeek', { configurable: true, get: function () { return this.endOfDayOfWeek_76hapz$(DayOfWeek$Sunday_getInstance()); } }); Object.defineProperty(DateTime.prototype, 'endOfDay', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, 23, 59, 59, 999); } }); Object.defineProperty(DateTime.prototype, 'endOfHour', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, this.hours, 59, 59, 999); } }); Object.defineProperty(DateTime.prototype, 'endOfMinute', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, this.hours, this.minutes, 59, 999); } }); Object.defineProperty(DateTime.prototype, 'endOfSecond', { configurable: true, get: function () { return DateTime$Companion_getInstance().invoke_4lrum3$(this.year, this.month, this.dayOfMonth, this.hours, this.minutes, this.seconds, 999); } }); Object.defineProperty(DateTime.prototype, 'date', { configurable: true, get: function () { return Date$Companion_getInstance().invoke_qt1dr2$(this.yearInt, this.month1, this.dayOfMonth); } }); Object.defineProperty(DateTime.prototype, 'time', { configurable: true, get: function () { return Time$Companion_getInstance().invoke_tjonv8$(this.hours, this.minutes, this.seconds, this.milliseconds); } }); DateTime.prototype.plus_glepj8$ = function (delta) { return this.add_5wr77w$(delta.totalMonths, 0.0); }; DateTime.prototype.plus_5gml0z$ = function (delta) { return this.add_5wr77w$(delta.totalMonths, delta.totalMilliseconds); }; DateTime.prototype.plus_fv8bff$ = function (delta) { return this.add_5wr77w$(0, delta.milliseconds); }; DateTime.prototype.minus_glepj8$ = function (delta) { return this.plus_glepj8$(delta.unaryMinus()); }; DateTime.prototype.minus_5gml0z$ = function (delta) { return this.plus_5gml0z$(delta.unaryMinus()); }; DateTime.prototype.minus_fv8bff$ = function (delta) { return this.plus_fv8bff$(delta.unaryMinus()); }; DateTime.prototype.minus_mw5vjr$ = function (other) { var $receiver = this.unixMillisDouble - other.unixMillisDouble; return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); }; DateTime.prototype.compareTo_11rb$ = function (other) { return Kotlin.compareTo(this.unixMillis, other.unixMillis); }; DateTime.prototype.add_5wr77w$ = function (deltaMonths, deltaMilliseconds) { if (deltaMonths === 0 && deltaMilliseconds === 0.0) return this; else if (deltaMonths === 0) return new DateTime(this.unixMillis + deltaMilliseconds); else { var year = this.year; var month = this.month.index1; var day = this.dayOfMonth; var i = month - 1 + deltaMonths | 0; if (i >= 0) { month = i % 12 + 1 | 0; year = year.plus_za3lpa$(i / 12 | 0); } else { month = 12 + (i + 1 | 0) % 12 | 0; year = year.plus_za3lpa$((i - 11 | 0) / 12 | 0); } var days = Month$Companion_getInstance().invoke_za3lpa$(month).days_ccxljp$(year); if (day > days) day = days; return new DateTime(DateTime$Companion_getInstance().dateToMillisUnchecked_cub51b$(year.year, month, day) + this.yearOneMillis % 86400000 + deltaMilliseconds); } }; DateTime.prototype.add_e89ho5$ = function (dateSpan, timeSpan) { return this.add_5wr77w$(dateSpan.totalMonths, timeSpan.milliseconds); }; DateTime.prototype.copyDayOfMonth_4lrum3$ = function (year, month, dayOfMonth, hours, minutes, seconds, milliseconds) { if (year === void 0) year = this.year; if (month === void 0) month = this.month; if (dayOfMonth === void 0) dayOfMonth = this.dayOfMonth; if (hours === void 0) hours = this.hours; if (minutes === void 0) minutes = this.minutes; if (seconds === void 0) seconds = this.seconds; if (milliseconds === void 0) milliseconds = this.milliseconds; return DateTime$Companion_getInstance().invoke_4lrum3$(year, month, dayOfMonth, hours, minutes, seconds, milliseconds); }; DateTime.prototype.format_cgtbg3$ = function (format) { return format_1(format, this); }; DateTime.prototype.format_61zpoe$ = function (format) { return format_1(DateFormat$Companion_getInstance().invoke_61zpoe$(format), this); }; DateTime.prototype.toString_61zpoe$ = function (format) { return format_1(DateFormat$Companion_getInstance().invoke_61zpoe$(format), this); }; DateTime.prototype.toString_cgtbg3$ = function (format) { return format_1(format, this); }; DateTime.prototype.toString = function () { return format_1(DateFormat$Companion_getInstance().DEFAULT_FORMAT, this); }; DateTime.$metadata$ = { kind: Kind_CLASS, simpleName: 'DateTime', interfaces: [Serializable, Comparable] }; DateTime.prototype.unbox = function () { return this.unixMillis; }; DateTime.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.unixMillis) | 0; return result; }; DateTime.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.unixMillis, other.unixMillis)))); }; function max(a, b) { var tmp$ = DateTime$Companion_getInstance(); var a_0 = a.unixMillis; var b_0 = b.unixMillis; return tmp$.fromUnix_14dthe$(JsMath.max(a_0, b_0)); } function min(a, b) { var tmp$ = DateTime$Companion_getInstance(); var a_0 = a.unixMillis; var b_0 = b.unixMillis; return tmp$.fromUnix_14dthe$(JsMath.min(a_0, b_0)); } function clamp($receiver, min, max) { if ($receiver.compareTo_11rb$(min) < 0) return min; else if ($receiver.compareTo_11rb$(max) > 0) return max; else return $receiver; } function DateTimeRange(from, to) { DateTimeRange$Companion_getInstance(); this.from = from; this.to = to; this.span_ot5r3q$_0 = klockLazyOrGet(DateTimeRange$span$lambda(this)); } Object.defineProperty(DateTimeRange.prototype, 'valid', { configurable: true, get: function () { return this.from.compareTo_11rb$(this.to) <= 0; } }); function DateTimeRange$Companion() { DateTimeRange$Companion_instance = this; this.serialVersionUID_0 = L1; } DateTimeRange$Companion.prototype.invoke_n9kft2$ = function (base, from, to) { return new DateTimeRange(plus_4(base, from), plus_4(base, to)); }; DateTimeRange$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DateTimeRange$Companion_instance = null; function DateTimeRange$Companion_getInstance() { if (DateTimeRange$Companion_instance === null) { new DateTimeRange$Companion(); }return DateTimeRange$Companion_instance; } Object.defineProperty(DateTimeRange.prototype, 'size', { configurable: true, get: function () { return this.to.minus_mw5vjr$(this.from); } }); Object.defineProperty(DateTimeRange.prototype, 'min', { configurable: true, get: function () { return this.from; } }); Object.defineProperty(DateTimeRange.prototype, 'max', { configurable: true, get: function () { return this.to; } }); Object.defineProperty(DateTimeRange.prototype, 'duration', { configurable: true, get: function () { return this.to.minus_mw5vjr$(this.from); } }); Object.defineProperty(DateTimeRange.prototype, 'span', { configurable: true, get: function () { return this.span_ot5r3q$_0.value; } }); DateTimeRange.prototype.contains_mw5vjr$ = function (date) { var unix = date.unixMillisDouble; var from = this.from.unixMillisDouble; var to = this.to.unixMillisDouble; return unix < from ? false : unix < to; }; DateTimeRange.prototype.contains_r8ew1g$ = function (other) { return other.min.compareTo_11rb$(this.min) >= 0 && other.max.compareTo_11rb$(this.max) <= 0; }; DateTimeRange.prototype._intersectionWith_0 = function (that, rightOpen, handler) { var from = max(this.from, that.from); var to = min(this.to, that.to); return handler(from, to, rightOpen ? from.compareTo_11rb$(to) < 0 : from.compareTo_11rb$(to) <= 0); }; DateTimeRange.prototype.intersectionWith_yhywpf$ = function (that, rightOpen) { if (rightOpen === void 0) rightOpen = true; var from = max(this.from, that.from); var to = min(this.to, that.to); var handler$result; if (rightOpen ? from.compareTo_11rb$(to) < 0 : from.compareTo_11rb$(to) <= 0) { handler$result = new DateTimeRange(from, to); } else { handler$result = null; } return handler$result; }; DateTimeRange.prototype.intersectsWith_yhywpf$ = function (that, rightOpen) { if (rightOpen === void 0) rightOpen = true; var from = max(this.from, that.from); var to = min(this.to, that.to); return rightOpen ? from.compareTo_11rb$(to) < 0 : from.compareTo_11rb$(to) <= 0; }; DateTimeRange.prototype.intersectsOrInContactWith_r8ew1g$ = function (that) { return this.intersectsWith_yhywpf$(that, false); }; DateTimeRange.prototype.mergeOnContactOrNull_r8ew1g$ = function (that) { if (!this.intersectsOrInContactWith_r8ew1g$(that)) return null; var min_0 = min(this.min, that.min); var max_0 = max(this.max, that.max); return new DateTimeRange(min_0, max_0); }; DateTimeRange.prototype.without_r8ew1g$ = function (that) { if (that.min.compareTo_11rb$(this.min) <= 0 && that.max.compareTo_11rb$(this.max) >= 0) { return emptyList(); } else if (that.min.compareTo_11rb$(this.max) >= 0 || that.max.compareTo_11rb$(this.min) <= 0) return listOf_0(this); else { var p0 = this.min; var p1 = that.min; var p2 = that.max; var p3 = this.max; var c1 = p0.compareTo_11rb$(p1) < 0 ? new DateTimeRange(p0, p1) : null; var c2 = p2.compareTo_11rb$(p3) < 0 ? new DateTimeRange(p2, p3) : null; return listOfNotNull([c1, c2]); } }; DateTimeRange.prototype.toString_cgtbg3$ = function (format) { return this.min.toString_cgtbg3$(format) + '..' + this.max.toString_cgtbg3$(format); }; DateTimeRange.prototype.toStringLongs = function () { return this.min.unixMillisLong.toString() + '..' + this.max.unixMillisLong.toString(); }; DateTimeRange.prototype.toString = function () { return this.toString_cgtbg3$(DateFormat$Companion_getInstance().FORMAT1); }; DateTimeRange.prototype.compareTo_11rb$ = function (other) { if (this.max.compareTo_11rb$(other) <= 0) return -1; if (this.min.compareTo_11rb$(other) > 0) return 1; return 0; }; function DateTimeRange$span$lambda(this$DateTimeRange) { return function () { var reverse = this$DateTimeRange.to.compareTo_11rb$(this$DateTimeRange.from) < 0; var rfrom = !reverse ? this$DateTimeRange.from : this$DateTimeRange.to; var rto = !reverse ? this$DateTimeRange.to : this$DateTimeRange.from; var years = 0; var months = 0; var pivot = rfrom; var diffYears = rto.year.minus_ccxljp$(pivot.year); pivot = pivot.plus_glepj8$(new MonthSpan(12 * diffYears | 0)); years = years + diffYears | 0; if (pivot.compareTo_11rb$(rto) > 0) { pivot = pivot.minus_glepj8$(new MonthSpan(12 * 1 | 0)); years = years - 1 | 0; }while (true) { var t = pivot.plus_glepj8$(new MonthSpan(1)); if (t.compareTo_11rb$(rto) <= 0) { months = months + 1 | 0; pivot = t; } else { break; } } var out = new DateTimeSpan((new MonthSpan(12 * years | 0)).plus_glepj8$(new MonthSpan(months)), rto.minus_mw5vjr$(pivot)); return reverse ? out.unaryMinus() : out; }; } DateTimeRange.$metadata$ = { kind: Kind_CLASS, simpleName: 'DateTimeRange', interfaces: [Serializable, Comparable] }; DateTimeRange.prototype.component1 = function () { return this.from; }; DateTimeRange.prototype.component2 = function () { return this.to; }; DateTimeRange.prototype.copy_4p96hy$ = function (from, to) { return new DateTimeRange(from === void 0 ? this.from : from, to === void 0 ? this.to : to); }; DateTimeRange.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.from) | 0; result = result * 31 + Kotlin.hashCode(this.to) | 0; return result; }; DateTimeRange.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.from, other.from) && Kotlin.equals(this.to, other.to))))); }; function toStringLongs($receiver) { var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10)); var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(item.toStringLongs()); } return destination.toString(); } function until_0($receiver, other) { return new DateTimeRange($receiver, other); } var compareBy$lambda = wrapFunction(function () { var compareValues = Kotlin.kotlin.comparisons.compareValues_s00gnj$; return function (closure$selector) { return function (a, b) { var selector = closure$selector; return compareValues(selector(a), selector(b)); }; }; }); var genericBinarySearch$lambda = wrapFunction(function () { return function (from, to, low, high) { return (-low | 0) - 1 | 0; }; }); function DateTimeRangeSet(dummy, ranges) { DateTimeRangeSet$Companion_getInstance(); this.dummy = dummy; this.ranges = ranges; var tmp$, tmp$_0, tmp$_1, tmp$_2; this.bounds = new DateTimeRange((tmp$_0 = (tmp$ = firstOrNull(this.ranges)) != null ? tmp$.from : null) != null ? tmp$_0 : DateTime$Companion_getInstance().EPOCH, (tmp$_2 = (tmp$_1 = lastOrNull(this.ranges)) != null ? tmp$_1.to : null) != null ? tmp$_2 : DateTime$Companion_getInstance().EPOCH); this.size_g9zhc7$_0 = klockLazyOrGet(DateTimeRangeSet$size$lambda(this)); } Object.defineProperty(DateTimeRangeSet.prototype, 'size', { configurable: true, get: function () { return this.size_g9zhc7$_0.value; } }); DateTimeRangeSet.prototype.plus_r8ew1g$ = function (range) { return this.plus_4hf5e6$(DateTimeRangeSet_init_0(range)); }; DateTimeRangeSet.prototype.plus_4hf5e6$ = function (right) { return DateTimeRangeSet_init(plus(this.ranges, right.ranges)); }; DateTimeRangeSet.prototype.minus_r8ew1g$ = function (range) { return this.minus_4hf5e6$(DateTimeRangeSet_init_0(range)); }; DateTimeRangeSet.prototype.minus_4hf5e6$ = function (right) { return DateTimeRangeSet$Fast_getInstance().minus_m25l59$(this, right); }; DateTimeRangeSet.prototype.contains_mw5vjr$ = function (time) { return DateTimeRangeSet$Fast_getInstance().contains_fijzrp$(time, this); }; DateTimeRangeSet.prototype.contains_r8ew1g$ = function (time) { return DateTimeRangeSet$Fast_getInstance().contains_7prg8a$(time, this); }; DateTimeRangeSet.prototype.intersection_r8ew1g$ = function (range) { return this.intersection_4hf5e6$(DateTimeRangeSet_init_0(range)); }; DateTimeRangeSet.prototype.intersection_arcm6d$ = function (range) { return this.intersection_4hf5e6$(DateTimeRangeSet_init_1(range.slice())); }; DateTimeRangeSet.prototype.intersection_4hf5e6$ = function (right) { return DateTimeRangeSet$Fast_getInstance().intersection_urhnu8$(this, right); }; function DateTimeRangeSet$Companion() { DateTimeRangeSet$Companion_instance = this; this.serialVersionUID_0 = L1; } DateTimeRangeSet$Companion.prototype.toStringLongs_4yh9xl$ = function (ranges) { var destination = ArrayList_init(collectionSizeOrDefault(ranges, 10)); var tmp$; tmp$ = ranges.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(item.toStringLongs()); } return destination.toString(); }; DateTimeRangeSet$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DateTimeRangeSet$Companion_instance = null; function DateTimeRangeSet$Companion_getInstance() { if (DateTimeRangeSet$Companion_instance === null) { new DateTimeRangeSet$Companion(); }return DateTimeRangeSet$Companion_instance; } function DateTimeRangeSet$Fast() { DateTimeRangeSet$Fast_instance = this; } function DateTimeRangeSet$Fast$combine$lambda(it) { return it.from.unixMillis; } DateTimeRangeSet$Fast.prototype.combine_7wyhd8$ = function (ranges) { var tmp$, tmp$_0; if (ranges.isEmpty()) return ranges; var sorted = sortedWith(ranges, new Comparator(compareBy$lambda(DateTimeRangeSet$Fast$combine$lambda))); var out = ArrayList_init_0(); var pivot = first(sorted); tmp$ = sorted.size; for (var n = 1; n < tmp$; n++) { var current = sorted.get_za3lpa$(n); var result = pivot.mergeOnContactOrNull_r8ew1g$(current); if (result != null) { tmp$_0 = result; } else { out.add_11rb$(pivot); tmp$_0 = current; } pivot = tmp$_0; } return plus(out, listOf_0(pivot)); }; DateTimeRangeSet$Fast.prototype.minus_m25l59$ = function (left, right) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; if (left.ranges.isEmpty() || right.ranges.isEmpty()) return left; var ll = left.ranges; var $receiver = right.ranges; var destination = ArrayList_init_0(); var tmp$_5; tmp$_5 = $receiver.iterator(); while (tmp$_5.hasNext()) { var element = tmp$_5.next(); if (element.intersectsWith_yhywpf$(left.bounds)) destination.add_11rb$(element); } var rr = destination; var lpos = 0; var rpos = 0; var l = getOrNull(ll, (tmp$ = lpos, lpos = tmp$ + 1 | 0, tmp$)); var r = getOrNull(rr, (tmp$_0 = rpos, rpos = tmp$_0 + 1 | 0, tmp$_0)); var out = ArrayList_init_0(); while (l != null && r != null) { var result = l.without_r8ew1g$(r); switch (result.size) { case 0: l = getOrNull(ll, (tmp$_1 = lpos, lpos = tmp$_1 + 1 | 0, tmp$_1)); break; case 1: if (r.from.compareTo_11rb$(l.to) >= 0) { out.add_11rb$(result.get_za3lpa$(0)); l = getOrNull(ll, (tmp$_2 = lpos, lpos = tmp$_2 + 1 | 0, tmp$_2)); } else if (equals(l, result.get_za3lpa$(0))) { r = getOrNull(rr, (tmp$_3 = rpos, rpos = tmp$_3 + 1 | 0, tmp$_3)); } else { l = result.get_za3lpa$(0); } break; default:out.add_11rb$(result.get_za3lpa$(0)); l = result.get_za3lpa$(1); break; } } if (l != null) { out.add_11rb$(l); }while (lpos < ll.size) { out.add_11rb$(ll.get_za3lpa$((tmp$_4 = lpos, lpos = tmp$_4 + 1 | 0, tmp$_4))); } return DateTimeRangeSet_init(out); }; DateTimeRangeSet$Fast.prototype.intersection_urhnu8$ = function (left, right) { var tmp$, tmp$_0; if (left.ranges.isEmpty() || right.ranges.isEmpty()) { return DateTimeRangeSet_init(emptyList()); }var $receiver = left.ranges; var destination = ArrayList_init_0(); var tmp$_1; tmp$_1 = $receiver.iterator(); while (tmp$_1.hasNext()) { var element = tmp$_1.next(); if (element.intersectsWith_yhywpf$(right.bounds)) destination.add_11rb$(element); } var ll = destination; var $receiver_0 = right.ranges; var destination_0 = ArrayList_init_0(); var tmp$_2; tmp$_2 = $receiver_0.iterator(); while (tmp$_2.hasNext()) { var element_0 = tmp$_2.next(); if (element_0.intersectsWith_yhywpf$(left.bounds)) destination_0.add_11rb$(element_0); } var rr = destination_0; var out = ArrayList_init_0(); var rpos = 0; tmp$ = ll.iterator(); while (tmp$.hasNext()) { var l = tmp$.next(); rpos = 0; while (rpos < rr.size) { tmp$_0 = getOrNull(rr, rpos); if (tmp$_0 == null) { break; }var r = tmp$_0; if (r.min.compareTo_11rb$(l.max) > 0) break; var res = l.intersectionWith_yhywpf$(r); if (res != null) { out.add_11rb$(res); }rpos = rpos + 1 | 0; } } return DateTimeRangeSet_init(out); }; DateTimeRangeSet$Fast.prototype.contains_fijzrp$ = function (time, rangeSet) { if (!rangeSet.bounds.contains_mw5vjr$(time)) return false; var ranges = rangeSet.ranges; var toIndex = ranges.size; var genericBinarySearch$result; genericBinarySearch$break: do { var low = 0; var high = toIndex - 1 | 0; while (low <= high) { var mid = (low + high | 0) / 2 | 0; var mval = ranges.get_za3lpa$(mid).compareTo_11rb$(time); if (mval < 0) low = mid + 1 | 0; else if (mval > 0) high = mid - 1 | 0; else { genericBinarySearch$result = mid; break genericBinarySearch$break; } } genericBinarySearch$result = (-low | 0) - 1 | 0; } while (false); var result = new BSearchResult(genericBinarySearch$result); return result.found; }; DateTimeRangeSet$Fast.prototype.contains_7prg8a$ = function (time, rangeSet) { if (!rangeSet.bounds.contains_r8ew1g$(time)) return false; var ranges = rangeSet.ranges; var toIndex = ranges.size; var genericBinarySearch$result; genericBinarySearch$break: do { var low = 0; var high = toIndex - 1 | 0; while (low <= high) { var mid = (low + high | 0) / 2 | 0; var check$result; var range = ranges.get_za3lpa$(mid); if (range.contains_r8ew1g$(time)) { check$result = 0; } else if (time.min.compareTo_11rb$(range.min) < 0) { check$result = 1; } else { check$result = -1; } var mval = check$result; if (mval < 0) low = mid + 1 | 0; else if (mval > 0) high = mid - 1 | 0; else { genericBinarySearch$result = mid; break genericBinarySearch$break; } } genericBinarySearch$result = (-low | 0) - 1 | 0; } while (false); var result = new BSearchResult(genericBinarySearch$result); return result.found; }; DateTimeRangeSet$Fast.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Fast', interfaces: [] }; var DateTimeRangeSet$Fast_instance = null; function DateTimeRangeSet$Fast_getInstance() { if (DateTimeRangeSet$Fast_instance === null) { new DateTimeRangeSet$Fast(); }return DateTimeRangeSet$Fast_instance; } function DateTimeRangeSet$Slow() { DateTimeRangeSet$Slow_instance = this; } DateTimeRangeSet$Slow.prototype.minus_m25l59$ = function (l, r) { var rightList = r.ranges; var out = toMutableList(l.ranges); restart: while (true) { var leftIndex = 0; for (var tmp$ = out.iterator(); tmp$.hasNext(); ++leftIndex) { var left = tmp$.next(); var tmp$_0, tmp$_1; tmp$_0 = rightList.iterator(); while (tmp$_0.hasNext()) { var right = tmp$_0.next(); var result = left.without_r8ew1g$(right); if (result.size !== 1 || !((tmp$_1 = result.get_za3lpa$(0)) != null ? tmp$_1.equals(left) : null)) { out = toMutableList(plus(plus(slice(out, until(0, leftIndex)), result), slice(out, until(leftIndex + 1 | 0, out.size)))); continue restart; }} } break; } return DateTimeRangeSet_init(out); }; DateTimeRangeSet$Slow.prototype.combine_7wyhd8$ = function (ranges) { var ranges_0 = toMutableList(ranges); restart: while (true) { for (var i = 0; i !== ranges_0.size; ++i) { for (var j = 0; j !== ranges_0.size; ++j) { if (i === j) continue; var ri = ranges_0.get_za3lpa$(i); var rj = ranges_0.get_za3lpa$(j); var concat = ri.mergeOnContactOrNull_r8ew1g$(rj); if (concat != null) { ranges_0.remove_11rb$(rj); ranges_0.set_wxm5ur$(i, concat); continue restart; }} } break; } return ranges_0; }; DateTimeRangeSet$Slow.prototype.intersection_urhnu8$ = function (left, right) { var tmp$, tmp$_0; var leftList = left.ranges; var rightList = right.ranges; var out = ArrayList_init_0(); tmp$ = leftList.iterator(); while (tmp$.hasNext()) { var l = tmp$.next(); tmp$_0 = rightList.iterator(); while (tmp$_0.hasNext()) { var r = tmp$_0.next(); if (r.min.compareTo_11rb$(l.max) > 0) break; var result = l.intersectionWith_yhywpf$(r); if (result != null) { out.add_11rb$(result); }} } return DateTimeRangeSet_init(out); }; DateTimeRangeSet$Slow.prototype.contains_fijzrp$ = function (time, rangeSet) { if (!rangeSet.bounds.contains_mw5vjr$(time)) return false; var $receiver = rangeSet.ranges; var tmp$; var n = 0; while (n < $receiver.size) { if ($receiver.get_za3lpa$((tmp$ = n, n = tmp$ + 1 | 0, tmp$)).contains_mw5vjr$(time)) return true; } return false; }; DateTimeRangeSet$Slow.prototype.contains_7prg8a$ = function (time, rangeSet) { if (!rangeSet.bounds.contains_r8ew1g$(time)) return false; var $receiver = rangeSet.ranges; var tmp$; var n = 0; while (n < $receiver.size) { if ($receiver.get_za3lpa$((tmp$ = n, n = tmp$ + 1 | 0, tmp$)).contains_r8ew1g$(time)) return true; } return false; }; DateTimeRangeSet$Slow.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Slow', interfaces: [] }; var DateTimeRangeSet$Slow_instance = null; function DateTimeRangeSet$Slow_getInstance() { if (DateTimeRangeSet$Slow_instance === null) { new DateTimeRangeSet$Slow(); }return DateTimeRangeSet$Slow_instance; } DateTimeRangeSet.prototype.toStringLongs = function () { var $receiver = this.ranges; var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10)); var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(item.toStringLongs()); } return destination.toString(); }; DateTimeRangeSet.prototype.toString = function () { return this.ranges.toString(); }; function DateTimeRangeSet$size$lambda(this$DateTimeRangeSet) { return function () { var out = {v: TimeSpan.Companion.fromSeconds_14dthe$(0)}; var $receiver = this$DateTimeRangeSet.ranges; var tmp$; var n = 0; while (n < $receiver.size) { out.v = out.v.plus_fv8bff$($receiver.get_za3lpa$((tmp$ = n, n = tmp$ + 1 | 0, tmp$)).size); } return out.v; }; } DateTimeRangeSet.$metadata$ = { kind: Kind_CLASS, simpleName: 'DateTimeRangeSet', interfaces: [Serializable] }; function DateTimeRangeSet_init(ranges, $this) { $this = $this || Object.create(DateTimeRangeSet.prototype); DateTimeRangeSet.call($this, false, DateTimeRangeSet$Fast_getInstance().combine_7wyhd8$(ranges)); return $this; } function DateTimeRangeSet_init_0(range, $this) { $this = $this || Object.create(DateTimeRangeSet.prototype); DateTimeRangeSet_init(listOf_0(range), $this); return $this; } function DateTimeRangeSet_init_1(ranges, $this) { $this = $this || Object.create(DateTimeRangeSet.prototype); DateTimeRangeSet_init(toList(ranges), $this); return $this; } DateTimeRangeSet.prototype.component1 = function () { return this.dummy; }; DateTimeRangeSet.prototype.component2 = function () { return this.ranges; }; DateTimeRangeSet.prototype.copy_wpbt9k$ = function (dummy, ranges) { return new DateTimeRangeSet(dummy === void 0 ? this.dummy : dummy, ranges === void 0 ? this.ranges : ranges); }; DateTimeRangeSet.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.dummy) | 0; result = result * 31 + Kotlin.hashCode(this.ranges) | 0; return result; }; DateTimeRangeSet.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.dummy, other.dummy) && Kotlin.equals(this.ranges, other.ranges))))); }; function toRangeSet($receiver) { return DateTimeRangeSet_init(toList_0($receiver)); } function DateTimeSpan(monthSpan, timeSpan) { DateTimeSpan$Companion_getInstance(); this.monthSpan = monthSpan; this.timeSpan = timeSpan; this.computed_a87s7m$_0 = klockLazyOrGet(DateTimeSpan$computed$lambda(this)); } function DateTimeSpan$Companion() { DateTimeSpan$Companion_instance = this; this.serialVersionUID_0 = L1; } DateTimeSpan$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DateTimeSpan$Companion_instance = null; function DateTimeSpan$Companion_getInstance() { if (DateTimeSpan$Companion_instance === null) { new DateTimeSpan$Companion(); }return DateTimeSpan$Companion_instance; } DateTimeSpan.prototype.unaryMinus = function () { return new DateTimeSpan(this.monthSpan.unaryMinus(), this.timeSpan.unaryMinus()); }; DateTimeSpan.prototype.unaryPlus = function () { return new DateTimeSpan(this.monthSpan.unaryPlus(), this.timeSpan.unaryPlus()); }; DateTimeSpan.prototype.plus_fv8bff$ = function (other) { return new DateTimeSpan(this.monthSpan, this.timeSpan.plus_fv8bff$(other)); }; DateTimeSpan.prototype.plus_glepj8$ = function (other) { return new DateTimeSpan(this.monthSpan.plus_glepj8$(other), this.timeSpan); }; DateTimeSpan.prototype.plus_5gml0z$ = function (other) { return new DateTimeSpan(this.monthSpan.plus_glepj8$(other.monthSpan), this.timeSpan.plus_fv8bff$(other.timeSpan)); }; DateTimeSpan.prototype.minus_fv8bff$ = function (other) { return this.plus_fv8bff$(other.unaryMinus()); }; DateTimeSpan.prototype.minus_glepj8$ = function (other) { return this.plus_glepj8$(other.unaryMinus()); }; DateTimeSpan.prototype.minus_5gml0z$ = function (other) { return this.plus_5gml0z$(other.unaryMinus()); }; DateTimeSpan.prototype.times_14dthe$ = function (times) { return new DateTimeSpan(this.monthSpan.times_14dthe$(times), this.timeSpan.times_14dthe$(times)); }; DateTimeSpan.prototype.times_za3lpa$ = function (times) { return this.times_14dthe$(times); }; DateTimeSpan.prototype.times_mx4ult$ = function (times) { return this.times_14dthe$(times); }; DateTimeSpan.prototype.div_14dthe$ = function (times) { return this.times_14dthe$(1.0 / times); }; DateTimeSpan.prototype.div_za3lpa$ = function (times) { return this.div_14dthe$(times); }; DateTimeSpan.prototype.div_mx4ult$ = function (times) { return this.div_14dthe$(times); }; Object.defineProperty(DateTimeSpan.prototype, 'totalYears', { configurable: true, get: function () { return get_totalYears(this.monthSpan); } }); Object.defineProperty(DateTimeSpan.prototype, 'totalMonths', { configurable: true, get: function () { return this.monthSpan.totalMonths; } }); Object.defineProperty(DateTimeSpan.prototype, 'totalMilliseconds', { configurable: true, get: function () { return this.timeSpan.milliseconds; } }); Object.defineProperty(DateTimeSpan.prototype, 'years', { configurable: true, get: function () { return get_years_0(this.monthSpan); } }); Object.defineProperty(DateTimeSpan.prototype, 'months', { configurable: true, get: function () { return get_months_0(this.monthSpan); } }); Object.defineProperty(DateTimeSpan.prototype, 'weeks', { configurable: true, get: function () { return this.computed_0.weeks; } }); Object.defineProperty(DateTimeSpan.prototype, 'daysNotIncludingWeeks', { configurable: true, get: function () { return this.days; } }); Object.defineProperty(DateTimeSpan.prototype, 'daysIncludingWeeks', { configurable: true, get: function () { return this.computed_0.days + (this.computed_0.weeks * 7 | 0) | 0; } }); Object.defineProperty(DateTimeSpan.prototype, 'days', { configurable: true, get: function () { return this.computed_0.days; } }); Object.defineProperty(DateTimeSpan.prototype, 'hours', { configurable: true, get: function () { return this.computed_0.hours; } }); Object.defineProperty(DateTimeSpan.prototype, 'minutes', { configurable: true, get: function () { return this.computed_0.minutes; } }); Object.defineProperty(DateTimeSpan.prototype, 'seconds', { configurable: true, get: function () { return this.computed_0.seconds; } }); Object.defineProperty(DateTimeSpan.prototype, 'milliseconds', { configurable: true, get: function () { return this.computed_0.milliseconds; } }); Object.defineProperty(DateTimeSpan.prototype, 'secondsIncludingMilliseconds', { configurable: true, get: function () { return this.computed_0.seconds + this.computed_0.milliseconds / 1000; } }); DateTimeSpan.prototype.compareTo_11rb$ = function (other) { if (this.totalMonths !== other.totalMonths) return this.monthSpan.compareTo_11rb$(other.monthSpan); return this.timeSpan.compareTo_11rb$(other.timeSpan); }; DateTimeSpan.prototype.toString_6taknv$ = function (includeWeeks) { var $receiver = ArrayList_init_0(); var tmp$, tmp$_0, tmp$_1; if (this.years !== 0) $receiver.add_11rb$(this.years.toString() + 'Y'); if (this.months !== 0) $receiver.add_11rb$(this.months.toString() + 'M'); if (includeWeeks && this.weeks !== 0) $receiver.add_11rb$(this.weeks.toString() + 'W'); if (this.days !== 0 || (!includeWeeks && this.weeks !== 0)) $receiver.add_11rb$((includeWeeks ? this.days : this.daysIncludingWeeks).toString() + 'D'); if (this.hours !== 0) $receiver.add_11rb$(this.hours.toString() + 'H'); if (this.minutes !== 0) $receiver.add_11rb$(this.minutes.toString() + 'm'); if (this.seconds !== 0 || this.milliseconds !== 0.0) $receiver.add_11rb$(this.secondsIncludingMilliseconds.toString() + 's'); var tmp$_2 = (tmp$ = this.monthSpan) != null ? tmp$.equals(new MonthSpan(12 * 0 | 0)) : null; if (tmp$_2) { var tmp$_3 = (tmp$_0 = this.timeSpan) != null ? tmp$_0.equals(TimeSpan.Companion.fromSeconds_14dthe$(0)) : null; if (!tmp$_3) { tmp$_3 = (tmp$_1 = this.timeSpan) != null ? tmp$_1.equals(TimeSpan.Companion.fromSeconds_14dthe$(0)) : null; }tmp$_2 = tmp$_3; }if (tmp$_2) $receiver.add_11rb$('0s'); return joinToString($receiver, ' '); }; DateTimeSpan.prototype.toString = function () { return this.toString_6taknv$(true); }; function DateTimeSpan$ComputedTime(weeks, days, hours, minutes, seconds, milliseconds) { DateTimeSpan$ComputedTime$Companion_getInstance(); this.weeks = weeks; this.days = days; this.hours = hours; this.minutes = minutes; this.seconds = seconds; this.milliseconds = milliseconds; } function DateTimeSpan$ComputedTime$Companion() { DateTimeSpan$ComputedTime$Companion_instance = this; } DateTimeSpan$ComputedTime$Companion.prototype.invoke_fv8bff$ = function (time) { var $receiver = new Moduler(time.milliseconds); var weeks = $receiver.int_za3lpa$(604800000); var days = $receiver.int_za3lpa$(86400000); var hours = $receiver.int_za3lpa$(3600000); var minutes = $receiver.int_za3lpa$(60000); var seconds = $receiver.int_za3lpa$(1000); var milliseconds = $receiver.double_za3lpa$(1); return new DateTimeSpan$ComputedTime(weeks, days, hours, minutes, seconds, milliseconds); }; DateTimeSpan$ComputedTime$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DateTimeSpan$ComputedTime$Companion_instance = null; function DateTimeSpan$ComputedTime$Companion_getInstance() { if (DateTimeSpan$ComputedTime$Companion_instance === null) { new DateTimeSpan$ComputedTime$Companion(); }return DateTimeSpan$ComputedTime$Companion_instance; } DateTimeSpan$ComputedTime.$metadata$ = { kind: Kind_CLASS, simpleName: 'ComputedTime', interfaces: [] }; Object.defineProperty(DateTimeSpan.prototype, 'computed_0', { configurable: true, get: function () { return this.computed_a87s7m$_0.value; } }); function DateTimeSpan$computed$lambda(this$DateTimeSpan) { return function () { return DateTimeSpan$ComputedTime$Companion_getInstance().invoke_fv8bff$(this$DateTimeSpan.timeSpan); }; } DateTimeSpan.$metadata$ = { kind: Kind_CLASS, simpleName: 'DateTimeSpan', interfaces: [Serializable, Comparable] }; function DateTimeSpan_init(years, months, weeks, days, hours, minutes, seconds, milliseconds, $this) { if (years === void 0) years = 0; if (months === void 0) months = 0; if (weeks === void 0) weeks = 0; if (days === void 0) days = 0; if (hours === void 0) hours = 0; if (minutes === void 0) minutes = 0; if (seconds === void 0) seconds = 0; if (milliseconds === void 0) milliseconds = 0.0; $this = $this || Object.create(DateTimeSpan.prototype); DateTimeSpan.call($this, (new MonthSpan(12 * years | 0)).plus_glepj8$(new MonthSpan(months)), TimeSpan.Companion.fromWeeks_14dthe$(weeks).plus_fv8bff$(TimeSpan.Companion.fromDays_14dthe$(days)).plus_fv8bff$(TimeSpan.Companion.fromHours_14dthe$(hours)).plus_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$(minutes)).plus_fv8bff$(TimeSpan.Companion.fromSeconds_14dthe$(seconds)).plus_fv8bff$(TimeSpan.Companion.fromMilliseconds_14dthe$(milliseconds))); return $this; } DateTimeSpan.prototype.component1 = function () { return this.monthSpan; }; DateTimeSpan.prototype.component2 = function () { return this.timeSpan; }; DateTimeSpan.prototype.copy_e89ho5$ = function (monthSpan, timeSpan) { return new DateTimeSpan(monthSpan === void 0 ? this.monthSpan : monthSpan, timeSpan === void 0 ? this.timeSpan : timeSpan); }; DateTimeSpan.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.monthSpan) | 0; result = result * 31 + Kotlin.hashCode(this.timeSpan) | 0; return result; }; DateTimeSpan.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.monthSpan, other.monthSpan) && Kotlin.equals(this.timeSpan, other.timeSpan))))); }; function DateTimeSpanFormat() { } DateTimeSpanFormat.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'DateTimeSpanFormat', interfaces: [] }; function format_3($receiver, dd) { return $receiver.format_5gml0z$(dd.plus_glepj8$(new MonthSpan(0))); } function format_4($receiver, dd) { return $receiver.format_5gml0z$(dd.plus_fv8bff$(TimeSpan.Companion.fromSeconds_14dthe$(0))); } function parse_0($receiver, str) { var tmp$; tmp$ = $receiver.tryParse_ivxn3r$(str, true); if (tmp$ == null) { throw new DateException("Not a valid format: '" + str + "' for '" + $receiver + "'"); }return tmp$; } function DateTimeTz(adjusted, offset) { DateTimeTz$Companion_getInstance(); this.adjusted_0 = adjusted; this.offset = offset; } function DateTimeTz$Companion() { DateTimeTz$Companion_instance = this; this.serialVersionUID_0 = L1; } DateTimeTz$Companion.prototype.local_rq74cp$ = function (local, offset) { return new DateTimeTz(local, offset); }; DateTimeTz$Companion.prototype.utc_rq74cp$ = function (utc, offset) { return new DateTimeTz(utc.plus_fv8bff$(offset.time), offset); }; DateTimeTz$Companion.prototype.fromUnixLocal_s8cxhz$ = function (unix) { return this.fromUnixLocal_14dthe$(unix.toNumber()); }; DateTimeTz$Companion.prototype.fromUnixLocal_14dthe$ = function (unix) { return (new DateTime(unix)).localUnadjusted; }; DateTimeTz$Companion.prototype.nowLocal = function () { return DateTime$Companion_getInstance().now().local; }; DateTimeTz$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DateTimeTz$Companion_instance = null; function DateTimeTz$Companion_getInstance() { if (DateTimeTz$Companion_instance === null) { new DateTimeTz$Companion(); }return DateTimeTz$Companion_instance; } Object.defineProperty(DateTimeTz.prototype, 'local', { configurable: true, get: function () { return this.adjusted_0; } }); Object.defineProperty(DateTimeTz.prototype, 'utc', { configurable: true, get: function () { return this.adjusted_0.minus_fv8bff$(this.offset.time); } }); Object.defineProperty(DateTimeTz.prototype, 'year', { configurable: true, get: function () { return this.adjusted_0.year; } }); Object.defineProperty(DateTimeTz.prototype, 'yearInt', { configurable: true, get: function () { return this.adjusted_0.yearInt; } }); Object.defineProperty(DateTimeTz.prototype, 'month', { configurable: true, get: function () { return this.adjusted_0.month; } }); Object.defineProperty(DateTimeTz.prototype, 'month0', { configurable: true, get: function () { return this.adjusted_0.month0; } }); Object.defineProperty(DateTimeTz.prototype, 'month1', { configurable: true, get: function () { return this.adjusted_0.month1; } }); Object.defineProperty(DateTimeTz.prototype, 'yearMonth', { configurable: true, get: function () { return this.adjusted_0.yearMonth; } }); Object.defineProperty(DateTimeTz.prototype, 'dayOfMonth', { configurable: true, get: function () { return this.adjusted_0.dayOfMonth; } }); Object.defineProperty(DateTimeTz.prototype, 'dayOfWeek', { configurable: true, get: function () { return this.adjusted_0.dayOfWeek; } }); Object.defineProperty(DateTimeTz.prototype, 'dayOfWeekInt', { configurable: true, get: function () { return this.adjusted_0.dayOfWeekInt; } }); Object.defineProperty(DateTimeTz.prototype, 'dayOfYear', { configurable: true, get: function () { return this.adjusted_0.dayOfYear; } }); Object.defineProperty(DateTimeTz.prototype, 'hours', { configurable: true, get: function () { return this.adjusted_0.hours; } }); Object.defineProperty(DateTimeTz.prototype, 'minutes', { configurable: true, get: function () { return this.adjusted_0.minutes; } }); Object.defineProperty(DateTimeTz.prototype, 'seconds', { configurable: true, get: function () { return this.adjusted_0.seconds; } }); Object.defineProperty(DateTimeTz.prototype, 'milliseconds', { configurable: true, get: function () { return this.adjusted_0.milliseconds; } }); DateTimeTz.prototype.toOffsetUnadjusted_fv8bff$ = function (offset) { return this.toOffsetUnadjusted_q6c6ai$(get_offset(offset)); }; DateTimeTz.prototype.toOffsetUnadjusted_q6c6ai$ = function (offset) { return DateTimeTz$Companion_getInstance().local_rq74cp$(this.local, offset); }; DateTimeTz.prototype.addOffsetUnadjusted_fv8bff$ = function (offset) { return this.addOffsetUnadjusted_q6c6ai$(get_offset(offset)); }; DateTimeTz.prototype.addOffsetUnadjusted_q6c6ai$ = function (offset) { return DateTimeTz$Companion_getInstance().local_rq74cp$(this.local, get_offset(this.offset.time.plus_fv8bff$(offset.time))); }; DateTimeTz.prototype.toOffset_fv8bff$ = function (offset) { return this.toOffset_q6c6ai$(get_offset(offset)); }; DateTimeTz.prototype.toOffset_q6c6ai$ = function (offset) { return DateTimeTz$Companion_getInstance().utc_rq74cp$(this.utc, offset); }; DateTimeTz.prototype.addOffset_fv8bff$ = function (offset) { return this.addOffset_q6c6ai$(get_offset(offset)); }; DateTimeTz.prototype.addOffset_q6c6ai$ = function (offset) { return DateTimeTz$Companion_getInstance().utc_rq74cp$(this.utc, get_offset(this.offset.time.plus_fv8bff$(offset.time))); }; DateTimeTz.prototype.add_e89ho5$ = function (dateSpan, timeSpan) { return new DateTimeTz(this.adjusted_0.add_e89ho5$(dateSpan, timeSpan), this.offset); }; DateTimeTz.prototype.plus_glepj8$ = function (delta) { return this.add_e89ho5$(delta, TimeSpan.Companion.fromMilliseconds_14dthe$(0)); }; DateTimeTz.prototype.plus_5gml0z$ = function (delta) { return this.add_e89ho5$(delta.monthSpan, delta.timeSpan); }; DateTimeTz.prototype.plus_fv8bff$ = function (delta) { return this.add_e89ho5$(new MonthSpan(0), delta); }; DateTimeTz.prototype.minus_glepj8$ = function (delta) { return this.plus_glepj8$(delta.unaryMinus()); }; DateTimeTz.prototype.minus_5gml0z$ = function (delta) { return this.plus_5gml0z$(delta.unaryMinus()); }; DateTimeTz.prototype.minus_fv8bff$ = function (delta) { return this.plus_fv8bff$(delta.unaryMinus()); }; DateTimeTz.prototype.minus_j01w8f$ = function (other) { var $receiver = this.utc.unixMillisDouble - other.utc.unixMillisDouble; return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); }; DateTimeTz.prototype.hashCode = function () { return this.local.hashCode() + this.offset.totalMinutesInt | 0; }; DateTimeTz.prototype.equals = function (other) { return Kotlin.isType(other, DateTimeTz) && this.utc.unixMillisDouble === other.utc.unixMillisDouble; }; DateTimeTz.prototype.compareTo_11rb$ = function (other) { return Kotlin.compareTo(this.utc.unixMillis, other.utc.unixMillis); }; DateTimeTz.prototype.format_cgtbg3$ = function (format) { return format.format_j01w8f$(this); }; DateTimeTz.prototype.format_61zpoe$ = function (format) { return DateFormat$Companion_getInstance().invoke_61zpoe$(format).format_j01w8f$(this); }; DateTimeTz.prototype.toString_cgtbg3$ = function (format) { return format.format_j01w8f$(this); }; DateTimeTz.prototype.toString_61zpoe$ = function (format) { return DateFormat$Companion_getInstance().invoke_61zpoe$(format).format_j01w8f$(this); }; DateTimeTz.prototype.toString = function () { return DateFormat$Companion_getInstance().DEFAULT_FORMAT.format_j01w8f$(this); }; DateTimeTz.$metadata$ = { kind: Kind_CLASS, simpleName: 'DateTimeTz', interfaces: [Serializable, Comparable] }; function DayOfWeek(name, ordinal, index0) { Enum.call(this); this.index0 = index0; this.name$ = name; this.ordinal$ = ordinal; } function DayOfWeek_initFields() { DayOfWeek_initFields = function () { }; DayOfWeek$Sunday_instance = new DayOfWeek('Sunday', 0, 0); DayOfWeek$Monday_instance = new DayOfWeek('Monday', 1, 1); DayOfWeek$Tuesday_instance = new DayOfWeek('Tuesday', 2, 2); DayOfWeek$Wednesday_instance = new DayOfWeek('Wednesday', 3, 3); DayOfWeek$Thursday_instance = new DayOfWeek('Thursday', 4, 4); DayOfWeek$Friday_instance = new DayOfWeek('Friday', 5, 5); DayOfWeek$Saturday_instance = new DayOfWeek('Saturday', 6, 6); DayOfWeek$Companion_getInstance(); } var DayOfWeek$Sunday_instance; function DayOfWeek$Sunday_getInstance() { DayOfWeek_initFields(); return DayOfWeek$Sunday_instance; } var DayOfWeek$Monday_instance; function DayOfWeek$Monday_getInstance() { DayOfWeek_initFields(); return DayOfWeek$Monday_instance; } var DayOfWeek$Tuesday_instance; function DayOfWeek$Tuesday_getInstance() { DayOfWeek_initFields(); return DayOfWeek$Tuesday_instance; } var DayOfWeek$Wednesday_instance; function DayOfWeek$Wednesday_getInstance() { DayOfWeek_initFields(); return DayOfWeek$Wednesday_instance; } var DayOfWeek$Thursday_instance; function DayOfWeek$Thursday_getInstance() { DayOfWeek_initFields(); return DayOfWeek$Thursday_instance; } var DayOfWeek$Friday_instance; function DayOfWeek$Friday_getInstance() { DayOfWeek_initFields(); return DayOfWeek$Friday_instance; } var DayOfWeek$Saturday_instance; function DayOfWeek$Saturday_getInstance() { DayOfWeek_initFields(); return DayOfWeek$Saturday_instance; } Object.defineProperty(DayOfWeek.prototype, 'index1', { configurable: true, get: function () { return this.index0 + 1 | 0; } }); Object.defineProperty(DayOfWeek.prototype, 'index0Sunday', { configurable: true, get: function () { return this.index0; } }); Object.defineProperty(DayOfWeek.prototype, 'index1Sunday', { configurable: true, get: function () { return this.index1; } }); Object.defineProperty(DayOfWeek.prototype, 'index0Monday', { configurable: true, get: function () { return umod(this.index0 - 1 | 0, 7); } }); Object.defineProperty(DayOfWeek.prototype, 'index1Monday', { configurable: true, get: function () { return this.index0Monday + 1 | 0; } }); DayOfWeek.prototype.isWeekend_kdekv2$ = function (locale) { if (locale === void 0) locale = KlockLocale$Companion_getInstance().default; return locale.isWeekend_76hapz$(this); }; Object.defineProperty(DayOfWeek.prototype, 'localName', { configurable: true, get: function () { return this.localName_kdekv2$(KlockLocale$Companion_getInstance().default); } }); DayOfWeek.prototype.localName_kdekv2$ = function (locale) { return locale.daysOfWeek.get_za3lpa$(this.index0); }; Object.defineProperty(DayOfWeek.prototype, 'localShortName', { configurable: true, get: function () { return this.localShortName_kdekv2$(KlockLocale$Companion_getInstance().default); } }); DayOfWeek.prototype.localShortName_kdekv2$ = function (locale) { return locale.daysOfWeekShort.get_za3lpa$(this.index0); }; Object.defineProperty(DayOfWeek.prototype, 'prev', { configurable: true, get: function () { return DayOfWeek$Companion_getInstance().get_za3lpa$(this.index0 - 1 | 0); } }); Object.defineProperty(DayOfWeek.prototype, 'next', { configurable: true, get: function () { return DayOfWeek$Companion_getInstance().get_za3lpa$(this.index0 + 1 | 0); } }); DayOfWeek.prototype.prev_za3lpa$ = function (offset) { if (offset === void 0) offset = 1; return DayOfWeek$Companion_getInstance().get_za3lpa$(this.index0 - offset | 0); }; DayOfWeek.prototype.next_za3lpa$ = function (offset) { if (offset === void 0) offset = 1; return DayOfWeek$Companion_getInstance().get_za3lpa$(this.index0 + offset | 0); }; function DayOfWeek$Companion() { DayOfWeek$Companion_instance = this; this.serialVersionUID_0 = L1; this.Count = 7; this.BY_INDEX0_0 = DayOfWeek$values(); } DayOfWeek$Companion.prototype.get_za3lpa$ = function (index0) { return this.BY_INDEX0_0[umod(index0, 7)]; }; DayOfWeek$Companion.prototype.firstDayOfWeek_kdekv2$ = function (locale) { if (locale === void 0) locale = KlockLocale$Companion_getInstance().default; return locale.firstDayOfWeek; }; DayOfWeek$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var DayOfWeek$Companion_instance = null; function DayOfWeek$Companion_getInstance() { DayOfWeek_initFields(); if (DayOfWeek$Companion_instance === null) { new DayOfWeek$Companion(); }return DayOfWeek$Companion_instance; } DayOfWeek.$metadata$ = { kind: Kind_CLASS, simpleName: 'DayOfWeek', interfaces: [Serializable, Enum] }; function DayOfWeek$values() { return [DayOfWeek$Sunday_getInstance(), DayOfWeek$Monday_getInstance(), DayOfWeek$Tuesday_getInstance(), DayOfWeek$Wednesday_getInstance(), DayOfWeek$Thursday_getInstance(), DayOfWeek$Friday_getInstance(), DayOfWeek$Saturday_getInstance()]; } DayOfWeek.values = DayOfWeek$values; function DayOfWeek$valueOf(name) { switch (name) { case 'Sunday': return DayOfWeek$Sunday_getInstance(); case 'Monday': return DayOfWeek$Monday_getInstance(); case 'Tuesday': return DayOfWeek$Tuesday_getInstance(); case 'Wednesday': return DayOfWeek$Wednesday_getInstance(); case 'Thursday': return DayOfWeek$Thursday_getInstance(); case 'Friday': return DayOfWeek$Friday_getInstance(); case 'Saturday': return DayOfWeek$Saturday_getInstance(); default:throwISE('No enum constant com.soywiz.klock.DayOfWeek.' + name); } } DayOfWeek.valueOf_61zpoe$ = DayOfWeek$valueOf; function get_hz($receiver) { return get_timesPerSecond($receiver); } function get_hz_0($receiver) { return get_timesPerSecond_0($receiver); } function get_hz_1($receiver) { return get_timesPerSecond_1($receiver); } function toFrequency($receiver) { return get_timesPerSecond($receiver); } function get_timesPerSecond($receiver) { return new Frequency(1.0 / $receiver.seconds); } function get_timesPerSecond_0($receiver) { return new Frequency($receiver); } function get_timesPerSecond_1($receiver) { return new Frequency($receiver); } function Frequency(hertz) { Frequency$Companion_getInstance(); this.hertz = hertz; } function Frequency$Companion() { Frequency$Companion_instance = this; } Frequency$Companion.prototype.from_fv8bff$ = function (timeSpan) { return toFrequency(timeSpan); }; Frequency$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var Frequency$Companion_instance = null; function Frequency$Companion_getInstance() { if (Frequency$Companion_instance === null) { new Frequency$Companion(); }return Frequency$Companion_instance; } Object.defineProperty(Frequency.prototype, 'timeSpan', { configurable: true, get: function () { var $receiver = 1.0 / this.hertz; return TimeSpan.Companion.fromSeconds_14dthe$($receiver); } }); Object.defineProperty(Frequency.prototype, 'hrTimeSpan', { configurable: true, get: function () { var $receiver = 1.0 / this.hertz; return get_hr(TimeSpan.Companion.fromSeconds_14dthe$($receiver)); } }); Frequency.$metadata$ = { kind: Kind_CLASS, simpleName: 'Frequency', interfaces: [] }; Frequency.prototype.unbox = function () { return this.hertz; }; Frequency.prototype.toString = function () { return 'Frequency(hertz=' + Kotlin.toString(this.hertz) + ')'; }; Frequency.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.hertz) | 0; return result; }; Frequency.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.hertz, other.hertz)))); }; function ISO8601() { ISO8601_instance = this; this.DATE_CALENDAR_COMPLETE = new ISO8601$IsoDateTimeFormat('YYYYMMDD', 'YYYY-MM-DD'); this.DATE_CALENDAR_REDUCED0 = new ISO8601$IsoDateTimeFormat(null, 'YYYY-MM'); this.DATE_CALENDAR_REDUCED1 = new ISO8601$IsoDateTimeFormat('YYYY', null); this.DATE_CALENDAR_REDUCED2 = new ISO8601$IsoDateTimeFormat('YY', null); this.DATE_CALENDAR_EXPANDED0 = new ISO8601$IsoDateTimeFormat('\xB1YYYYYYMMDD', '\xB1YYYYYY-MM-DD'); this.DATE_CALENDAR_EXPANDED1 = new ISO8601$IsoDateTimeFormat('\xB1YYYYYYMM', '\xB1YYYYYY-MM'); this.DATE_CALENDAR_EXPANDED2 = new ISO8601$IsoDateTimeFormat('\xB1YYYYYY', null); this.DATE_CALENDAR_EXPANDED3 = new ISO8601$IsoDateTimeFormat('\xB1YYY', null); this.DATE_ORDINAL_COMPLETE = new ISO8601$IsoDateTimeFormat('YYYYDDD', 'YYYY-DDD'); this.DATE_ORDINAL_EXPANDED = new ISO8601$IsoDateTimeFormat('\xB1YYYYYYDDD', '\xB1YYYYYY-DDD'); this.DATE_WEEK_COMPLETE = new ISO8601$IsoDateTimeFormat('YYYYWwwD', 'YYYY-Www-D'); this.DATE_WEEK_REDUCED = new ISO8601$IsoDateTimeFormat('YYYYWww', 'YYYY-Www'); this.DATE_WEEK_EXPANDED0 = new ISO8601$IsoDateTimeFormat('\xB1YYYYYYWwwD', '\xB1YYYYYY-Www-D'); this.DATE_WEEK_EXPANDED1 = new ISO8601$IsoDateTimeFormat('\xB1YYYYYYWww', '\xB1YYYYYY-Www'); this.DATE_ALL = listOf([this.DATE_CALENDAR_COMPLETE, this.DATE_CALENDAR_REDUCED0, this.DATE_CALENDAR_REDUCED1, this.DATE_CALENDAR_REDUCED2, this.DATE_CALENDAR_EXPANDED0, this.DATE_CALENDAR_EXPANDED1, this.DATE_CALENDAR_EXPANDED2, this.DATE_CALENDAR_EXPANDED3, this.DATE_ORDINAL_COMPLETE, this.DATE_ORDINAL_EXPANDED, this.DATE_WEEK_COMPLETE, this.DATE_WEEK_REDUCED, this.DATE_WEEK_EXPANDED0, this.DATE_WEEK_EXPANDED1]); this.TIME_LOCAL_COMPLETE = new ISO8601$IsoTimeFormat('hhmmss', 'hh:mm:ss'); this.TIME_LOCAL_REDUCED0 = new ISO8601$IsoTimeFormat('hhmm', 'hh:mm'); this.TIME_LOCAL_REDUCED1 = new ISO8601$IsoTimeFormat('hh', null); this.TIME_LOCAL_FRACTION0 = new ISO8601$IsoTimeFormat('hhmmss,ss', 'hh:mm:ss,ss'); this.TIME_LOCAL_FRACTION1 = new ISO8601$IsoTimeFormat('hhmm,mm', 'hh:mm,mm'); this.TIME_LOCAL_FRACTION2 = new ISO8601$IsoTimeFormat('hh,hh', null); this.TIME_UTC_COMPLETE = new ISO8601$IsoTimeFormat('hhmmssZ', 'hh:mm:ssZ'); this.TIME_UTC_REDUCED0 = new ISO8601$IsoTimeFormat('hhmmZ', 'hh:mmZ'); this.TIME_UTC_REDUCED1 = new ISO8601$IsoTimeFormat('hhZ', null); this.TIME_UTC_FRACTION0 = new ISO8601$IsoTimeFormat('hhmmss,ssZ', 'hh:mm:ss,ssZ'); this.TIME_UTC_FRACTION1 = new ISO8601$IsoTimeFormat('hhmm,mmZ', 'hh:mm,mmZ'); this.TIME_UTC_FRACTION2 = new ISO8601$IsoTimeFormat('hh,hhZ', null); this.TIME_RELATIVE0 = new ISO8601$IsoTimeFormat('\xB1hhmm', '\xB1hh:mm'); this.TIME_RELATIVE1 = new ISO8601$IsoTimeFormat('\xB1hh', null); this.TIME_ALL = listOf([this.TIME_LOCAL_COMPLETE, this.TIME_LOCAL_REDUCED0, this.TIME_LOCAL_REDUCED1, this.TIME_LOCAL_FRACTION0, this.TIME_LOCAL_FRACTION1, this.TIME_LOCAL_FRACTION2, this.TIME_UTC_COMPLETE, this.TIME_UTC_REDUCED0, this.TIME_UTC_REDUCED1, this.TIME_UTC_FRACTION0, this.TIME_UTC_FRACTION1, this.TIME_UTC_FRACTION2, this.TIME_RELATIVE0, this.TIME_RELATIVE1]); this.DATETIME_COMPLETE = new ISO8601$IsoDateTimeFormat('YYYYMMDDThhmmss', 'YYYY-MM-DDThh:mm:ss'); this.DATETIME_UTC_COMPLETE = new ISO8601$IsoDateTimeFormat('YYYYMMDDThhmmssZ', 'YYYY-MM-DDThh:mm:ssZ'); this.DATETIME_UTC_COMPLETE_FRACTION = new ISO8601$IsoDateTimeFormat('YYYYMMDDThhmmss.sssZ', 'YYYY-MM-DDThh:mm:ss.sssZ'); this.INTERVAL_COMPLETE0 = new ISO8601$IsoIntervalFormat('PnnYnnMnnDTnnHnnMnnS'); this.INTERVAL_COMPLETE1 = new ISO8601$IsoIntervalFormat('PnnYnnW'); this.INTERVAL_REDUCED0 = new ISO8601$IsoIntervalFormat('PnnYnnMnnDTnnHnnM'); this.INTERVAL_REDUCED1 = new ISO8601$IsoIntervalFormat('PnnYnnMnnDTnnH'); this.INTERVAL_REDUCED2 = new ISO8601$IsoIntervalFormat('PnnYnnMnnD'); this.INTERVAL_REDUCED3 = new ISO8601$IsoIntervalFormat('PnnYnnM'); this.INTERVAL_REDUCED4 = new ISO8601$IsoIntervalFormat('PnnY'); this.INTERVAL_DECIMAL0 = new ISO8601$IsoIntervalFormat('PnnYnnMnnDTnnHnnMnn,nnS'); this.INTERVAL_DECIMAL1 = new ISO8601$IsoIntervalFormat('PnnYnnMnnDTnnHnn,nnM'); this.INTERVAL_DECIMAL2 = new ISO8601$IsoIntervalFormat('PnnYnnMnnDTnn,nnH'); this.INTERVAL_DECIMAL3 = new ISO8601$IsoIntervalFormat('PnnYnnMnn,nnD'); this.INTERVAL_DECIMAL4 = new ISO8601$IsoIntervalFormat('PnnYnn,nnM'); this.INTERVAL_DECIMAL5 = new ISO8601$IsoIntervalFormat('PnnYnn,nnW'); this.INTERVAL_DECIMAL6 = new ISO8601$IsoIntervalFormat('PnnY'); this.INTERVAL_ZERO_OMIT0 = new ISO8601$IsoIntervalFormat('PnnYnnDTnnHnnMnnS'); this.INTERVAL_ZERO_OMIT1 = new ISO8601$IsoIntervalFormat('PnnYnnDTnnHnnM'); this.INTERVAL_ZERO_OMIT2 = new ISO8601$IsoIntervalFormat('PnnYnnDTnnH'); this.INTERVAL_ZERO_OMIT3 = new ISO8601$IsoIntervalFormat('PnnYnnD'); this.INTERVAL_ALL = listOf([this.INTERVAL_COMPLETE0, this.INTERVAL_COMPLETE1, this.INTERVAL_REDUCED0, this.INTERVAL_REDUCED1, this.INTERVAL_REDUCED2, this.INTERVAL_REDUCED3, this.INTERVAL_REDUCED4, this.INTERVAL_DECIMAL0, this.INTERVAL_DECIMAL1, this.INTERVAL_DECIMAL2, this.INTERVAL_DECIMAL3, this.INTERVAL_DECIMAL4, this.INTERVAL_DECIMAL5, this.INTERVAL_DECIMAL6, this.INTERVAL_ZERO_OMIT0, this.INTERVAL_ZERO_OMIT1, this.INTERVAL_ZERO_OMIT2, this.INTERVAL_ZERO_OMIT3]); this.DATE = new ISO8601$DATE$ObjectLiteral(); this.TIME = new ISO8601$TIME$ObjectLiteral(); this.INTERVAL = new ISO8601$INTERVAL$ObjectLiteral(); } function ISO8601$BaseIsoTimeFormat(format) { ISO8601$BaseIsoTimeFormat$Companion_getInstance(); this.format = format; this.dateTimeFormat_0 = new ISO8601$BaseIsoDateTimeFormat(this.format); } function ISO8601$BaseIsoTimeFormat$Companion() { ISO8601$BaseIsoTimeFormat$Companion_instance = this; this.ref_0 = DateTime$Companion_getInstance().invoke_ui44o2$(1900, 1, 1); } ISO8601$BaseIsoTimeFormat$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var ISO8601$BaseIsoTimeFormat$Companion_instance = null; function ISO8601$BaseIsoTimeFormat$Companion_getInstance() { if (ISO8601$BaseIsoTimeFormat$Companion_instance === null) { new ISO8601$BaseIsoTimeFormat$Companion(); }return ISO8601$BaseIsoTimeFormat$Companion_instance; } ISO8601$BaseIsoTimeFormat.prototype.format_fv8bff$ = function (dd) { return format_1(this.dateTimeFormat_0, ISO8601$BaseIsoTimeFormat$Companion_getInstance().ref_0.plus_fv8bff$(dd)); }; ISO8601$BaseIsoTimeFormat.prototype.tryParse_ivxn3r$ = function (str, doThrow) { var tmp$; return (tmp$ = this.dateTimeFormat_0.tryParse_ivxn3r$(str, doThrow)) != null ? tmp$.utc.minus_mw5vjr$(ISO8601$BaseIsoTimeFormat$Companion_getInstance().ref_0) : null; }; ISO8601$BaseIsoTimeFormat.$metadata$ = { kind: Kind_CLASS, simpleName: 'BaseIsoTimeFormat', interfaces: [TimeFormat] }; ISO8601$BaseIsoTimeFormat.prototype.component1 = function () { return this.format; }; ISO8601$BaseIsoTimeFormat.prototype.copy_61zpoe$ = function (format) { return new ISO8601$BaseIsoTimeFormat(format === void 0 ? this.format : format); }; ISO8601$BaseIsoTimeFormat.prototype.toString = function () { return 'BaseIsoTimeFormat(format=' + Kotlin.toString(this.format) + ')'; }; ISO8601$BaseIsoTimeFormat.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.format) | 0; return result; }; ISO8601$BaseIsoTimeFormat.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.format, other.format)))); }; function ISO8601$BaseIsoDateTimeFormat(format, twoDigitBaseYear) { if (twoDigitBaseYear === void 0) twoDigitBaseYear = 1900; this.format = format; this.twoDigitBaseYear = twoDigitBaseYear; } ISO8601$BaseIsoDateTimeFormat.prototype.format_j01w8f$ = function (dd) { var $receiver = StringBuilder_init(); var tmp$, tmp$_0, tmp$_1; var isUtc = endsWith(this.format, 90); var d = isUtc ? dd.utc : dd.local; var s = d.copyDayOfMonth_4lrum3$(void 0, void 0, void 0, 0, 0, 0, 0); var time = d.minus_mw5vjr$(s); var fmtReader = new MicroStrReader(this.format); while (fmtReader.hasMore) { if (fmtReader.tryRead_61zpoe$('YYYYYY')) { $receiver.append_pdl1vj$(padded(abs(d.yearInt), 6)); } else if (fmtReader.tryRead_61zpoe$('YYYY')) { $receiver.append_pdl1vj$(padded(abs(d.yearInt), 4)); } else if (fmtReader.tryRead_61zpoe$('YY')) { $receiver.append_pdl1vj$(padded(abs(d.yearInt) % 100, 2)); } else if (fmtReader.tryRead_61zpoe$('MM')) $receiver.append_pdl1vj$(padded(d.month1, 2)); else if (fmtReader.tryRead_61zpoe$('DD')) $receiver.append_pdl1vj$(padded(d.dayOfMonth, 2)); else if (fmtReader.tryRead_61zpoe$('DDD')) $receiver.append_pdl1vj$(padded(d.dayOfWeekInt, 3)); else if (fmtReader.tryRead_61zpoe$('ww')) $receiver.append_pdl1vj$(padded(get_weekOfYear1(d), 2)); else if (fmtReader.tryRead_61zpoe$('D')) $receiver.append_s8jyv4$(d.dayOfWeek.index1Monday); else if (fmtReader.tryRead_61zpoe$('hh')) { var nextComma = fmtReader.tryRead_s8itvh$(44); if (nextComma || fmtReader.tryRead_s8itvh$(46)) { var decCount = 0; while (fmtReader.tryRead_s8itvh$(104)) { decCount = decCount + 1 | 0; } tmp$ = padded_0(time.hours, 2, decCount); } else { tmp$ = padded(d.hours, 2); } var result = tmp$; $receiver.append_pdl1vj$(nextComma ? replace(result, 46, 44) : result); } else if (fmtReader.tryRead_61zpoe$('mm')) { var nextComma_0 = fmtReader.tryRead_s8itvh$(44); if (nextComma_0 || fmtReader.tryRead_s8itvh$(46)) { var decCount_0 = 0; while (fmtReader.tryRead_s8itvh$(109)) { decCount_0 = decCount_0 + 1 | 0; } tmp$_0 = padded_0(time.minutes % 60.0, 2, decCount_0); } else { tmp$_0 = padded(d.minutes, 2); } var result_0 = tmp$_0; $receiver.append_pdl1vj$(nextComma_0 ? replace(result_0, 46, 44) : result_0); } else if (fmtReader.tryRead_61zpoe$('ss')) { var nextComma_1 = fmtReader.tryRead_s8itvh$(44); if (nextComma_1 || fmtReader.tryRead_s8itvh$(46)) { var decCount_1 = 0; while (fmtReader.tryRead_s8itvh$(115)) { decCount_1 = decCount_1 + 1 | 0; } tmp$_1 = padded_0(time.seconds % 60.0, 2, decCount_1); } else { tmp$_1 = padded(d.seconds, 2); } var result_1 = tmp$_1; $receiver.append_pdl1vj$(nextComma_1 ? replace(result_1, 46, 44) : result_1); } else if (fmtReader.tryRead_61zpoe$('\xB1')) $receiver.append_pdl1vj$(d.yearInt < 0 ? '-' : '+'); else $receiver.append_s8itvh$(unboxChar(fmtReader.readChar())); } return $receiver.toString(); }; ISO8601$BaseIsoDateTimeFormat.prototype.tryParse_ivxn3r$$default = function (str, doThrow) { var $receiver = this.tryParse_0(str); if (doThrow && $receiver == null) throw new DateException("Can't parse " + str + ' with ' + this.format); return $receiver; }; ISO8601$BaseIsoDateTimeFormat.prototype.reportParse_0 = function (reason) { return null; }; ISO8601$BaseIsoDateTimeFormat.prototype.tryParse_0 = function (str) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4, tmp$_5, tmp$_6, tmp$_7, tmp$_8, tmp$_9, tmp$_10, tmp$_11, tmp$_12, tmp$_13, tmp$_14, tmp$_15, tmp$_16, tmp$_17; var sign = 1; var tzOffset = null; var year = this.twoDigitBaseYear; var month = 1; var dayOfMonth = 1; var dayOfWeek = -1; var dayOfYear = -1; var weekOfYear = -1; var hours = 0.0; var minutes = 0.0; var seconds = 0.0; var reader = new MicroStrReader(str); var fmtReader = new MicroStrReader(this.format); while (fmtReader.hasMore) { if (fmtReader.tryRead_61zpoe$('Z')) tzOffset = readTimeZoneOffset(reader); else if (fmtReader.tryRead_61zpoe$('YYYYYY')) { tmp$ = reader.tryReadInt_za3lpa$(6); if (tmp$ == null) { return this.reportParse_0('YYYYYY'); }year = tmp$; } else if (fmtReader.tryRead_61zpoe$('YYYY')) { tmp$_0 = reader.tryReadInt_za3lpa$(4); if (tmp$_0 == null) { return this.reportParse_0('YYYY'); }year = tmp$_0; } else if (fmtReader.tryRead_61zpoe$('YY')) { tmp$_1 = reader.tryReadInt_za3lpa$(2); if (tmp$_1 == null) { return this.reportParse_0('YY'); }var base = tmp$_1; year = this.twoDigitBaseYear + base | 0; } else if (fmtReader.tryRead_61zpoe$('MM')) { tmp$_2 = reader.tryReadInt_za3lpa$(2); if (tmp$_2 == null) { return this.reportParse_0('MM'); }month = tmp$_2; } else if (fmtReader.tryRead_61zpoe$('DD')) { tmp$_3 = reader.tryReadInt_za3lpa$(2); if (tmp$_3 == null) { return this.reportParse_0('DD'); }dayOfMonth = tmp$_3; } else if (fmtReader.tryRead_61zpoe$('DDD')) { tmp$_4 = reader.tryReadInt_za3lpa$(3); if (tmp$_4 == null) { return this.reportParse_0('DDD'); }dayOfYear = tmp$_4; } else if (fmtReader.tryRead_61zpoe$('ww')) { tmp$_5 = reader.tryReadInt_za3lpa$(2); if (tmp$_5 == null) { return this.reportParse_0('ww'); }weekOfYear = tmp$_5; } else if (fmtReader.tryRead_61zpoe$('D')) { tmp$_6 = reader.tryReadInt_za3lpa$(1); if (tmp$_6 == null) { return this.reportParse_0('D'); }dayOfWeek = tmp$_6; } else if (fmtReader.tryRead_61zpoe$('hh')) { var nextComma = fmtReader.tryRead_s8itvh$(44); if (nextComma || fmtReader.tryRead_s8itvh$(46)) { var count = 3; while (fmtReader.tryRead_s8itvh$(104)) { count = count + 1 | 0; } tmp$_7 = reader.tryReadDouble_za3lpa$(count); if (tmp$_7 == null) { return this.reportParse_0('incorrect hours'); }tmp$_9 = tmp$_7; } else { tmp$_8 = reader.tryReadDouble_za3lpa$(2); if (tmp$_8 == null) { return this.reportParse_0('incorrect hours'); }tmp$_9 = tmp$_8; } hours = tmp$_9; } else if (fmtReader.tryRead_61zpoe$('mm')) { var nextComma_0 = fmtReader.tryRead_s8itvh$(44); if (nextComma_0 || fmtReader.tryRead_s8itvh$(46)) { var count_0 = 3; while (fmtReader.tryRead_s8itvh$(109)) { count_0 = count_0 + 1 | 0; } tmp$_10 = reader.tryReadDouble_za3lpa$(count_0); if (tmp$_10 == null) { return this.reportParse_0('incorrect minutes'); }tmp$_12 = tmp$_10; } else { tmp$_11 = reader.tryReadDouble_za3lpa$(2); if (tmp$_11 == null) { return this.reportParse_0('incorrect seconds'); }tmp$_12 = tmp$_11; } minutes = tmp$_12; } else if (fmtReader.tryRead_61zpoe$('ss')) { var nextComma_1 = fmtReader.tryRead_s8itvh$(44); if (nextComma_1 || fmtReader.tryRead_s8itvh$(46)) { var count_1 = 3; while (fmtReader.tryRead_s8itvh$(115)) { count_1 = count_1 + 1 | 0; } tmp$_13 = reader.tryReadDouble_za3lpa$(count_1); if (tmp$_13 == null) { return this.reportParse_0('incorrect seconds'); }tmp$_15 = tmp$_13; } else { tmp$_14 = reader.tryReadDouble_za3lpa$(2); if (tmp$_14 == null) { return this.reportParse_0('incorrect seconds'); }tmp$_15 = tmp$_14; } seconds = tmp$_15; } else if (fmtReader.tryRead_61zpoe$('\xB1')) { switch (unboxChar(reader.readChar())) { case 43: tmp$_16 = 1; break; case 45: tmp$_16 = -1; break; default:return this.reportParse_0('\xB1'); } sign = tmp$_16; } else if (unboxChar(fmtReader.readChar()) !== unboxChar(reader.readChar())) return this.reportParse_0('separator'); } if (reader.hasMore) return this.reportParse_0('uncomplete'); if (dayOfYear >= 0) { var tmp$_18 = DateTime$Companion_getInstance().invoke_ui44o2$(year, 1, 1); var $receiver = dayOfYear - 1 | 0; tmp$_17 = tmp$_18.plus_fv8bff$(TimeSpan.Companion.fromDays_14dthe$($receiver)); } else if (weekOfYear >= 0) { var reference = first_1(new Year(year), DayOfWeek$Thursday_getInstance()).minus_fv8bff$(TimeSpan.Companion.fromDays_14dthe$(3)); var days = ((weekOfYear - 1 | 0) * 7 | 0) + (dayOfWeek - 1) | 0; tmp$_17 = reference.plus_fv8bff$(TimeSpan.Companion.fromDays_14dthe$(days)); } else tmp$_17 = DateTime$Companion_getInstance().invoke_ui44o2$(year, month, dayOfMonth); var dateTime = tmp$_17; var $receiver_0 = hours; var tmp$_19 = dateTime.plus_fv8bff$(TimeSpan.Companion.fromHours_14dthe$($receiver_0)); var $receiver_1 = minutes; var tmp$_20 = tmp$_19.plus_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$($receiver_1)); var $receiver_2 = seconds; var baseDateTime = tmp$_20.plus_fv8bff$(TimeSpan.Companion.fromSeconds_14dthe$($receiver_2)); return tzOffset != null ? DateTimeTz$Companion_getInstance().utc_rq74cp$(baseDateTime, TimezoneOffset$Companion_getInstance().invoke_fv8bff$(tzOffset)) : baseDateTime.local; }; ISO8601$BaseIsoDateTimeFormat.prototype.withTwoDigitBaseYear_za3lpa$ = function (twoDigitBaseYear) { if (twoDigitBaseYear === void 0) twoDigitBaseYear = 1900; return new ISO8601$BaseIsoDateTimeFormat(this.format, twoDigitBaseYear); }; ISO8601$BaseIsoDateTimeFormat.$metadata$ = { kind: Kind_CLASS, simpleName: 'BaseIsoDateTimeFormat', interfaces: [DateFormat] }; ISO8601$BaseIsoDateTimeFormat.prototype.component1 = function () { return this.format; }; ISO8601$BaseIsoDateTimeFormat.prototype.component2 = function () { return this.twoDigitBaseYear; }; ISO8601$BaseIsoDateTimeFormat.prototype.copy_bm4lxs$ = function (format, twoDigitBaseYear) { return new ISO8601$BaseIsoDateTimeFormat(format === void 0 ? this.format : format, twoDigitBaseYear === void 0 ? this.twoDigitBaseYear : twoDigitBaseYear); }; ISO8601$BaseIsoDateTimeFormat.prototype.toString = function () { return 'BaseIsoDateTimeFormat(format=' + Kotlin.toString(this.format) + (', twoDigitBaseYear=' + Kotlin.toString(this.twoDigitBaseYear)) + ')'; }; ISO8601$BaseIsoDateTimeFormat.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.format) | 0; result = result * 31 + Kotlin.hashCode(this.twoDigitBaseYear) | 0; return result; }; ISO8601$BaseIsoDateTimeFormat.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.format, other.format) && Kotlin.equals(this.twoDigitBaseYear, other.twoDigitBaseYear))))); }; function ISO8601$IsoIntervalFormat(format) { this.format = format; } ISO8601$IsoIntervalFormat.prototype.format_5gml0z$ = function (dd) { var $receiver = StringBuilder_init(); var fmtReader = new MicroStrReader(this.format); var time = {v: false}; while (fmtReader.hasMore) { if (fmtReader.tryRead_61zpoe$('T')) { $receiver.append_s8itvh$(84); time.v = true; } else if (fmtReader.tryRead_61zpoe$('nnY')) $receiver.append_s8jyv4$(dd.years).append_s8itvh$(89); else if (fmtReader.tryRead_61zpoe$('nnM')) $receiver.append_s8jyv4$(time.v ? dd.minutes : dd.months).append_s8itvh$(77); else if (fmtReader.tryRead_61zpoe$('nnD')) $receiver.append_s8jyv4$(dd.daysIncludingWeeks).append_s8itvh$(68); else if (fmtReader.tryRead_61zpoe$('nnH')) $receiver.append_s8jyv4$(dd.hours).append_s8itvh$(72); else if (fmtReader.tryRead_61zpoe$('nnS')) $receiver.append_s8jyv4$(dd.seconds).append_s8itvh$(83); else $receiver.append_s8itvh$(unboxChar(fmtReader.readChar())); } return $receiver.toString(); }; ISO8601$IsoIntervalFormat.prototype.tryParse_ivxn3r$ = function (str, doThrow) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; var time = false; var years = 0.0; var months = 0.0; var days = 0.0; var hours = 0.0; var minutes = 0.0; var seconds = 0.0; var reader = new MicroStrReader(str); var fmtReader = new MicroStrReader(this.format); while (fmtReader.hasMore) { if (fmtReader.tryRead_61zpoe$('nn,nnY') || fmtReader.tryRead_61zpoe$('nnY')) { tmp$ = reader.tryReadDouble(); if (tmp$ == null) { return null; }years = tmp$; if (!reader.tryRead_61zpoe$('Y')) return null; } else if (fmtReader.tryRead_61zpoe$('nn,nnM') || fmtReader.tryRead_61zpoe$('nnM')) { if (time) { tmp$_0 = reader.tryReadDouble(); if (tmp$_0 == null) { return null; }minutes = tmp$_0; } else { tmp$_1 = reader.tryReadDouble(); if (tmp$_1 == null) { return null; }months = tmp$_1; } if (!reader.tryRead_61zpoe$('M')) return null; } else if (fmtReader.tryRead_61zpoe$('nn,nnD') || fmtReader.tryRead_61zpoe$('nnD')) { tmp$_2 = reader.tryReadDouble(); if (tmp$_2 == null) { return null; }days = tmp$_2; if (!reader.tryRead_61zpoe$('D')) return null; } else if (fmtReader.tryRead_61zpoe$('nn,nnH') || fmtReader.tryRead_61zpoe$('nnH')) { tmp$_3 = reader.tryReadDouble(); if (tmp$_3 == null) { return null; }hours = tmp$_3; if (!reader.tryRead_61zpoe$('H')) return null; } else if (fmtReader.tryRead_61zpoe$('nn,nnS') || fmtReader.tryRead_61zpoe$('nnS')) { tmp$_4 = reader.tryReadDouble(); if (tmp$_4 == null) { return null; }seconds = tmp$_4; if (!reader.tryRead_61zpoe$('S')) return null; } else { var char = unboxChar(fmtReader.readChar()); if (char !== unboxChar(reader.readChar())) return null; if (char === 84) time = true; } } var tmp$_5 = new MonthSpan(numberToInt(years * 12 + months)); var $receiver = days; var tmp$_6 = TimeSpan.Companion.fromDays_14dthe$($receiver); var $receiver_0 = hours; var tmp$_7 = tmp$_6.plus_fv8bff$(TimeSpan.Companion.fromHours_14dthe$($receiver_0)); var $receiver_1 = minutes; var tmp$_8 = tmp$_7.plus_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$($receiver_1)); var $receiver_2 = seconds; return tmp$_5.plus_fv8bff$(tmp$_8.plus_fv8bff$(TimeSpan.Companion.fromSeconds_14dthe$($receiver_2))); }; ISO8601$IsoIntervalFormat.$metadata$ = { kind: Kind_CLASS, simpleName: 'IsoIntervalFormat', interfaces: [DateTimeSpanFormat] }; function ISO8601$IsoTimeFormat(basicFormat, extendedFormat) { this.basicFormat = basicFormat; this.extendedFormat = extendedFormat; var tmp$, tmp$_0, tmp$_1, tmp$_2; var tmp$_3; if ((tmp$_0 = (tmp$ = this.basicFormat) != null ? tmp$ : this.extendedFormat) != null) tmp$_3 = tmp$_0; else { throw new NotImplementedError_init(); } this.basic = new ISO8601$BaseIsoTimeFormat(tmp$_3); var tmp$_4; if ((tmp$_2 = (tmp$_1 = this.extendedFormat) != null ? tmp$_1 : this.basicFormat) != null) tmp$_4 = tmp$_2; else { throw new NotImplementedError_init(); } this.extended = new ISO8601$BaseIsoTimeFormat(tmp$_4); } ISO8601$IsoTimeFormat.prototype.format_fv8bff$ = function (dd) { return this.extended.format_fv8bff$(dd); }; ISO8601$IsoTimeFormat.prototype.tryParse_ivxn3r$ = function (str, doThrow) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = (tmp$ = this.basic.tryParse_ivxn3r$(str, false)) != null ? tmp$ : this.extended.tryParse_ivxn3r$(str, false); if (tmp$_1 == null) { if (doThrow) throw new DateException('Invalid format ' + str); else tmp$_0 = null; tmp$_1 = tmp$_0; }return tmp$_1; }; ISO8601$IsoTimeFormat.$metadata$ = { kind: Kind_CLASS, simpleName: 'IsoTimeFormat', interfaces: [TimeFormat] }; ISO8601$IsoTimeFormat.prototype.component1 = function () { return this.basicFormat; }; ISO8601$IsoTimeFormat.prototype.component2 = function () { return this.extendedFormat; }; ISO8601$IsoTimeFormat.prototype.copy_rkkr90$ = function (basicFormat, extendedFormat) { return new ISO8601$IsoTimeFormat(basicFormat === void 0 ? this.basicFormat : basicFormat, extendedFormat === void 0 ? this.extendedFormat : extendedFormat); }; ISO8601$IsoTimeFormat.prototype.toString = function () { return 'IsoTimeFormat(basicFormat=' + Kotlin.toString(this.basicFormat) + (', extendedFormat=' + Kotlin.toString(this.extendedFormat)) + ')'; }; ISO8601$IsoTimeFormat.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.basicFormat) | 0; result = result * 31 + Kotlin.hashCode(this.extendedFormat) | 0; return result; }; ISO8601$IsoTimeFormat.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.basicFormat, other.basicFormat) && Kotlin.equals(this.extendedFormat, other.extendedFormat))))); }; function ISO8601$IsoDateTimeFormat(basicFormat, extendedFormat) { this.basicFormat = basicFormat; this.extendedFormat = extendedFormat; var tmp$, tmp$_0, tmp$_1, tmp$_2; var tmp$_3; if ((tmp$_0 = (tmp$ = this.basicFormat) != null ? tmp$ : this.extendedFormat) != null) tmp$_3 = tmp$_0; else { throw new NotImplementedError_init(); } this.basic = new ISO8601$BaseIsoDateTimeFormat(tmp$_3); var tmp$_4; if ((tmp$_2 = (tmp$_1 = this.extendedFormat) != null ? tmp$_1 : this.basicFormat) != null) tmp$_4 = tmp$_2; else { throw new NotImplementedError_init(); } this.extended = new ISO8601$BaseIsoDateTimeFormat(tmp$_4); } ISO8601$IsoDateTimeFormat.prototype.format_j01w8f$ = function (dd) { return this.extended.format_j01w8f$(dd); }; ISO8601$IsoDateTimeFormat.prototype.tryParse_ivxn3r$$default = function (str, doThrow) { var tmp$, tmp$_0, tmp$_1; tmp$_1 = (tmp$ = null != null ? null : this.basic.tryParse_ivxn3r$(str, false)) != null ? tmp$ : this.extended.tryParse_ivxn3r$(str, false); if (tmp$_1 == null) { if (doThrow) throw new DateException('Invalid format ' + str); else tmp$_0 = null; tmp$_1 = tmp$_0; }return tmp$_1; }; ISO8601$IsoDateTimeFormat.$metadata$ = { kind: Kind_CLASS, simpleName: 'IsoDateTimeFormat', interfaces: [DateFormat] }; ISO8601$IsoDateTimeFormat.prototype.component1 = function () { return this.basicFormat; }; ISO8601$IsoDateTimeFormat.prototype.component2 = function () { return this.extendedFormat; }; ISO8601$IsoDateTimeFormat.prototype.copy_rkkr90$ = function (basicFormat, extendedFormat) { return new ISO8601$IsoDateTimeFormat(basicFormat === void 0 ? this.basicFormat : basicFormat, extendedFormat === void 0 ? this.extendedFormat : extendedFormat); }; ISO8601$IsoDateTimeFormat.prototype.toString = function () { return 'IsoDateTimeFormat(basicFormat=' + Kotlin.toString(this.basicFormat) + (', extendedFormat=' + Kotlin.toString(this.extendedFormat)) + ')'; }; ISO8601$IsoDateTimeFormat.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.basicFormat) | 0; result = result * 31 + Kotlin.hashCode(this.extendedFormat) | 0; return result; }; ISO8601$IsoDateTimeFormat.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.basicFormat, other.basicFormat) && Kotlin.equals(this.extendedFormat, other.extendedFormat))))); }; function ISO8601$DATE$ObjectLiteral() { } ISO8601$DATE$ObjectLiteral.prototype.format_j01w8f$ = function (dd) { return ISO8601_getInstance().DATE_CALENDAR_COMPLETE.format_j01w8f$(dd); }; ISO8601$DATE$ObjectLiteral.prototype.tryParse_ivxn3r$$default = function (str, doThrow) { var tmp$; var $receiver = ISO8601_getInstance().DATE_ALL; var tmp$_0; var n = 0; while (n < $receiver.size) { var result = $receiver.get_za3lpa$((tmp$_0 = n, n = tmp$_0 + 1 | 0, tmp$_0)).extended.tryParse_ivxn3r$(str, false); if (result != null) return result; } var $receiver_0 = ISO8601_getInstance().DATE_ALL; var tmp$_1; var n_0 = 0; while (n_0 < $receiver_0.size) { var result_0 = $receiver_0.get_za3lpa$((tmp$_1 = n_0, n_0 = tmp$_1 + 1 | 0, tmp$_1)).basic.tryParse_ivxn3r$(str, false); if (result_0 != null) return result_0; } if (doThrow) throw new DateException('Invalid format'); else tmp$ = null; return tmp$; }; ISO8601$DATE$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [DateFormat] }; function ISO8601$TIME$ObjectLiteral() { } ISO8601$TIME$ObjectLiteral.prototype.format_fv8bff$ = function (dd) { return ISO8601_getInstance().TIME_LOCAL_FRACTION0.format_fv8bff$(dd); }; ISO8601$TIME$ObjectLiteral.prototype.tryParse_ivxn3r$ = function (str, doThrow) { var tmp$; var $receiver = ISO8601_getInstance().TIME_ALL; var tmp$_0; var n = 0; while (n < $receiver.size) { var result = $receiver.get_za3lpa$((tmp$_0 = n, n = tmp$_0 + 1 | 0, tmp$_0)).extended.tryParse_ivxn3r$(str, false); if (result != null) return result; } var $receiver_0 = ISO8601_getInstance().TIME_ALL; var tmp$_1; var n_0 = 0; while (n_0 < $receiver_0.size) { var result_0 = $receiver_0.get_za3lpa$((tmp$_1 = n_0, n_0 = tmp$_1 + 1 | 0, tmp$_1)).basic.tryParse_ivxn3r$(str, false); if (result_0 != null) return result_0; } if (doThrow) throw new DateException('Invalid format'); else tmp$ = null; return tmp$; }; ISO8601$TIME$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [TimeFormat] }; function ISO8601$INTERVAL$ObjectLiteral() { } ISO8601$INTERVAL$ObjectLiteral.prototype.format_5gml0z$ = function (dd) { return ISO8601_getInstance().INTERVAL_DECIMAL0.format_5gml0z$(dd); }; ISO8601$INTERVAL$ObjectLiteral.prototype.tryParse_ivxn3r$ = function (str, doThrow) { var tmp$; var $receiver = ISO8601_getInstance().INTERVAL_ALL; var tmp$_0; var n = 0; while (n < $receiver.size) { var result = $receiver.get_za3lpa$((tmp$_0 = n, n = tmp$_0 + 1 | 0, tmp$_0)).tryParse_ivxn3r$(str, false); if (result != null) return result; } if (doThrow) throw new DateException('Invalid format'); else tmp$ = null; return tmp$; }; ISO8601$INTERVAL$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [DateTimeSpanFormat] }; ISO8601.$metadata$ = { kind: Kind_OBJECT, simpleName: 'ISO8601', interfaces: [] }; var ISO8601_instance = null; function ISO8601_getInstance() { if (ISO8601_instance === null) { new ISO8601(); }return ISO8601_instance; } function first_1($receiver, dayOfWeek) { var start = DateTime$Companion_getInstance().invoke_ui44o2$($receiver.year, 1, 1); var n = 0; while (true) { var $receiver_0 = n; var time = start.plus_fv8bff$(TimeSpan.Companion.fromDays_14dthe$($receiver_0)); if (time.dayOfWeek === dayOfWeek) return time; n = n + 1 | 0; } } function get_weekOfYear0($receiver) { var firstThursday = first_1($receiver.year, DayOfWeek$Thursday_getInstance()); var offset = firstThursday.dayOfMonth - 3 | 0; return ($receiver.dayOfYear - offset | 0) / 7 | 0; } function get_weekOfYear1($receiver) { return get_weekOfYear0($receiver) + 1 | 0; } function get_weekOfYear0_0($receiver) { return get_weekOfYear0($receiver.local); } function get_weekOfYear1_0($receiver) { return get_weekOfYear1($receiver.local); } var KlockLocale_default; function KlockLocale() { KlockLocale$Companion_getInstance(); this.monthsShort_5mhx25$_0 = klockLazyOrGet(KlockLocale$monthsShort$lambda(this)); this.daysOfWeekShort_s4ah9w$_0 = klockLazyOrGet(KlockLocale$daysOfWeekShort$lambda(this)); var array = Array_0(32); var tmp$; tmp$ = array.length - 1 | 0; loop_label: for (var i = 0; i <= tmp$; i++) { var init$result; init$break: do { if (11 <= i && i <= 13) { init$result = i.toString() + 'th'; } else { switch (i % 10) { case 1: init$result = i.toString() + 'st'; break init$break; case 2: init$result = i.toString() + 'nd'; break init$break; case 3: init$result = i.toString() + 'rd'; break init$break; default:init$result = i.toString() + 'th'; break init$break; } } } while (false); array[i] = init$result; } this.ordinals_2vm5kk$_0 = array; this.h12Marker_ihl9tv$_0 = listOf(['AM', 'OM']); this.formatDateTimeMedium_5qrovt$_0 = this.format_61zpoe$('MMM d, y h:mm:ss a'); this.formatDateTimeShort_7afaxo$_0 = this.format_61zpoe$('M/d/yy h:mm a'); this.formatDateFull_zhfveu$_0 = this.format_61zpoe$('EEEE, MMMM d, y'); this.formatDateLong_ze8wer$_0 = this.format_61zpoe$('MMMM d, y'); this.formatDateMedium_i9vt5g$_0 = this.format_61zpoe$('MMM d, y'); this.formatDateShort_slhdw1$_0 = this.format_61zpoe$('M/d/yy'); this.formatTimeMedium_a5dzkl$_0 = this.format_61zpoe$('HH:mm:ss'); this.formatTimeShort_o9xygi$_0 = this.format_61zpoe$('HH:mm'); } Object.defineProperty(KlockLocale.prototype, 'monthsShort', { configurable: true, get: function () { return this.monthsShort_5mhx25$_0.value; } }); Object.defineProperty(KlockLocale.prototype, 'daysOfWeekShort', { configurable: true, get: function () { return this.daysOfWeekShort_s4ah9w$_0.value; } }); Object.defineProperty(KlockLocale.prototype, 'ordinals', { configurable: true, get: function () { return this.ordinals_2vm5kk$_0; } }); KlockLocale.prototype.getOrdinalByDay_1pz93x$$default = function (day, context) { return this.ordinals[day]; }; KlockLocale.prototype.getOrdinalByDay_1pz93x$ = function (day, context, callback$default) { if (context === void 0) context = KlockLocaleContext$Companion_getInstance().Default; return callback$default ? callback$default(day, context) : this.getOrdinalByDay_1pz93x$$default(day, context); }; KlockLocale.prototype.getDayByOrdinal_61zpoe$ = function (ordinal) { return indexOf(this.ordinals, ordinal); }; Object.defineProperty(KlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_ihl9tv$_0; } }); KlockLocale.prototype.intToString_za3lpa$ = function (value) { return value.toString(); }; KlockLocale.prototype.isWeekend_76hapz$ = function (dayOfWeek) { return dayOfWeek === DayOfWeek$Saturday_getInstance() || dayOfWeek === DayOfWeek$Sunday_getInstance(); }; KlockLocale.prototype.format_61zpoe$ = function (str) { return new PatternDateFormat(str, this); }; Object.defineProperty(KlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_5qrovt$_0; } }); Object.defineProperty(KlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_7afaxo$_0; } }); Object.defineProperty(KlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_zhfveu$_0; } }); Object.defineProperty(KlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_ze8wer$_0; } }); Object.defineProperty(KlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_i9vt5g$_0; } }); Object.defineProperty(KlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_slhdw1$_0; } }); Object.defineProperty(KlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_a5dzkl$_0; } }); Object.defineProperty(KlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_o9xygi$_0; } }); function KlockLocale$Companion() { KlockLocale$Companion_instance = this; } Object.defineProperty(KlockLocale$Companion.prototype, 'english', { configurable: true, get: function () { return KlockLocale$English$Companion_getInstance(); } }); Object.defineProperty(KlockLocale$Companion.prototype, 'default', { configurable: true, get: function () { return KlockLocale_default; }, set: function (value) { KlockLocale_default = value; } }); KlockLocale$Companion.prototype.setTemporarily_rl52rq$ = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.KlockLocale.Companion.setTemporarily_rl52rq$', function (locale, callback) { var old = this.default; this.default = locale; try { return callback(); }finally { this.default = old; } }); KlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var KlockLocale$Companion_instance = null; function KlockLocale$Companion_getInstance() { if (KlockLocale$Companion_instance === null) { new KlockLocale$Companion(); }return KlockLocale$Companion_instance; } function KlockLocale$English() { KlockLocale$English$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_dga5i1$_0 = 'en'; this.firstDayOfWeek_s7n0fb$_0 = DayOfWeek$Sunday_getInstance(); this.daysOfWeek_fz9w6m$_0 = listOf(['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']); this.months_gzm3nh$_0 = listOf(['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']); this.formatTimeMedium_877xvb$_0 = this.format_61zpoe$('h:mm:ss a'); this.formatTimeShort_cvrowk$_0 = this.format_61zpoe$('h:mm a'); } function KlockLocale$English$Companion() { KlockLocale$English$Companion_instance = this; KlockLocale$English.call(this); } KlockLocale$English$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [KlockLocale$English] }; var KlockLocale$English$Companion_instance = null; function KlockLocale$English$Companion_getInstance() { if (KlockLocale$English$Companion_instance === null) { new KlockLocale$English$Companion(); }return KlockLocale$English$Companion_instance; } Object.defineProperty(KlockLocale$English.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_dga5i1$_0; } }); Object.defineProperty(KlockLocale$English.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_s7n0fb$_0; } }); Object.defineProperty(KlockLocale$English.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_fz9w6m$_0; } }); Object.defineProperty(KlockLocale$English.prototype, 'months', { configurable: true, get: function () { return this.months_gzm3nh$_0; } }); Object.defineProperty(KlockLocale$English.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_877xvb$_0; } }); Object.defineProperty(KlockLocale$English.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_cvrowk$_0; } }); KlockLocale$English.$metadata$ = { kind: Kind_CLASS, simpleName: 'English', interfaces: [KlockLocale] }; function KlockLocale$monthsShort$lambda(this$KlockLocale) { return function () { var $receiver = this$KlockLocale.months; var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10)); var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(substr(item, 0, 3)); } return destination; }; } function KlockLocale$daysOfWeekShort$lambda(this$KlockLocale) { return function () { var $receiver = this$KlockLocale.daysOfWeek; var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10)); var tmp$; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(substr(item, 0, 3)); } return destination; }; } KlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'KlockLocale', interfaces: [] }; function KlockLocaleContext(gender) { KlockLocaleContext$Companion_getInstance(); if (gender === void 0) gender = KlockLocaleGender$Neuter_getInstance(); this.gender = gender; } function KlockLocaleContext$Companion() { KlockLocaleContext$Companion_instance = this; this.Default = new KlockLocaleContext(); } KlockLocaleContext$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var KlockLocaleContext$Companion_instance = null; function KlockLocaleContext$Companion_getInstance() { if (KlockLocaleContext$Companion_instance === null) { new KlockLocaleContext$Companion(); }return KlockLocaleContext$Companion_instance; } KlockLocaleContext.$metadata$ = { kind: Kind_CLASS, simpleName: 'KlockLocaleContext', interfaces: [] }; KlockLocaleContext.prototype.component1 = function () { return this.gender; }; KlockLocaleContext.prototype.copy_g0xg03$ = function (gender) { return new KlockLocaleContext(gender === void 0 ? this.gender : gender); }; KlockLocaleContext.prototype.toString = function () { return 'KlockLocaleContext(gender=' + Kotlin.toString(this.gender) + ')'; }; KlockLocaleContext.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.gender) | 0; return result; }; KlockLocaleContext.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.gender, other.gender)))); }; function KlockLocaleGender(name, ordinal) { Enum.call(this); this.name$ = name; this.ordinal$ = ordinal; } function KlockLocaleGender_initFields() { KlockLocaleGender_initFields = function () { }; KlockLocaleGender$Neuter_instance = new KlockLocaleGender('Neuter', 0); KlockLocaleGender$Masculine_instance = new KlockLocaleGender('Masculine', 1); } var KlockLocaleGender$Neuter_instance; function KlockLocaleGender$Neuter_getInstance() { KlockLocaleGender_initFields(); return KlockLocaleGender$Neuter_instance; } var KlockLocaleGender$Masculine_instance; function KlockLocaleGender$Masculine_getInstance() { KlockLocaleGender_initFields(); return KlockLocaleGender$Masculine_instance; } KlockLocaleGender.$metadata$ = { kind: Kind_CLASS, simpleName: 'KlockLocaleGender', interfaces: [Enum] }; function KlockLocaleGender$values() { return [KlockLocaleGender$Neuter_getInstance(), KlockLocaleGender$Masculine_getInstance()]; } KlockLocaleGender.values = KlockLocaleGender$values; function KlockLocaleGender$valueOf(name) { switch (name) { case 'Neuter': return KlockLocaleGender$Neuter_getInstance(); case 'Masculine': return KlockLocaleGender$Masculine_getInstance(); default:throwISE('No enum constant com.soywiz.klock.KlockLocaleGender.' + name); } } KlockLocaleGender.valueOf_61zpoe$ = KlockLocaleGender$valueOf; var measureTime = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.measureTime_o14v8n$', wrapFunction(function () { var klock = _.com.soywiz.klock; var TimeSpan = _.com.soywiz.klock.TimeSpan; return function (callback) { var start = klock.PerformanceCounter.microseconds; callback(); var end = klock.PerformanceCounter.microseconds; var $receiver = end - start; return TimeSpan.Companion.fromMicroseconds_14dthe$($receiver); }; })); var measureTimeWithResult = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.measureTimeWithResult_klfg04$', wrapFunction(function () { var klock = _.com.soywiz.klock; var TimedResult_init = _.com.soywiz.klock.TimedResult; var TimeSpan = _.com.soywiz.klock.TimeSpan; return function (callback) { var start = klock.PerformanceCounter.microseconds; var result = callback(); var end = klock.PerformanceCounter.microseconds; var $receiver = end - start; var elapsed = TimeSpan.Companion.fromMicroseconds_14dthe$($receiver); return new TimedResult_init(result, elapsed); }; })); function TimedResult(result, time) { this.result = result; this.time = time; } TimedResult.$metadata$ = { kind: Kind_CLASS, simpleName: 'TimedResult', interfaces: [] }; TimedResult.prototype.component1 = function () { return this.result; }; TimedResult.prototype.component2 = function () { return this.time; }; TimedResult.prototype.copy_lx99sw$ = function (result, time) { return new TimedResult(result === void 0 ? this.result : result, time === void 0 ? this.time : time); }; TimedResult.prototype.toString = function () { return 'TimedResult(result=' + Kotlin.toString(this.result) + (', time=' + Kotlin.toString(this.time)) + ')'; }; TimedResult.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.result) | 0; result = result * 31 + Kotlin.hashCode(this.time) | 0; return result; }; TimedResult.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.result, other.result) && Kotlin.equals(this.time, other.time))))); }; function Month(name, ordinal, index1, daysCommon, daysLeap) { if (daysLeap === void 0) daysLeap = daysCommon; Enum.call(this); this.index1 = index1; this.daysCommon = daysCommon; this.daysLeap = daysLeap; this.name$ = name; this.ordinal$ = ordinal; } function Month_initFields() { Month_initFields = function () { }; Month$January_instance = new Month('January', 0, 1, 31); Month$February_instance = new Month('February', 1, 2, 28, 29); Month$March_instance = new Month('March', 2, 3, 31); Month$April_instance = new Month('April', 3, 4, 30); Month$May_instance = new Month('May', 4, 5, 31); Month$June_instance = new Month('June', 5, 6, 30); Month$July_instance = new Month('July', 6, 7, 31); Month$August_instance = new Month('August', 7, 8, 31); Month$September_instance = new Month('September', 8, 9, 30); Month$October_instance = new Month('October', 9, 10, 31); Month$November_instance = new Month('November', 10, 11, 30); Month$December_instance = new Month('December', 11, 12, 31); Month$Companion_getInstance(); } var Month$January_instance; function Month$January_getInstance() { Month_initFields(); return Month$January_instance; } var Month$February_instance; function Month$February_getInstance() { Month_initFields(); return Month$February_instance; } var Month$March_instance; function Month$March_getInstance() { Month_initFields(); return Month$March_instance; } var Month$April_instance; function Month$April_getInstance() { Month_initFields(); return Month$April_instance; } var Month$May_instance; function Month$May_getInstance() { Month_initFields(); return Month$May_instance; } var Month$June_instance; function Month$June_getInstance() { Month_initFields(); return Month$June_instance; } var Month$July_instance; function Month$July_getInstance() { Month_initFields(); return Month$July_instance; } var Month$August_instance; function Month$August_getInstance() { Month_initFields(); return Month$August_instance; } var Month$September_instance; function Month$September_getInstance() { Month_initFields(); return Month$September_instance; } var Month$October_instance; function Month$October_getInstance() { Month_initFields(); return Month$October_instance; } var Month$November_instance; function Month$November_getInstance() { Month_initFields(); return Month$November_instance; } var Month$December_instance; function Month$December_getInstance() { Month_initFields(); return Month$December_instance; } Object.defineProperty(Month.prototype, 'index0', { configurable: true, get: function () { return this.index1 - 1 | 0; } }); Month.prototype.days_6taknv$ = function (leap) { return leap ? this.daysLeap : this.daysCommon; }; Month.prototype.days_za3lpa$ = function (year) { return this.days_6taknv$((new Year(year)).isLeap); }; Month.prototype.days_ccxljp$ = function (year) { return this.days_6taknv$(year.isLeap); }; Month.prototype.daysToStart_6taknv$ = function (leap) { return Month$Companion_getInstance().YEAR_DAYS_0(leap)[this.index0]; }; Month.prototype.daysToStart_za3lpa$ = function (year) { return this.daysToStart_6taknv$((new Year(year)).isLeap); }; Month.prototype.daysToStart_ccxljp$ = function (year) { return this.daysToStart_6taknv$(year.isLeap); }; Month.prototype.daysToEnd_6taknv$ = function (leap) { return Month$Companion_getInstance().YEAR_DAYS_0(leap)[this.index1]; }; Month.prototype.daysToEnd_za3lpa$ = function (year) { return this.daysToEnd_6taknv$((new Year(year)).isLeap); }; Month.prototype.daysToEnd_ccxljp$ = function (year) { return this.daysToEnd_6taknv$(year.isLeap); }; Object.defineProperty(Month.prototype, 'previous', { configurable: true, get: function () { return this.minus_za3lpa$(1); } }); Object.defineProperty(Month.prototype, 'next', { configurable: true, get: function () { return this.plus_za3lpa$(1); } }); Month.prototype.plus_za3lpa$ = function (delta) { return Month$Companion_getInstance().get_za3lpa$(this.index1 + delta | 0); }; Month.prototype.minus_za3lpa$ = function (delta) { return Month$Companion_getInstance().get_za3lpa$(this.index1 - delta | 0); }; Month.prototype.minus_s5s5ke$ = function (other) { return abs(this.index0 - other.index0 | 0); }; Object.defineProperty(Month.prototype, 'localName', { configurable: true, get: function () { return this.localName_kdekv2$(KlockLocale$Companion_getInstance().default); } }); Month.prototype.localName_kdekv2$ = function (locale) { return locale.months.get_za3lpa$(this.index0); }; Object.defineProperty(Month.prototype, 'localShortName', { configurable: true, get: function () { return this.localShortName_kdekv2$(KlockLocale$Companion_getInstance().default); } }); Month.prototype.localShortName_kdekv2$ = function (locale) { return locale.monthsShort.get_za3lpa$(this.index0); }; function Month$Companion() { Month$Companion_instance = this; this.serialVersionUID_0 = L1; this.Count = 12; this.BY_INDEX0_0 = Month$values(); this.YEAR_DAYS_LEAP_0 = this.generateDaysToStart_0(true); this.YEAR_DAYS_COMMON_0 = this.generateDaysToStart_0(false); } Month$Companion.prototype.invoke_za3lpa$ = function (index1) { return this.adjusted_za3lpa$(index1); }; Month$Companion.prototype.get_za3lpa$ = function (index1) { return this.adjusted_za3lpa$(index1); }; Month$Companion.prototype.adjusted_za3lpa$ = function (index1) { return this.BY_INDEX0_0[umod(index1 - 1 | 0, 12)]; }; Month$Companion.prototype.checked_za3lpa$ = function (index1) { var tmp$ = this.BY_INDEX0_0; if (!(1 <= index1 && index1 <= 12)) throw new DateException('Month ' + index1 + ' not in 1..12'); return tmp$[index1 - 1 | 0]; }; Month$Companion.prototype.fromDayOfYear_fzusl$ = function (dayOfYear, leap) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3, tmp$_4; var days = this.YEAR_DAYS_0(leap); var day0 = dayOfYear - 1 | 0; var guess = day0 / 32 | 0; if (0 <= guess && guess <= 11) { tmp$ = days[guess]; tmp$_0 = days[guess + 1 | 0]; tmp$_1 = (tmp$ <= day0 && day0 < tmp$_0); } else tmp$_1 = false; if (tmp$_1) return Month$Companion_getInstance().get_za3lpa$(guess + 1 | 0); if (0 <= guess && guess <= 10) { tmp$_2 = days[guess + 1 | 0]; tmp$_3 = days[guess + 2 | 0]; tmp$_4 = (tmp$_2 <= day0 && day0 < tmp$_3); } else tmp$_4 = false; if (tmp$_4) return Month$Companion_getInstance().get_za3lpa$(guess + 2 | 0); return null; }; Month$Companion.prototype.fromDayOfYear_7t9d$ = function (dayOfYear, year) { return this.fromDayOfYear_fzusl$(dayOfYear, year.isLeap); }; Month$Companion.prototype.YEAR_DAYS_0 = function (isLeap) { return isLeap ? this.YEAR_DAYS_LEAP_0 : this.YEAR_DAYS_COMMON_0; }; Month$Companion.prototype.generateDaysToStart_0 = function (leap) { var total = {v: 0}; var array = new Int32Array(13); var tmp$; tmp$ = array.length - 1 | 0; for (var i = 0; i <= tmp$; i++) { total.v = total.v + (i === 0 ? 0 : this.BY_INDEX0_0[i - 1 | 0].days_6taknv$(leap)) | 0; array[i] = total.v; } return array; }; Month$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var Month$Companion_instance = null; function Month$Companion_getInstance() { Month_initFields(); if (Month$Companion_instance === null) { new Month$Companion(); }return Month$Companion_instance; } Month.$metadata$ = { kind: Kind_CLASS, simpleName: 'Month', interfaces: [Serializable, Enum] }; function Month$values() { return [Month$January_getInstance(), Month$February_getInstance(), Month$March_getInstance(), Month$April_getInstance(), Month$May_getInstance(), Month$June_getInstance(), Month$July_getInstance(), Month$August_getInstance(), Month$September_getInstance(), Month$October_getInstance(), Month$November_getInstance(), Month$December_getInstance()]; } Month.values = Month$values; function Month$valueOf(name) { switch (name) { case 'January': return Month$January_getInstance(); case 'February': return Month$February_getInstance(); case 'March': return Month$March_getInstance(); case 'April': return Month$April_getInstance(); case 'May': return Month$May_getInstance(); case 'June': return Month$June_getInstance(); case 'July': return Month$July_getInstance(); case 'August': return Month$August_getInstance(); case 'September': return Month$September_getInstance(); case 'October': return Month$October_getInstance(); case 'November': return Month$November_getInstance(); case 'December': return Month$December_getInstance(); default:throwISE('No enum constant com.soywiz.klock.Month.' + name); } } Month.valueOf_61zpoe$ = Month$valueOf; var get_years = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_years_s8ev3n$', wrapFunction(function () { var MonthSpan_init = _.com.soywiz.klock.MonthSpan; return function ($receiver) { return new MonthSpan_init(12 * $receiver | 0); }; })); var get_months = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_months_s8ev3n$', wrapFunction(function () { var MonthSpan_init = _.com.soywiz.klock.MonthSpan; return function ($receiver) { return new MonthSpan_init($receiver); }; })); function MonthSpan(totalMonths) { MonthSpan$Companion_getInstance(); this.totalMonths = totalMonths; } function MonthSpan$Companion() { MonthSpan$Companion_instance = this; this.serialVersionUID_0 = L1; } MonthSpan$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var MonthSpan$Companion_instance = null; function MonthSpan$Companion_getInstance() { if (MonthSpan$Companion_instance === null) { new MonthSpan$Companion(); }return MonthSpan$Companion_instance; } MonthSpan.prototype.unaryMinus = function () { return new MonthSpan(-this.totalMonths | 0); }; MonthSpan.prototype.unaryPlus = function () { return new MonthSpan(+this.totalMonths); }; MonthSpan.prototype.plus_fv8bff$ = function (other) { return new DateTimeSpan(this, other); }; MonthSpan.prototype.plus_glepj8$ = function (other) { return new MonthSpan(this.totalMonths + other.totalMonths | 0); }; MonthSpan.prototype.plus_5gml0z$ = function (other) { return new DateTimeSpan(other.monthSpan.plus_glepj8$(this), other.timeSpan); }; MonthSpan.prototype.minus_fv8bff$ = function (other) { return this.plus_fv8bff$(other.unaryMinus()); }; MonthSpan.prototype.minus_glepj8$ = function (other) { return this.plus_glepj8$(other.unaryMinus()); }; MonthSpan.prototype.minus_5gml0z$ = function (other) { return this.plus_5gml0z$(other.unaryMinus()); }; MonthSpan.prototype.times_14dthe$ = function (times) { return new MonthSpan(numberToInt(this.totalMonths * times)); }; MonthSpan.prototype.times_za3lpa$ = function (times) { return this.times_14dthe$(times); }; MonthSpan.prototype.times_mx4ult$ = function (times) { return this.times_14dthe$(times); }; MonthSpan.prototype.div_14dthe$ = function (times) { return new MonthSpan(numberToInt(this.totalMonths / times)); }; MonthSpan.prototype.div_za3lpa$ = function (times) { return this.div_14dthe$(times); }; MonthSpan.prototype.div_mx4ult$ = function (times) { return this.div_14dthe$(times); }; MonthSpan.prototype.compareTo_11rb$ = function (other) { return Kotlin.primitiveCompareTo(this.totalMonths, other.totalMonths); }; MonthSpan.prototype.toString = function () { var list = ArrayList_init_0(); if (get_years_0(this) !== 0) list.add_11rb$(get_years_0(this).toString() + 'Y'); if (get_months_0(this) !== 0 || get_years_0(this) === 0) list.add_11rb$(get_months_0(this).toString() + 'M'); return joinToString(list, ' '); }; MonthSpan.$metadata$ = { kind: Kind_CLASS, simpleName: 'MonthSpan', interfaces: [Serializable, Comparable] }; MonthSpan.prototype.unbox = function () { return this.totalMonths; }; MonthSpan.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.totalMonths) | 0; return result; }; MonthSpan.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.totalMonths, other.totalMonths)))); }; function get_totalYears($receiver) { return $receiver.totalMonths / 12.0; } function get_years_0($receiver) { return $receiver.totalMonths / 12 | 0; } function get_months_0($receiver) { return $receiver.totalMonths % 12; } function get_infiniteTimes() { return NumberOfTimes$Companion_getInstance().INFINITE; } var get_times = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_times_s8ev3n$', wrapFunction(function () { var NumberOfTimes_init = _.com.soywiz.klock.NumberOfTimes; return function ($receiver) { return new NumberOfTimes_init($receiver); }; })); function NumberOfTimes(count) { NumberOfTimes$Companion_getInstance(); this.count = count; } function NumberOfTimes$Companion() { NumberOfTimes$Companion_instance = this; this.ZERO = new NumberOfTimes(0); this.ONE = new NumberOfTimes(1); this.INFINITE = new NumberOfTimes(-2147483648); } NumberOfTimes$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var NumberOfTimes$Companion_instance = null; function NumberOfTimes$Companion_getInstance() { if (NumberOfTimes$Companion_instance === null) { new NumberOfTimes$Companion(); }return NumberOfTimes$Companion_instance; } Object.defineProperty(NumberOfTimes.prototype, 'isInfinite', { configurable: true, get: function () { return this != null ? this.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null; } }); Object.defineProperty(NumberOfTimes.prototype, 'isFinite', { configurable: true, get: function () { return !this.isInfinite; } }); Object.defineProperty(NumberOfTimes.prototype, 'hasMore', { configurable: true, get: function () { return !(this != null ? this.equals(NumberOfTimes$Companion_getInstance().ZERO) : null); } }); Object.defineProperty(NumberOfTimes.prototype, 'oneLess', { configurable: true, get: function () { return (this != null ? this.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null) ? NumberOfTimes$Companion_getInstance().INFINITE : new NumberOfTimes(this.count - 1 | 0); } }); NumberOfTimes.prototype.plus_n7limg$ = function (other) { return (this != null ? this.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null) || (other != null ? other.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null) ? NumberOfTimes$Companion_getInstance().INFINITE : new NumberOfTimes(this.count + other.count | 0); }; NumberOfTimes.prototype.minus_n7limg$ = function (other) { if (this != null ? this.equals(other) : null) return NumberOfTimes$Companion_getInstance().ZERO; else if ((this != null ? this.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null) || (other != null ? other.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null)) return NumberOfTimes$Companion_getInstance().INFINITE; else return new NumberOfTimes(this.count - other.count | 0); }; NumberOfTimes.prototype.times_za3lpa$ = function (other) { return (this != null ? this.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null) ? NumberOfTimes$Companion_getInstance().INFINITE : new NumberOfTimes(Kotlin.imul(this.count, other)); }; NumberOfTimes.prototype.div_za3lpa$ = function (other) { return (this != null ? this.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null) ? NumberOfTimes$Companion_getInstance().INFINITE : new NumberOfTimes(this.count / other | 0); }; NumberOfTimes.prototype.toString = function () { return (this != null ? this.equals(NumberOfTimes$Companion_getInstance().INFINITE) : null) ? this.count.toString() + ' times' : 'Infinite times'; }; NumberOfTimes.$metadata$ = { kind: Kind_CLASS, simpleName: 'NumberOfTimes', interfaces: [] }; NumberOfTimes.prototype.unbox = function () { return this.count; }; NumberOfTimes.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.count) | 0; return result; }; NumberOfTimes.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.count, other.count)))); }; function PatternDateFormat(format, locale, tzNames, options) { PatternDateFormat$Companion_getInstance(); if (locale === void 0) locale = null; if (tzNames === void 0) tzNames = TimezoneNames$Companion_getInstance().DEFAULT; if (options === void 0) options = PatternDateFormat$Options$Companion_getInstance().DEFAULT; this.format = format; this.locale = locale; this.tzNames = tzNames; this.options = options; this.openOffsets_0 = LinkedHashMap_init(); this.closeOffsets_0 = LinkedHashMap_init(); var $receiver = ArrayList_init_0(); var tmp$; var s = new MicroStrReader(this.format); while (s.hasMore) { if (unboxChar(s.peekChar()) === 39) { var start = s.offset; s.tryRead_s8itvh$(39); while (s.hasMore && unboxChar(s.readChar()) !== 39) { } var end = s.offset; var escapedChunk = s.str.substring(start, end); $receiver.add_11rb$(escapedChunk); continue; }if (this.options.optionalSupport) { var offset = $receiver.size; if (s.tryRead_s8itvh$(91)) { increment(this.openOffsets_0, offset); continue; }if (s.tryRead_s8itvh$(93)) { increment(this.closeOffsets_0, offset - 1 | 0); continue; }}$receiver.add_11rb$((tmp$ = s.tryReadOrNull_61zpoe$('do')) != null ? tmp$ : readRepeatedChar(s)); } this.chunks_8be2vx$ = toList_0($receiver); var $receiver_0 = this.chunks_8be2vx$; var destination = ArrayList_init(collectionSizeOrDefault($receiver_0, 10)); var tmp$_0; tmp$_0 = $receiver_0.iterator(); loop_label: while (tmp$_0.hasNext()) { var item = tmp$_0.next(); var tmp$_1 = destination.add_11rb$; var transform$result; transform$break: do { switch (item) { case 'E': case 'EE': case 'EEE': case 'EEEE': case 'EEEEE': case 'EEEEEE': transform$result = '(\\w+)'; break transform$break; case 'z': case 'zzz': transform$result = '([\\w\\s\\-+:]+)'; break transform$break; case 'do': transform$result = '(\\d{1,2}\\w+)'; break transform$break; case 'd': transform$result = '(\\d{1,2})'; break transform$break; case 'dd': transform$result = '(\\d{2})'; break transform$break; case 'M': transform$result = '(\\d{1,5})'; break transform$break; case 'MM': transform$result = '(\\d{2})'; break transform$break; case 'MMM': case 'MMMM': case 'MMMMM': transform$result = '(\\w+)'; break transform$break; case 'y': transform$result = '(\\d{1,5})'; break transform$break; case 'yy': transform$result = '(\\d{2})'; break transform$break; case 'yyy': transform$result = '(\\d{3})'; break transform$break; case 'yyyy': transform$result = '(\\d{4})'; break transform$break; case 'YYYY': transform$result = '(\\d{4})'; break transform$break; case 'H': case 'k': transform$result = '(\\d{1,2})'; break transform$break; case 'HH': case 'kk': transform$result = '(\\d{2})'; break transform$break; case 'h': case 'K': transform$result = '(\\d{1,2})'; break transform$break; case 'hh': case 'KK': transform$result = '(\\d{2})'; break transform$break; case 'm': transform$result = '(\\d{1,2})'; break transform$break; case 'mm': transform$result = '(\\d{2})'; break transform$break; case 's': transform$result = '(\\d{1,2})'; break transform$break; case 'ss': transform$result = '(\\d{2})'; break transform$break; case 'S': transform$result = '(\\d{1,6})'; break transform$break; case 'SS': transform$result = '(\\d{2})'; break transform$break; case 'SSS': transform$result = '(\\d{3})'; break transform$break; case 'SSSS': transform$result = '(\\d{4})'; break transform$break; case 'SSSSS': transform$result = '(\\d{5})'; break transform$break; case 'SSSSSS': transform$result = '(\\d{6})'; break transform$break; case 'SSSSSSS': transform$result = '(\\d{7})'; break transform$break; case 'SSSSSSSS': transform$result = '(\\d{8})'; break transform$break; case 'SSSSSSSSS': transform$result = '(\\d{9})'; break transform$break; case 'X': case 'XX': case 'XXX': case 'x': case 'xx': case 'xxx': transform$result = '([\\w:\\+\\-]+)'; break transform$break; case 'a': transform$result = '(\\w+)'; break transform$break; case ' ': transform$result = '(\\s+)'; break transform$break; default:if (startsWith_0(item, 39)) { transform$result = '(' + Regex.Companion.escape_61zpoe$(substr(item, 1, item.length - 2 | 0)) + ')'; break transform$break; } else { transform$result = '(' + Regex.Companion.escape_61zpoe$(item) + ')'; break transform$break; } } } while (false); tmp$_1.call(destination, transform$result); } this.regexChunks_8be2vx$ = destination; this.rx2_8be2vx$ = Regex_init('^' + this.matchingRegexString() + '$'); } function PatternDateFormat$Companion() { PatternDateFormat$Companion_instance = this; this.serialVersionUID_0 = L1; } PatternDateFormat$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var PatternDateFormat$Companion_instance = null; function PatternDateFormat$Companion_getInstance() { if (PatternDateFormat$Companion_instance === null) { new PatternDateFormat$Companion(); }return PatternDateFormat$Companion_instance; } Object.defineProperty(PatternDateFormat.prototype, 'realLocale', { configurable: true, get: function () { var tmp$; return (tmp$ = this.locale) != null ? tmp$ : KlockLocale$Companion_getInstance().default; } }); function PatternDateFormat$Options(optionalSupport) { PatternDateFormat$Options$Companion_getInstance(); if (optionalSupport === void 0) optionalSupport = false; this.optionalSupport = optionalSupport; } function PatternDateFormat$Options$Companion() { PatternDateFormat$Options$Companion_instance = this; this.serialVersionUID_0 = L1; this.DEFAULT = new PatternDateFormat$Options(false); this.WITH_OPTIONAL = new PatternDateFormat$Options(true); } PatternDateFormat$Options$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var PatternDateFormat$Options$Companion_instance = null; function PatternDateFormat$Options$Companion_getInstance() { if (PatternDateFormat$Options$Companion_instance === null) { new PatternDateFormat$Options$Companion(); }return PatternDateFormat$Options$Companion_instance; } PatternDateFormat$Options.$metadata$ = { kind: Kind_CLASS, simpleName: 'Options', interfaces: [Serializable] }; PatternDateFormat$Options.prototype.component1 = function () { return this.optionalSupport; }; PatternDateFormat$Options.prototype.copy_6taknv$ = function (optionalSupport) { return new PatternDateFormat$Options(optionalSupport === void 0 ? this.optionalSupport : optionalSupport); }; PatternDateFormat$Options.prototype.toString = function () { return 'Options(optionalSupport=' + Kotlin.toString(this.optionalSupport) + ')'; }; PatternDateFormat$Options.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.optionalSupport) | 0; return result; }; PatternDateFormat$Options.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.optionalSupport, other.optionalSupport)))); }; PatternDateFormat.prototype.withLocale_7qgj31$ = function (locale) { return this.copy_zf3jlx$(void 0, locale); }; PatternDateFormat.prototype.withTimezoneNames_7p84kh$ = function (tzNames) { return this.copy_zf3jlx$(void 0, void 0, this.tzNames.plus_7p84kh$(tzNames)); }; PatternDateFormat.prototype.withOptions_k6xag9$ = function (options) { return this.copy_zf3jlx$(void 0, void 0, void 0, options); }; PatternDateFormat.prototype.withOptional = function () { return this.copy_zf3jlx$(void 0, void 0, void 0, this.options.copy_6taknv$(true)); }; PatternDateFormat.prototype.withNonOptional = function () { return this.copy_zf3jlx$(void 0, void 0, void 0, this.options.copy_6taknv$(false)); }; PatternDateFormat.prototype.matchingRegexString = function () { var $receiver = this.regexChunks_8be2vx$; var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10)); var tmp$, tmp$_0; var index = 0; tmp$ = $receiver.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); var tmp$_1 = destination.add_11rb$; var index_0 = checkIndexOverflow((tmp$_0 = index, index = tmp$_0 + 1 | 0, tmp$_0)); var transform$result; if (this.options.optionalSupport) { var tmp$_2; var opens = (tmp$_2 = this.openOffsets_0.get_11rb$(index_0)) != null ? tmp$_2 : 0; var tmp$_3; var closes = (tmp$_3 = this.closeOffsets_0.get_11rb$(index_0)) != null ? tmp$_3 : 0; var $receiver_0 = StringBuilder_init(); for (var index_1 = 0; index_1 < opens; index_1++) { $receiver_0.append_pdl1vj$('(?:'); } $receiver_0.append_pdl1vj$(item); for (var index_2 = 0; index_2 < closes; index_2++) { $receiver_0.append_pdl1vj$(')?'); } transform$result = $receiver_0.toString(); } else { transform$result = item; } tmp$_1.call(destination, transform$result); } return joinToString(destination, ''); }; PatternDateFormat.prototype.format_j01w8f$ = function (dd) { var tmp$, tmp$_0, tmp$_1; var utc = dd.local; var out = ''; tmp$ = this.chunks_8be2vx$.iterator(); while (tmp$.hasNext()) { var name = tmp$.next(); var nlen = name.length; tmp$_1 = out; switch (name) { case 'E': case 'EE': case 'EEE': tmp$_0 = DayOfWeek$Companion_getInstance().get_za3lpa$(utc.dayOfWeek.index0).localShortName_kdekv2$(this.realLocale); break; case 'EEEE': case 'EEEEE': case 'EEEEEE': tmp$_0 = DayOfWeek$Companion_getInstance().get_za3lpa$(utc.dayOfWeek.index0).localName_kdekv2$(this.realLocale); break; case 'z': case 'zzz': tmp$_0 = dd.offset.timeZone; break; case 'd': case 'dd': tmp$_0 = padded(utc.dayOfMonth, nlen); break; case 'do': tmp$_0 = this.realLocale.getOrdinalByDay_1pz93x$(utc.dayOfMonth); break; case 'M': case 'MM': tmp$_0 = padded(utc.month1, nlen); break; case 'MMM': tmp$_0 = substr(Month$Companion_getInstance().get_za3lpa$(utc.month1).localName_kdekv2$(this.realLocale), 0, 3); break; case 'MMMM': tmp$_0 = Month$Companion_getInstance().get_za3lpa$(utc.month1).localName_kdekv2$(this.realLocale); break; case 'MMMMM': tmp$_0 = substr(Month$Companion_getInstance().get_za3lpa$(utc.month1).localName_kdekv2$(this.realLocale), 0, 1); break; case 'y': tmp$_0 = utc.yearInt; break; case 'yy': tmp$_0 = padded(utc.yearInt % 100, 2); break; case 'yyy': tmp$_0 = padded(utc.yearInt % 1000, 3); break; case 'yyyy': tmp$_0 = padded(utc.yearInt, 4); break; case 'YYYY': tmp$_0 = padded(utc.yearInt, 4); break; case 'H': case 'HH': tmp$_0 = padded(mconvertRangeZero(utc.hours, 24), nlen); break; case 'k': case 'kk': tmp$_0 = padded(mconvertRangeNonZero(utc.hours, 24), nlen); break; case 'h': case 'hh': tmp$_0 = padded(mconvertRangeNonZero(utc.hours, 12), nlen); break; case 'K': case 'KK': tmp$_0 = padded(mconvertRangeZero(utc.hours, 12), nlen); break; case 'm': case 'mm': tmp$_0 = padded(utc.minutes, nlen); break; case 's': case 'ss': tmp$_0 = padded(utc.seconds, nlen); break; case 'S': case 'SS': case 'SSS': case 'SSSS': case 'SSSSS': case 'SSSSSS': case 'SSSSSSS': case 'SSSSSSSS': case 'SSSSSSSSS': var milli = utc.milliseconds; var x = utc.milliseconds; var base10length = numberToInt(JsMath.log10(x)) + 1 | 0; if (base10length > name.length) { var n = -1 * (base10length - name.length | 0) | 0; tmp$_0 = numberToInt(milli * JsMath.pow(10.0, n)); } else { tmp$_0 = substr(padded(milli, 3) + '000000', 0, name.length); } break; case 'X': case 'XX': case 'XXX': case 'x': case 'xx': case 'xxx': if (startsWith(name, 'X') && dd.offset.totalMinutesInt === 0) tmp$_0 = 'Z'; else { var p = dd.offset.totalMinutesInt >= 0 ? '+' : '-'; var hours = abs(dd.offset.totalMinutesInt / 60 | 0); var minutes = abs(dd.offset.totalMinutesInt % 60); switch (name) { case 'X': case 'x': tmp$_0 = p + padded(hours, 2); break; case 'XX': case 'xx': tmp$_0 = p + padded(hours, 2) + padded(minutes, 2); break; case 'XXX': case 'xxx': tmp$_0 = p + padded(hours, 2) + ':' + padded(minutes, 2); break; default:tmp$_0 = name; break; } } break; case 'a': tmp$_0 = utc.hours < 12 ? 'am' : 'pm'; break; default:if (startsWith_0(name, 39)) { var endIndex = name.length - 1 | 0; tmp$_0 = name.substring(1, endIndex); } else tmp$_0 = name; break; } out = tmp$_1 + tmp$_0; } return out; }; PatternDateFormat.prototype.tryParse_ivxn3r$$default = function (str, doThrow) { var tmp$, tmp$_0, tmp$_1, tmp$_2, tmp$_3; var millisecond = 0; var second = 0; var minute = 0; var hour = 0; var day = 1; var month = 1; var fullYear = 1970; var offset = null; var isPm = false; var is12HourFormat = false; tmp$ = this.rx2_8be2vx$.find_905azu$(str); if (tmp$ == null) { return null; }var result = tmp$; tmp$_0 = zip(this.chunks_8be2vx$, drop(result.groupValues, 1)).iterator(); while (tmp$_0.hasNext()) { var tmp$_4 = tmp$_0.next(); var name = tmp$_4.component1() , value = tmp$_4.component2(); if (value.length === 0) continue; switch (name) { case 'E': case 'EE': case 'EEE': case 'EEEE': case 'EEEEE': case 'EEEEEE': break; case 'z': case 'zzz': offset = readTimeZoneOffset(new MicroStrReader(value), this.tzNames); break; case 'd': case 'dd': day = toInt(value); break; case 'do': day = this.realLocale.getDayByOrdinal_61zpoe$(value); break; case 'M': case 'MM': month = toInt(value); break; case 'MMM': month = this.realLocale.monthsShort.indexOf_11rb$(value) + 1 | 0; break; case 'y': case 'yyyy': case 'YYYY': fullYear = toInt(value); break; case 'yy': if (doThrow) throw RuntimeException_init('Not guessing years from two digits.'); else return null; case 'yyy': fullYear = toInt(value) + (toInt(value) < 800 ? 2000 : 1000) | 0; break; case 'H': case 'HH': case 'k': case 'kk': hour = umod(toInt(value), 24); break; case 'h': case 'hh': case 'K': case 'KK': hour = umod(toInt(value), 24); is12HourFormat = true; break; case 'm': case 'mm': minute = toInt(value); break; case 's': case 'ss': second = toInt(value); break; case 'S': case 'SS': case 'SSS': case 'SSSS': case 'SSSSS': case 'SSSSSS': case 'SSSSSSS': case 'SSSSSSSS': case 'SSSSSSSSS': var x = toDouble(value); var base10length = numberToInt(JsMath.log10(x)) + 1 | 0; if (base10length > 3) { var tmp$_5 = toDouble(value); var n = -1 * (base10length - 3 | 0) | 0; tmp$_1 = numberToInt(tmp$_5 * JsMath.pow(10.0, n)); } else { tmp$_1 = toInt(value); } millisecond = tmp$_1; break; case 'X': case 'XX': case 'XXX': case 'x': case 'xx': case 'xxx': if (startsWith(name, 'X') && first_0(value) === 90) { offset = TimeSpan.Companion.fromHours_14dthe$(0); } else if (startsWith(name, 'x') && first_0(value) === 90) if (doThrow) throw RuntimeException_init('Zulu Time Zone is only accepted with X-XXX formats.'); else return null; else if (first_0(value) !== 90) { var valueUnsigned = drop_0(value, 1); switch (name) { case 'X': case 'x': tmp$_2 = toInt(valueUnsigned); break; case 'XX': case 'xx': tmp$_2 = toInt(take(valueUnsigned, 2)); break; case 'XXX': case 'xxx': tmp$_2 = toInt(substringBefore(valueUnsigned, 58)); break; default:throw RuntimeException_init('Unreachable code! Incorrect implementation!'); } var hours = tmp$_2; switch (name) { case 'X': case 'x': tmp$_3 = 0; break; case 'XX': case 'xx': tmp$_3 = toInt(drop_0(valueUnsigned, 2)); break; case 'XXX': case 'xxx': tmp$_3 = toInt(substringAfter(valueUnsigned, 58, '0')); break; default:throw RuntimeException_init('Unreachable code! Incorrect implementation!'); } var minutes = tmp$_3; offset = TimeSpan.Companion.fromHours_14dthe$(hours).plus_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$(minutes)); if (first_0(value) === 45) { offset = offset.unaryMinus(); }} break; case 'MMMM': month = this.realLocale.months.indexOf_11rb$(value) + 1 | 0; break; case 'MMMMM': if (doThrow) throw RuntimeException_init('Not possible to get the month from one letter.'); else return null; case 'a': isPm = equals(value, 'pm'); break; default:break; } } if (is12HourFormat && isPm) { hour = hour + 12 | 0; }var dateTime = DateTime$Companion_getInstance().createAdjusted_ui44o2$(fullYear, month, day, hour, minute, second, millisecond); return dateTime.toOffsetUnadjusted_fv8bff$(offset != null ? offset : TimeSpan.Companion.fromHours_14dthe$(0)); }; PatternDateFormat.prototype.toString = function () { return this.format; }; PatternDateFormat.$metadata$ = { kind: Kind_CLASS, simpleName: 'PatternDateFormat', interfaces: [Serializable, DateFormat] }; PatternDateFormat.prototype.component1 = function () { return this.format; }; PatternDateFormat.prototype.component2 = function () { return this.locale; }; PatternDateFormat.prototype.component3 = function () { return this.tzNames; }; PatternDateFormat.prototype.component4 = function () { return this.options; }; PatternDateFormat.prototype.copy_zf3jlx$ = function (format, locale, tzNames, options) { return new PatternDateFormat(format === void 0 ? this.format : format, locale === void 0 ? this.locale : locale, tzNames === void 0 ? this.tzNames : tzNames, options === void 0 ? this.options : options); }; PatternDateFormat.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.format) | 0; result = result * 31 + Kotlin.hashCode(this.locale) | 0; result = result * 31 + Kotlin.hashCode(this.tzNames) | 0; result = result * 31 + Kotlin.hashCode(this.options) | 0; return result; }; PatternDateFormat.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.format, other.format) && Kotlin.equals(this.locale, other.locale) && Kotlin.equals(this.tzNames, other.tzNames) && Kotlin.equals(this.options, other.options))))); }; function mconvertRangeZero(value, size) { return umod(value, size); } function mconvertRangeNonZero(value, size) { var res = umod(value, size); return res === 0 ? size : res; } function readRepeatedChar($receiver) { var start = $receiver.offset; var c = unboxChar($receiver.readChar()); while ($receiver.hasMore && $receiver.tryRead_s8itvh$(c)) { } var end = $receiver.offset; return $receiver.str.substring(start, end); } function PatternTimeFormat(format, options) { PatternTimeFormat$Companion_getInstance(); if (options === void 0) options = PatternTimeFormat$Options$Companion_getInstance().DEFAULT; this.format = format; this.options = options; this.openOffsets_0 = LinkedHashMap_init(); this.closeOffsets_0 = LinkedHashMap_init(); var $receiver = ArrayList_init_0(); var s = new MicroStrReader(this.format); while (s.hasMore) { if (unboxChar(s.peekChar()) === 39) { var start = s.offset; s.tryRead_s8itvh$(39); while (s.hasMore && unboxChar(s.readChar()) !== 39) { } var end = s.offset; var escapedChunk = s.str.substring(start, end); $receiver.add_11rb$(escapedChunk); continue; }if (this.options.optionalSupport) { var offset = $receiver.size; if (s.tryRead_s8itvh$(91)) { increment(this.openOffsets_0, offset); continue; }if (s.tryRead_s8itvh$(93)) { increment(this.closeOffsets_0, offset - 1 | 0); continue; }}var start_0 = s.offset; var c = unboxChar(s.readChar()); while (s.hasMore && s.tryRead_s8itvh$(c)) { } var end_0 = s.offset; var chunk = s.str.substring(start_0, end_0); $receiver.add_11rb$(chunk); } this.chunks_8be2vx$ = toList_0($receiver); var $receiver_0 = this.chunks_8be2vx$; var destination = ArrayList_init(collectionSizeOrDefault($receiver_0, 10)); var tmp$; tmp$ = $receiver_0.iterator(); loop_label: while (tmp$.hasNext()) { var item = tmp$.next(); var tmp$_0 = destination.add_11rb$; var transform$result; transform$break: do { switch (item) { case 'H': case 'k': transform$result = '(\\d{1,})'; break transform$break; case 'HH': case 'kk': transform$result = '(\\d{2,})'; break transform$break; case 'h': case 'K': transform$result = '(\\d{1,2})'; break transform$break; case 'hh': case 'KK': transform$result = '(\\d{2})'; break transform$break; case 'm': transform$result = '(\\d{1,2})'; break transform$break; case 'mm': transform$result = '(\\d{2})'; break transform$break; case 's': transform$result = '(\\d{1,2})'; break transform$break; case 'ss': transform$result = '(\\d{2})'; break transform$break; case 'S': transform$result = '(\\d{1,6})'; break transform$break; case 'SS': transform$result = '(\\d{2})'; break transform$break; case 'SSS': transform$result = '(\\d{3})'; break transform$break; case 'SSSS': transform$result = '(\\d{4})'; break transform$break; case 'SSSSS': transform$result = '(\\d{5})'; break transform$break; case 'SSSSSS': transform$result = '(\\d{6})'; break transform$break; case 'SSSSSSS': transform$result = '(\\d{7})'; break transform$break; case 'SSSSSSSS': transform$result = '(\\d{8})'; break transform$break; case 'a': transform$result = '(\\w+)'; break transform$break; case ' ': transform$result = '(\\s+)'; break transform$break; default:if (startsWith_0(item, 39)) { transform$result = '(' + Regex.Companion.escapeReplacement_61zpoe$(substr(item, 1, item.length - 2 | 0)) + ')'; break transform$break; } else { transform$result = '(' + Regex.Companion.escapeReplacement_61zpoe$(item) + ')'; break transform$break; } } } while (false); tmp$_0.call(destination, transform$result); } this.regexChunks_0 = destination; var $receiver_1 = this.regexChunks_0; var destination_0 = ArrayList_init(collectionSizeOrDefault($receiver_1, 10)); var tmp$_1, tmp$_0_0; var index = 0; tmp$_1 = $receiver_1.iterator(); while (tmp$_1.hasNext()) { var item_0 = tmp$_1.next(); var tmp$_2 = destination_0.add_11rb$; var index_0 = checkIndexOverflow((tmp$_0_0 = index, index = tmp$_0_0 + 1 | 0, tmp$_0_0)); var transform$result_0; if (this.options.optionalSupport) { var tmp$_3; var opens = (tmp$_3 = this.openOffsets_0.get_11rb$(index_0)) != null ? tmp$_3 : 0; var tmp$_4; var closes = (tmp$_4 = this.closeOffsets_0.get_11rb$(index_0)) != null ? tmp$_4 : 0; var $receiver_2 = StringBuilder_init(); for (var index_1 = 0; index_1 < opens; index_1++) { $receiver_2.append_pdl1vj$('(?:'); } $receiver_2.append_pdl1vj$(item_0); for (var index_2 = 0; index_2 < closes; index_2++) { $receiver_2.append_pdl1vj$(')?'); } transform$result_0 = $receiver_2.toString(); } else { transform$result_0 = item_0; } tmp$_2.call(destination_0, transform$result_0); } this.rx2_0 = Regex_init('^' + joinToString(destination_0, '') + '$'); } function PatternTimeFormat$Companion() { PatternTimeFormat$Companion_instance = this; this.serialVersionUID_0 = L1; } PatternTimeFormat$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var PatternTimeFormat$Companion_instance = null; function PatternTimeFormat$Companion_getInstance() { if (PatternTimeFormat$Companion_instance === null) { new PatternTimeFormat$Companion(); }return PatternTimeFormat$Companion_instance; } function PatternTimeFormat$Options(optionalSupport) { PatternTimeFormat$Options$Companion_getInstance(); if (optionalSupport === void 0) optionalSupport = false; this.optionalSupport = optionalSupport; } function PatternTimeFormat$Options$Companion() { PatternTimeFormat$Options$Companion_instance = this; this.serialVersionUID_0 = L1; this.DEFAULT = new PatternTimeFormat$Options(false); this.WITH_OPTIONAL = new PatternTimeFormat$Options(true); } PatternTimeFormat$Options$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var PatternTimeFormat$Options$Companion_instance = null; function PatternTimeFormat$Options$Companion_getInstance() { if (PatternTimeFormat$Options$Companion_instance === null) { new PatternTimeFormat$Options$Companion(); }return PatternTimeFormat$Options$Companion_instance; } PatternTimeFormat$Options.$metadata$ = { kind: Kind_CLASS, simpleName: 'Options', interfaces: [Serializable] }; PatternTimeFormat$Options.prototype.component1 = function () { return this.optionalSupport; }; PatternTimeFormat$Options.prototype.copy_6taknv$ = function (optionalSupport) { return new PatternTimeFormat$Options(optionalSupport === void 0 ? this.optionalSupport : optionalSupport); }; PatternTimeFormat$Options.prototype.toString = function () { return 'Options(optionalSupport=' + Kotlin.toString(this.optionalSupport) + ')'; }; PatternTimeFormat$Options.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.optionalSupport) | 0; return result; }; PatternTimeFormat$Options.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.optionalSupport, other.optionalSupport)))); }; PatternTimeFormat.prototype.withOptions_p5lupi$ = function (options) { return this.copy_9l6z50$(void 0, options); }; PatternTimeFormat.prototype.withOptional = function () { return this.copy_9l6z50$(void 0, this.options.copy_6taknv$(true)); }; PatternTimeFormat.prototype.withNonOptional = function () { return this.copy_9l6z50$(void 0, this.options.copy_6taknv$(false)); }; PatternTimeFormat.prototype.clampZero_0 = function (value, size) { return umod(value, size); }; PatternTimeFormat.prototype.clampNonZero_0 = function (value, size) { var it = umod(value, size); return it === 0 ? size : it; }; PatternTimeFormat.prototype.format_fv8bff$ = function (dd) { var tmp$, tmp$_0, tmp$_1; var time = new Time(dd); var out = ''; tmp$ = this.chunks_8be2vx$.iterator(); while (tmp$.hasNext()) { var name = tmp$.next(); var nlen = name.length; tmp$_1 = out; switch (name) { case 'H': case 'HH': tmp$_0 = padded(time.hour, nlen); break; case 'k': case 'kk': tmp$_0 = padded(time.hour, nlen); break; case 'h': case 'hh': tmp$_0 = padded(this.clampNonZero_0(time.hour, 12), nlen); break; case 'K': case 'KK': tmp$_0 = padded(this.clampZero_0(time.hour, 12), nlen); break; case 'm': case 'mm': tmp$_0 = padded(time.minute, nlen); break; case 's': case 'ss': tmp$_0 = padded(time.second, nlen); break; case 'S': case 'SS': case 'SSS': case 'SSSS': case 'SSSSS': case 'SSSSSS': case 'SSSSSSS': case 'SSSSSSSS': var milli = time.millisecond; var x = time.millisecond; var numberLength = numberToInt(JsMath.log10(x)) + 1 | 0; if (numberLength > name.length) { var n = numberLength - name.length | 0; tmp$_0 = numberToInt(milli / JsMath.pow(10.0, n)); } else { tmp$_0 = substr(padded(milli, 3) + '00000', 0, name.length); } break; case 'a': tmp$_0 = time.hour < 12 ? 'am' : time.hour < 24 ? 'pm' : ''; break; default:var tmp$_2; if (startsWith_0(name, 39)) { var endIndex = name.length - 1 | 0; tmp$_2 = name.substring(1, endIndex); } else tmp$_2 = name; tmp$_0 = tmp$_2; break; } out = tmp$_1 + tmp$_0; } return out; }; PatternTimeFormat.prototype.tryParse_ivxn3r$ = function (str, doThrow) { var tmp$, tmp$_0, tmp$_1; var millisecond = 0; var second = 0; var minute = 0; var hour = 0; var isPm = false; var is12HourFormat = false; tmp$ = this.rx2_0.find_905azu$(str); if (tmp$ == null) { return null; }var result = tmp$; tmp$_0 = zip(this.chunks_8be2vx$, drop(result.groupValues, 1)).iterator(); while (tmp$_0.hasNext()) { var tmp$_2 = tmp$_0.next(); var name = tmp$_2.component1() , value = tmp$_2.component2(); if (value.length === 0) continue; switch (name) { case 'H': case 'HH': case 'k': case 'kk': hour = toInt(value); break; case 'h': case 'hh': case 'K': case 'KK': hour = umod(toInt(value), 24); is12HourFormat = true; break; case 'm': case 'mm': minute = toInt(value); break; case 's': case 'ss': second = toInt(value); break; case 'S': case 'SS': case 'SSS': case 'SSSS': case 'SSSSS': case 'SSSSSS': var x = toDouble(value); var numberLength = numberToInt(JsMath.log10(x)) + 1 | 0; if (numberLength > 3) { var tmp$_3 = toDouble(value); var n = -1 * (numberLength - 3 | 0) | 0; tmp$_1 = numberToInt(tmp$_3 * JsMath.pow(10.0, n)); } else { tmp$_1 = toInt(value); } millisecond = tmp$_1; break; case 'a': isPm = equals(value, 'pm'); break; default:break; } } if (is12HourFormat && isPm) { hour = hour + 12 | 0; }var $receiver = hour; var tmp$_4 = TimeSpan.Companion.fromHours_14dthe$($receiver); var $receiver_0 = minute; var tmp$_5 = tmp$_4.plus_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$($receiver_0)); var $receiver_1 = second; var tmp$_6 = tmp$_5.plus_fv8bff$(TimeSpan.Companion.fromSeconds_14dthe$($receiver_1)); var $receiver_2 = millisecond; return tmp$_6.plus_fv8bff$(TimeSpan.Companion.fromMilliseconds_14dthe$($receiver_2)); }; PatternTimeFormat.prototype.toString = function () { return this.format; }; PatternTimeFormat.$metadata$ = { kind: Kind_CLASS, simpleName: 'PatternTimeFormat', interfaces: [Serializable, TimeFormat] }; PatternTimeFormat.prototype.component1 = function () { return this.format; }; PatternTimeFormat.prototype.component2 = function () { return this.options; }; PatternTimeFormat.prototype.copy_9l6z50$ = function (format, options) { return new PatternTimeFormat(format === void 0 ? this.format : format, options === void 0 ? this.options : options); }; PatternTimeFormat.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.format) | 0; result = result * 31 + Kotlin.hashCode(this.options) | 0; return result; }; PatternTimeFormat.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.format, other.format) && Kotlin.equals(this.options, other.options))))); }; function PerformanceCounter() { PerformanceCounter_instance = this; } Object.defineProperty(PerformanceCounter.prototype, 'nanoseconds', { configurable: true, get: function () { return KlockInternal_getInstance().hrNow.nanosecondsDouble; } }); Object.defineProperty(PerformanceCounter.prototype, 'microseconds', { configurable: true, get: function () { return KlockInternal_getInstance().hrNow.microsecondsDouble; } }); Object.defineProperty(PerformanceCounter.prototype, 'milliseconds', { configurable: true, get: function () { return KlockInternal_getInstance().hrNow.millisecondsDouble; } }); Object.defineProperty(PerformanceCounter.prototype, 'reference', { configurable: true, get: function () { return get_timeSpan(KlockInternal_getInstance().hrNow); } }); Object.defineProperty(PerformanceCounter.prototype, 'hr', { configurable: true, get: function () { return KlockInternal_getInstance().hrNow; } }); PerformanceCounter.$metadata$ = { kind: Kind_OBJECT, simpleName: 'PerformanceCounter', interfaces: [] }; var PerformanceCounter_instance = null; function PerformanceCounter_getInstance() { if (PerformanceCounter_instance === null) { new PerformanceCounter(); }return PerformanceCounter_instance; } function blockingSleep(time) { KlockInternal_getInstance().sleep_seyb0p$(time); } function blockingSleep_0(time) { KlockInternal_getInstance().sleep_seyb0p$(get_hr(time)); } function Stopwatch(nanosecondProvider) { if (nanosecondProvider === void 0) nanosecondProvider = Stopwatch_init$lambda; this.nanosecondProvider = nanosecondProvider; this.running_0 = false; this.nanoseconds_0 = 0.0; this.setStart_0(); } Object.defineProperty(Stopwatch.prototype, 'clock_0', { configurable: true, get: function () { return this.nanosecondProvider(); } }); Stopwatch.prototype.setStart_0 = function () { this.nanoseconds_0 = this.clock_0; }; Stopwatch.prototype.start = function () { this.setStart_0(); this.running_0 = true; return this; }; Stopwatch.prototype.stop = function () { this.nanoseconds_0 = this.elapsedNanoseconds; this.running_0 = false; return this; }; Object.defineProperty(Stopwatch.prototype, 'elapsedNanoseconds', { configurable: true, get: function () { return this.running_0 ? this.clock_0 - this.nanoseconds_0 : this.nanoseconds_0; } }); Object.defineProperty(Stopwatch.prototype, 'elapsedMicroseconds', { configurable: true, get: function () { return this.elapsedNanoseconds * 1000; } }); Object.defineProperty(Stopwatch.prototype, 'elapsed', { configurable: true, get: function () { var $receiver = this.elapsedNanoseconds; return TimeSpan.Companion.fromNanoseconds_14dthe$($receiver); } }); function Stopwatch_init$lambda() { return PerformanceCounter_getInstance().nanoseconds; } Stopwatch.$metadata$ = { kind: Kind_CLASS, simpleName: 'Stopwatch', interfaces: [] }; function Time(encoded) { Time$Companion_getInstance(); this.encoded = encoded; } function Time$Companion() { Time$Companion_instance = this; this.serialVersionUID_0 = L1; this.DIV_MILLISECONDS_0 = 1; this.DIV_SECONDS_0 = 1000; this.DIV_MINUTES_0 = 60000; this.DIV_HOURS_0 = 3600000; } Time$Companion.prototype.invoke_tjonv8$ = function (hour, minute, second, millisecond) { if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (millisecond === void 0) millisecond = 0; return new Time(TimeSpan.Companion.fromHours_14dthe$(hour).plus_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$(minute)).plus_fv8bff$(TimeSpan.Companion.fromSeconds_14dthe$(second)).plus_fv8bff$(TimeSpan.Companion.fromMilliseconds_14dthe$(millisecond))); }; Time$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var Time$Companion_instance = null; function Time$Companion_getInstance() { if (Time$Companion_instance === null) { new Time$Companion(); }return Time$Companion_instance; } Object.defineProperty(Time.prototype, 'millisecond', { configurable: true, get: function () { return abs((this.encoded.millisecondsInt / 1 | 0) % 1000); } }); Object.defineProperty(Time.prototype, 'second', { configurable: true, get: function () { return abs((this.encoded.millisecondsInt / 1000 | 0) % 60); } }); Object.defineProperty(Time.prototype, 'minute', { configurable: true, get: function () { return abs((this.encoded.millisecondsInt / 60000 | 0) % 60); } }); Object.defineProperty(Time.prototype, 'hour', { configurable: true, get: function () { return this.encoded.millisecondsInt / 3600000 | 0; } }); Object.defineProperty(Time.prototype, 'hourAdjusted', { configurable: true, get: function () { return (this.encoded.millisecondsInt / 3600000 | 0) % 24; } }); Time.prototype.adjust = function () { return Time$Companion_getInstance().invoke_tjonv8$(this.hourAdjusted, this.minute, this.second, this.millisecond); }; Time.prototype.format_61zpoe$ = function (format) { return format_7(TimeFormat$Companion_getInstance().invoke_61zpoe$(format), this); }; Time.prototype.format_gscqvm$ = function (format) { return format_7(format, this); }; Time.prototype.toString = function () { return (this.hour < 0 ? '-' : '') + padStart(abs(this.hour).toString(), 2, 48) + ':' + padStart(abs(this.minute).toString(), 2, 48) + ':' + padStart(abs(this.second).toString(), 2, 48) + '.' + padStart(abs(this.millisecond).toString(), 3, 48); }; Time.prototype.compareTo_11rb$ = function (other) { return this.encoded.compareTo_11rb$(other.encoded); }; Time.$metadata$ = { kind: Kind_CLASS, simpleName: 'Time', interfaces: [Serializable, Comparable] }; Time.prototype.unbox = function () { return this.encoded; }; Time.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.encoded) | 0; return result; }; Time.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.encoded, other.encoded)))); }; function plus_5($receiver, span) { return new Time($receiver.encoded.plus_fv8bff$(span)); } function TimeFormat() { TimeFormat$Companion_getInstance(); } function TimeFormat$Companion() { TimeFormat$Companion_instance = this; this.DEFAULT_FORMAT = TimeFormat$Companion_getInstance().invoke_61zpoe$('HH:mm:ss.SSS'); this.FORMAT_TIME = TimeFormat$Companion_getInstance().invoke_61zpoe$('HH:mm:ss'); this.FORMATS = listOf([this.DEFAULT_FORMAT, this.FORMAT_TIME]); } TimeFormat$Companion.prototype.parse_61zpoe$ = function (time) { var tmp$; var lastError = null; tmp$ = this.FORMATS.iterator(); while (tmp$.hasNext()) { var format = tmp$.next(); try { return parse_1(format, time); } catch (e) { if (Kotlin.isType(e, Throwable)) { lastError = e; } else throw e; } } throw ensureNotNull(lastError); }; TimeFormat$Companion.prototype.invoke_61zpoe$ = function (pattern) { return new PatternTimeFormat(pattern); }; TimeFormat$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var TimeFormat$Companion_instance = null; function TimeFormat$Companion_getInstance() { if (TimeFormat$Companion_instance === null) { new TimeFormat$Companion(); }return TimeFormat$Companion_instance; } TimeFormat.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'TimeFormat', interfaces: [] }; function parse_1($receiver, str) { var tmp$; tmp$ = $receiver.tryParse_ivxn3r$(str, true); if (tmp$ == null) { throw new DateException("Not a valid format: '" + str + "' for '" + $receiver + "'"); }return tmp$; } function parseTime($receiver, str) { return new Time(parse_1($receiver, str)); } function format_5($receiver, time) { return $receiver.format_fv8bff$(TimeSpan.Companion.fromMilliseconds_14dthe$(time)); } function format_6($receiver, time) { return $receiver.format_fv8bff$(TimeSpan.Companion.fromMilliseconds_14dthe$(time.toNumber())); } function format_7($receiver, time) { return $receiver.format_fv8bff$(time.encoded); } function TimeProvider() { TimeProvider$Companion_getInstance(); } function TimeProvider$Companion() { TimeProvider$Companion_instance = this; } TimeProvider$Companion.prototype.now = function () { return DateTime$Companion_getInstance().now(); }; function TimeProvider$Companion$invoke$ObjectLiteral(closure$callback) { this.closure$callback = closure$callback; } TimeProvider$Companion$invoke$ObjectLiteral.prototype.now = function () { return this.closure$callback(); }; TimeProvider$Companion$invoke$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [TimeProvider] }; TimeProvider$Companion.prototype.invoke_x2enld$ = function (callback) { return new TimeProvider$Companion$invoke$ObjectLiteral(callback); }; TimeProvider$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [TimeProvider] }; var TimeProvider$Companion_instance = null; function TimeProvider$Companion_getInstance() { if (TimeProvider$Companion_instance === null) { new TimeProvider$Companion(); }return TimeProvider$Companion_instance; } TimeProvider.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'TimeProvider', interfaces: [] }; var measure = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.measure_boyie$', function ($receiver, block) { var start = $receiver.now(); block(); var end = $receiver.now(); return end.minus_mw5vjr$(start); }); var get_nanoseconds = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_nanoseconds_mts6qi$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromNanoseconds_14dthe$($receiver.toNumber()); }; })); var get_microseconds = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_microseconds_mts6qi$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMicroseconds_14dthe$($receiver.toNumber()); }; })); var get_milliseconds = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_milliseconds_mts6qi$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver.toNumber()); }; })); var get_seconds = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_seconds_mts6qi$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromSeconds_14dthe$($receiver.toNumber()); }; })); var get_minutes = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_minutes_mts6qi$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMinutes_14dthe$($receiver.toNumber()); }; })); var get_hours = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_hours_mts6qi$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromHours_14dthe$($receiver.toNumber()); }; })); var get_days = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_days_mts6qi$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromDays_14dthe$($receiver.toNumber()); }; })); var get_weeks = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_weeks_mts6qi$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromWeeks_14dthe$($receiver.toNumber()); }; })); var get_nanoseconds_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_nanoseconds_81szk$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromNanoseconds_14dthe$($receiver); }; })); var get_microseconds_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_microseconds_81szk$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMicroseconds_14dthe$($receiver); }; })); var get_milliseconds_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_milliseconds_81szk$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); }; })); var get_seconds_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_seconds_81szk$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromSeconds_14dthe$($receiver); }; })); var get_minutes_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_minutes_81szk$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMinutes_14dthe$($receiver); }; })); var get_hours_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_hours_81szk$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromHours_14dthe$($receiver); }; })); var get_days_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_days_81szk$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromDays_14dthe$($receiver); }; })); var get_weeks_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_weeks_81szk$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromWeeks_14dthe$($receiver); }; })); var get_nanoseconds_1 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_nanoseconds_s8ev3n$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromNanoseconds_14dthe$($receiver); }; })); var get_microseconds_1 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_microseconds_s8ev3n$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMicroseconds_14dthe$($receiver); }; })); var get_milliseconds_1 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_milliseconds_s8ev3n$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); }; })); var get_seconds_1 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_seconds_s8ev3n$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromSeconds_14dthe$($receiver); }; })); var get_minutes_1 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_minutes_s8ev3n$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMinutes_14dthe$($receiver); }; })); var get_hours_1 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_hours_s8ev3n$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromHours_14dthe$($receiver); }; })); var get_days_1 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_days_s8ev3n$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromDays_14dthe$($receiver); }; })); var get_weeks_1 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_weeks_s8ev3n$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromWeeks_14dthe$($receiver); }; })); var get_nanoseconds_2 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_nanoseconds_yrwdxr$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromNanoseconds_14dthe$($receiver); }; })); var get_microseconds_2 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_microseconds_yrwdxr$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMicroseconds_14dthe$($receiver); }; })); var get_milliseconds_2 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_milliseconds_yrwdxr$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); }; })); var get_seconds_2 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_seconds_yrwdxr$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromSeconds_14dthe$($receiver); }; })); var get_minutes_2 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_minutes_yrwdxr$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromMinutes_14dthe$($receiver); }; })); var get_hours_2 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_hours_yrwdxr$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromHours_14dthe$($receiver); }; })); var get_days_2 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_days_yrwdxr$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromDays_14dthe$($receiver); }; })); var get_weeks_2 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.get_weeks_yrwdxr$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver) { return TimeSpan.Companion.fromWeeks_14dthe$($receiver); }; })); function TimeSpan(milliseconds) { TimeSpan$Companion_getInstance(); this.milliseconds = milliseconds; } Object.defineProperty(TimeSpan.prototype, 'nanoseconds', { configurable: true, get: function () { return this.milliseconds / TimeSpan$Companion_getInstance().MILLIS_PER_NANOSECOND_0; } }); Object.defineProperty(TimeSpan.prototype, 'nanosecondsInt', { configurable: true, get: function () { return numberToInt(this.milliseconds / TimeSpan$Companion_getInstance().MILLIS_PER_NANOSECOND_0); } }); Object.defineProperty(TimeSpan.prototype, 'microseconds', { configurable: true, get: function () { return this.milliseconds / TimeSpan$Companion_getInstance().MILLIS_PER_MICROSECOND_0; } }); Object.defineProperty(TimeSpan.prototype, 'microsecondsInt', { configurable: true, get: function () { return numberToInt(this.milliseconds / TimeSpan$Companion_getInstance().MILLIS_PER_MICROSECOND_0); } }); Object.defineProperty(TimeSpan.prototype, 'seconds', { configurable: true, get: function () { return this.milliseconds / 1000; } }); Object.defineProperty(TimeSpan.prototype, 'minutes', { configurable: true, get: function () { return this.milliseconds / 60000; } }); Object.defineProperty(TimeSpan.prototype, 'hours', { configurable: true, get: function () { return this.milliseconds / 3600000; } }); Object.defineProperty(TimeSpan.prototype, 'days', { configurable: true, get: function () { return this.milliseconds / 86400000; } }); Object.defineProperty(TimeSpan.prototype, 'weeks', { configurable: true, get: function () { return this.milliseconds / 604800000; } }); Object.defineProperty(TimeSpan.prototype, 'millisecondsLong', { configurable: true, get: function () { return Kotlin.Long.fromNumber(this.milliseconds); } }); Object.defineProperty(TimeSpan.prototype, 'millisecondsInt', { configurable: true, get: function () { return numberToInt(this.milliseconds); } }); TimeSpan.prototype.compareTo_11rb$ = function (other) { return Kotlin.compareTo(this.milliseconds, other.milliseconds); }; TimeSpan.prototype.unaryMinus = function () { return new TimeSpan(-this.milliseconds); }; TimeSpan.prototype.unaryPlus = function () { return new TimeSpan(+this.milliseconds); }; TimeSpan.prototype.plus_fv8bff$ = function (other) { return new TimeSpan(this.milliseconds + other.milliseconds); }; TimeSpan.prototype.plus_glepj8$ = function (other) { return new DateTimeSpan(other, this); }; TimeSpan.prototype.plus_5gml0z$ = function (other) { return new DateTimeSpan(other.monthSpan, other.timeSpan.plus_fv8bff$(this)); }; TimeSpan.prototype.minus_fv8bff$ = function (other) { return this.plus_fv8bff$(other.unaryMinus()); }; TimeSpan.prototype.minus_glepj8$ = function (other) { return this.plus_glepj8$(other.unaryMinus()); }; TimeSpan.prototype.minus_5gml0z$ = function (other) { return this.plus_5gml0z$(other.unaryMinus()); }; TimeSpan.prototype.times_za3lpa$ = function (scale) { return new TimeSpan(this.milliseconds * scale); }; TimeSpan.prototype.times_14dthe$ = function (scale) { return new TimeSpan(this.milliseconds * scale); }; TimeSpan.prototype.div_za3lpa$ = function (scale) { return new TimeSpan(this.milliseconds / scale); }; TimeSpan.prototype.div_14dthe$ = function (scale) { return new TimeSpan(this.milliseconds / scale); }; TimeSpan.prototype.div_fv8bff$ = function (other) { return this.milliseconds / other.milliseconds; }; TimeSpan.prototype.rem_fv8bff$ = function (other) { var $receiver = this.milliseconds % other.milliseconds; return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); }; function TimeSpan$Companion() { TimeSpan$Companion_instance = this; this.serialVersionUID_0 = L1; this.MILLIS_PER_MICROSECOND_0 = 1.0 / 1000.0; this.MILLIS_PER_NANOSECOND_0 = this.MILLIS_PER_MICROSECOND_0 / 1000.0; this.ZERO = new TimeSpan(0.0); this.NIL = new TimeSpan(kotlin_js_internal_DoubleCompanionObject.NaN); this.timeSteps_0 = listOf([60, 60, 24]); } TimeSpan$Companion.prototype.fromMilliseconds_14dthe$ = function (ms) { if (ms === 0.0) return this.ZERO; else return new TimeSpan(ms); }; TimeSpan$Companion.prototype.fromNanoseconds_14dthe$ = function (s) { return this.fromMilliseconds_14dthe$(s * this.MILLIS_PER_NANOSECOND_0); }; TimeSpan$Companion.prototype.fromMicroseconds_14dthe$ = function (s) { return this.fromMilliseconds_14dthe$(s * this.MILLIS_PER_MICROSECOND_0); }; TimeSpan$Companion.prototype.fromSeconds_14dthe$ = function (s) { return this.fromMilliseconds_14dthe$(s * 1000); }; TimeSpan$Companion.prototype.fromMinutes_14dthe$ = function (s) { return this.fromMilliseconds_14dthe$(s * 60000); }; TimeSpan$Companion.prototype.fromHours_14dthe$ = function (s) { return this.fromMilliseconds_14dthe$(s * 3600000); }; TimeSpan$Companion.prototype.fromDays_14dthe$ = function (s) { return this.fromMilliseconds_14dthe$(s * 86400000); }; TimeSpan$Companion.prototype.fromWeeks_14dthe$ = function (s) { return this.fromMilliseconds_14dthe$(s * 604800000); }; TimeSpan$Companion.prototype.toTimeStringRaw_0 = function (totalMilliseconds, components) { if (components === void 0) components = 3; var tmp$; var x = totalMilliseconds / 1000.0; var timeUnit = numberToInt(JsMath.floor(x)); var out = ArrayList_init_0(); for (var n = 0; n < components; n++) { if (n === (components - 1 | 0)) { var element = padded(timeUnit, 2); out.add_11rb$(element); break; }tmp$ = getOrNull(this.timeSteps_0, n); if (tmp$ == null) { throw RuntimeException_init('Just supported ' + this.timeSteps_0.size + ' steps'); }var step = tmp$; var cunit = timeUnit % step; timeUnit = timeUnit / step | 0; var element_0 = padded(cunit, 2); out.add_11rb$(element_0); } return joinToString(reversed(out), ':'); }; TimeSpan$Companion.prototype.toTimeString_87xbef$ = function (totalMilliseconds, components, addMilliseconds) { if (components === void 0) components = 3; if (addMilliseconds === void 0) addMilliseconds = false; var milliseconds = numberToInt(totalMilliseconds % 1000); var out = this.toTimeStringRaw_0(totalMilliseconds, components); return addMilliseconds ? out + '.' + milliseconds : out; }; TimeSpan$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var TimeSpan$Companion_instance = null; function TimeSpan$Companion_getInstance() { if (TimeSpan$Companion_instance === null) { new TimeSpan$Companion(); }return TimeSpan$Companion_instance; } TimeSpan.prototype.toString = function () { return get_niceStr(this.milliseconds) + 'ms'; }; TimeSpan.$metadata$ = { kind: Kind_CLASS, simpleName: 'TimeSpan', interfaces: [Serializable, Comparable] }; TimeSpan.prototype.unbox = function () { return this.milliseconds; }; TimeSpan.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.milliseconds) | 0; return result; }; TimeSpan.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.milliseconds, other.milliseconds)))); }; function toTimeString($receiver, components, addMilliseconds) { if (components === void 0) components = 3; if (addMilliseconds === void 0) addMilliseconds = false; return TimeSpan$Companion_getInstance().toTimeString_87xbef$($receiver.milliseconds, components, addMilliseconds); } function max_0(a, b) { var a_0 = a.milliseconds; var b_0 = b.milliseconds; var $receiver = JsMath.max(a_0, b_0); return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); } function min_0(a, b) { var a_0 = a.milliseconds; var b_0 = b.milliseconds; var $receiver = JsMath.min(a_0, b_0); return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); } function clamp_0($receiver, min, max) { if ($receiver.compareTo_11rb$(min) < 0) return min; else if ($receiver.compareTo_11rb$(max) > 0) return max; else return $receiver; } var coalesce = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.coalesce_ujo5ib$', wrapFunction(function () { var TimeSpan = _.com.soywiz.klock.TimeSpan; return function ($receiver, block) { return !($receiver != null ? $receiver.equals(TimeSpan.Companion.NIL) : null) ? $receiver : block(); }; })); function TimezoneNames(namesToOffsets) { TimezoneNames$Companion_getInstance(); this.namesToOffsets = namesToOffsets; } TimezoneNames.prototype.plus_7p84kh$ = function (other) { return new TimezoneNames(plus_0(this.namesToOffsets, other.namesToOffsets)); }; function TimezoneNames$Companion() { TimezoneNames$Companion_instance = this; this.serialVersionUID_0 = L1; this.DEFAULT = TimezoneNames_init([to('PDT', TimeSpan.Companion.fromHours_14dthe$(-7)), to('PST', TimeSpan.Companion.fromHours_14dthe$(-8)), to('GMT', TimeSpan.Companion.fromHours_14dthe$(0)), to('UTC', TimeSpan.Companion.fromHours_14dthe$(0))]); } TimezoneNames$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var TimezoneNames$Companion_instance = null; function TimezoneNames$Companion_getInstance() { if (TimezoneNames$Companion_instance === null) { new TimezoneNames$Companion(); }return TimezoneNames$Companion_instance; } TimezoneNames.$metadata$ = { kind: Kind_CLASS, simpleName: 'TimezoneNames', interfaces: [Serializable] }; function TimezoneNames_init(tz, $this) { $this = $this || Object.create(TimezoneNames.prototype); TimezoneNames.call($this, toMap(tz)); return $this; } TimezoneNames.prototype.component1 = function () { return this.namesToOffsets; }; TimezoneNames.prototype.copy_ku5ca8$ = function (namesToOffsets) { return new TimezoneNames(namesToOffsets === void 0 ? this.namesToOffsets : namesToOffsets); }; TimezoneNames.prototype.toString = function () { return 'TimezoneNames(namesToOffsets=' + Kotlin.toString(this.namesToOffsets) + ')'; }; TimezoneNames.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.namesToOffsets) | 0; return result; }; TimezoneNames.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.namesToOffsets, other.namesToOffsets)))); }; function TimezoneOffset(totalMilliseconds) { TimezoneOffset$Companion_getInstance(); this.totalMilliseconds = totalMilliseconds; } Object.defineProperty(TimezoneOffset.prototype, 'positive', { configurable: true, get: function () { return this.totalMilliseconds >= 0.0; } }); Object.defineProperty(TimezoneOffset.prototype, 'time', { configurable: true, get: function () { var $receiver = this.totalMilliseconds; return TimeSpan.Companion.fromMilliseconds_14dthe$($receiver); } }); Object.defineProperty(TimezoneOffset.prototype, 'totalMinutes', { configurable: true, get: function () { return this.totalMilliseconds / 60000; } }); Object.defineProperty(TimezoneOffset.prototype, 'totalMinutesInt', { configurable: true, get: function () { return numberToInt(this.totalMinutes); } }); Object.defineProperty(TimezoneOffset.prototype, 'timeZone', { configurable: true, get: function () { var tmp$; var sign = this.positive ? '+' : '-'; var hour = padded(this.deltaHoursAbs_8be2vx$, 2); var minute = padded(this.deltaMinutesAbs_8be2vx$, 2); return ((tmp$ = this.time) != null ? tmp$.equals(TimeSpan.Companion.fromMinutes_14dthe$(0)) : null) ? 'UTC' : 'GMT' + sign + hour + minute; } }); Object.defineProperty(TimezoneOffset.prototype, 'deltaTotalMinutesAbs_0', { configurable: true, get: function () { return abs(numberToInt(this.totalMinutes)); } }); Object.defineProperty(TimezoneOffset.prototype, 'deltaHoursAbs_8be2vx$', { configurable: true, get: function () { return this.deltaTotalMinutesAbs_0 / 60 | 0; } }); Object.defineProperty(TimezoneOffset.prototype, 'deltaMinutesAbs_8be2vx$', { configurable: true, get: function () { return this.deltaTotalMinutesAbs_0 % 60; } }); TimezoneOffset.prototype.toString = function () { return this.timeZone; }; function TimezoneOffset$Companion() { TimezoneOffset$Companion_instance = this; this.serialVersionUID_0 = L1; } TimezoneOffset$Companion.prototype.invoke_fv8bff$ = function (time) { return new TimezoneOffset(time.milliseconds); }; TimezoneOffset$Companion.prototype.local_mw5vjr$ = function (time) { return get_offset(KlockInternal_getInstance().localTimezoneOffsetMinutes_mw5vjr$(time)); }; TimezoneOffset$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var TimezoneOffset$Companion_instance = null; function TimezoneOffset$Companion_getInstance() { if (TimezoneOffset$Companion_instance === null) { new TimezoneOffset$Companion(); }return TimezoneOffset$Companion_instance; } TimezoneOffset.prototype.compareTo_11rb$ = function (other) { return Kotlin.compareTo(this.totalMilliseconds, other.totalMilliseconds); }; TimezoneOffset.$metadata$ = { kind: Kind_CLASS, simpleName: 'TimezoneOffset', interfaces: [Serializable, Comparable] }; TimezoneOffset.prototype.unbox = function () { return this.totalMilliseconds; }; TimezoneOffset.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.totalMilliseconds) | 0; return result; }; TimezoneOffset.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.totalMilliseconds, other.totalMilliseconds)))); }; function get_offset($receiver) { return TimezoneOffset$Companion_getInstance().invoke_fv8bff$($receiver); } function Year(year) { Year$Companion_getInstance(); this.year = year; } function Year$Companion() { Year$Companion_instance = this; this.serialVersionUID_0 = L1; this.DAYS_COMMON = 365; this.DAYS_LEAP = 366; this.LEAP_PER_4_YEARS_0 = 1; this.LEAP_PER_100_YEARS_0 = 24; this.LEAP_PER_400_YEARS_0 = 97; this.DAYS_PER_4_YEARS_0 = 1461; this.DAYS_PER_100_YEARS_0 = 36524; this.DAYS_PER_400_YEARS_0 = 146097; } Year$Companion.prototype.checked_za3lpa$ = function (year) { if (!(1 <= year && year <= 9999)) throw new DateException('Year ' + year + ' not in 1..9999'); return year; }; Year$Companion.prototype.isLeapChecked_za3lpa$ = function (year) { return this.isLeap_za3lpa$(this.checked_za3lpa$(year)); }; Year$Companion.prototype.isLeap_za3lpa$ = function (year) { return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); }; Year$Companion.prototype.fromDays_za3lpa$ = function (days) { var v400 = days / 146097 | 0; var r400 = days - (v400 * 146097 | 0) | 0; var a = r400 / 36524 | 0; var v100 = JsMath.min(a, 3); var r100 = r400 - (v100 * 36524 | 0) | 0; var v4 = r100 / 1461 | 0; var r4 = r100 - (v4 * 1461 | 0) | 0; var a_0 = r4 / 365 | 0; var v1 = JsMath.min(a_0, 3); var extra = days < 0 ? 0 : 1; return new Year(extra + v1 + (v4 * 4 | 0) + (v100 * 100 | 0) + (v400 * 400 | 0) | 0); }; Year$Companion.prototype.days_6taknv$ = function (isLeap) { return isLeap ? 366 : 365; }; Year$Companion.prototype.leapCountSinceOne_za3lpa$ = function (year) { if (year < 1) { var leapCount = 0; var y = 1; while (y >= year) { if ((new Year(y)).isLeap) { leapCount = leapCount - 1 | 0; }y = y - 1 | 0; } return leapCount; }var y1 = year - 1 | 0; var res = (y1 / 4 | 0) - (y1 / 100 | 0) + (y1 / 400 | 0) | 0; return res; }; Year$Companion.prototype.daysSinceOne_za3lpa$ = function (year) { return (365 * (year - 1 | 0) | 0) + this.leapCountSinceOne_za3lpa$(year) | 0; }; Year$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var Year$Companion_instance = null; function Year$Companion_getInstance() { if (Year$Companion_instance === null) { new Year$Companion(); }return Year$Companion_instance; } Object.defineProperty(Year.prototype, 'isLeapChecked', { configurable: true, get: function () { return Year$Companion_getInstance().isLeapChecked_za3lpa$(this.year); } }); Object.defineProperty(Year.prototype, 'isLeap', { configurable: true, get: function () { return Year$Companion_getInstance().isLeap_za3lpa$(this.year); } }); Object.defineProperty(Year.prototype, 'days', { configurable: true, get: function () { return Year$Companion_getInstance().days_6taknv$(this.isLeap); } }); Object.defineProperty(Year.prototype, 'leapCountSinceOne', { configurable: true, get: function () { return Year$Companion_getInstance().leapCountSinceOne_za3lpa$(this.year); } }); Object.defineProperty(Year.prototype, 'daysSinceOne', { configurable: true, get: function () { return Year$Companion_getInstance().daysSinceOne_za3lpa$(this.year); } }); Year.prototype.compareTo_11rb$ = function (other) { return Kotlin.primitiveCompareTo(this.year, other.year); }; Year.prototype.plus_za3lpa$ = function (delta) { return new Year(this.year + delta | 0); }; Year.prototype.minus_za3lpa$ = function (delta) { return new Year(this.year - delta | 0); }; Year.prototype.minus_ccxljp$ = function (other) { return this.year - other.year | 0; }; Year.$metadata$ = { kind: Kind_CLASS, simpleName: 'Year', interfaces: [Serializable, Comparable] }; Year.prototype.unbox = function () { return this.year; }; Year.prototype.toString = function () { return 'Year(year=' + Kotlin.toString(this.year) + ')'; }; Year.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.year) | 0; return result; }; Year.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.year, other.year)))); }; function YearMonth(internalPackedInfo) { YearMonth$Companion_getInstance(); this.internalPackedInfo_8be2vx$ = internalPackedInfo; } function YearMonth$Companion() { YearMonth$Companion_instance = this; this.serialVersionUID_0 = L1; } YearMonth$Companion.prototype.invoke_wk05xp$ = function (year, month) { return YearMonth$Companion_getInstance().invoke_vux9f0$(year.year, month.index1); }; YearMonth$Companion.prototype.invoke_bbks$ = function (year, month) { return YearMonth$Companion_getInstance().invoke_vux9f0$(year, month.index1); }; YearMonth$Companion.prototype.invoke_vux9f0$ = function (year, month1) { return new YearMonth(year << 4 | month1 & 15); }; YearMonth$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var YearMonth$Companion_instance = null; function YearMonth$Companion_getInstance() { if (YearMonth$Companion_instance === null) { new YearMonth$Companion(); }return YearMonth$Companion_instance; } Object.defineProperty(YearMonth.prototype, 'year', { configurable: true, get: function () { return new Year(this.yearInt); } }); Object.defineProperty(YearMonth.prototype, 'yearInt', { configurable: true, get: function () { return this.internalPackedInfo_8be2vx$ >>> 4; } }); Object.defineProperty(YearMonth.prototype, 'month', { configurable: true, get: function () { return Month$Companion_getInstance().get_za3lpa$(this.month1); } }); Object.defineProperty(YearMonth.prototype, 'month1', { configurable: true, get: function () { return this.internalPackedInfo_8be2vx$ & 15; } }); Object.defineProperty(YearMonth.prototype, 'days', { configurable: true, get: function () { return this.month.days_ccxljp$(this.year); } }); Object.defineProperty(YearMonth.prototype, 'daysToStart', { configurable: true, get: function () { return this.month.daysToStart_ccxljp$(this.year); } }); Object.defineProperty(YearMonth.prototype, 'daysToEnd', { configurable: true, get: function () { return this.month.daysToEnd_ccxljp$(this.year); } }); YearMonth.prototype.plus_glepj8$ = function (span) { var tmp$; var newMonth = this.month1 + get_months_0(span) | 0; if (newMonth > 12) tmp$ = 1; else if (newMonth < 1) tmp$ = -1; else tmp$ = 0; var yearAdjust = tmp$; return YearMonth$Companion_getInstance().invoke_wk05xp$(new Year(this.yearInt + get_years_0(span) + yearAdjust | 0), Month$Companion_getInstance().get_za3lpa$(newMonth)); }; YearMonth.prototype.minus_glepj8$ = function (span) { return this.plus_glepj8$(span.unaryMinus()); }; YearMonth.prototype.toString = function () { return this.month.toString() + ' ' + this.yearInt; }; YearMonth.$metadata$ = { kind: Kind_CLASS, simpleName: 'YearMonth', interfaces: [Serializable] }; YearMonth.prototype.unbox = function () { return this.internalPackedInfo_8be2vx$; }; YearMonth.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.internalPackedInfo_8be2vx$) | 0; return result; }; YearMonth.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.internalPackedInfo_8be2vx$, other.internalPackedInfo_8be2vx$)))); }; function withMonth($receiver, month) { return YearMonth$Companion_getInstance().invoke_wk05xp$($receiver, month); } function withYear($receiver, year) { return YearMonth$Companion_getInstance().invoke_wk05xp$(year, $receiver); } function KlockExperimental() { } KlockExperimental.$metadata$ = { kind: Kind_CLASS, simpleName: 'KlockExperimental', interfaces: [Annotation] }; function benchmark$lambda(closure$block) { return function () { closure$block(); return 1.0; }; } function benchmark$lambda_0(closure$block) { return function () { var tmp$; return Kotlin.isTypeOf('number')(tmp$ = closure$block()) ? tmp$ : throwCCE(); }; } function benchmark$lambda_1(closure$block) { return function () { var tmp$; return (Kotlin.isInstanceOf(Kotlin.Long)(tmp$ = closure$block()) ? tmp$ : throwCCE()).toNumber(); }; } function benchmark$lambda_2(closure$block) { return function () { var tmp$; return Kotlin.isTypeOf('number')(tmp$ = closure$block()) ? tmp$ : throwCCE(); }; } function benchmark$lambda_3(closure$block) { return function () { closure$block(); return 1.0; }; } function BenchmarkResult(timePerCallNanoseconds, maxDeviationNanoseconds, partialResults, dummyResult) { this.timePerCallNanoseconds = timePerCallNanoseconds; this.maxDeviationNanoseconds = maxDeviationNanoseconds; this.partialResults = partialResults; this.dummyResult = dummyResult; } function BenchmarkResult$PartialResult(nanos, iters) { this.nanos = nanos; this.iters = iters; } Object.defineProperty(BenchmarkResult$PartialResult.prototype, 'nanosPerIter', { configurable: true, get: function () { return this.nanos.toNumber() / this.iters.toNumber(); } }); BenchmarkResult$PartialResult.prototype.toString = function () { return 'PartialResult(nanosPerIter=' + this.nanosPerIter + ', nanos=' + this.nanos.toString() + ', iters=' + this.iters.toString() + ')'; }; BenchmarkResult$PartialResult.$metadata$ = { kind: Kind_CLASS, simpleName: 'PartialResult', interfaces: [] }; BenchmarkResult$PartialResult.prototype.component1 = function () { return this.nanos; }; BenchmarkResult$PartialResult.prototype.component2 = function () { return this.iters; }; BenchmarkResult$PartialResult.prototype.copy_3pjtqy$ = function (nanos, iters) { return new BenchmarkResult$PartialResult(nanos === void 0 ? this.nanos : nanos, iters === void 0 ? this.iters : iters); }; BenchmarkResult$PartialResult.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.nanos) | 0; result = result * 31 + Kotlin.hashCode(this.iters) | 0; return result; }; BenchmarkResult$PartialResult.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.nanos, other.nanos) && Kotlin.equals(this.iters, other.iters))))); }; Object.defineProperty(BenchmarkResult.prototype, 'timePerCallMicroseconds', { configurable: true, get: function () { return this.timePerCallNanoseconds.toNumber() / 1000.0; } }); Object.defineProperty(BenchmarkResult.prototype, 'maxDeviationMicroseconds', { configurable: true, get: function () { return this.maxDeviationNanoseconds.toNumber() / 1000.0; } }); Object.defineProperty(BenchmarkResult.prototype, 'timePerCall', { configurable: true, get: function () { var $receiver = this.timePerCallNanoseconds; return TimeSpan.Companion.fromNanoseconds_14dthe$($receiver.toNumber()); } }); Object.defineProperty(BenchmarkResult.prototype, 'maxDeviation', { configurable: true, get: function () { var $receiver = this.maxDeviationNanoseconds; return TimeSpan.Companion.fromNanoseconds_14dthe$($receiver.toNumber()); } }); BenchmarkResult.prototype.rounded_0 = function (value) { return Kotlin.Long.fromNumber(value * 10000).toNumber() / 10000.0; }; BenchmarkResult.prototype.toString = function () { return this.rounded_0(this.timePerCallMicroseconds).toString() + ' \xB5s \xB1 ' + this.rounded_0(this.maxDeviationMicroseconds) + ' \xB5s'; }; BenchmarkResult.$metadata$ = { kind: Kind_CLASS, simpleName: 'BenchmarkResult', interfaces: [] }; BenchmarkResult.prototype.component1 = function () { return this.timePerCallNanoseconds; }; BenchmarkResult.prototype.component2 = function () { return this.maxDeviationNanoseconds; }; BenchmarkResult.prototype.component3 = function () { return this.partialResults; }; BenchmarkResult.prototype.component4 = function () { return this.dummyResult; }; BenchmarkResult.prototype.copy_i6x4x4$ = function (timePerCallNanoseconds, maxDeviationNanoseconds, partialResults, dummyResult) { return new BenchmarkResult(timePerCallNanoseconds === void 0 ? this.timePerCallNanoseconds : timePerCallNanoseconds, maxDeviationNanoseconds === void 0 ? this.maxDeviationNanoseconds : maxDeviationNanoseconds, partialResults === void 0 ? this.partialResults : partialResults, dummyResult === void 0 ? this.dummyResult : dummyResult); }; BenchmarkResult.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.timePerCallNanoseconds) | 0; result = result * 31 + Kotlin.hashCode(this.maxDeviationNanoseconds) | 0; result = result * 31 + Kotlin.hashCode(this.partialResults) | 0; result = result * 31 + Kotlin.hashCode(this.dummyResult) | 0; return result; }; BenchmarkResult.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.timePerCallNanoseconds, other.timePerCallNanoseconds) && Kotlin.equals(this.maxDeviationNanoseconds, other.maxDeviationNanoseconds) && Kotlin.equals(this.partialResults, other.partialResults) && Kotlin.equals(this.dummyResult, other.dummyResult))))); }; var benchmark = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.benchmark.benchmark_klfg04$', wrapFunction(function () { var getKClass = Kotlin.getKClass; var benchmark = _.com.soywiz.klock.benchmark.benchmark_qipvwm$; var kotlin = Kotlin.kotlin; var equals = Kotlin.equals; var throwCCE = Kotlin.throwCCE; var PrimitiveClasses$intClass = Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.intClass; var Long = Kotlin.Long; var PrimitiveClasses$doubleClass = Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.doubleClass; function benchmark$lambda(closure$block) { return function () { closure$block(); return 1.0; }; } function benchmark$lambda_0(closure$block) { return function () { var tmp$; return typeof (tmp$ = closure$block()) === 'number' ? tmp$ : throwCCE(); }; } function benchmark$lambda_1(closure$block) { return function () { var tmp$; return (Kotlin.isType(tmp$ = closure$block(), Kotlin.Long) ? tmp$ : throwCCE()).toNumber(); }; } function benchmark$lambda_2(closure$block) { return function () { var tmp$; return typeof (tmp$ = closure$block()) === 'number' ? tmp$ : throwCCE(); }; } function benchmark$lambda_3(closure$block) { return function () { closure$block(); return 1.0; }; } return function (T_0, isT, block) { var tmp$, tmp$_0; tmp$ = getKClass(T_0); if (equals(tmp$, getKClass(Object.getPrototypeOf(kotlin.Unit).constructor))) tmp$_0 = benchmark(benchmark$lambda(block)); else if (equals(tmp$, PrimitiveClasses$intClass)) tmp$_0 = benchmark(benchmark$lambda_0(block)); else if (equals(tmp$, getKClass(Long))) tmp$_0 = benchmark(benchmark$lambda_1(block)); else if (equals(tmp$, PrimitiveClasses$doubleClass)) tmp$_0 = benchmark(benchmark$lambda_2(block)); else tmp$_0 = benchmark(benchmark$lambda_3(block)); return tmp$_0; }; })); function measureScale(block) { var sum = {v: 0.0}; sum.v += block(); for (var scale = 0; scale <= 9; scale++) { var iters = numberToInt(JsMath.pow(10.0, scale)); var start = package$klock.PerformanceCounter.microseconds; for (var n = 0; n < iters; n++) { sum.v += block(); } var end = package$klock.PerformanceCounter.microseconds; var $receiver = end - start; var time = TimeSpan.Companion.fromMicroseconds_14dthe$($receiver); sum.v *= 0.1; if (time.compareTo_11rb$(TimeSpan.Companion.fromMilliseconds_14dthe$(10)) >= 0) return iters + numberToInt(sum.v * 1.0E-14 * 1.0E-14 * 1.0E-14 * 1.0E-14) | 0; } return 2147483647; } function benchmark_0(block) { var stopwatch = new Stopwatch(); var dummySum = 0.0; dummySum += measureScale(block); var itersToGetAtLeast10Ms = measureScale(block); var allResults = ArrayList_init_0(); for (var n = 0; n < 200; n++) { stopwatch.start(); for (var m = 0; m < itersToGetAtLeast10Ms; m++) dummySum += block(); var time = stopwatch.elapsedNanoseconds; var element = new BenchmarkResult$PartialResult(Kotlin.Long.fromNumber(time), Kotlin.Long.fromInt(itersToGetAtLeast10Ms)); allResults.add_11rb$(element); } var results = drop(allResults, allResults.size / 2 | 0); var destination = ArrayList_init(collectionSizeOrDefault(results, 10)); var tmp$; tmp$ = results.iterator(); while (tmp$.hasNext()) { var item = tmp$.next(); destination.add_11rb$(item.nanos); } var ftotalNanoseconds = sum(destination).toNumber(); var destination_0 = ArrayList_init(collectionSizeOrDefault(results, 10)); var tmp$_0; tmp$_0 = results.iterator(); while (tmp$_0.hasNext()) { var item_0 = tmp$_0.next(); destination_0.add_11rb$(item_0.iters); } var ftotalIters = sum(destination_0).toNumber(); var destination_1 = ArrayList_init(collectionSizeOrDefault(results, 10)); var tmp$_1; tmp$_1 = results.iterator(); while (tmp$_1.hasNext()) { var item_1 = tmp$_1.next(); destination_1.add_11rb$(item_1.nanosPerIter); } var fminNanoseconds = ensureNotNull(minOrNull(destination_1)); var destination_2 = ArrayList_init(collectionSizeOrDefault(results, 10)); var tmp$_2; tmp$_2 = results.iterator(); while (tmp$_2.hasNext()) { var item_2 = tmp$_2.next(); destination_2.add_11rb$(item_2.nanosPerIter); } var fmaxNanoseconds = ensureNotNull(maxOrNull(destination_2)); return new BenchmarkResult(Kotlin.Long.fromNumber(ftotalNanoseconds / ftotalIters), Kotlin.Long.fromNumber(fmaxNanoseconds - fminNanoseconds), results, dummySum); } var printBenchmark = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.benchmark.printBenchmark_2503cx$', wrapFunction(function () { var println = Kotlin.kotlin.io.println_s8jyv4$; var getKClass = Kotlin.getKClass; var benchmark = _.com.soywiz.klock.benchmark.benchmark_qipvwm$; var kotlin = Kotlin.kotlin; var equals = Kotlin.equals; var throwCCE = Kotlin.throwCCE; var PrimitiveClasses$intClass = Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.intClass; var Long = Kotlin.Long; var PrimitiveClasses$doubleClass = Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.doubleClass; function benchmark$lambda(closure$block) { return function () { closure$block(); return 1.0; }; } function benchmark$lambda_0(closure$block) { return function () { var tmp$; return typeof (tmp$ = closure$block()) === 'number' ? tmp$ : throwCCE(); }; } function benchmark$lambda_1(closure$block) { return function () { var tmp$; return (Kotlin.isType(tmp$ = closure$block(), Kotlin.Long) ? tmp$ : throwCCE()).toNumber(); }; } function benchmark$lambda_2(closure$block) { return function () { var tmp$; return typeof (tmp$ = closure$block()) === 'number' ? tmp$ : throwCCE(); }; } function benchmark$lambda_3(closure$block) { return function () { closure$block(); return 1.0; }; } return function (T_0, isT, name, full, block) { if (full === void 0) full = false; var tmp$; var tmp$_0, tmp$_1; tmp$_0 = getKClass(T_0); if (equals(tmp$_0, getKClass(Object.getPrototypeOf(kotlin.Unit).constructor))) tmp$_1 = benchmark(benchmark$lambda(block)); else if (equals(tmp$_0, PrimitiveClasses$intClass)) tmp$_1 = benchmark(benchmark$lambda_0(block)); else if (equals(tmp$_0, getKClass(Long))) tmp$_1 = benchmark(benchmark$lambda_1(block)); else if (equals(tmp$_0, PrimitiveClasses$doubleClass)) tmp$_1 = benchmark(benchmark$lambda_2(block)); else tmp$_1 = benchmark(benchmark$lambda_3(block)); var result = tmp$_1; println("Benchmark '" + name + "' : " + result); if (full) { tmp$ = result.partialResults.iterator(); while (tmp$.hasNext()) { var r = tmp$.next(); println(' - ' + r); } }}; })); function printBenchmarks(benchmarks, full) { if (full === void 0) full = false; var tmp$; for (tmp$ = 0; tmp$ !== benchmarks.length; ++tmp$) { var tmp$_0 = benchmarks[tmp$]; var name = tmp$_0.component1() , block = tmp$_0.component2(); var tmp$_1; var tmp$_2, tmp$_3; tmp$_2 = PrimitiveClasses$doubleClass; if (equals(tmp$_2, getKClass(Object.getPrototypeOf(kotlin.Unit).constructor))) tmp$_3 = benchmark_0(benchmark$lambda(block)); else if (equals(tmp$_2, PrimitiveClasses$intClass)) tmp$_3 = benchmark_0(benchmark$lambda_0(block)); else if (equals(tmp$_2, getKClass(Long))) tmp$_3 = benchmark_0(benchmark$lambda_1(block)); else if (equals(tmp$_2, PrimitiveClasses$doubleClass)) tmp$_3 = benchmark_0(benchmark$lambda_2(block)); else tmp$_3 = benchmark_0(benchmark$lambda_3(block)); var result = tmp$_3; println("Benchmark '" + name + "' : " + result); if (full) { tmp$_1 = result.partialResults.iterator(); while (tmp$_1.hasNext()) { var r = tmp$_1.next(); println(' - ' + r); } }} } function HRTimeProvider() { HRTimeProvider$Companion_getInstance(); } function HRTimeProvider$Companion() { HRTimeProvider$Companion_instance = this; } HRTimeProvider$Companion.prototype.now = function () { return PerformanceCounter_getInstance().hr; }; function HRTimeProvider$Companion$invoke$ObjectLiteral(closure$callback) { this.closure$callback = closure$callback; } HRTimeProvider$Companion$invoke$ObjectLiteral.prototype.now = function () { return this.closure$callback(); }; HRTimeProvider$Companion$invoke$ObjectLiteral.$metadata$ = { kind: Kind_CLASS, interfaces: [HRTimeProvider] }; HRTimeProvider$Companion.prototype.invoke_pbi6zx$ = function (callback) { return new HRTimeProvider$Companion$invoke$ObjectLiteral(callback); }; HRTimeProvider$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [HRTimeProvider] }; var HRTimeProvider$Companion_instance = null; function HRTimeProvider$Companion_getInstance() { if (HRTimeProvider$Companion_instance === null) { new HRTimeProvider$Companion(); }return HRTimeProvider$Companion_instance; } HRTimeProvider.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'HRTimeProvider', interfaces: [] }; function get_hr($receiver) { return HRTimeSpan$Companion_getInstance().fromMilliseconds_14dthe$($receiver.milliseconds); } function get_timeSpan($receiver) { var $receiver_0 = $receiver.nanosecondsRaw; return TimeSpan.Companion.fromNanoseconds_14dthe$($receiver_0); } function HRTimeSpan(nanosecondsRaw) { HRTimeSpan$Companion_getInstance(); this.nanosecondsRaw = nanosecondsRaw; } function HRTimeSpan$Companion() { HRTimeSpan$Companion_instance = this; this.ZERO = new HRTimeSpan(0.0); this.NIL = new HRTimeSpan(kotlin_js_internal_DoubleCompanionObject.NaN); } HRTimeSpan$Companion.prototype.now = function () { return PerformanceCounter_getInstance().hr; }; HRTimeSpan$Companion.prototype.fromSeconds_14dthe$ = function (value) { return new HRTimeSpan(round(value * 1000000000)); }; HRTimeSpan$Companion.prototype.fromMilliseconds_14dthe$ = function (value) { return new HRTimeSpan(round(value * 1000000)); }; HRTimeSpan$Companion.prototype.fromMicroseconds_14dthe$ = function (value) { return new HRTimeSpan(round(value * 1000)); }; HRTimeSpan$Companion.prototype.fromNanoseconds_14dthe$ = function (value) { return new HRTimeSpan(round(value)); }; HRTimeSpan$Companion.prototype.fromSeconds_za3lpa$ = function (value) { return this.fromSeconds_14dthe$(value); }; HRTimeSpan$Companion.prototype.fromMilliseconds_za3lpa$ = function (value) { return this.fromMilliseconds_14dthe$(value); }; HRTimeSpan$Companion.prototype.fromMicroseconds_za3lpa$ = function (value) { return this.fromMicroseconds_14dthe$(value); }; HRTimeSpan$Companion.prototype.fromNanoseconds_za3lpa$ = function (value) { return this.fromNanoseconds_14dthe$(value); }; HRTimeSpan$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var HRTimeSpan$Companion_instance = null; function HRTimeSpan$Companion_getInstance() { if (HRTimeSpan$Companion_instance === null) { new HRTimeSpan$Companion(); }return HRTimeSpan$Companion_instance; } Object.defineProperty(HRTimeSpan.prototype, 'nanosecondsDouble', { configurable: true, get: function () { return this.nanosecondsRaw; } }); Object.defineProperty(HRTimeSpan.prototype, 'microsecondsDouble', { configurable: true, get: function () { return this.nanosecondsRaw / 1000; } }); Object.defineProperty(HRTimeSpan.prototype, 'millisecondsDouble', { configurable: true, get: function () { return this.nanosecondsRaw / 1000000; } }); Object.defineProperty(HRTimeSpan.prototype, 'secondsDouble', { configurable: true, get: function () { return this.nanosecondsRaw / 1000000000; } }); Object.defineProperty(HRTimeSpan.prototype, 'nanosecondsInt', { configurable: true, get: function () { return numberToInt(this.nanosecondsRaw); } }); Object.defineProperty(HRTimeSpan.prototype, 'microsecondsInt', { configurable: true, get: function () { return numberToInt(this.microsecondsDouble); } }); Object.defineProperty(HRTimeSpan.prototype, 'millisecondsInt', { configurable: true, get: function () { return numberToInt(this.millisecondsDouble); } }); Object.defineProperty(HRTimeSpan.prototype, 'secondsInt', { configurable: true, get: function () { return numberToInt(this.secondsDouble); } }); HRTimeSpan.prototype.plus_seyb0p$ = function (other) { return HRTimeSpan$Companion_getInstance().fromNanoseconds_14dthe$(this.nanosecondsRaw + other.nanosecondsRaw); }; HRTimeSpan.prototype.minus_seyb0p$ = function (other) { return HRTimeSpan$Companion_getInstance().fromNanoseconds_14dthe$(this.nanosecondsRaw - other.nanosecondsRaw); }; HRTimeSpan.prototype.rem_seyb0p$ = function (other) { return HRTimeSpan$Companion_getInstance().fromNanoseconds_14dthe$(this.nanosecondsRaw % other.nanosecondsRaw); }; HRTimeSpan.prototype.times_14dthe$ = function (other) { return HRTimeSpan$Companion_getInstance().fromNanoseconds_14dthe$(this.nanosecondsRaw * other); }; HRTimeSpan.prototype.times_za3lpa$ = function (other) { return HRTimeSpan$Companion_getInstance().fromNanoseconds_14dthe$(this.nanosecondsRaw * other); }; HRTimeSpan.prototype.div_seyb0p$ = function (other) { return this.nanosecondsRaw / other.nanosecondsRaw; }; HRTimeSpan.prototype.compareTo_11rb$ = function (other) { return Kotlin.compareTo(this.nanosecondsRaw, other.nanosecondsRaw); }; HRTimeSpan.prototype.toString = function () { return removeSuffix(this.nanosecondsRaw.toString(), '.0') + ' ns'; }; HRTimeSpan.$metadata$ = { kind: Kind_CLASS, simpleName: 'HRTimeSpan', interfaces: [Comparable] }; HRTimeSpan.prototype.unbox = function () { return this.nanosecondsRaw; }; HRTimeSpan.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.nanosecondsRaw) | 0; return result; }; HRTimeSpan.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.nanosecondsRaw, other.nanosecondsRaw)))); }; function max_1(a, b) { var tmp$ = HRTimeSpan$Companion_getInstance(); var a_0 = a.nanosecondsRaw; var b_0 = b.nanosecondsRaw; return tmp$.fromNanoseconds_14dthe$(JsMath.max(a_0, b_0)); } function min_1(a, b) { var tmp$ = HRTimeSpan$Companion_getInstance(); var a_0 = a.nanosecondsRaw; var b_0 = b.nanosecondsRaw; return tmp$.fromNanoseconds_14dthe$(JsMath.min(a_0, b_0)); } function clamp_1($receiver, min, max) { if ($receiver.compareTo_11rb$(min) < 0) return min; else if ($receiver.compareTo_11rb$(max) > 0) return max; else return $receiver; } var coalesce_0 = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.hr.coalesce_wts4mj$', wrapFunction(function () { var HRTimeSpan = _.com.soywiz.klock.hr.HRTimeSpan; return function ($receiver, block) { return !($receiver != null ? $receiver.equals(HRTimeSpan.Companion.NIL) : null) ? $receiver : block(); }; })); var chainComparison = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.internal.chainComparison_664pim$', function ($receiver, comparer) { return $receiver === 0 ? comparer() : $receiver; }); var fastForEach = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.internal.fastForEach_kf7q02$', function ($receiver, callback) { var tmp$; var n = 0; while (n < $receiver.size) { callback($receiver.get_za3lpa$((tmp$ = n, n = tmp$ + 1 | 0, tmp$))); } }); var genericBinarySearch = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.internal.genericBinarySearch_fn99ax$', wrapFunction(function () { function genericBinarySearch$lambda(from, to, low, high) { return (-low | 0) - 1 | 0; } return function (fromIndex, toIndex, invalid, check) { if (invalid === void 0) invalid = genericBinarySearch$lambda; var low = fromIndex; var high = toIndex - 1 | 0; while (low <= high) { var mid = (low + high | 0) / 2 | 0; var mval = check(mid); if (mval < 0) low = mid + 1 | 0; else if (mval > 0) high = mid - 1 | 0; else return mid; } return invalid(fromIndex, toIndex, low, high); }; })); function BSearchResult(raw) { this.raw = raw; } Object.defineProperty(BSearchResult.prototype, 'found', { configurable: true, get: function () { return this.raw >= 0; } }); Object.defineProperty(BSearchResult.prototype, 'index', { configurable: true, get: function () { return this.found ? this.raw : -1; } }); Object.defineProperty(BSearchResult.prototype, 'nearIndex', { configurable: true, get: function () { return this.found ? this.raw : (-this.raw | 0) - 1 | 0; } }); BSearchResult.$metadata$ = { kind: Kind_CLASS, simpleName: 'BSearchResult', interfaces: [] }; BSearchResult.prototype.unbox = function () { return this.raw; }; BSearchResult.prototype.toString = function () { return 'BSearchResult(raw=' + Kotlin.toString(this.raw) + ')'; }; BSearchResult.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.raw) | 0; return result; }; BSearchResult.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.raw, other.raw)))); }; function increment($receiver, key) { var tmp$; var value = $receiver.get_11rb$(key); if (value == null) { var answer = 0; $receiver.put_xwzc9p$(key, answer); tmp$ = answer; } else { tmp$ = value; } var value_0 = ensureNotNull($receiver.get_11rb$(key)) + 1 | 0; $receiver.put_xwzc9p$(key, value_0); } function MicroStrReader(str, offset) { if (offset === void 0) offset = 0; this.str = str; this.offset = offset; } Object.defineProperty(MicroStrReader.prototype, 'length', { configurable: true, get: function () { return this.str.length; } }); Object.defineProperty(MicroStrReader.prototype, 'available', { configurable: true, get: function () { return this.str.length - this.offset | 0; } }); Object.defineProperty(MicroStrReader.prototype, 'hasMore', { configurable: true, get: function () { return this.offset < this.str.length; } }); Object.defineProperty(MicroStrReader.prototype, 'eof', { configurable: true, get: function () { return !this.hasMore; } }); MicroStrReader.prototype.readChunk_o14v8n$ = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.internal.MicroStrReader.readChunk_o14v8n$', function (callback) { var start = this.offset; callback(); var end = this.offset; return this.str.substring(start, end); }); MicroStrReader.prototype.peekCharOrZero = function () { return this.hasMore ? this.str.charCodeAt(this.offset) : 0; }; MicroStrReader.prototype.peekChar = function () { return toBoxedChar(this.str.charCodeAt(this.offset)); }; MicroStrReader.prototype.readChar = function () { var tmp$; return toBoxedChar(this.str.charCodeAt((tmp$ = this.offset, this.offset = tmp$ + 1 | 0, tmp$))); }; MicroStrReader.prototype.tryRead_s8itvh$ = function (expected) { if (this.eof || unboxChar(this.peekChar()) !== expected) return false; this.readChar(); return true; }; MicroStrReader.prototype.tryReadOrNull_61zpoe$ = function (expected) { return this.tryRead_61zpoe$(expected) ? expected : null; }; MicroStrReader.prototype.tryRead_61zpoe$ = function (expected) { var tmp$, tmp$_0, tmp$_1, tmp$_2; if (expected.length > this.available) return false; tmp$ = get_indices(expected); tmp$_0 = tmp$.first; tmp$_1 = tmp$.last; tmp$_2 = tmp$.step; for (var n = tmp$_0; n <= tmp$_1; n += tmp$_2) if (this.str.charCodeAt(this.offset + n | 0) !== expected.charCodeAt(n)) return false; this.offset = this.offset + expected.length | 0; return true; }; MicroStrReader.prototype.read_za3lpa$ = function (count) { var $receiver = this.str; var startIndex = this.offset; var endIndex = coerceAtMost(this.offset + count | 0, this.length); var $receiver_0 = $receiver.substring(startIndex, endIndex); this.offset = this.offset + $receiver_0.length | 0; return $receiver_0; }; MicroStrReader.prototype.readRemaining = function () { return this.read_za3lpa$(this.available); }; MicroStrReader.prototype.readInt_za3lpa$ = function (count) { return toInt(this.read_za3lpa$(count)); }; MicroStrReader.prototype.tryReadInt_za3lpa$ = function (count) { return toIntOrNull(this.read_za3lpa$(count)); }; MicroStrReader.prototype.tryReadDouble_za3lpa$ = function (count) { return toDoubleOrNull(replace(this.read_za3lpa$(count), 44, 46)); }; MicroStrReader.prototype.tryReadDouble = function () { var numCount = 0; var num = 0; var denCount = 0; var den = 0; var decimals = false; loop: while (this.hasMore) { var pc = unboxChar(this.peekChar()); if (pc === 44) { if (numCount === 0) { return null; }decimals = true; this.readChar(); } else if ((new CharRange(48, 57)).contains_mef7kx$(pc)) { var c = unboxChar(this.readChar()); if (decimals) { denCount = denCount + 1 | 0; den = den * 10 | 0; den = den + (c - 48) | 0; } else { numCount = numCount + 1 | 0; num = num * 10 | 0; num = num + (c - 48) | 0; } } else { break loop; } } if (numCount === 0) { return null; }var tmp$ = num; var tmp$_0 = den; var n = -denCount | 0; return tmp$ + tmp$_0 * JsMath.pow(10.0, n); }; MicroStrReader.$metadata$ = { kind: Kind_CLASS, simpleName: 'MicroStrReader', interfaces: [] }; function get_niceStr($receiver) { return JsMath.floor($receiver) === $receiver ? numberToInt($receiver).toString() : $receiver.toString(); } function spinlock(time) { var start = HRTimeSpan$Companion_getInstance().now(); while (HRTimeSpan$Companion_getInstance().now().minus_seyb0p$(start).compareTo_11rb$(time) < 0) { } } function readTimeZoneOffset($receiver, tzNames) { if (tzNames === void 0) tzNames = TimezoneNames$Companion_getInstance().DEFAULT; var tmp$, tmp$_0, tmp$_1; var reader = $receiver; tmp$ = tzNames.namesToOffsets.entries.iterator(); while (tmp$.hasNext()) { var tmp$_2 = tmp$.next(); var name = tmp$_2.key; var offset = tmp$_2.value; if (equals(name, 'GMT') || equals(name, 'UTC')) continue; if (reader.tryRead_61zpoe$(name)) return offset; } if (reader.tryRead_s8itvh$(90)) { return TimeSpan.Companion.fromMinutes_14dthe$(0); }var sign = 1; reader.tryRead_61zpoe$('GMT'); reader.tryRead_61zpoe$('UTC'); if (reader.tryRead_61zpoe$('+')) sign = 1; if (reader.tryRead_61zpoe$('-')) sign = -1; var part = replace_0(reader.readRemaining(), ':', ''); tmp$_0 = toIntOrNull(padStart(substr(part, 0, 2), 2, 48)); if (tmp$_0 == null) { return null; }var hours = tmp$_0; tmp$_1 = toIntOrNull(padStart(substr(part, 2, 2), 2, 48)); if (tmp$_1 == null) { return null; }var minutes = tmp$_1; var roffset = TimeSpan.Companion.fromHours_14dthe$(hours).plus_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$(minutes)); return sign > 0 ? roffset.unaryPlus() : roffset.unaryMinus(); } var MILLIS_PER_SECOND; var MILLIS_PER_MINUTE; var MILLIS_PER_HOUR; var MILLIS_PER_DAY; var MILLIS_PER_WEEK; function padded($receiver, count) { var tmp$; var res = padStart(abs($receiver).toString(), count, 48); if ($receiver < 0) return '-' + res; else tmp$ = res; return tmp$; } function padded_0($receiver, intCount, decCount) { var intPart = numberToInt(JsMath.floor($receiver)); var decPart = numberToInt(round(($receiver - intPart) * JsMath.pow(10.0, decCount))); return substr(padded(intPart, intCount), -intCount | 0, intCount) + '.' + substr(padEnd(decPart.toString(), decCount, 48), 0, decCount); } function substr($receiver, start, length) { var low = clamp_2(start >= 0 ? start : $receiver.length + start | 0, 0, $receiver.length); var high = clamp_2(length >= 0 ? low + length | 0 : $receiver.length + length | 0, 0, $receiver.length); return high < low ? '' : $receiver.substring(low, high); } function clamp_2($receiver, min, max) { return $receiver < min ? min : $receiver > max ? max : $receiver; } function cycle($receiver, min, max) { return umod($receiver - min | 0, max - min + 1 | 0) + min | 0; } function cycleSteps($receiver, min, max) { return ($receiver - min | 0) / (max - min + 1 | 0) | 0; } function splitKeep($receiver, regex) { var tmp$; var str = $receiver; var out = ArrayList_init_0(); var lastPos = 0; tmp$ = regex.findAll_905azu$($receiver).iterator(); while (tmp$.hasNext()) { var part = tmp$.next(); var prange = part.range; if (lastPos !== prange.start) { var startIndex = lastPos; var endIndex = prange.start; var element = str.substring(startIndex, endIndex); out.add_11rb$(element); }var element_0 = substring(str, prange); out.add_11rb$(element_0); lastPos = prange.endInclusive + 1 | 0; } if (lastPos !== str.length) { var startIndex_0 = lastPos; var element_1 = str.substring(startIndex_0); out.add_11rb$(element_1); }return out; } function umod($receiver, that) { var tmp$; var remainder = $receiver % that; if (remainder < 0) tmp$ = remainder + that | 0; else tmp$ = remainder; return tmp$; } function umod_0($receiver, that) { var tmp$; var remainder = $receiver % that; if (remainder < 0) tmp$ = remainder + that; else tmp$ = remainder; return tmp$; } function toInt2($receiver) { return $receiver < 0.0 ? numberToInt(JsMath.floor($receiver)) : numberToInt($receiver); } function toIntMod($receiver, mod) { return toInt2(umod_0($receiver, mod)); } function div2($receiver, other) { if ($receiver < 0 || $receiver % other === 0) return $receiver / other | 0; else return ($receiver / other | 0) - 1 | 0; } function Moduler(value) { this.value = value; var x = this.value; this.avalue_0 = JsMath.abs(x); var x_0 = this.value; this.sign_0 = JsMath.sign(x_0); } Moduler.prototype.double_14dthe$ = function (count) { var ret = this.avalue_0 / count; this.avalue_0 %= count; return JsMath.floor(ret) * this.sign_0; }; Moduler.prototype.double_za3lpa$ = function (count) { return this.double_14dthe$(count); }; Moduler.prototype.double_mx4ult$ = function (count) { return this.double_14dthe$(count); }; Moduler.prototype.int_14dthe$ = function (count) { return numberToInt(this.double_14dthe$(count)); }; Moduler.prototype.int_za3lpa$ = function (count) { return this.int_14dthe$(count); }; Moduler.prototype.int_mx4ult$ = function (count) { return this.int_14dthe$(count); }; Moduler.$metadata$ = { kind: Kind_CLASS, simpleName: 'Moduler', interfaces: [] }; function intDiv($receiver, other) { var x = $receiver / other; return JsMath.floor(x); } function utc(hours, minutes) { if (minutes === void 0) minutes = 0; return TimeSpan.Companion.fromHours_14dthe$(hours).plus_fv8bff$(TimeSpan.Companion.fromMinutes_14dthe$(minutes)); } var ExtendedTimezoneNames; function get_german($receiver) { return GermanKlockLocale$Companion_getInstance(); } function GermanKlockLocale() { GermanKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_87fb6h$_0 = 'de'; this.h12Marker_rj0k2n$_0 = listOf(['vorm.', 'nachm.']); this.firstDayOfWeek_4a4tev$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_e7leem$_0 = listOf(['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag']); this.months_r22tj7$_0 = listOf(['Januar', 'Februar', 'M\xE4rz', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember']); this.formatDateTimeMedium_i1wk6h$_0 = this.format_61zpoe$('dd.MM.y HH:mm:ss'); this.formatDateTimeShort_cn1916$_0 = this.format_61zpoe$('dd.MM.yy HH:mm'); this.formatDateFull_6lq8v8$_0 = this.format_61zpoe$('EEEE, d. MMMM y'); this.formatDateLong_6ij9v5$_0 = this.format_61zpoe$('d. MMMM y'); this.formatDateMedium_a2toq$_0 = this.format_61zpoe$('dd.MM.y'); this.formatDateShort_ec8dal$_0 = this.format_61zpoe$('dd.MM.yy'); this.formatTimeMedium_8ekn9l$_0 = this.format_61zpoe$('HH:mm:ss'); this.formatTimeShort_inrsq4$_0 = this.format_61zpoe$('HH:mm'); } function GermanKlockLocale$Companion() { GermanKlockLocale$Companion_instance = this; GermanKlockLocale.call(this); } GermanKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [GermanKlockLocale] }; var GermanKlockLocale$Companion_instance = null; function GermanKlockLocale$Companion_getInstance() { if (GermanKlockLocale$Companion_instance === null) { new GermanKlockLocale$Companion(); }return GermanKlockLocale$Companion_instance; } Object.defineProperty(GermanKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_87fb6h$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_rj0k2n$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_4a4tev$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_e7leem$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_r22tj7$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_i1wk6h$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_cn1916$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_6lq8v8$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_6ij9v5$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_a2toq$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_ec8dal$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_8ekn9l$_0; } }); Object.defineProperty(GermanKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_inrsq4$_0; } }); GermanKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'GermanKlockLocale', interfaces: [KlockLocale] }; function get_spanish($receiver) { return SpanishKlockLocale$Companion_getInstance(); } function SpanishKlockLocale() { SpanishKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_rvo1z9$_0 = 'es'; this.h12Marker_po6y83$_0 = listOf(['a.m.', 'p.m.']); this.firstDayOfWeek_hgzfnt$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_tpgw7g$_0 = listOf(['domingo', 'lunes', 'martes', 'mi\xE9rcoles', 'jueves', 'viernes', 's\xE1bado']); this.months_xqv7z9$_0 = listOf(['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre']); this.formatDateTimeMedium_iql4s9$_0 = this.format_61zpoe$('dd/MM/yyyy HH:mm:ss'); this.formatDateTimeShort_p78fks$_0 = this.format_61zpoe$('dd/MM/yy HH:mm'); this.formatDateFull_jskv46$_0 = this.format_61zpoe$("EEEE, d 'de' MMMM 'de' y"); this.formatDateLong_jpdw43$_0 = this.format_61zpoe$("d 'de' MMMM 'de' y"); this.formatDateMedium_wncyuk$_0 = this.format_61zpoe$('dd/MM/yyyy'); this.formatDateShort_vmjjfz$_0 = this.format_61zpoe$('dd/MM/yy'); this.formatTimeMedium_u999jp$_0 = this.format_61zpoe$('HH:mm:ss'); this.formatTimeShort_z3133m$_0 = this.format_61zpoe$('HH:mm'); } function SpanishKlockLocale$Companion() { SpanishKlockLocale$Companion_instance = this; SpanishKlockLocale.call(this); } SpanishKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [SpanishKlockLocale] }; var SpanishKlockLocale$Companion_instance = null; function SpanishKlockLocale$Companion_getInstance() { if (SpanishKlockLocale$Companion_instance === null) { new SpanishKlockLocale$Companion(); }return SpanishKlockLocale$Companion_instance; } Object.defineProperty(SpanishKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_rvo1z9$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_po6y83$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_hgzfnt$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_tpgw7g$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_xqv7z9$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_iql4s9$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_p78fks$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_jskv46$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_jpdw43$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_wncyuk$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_vmjjfz$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_u999jp$_0; } }); Object.defineProperty(SpanishKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_z3133m$_0; } }); SpanishKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'SpanishKlockLocale', interfaces: [KlockLocale] }; function get_french($receiver) { return FrenchKlockLocale$Companion_getInstance(); } function FrenchKlockLocale() { FrenchKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_w66x3n$_0 = 'fr'; this.h12Marker_go7n1x$_0 = listOf(['AM', 'PM']); this.firstDayOfWeek_16ee0r$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_yuihsq$_0 = listOf(['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi']); this.months_n8u5ih$_0 = listOf(['janvier', 'f\xE9vrier', 'mars', 'avril', 'mai', 'juin', 'juillet', 'ao\xFBt', 'septembre', 'octobre', 'novembre', 'd\xE9cembre']); this.formatDateTimeMedium_gwljf9$_0 = this.format_61zpoe$('d MMM y HH:mm:ss'); this.formatDateTimeShort_clnroy$_0 = this.format_61zpoe$('dd/MM/y HH:mm'); this.formatDateFull_3hzth4$_0 = this.format_61zpoe$('EEEE d MMMM y'); this.formatDateLong_3esuh1$_0 = this.format_61zpoe$('d MMMM y'); this.formatDateMedium_wc8ym$_0 = this.format_61zpoe$('d MMM y'); this.formatDateShort_vi8hi7$_0 = this.format_61zpoe$('dd/MM/y'); this.formatTimeMedium_90u2jh$_0 = this.format_61zpoe$('HH:mm:ss'); this.formatTimeShort_r6p22o$_0 = this.format_61zpoe$('HH:mm'); } function FrenchKlockLocale$Companion() { FrenchKlockLocale$Companion_instance = this; FrenchKlockLocale.call(this); } FrenchKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [FrenchKlockLocale] }; var FrenchKlockLocale$Companion_instance = null; function FrenchKlockLocale$Companion_getInstance() { if (FrenchKlockLocale$Companion_instance === null) { new FrenchKlockLocale$Companion(); }return FrenchKlockLocale$Companion_instance; } Object.defineProperty(FrenchKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_w66x3n$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_go7n1x$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_16ee0r$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_yuihsq$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_n8u5ih$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_gwljf9$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_clnroy$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_3hzth4$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_3esuh1$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_wc8ym$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_vi8hi7$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_90u2jh$_0; } }); Object.defineProperty(FrenchKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_r6p22o$_0; } }); FrenchKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'FrenchKlockLocale', interfaces: [KlockLocale] }; function get_italian($receiver) { return ItalianKlockLocale$Companion_getInstance(); } function ItalianKlockLocale() { ItalianKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_fav79j$_0 = 'it'; this.h12Marker_yed0s1$_0 = listOf(['AM', 'PM']); this.firstDayOfWeek_6hi0lx$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_eb76gw$_0 = listOf(['domenica', 'luned\xEC', 'marted\xEC', 'mercoled\xEC', 'gioved\xEC', 'venerd\xEC', 'sabato']); this.months_y7j4nj$_0 = listOf(['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre']); this.formatDateTimeMedium_xzkvet$_0 = this.format_61zpoe$('dd MMM y HH:mm:ss'); this.formatDateTimeShort_gj90d4$_0 = this.format_61zpoe$('dd/MM/yy HH:mm'); this.formatDateFull_8t3g2a$_0 = this.format_61zpoe$('EEEE d MMMM y'); this.formatDateLong_8pwh27$_0 = this.format_61zpoe$('d MMMM y'); this.formatDateMedium_bzxq88$_0 = this.format_61zpoe$('dd MMM y'); this.formatDateShort_h0z86z$_0 = this.format_61zpoe$('dd/MM/yy'); this.formatTimeMedium_3vfwnd$_0 = this.format_61zpoe$('HH:mm:ss'); this.formatTimeShort_lcinmi$_0 = this.format_61zpoe$('HH:mm'); } function ItalianKlockLocale$Companion() { ItalianKlockLocale$Companion_instance = this; ItalianKlockLocale.call(this); } ItalianKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [ItalianKlockLocale] }; var ItalianKlockLocale$Companion_instance = null; function ItalianKlockLocale$Companion_getInstance() { if (ItalianKlockLocale$Companion_instance === null) { new ItalianKlockLocale$Companion(); }return ItalianKlockLocale$Companion_instance; } Object.defineProperty(ItalianKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_fav79j$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_yed0s1$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_6hi0lx$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_eb76gw$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_y7j4nj$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_xzkvet$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_gj90d4$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_8t3g2a$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_8pwh27$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_bzxq88$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_h0z86z$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_3vfwnd$_0; } }); Object.defineProperty(ItalianKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_lcinmi$_0; } }); ItalianKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'ItalianKlockLocale', interfaces: [KlockLocale] }; function get_japanese($receiver) { return JapaneseKlockLocale$Companion_getInstance(); } function JapaneseKlockLocale() { JapaneseKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_f6z02s$_0 = 'ja'; this.h12Marker_v1mtys$_0 = listOf(['\u5348\u524D', '\u5348\u5F8C']); this.firstDayOfWeek_vjsioe$_0 = DayOfWeek$Sunday_getInstance(); this.daysOfWeek_nsh2al$_0 = listOf(['\u65E5\u66DC\u65E5', '\u6708\u66DC\u65E5', '\u706B\u66DC\u65E5', '\u6C34\u66DC\u65E5', '\u6728\u66DC\u65E5', '\u91D1\u66DC\u65E5', '\u571F\u66DC\u65E5']); this.months_ty44ni$_0 = listOf(['1\u6708', '2\u6708', '3\u6708', '4\u6708', '5\u6708', '6\u6708', '7\u6708', '8\u6708', '9\u6708', '10\u6708', '11\u6708', '12\u6708']); this.daysOfWeekShort_awo6wb$_0 = listOf(['\u65E5', '\u6708', '\u706B', '\u6C34', '\u6728', '\u91D1', '\u571F']); this.formatDateTimeMedium_fmk6hq$_0 = this.format_61zpoe$('y/MM/dd H:mm:ss'); this.formatDateTimeShort_o0nkit$_0 = this.format_61zpoe$('y/MM/dd H:mm'); this.formatDateFull_t87381$_0 = this.format_61zpoe$("y'\u5E74'M'\u6708'd'\u65E5'EEEE"); this.formatDateLong_tbe284$_0 = this.format_61zpoe$("y'\u5E74'M'\u6708'd'\u65E5'"); this.formatDateMedium_getoyd$_0 = this.format_61zpoe$('y/MM/dd'); this.formatDateShort_bdv3ig$_0 = this.format_61zpoe$('y/MM/dd'); this.formatTimeMedium_ojbij8$_0 = this.format_61zpoe$('H:mm:ss'); this.formatTimeShort_72bo2x$_0 = this.format_61zpoe$('H:mm'); } function JapaneseKlockLocale$Companion() { JapaneseKlockLocale$Companion_instance = this; JapaneseKlockLocale.call(this); } JapaneseKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [JapaneseKlockLocale] }; var JapaneseKlockLocale$Companion_instance = null; function JapaneseKlockLocale$Companion_getInstance() { if (JapaneseKlockLocale$Companion_instance === null) { new JapaneseKlockLocale$Companion(); }return JapaneseKlockLocale$Companion_instance; } Object.defineProperty(JapaneseKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_f6z02s$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_v1mtys$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_vjsioe$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_nsh2al$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_ty44ni$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'monthsShort', { configurable: true, get: function () { return this.months; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'daysOfWeekShort', { configurable: true, get: function () { return this.daysOfWeekShort_awo6wb$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_fmk6hq$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_o0nkit$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_t87381$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_tbe284$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_getoyd$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_bdv3ig$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_ojbij8$_0; } }); Object.defineProperty(JapaneseKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_72bo2x$_0; } }); JapaneseKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'JapaneseKlockLocale', interfaces: [KlockLocale] }; function get_korean($receiver) { return KoreanKlockLocale$Companion_getInstance(); } function KoreanKlockLocale() { KoreanKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_1mmcd3$_0 = 'ko'; this.h12Marker_ybpba7$_0 = listOf(['\uC624\uC804', '\uC624\uD6C4']); this.firstDayOfWeek_ejp3ob$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_dttx4g$_0 = listOf(['\uC77C\uC694\uC77C', '\uC6D4\uC694\uC77C', '\uD654\uC694\uC77C', '\uC218\uC694\uC77C', '\uBAA9\uC694\uC77C', '\uAE08\uC694\uC77C', '\uD1A0\uC694\uC77C']); this.months_n28zi7$_0 = listOf(['1\uC6D4', '2\uC6D4', '3\uC6D4', '4\uC6D4', '5\uC6D4', '6\uC6D4', '7\uC6D4', '8\uC6D4', '9\uC6D4', '10\uC6D4', '11\uC6D4', '12\uC6D4']); this.daysOfWeekShort_u9abu0$_0 = listOf(['\uC77C', '\uC6D4', '\uD654', '\uC218', '\uBAA9', '\uAE08', '\uD1A0']); this.formatDateTimeMedium_uzfqtx$_0 = this.format_61zpoe$('y. M. d. a h:mm:ss'); this.formatDateTimeShort_hxjtrs$_0 = this.format_61zpoe$('yy. M. d. a h:mm'); this.formatDateFull_c83o7y$_0 = this.format_61zpoe$('y\uB144 M\uC6D4 d\uC77C EEEE'); this.formatDateLong_cban81$_0 = this.format_61zpoe$('y\uB144 M\uC6D4 d\uC77C'); this.formatDateMedium_iu4juw$_0 = this.format_61zpoe$('y. M. d.'); this.formatDateShort_ts3f7v$_0 = this.format_61zpoe$('yy. M. d.'); this.formatTimeMedium_qymdfr$_0 = this.format_61zpoe$('a h:mm:ss'); this.formatTimeShort_y3mune$_0 = this.format_61zpoe$('a h:mm'); } function KoreanKlockLocale$Companion() { KoreanKlockLocale$Companion_instance = this; KoreanKlockLocale.call(this); } KoreanKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [KoreanKlockLocale] }; var KoreanKlockLocale$Companion_instance = null; function KoreanKlockLocale$Companion_getInstance() { if (KoreanKlockLocale$Companion_instance === null) { new KoreanKlockLocale$Companion(); }return KoreanKlockLocale$Companion_instance; } Object.defineProperty(KoreanKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_1mmcd3$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_ybpba7$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_ejp3ob$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_dttx4g$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_n28zi7$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'daysOfWeekShort', { configurable: true, get: function () { return this.daysOfWeekShort_u9abu0$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'monthsShort', { configurable: true, get: function () { return this.months; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_uzfqtx$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_hxjtrs$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_c83o7y$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_cban81$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_iu4juw$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_ts3f7v$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_qymdfr$_0; } }); Object.defineProperty(KoreanKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_y3mune$_0; } }); KoreanKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'KoreanKlockLocale', interfaces: [KlockLocale] }; function get_norwegian($receiver) { return NorwegianKlockLocale$Companion_getInstance(); } function NorwegianKlockLocale() { NorwegianKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_4ub0az$_0 = 'nb'; this.firstDayOfWeek_nqkeyl$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_j1rqjy$_0 = listOf(['s\xF8ndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'l\xF8rdag']); this.months_wr2gf5$_0 = listOf(['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember']); this.formatDateTimeMedium_xzu9jh$_0 = this.format_61zpoe$('dd.MM.y HH:mm:ss'); this.formatDateTimeShort_hqiuvq$_0 = this.format_61zpoe$('dd.MM.yy HH:mm'); this.formatDateFull_leyzi8$_0 = this.format_61zpoe$('EEEE, d. MMMM y'); this.formatDateLong_li5yib$_0 = this.format_61zpoe$('d. MMMM y'); this.formatDateMedium_5pswka$_0 = this.format_61zpoe$('dd.MM.y'); this.formatDateShort_uklx61$_0 = this.format_61zpoe$('dd.MM.yy'); this.formatTimeMedium_2eox0l$_0 = this.format_61zpoe$('HH:mm:ss'); this.formatTimeShort_yw5clk$_0 = this.format_61zpoe$('HH:mm'); } function NorwegianKlockLocale$Companion() { NorwegianKlockLocale$Companion_instance = this; NorwegianKlockLocale.call(this); } NorwegianKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [NorwegianKlockLocale] }; var NorwegianKlockLocale$Companion_instance = null; function NorwegianKlockLocale$Companion_getInstance() { if (NorwegianKlockLocale$Companion_instance === null) { new NorwegianKlockLocale$Companion(); }return NorwegianKlockLocale$Companion_instance; } Object.defineProperty(NorwegianKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_4ub0az$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_nqkeyl$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_j1rqjy$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_wr2gf5$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_xzu9jh$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_hqiuvq$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_leyzi8$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_li5yib$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_5pswka$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_uklx61$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_2eox0l$_0; } }); Object.defineProperty(NorwegianKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_yw5clk$_0; } }); NorwegianKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'NorwegianKlockLocale', interfaces: [KlockLocale] }; function get_dutch($receiver) { return DutchKlockLocale$Companion_getInstance(); } function DutchKlockLocale() { DutchKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_tj3gb5$_0 = 'nl'; this.h12Marker_5tc8hj$_0 = listOf(['a.m.', 'p.m.']); this.firstDayOfWeek_ile14z$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_hm2tuw$_0 = listOf(['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag']); this.months_x86g9l$_0 = listOf(['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december']); this.formatDateTimeMedium_4ddm3x$_0 = this.format_61zpoe$('d MMM y HH:mm:ss'); this.formatDateTimeShort_isgets$_0 = this.format_61zpoe$('dd-MM-yy HH:mm'); this.formatDateFull_g9slom$_0 = this.format_61zpoe$('EEEE d MMMM y'); this.formatDateLong_gczkop$_0 = this.format_61zpoe$('d MMMM y'); this.formatDateMedium_yo9rds$_0 = this.format_61zpoe$('d MMM y'); this.formatDateShort_d6c4mb$_0 = this.format_61zpoe$('dd-MM-y'); this.formatTimeMedium_qjrxsx$_0 = this.format_61zpoe$('HH:mm:ss'); this.formatTimeShort_hhvk1u$_0 = this.format_61zpoe$('HH:mm'); } function DutchKlockLocale$Companion() { DutchKlockLocale$Companion_instance = this; DutchKlockLocale.call(this); } DutchKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [DutchKlockLocale] }; var DutchKlockLocale$Companion_instance = null; function DutchKlockLocale$Companion_getInstance() { if (DutchKlockLocale$Companion_instance === null) { new DutchKlockLocale$Companion(); }return DutchKlockLocale$Companion_instance; } Object.defineProperty(DutchKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_tj3gb5$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_5tc8hj$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_ile14z$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_hm2tuw$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_x86g9l$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_4ddm3x$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_isgets$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_g9slom$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_gczkop$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_yo9rds$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_d6c4mb$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_qjrxsx$_0; } }); Object.defineProperty(DutchKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_hhvk1u$_0; } }); DutchKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'DutchKlockLocale', interfaces: [KlockLocale] }; function get_portuguese($receiver) { return PortugueseKlockLocale$Companion_getInstance(); } function PortugueseKlockLocale() { PortugueseKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_w3392g$_0 = 'pt'; this.h12Marker_djlv4g$_0 = listOf(['AM', 'PM']); this.firstDayOfWeek_8o7n62$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_8wvhy7$_0 = listOf(['domingo', 'segunda-feira', 'ter\xE7a-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 's\xE1bado']); this.months_xd5c7m$_0 = listOf(['janeiro', 'fevereiro', 'mar\xE7o', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro']); this.formatDateTimeMedium_5rnpei$_0 = this.format_61zpoe$("d 'de' MMM 'de' y HH:mm:ss"); this.formatDateTimeShort_1i5mjb$_0 = this.format_61zpoe$('dd/MM/y HH:mm'); this.formatDateFull_6cm7pp$_0 = this.format_61zpoe$("EEEE, d 'de' MMMM 'de' y"); this.formatDateLong_6ft6ps$_0 = this.format_61zpoe$("d 'de' MMMM 'de' y"); this.formatDateMedium_i5u6zr$_0 = this.format_61zpoe$("d 'de' MMM 'de' y"); this.formatDateShort_a9pojo$_0 = this.format_61zpoe$('dd/MM/y'); } function PortugueseKlockLocale$Companion() { PortugueseKlockLocale$Companion_instance = this; PortugueseKlockLocale.call(this); } PortugueseKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [PortugueseKlockLocale] }; var PortugueseKlockLocale$Companion_instance = null; function PortugueseKlockLocale$Companion_getInstance() { if (PortugueseKlockLocale$Companion_instance === null) { new PortugueseKlockLocale$Companion(); }return PortugueseKlockLocale$Companion_instance; } Object.defineProperty(PortugueseKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_w3392g$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_djlv4g$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_8o7n62$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_8wvhy7$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_xd5c7m$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_5rnpei$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_1i5mjb$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_6cm7pp$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_6ft6ps$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_i5u6zr$_0; } }); Object.defineProperty(PortugueseKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_a9pojo$_0; } }); PortugueseKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'PortugueseKlockLocale', interfaces: [KlockLocale] }; function get_russian($receiver) { return RussianKlockLocale$Companion_getInstance(); } function RussianKlockLocale() { RussianKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_fkjmpy$_0 = 'ru'; this.h12Marker_r1wwu$_0 = listOf(['\u0414\u041F', '\u041F\u041F']); this.firstDayOfWeek_ljpslk$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_82xbar$_0 = listOf(['\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435', '\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A', '\u0432\u0442\u043E\u0440\u043D\u0438\u043A', '\u0441\u0440\u0435\u0434\u0430', '\u0447\u0435\u0442\u0432\u0435\u0440\u0433', '\u043F\u044F\u0442\u043D\u0438\u0446\u0430', '\u0441\u0443\u0431\u0431\u043E\u0442\u0430']); this.daysOfWeekShort_n7un11$_0 = listOf(['\u0432\u0441', '\u043F\u043D', '\u0432\u0442', '\u0441\u0440', '\u0447\u0442', '\u043F\u0442', '\u0441\u0431']); this.months_dfl1d0$_0 = listOf(['\u044F\u043D\u0432\u0430\u0440\u044F', '\u0444\u0435\u0432\u0440\u0430\u043B\u044F', '\u043C\u0430\u0440\u0442\u0430', '\u0430\u043F\u0440\u0435\u043B\u044F', '\u043C\u0430\u044F', '\u0438\u044E\u043D\u044F', '\u0438\u044E\u043B\u044F', '\u0430\u0432\u0433\u0443\u0441\u0442\u0430', '\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F', '\u043E\u043A\u0442\u044F\u0431\u0440\u044F', '\u043D\u043E\u044F\u0431\u0440\u044F', '\u0434\u0435\u043A\u0430\u0431\u0440\u044F']); this.formatDateTimeMedium_hrp5q0$_0 = this.format_61zpoe$('d MMM y \u0433. H:mm:ss'); this.formatDateTimeShort_g0eydh$_0 = this.format_61zpoe$('dd.MM.y H:mm'); this.formatDateFull_nvb81x$_0 = this.format_61zpoe$('EEEE, d MMMM y \u0433.'); this.formatDateLong_ns491u$_0 = this.format_61zpoe$('d MMMM y \u0433.'); this.formatDateMedium_s5aqtx$_0 = this.format_61zpoe$('d MMM y \u0433.'); this.formatDateShort_np1jn6$_0 = this.format_61zpoe$('dd.MM.y'); this.formatTimeMedium_k0sx92$_0 = this.format_61zpoe$('H:mm:ss'); this.formatTimeShort_jdi47n$_0 = this.format_61zpoe$('H:mm'); } function RussianKlockLocale$Companion() { RussianKlockLocale$Companion_instance = this; RussianKlockLocale.call(this); } RussianKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [RussianKlockLocale] }; var RussianKlockLocale$Companion_instance = null; function RussianKlockLocale$Companion_getInstance() { if (RussianKlockLocale$Companion_instance === null) { new RussianKlockLocale$Companion(); }return RussianKlockLocale$Companion_instance; } RussianKlockLocale.prototype.getOrdinalByDay_1pz93x$$default = function (day, context) { if (equals(context.gender, KlockLocaleGender$Masculine_getInstance())) return day.toString() + '-\u0439'; else return day.toString() + '-\u0435'; }; RussianKlockLocale.prototype.getDayByOrdinal_61zpoe$ = function (ordinal) { return toInt(substringBeforeLast(ordinal, 45)); }; Object.defineProperty(RussianKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_fkjmpy$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_r1wwu$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_ljpslk$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_82xbar$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'daysOfWeekShort', { configurable: true, get: function () { return this.daysOfWeekShort_n7un11$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_dfl1d0$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_hrp5q0$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_g0eydh$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_nvb81x$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_ns491u$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_s5aqtx$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_np1jn6$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_k0sx92$_0; } }); Object.defineProperty(RussianKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_jdi47n$_0; } }); RussianKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'RussianKlockLocale', interfaces: [KlockLocale] }; function get_swedish($receiver) { return SwedishKlockLocale$Companion_getInstance(); } function SwedishKlockLocale() { SwedishKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_cffqyq$_0 = 'sv'; this.firstDayOfWeek_z2o4y8$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_53b5vp$_0 = listOf(['s\xF6ndag', 'm\xE5ndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'l\xF6rdag']); this.months_cpbjro$_0 = listOf(['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december']); this.formatDateTimeMedium_11ovnk$_0 = this.format_61zpoe$('dd.MM.y HH:mm:ss'); this.formatDateTimeShort_fgzukd$_0 = this.format_61zpoe$('dd.MM.yy HH:mm'); this.formatDateFull_xmuhkj$_0 = this.format_61zpoe$('EEEE, d. MMMM y'); this.formatDateLong_xq1gkm$_0 = this.format_61zpoe$('d. MMMM y'); this.formatDateMedium_ru526l$_0 = this.format_61zpoe$('dd.MM.y'); this.formatDateShort_gtxup6$_0 = this.format_61zpoe$('dd.MM.yy'); this.formatTimeMedium_jpn8lq$_0 = this.format_61zpoe$('HH:mm:ss'); this.formatTimeShort_cief9n$_0 = this.format_61zpoe$('HH:mm'); } function SwedishKlockLocale$Companion() { SwedishKlockLocale$Companion_instance = this; SwedishKlockLocale.call(this); } SwedishKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [SwedishKlockLocale] }; var SwedishKlockLocale$Companion_instance = null; function SwedishKlockLocale$Companion_getInstance() { if (SwedishKlockLocale$Companion_instance === null) { new SwedishKlockLocale$Companion(); }return SwedishKlockLocale$Companion_instance; } Object.defineProperty(SwedishKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_cffqyq$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_z2o4y8$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_53b5vp$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_cpbjro$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_11ovnk$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_fgzukd$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_xmuhkj$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_xq1gkm$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_ru526l$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_gtxup6$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_jpn8lq$_0; } }); Object.defineProperty(SwedishKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_cief9n$_0; } }); SwedishKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'SwedishKlockLocale', interfaces: [KlockLocale] }; function get_ukrainian($receiver) { return UkrainianKlockLocale$Companion_getInstance(); } function UkrainianKlockLocale() { UkrainianKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_ba9uvh$_0 = 'uk'; this.h12Marker_8gr7sr$_0 = listOf(['\u0414\u041F', '\u041F\u041F']); this.firstDayOfWeek_eunfk1$_0 = DayOfWeek$Monday_getInstance(); this.daysOfWeek_6hah64$_0 = listOf(['\u043D\u0435\u0434\u0456\u043B\u044F', '\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A', '\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A', '\u0441\u0435\u0440\u0435\u0434\u0430', '\u0447\u0435\u0442\u0432\u0435\u0440', "\u043F'\u044F\u0442\u043D\u0438\u0446\u044F", '\u0441\u0443\u0431\u043E\u0442\u0430']); this.daysOfWeekShort_sq5kn0$_0 = listOf(['\u043D\u0434', '\u043F\u043D', '\u0432\u0442', '\u0441\u0440', '\u0447\u0442', '\u043F\u0442', '\u0441\u0431']); this.months_ha3zx9$_0 = listOf(['\u0441\u0456\u0447\u043D\u044F', '\u043B\u044E\u0442\u043E\u0433\u043E', '\u0431\u0435\u0440\u0435\u0437\u043D\u044F', '\u043A\u0432\u0456\u0442\u043D\u044F', '\u0442\u0440\u0430\u0432\u043D\u044F', '\u0447\u0435\u0440\u0432\u043D\u044F', '\u043B\u0438\u043F\u043D\u044F', '\u0441\u0435\u0440\u043F\u043D\u044F', '\u0432\u0435\u0440\u0435\u0441\u043D\u044F', '\u0436\u043E\u0432\u0442\u043D\u044F', '\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430', '\u0433\u0440\u0443\u0434\u043D\u044F']); this.formatDateTimeMedium_j12byn$_0 = this.format_61zpoe$('d MMM y \u0440. H:mm:ss'); this.formatDateTimeShort_a8pf3g$_0 = this.format_61zpoe$('dd.MM.y H:mm'); this.formatDateFull_h68v0e$_0 = this.format_61zpoe$('EEEE, d MMMM y \u0440.'); this.formatDateLong_h31w0b$_0 = this.format_61zpoe$('d MMMM y \u0440.'); this.formatDateMedium_jw350$_0 = this.format_61zpoe$('d MMM y \u0440.'); this.formatDateShort_t7ch95$_0 = this.format_61zpoe$('dd.MM.y'); this.formatTimeMedium_8odwpv$_0 = this.format_61zpoe$('H:mm:ss'); this.formatTimeShort_ovt1tm$_0 = this.format_61zpoe$('H:mm'); } function UkrainianKlockLocale$Companion() { UkrainianKlockLocale$Companion_instance = this; UkrainianKlockLocale.call(this); } UkrainianKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [UkrainianKlockLocale] }; var UkrainianKlockLocale$Companion_instance = null; function UkrainianKlockLocale$Companion_getInstance() { if (UkrainianKlockLocale$Companion_instance === null) { new UkrainianKlockLocale$Companion(); }return UkrainianKlockLocale$Companion_instance; } Object.defineProperty(UkrainianKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_ba9uvh$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_8gr7sr$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_eunfk1$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_6hah64$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'daysOfWeekShort', { configurable: true, get: function () { return this.daysOfWeekShort_sq5kn0$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_ha3zx9$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_j12byn$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_a8pf3g$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_h68v0e$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_h31w0b$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_jw350$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_t7ch95$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_8odwpv$_0; } }); Object.defineProperty(UkrainianKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_ovt1tm$_0; } }); UkrainianKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'UkrainianKlockLocale', interfaces: [KlockLocale] }; function get_chinese($receiver) { return ChineseKlockLocale$Companion_getInstance(); } function ChineseKlockLocale() { ChineseKlockLocale$Companion_getInstance(); KlockLocale.call(this); this.ISO639_1_6ojwrw$_0 = 'zh'; this.h12Marker_7tmynw$_0 = listOf(['\u4E0A\u5348', '\u4E0B\u5348']); this.firstDayOfWeek_u5etlq$_0 = DayOfWeek$Sunday_getInstance(); this.daysOfWeek_qdycct$_0 = listOf(['\u661F\u671F\u65E5', '\u661F\u671F\u4E00', '\u661F\u671F\u4E8C', '\u661F\u671F\u4E09', '\u661F\u671F\u56DB', '\u661F\u671F\u4E94', '\u661F\u671F\u516D']); this.months_nyhp36$_0 = listOf(['\u4E00\u6708', '\u4E8C\u6708', '\u4E09\u6708', '\u56DB\u6708', '\u4E94\u6708', '\u516D\u6708', '\u4E03\u6708', '\u516B\u6708', '\u4E5D\u6708', '\u5341\u6708', '\u5341\u4E00\u6708', '\u5341\u4E8C\u6708']); this.daysOfWeekShort_gqn9s5$_0 = listOf(['\u5468\u65E5', '\u5468\u4E00', '\u5468\u4E8C', '\u5468\u4E09', '\u5468\u56DB', '\u5468\u4E94', '\u5468\u516D']); this.monthsShort_fc68x6$_0 = listOf(['1\u6708', '2\u6708', '3\u6708', '4\u6708', '5\u6708', '6\u6708', '7\u6708', '8\u6708', '9\u6708', '10\u6708', '11\u6708', '12\u6708']); this.formatDateTimeMedium_y6raz6$_0 = this.format_61zpoe$('y\u5E74M\u6708d\u65E5 ah:mm:ss'); this.formatDateTimeShort_k4bget$_0 = this.format_61zpoe$('y/M/d ah:mm'); this.formatDateFull_rtte5d$_0 = this.format_61zpoe$('y\u5E74M\u6708d\u65E5EEEE'); this.formatDateLong_rx0d5g$_0 = this.format_61zpoe$('y\u5E74M\u6708d\u65E5'); this.formatDateMedium_bpazlx$_0 = this.format_61zpoe$('y\u5E74M\u6708d\u65E5'); this.formatDateShort_g9gd60$_0 = this.format_61zpoe$('y/M/d'); this.formatTimeMedium_jtst6s$_0 = this.format_61zpoe$('h:mm:ss'); this.formatTimeShort_kkzslj$_0 = this.format_61zpoe$('h:mm'); } function ChineseKlockLocale$Companion() { ChineseKlockLocale$Companion_instance = this; ChineseKlockLocale.call(this); } ChineseKlockLocale$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [ChineseKlockLocale] }; var ChineseKlockLocale$Companion_instance = null; function ChineseKlockLocale$Companion_getInstance() { if (ChineseKlockLocale$Companion_instance === null) { new ChineseKlockLocale$Companion(); }return ChineseKlockLocale$Companion_instance; } Object.defineProperty(ChineseKlockLocale.prototype, 'ISO639_1', { configurable: true, get: function () { return this.ISO639_1_6ojwrw$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'h12Marker', { configurable: true, get: function () { return this.h12Marker_7tmynw$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'firstDayOfWeek', { configurable: true, get: function () { return this.firstDayOfWeek_u5etlq$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'daysOfWeek', { configurable: true, get: function () { return this.daysOfWeek_qdycct$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'months', { configurable: true, get: function () { return this.months_nyhp36$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'daysOfWeekShort', { configurable: true, get: function () { return this.daysOfWeekShort_gqn9s5$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'monthsShort', { configurable: true, get: function () { return this.monthsShort_fc68x6$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'formatDateTimeMedium', { configurable: true, get: function () { return this.formatDateTimeMedium_y6raz6$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'formatDateTimeShort', { configurable: true, get: function () { return this.formatDateTimeShort_k4bget$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'formatDateFull', { configurable: true, get: function () { return this.formatDateFull_rtte5d$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'formatDateLong', { configurable: true, get: function () { return this.formatDateLong_rx0d5g$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'formatDateMedium', { configurable: true, get: function () { return this.formatDateMedium_bpazlx$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'formatDateShort', { configurable: true, get: function () { return this.formatDateShort_g9gd60$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'formatTimeMedium', { configurable: true, get: function () { return this.formatTimeMedium_jtst6s$_0; } }); Object.defineProperty(ChineseKlockLocale.prototype, 'formatTimeShort', { configurable: true, get: function () { return this.formatTimeShort_kkzslj$_0; } }); ChineseKlockLocale.$metadata$ = { kind: Kind_CLASS, simpleName: 'ChineseKlockLocale', interfaces: [KlockLocale] }; function get_wrapped($receiver) { return new WDate($receiver); } function WDate(value) { WDate$Companion_getInstance(); this.value = value; } function WDate$Companion() { WDate$Companion_instance = this; this.serialVersionUID_0 = L1; } WDate$Companion.prototype.invoke_qt1dr2$ = function (year, month, day) { return get_wrapped(Date$Companion_getInstance().invoke_qt1dr2$(year, month, day)); }; WDate$Companion.prototype.invoke_uza4s2$ = function (year, month, day) { return get_wrapped(Date$Companion_getInstance().invoke_uza4s2$(year, month, day)); }; WDate$Companion.prototype.invoke_4ywk25$ = function (year, month, day) { return get_wrapped(Date$Companion_getInstance().invoke_mo62bp$(year.value, month, day)); }; WDate$Companion.prototype.invoke_enqh1x$ = function (yearMonth, day) { return get_wrapped(Date$Companion_getInstance().invoke_fgzd47$(yearMonth.value, day)); }; WDate$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var WDate$Companion_instance = null; function WDate$Companion_getInstance() { if (WDate$Companion_instance === null) { new WDate$Companion(); }return WDate$Companion_instance; } Object.defineProperty(WDate.prototype, 'year', { configurable: true, get: function () { return this.value.year; } }); Object.defineProperty(WDate.prototype, 'month1', { configurable: true, get: function () { return this.value.month1; } }); Object.defineProperty(WDate.prototype, 'month', { configurable: true, get: function () { return this.value.month; } }); Object.defineProperty(WDate.prototype, 'day', { configurable: true, get: function () { return this.value.day; } }); Object.defineProperty(WDate.prototype, 'yearYear', { configurable: true, get: function () { return get_wrapped_9(this.value.yearYear); } }); Object.defineProperty(WDate.prototype, 'dateTimeDayStart', { configurable: true, get: function () { return get_wrapped_0(this.value.dateTimeDayStart); } }); Object.defineProperty(WDate.prototype, 'dayOfYear', { configurable: true, get: function () { return this.value.dayOfYear; } }); Object.defineProperty(WDate.prototype, 'dayOfWeek', { configurable: true, get: function () { return this.value.dayOfWeek; } }); Object.defineProperty(WDate.prototype, 'dayOfWeekInt', { configurable: true, get: function () { return this.value.dayOfWeekInt; } }); WDate.prototype.format_61zpoe$ = function (format) { return this.value.format_61zpoe$(format); }; WDate.prototype.format_cgtbg3$ = function (format) { return this.value.format_cgtbg3$(format); }; WDate.prototype.compareTo_11rb$ = function (other) { return this.value.compareTo_11rb$(other.value); }; WDate.prototype.plus_5sja89$ = function (time) { return get_wrapped(plus_1(this.value, time.value)); }; WDate.prototype.plus_blp3qi$ = function (time) { return get_wrapped(plus_2(this.value, time.value)); }; WDate.prototype.plus_5gml0z$ = function (time) { return get_wrapped(plus_3(this.value, get_value(time))); }; WDate.prototype.plus_fye6x9$ = function (time) { return get_wrapped_0(plus_4(this.value, time.value)); }; WDate.prototype.minus_5sja89$ = function (time) { return get_wrapped(minus(this.value, time.value)); }; WDate.prototype.minus_blp3qi$ = function (time) { return get_wrapped(minus_0(this.value, time.value)); }; WDate.prototype.minus_5gml0z$ = function (time) { return get_wrapped(minus_1(this.value, get_value(time))); }; WDate.prototype.minus_fye6x9$ = function (time) { return get_wrapped_0(minus_2(this.value, time.value)); }; WDate.prototype.toString = function () { return this.value.toString(); }; WDate.$metadata$ = { kind: Kind_CLASS, simpleName: 'WDate', interfaces: [Serializable, Comparable] }; WDate.prototype.component1 = function () { return this.value; }; WDate.prototype.copy_cdb2sk$ = function (value) { return new WDate(value === void 0 ? this.value : value); }; WDate.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.value) | 0; return result; }; WDate.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)))); }; function get_wrapped_0($receiver) { return new WDateTime($receiver); } function WDateTime(value) { WDateTime$Companion_getInstance(); this.value = value; } function WDateTime$Companion() { WDateTime$Companion_instance = this; this.serialVersionUID_0 = L1; } Object.defineProperty(WDateTime$Companion.prototype, 'EPOCH', { configurable: true, get: function () { return get_wrapped_0(DateTime$Companion_getInstance().EPOCH); } }); WDateTime$Companion.prototype.invoke_mdls3x$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return get_wrapped_0(DateTime$Companion_getInstance().invoke_4lrum3$(year.value, month, day, hour, minute, second, milliseconds)); }; WDateTime$Companion.prototype.invoke_dx7kw3$ = function (date, time) { if (time === void 0) { time = new Time(TimeSpan.Companion.fromMilliseconds_14dthe$(0)); }return get_wrapped_0(DateTime$Companion_getInstance().invoke_6h4hbf$(date.value, time)); }; WDateTime$Companion.prototype.invoke_qw7meq$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return get_wrapped_0(DateTime$Companion_getInstance().invoke_qw7meq$(year, month, day, hour, minute, second, milliseconds)); }; WDateTime$Companion.prototype.invoke_ui44o2$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return get_wrapped_0(DateTime$Companion_getInstance().invoke_ui44o2$(year, month, day, hour, minute, second, milliseconds)); }; WDateTime$Companion.prototype.createClamped_ui44o2$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return get_wrapped_0(DateTime$Companion_getInstance().createClamped_ui44o2$(year, month, day, hour, minute, second, milliseconds)); }; WDateTime$Companion.prototype.createAdjusted_ui44o2$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return get_wrapped_0(DateTime$Companion_getInstance().createAdjusted_ui44o2$(year, month, day, hour, minute, second, milliseconds)); }; WDateTime$Companion.prototype.createUnchecked_ui44o2$ = function (year, month, day, hour, minute, second, milliseconds) { if (hour === void 0) hour = 0; if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (milliseconds === void 0) milliseconds = 0; return get_wrapped_0(DateTime$Companion_getInstance().createUnchecked_ui44o2$(year, month, day, hour, minute, second, milliseconds)); }; WDateTime$Companion.prototype.invoke_s8cxhz$ = function (unix) { return get_wrapped_0(DateTime$Companion_getInstance().invoke_s8cxhz$(unix)); }; WDateTime$Companion.prototype.invoke_14dthe$ = function (unix) { return get_wrapped_0(new DateTime(unix)); }; WDateTime$Companion.prototype.fromUnix_14dthe$ = function (unix) { return get_wrapped_0(DateTime$Companion_getInstance().fromUnix_14dthe$(unix)); }; WDateTime$Companion.prototype.fromUnix_s8cxhz$ = function (unix) { return get_wrapped_0(DateTime$Companion_getInstance().fromUnix_s8cxhz$(unix)); }; WDateTime$Companion.prototype.fromString_61zpoe$ = function (str) { return get_wrapped_2(DateTime$Companion_getInstance().fromString_61zpoe$(str)); }; WDateTime$Companion.prototype.parse_61zpoe$ = function (str) { return get_wrapped_2(DateTime$Companion_getInstance().parse_61zpoe$(str)); }; WDateTime$Companion.prototype.now = function () { return get_wrapped_0(DateTime$Companion_getInstance().now()); }; WDateTime$Companion.prototype.nowLocal = function () { return get_wrapped_2(DateTime$Companion_getInstance().nowLocal()); }; WDateTime$Companion.prototype.nowUnix = function () { return DateTime$Companion_getInstance().nowUnix(); }; WDateTime$Companion.prototype.nowUnixLong = function () { return DateTime$Companion_getInstance().nowUnixLong(); }; WDateTime$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var WDateTime$Companion_instance = null; function WDateTime$Companion_getInstance() { if (WDateTime$Companion_instance === null) { new WDateTime$Companion(); }return WDateTime$Companion_instance; } Object.defineProperty(WDateTime.prototype, 'yearOneMillis', { configurable: true, get: function () { return this.value.yearOneMillis; } }); Object.defineProperty(WDateTime.prototype, 'localOffset', { configurable: true, get: function () { return get_wrapped_8(this.value.localOffset); } }); Object.defineProperty(WDateTime.prototype, 'unixMillisDouble', { configurable: true, get: function () { return this.value.unixMillisDouble; } }); Object.defineProperty(WDateTime.prototype, 'unixMillisLong', { configurable: true, get: function () { return this.value.unixMillisLong; } }); Object.defineProperty(WDateTime.prototype, 'year', { configurable: true, get: function () { return get_wrapped_9(this.value.year); } }); Object.defineProperty(WDateTime.prototype, 'yearInt', { configurable: true, get: function () { return this.value.yearInt; } }); Object.defineProperty(WDateTime.prototype, 'month', { configurable: true, get: function () { return get_wrapped_4(this.value.month); } }); Object.defineProperty(WDateTime.prototype, 'month0', { configurable: true, get: function () { return this.value.month0; } }); Object.defineProperty(WDateTime.prototype, 'month1', { configurable: true, get: function () { return this.value.month1; } }); Object.defineProperty(WDateTime.prototype, 'yearMonth', { configurable: true, get: function () { return get_wrapped_10(this.value.yearMonth); } }); Object.defineProperty(WDateTime.prototype, 'dayOfMonth', { configurable: true, get: function () { return this.value.dayOfMonth; } }); Object.defineProperty(WDateTime.prototype, 'dayOfWeek', { configurable: true, get: function () { return get_wrapped_3(this.value.dayOfWeek); } }); Object.defineProperty(WDateTime.prototype, 'dayOfWeekInt', { configurable: true, get: function () { return this.value.dayOfWeekInt; } }); Object.defineProperty(WDateTime.prototype, 'dayOfYear', { configurable: true, get: function () { return this.value.dayOfYear; } }); Object.defineProperty(WDateTime.prototype, 'hours', { configurable: true, get: function () { return this.value.hours; } }); Object.defineProperty(WDateTime.prototype, 'minutes', { configurable: true, get: function () { return this.value.minutes; } }); Object.defineProperty(WDateTime.prototype, 'seconds', { configurable: true, get: function () { return this.value.seconds; } }); Object.defineProperty(WDateTime.prototype, 'milliseconds', { configurable: true, get: function () { return this.value.milliseconds; } }); Object.defineProperty(WDateTime.prototype, 'localUnadjusted', { configurable: true, get: function () { return get_wrapped_2(this.value.localUnadjusted); } }); WDateTime.prototype.toOffsetUnadjusted_5sja89$ = function (offset) { return get_wrapped_2(this.value.toOffsetUnadjusted_fv8bff$(offset.value)); }; WDateTime.prototype.toOffsetUnadjusted_i9psx8$ = function (offset) { return get_wrapped_2(this.value.toOffsetUnadjusted_q6c6ai$(offset.value)); }; Object.defineProperty(WDateTime.prototype, 'local', { configurable: true, get: function () { return get_wrapped_2(this.value.local); } }); WDateTime.prototype.toOffset_5sja89$ = function (offset) { return get_wrapped_2(this.value.toOffset_fv8bff$(offset.value)); }; WDateTime.prototype.toOffset_i9psx8$ = function (offset) { return get_wrapped_2(this.value.toOffset_q6c6ai$(offset.value)); }; Object.defineProperty(WDateTime.prototype, 'utc', { configurable: true, get: function () { return get_wrapped_2(this.value.utc); } }); Object.defineProperty(WDateTime.prototype, 'dateDayStart', { configurable: true, get: function () { return get_wrapped_0(this.value.dateDayStart); } }); Object.defineProperty(WDateTime.prototype, 'dateDayEnd', { configurable: true, get: function () { return get_wrapped_0(this.value.dateDayEnd); } }); Object.defineProperty(WDateTime.prototype, 'quarter', { configurable: true, get: function () { return this.value.quarter; } }); Object.defineProperty(WDateTime.prototype, 'startOfYear', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfYear); } }); Object.defineProperty(WDateTime.prototype, 'startOfMonth', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfMonth); } }); Object.defineProperty(WDateTime.prototype, 'startOfQuarter', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfQuarter); } }); WDateTime.prototype.startOfDayOfWeek_76hapz$ = function (day) { return get_wrapped_0(this.value.startOfDayOfWeek_76hapz$(day)); }; Object.defineProperty(WDateTime.prototype, 'startOfWeek', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfWeek); } }); Object.defineProperty(WDateTime.prototype, 'startOfIsoWeek', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfIsoWeek); } }); Object.defineProperty(WDateTime.prototype, 'startOfDay', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfDay); } }); Object.defineProperty(WDateTime.prototype, 'startOfHour', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfHour); } }); Object.defineProperty(WDateTime.prototype, 'startOfMinute', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfMinute); } }); Object.defineProperty(WDateTime.prototype, 'startOfSecond', { configurable: true, get: function () { return get_wrapped_0(this.value.startOfSecond); } }); Object.defineProperty(WDateTime.prototype, 'endOfYear', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfYear); } }); Object.defineProperty(WDateTime.prototype, 'endOfMonth', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfMonth); } }); Object.defineProperty(WDateTime.prototype, 'endOfQuarter', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfQuarter); } }); WDateTime.prototype.endOfDayOfWeek_76hapz$ = function (day) { return get_wrapped_0(this.value.endOfDayOfWeek_76hapz$(day)); }; Object.defineProperty(WDateTime.prototype, 'endOfWeek', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfWeek); } }); Object.defineProperty(WDateTime.prototype, 'endOfIsoWeek', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfIsoWeek); } }); Object.defineProperty(WDateTime.prototype, 'endOfDay', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfDay); } }); Object.defineProperty(WDateTime.prototype, 'endOfHour', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfHour); } }); Object.defineProperty(WDateTime.prototype, 'endOfMinute', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfMinute); } }); Object.defineProperty(WDateTime.prototype, 'endOfSecond', { configurable: true, get: function () { return get_wrapped_0(this.value.endOfSecond); } }); Object.defineProperty(WDateTime.prototype, 'date', { configurable: true, get: function () { return get_wrapped(this.value.date); } }); Object.defineProperty(WDateTime.prototype, 'time', { configurable: true, get: function () { return get_wrapped_6(this.value.time); } }); WDateTime.prototype.plus_blp3qi$ = function (delta) { return get_wrapped_0(this.value.plus_glepj8$(delta.value)); }; WDateTime.prototype.plus_5gml0z$ = function (delta) { return get_wrapped_0(this.value.plus_5gml0z$(get_value(delta))); }; WDateTime.prototype.plus_5sja89$ = function (delta) { return get_wrapped_0(this.value.plus_fv8bff$(delta.value)); }; WDateTime.prototype.minus_blp3qi$ = function (delta) { return get_wrapped_0(this.value.minus_glepj8$(delta.value)); }; WDateTime.prototype.minus_5gml0z$ = function (delta) { return get_wrapped_0(this.value.minus_5gml0z$(get_value(delta))); }; WDateTime.prototype.minus_5sja89$ = function (delta) { return get_wrapped_0(this.value.minus_fv8bff$(delta.value)); }; WDateTime.prototype.minus_ctgucl$ = function (other) { return get_wrapped_7(this.value.minus_mw5vjr$(other.value)); }; WDateTime.prototype.compareTo_11rb$ = function (other) { return this.value.compareTo_11rb$(other.value); }; WDateTime.prototype.add_5wr77w$ = function (deltaMonths, deltaMilliseconds) { return get_wrapped_0(this.value.add_5wr77w$(deltaMonths, deltaMilliseconds)); }; WDateTime.prototype.add_drwipz$ = function (dateSpan, timeSpan) { return get_wrapped_0(this.value.add_e89ho5$(dateSpan.value, timeSpan.value)); }; WDateTime.prototype.copyDayOfMonth_mdls3x$ = function (year, month, dayOfMonth, hours, minutes, seconds, milliseconds) { if (year === void 0) year = this.year; if (month === void 0) month = this.month; if (dayOfMonth === void 0) dayOfMonth = this.dayOfMonth; if (hours === void 0) hours = this.hours; if (minutes === void 0) minutes = this.minutes; if (seconds === void 0) seconds = this.seconds; if (milliseconds === void 0) milliseconds = this.milliseconds; return get_wrapped_0(DateTime$Companion_getInstance().invoke_4lrum3$(year.value, month, dayOfMonth, hours, minutes, seconds, milliseconds)); }; WDateTime.prototype.format_cgtbg3$ = function (format) { return this.value.format_cgtbg3$(format); }; WDateTime.prototype.format_61zpoe$ = function (format) { return this.value.format_61zpoe$(format); }; WDateTime.prototype.toString_61zpoe$ = function (format) { return this.value.format_61zpoe$(format); }; WDateTime.prototype.toString_cgtbg3$ = function (format) { return this.value.format_cgtbg3$(format); }; WDateTime.prototype.toString = function () { return this.value.toString(); }; WDateTime.$metadata$ = { kind: Kind_CLASS, simpleName: 'WDateTime', interfaces: [Serializable, Comparable] }; WDateTime.prototype.component1 = function () { return this.value; }; WDateTime.prototype.copy_mw5vjr$ = function (value) { return new WDateTime(value === void 0 ? this.value : value); }; WDateTime.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.value) | 0; return result; }; WDateTime.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)))); }; function max_2(a, b) { return get_wrapped_0(max(a.value, b.value)); } function min_2(a, b) { return get_wrapped_0(min(a.value, b.value)); } function clamp_3($receiver, min, max) { return get_wrapped_0(clamp($receiver.value, min.value, max.value)); } function get_wrapped_1($receiver) { return WDateTimeSpan($receiver); } function get_value($receiver) { return $receiver; } function WDateTimeSpan(value) { return value; } function get_wrapped_2($receiver) { return $receiver; } function get_value_0($receiver) { return $receiver; } function WDateTimeTz(value) { return value; } function get_wrapped_3($receiver) { return $receiver; } function get_value_1($receiver) { return $receiver; } function WDayOfWeek(value) { return value; } function get_wrapped_4($receiver) { return $receiver; } function get_value_2($receiver) { return $receiver; } function WMonth(value) { return value; } function get_wrapped_5($receiver) { return new WMonthSpan($receiver); } function WMonthSpan(value) { WMonthSpan$Companion_getInstance(); this.value = value; } function WMonthSpan$Companion() { WMonthSpan$Companion_instance = this; this.serialVersionUID_0 = L1; } WMonthSpan$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var WMonthSpan$Companion_instance = null; function WMonthSpan$Companion_getInstance() { if (WMonthSpan$Companion_instance === null) { new WMonthSpan$Companion(); }return WMonthSpan$Companion_instance; } Object.defineProperty(WMonthSpan.prototype, 'totalMonths', { configurable: true, get: function () { return this.value.totalMonths; } }); Object.defineProperty(WMonthSpan.prototype, 'totalYears', { configurable: true, get: function () { return get_totalYears(this.value); } }); Object.defineProperty(WMonthSpan.prototype, 'years', { configurable: true, get: function () { return get_years_0(this.value); } }); Object.defineProperty(WMonthSpan.prototype, 'months', { configurable: true, get: function () { return get_months_0(this.value); } }); WMonthSpan.prototype.unaryMinus = function () { return get_wrapped_5(this.value.unaryMinus()); }; WMonthSpan.prototype.unaryPlus = function () { return get_wrapped_5(this.value.unaryPlus()); }; WMonthSpan.prototype.plus_5sja89$ = function (other) { return get_wrapped_1(this.value.plus_fv8bff$(other.value)); }; WMonthSpan.prototype.plus_blp3qi$ = function (other) { return get_wrapped_5(this.value.plus_glepj8$(other.value)); }; WMonthSpan.prototype.plus_5gml0z$ = function (other) { return get_wrapped_1(this.value.plus_5gml0z$(get_value(other))); }; WMonthSpan.prototype.minus_5sja89$ = function (other) { return get_wrapped_1(this.value.minus_fv8bff$(other.value)); }; WMonthSpan.prototype.minus_blp3qi$ = function (other) { return get_wrapped_5(this.value.minus_glepj8$(other.value)); }; WMonthSpan.prototype.minus_5gml0z$ = function (other) { return get_wrapped_1(this.value.minus_5gml0z$(get_value(other))); }; WMonthSpan.prototype.times_14dthe$ = function (times) { return get_wrapped_5(this.value.times_14dthe$(times)); }; WMonthSpan.prototype.times_mx4ult$ = function (times) { return this.times_14dthe$(times); }; WMonthSpan.prototype.times_za3lpa$ = function (times) { return this.times_14dthe$(times); }; WMonthSpan.prototype.div_14dthe$ = function (times) { return get_wrapped_5(this.value.div_14dthe$(times)); }; WMonthSpan.prototype.div_mx4ult$ = function (times) { return this.div_14dthe$(times); }; WMonthSpan.prototype.div_za3lpa$ = function (times) { return this.div_14dthe$(times); }; WMonthSpan.prototype.compareTo_11rb$ = function (other) { return this.value.compareTo_11rb$(other.value); }; WMonthSpan.prototype.toString = function () { return this.value.toString(); }; WMonthSpan.$metadata$ = { kind: Kind_CLASS, simpleName: 'WMonthSpan', interfaces: [Serializable, Comparable] }; WMonthSpan.prototype.component1 = function () { return this.value; }; WMonthSpan.prototype.copy_glepj8$ = function (value) { return new WMonthSpan(value === void 0 ? this.value : value); }; WMonthSpan.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.value) | 0; return result; }; WMonthSpan.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)))); }; function get_wrapped_6($receiver) { return new WTime($receiver); } function WTime(value) { WTime$Companion_getInstance(); this.value = value; } function WTime$Companion() { WTime$Companion_instance = this; this.serialVersionUID_0 = L1; } WTime$Companion.prototype.invoke_tjonv8$ = function (hour, minute, second, millisecond) { if (minute === void 0) minute = 0; if (second === void 0) second = 0; if (millisecond === void 0) millisecond = 0; return get_wrapped_6(Time$Companion_getInstance().invoke_tjonv8$(hour, minute, second, millisecond)); }; WTime$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var WTime$Companion_instance = null; function WTime$Companion_getInstance() { if (WTime$Companion_instance === null) { new WTime$Companion(); }return WTime$Companion_instance; } Object.defineProperty(WTime.prototype, 'millisecond', { configurable: true, get: function () { return this.value.millisecond; } }); Object.defineProperty(WTime.prototype, 'second', { configurable: true, get: function () { return this.value.second; } }); Object.defineProperty(WTime.prototype, 'minute', { configurable: true, get: function () { return this.value.minute; } }); Object.defineProperty(WTime.prototype, 'hour', { configurable: true, get: function () { return this.value.hour; } }); Object.defineProperty(WTime.prototype, 'hourAdjusted', { configurable: true, get: function () { return this.value.hourAdjusted; } }); WTime.prototype.adjust = function () { return get_wrapped_6(this.value.adjust()); }; WTime.prototype.format_61zpoe$ = function (format) { return this.value.format_61zpoe$(format); }; WTime.prototype.format_gscqvm$ = function (format) { return this.value.format_gscqvm$(format); }; WTime.prototype.toString = function () { return this.value.toString(); }; WTime.prototype.compareTo_11rb$ = function (other) { return this.value.compareTo_11rb$(other.value); }; WTime.$metadata$ = { kind: Kind_CLASS, simpleName: 'WTime', interfaces: [Serializable, Comparable] }; WTime.prototype.component1 = function () { return this.value; }; WTime.prototype.copy_cd0p8l$ = function (value) { return new WTime(value === void 0 ? this.value : value); }; WTime.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.value) | 0; return result; }; WTime.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)))); }; function plus_6($receiver, span) { return get_wrapped_6(plus_5($receiver.value, span.value)); } function get_wrapped_7($receiver) { return new WTimeSpan($receiver); } function WTimeSpan(value) { WTimeSpan$Companion_getInstance(); this.value = value; } Object.defineProperty(WTimeSpan.prototype, 'milliseconds', { configurable: true, get: function () { return this.value.milliseconds; } }); Object.defineProperty(WTimeSpan.prototype, 'nanoseconds', { configurable: true, get: function () { return this.value.nanoseconds; } }); Object.defineProperty(WTimeSpan.prototype, 'microseconds', { configurable: true, get: function () { return this.value.microseconds; } }); Object.defineProperty(WTimeSpan.prototype, 'seconds', { configurable: true, get: function () { return this.value.seconds; } }); Object.defineProperty(WTimeSpan.prototype, 'minutes', { configurable: true, get: function () { return this.value.minutes; } }); Object.defineProperty(WTimeSpan.prototype, 'hours', { configurable: true, get: function () { return this.value.hours; } }); Object.defineProperty(WTimeSpan.prototype, 'days', { configurable: true, get: function () { return this.value.days; } }); Object.defineProperty(WTimeSpan.prototype, 'weeks', { configurable: true, get: function () { return this.value.weeks; } }); Object.defineProperty(WTimeSpan.prototype, 'millisecondsLong', { configurable: true, get: function () { return this.value.millisecondsLong; } }); Object.defineProperty(WTimeSpan.prototype, 'millisecondsInt', { configurable: true, get: function () { return this.value.millisecondsInt; } }); WTimeSpan.prototype.compareTo_11rb$ = function (other) { return this.value.compareTo_11rb$(other.value); }; WTimeSpan.prototype.unaryMinus = function () { return get_wrapped_7(this.value.unaryMinus()); }; WTimeSpan.prototype.unaryPlus = function () { return get_wrapped_7(this.value.unaryPlus()); }; WTimeSpan.prototype.plus_5sja89$ = function (other) { return get_wrapped_7(this.value.plus_fv8bff$(other.value)); }; WTimeSpan.prototype.plus_blp3qi$ = function (other) { return get_wrapped_1(this.value.plus_glepj8$(other.value)); }; WTimeSpan.prototype.plus_5gml0z$ = function (other) { return get_wrapped_1(this.value.plus_5gml0z$(other)); }; WTimeSpan.prototype.minus_5sja89$ = function (other) { return get_wrapped_7(this.value.minus_fv8bff$(other.value)); }; WTimeSpan.prototype.minus_blp3qi$ = function (other) { return get_wrapped_1(this.value.minus_glepj8$(other.value)); }; WTimeSpan.prototype.minus_5gml0z$ = function (other) { return get_wrapped_1(this.value.minus_5gml0z$(get_value(other))); }; WTimeSpan.prototype.times_za3lpa$ = function (scale) { return get_wrapped_7(this.value.times_za3lpa$(scale)); }; WTimeSpan.prototype.times_14dthe$ = function (scale) { return get_wrapped_7(this.value.times_14dthe$(scale)); }; WTimeSpan.prototype.div_za3lpa$ = function (scale) { return get_wrapped_7(this.value.div_za3lpa$(scale)); }; WTimeSpan.prototype.div_14dthe$ = function (scale) { return get_wrapped_7(this.value.div_14dthe$(scale)); }; WTimeSpan.prototype.div_5sja89$ = function (other) { return this.value.div_fv8bff$(other.value); }; WTimeSpan.prototype.rem_5sja89$ = function (other) { return get_wrapped_7(this.value.rem_fv8bff$(other.value)); }; function WTimeSpan$Companion() { WTimeSpan$Companion_instance = this; this.serialVersionUID_0 = L1; } Object.defineProperty(WTimeSpan$Companion.prototype, 'ZERO', { configurable: true, get: function () { return get_wrapped_7(TimeSpan$Companion_getInstance().ZERO); } }); Object.defineProperty(WTimeSpan$Companion.prototype, 'NIL', { configurable: true, get: function () { return get_wrapped_7(TimeSpan$Companion_getInstance().NIL); } }); WTimeSpan$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var WTimeSpan$Companion_instance = null; function WTimeSpan$Companion_getInstance() { if (WTimeSpan$Companion_instance === null) { new WTimeSpan$Companion(); }return WTimeSpan$Companion_instance; } WTimeSpan.prototype.toTimeString_fzusl$ = function (components, addMilliseconds) { if (components === void 0) components = 3; if (addMilliseconds === void 0) addMilliseconds = false; return toTimeString(this.value, components, addMilliseconds); }; WTimeSpan.prototype.toString = function () { return this.value.toString(); }; WTimeSpan.$metadata$ = { kind: Kind_CLASS, simpleName: 'WTimeSpan', interfaces: [Serializable, Comparable] }; WTimeSpan.prototype.component1 = function () { return this.value; }; WTimeSpan.prototype.copy_fv8bff$ = function (value) { return new WTimeSpan(value === void 0 ? this.value : value); }; WTimeSpan.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.value) | 0; return result; }; WTimeSpan.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)))); }; function max_3(a, b) { return get_wrapped_7(max_0(a.value, b.value)); } function min_3(a, b) { return get_wrapped_7(min_0(a.value, b.value)); } function clamp_4($receiver, min, max) { return get_wrapped_7(clamp_0($receiver.value, min.value, max.value)); } function get_wrapped_8($receiver) { return new WTimezoneOffset($receiver); } function WTimezoneOffset(value) { WTimezoneOffset$Companion_getInstance(); this.value = value; } Object.defineProperty(WTimezoneOffset.prototype, 'positive', { configurable: true, get: function () { return this.value.positive; } }); Object.defineProperty(WTimezoneOffset.prototype, 'time', { configurable: true, get: function () { return get_wrapped_7(this.value.time); } }); Object.defineProperty(WTimezoneOffset.prototype, 'totalMinutes', { configurable: true, get: function () { return this.value.totalMinutes; } }); Object.defineProperty(WTimezoneOffset.prototype, 'totalMinutesInt', { configurable: true, get: function () { return this.value.totalMinutesInt; } }); Object.defineProperty(WTimezoneOffset.prototype, 'timeZone', { configurable: true, get: function () { return this.value.timeZone; } }); WTimezoneOffset.prototype.toString = function () { return this.value.toString(); }; function WTimezoneOffset$Companion() { WTimezoneOffset$Companion_instance = this; this.serialVersionUID_0 = L1; } WTimezoneOffset$Companion.prototype.invoke_5sja89$ = function (time) { return get_wrapped_8(TimezoneOffset$Companion_getInstance().invoke_fv8bff$(time.value)); }; WTimezoneOffset$Companion.prototype.local_ctgucl$ = function (time) { return get_wrapped_8(TimezoneOffset$Companion_getInstance().local_mw5vjr$(time.value)); }; WTimezoneOffset$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var WTimezoneOffset$Companion_instance = null; function WTimezoneOffset$Companion_getInstance() { if (WTimezoneOffset$Companion_instance === null) { new WTimezoneOffset$Companion(); }return WTimezoneOffset$Companion_instance; } WTimezoneOffset.$metadata$ = { kind: Kind_CLASS, simpleName: 'WTimezoneOffset', interfaces: [Serializable] }; WTimezoneOffset.prototype.component1 = function () { return this.value; }; WTimezoneOffset.prototype.copy_q6c6ai$ = function (value) { return new WTimezoneOffset(value === void 0 ? this.value : value); }; WTimezoneOffset.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.value) | 0; return result; }; WTimezoneOffset.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)))); }; function get_offset_0($receiver) { return get_wrapped_8(get_offset($receiver.value)); } function get_wrapped_9($receiver) { return new WYear($receiver); } function WYear(value) { WYear$Companion_getInstance(); this.value = value; } function WYear$Companion() { WYear$Companion_instance = this; this.serialVersionUID_0 = L1; this.DAYS_COMMON = 365; this.DAYS_LEAP = 366; } WYear$Companion.prototype.checked_za3lpa$ = function (year) { return get_wrapped_9(new Year(year)); }; WYear$Companion.prototype.isLeapChecked_za3lpa$ = function (year) { return Year$Companion_getInstance().isLeapChecked_za3lpa$(year); }; WYear$Companion.prototype.isLeap_za3lpa$ = function (year) { return Year$Companion_getInstance().isLeap_za3lpa$(year); }; WYear$Companion.prototype.fromDays_za3lpa$ = function (days) { return get_wrapped_9(Year$Companion_getInstance().fromDays_za3lpa$(days)); }; WYear$Companion.prototype.days_6taknv$ = function (isLeap) { return Year$Companion_getInstance().days_6taknv$(isLeap); }; WYear$Companion.prototype.leapCountSinceOne_za3lpa$ = function (year) { return Year$Companion_getInstance().leapCountSinceOne_za3lpa$(year); }; WYear$Companion.prototype.daysSinceOne_za3lpa$ = function (year) { return Year$Companion_getInstance().daysSinceOne_za3lpa$(year); }; WYear$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var WYear$Companion_instance = null; function WYear$Companion_getInstance() { if (WYear$Companion_instance === null) { new WYear$Companion(); }return WYear$Companion_instance; } Object.defineProperty(WYear.prototype, 'isLeapChecked', { configurable: true, get: function () { return this.value.isLeapChecked; } }); Object.defineProperty(WYear.prototype, 'isLeap', { configurable: true, get: function () { return this.value.isLeap; } }); Object.defineProperty(WYear.prototype, 'days', { configurable: true, get: function () { return this.value.days; } }); Object.defineProperty(WYear.prototype, 'leapCountSinceOne', { configurable: true, get: function () { return this.value.leapCountSinceOne; } }); Object.defineProperty(WYear.prototype, 'daysSinceOne', { configurable: true, get: function () { return this.value.daysSinceOne; } }); WYear.prototype.compareTo_11rb$ = function (other) { return this.value.compareTo_11rb$(other.value); }; WYear.prototype.plus_za3lpa$ = function (delta) { return get_wrapped_9(this.value.plus_za3lpa$(delta)); }; WYear.prototype.minus_za3lpa$ = function (delta) { return get_wrapped_9(this.value.minus_za3lpa$(delta)); }; WYear.prototype.minus_fyham5$ = function (other) { return this.value.minus_ccxljp$(other.value); }; WYear.$metadata$ = { kind: Kind_CLASS, simpleName: 'WYear', interfaces: [Serializable, Comparable] }; WYear.prototype.component1 = function () { return this.value; }; WYear.prototype.copy_ccxljp$ = function (value) { return new WYear(value === void 0 ? this.value : value); }; WYear.prototype.toString = function () { return 'WYear(value=' + Kotlin.toString(this.value) + ')'; }; WYear.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.value) | 0; return result; }; WYear.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)))); }; function get_wrapped_10($receiver) { return new WYearMonth($receiver); } function WYearMonth(value) { WYearMonth$Companion_getInstance(); this.value = value; } function WYearMonth$Companion() { WYearMonth$Companion_instance = this; this.serialVersionUID_0 = L1; } WYearMonth$Companion.prototype.invoke_pmdkm7$ = function (year, month) { return get_wrapped_10(YearMonth$Companion_getInstance().invoke_wk05xp$(year.value, month)); }; WYearMonth$Companion.prototype.invoke_bbks$ = function (year, month) { return get_wrapped_10(YearMonth$Companion_getInstance().invoke_bbks$(year, month)); }; WYearMonth$Companion.prototype.invoke_vux9f0$ = function (year, month1) { return get_wrapped_10(YearMonth$Companion_getInstance().invoke_vux9f0$(year, month1)); }; WYearMonth$Companion.$metadata$ = { kind: Kind_OBJECT, simpleName: 'Companion', interfaces: [] }; var WYearMonth$Companion_instance = null; function WYearMonth$Companion_getInstance() { if (WYearMonth$Companion_instance === null) { new WYearMonth$Companion(); }return WYearMonth$Companion_instance; } Object.defineProperty(WYearMonth.prototype, 'year', { configurable: true, get: function () { return this.value.year; } }); Object.defineProperty(WYearMonth.prototype, 'yearInt', { configurable: true, get: function () { return this.value.yearInt; } }); Object.defineProperty(WYearMonth.prototype, 'month', { configurable: true, get: function () { return this.value.month; } }); Object.defineProperty(WYearMonth.prototype, 'month1', { configurable: true, get: function () { return this.value.month1; } }); Object.defineProperty(WYearMonth.prototype, 'days', { configurable: true, get: function () { return this.value.days; } }); Object.defineProperty(WYearMonth.prototype, 'daysToStart', { configurable: true, get: function () { return this.value.daysToStart; } }); Object.defineProperty(WYearMonth.prototype, 'daysToEnd', { configurable: true, get: function () { return this.value.daysToEnd; } }); WYearMonth.prototype.plus_blp3qi$ = function (span) { return get_wrapped_10(this.value.plus_glepj8$(span.value)); }; WYearMonth.prototype.minus_blp3qi$ = function (span) { return get_wrapped_10(this.value.minus_glepj8$(span.value)); }; WYearMonth.prototype.toString = function () { return this.month.toString() + ' ' + this.yearInt; }; WYearMonth.$metadata$ = { kind: Kind_CLASS, simpleName: 'WYearMonth', interfaces: [Serializable] }; WYearMonth.prototype.component1 = function () { return this.value; }; WYearMonth.prototype.copy_3b8l0r$ = function (value) { return new WYearMonth(value === void 0 ? this.value : value); }; WYearMonth.prototype.hashCode = function () { var result = 0; result = result * 31 + Kotlin.hashCode(this.value) | 0; return result; }; WYearMonth.prototype.equals = function (other) { return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)))); }; function withMonth_0($receiver, month) { return get_wrapped_10(withMonth($receiver.value, month)); } function withYear_0($receiver, year) { return get_wrapped_10(withYear($receiver, year.value)); } function klockAtomicLazy(initializer) { return lazy(initializer); } function klockLazyOrGet(initializer) { return lazy(initializer); } function KlockAtomicRef(initial) { this.value = initial; } KlockAtomicRef.$metadata$ = { kind: Kind_CLASS, simpleName: 'KlockAtomicRef', interfaces: [] }; function KlockLock() { } KlockLock.prototype.invoke_klfg04$ = defineInlineFunction('klock-root-klock-js-legacy.com.soywiz.klock.internal.KlockLock.invoke_klfg04$', function (callback) { return callback(); }); KlockLock.$metadata$ = { kind: Kind_CLASS, simpleName: 'KlockLock', interfaces: [] }; var klockIsKotlinNative; var isNode; function initialHrTime$lambda() { return process.hrtime(); } var initialHrTime; function get_initialHrTime() { return initialHrTime.value; } function KlockInternal() { KlockInternal_instance = this; } Object.defineProperty(KlockInternal.prototype, 'currentTime', { configurable: true, get: function () { return Date.now(); } }); Object.defineProperty(KlockInternal.prototype, 'hrNow', { configurable: true, get: function () { if (isNode) { var result = process.hrtime(get_initialHrTime()); return HRTimeSpan$Companion_getInstance().fromSeconds_14dthe$(result[0]).plus_seyb0p$(HRTimeSpan$Companion_getInstance().fromNanoseconds_14dthe$(result[1])); } else { return HRTimeSpan$Companion_getInstance().fromMilliseconds_14dthe$(window.performance.now()); } } }); KlockInternal.prototype.localTimezoneOffsetMinutes_mw5vjr$ = function (time) { var rtime = time.unixMillisDouble; var $receiver = -(new Date(rtime)).getTimezoneOffset(); return TimeSpan.Companion.fromMinutes_14dthe$($receiver); }; KlockInternal.prototype.sleep_seyb0p$ = function (time) { spinlock(time); }; KlockInternal.$metadata$ = { kind: Kind_OBJECT, simpleName: 'KlockInternal', interfaces: [] }; var KlockInternal_instance = null; function KlockInternal_getInstance() { if (KlockInternal_instance === null) { new KlockInternal(); }return KlockInternal_instance; } function Serializable() { } Serializable.$metadata$ = { kind: Kind_INTERFACE, simpleName: 'Serializable', interfaces: [] }; function toDateTime($receiver) { return new DateTime($receiver.getTime()); } function toDate($receiver) { return new Date($receiver.unixMillisDouble); } Object.defineProperty(Date_0, 'Companion', { get: Date$Companion_getInstance }); var package$com = _.com || (_.com = {}); var package$soywiz = package$com.soywiz || (package$com.soywiz = {}); var package$klock = package$soywiz.klock || (package$soywiz.klock = {}); package$klock.Date = Date_0; package$klock.plus_jav7ri$ = plus_1; package$klock.plus_j03k0f$ = plus_2; package$klock.plus_313fls$ = plus_3; package$klock.plus_nlzblk$ = plus_4; package$klock.minus_jav7ri$ = minus; package$klock.minus_j03k0f$ = minus_0; package$klock.minus_313fls$ = minus_1; package$klock.minus_nlzblk$ = minus_2; package$klock.DateException = DateException; Object.defineProperty(DateFormat, 'Companion', { get: DateFormat$Companion_getInstance }); package$klock.DateFormat = DateFormat; package$klock.parse_mabgv2$ = parse; package$klock.parseDate_mabgv2$ = parseDate; package$klock.parseUtc_mabgv2$ = parseUtc; package$klock.format_tgp00u$ = format; package$klock.format_94zki5$ = format_0; $$importsForInline$$['klock-root-klock-js-legacy'] = _; package$klock.format_x6wc0j$ = format_1; package$klock.format_h2n35s$ = format_2; Object.defineProperty(DateTime$Companion$DatePart, 'Year', { get: DateTime$Companion$DatePart$Year_getInstance }); Object.defineProperty(DateTime$Companion$DatePart, 'DayOfYear', { get: DateTime$Companion$DatePart$DayOfYear_getInstance }); Object.defineProperty(DateTime$Companion$DatePart, 'Month', { get: DateTime$Companion$DatePart$Month_getInstance }); Object.defineProperty(DateTime$Companion$DatePart, 'Day', { get: DateTime$Companion$DatePart$Day_getInstance }); DateTime$Companion.prototype.DatePart = DateTime$Companion$DatePart; Object.defineProperty(DateTime, 'Companion', { get: DateTime$Companion_getInstance }); package$klock.DateTime = DateTime; package$klock.max_4p96hy$ = max; package$klock.min_4p96hy$ = min; package$klock.clamp_qlexwg$ = clamp; Object.defineProperty(DateTimeRange, 'Companion', { get: DateTimeRange$Companion_getInstance }); package$klock.DateTimeRange = DateTimeRange; package$klock.toStringLongs_bmnfxk$ = toStringLongs; package$klock.until_68nrlv$ = until_0; Object.defineProperty(DateTimeRangeSet, 'Companion', { get: DateTimeRangeSet$Companion_getInstance }); Object.defineProperty(DateTimeRangeSet, 'Fast', { get: DateTimeRangeSet$Fast_getInstance }); Object.defineProperty(DateTimeRangeSet, 'Slow', { get: DateTimeRangeSet$Slow_getInstance }); package$klock.DateTimeRangeSet_init_4yh9xl$ = DateTimeRangeSet_init; package$klock.DateTimeRangeSet_init_r8ew1g$ = DateTimeRangeSet_init_0; package$klock.DateTimeRangeSet_init_arcm6d$ = DateTimeRangeSet_init_1; package$klock.DateTimeRangeSet = DateTimeRangeSet; package$klock.toRangeSet_7kbg5w$ = toRangeSet; Object.defineProperty(DateTimeSpan, 'Companion', { get: DateTimeSpan$Companion_getInstance }); package$klock.DateTimeSpan_init_7k5cs4$ = DateTimeSpan_init; package$klock.DateTimeSpan = DateTimeSpan; package$klock.DateTimeSpanFormat = DateTimeSpanFormat; package$klock.format_7rbe1s$ = format_3; package$klock.format_lolva9$ = format_4; package$klock.parse_xf9cft$ = parse_0; Object.defineProperty(DateTimeTz, 'Companion', { get: DateTimeTz$Companion_getInstance }); package$klock.DateTimeTz = DateTimeTz; Object.defineProperty(DayOfWeek, 'Sunday', { get: DayOfWeek$Sunday_getInstance }); Object.defineProperty(DayOfWeek, 'Monday', { get: DayOfWeek$Monday_getInstance }); Object.defineProperty(DayOfWeek, 'Tuesday', { get: DayOfWeek$Tuesday_getInstance }); Object.defineProperty(DayOfWeek, 'Wednesday', { get: DayOfWeek$Wednesday_getInstance }); Object.defineProperty(DayOfWeek, 'Thursday', { get: DayOfWeek$Thursday_getInstance }); Object.defineProperty(DayOfWeek, 'Friday', { get: DayOfWeek$Friday_getInstance }); Object.defineProperty(DayOfWeek, 'Saturday', { get: DayOfWeek$Saturday_getInstance }); Object.defineProperty(DayOfWeek, 'Companion', { get: DayOfWeek$Companion_getInstance }); package$klock.DayOfWeek = DayOfWeek; package$klock.get_hz_5bmjl6$ = get_hz; package$klock.get_hz_s8ev3n$ = get_hz_0; package$klock.get_hz_yrwdxr$ = get_hz_1; package$klock.toFrequency_5bmjl6$ = toFrequency; package$klock.get_timesPerSecond_5bmjl6$ = get_timesPerSecond; package$klock.get_timesPerSecond_s8ev3n$ = get_timesPerSecond_0; package$klock.get_timesPerSecond_yrwdxr$ = get_timesPerSecond_1; Object.defineProperty(Frequency, 'Companion', { get: Frequency$Companion_getInstance }); package$klock.Frequency = Frequency; Object.defineProperty(ISO8601$BaseIsoTimeFormat, 'Companion', { get: ISO8601$BaseIsoTimeFormat$Companion_getInstance }); ISO8601.prototype.BaseIsoTimeFormat = ISO8601$BaseIsoTimeFormat; ISO8601.prototype.BaseIsoDateTimeFormat = ISO8601$BaseIsoDateTimeFormat; ISO8601.prototype.IsoIntervalFormat = ISO8601$IsoIntervalFormat; ISO8601.prototype.IsoTimeFormat = ISO8601$IsoTimeFormat; ISO8601.prototype.IsoDateTimeFormat = ISO8601$IsoDateTimeFormat; Object.defineProperty(package$klock, 'ISO8601', { get: ISO8601_getInstance }); package$klock.first_ki4uhp$ = first_1; package$klock.get_weekOfYear0_m2ds6$ = get_weekOfYear0; package$klock.get_weekOfYear1_m2ds6$ = get_weekOfYear1; package$klock.get_weekOfYear0_ksqbhc$ = get_weekOfYear0_0; package$klock.get_weekOfYear1_ksqbhc$ = get_weekOfYear1_0; Object.defineProperty(KlockLocale, 'Companion', { get: KlockLocale$Companion_getInstance }); Object.defineProperty(KlockLocale$English, 'Companion', { get: KlockLocale$English$Companion_getInstance }); KlockLocale.English = KlockLocale$English; package$klock.KlockLocale = KlockLocale; Object.defineProperty(KlockLocaleContext, 'Companion', { get: KlockLocaleContext$Companion_getInstance }); package$klock.KlockLocaleContext = KlockLocaleContext; Object.defineProperty(KlockLocaleGender, 'Neuter', { get: KlockLocaleGender$Neuter_getInstance }); Object.defineProperty(KlockLocaleGender, 'Masculine', { get: KlockLocaleGender$Masculine_getInstance }); package$klock.KlockLocaleGender = KlockLocaleGender; package$klock.get_microseconds_yrwdxr$ = get_microseconds_2; package$klock.measureTime_o14v8n$ = measureTime; package$klock.measureTimeWithResult_klfg04$ = measureTimeWithResult; package$klock.TimedResult = TimedResult; Object.defineProperty(Month, 'January', { get: Month$January_getInstance }); Object.defineProperty(Month, 'February', { get: Month$February_getInstance }); Object.defineProperty(Month, 'March', { get: Month$March_getInstance }); Object.defineProperty(Month, 'April', { get: Month$April_getInstance }); Object.defineProperty(Month, 'May', { get: Month$May_getInstance }); Object.defineProperty(Month, 'June', { get: Month$June_getInstance }); Object.defineProperty(Month, 'July', { get: Month$July_getInstance }); Object.defineProperty(Month, 'August', { get: Month$August_getInstance }); Object.defineProperty(Month, 'September', { get: Month$September_getInstance }); Object.defineProperty(Month, 'October', { get: Month$October_getInstance }); Object.defineProperty(Month, 'November', { get: Month$November_getInstance }); Object.defineProperty(Month, 'December', { get: Month$December_getInstance }); Object.defineProperty(Month, 'Companion', { get: Month$Companion_getInstance }); package$klock.Month = Month; package$klock.get_years_s8ev3n$ = get_years; package$klock.get_months_s8ev3n$ = get_months; Object.defineProperty(MonthSpan, 'Companion', { get: MonthSpan$Companion_getInstance }); package$klock.MonthSpan = MonthSpan; package$klock.get_totalYears_h7vlot$ = get_totalYears; package$klock.get_years_h7vlot$ = get_years_0; package$klock.get_months_h7vlot$ = get_months_0; Object.defineProperty(package$klock, 'infiniteTimes', { get: get_infiniteTimes }); package$klock.get_times_s8ev3n$ = get_times; Object.defineProperty(NumberOfTimes, 'Companion', { get: NumberOfTimes$Companion_getInstance }); package$klock.NumberOfTimes = NumberOfTimes; Object.defineProperty(PatternDateFormat, 'Companion', { get: PatternDateFormat$Companion_getInstance }); Object.defineProperty(PatternDateFormat$Options, 'Companion', { get: PatternDateFormat$Options$Companion_getInstance }); PatternDateFormat.Options = PatternDateFormat$Options; package$klock.PatternDateFormat = PatternDateFormat; Object.defineProperty(PatternTimeFormat, 'Companion', { get: PatternTimeFormat$Companion_getInstance }); Object.defineProperty(PatternTimeFormat$Options, 'Companion', { get: PatternTimeFormat$Options$Companion_getInstance }); PatternTimeFormat.Options = PatternTimeFormat$Options; package$klock.PatternTimeFormat = PatternTimeFormat; Object.defineProperty(package$klock, 'PerformanceCounter', { get: PerformanceCounter_getInstance }); package$klock.blockingSleep_seyb0p$ = blockingSleep; package$klock.blockingSleep_fv8bff$ = blockingSleep_0; package$klock.Stopwatch = Stopwatch; Object.defineProperty(Time, 'Companion', { get: Time$Companion_getInstance }); package$klock.Time = Time; package$klock.plus_xup8wh$ = plus_5; Object.defineProperty(TimeFormat, 'Companion', { get: TimeFormat$Companion_getInstance }); package$klock.TimeFormat = TimeFormat; package$klock.parse_5ggku9$ = parse_1; package$klock.parseTime_5ggku9$ = parseTime; package$klock.format_1pwybj$ = format_5; package$klock.format_sochlg$ = format_6; package$klock.format_6n39xe$ = format_7; Object.defineProperty(TimeProvider, 'Companion', { get: TimeProvider$Companion_getInstance }); package$klock.TimeProvider = TimeProvider; package$klock.measure_boyie$ = measure; package$klock.TimeSpan = TimeSpan; package$klock.get_nanoseconds_mts6qi$ = get_nanoseconds; package$klock.get_microseconds_mts6qi$ = get_microseconds; package$klock.get_milliseconds_mts6qi$ = get_milliseconds; package$klock.get_seconds_mts6qi$ = get_seconds; package$klock.get_minutes_mts6qi$ = get_minutes; package$klock.get_hours_mts6qi$ = get_hours; package$klock.get_days_mts6qi$ = get_days; package$klock.get_weeks_mts6qi$ = get_weeks; package$klock.get_nanoseconds_81szk$ = get_nanoseconds_0; package$klock.get_microseconds_81szk$ = get_microseconds_0; package$klock.get_milliseconds_81szk$ = get_milliseconds_0; package$klock.get_seconds_81szk$ = get_seconds_0; package$klock.get_minutes_81szk$ = get_minutes_0; package$klock.get_hours_81szk$ = get_hours_0; package$klock.get_days_81szk$ = get_days_0; package$klock.get_weeks_81szk$ = get_weeks_0; package$klock.get_nanoseconds_s8ev3n$ = get_nanoseconds_1; package$klock.get_microseconds_s8ev3n$ = get_microseconds_1; package$klock.get_milliseconds_s8ev3n$ = get_milliseconds_1; package$klock.get_seconds_s8ev3n$ = get_seconds_1; package$klock.get_minutes_s8ev3n$ = get_minutes_1; package$klock.get_hours_s8ev3n$ = get_hours_1; package$klock.get_days_s8ev3n$ = get_days_1; package$klock.get_weeks_s8ev3n$ = get_weeks_1; package$klock.get_nanoseconds_yrwdxr$ = get_nanoseconds_2; package$klock.get_milliseconds_yrwdxr$ = get_milliseconds_2; package$klock.get_seconds_yrwdxr$ = get_seconds_2; package$klock.get_minutes_yrwdxr$ = get_minutes_2; package$klock.get_hours_yrwdxr$ = get_hours_2; package$klock.get_days_yrwdxr$ = get_days_2; package$klock.get_weeks_yrwdxr$ = get_weeks_2; Object.defineProperty(TimeSpan, 'Companion', { get: TimeSpan$Companion_getInstance }); package$klock.toTimeString_l8uqez$ = toTimeString; package$klock.max_3e7z32$ = max_0; package$klock.min_3e7z32$ = min_0; package$klock.clamp_izocc4$ = clamp_0; package$klock.coalesce_ujo5ib$ = coalesce; Object.defineProperty(TimezoneNames, 'Companion', { get: TimezoneNames$Companion_getInstance }); package$klock.TimezoneNames_init_sc3rw9$ = TimezoneNames_init; package$klock.TimezoneNames = TimezoneNames; Object.defineProperty(TimezoneOffset, 'Companion', { get: TimezoneOffset$Companion_getInstance }); package$klock.TimezoneOffset = TimezoneOffset; package$klock.get_offset_5bmjl6$ = get_offset; Object.defineProperty(Year, 'Companion', { get: Year$Companion_getInstance }); package$klock.Year = Year; Object.defineProperty(YearMonth, 'Companion', { get: YearMonth$Companion_getInstance }); package$klock.YearMonth = YearMonth; package$klock.withMonth_t7apbq$ = withMonth; package$klock.withYear_5uaifm$ = withYear; var package$annotations = package$klock.annotations || (package$klock.annotations = {}); package$annotations.KlockExperimental = KlockExperimental; BenchmarkResult.PartialResult = BenchmarkResult$PartialResult; var package$benchmark = package$klock.benchmark || (package$klock.benchmark = {}); package$benchmark.BenchmarkResult = BenchmarkResult; package$benchmark.benchmark_qipvwm$ = benchmark_0; package$benchmark.printBenchmarks_c7v0m9$ = printBenchmarks; Object.defineProperty(HRTimeProvider, 'Companion', { get: HRTimeProvider$Companion_getInstance }); var package$hr = package$klock.hr || (package$klock.hr = {}); package$hr.HRTimeProvider = HRTimeProvider; package$hr.get_hr_5bmjl6$ = get_hr; package$hr.get_timeSpan_si6tuw$ = get_timeSpan; Object.defineProperty(HRTimeSpan, 'Companion', { get: HRTimeSpan$Companion_getInstance }); package$hr.HRTimeSpan = HRTimeSpan; package$hr.max_rztpak$ = max_1; package$hr.min_rztpak$ = min_1; package$hr.clamp_xberjo$ = clamp_1; package$hr.coalesce_wts4mj$ = coalesce_0; var package$internal = package$klock.internal || (package$klock.internal = {}); package$internal.chainComparison_664pim$ = chainComparison; package$internal.fastForEach_kf7q02$ = fastForEach; package$internal.genericBinarySearch_fn99ax$ = genericBinarySearch; package$internal.BSearchResult = BSearchResult; package$internal.increment_65gt2e$ = increment; package$internal.MicroStrReader = MicroStrReader; package$internal.get_niceStr_1zw1ma$ = get_niceStr; package$internal.spinlock_unydws$ = spinlock; package$internal.readTimeZoneOffset_1t3qu8$ = readTimeZoneOffset; Object.defineProperty(package$internal, 'MILLIS_PER_SECOND_8be2vx$', { get: function () { return MILLIS_PER_SECOND; } }); Object.defineProperty(package$internal, 'MILLIS_PER_MINUTE_8be2vx$', { get: function () { return MILLIS_PER_MINUTE; } }); Object.defineProperty(package$internal, 'MILLIS_PER_HOUR_8be2vx$', { get: function () { return MILLIS_PER_HOUR; } }); Object.defineProperty(package$internal, 'MILLIS_PER_DAY_8be2vx$', { get: function () { return MILLIS_PER_DAY; } }); Object.defineProperty(package$internal, 'MILLIS_PER_WEEK_8be2vx$', { get: function () { return MILLIS_PER_WEEK; } }); package$internal.padded_b6l1hq$ = padded; package$internal.padded_f8d7mm$ = padded_0; package$internal.substr_tfrq3m$ = substr; package$internal.clamp_h8snvo$ = clamp_2; package$internal.cycle_h8snvo$ = cycle; package$internal.cycleSteps_h8snvo$ = cycleSteps; package$internal.splitKeep_g9pw2j$ = splitKeep; package$internal.umod_b6l1hq$ = umod; package$internal.umod_3ahkds$ = umod_0; package$internal.toInt2_1zw1ma$ = toInt2; package$internal.toIntMod_5fv9zk$ = toIntMod; package$internal.div2_b6l1hq$ = div2; package$internal.Moduler = Moduler; package$internal.intDiv_3ahkds$ = intDiv; var package$locale = package$klock.locale || (package$klock.locale = {}); Object.defineProperty(package$locale, 'ExtendedTimezoneNames', { get: function () { return ExtendedTimezoneNames; } }); package$locale.get_german_2fbxov$ = get_german; Object.defineProperty(GermanKlockLocale, 'Companion', { get: GermanKlockLocale$Companion_getInstance }); package$locale.GermanKlockLocale = GermanKlockLocale; package$locale.get_spanish_2fbxov$ = get_spanish; Object.defineProperty(SpanishKlockLocale, 'Companion', { get: SpanishKlockLocale$Companion_getInstance }); package$locale.SpanishKlockLocale = SpanishKlockLocale; package$locale.get_french_2fbxov$ = get_french; Object.defineProperty(FrenchKlockLocale, 'Companion', { get: FrenchKlockLocale$Companion_getInstance }); package$locale.FrenchKlockLocale = FrenchKlockLocale; package$locale.get_italian_2fbxov$ = get_italian; Object.defineProperty(ItalianKlockLocale, 'Companion', { get: ItalianKlockLocale$Companion_getInstance }); package$locale.ItalianKlockLocale = ItalianKlockLocale; package$locale.get_japanese_2fbxov$ = get_japanese; Object.defineProperty(JapaneseKlockLocale, 'Companion', { get: JapaneseKlockLocale$Companion_getInstance }); package$locale.JapaneseKlockLocale = JapaneseKlockLocale; package$locale.get_korean_2fbxov$ = get_korean; Object.defineProperty(KoreanKlockLocale, 'Companion', { get: KoreanKlockLocale$Companion_getInstance }); package$locale.KoreanKlockLocale = KoreanKlockLocale; package$locale.get_norwegian_2fbxov$ = get_norwegian; Object.defineProperty(NorwegianKlockLocale, 'Companion', { get: NorwegianKlockLocale$Companion_getInstance }); package$locale.NorwegianKlockLocale = NorwegianKlockLocale; package$locale.get_dutch_2fbxov$ = get_dutch; Object.defineProperty(DutchKlockLocale, 'Companion', { get: DutchKlockLocale$Companion_getInstance }); package$locale.DutchKlockLocale = DutchKlockLocale; package$locale.get_portuguese_2fbxov$ = get_portuguese; Object.defineProperty(PortugueseKlockLocale, 'Companion', { get: PortugueseKlockLocale$Companion_getInstance }); package$locale.PortugueseKlockLocale = PortugueseKlockLocale; package$locale.get_russian_2fbxov$ = get_russian; Object.defineProperty(RussianKlockLocale, 'Companion', { get: RussianKlockLocale$Companion_getInstance }); package$locale.RussianKlockLocale = RussianKlockLocale; package$locale.get_swedish_2fbxov$ = get_swedish; Object.defineProperty(SwedishKlockLocale, 'Companion', { get: SwedishKlockLocale$Companion_getInstance }); package$locale.SwedishKlockLocale = SwedishKlockLocale; package$locale.get_ukrainian_2fbxov$ = get_ukrainian; Object.defineProperty(UkrainianKlockLocale, 'Companion', { get: UkrainianKlockLocale$Companion_getInstance }); package$locale.UkrainianKlockLocale = UkrainianKlockLocale; package$locale.get_chinese_2fbxov$ = get_chinese; Object.defineProperty(ChineseKlockLocale, 'Companion', { get: ChineseKlockLocale$Companion_getInstance }); package$locale.ChineseKlockLocale = ChineseKlockLocale; var package$wrapped = package$klock.wrapped || (package$klock.wrapped = {}); package$wrapped.get_wrapped_saz4od$ = get_wrapped; Object.defineProperty(WDate, 'Companion', { get: WDate$Companion_getInstance }); package$wrapped.WDate = WDate; package$wrapped.get_wrapped_m2ds6$ = get_wrapped_0; Object.defineProperty(WDateTime, 'Companion', { get: WDateTime$Companion_getInstance }); package$wrapped.WDateTime = WDateTime; package$wrapped.max_l0vulw$ = max_2; package$wrapped.min_l0vulw$ = min_2; package$wrapped.clamp_6ktu3c$ = clamp_3; package$wrapped.get_wrapped_r97zx8$ = get_wrapped_1; package$wrapped.get_value_r97zx8$ = get_value; package$wrapped.WDateTimeSpan_5gml0z$ = WDateTimeSpan; package$wrapped.get_wrapped_ksqbhc$ = get_wrapped_2; package$wrapped.get_value_ksqbhc$ = get_value_0; package$wrapped.WDateTimeTz_j01w8f$ = WDateTimeTz; package$wrapped.get_wrapped_9hk2ei$ = get_wrapped_3; package$wrapped.get_value_9hk2ei$ = get_value_1; package$wrapped.WDayOfWeek_76hapz$ = WDayOfWeek; package$wrapped.get_wrapped_klw4tf$ = get_wrapped_4; package$wrapped.get_value_klw4tf$ = get_value_2; package$wrapped.WMonth_s5s5ke$ = WMonth; package$wrapped.get_wrapped_h7vlot$ = get_wrapped_5; Object.defineProperty(WMonthSpan, 'Companion', { get: WMonthSpan$Companion_getInstance }); package$wrapped.WMonthSpan = WMonthSpan; package$wrapped.get_wrapped_s21gh8$ = get_wrapped_6; Object.defineProperty(WTime, 'Companion', { get: WTime$Companion_getInstance }); package$wrapped.WTime = WTime; package$wrapped.plus_m611yx$ = plus_6; package$wrapped.get_wrapped_5bmjl6$ = get_wrapped_7; Object.defineProperty(WTimeSpan, 'Companion', { get: WTimeSpan$Companion_getInstance }); package$wrapped.WTimeSpan = WTimeSpan; package$wrapped.max_vcetro$ = max_3; package$wrapped.min_vcetro$ = min_3; package$wrapped.clamp_3shs5o$ = clamp_4; package$wrapped.get_wrapped_u48tcl$ = get_wrapped_8; Object.defineProperty(WTimezoneOffset, 'Companion', { get: WTimezoneOffset$Companion_getInstance }); package$wrapped.WTimezoneOffset = WTimezoneOffset; package$wrapped.get_offset_xiqcuw$ = get_offset_0; package$wrapped.get_wrapped_rzda1o$ = get_wrapped_9; Object.defineProperty(WYear, 'Companion', { get: WYear$Companion_getInstance }); package$wrapped.WYear = WYear; package$wrapped.get_wrapped_vna1mu$ = get_wrapped_10; Object.defineProperty(WYearMonth, 'Companion', { get: WYearMonth$Companion_getInstance }); package$wrapped.WYearMonth = WYearMonth; package$wrapped.withMonth_yw6rbw$ = withMonth_0; package$wrapped.withYear_a7yzmi$ = withYear_0; package$internal.klockAtomicLazy_i3ch5z$ = klockAtomicLazy; package$internal.klockLazyOrGet_i3ch5z$ = klockLazyOrGet; package$internal.KlockAtomicRef = KlockAtomicRef; package$internal.KlockLock = KlockLock; Object.defineProperty(package$internal, 'klockIsKotlinNative_8be2vx$', { get: function () { return klockIsKotlinNative; } }); Object.defineProperty(package$internal, 'KlockInternal', { get: KlockInternal_getInstance }); package$internal.Serializable = Serializable; var package$js = package$klock.js || (package$klock.js = {}); package$js.toDateTime_t5kl13$ = toDateTime; package$js.toDate_m2ds6$ = toDate; ISO8601$BaseIsoDateTimeFormat.prototype.tryParse_ivxn3r$ = DateFormat.prototype.tryParse_ivxn3r$; ISO8601$IsoDateTimeFormat.prototype.tryParse_ivxn3r$ = DateFormat.prototype.tryParse_ivxn3r$; ISO8601$DATE$ObjectLiteral.prototype.tryParse_ivxn3r$ = DateFormat.prototype.tryParse_ivxn3r$; PatternDateFormat.prototype.tryParse_ivxn3r$ = DateFormat.prototype.tryParse_ivxn3r$; KlockLocale_default = KlockLocale$English$Companion_getInstance(); MILLIS_PER_SECOND = 1000; MILLIS_PER_MINUTE = 60000; MILLIS_PER_HOUR = 3600000; MILLIS_PER_DAY = 86400000; MILLIS_PER_WEEK = 604800000; ExtendedTimezoneNames = TimezoneNames_init([to('ACDT', utc(10, 30)), to('ACST', utc(9, 30)), to('ACT', utc(-5)), to('ACWST', utc(8, 45)), to('ADT', utc(-3)), to('AEDT', utc(11)), to('AEST', utc(10)), to('AFT', utc(4, 30)), to('AKDT', utc(-8)), to('AKST', utc(-9)), to('ALMT', utc(6)), to('AMST', utc(-3)), to('AMT', utc(-4)), to('AMT', utc(4)), to('ANAT', utc(12)), to('AQTT', utc(5)), to('ART', utc(-3)), to('AST', utc(3)), to('AST', utc(-4)), to('AWST', utc(8)), to('AZOST', utc(0)), to('AZOT', utc(-1)), to('AZT', utc(4)), to('BDT', utc(8)), to('BIOT', utc(6)), to('BIT', utc(-12)), to('BOT', utc(-4)), to('BRST', utc(-2)), to('BRT', utc(-3)), to('BST', utc(6)), to('BST', utc(11)), to('BST', utc(1)), to('BTT', utc(6)), to('CAT', utc(2)), to('CCT', utc(6, 30)), to('CDT', utc(-5)), to('CDT', utc(-4)), to('CEST', utc(2)), to('CET', utc(1)), to('CHADT', utc(13, 45)), to('CHAST', utc(12, 45)), to('CHOT', utc(8)), to('CHOST', utc(9)), to('CHST', utc(10)), to('CHUT', utc(10)), to('CIST', utc(-8)), to('CIT', utc(8)), to('CKT', utc(-10)), to('CLST', utc(-3)), to('CLT', utc(-4)), to('COST', utc(-4)), to('COT', utc(-5)), to('CST', utc(-6)), to('CST', utc(8)), to('CST', utc(-5)), to('CT', utc(8)), to('CVT', utc(-1)), to('CWST', utc(8, 45)), to('CXT', utc(7)), to('DAVT', utc(7)), to('DDUT', utc(10)), to('DFT', utc(1)), to('EASST', utc(-5)), to('EAST', utc(-6)), to('EAT', utc(3)), to('ECT', utc(-4)), to('ECT', utc(-5)), to('EDT', utc(-4)), to('EEST', utc(3)), to('EET', utc(2)), to('EGST', utc(0)), to('EGT', utc(-1)), to('EIT', utc(9)), to('EST', utc(-5)), to('FET', utc(3)), to('FJT', utc(12)), to('FKST', utc(-3)), to('FKT', utc(-4)), to('FNT', utc(-2)), to('GALT', utc(-6)), to('GAMT', utc(-9)), to('GET', utc(4)), to('GFT', utc(-3)), to('GILT', utc(12)), to('GIT', utc(-9)), to('GMT', utc(0)), to('GST', utc(-2)), to('GST', utc(4)), to('GYT', utc(-4)), to('HDT', utc(-9)), to('HAEC', utc(2)), to('HST', utc(-10)), to('HKT', utc(8)), to('HMT', utc(5)), to('HOVST', utc(8)), to('HOVT', utc(7)), to('ICT', utc(7)), to('IDLW', utc(-12)), to('IDT', utc(3)), to('IOT', utc(3)), to('IRDT', utc(4, 30)), to('IRKT', utc(8)), to('IRST', utc(3, 30)), to('IST', utc(5, 30)), to('IST', utc(1)), to('IST', utc(2)), to('JST', utc(9)), to('KALT', utc(2)), to('KGT', utc(6)), to('KOST', utc(11)), to('KRAT', utc(7)), to('KST', utc(9)), to('LHST', utc(10, 30)), to('LHST', utc(11)), to('LINT', utc(14)), to('MAGT', utc(12)), to('MART', utc(-9, 30)), to('MAWT', utc(5)), to('MDT', utc(-6)), to('MET', utc(1)), to('MEST', utc(2)), to('MHT', utc(12)), to('MIST', utc(11)), to('MIT', utc(-9, 30)), to('MMT', utc(6, 30)), to('MSK', utc(3)), to('MST', utc(8)), to('MST', utc(-7)), to('MUT', utc(4)), to('MVT', utc(5)), to('MYT', utc(8)), to('NCT', utc(11)), to('NDT', utc(-2, 30)), to('NFT', utc(11)), to('NOVT', utc(7)), to('NPT', utc(5, 45)), to('NST', utc(-3, 30)), to('NT', utc(-3, 30)), to('NUT', utc(-11)), to('NZDT', utc(13)), to('NZST', utc(12)), to('OMST', utc(6)), to('ORAT', utc(5)), to('PDT', utc(-7)), to('PET', utc(-5)), to('PETT', utc(12)), to('PGT', utc(10)), to('PHOT', utc(13)), to('PHT', utc(8)), to('PKT', utc(5)), to('PMDT', utc(-2)), to('PMST', utc(-3)), to('PONT', utc(11)), to('PST', utc(-8)), to('PST', utc(8)), to('PYST', utc(-3)), to('PYT', utc(-4)), to('RET', utc(4)), to('ROTT', utc(-3)), to('SAKT', utc(11)), to('SAMT', utc(4)), to('SAST', utc(2)), to('SBT', utc(11)), to('SCT', utc(4)), to('SDT', utc(-10)), to('SGT', utc(8)), to('SLST', utc(5, 30)), to('SRET', utc(11)), to('SRT', utc(-3)), to('SST', utc(-11)), to('SST', utc(8)), to('SYOT', utc(3)), to('TAHT', utc(-10)), to('THA', utc(7)), to('TFT', utc(5)), to('TJT', utc(5)), to('TKT', utc(13)), to('TLT', utc(9)), to('TMT', utc(5)), to('TRT', utc(3)), to('TOT', utc(13)), to('TVT', utc(12)), to('ULAST', utc(9)), to('ULAT', utc(8)), to('UTC', utc(0)), to('UYST', utc(-2)), to('UYT', utc(-3)), to('UZT', utc(5)), to('VET', utc(-4)), to('VLAT', utc(10)), to('VOLT', utc(4)), to('VOST', utc(6)), to('VUT', utc(11)), to('WAKT', utc(12)), to('WAST', utc(2)), to('WAT', utc(1)), to('WEST', utc(1)), to('WET', utc(0)), to('WIT', utc(7)), to('WST', utc(8)), to('YAKT', utc(9)), to('YEKT', utc(5))]); klockIsKotlinNative = false; isNode = equals(typeof window, 'undefined'); initialHrTime = klockAtomicLazy(initialHrTime$lambda); Kotlin.defineModule('klock-root-klock-js-legacy', _); return _; })); //# sourceMappingURL=klock-root-klock-js-legacy.js.map