UNPKG

net.akehurst.language-agl-processor

Version:
943 lines (941 loc) 30.7 kB
import { initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion, to2cs3ny02qtbcb as to, mapOf2zpbbmyqk8xpf as mapOf, plus2m1vv33moko5t as plus, collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault, mapCapacity1h45rc3eh9p2l as mapCapacity, coerceAtLeast2bkz8m9ik7hep as coerceAtLeast, LinkedHashMap1zhqxkxv3xnkl as LinkedHashMap, toString30pk9tzaqopn as toString, Unit_instance1fbcbse1fwigr as Unit_instance, KtMap140uvy3s5zad8 as KtMap, isInterface3d6p8outrmvmk as isInterface, ArrayList3it5z8td81qkl as ArrayList, KtList3hktaavzmj137 as KtList, noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException, ensureNotNull1e947j3ixpazm as ensureNotNull, _Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx, contains2el4s70rdq4ld as contains, IllegalStateExceptionkoljg5n0nrlr as IllegalStateException, toString1pkumu07cwy4m as toString_0, VOID3gxj6tk5isa35 as VOID, THROW_CCE2g6jy02ryeudk as THROW_CCE, initMetadataForClassbxx6q50dy2s7 as initMetadataForClass, defineProp3ur6h3slcvq4x as defineProp, initMetadataForInterface1egvbzx539z91 as initMetadataForInterface, createThis2j2avj17cvnv2 as createThis, hashCodeq5arwsb9dgti as hashCode, equals2au1ep9vhcato as equals, initMetadataForObject1cxne3s9w65el as initMetadataForObject, HashMap1a0ld5kgwhmhv as HashMap, emptySetcxexqki71qfa as emptySet, charCodeAt1yspne1d8erbm as charCodeAt, toString3o7ifthqydp6e as toString_1, Char19o2r8palgjof as Char, Regexxgw0gjiagf4z as Regex, fromInt2ii0rejb1w62w as fromInt, add2suhfggl4zvkk as add, get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED, suspendOrReturn49pspzlx5djv as suspendOrReturn, joinToString1cxrrlmo0chqs as joinToString, } from './kotlin-kotlin-stdlib.mjs'; import { JsonPrimitiveolttw629wj53 as JsonPrimitive, JsonObjectee06ihoeeiqj as JsonObject, JsonArray2urf8ey7u44sd as JsonArray, JsonPrimitive2fp8648nd60dn as JsonPrimitive_0, JsonPrimitive1xkjzc5d7ihuv as JsonPrimitive_1, JsonNull_getInstance2gh8fwl8w0wl7 as JsonNull_getInstance, get_jsonPrimitivez17tyd5rw1ql as get_jsonPrimitive, JsonPrimitive3ttzjh2ft5dnx as JsonPrimitive_2, JsonNull2liwjj96vm0w2 as JsonNull, get_longOrNull1kg1ha9scz5pa as get_longOrNull, get_intOrNulld29i64b3udf as get_intOrNull, get_doubleOrNull2fo14gjg922um as get_doubleOrNull, get_boolean37ml8jnzy6rg3 as get_boolean, JsonEncoder1qlse6simkfi1 as JsonEncoder, JsonDecoder1rijst5ne6qla as JsonDecoder, } from './kotlinx-serialization-kotlinx-serialization-json.mjs'; import { buildClassSerialDescriptors2a6xdp6mrtw as buildClassSerialDescriptor } from './kotlinx-serialization-kotlinx-serialization-core.mjs'; import { Mutex16li1l0asjv17 as Mutex } from './kotlinx-coroutines-core.mjs'; //region block: imports //endregion //region block: pre-declaration class Companion { constructor() { this.CLASS_DISCRIMINATOR = '#class'; } xy() { return this.CLASS_DISCRIMINATOR; } } class AnySerializer { constructor(customSerialize, customDeserialize) { var tmp; if (customSerialize === VOID) { tmp = AnySerializer$_init_$lambda_6x9bh; } else { tmp = customSerialize; } customSerialize = tmp; var tmp_0; if (customDeserialize === VOID) { tmp_0 = AnySerializer$_init_$lambda_6x9bh_0; } else { tmp_0 = customDeserialize; } customDeserialize = tmp_0; this.customSerialize = customSerialize; this.customDeserialize = customDeserialize; this.yy_1 = buildClassSerialDescriptor('Any', []); } zy() { return this.customSerialize; } az() { return this.customDeserialize; } yo() { return this.yy_1; } bz(encoder, value) { var jsonEncoder = isInterface(encoder, JsonEncoder) ? encoder : THROW_CCE(); var jsonElement = serializeAny(this, value); jsonEncoder.yp(jsonElement); } cz(encoder, value) { return this.bz(encoder, !(value == null) ? value : THROW_CCE()); } dz(decoder) { var jsonDecoder = isInterface(decoder, JsonDecoder) ? decoder : THROW_CCE(); var element = jsonDecoder.dp(); var tmp0_elvis_lhs = deserializeJsonElement(this, element); return tmp0_elvis_lhs == null ? Unit_instance : tmp0_elvis_lhs; } } class Companion_0 { buildAction(ctor, init, action) { var b = ctor(); init(b); // Inline function 'kotlin.also' call var this_0 = b.build(); action(this_0); return this_0; } } class Builder_0 {} class Indent { constructor(value, increment) { value = value === VOID ? '' : value; increment = increment === VOID ? ' ' : increment; this.value = value; this.increment = increment; } b2() { return this.value; } ez() { return this.increment; } fz() { return new Indent(this.value + this.increment, this.increment); } toString() { return this.value; } get inc() { return this.fz(); } } class Reference {} class MutableReference {} class ReferenceImmutable { constructor(reference) { return new.target.lz(reference); } static lz(reference) { var $this = createThis(this); $this.jz_1 = reference; $this.kz_1 = null; return $this; } iz(_set____db54di) { this.jz_1 = _set____db54di; } gz() { return this.jz_1; } static new_net_akehurst_kotlinx_utils_ReferenceImmutable(reference, resolved) { var $this = this.lz(reference); $this.kz_1 = resolved; return $this; } mz(_set____db54di) { this.kz_1 = _set____db54di; } hz() { return this.kz_1; } ni() { return this.jz_1; } nz(reference) { return ReferenceImmutable.lz(reference); } copy(reference, $super) { reference = reference === VOID ? this.jz_1 : reference; return $super === VOID ? this.nz(reference) : $super.nz.call(this, reference); } toString() { return 'ReferenceImmutable(reference=' + toString(this.jz_1) + ')'; } hashCode() { return this.jz_1 == null ? 0 : hashCode(this.jz_1); } equals(other) { if (this === other) return true; if (!(other instanceof ReferenceImmutable)) return false; if (!equals(this.jz_1, other.jz_1)) return false; return true; } get reference() { return this.gz(); } set reference(value) { this.iz(value); } get resolved() { return this.hz(); } set resolved(value) { this.mz(value); } } class ReferenceExt_0 { oz(_this__u8e3s4) { return isInterface(_this__u8e3s4, MutableReference) ? _this__u8e3s4 : THROW_CCE(); } pz(_this__u8e3s4) { return isInterface(_this__u8e3s4, MutableReference) ? _this__u8e3s4 : null; } } class MutableReferenceDefault { constructor(reference) { reference = reference === VOID ? null : reference; this.qz_1 = reference; this.rz_1 = null; } iz(_set____db54di) { this.qz_1 = _set____db54di; } gz() { return this.qz_1; } mz(_set____db54di) { this.rz_1 = _set____db54di; } hz() { return this.rz_1; } set(ref, value) { this.qz_1 = ref; this.rz_1 = value; } clear() { return this.set(null, null); } ni() { return this.qz_1; } nz(reference) { return new MutableReferenceDefault(reference); } copy(reference, $super) { reference = reference === VOID ? this.qz_1 : reference; return $super === VOID ? this.nz(reference) : $super.nz.call(this, reference); } toString() { return 'MutableReferenceDefault(reference=' + toString(this.qz_1) + ')'; } hashCode() { return this.qz_1 == null ? 0 : hashCode(this.qz_1); } equals(other) { if (this === other) return true; if (!(other instanceof MutableReferenceDefault)) return false; if (!equals(this.qz_1, other.qz_1)) return false; return true; } get reference() { return this.gz(); } set reference(value) { this.iz(value); } get resolved() { return this.hz(); } set resolved(value) { this.mz(value); } } class ReferenceStore {} class HierarchicalReferenceStore {} class ReferenceStoreByHashMap { constructor() { this.vz_1 = HashMap.o7(); } get(clazz, reference) { var tmp0_safe_receiver = this.vz_1.c3(clazz); var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c3(reference); return !(tmp == null) ? tmp : null; } set(clazz, reference, value) { if (value == null) null; else { // Inline function 'kotlin.let' call var tmp0_elvis_lhs = this.vz_1.c3(clazz); var tmp; if (tmp0_elvis_lhs == null) { // Inline function 'kotlin.let' call // Inline function 'kotlin.also' call var this_0 = HashMap.o7(); // Inline function 'kotlin.collections.set' call this.vz_1.f3(clazz, this_0); tmp = this_0; } else { tmp = tmp0_elvis_lhs; } var clsMap = tmp; // Inline function 'kotlin.collections.set' call clsMap.f3(reference, value); } } } class HierarchicalReferenceStoreByHashMap { constructor(parentReferenceStore, identity) { this.wz_1 = parentReferenceStore; this.xz_1 = identity; var tmp0_safe_receiver = this.wz_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.registerChild(this); } var tmp = this; // Inline function 'kotlin.collections.mutableMapOf' call tmp.yz_1 = LinkedHashMap.j4(); this.zz_1 = HashMap.o7(); this.a10_1 = HashMap.o7(); } tz() { return this.wz_1; } sz() { return this.xz_1; } uz() { return null == this.wz_1 ? this : this.wz_1.rootReferenceStore; } get(clazz, reference) { var tmp0_safe_receiver = this.zz_1.c3(clazz); var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c3(reference); return !(tmp == null) ? tmp : null; } set(clazz, reference, value) { if (value == null) null; else { // Inline function 'kotlin.let' call this.rootReferenceStore.setOwnerForReferenceType(clazz, this); var tmp0_elvis_lhs = this.zz_1.c3(clazz); var tmp; if (tmp0_elvis_lhs == null) { // Inline function 'kotlin.let' call // Inline function 'kotlin.also' call var this_0 = HashMap.o7(); // Inline function 'kotlin.collections.set' call this.zz_1.f3(clazz, this_0); tmp = this_0; } else { tmp = tmp0_elvis_lhs; } var clsMap = tmp; // Inline function 'kotlin.collections.set' call clsMap.f3(reference, value); } } registerChild(child) { var tmp0 = this.yz_1; // Inline function 'kotlin.collections.set' call var key = child.identity; tmp0.f3(key, child); } getOwnerForReferenceType(clazz) { return this.a10_1.c3(clazz); } setOwnerForReferenceType(clazz, store) { // Inline function 'kotlin.collections.set' call this.a10_1.f3(clazz, store); } get parentReferenceStore() { return this.tz(); } get identity() { return this.sz(); } get rootReferenceStore() { return this.uz(); } } class Companion_1 { constructor() { Companion_instance_1 = this; this.GLOBAL = new UniqueIdentityGenerator(); } b10() { return this.GLOBAL; } } class UniqueIdentityGenerator { constructor(commonPrefix) { Companion_getInstance_1(); commonPrefix = commonPrefix === VOID ? '' : commonPrefix; this.commonPrefix = commonPrefix; var tmp = this; // Inline function 'kotlin.collections.mutableMapOf' call tmp.c10_1 = LinkedHashMap.j4(); } d10() { return this.commonPrefix; } e10() { return this.c10_1; } f10(prefix) { var p = this.commonPrefix + prefix; var tmp0_elvis_lhs = this.c10_1.c3(p); var num = tmp0_elvis_lhs == null ? 0n : tmp0_elvis_lhs; var tmp0 = this.c10_1; // Inline function 'kotlin.Long.plus' call // Inline function 'kotlin.collections.set' call var value = add(num, fromInt(1)); tmp0.f3(p, value); return p + num.toString(); } generate(prefix, $super) { prefix = prefix === VOID ? 'id' : prefix; return $super === VOID ? this.f10(prefix) : $super.f10.call(this, prefix); } } class Value {} class ValueImmutable { constructor(value) { this.value = value; } b2() { return this.value; } get() { return this.value; } ni() { return this.value; } g10(value) { return new ValueImmutable(value); } copy(value, $super) { value = value === VOID ? this.value : value; return $super === VOID ? this.g10(value) : $super.g10.call(this, value); } toString() { return 'ValueImmutable(value=' + toString(this.value) + ')'; } hashCode() { return this.value == null ? 0 : hashCode(this.value); } equals(other) { if (this === other) return true; if (!(other instanceof ValueImmutable)) return false; if (!equals(this.value, other.value)) return false; return true; } } class MutableValue {} class ValueExt_0 { h10(_this__u8e3s4) { return isInterface(_this__u8e3s4, MutableValue) ? _this__u8e3s4 : THROW_CCE(); } } class MutableValueAbstract { get() { return this.value; } set(value) { this.i10(value); } get value() { return this.b2(); } set value(value) { this.i10(value); } } class MutableValueDefault extends MutableValueAbstract { constructor(value) { super(); this.j10_1 = value; } i10(_set____db54di) { this.j10_1 = _set____db54di; } b2() { return this.j10_1; } ni() { return this.j10_1; } g10(value) { return new MutableValueDefault(value); } copy(value, $super) { value = value === VOID ? this.j10_1 : value; return $super === VOID ? this.g10(value) : $super.g10.call(this, value); } toString() { return 'MutableValueDefault(value=' + toString(this.j10_1) + ')'; } hashCode() { return this.j10_1 == null ? 0 : hashCode(this.j10_1); } equals(other) { if (this === other) return true; if (!(other instanceof MutableValueDefault)) return false; if (!equals(this.j10_1, other.j10_1)) return false; return true; } } class UNINITIALIZED_VALUE {} class AsyncLazy { constructor(initializer) { this.initializer = initializer; this.k10_1 = Mutex(); this.l10_1 = UNINITIALIZED_VALUE_instance; } m10() { return this.initializer; } isInitialized() { return !(this.l10_1 === UNINITIALIZED_VALUE_instance); } invoke($completion) { return this.await($completion); } await($completion) { return suspendOrReturn(/*#__NOINLINE__*/_generator_await__mos7q6.bind(VOID, this), $completion); } } class AsyncLazyDelegate { constructor(initializer) { this.n10_1 = new AsyncLazy(initializer); } } class Factory {} class HierarchicalFactory {} function get_qualifiedName() { return joinToString(this.qualifiedIdentity, '.'); } class Identifiable {} class NestedIdentifiable {} class Resolver {} class HierarchicalResolver {} class adoptCss$sheet$1 extends CSSStyleSheet {} //endregion var Companion_instance; function Companion_getInstance() { return Companion_instance; } function serializeAny($this, value) { var tmp; if (value == null) { tmp = JsonNull_getInstance(); } else { if (typeof value === 'string') { tmp = JsonPrimitive(value); } else { if (typeof value === 'boolean') { tmp = JsonPrimitive_1(value); } else { if (typeof value === 'number') { tmp = JsonPrimitive_0(value); } else { if (typeof value === 'bigint') { tmp = JsonPrimitive_0(value); } else { if (typeof value === 'number') { tmp = JsonPrimitive_0(value); } else { if (typeof value === 'number') { tmp = JsonPrimitive_0(value); } else { if (isInterface(value, KtList)) { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList.a1(collectionSizeOrDefault(value, 10)); var _iterator__ex2g4s = value.g1(); while (_iterator__ex2g4s.f()) { var item = _iterator__ex2g4s.e(); var tmp$ret$0 = serializeAny($this, item); destination.v(tmp$ret$0); } tmp = new JsonArray(destination); } else { if (isInterface(value, KtMap)) { // Inline function 'kotlin.collections.associate' call var this_0 = value.z1(); var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16); // Inline function 'kotlin.collections.associateTo' call var destination_0 = LinkedHashMap.gb(capacity); var _iterator__ex2g4s_0 = this_0.g1(); while (_iterator__ex2g4s_0.f()) { var element = _iterator__ex2g4s_0.e(); // Inline function 'kotlin.collections.component1' call var k = element.a2(); // Inline function 'kotlin.collections.component2' call var v = element.b2(); // Inline function 'kotlin.collections.plusAssign' call var pair = to(toString(k), serializeAny($this, v)); destination_0.f3(pair.hi_1, pair.ii_1); } tmp = new JsonObject(destination_0); } else { var _destruct__k2r9zo = $this.customSerialize(value); var className = _destruct__k2r9zo.ni(); var jsonObject = _destruct__k2r9zo.oi(); tmp = new JsonObject(plus(mapOf(to('#class', JsonPrimitive(className))), jsonObject)); } } } } } } } } } return tmp; } function deserializeJsonElement($this, element) { var tmp; if (element instanceof JsonNull) { tmp = null; } else { if (element instanceof JsonPrimitive_2) { tmp = deserializePrimitive($this, element); } else { if (element instanceof JsonArray) { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList.a1(collectionSizeOrDefault(element, 10)); var _iterator__ex2g4s = element.g1(); while (_iterator__ex2g4s.f()) { var item = _iterator__ex2g4s.e(); var tmp$ret$0 = deserializeJsonElement($this, item); destination.v(tmp$ret$0); } tmp = destination; } else { if (element instanceof JsonObject) { var tmp_0; if (element.fp('#class')) { var className = get_jsonPrimitive(ensureNotNull(element.hp('#class'))).kp(); // Inline function 'kotlin.collections.filterKeys' call var result = LinkedHashMap.j4(); // Inline function 'kotlin.collections.iterator' call var _iterator__ex2g4s_0 = element.z1().g1(); while (_iterator__ex2g4s_0.f()) { var entry = _iterator__ex2g4s_0.e(); if (!(entry.a2() === '#class')) { result.f3(entry.a2(), entry.b2()); } } var jObj = new JsonObject(result); tmp_0 = $this.customDeserialize(className, jObj); } else { // Inline function 'kotlin.collections.mapValues' call // Inline function 'kotlin.collections.mapValuesTo' call var destination_0 = LinkedHashMap.gb(mapCapacity(element.h1())); // Inline function 'kotlin.collections.associateByTo' call var _iterator__ex2g4s_1 = element.z1().g1(); while (_iterator__ex2g4s_1.f()) { var element_0 = _iterator__ex2g4s_1.e(); var tmp_1 = element_0.a2(); var tmp$ret$7 = deserializeJsonElement($this, element_0.b2()); destination_0.f3(tmp_1, tmp$ret$7); } tmp_0 = destination_0; } tmp = tmp_0; } else { noWhenBranchMatchedException(); } } } } return tmp; } function deserializePrimitive($this, primitive) { var tmp; if (primitive.jp()) { tmp = primitive.kp(); } else if (primitive.kp() === 'true' || primitive.kp() === 'false') { tmp = get_boolean(primitive); } else if (contains(primitive.kp(), _Char___init__impl__6a9atx(46))) { var tmp0_elvis_lhs = get_doubleOrNull(primitive); tmp = tmp0_elvis_lhs == null ? primitive.kp() : tmp0_elvis_lhs; } else { var tmp1_elvis_lhs = get_longOrNull(primitive); var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? get_intOrNull(primitive) : tmp1_elvis_lhs; tmp = tmp2_elvis_lhs == null ? primitive.kp() : tmp2_elvis_lhs; } return tmp; } function AnySerializer$_init_$lambda_6x9bh(_unused_var__etf5q3) { // Inline function 'kotlin.error' call var message = 'customSerialize not initialized'; throw IllegalStateException.t4(toString_0(message)); } function AnySerializer$_init_$lambda_6x9bh_0(_unused_var__etf5q3, _unused_var__etf5q3_0) { // Inline function 'kotlin.error' call var message = 'customDeserialize not initialized'; throw IllegalStateException.t4(toString_0(message)); } var Companion_instance_0; function Companion_getInstance_0() { return Companion_instance_0; } var ReferenceExt_instance; function ReferenceExt_getInstance() { return ReferenceExt_instance; } function toRegexFromGlob(_this__u8e3s4, separator, options) { options = options === VOID ? emptySet() : options; var globStr = _this__u8e3s4; var regex = ''; var inGroup = 0; var inCharacterClass = 0; var firstIndexInClass = -1; var i = 0; while (i < globStr.length) { var ch = charCodeAt(globStr, i); if (ch === _Char___init__impl__6a9atx(92)) { i = i + 1 | 0; if (i >= globStr.length) { regex = regex + toString_1(_Char___init__impl__6a9atx(92)); } else { var next = charCodeAt(globStr, i); if (next !== _Char___init__impl__6a9atx(44)) if (next === _Char___init__impl__6a9atx(81) || next === _Char___init__impl__6a9atx(69)) regex = regex + '\\\\'; else regex = regex + toString_1(_Char___init__impl__6a9atx(92)); regex = regex + toString_1(next); } } else if (ch === _Char___init__impl__6a9atx(42)) { if (inCharacterClass === 0) { if ((i + 1 | 0) >= globStr.length) { regex = regex + ('[^' + toString_1(separator) + ']*'); } else { var next_0 = charCodeAt(globStr, i + 1 | 0); if (next_0 === _Char___init__impl__6a9atx(42)) { regex = regex + '.*'; i = i + 1 | 0; } else { regex = regex + ('[^' + toString_1(separator) + ']*'); } } } else { regex = regex + toString_1(_Char___init__impl__6a9atx(42)); } } else if (ch === _Char___init__impl__6a9atx(63)) { regex = regex + toString_0(inCharacterClass === 0 ? '([^' + new Char(separator) + '])' : new Char(_Char___init__impl__6a9atx(63))); } else if (ch === _Char___init__impl__6a9atx(91)) { inCharacterClass = inCharacterClass + 1 | 0; firstIndexInClass = i + 1 | 0; regex = regex + '[['; } else if (ch === _Char___init__impl__6a9atx(93)) { inCharacterClass = inCharacterClass - 1 | 0; regex = regex + (']&&[^' + toString_1(separator) + ']]'); } else if (ch === _Char___init__impl__6a9atx(123)) { inGroup = inGroup + 1 | 0; regex = regex + toString_1(_Char___init__impl__6a9atx(40)); } else if (ch === _Char___init__impl__6a9atx(125)) { inGroup = inGroup - 1 | 0; regex = regex + toString_1(_Char___init__impl__6a9atx(41)); } else if (ch === _Char___init__impl__6a9atx(33)) { regex = regex + toString_1(firstIndexInClass === i ? _Char___init__impl__6a9atx(94) : _Char___init__impl__6a9atx(33)); } else if (ch === _Char___init__impl__6a9atx(44)) { regex = regex + toString_1(inGroup > 0 ? _Char___init__impl__6a9atx(124) : _Char___init__impl__6a9atx(44)); } else if (ch === _Char___init__impl__6a9atx(46) || ch === _Char___init__impl__6a9atx(40) || (ch === _Char___init__impl__6a9atx(41) || ch === _Char___init__impl__6a9atx(43)) || (ch === _Char___init__impl__6a9atx(124) || ch === _Char___init__impl__6a9atx(94) || (ch === _Char___init__impl__6a9atx(36) || (ch === _Char___init__impl__6a9atx(64) || ch === _Char___init__impl__6a9atx(37))))) { if (inCharacterClass === 0 || (firstIndexInClass === i && ch === _Char___init__impl__6a9atx(94))) regex = regex + toString_1(_Char___init__impl__6a9atx(92)); regex = regex + toString_1(ch); } else { regex = regex + toString_1(ch); } i = i + 1 | 0; } return Regex.if(regex, options); } var Companion_instance_1; function Companion_getInstance_1() { if (Companion_instance_1 === VOID) new Companion_1(); return Companion_instance_1; } var ValueExt_instance; function ValueExt_getInstance() { return ValueExt_instance; } function asyncLazy(initializer) { return new AsyncLazyDelegate(initializer); } var UNINITIALIZED_VALUE_instance; function UNINITIALIZED_VALUE_getInstance() { return UNINITIALIZED_VALUE_instance; } function *_generator_await__mos7q6($this, $completion) { var v1 = $this.l10_1; if (!(v1 === UNINITIALIZED_VALUE_instance)) { return (v1 == null ? true : !(v1 == null)) ? v1 : THROW_CCE(); } // Inline function 'kotlinx.coroutines.sync.withLock' call var this_0 = $this.k10_1; var tmp = this_0.iy(null, $completion); if (tmp === get_COROUTINE_SUSPENDED()) tmp = yield tmp; var tmp_0; try { var v2 = $this.l10_1; var tmp_1; if (!(v2 === UNINITIALIZED_VALUE_instance)) { tmp_1 = (v2 == null ? true : !(v2 == null)) ? v2 : THROW_CCE(); } else { var tmp_2 = $this.initializer($completion); if (tmp_2 === get_COROUTINE_SUSPENDED()) tmp_2 = yield tmp_2; var result = tmp_2; $this.l10_1 = result; tmp_1 = result; } tmp_0 = tmp_1; }finally { this_0.tx(null); } return tmp_0; } function setJsAny(_this__u8e3s4, key, value) { var self_0 = _this__u8e3s4; self_0[key] = value; return self_0; } function getJsAny(_this__u8e3s4, key) { var self_0 = _this__u8e3s4; var value = self_0[key]; return value; } function adoptCss(_this__u8e3s4, css) { var sheet = new adoptCss$sheet$1(); // Inline function 'kotlin.js.asDynamic' call sheet.replace(css); // Inline function 'kotlin.js.asDynamic' call _this__u8e3s4.adoptedStyleSheets.push(sheet); } //region block: post-declaration initMetadataForCompanion(Companion); initMetadataForClass(AnySerializer, 'AnySerializer', AnySerializer); initMetadataForCompanion(Companion_0); initMetadataForInterface(Builder_0, 'Builder'); initMetadataForClass(Indent, 'Indent', Indent); initMetadataForInterface(Reference, 'Reference'); initMetadataForInterface(MutableReference, 'MutableReference', VOID, VOID, [Reference]); initMetadataForClass(ReferenceImmutable, 'ReferenceImmutable', VOID, VOID, [Reference]); initMetadataForObject(ReferenceExt_0, 'ReferenceExt'); initMetadataForClass(MutableReferenceDefault, 'MutableReferenceDefault', MutableReferenceDefault, VOID, [MutableReference]); initMetadataForInterface(ReferenceStore, 'ReferenceStore'); initMetadataForInterface(HierarchicalReferenceStore, 'HierarchicalReferenceStore', VOID, VOID, [ReferenceStore]); initMetadataForClass(ReferenceStoreByHashMap, 'ReferenceStoreByHashMap', ReferenceStoreByHashMap, VOID, [ReferenceStore]); initMetadataForClass(HierarchicalReferenceStoreByHashMap, 'HierarchicalReferenceStoreByHashMap', VOID, VOID, [HierarchicalReferenceStore]); initMetadataForCompanion(Companion_1); initMetadataForClass(UniqueIdentityGenerator, 'UniqueIdentityGenerator', UniqueIdentityGenerator); initMetadataForInterface(Value, 'Value'); initMetadataForClass(ValueImmutable, 'ValueImmutable', VOID, VOID, [Value]); initMetadataForInterface(MutableValue, 'MutableValue', VOID, VOID, [Value]); initMetadataForObject(ValueExt_0, 'ValueExt'); initMetadataForClass(MutableValueAbstract, 'MutableValueAbstract', VOID, VOID, [MutableValue]); initMetadataForClass(MutableValueDefault, 'MutableValueDefault'); initMetadataForObject(UNINITIALIZED_VALUE, 'UNINITIALIZED_VALUE'); initMetadataForClass(AsyncLazy, 'AsyncLazy', VOID, VOID, VOID, [0]); initMetadataForClass(AsyncLazyDelegate, 'AsyncLazyDelegate'); initMetadataForInterface(Factory, 'Factory'); initMetadataForInterface(HierarchicalFactory, 'HierarchicalFactory', VOID, VOID, [Factory]); initMetadataForInterface(Identifiable, 'Identifiable'); initMetadataForInterface(NestedIdentifiable, 'NestedIdentifiable', VOID, VOID, [Identifiable]); initMetadataForInterface(Resolver, 'Resolver'); initMetadataForInterface(HierarchicalResolver, 'HierarchicalResolver', VOID, VOID, [Resolver]); initMetadataForClass(adoptCss$sheet$1); //endregion //region block: init Companion_instance = new Companion(); Companion_instance_0 = new Companion_0(); ReferenceExt_instance = new ReferenceExt_0(); ValueExt_instance = new ValueExt_0(); UNINITIALIZED_VALUE_instance = new UNINITIALIZED_VALUE(); //endregion //region block: exports defineProp(AnySerializer, 'Companion', Companion_getInstance, VOID, true); var Builder = {getInstance: Companion_getInstance_0}; var ReferenceExt = {getInstance: ReferenceExt_getInstance}; defineProp(UniqueIdentityGenerator, 'Companion', Companion_getInstance_1, VOID, true); var ValueExt = {getInstance: ValueExt_getInstance}; export { AnySerializer as AnySerializer, Builder as Builder, Indent as Indent, ReferenceImmutable as ReferenceImmutable, ReferenceExt as ReferenceExt, MutableReferenceDefault as MutableReferenceDefault, ReferenceStoreByHashMap as ReferenceStoreByHashMap, HierarchicalReferenceStoreByHashMap as HierarchicalReferenceStoreByHashMap, toRegexFromGlob as toRegexFromGlob, UniqueIdentityGenerator as UniqueIdentityGenerator, ValueImmutable as ValueImmutable, ValueExt as ValueExt, MutableValueAbstract as MutableValueAbstract, MutableValueDefault as MutableValueDefault, asyncLazy as asyncLazy, AsyncLazy as AsyncLazy, setJsAny as setJsAny, getJsAny as getJsAny, adoptCss as adoptCss, }; export { Indent as Indent1we5iwsnkfv74, Reference as Referencesgt76xd6nukg, }; //endregion //# sourceMappingURL=net.akehurst.kotlinx-kotlinx-utils.mjs.map