@kform/core
Version:
JavaScript bindings for KForm.
1,619 lines (1,609 loc) • 916 kB
JavaScript
import {
getOrNull1go7ef9ldk0df as getOrNull,
equals2au1ep9vhcato as equals,
VOID3gxj6tk5isa35 as VOID,
listOfvhqybd2zx248 as listOf,
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
ArrayList3it5z8td81qkl as ArrayList,
Unit_instance1fbcbse1fwigr as Unit_instance,
until1jbpn0z3f8lbg as until,
slice2g43wio9c6zdv as slice,
addAll1k27qatfgp3k5 as addAll,
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
drop3na99dw9feawf as drop,
THROW_CCE2g6jy02ryeudk as THROW_CCE,
KtList3hktaavzmj137 as KtList,
isInterface3d6p8outrmvmk as isInterface,
last1vo29oleiqj36 as last,
emptyList1g2z5xcrvp2zy as emptyList,
checkIndexOverflow3frtmheghr0th as checkIndexOverflow,
plus310ted5e4i90h as plus,
Collection1k04j3hzsbod0 as Collection,
last3cd86tb14cwl6 as last_0,
copyToArray2j022khrow2yi as copyToArray,
arrayConcat3qsij7vh68m69 as arrayConcat,
hashCodeq5arwsb9dgti as hashCode,
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
toString1pkumu07cwy4m as toString,
KtMap140uvy3s5zad8 as KtMap,
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
anyToString3ho3k49fc56mj as anyToString,
toString30pk9tzaqopn as toString_0,
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
captureStack1fzi4aczwc4hg as captureStack,
RuntimeException1r3t0zl97011n as RuntimeException,
throwUninitializedPropertyAccessExceptionyynx7gkm73wd as throwUninitializedPropertyAccessException,
anytbxcu4fk10en as any,
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
CancellationException3b36o9qz53rgr as CancellationException,
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
ensureNotNull1e947j3ixpazm as ensureNotNull,
createThis2j2avj17cvnv2 as createThis,
HashMap1a0ld5kgwhmhv as HashMap,
single21bmnx951bnsa as single,
Enum3alwj03lh1n41 as Enum,
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
LinkedHashMap1zhqxkxv3xnkl as LinkedHashMap,
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
mapCapacity1h45rc3eh9p2l as mapCapacity,
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
charCodeAt1yspne1d8erbm as charCodeAt,
getOrNull1cdnsfrisdp41 as getOrNull_0,
toString3o7ifthqydp6e as toString_1,
Char19o2r8palgjof as Char,
_Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx,
listOf1jh22dvmctj1r as listOf_0,
substringiqarkczpya5m as substring,
Regexxgw0gjiagf4z as Regex,
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
dropLast1vpiyky649o34 as dropLast,
plus20p0vtfmu0596 as plus_0,
get_lastIndex1yw0x4k50k51w as get_lastIndex,
plus1di085adi7f7m as plus_1,
StringBuildermazzzhj6kkai as StringBuilder,
getStringHashCode26igk1bx568vk as getStringHashCode,
emptyMapr06gerzljqtm as emptyMap,
joinToString1cxrrlmo0chqs as joinToString,
getKClass1s3j9wy1cofik as getKClass,
LazyThreadSafetyMode_PUBLICATION_getInstance3hlj875zwihx0 as LazyThreadSafetyMode_PUBLICATION_getInstance,
lazy1261dae0bgscp as lazy,
LinkedHashSet2tkztfx86kyx2 as LinkedHashSet,
emptySetcxexqki71qfa as emptySet,
none369ray3udrc57 as none,
protoOf180f3jzyo7rfj as protoOf,
to2cs3ny02qtbcb as to,
listOfNotNull2woi2boe01ub4 as listOfNotNull,
charSequenceLength3278n89t01tmv as charSequenceLength,
stackTraceToString2670q6lbhdojj as stackTraceToString,
mapOf1xd03cq9cnmy8 as mapOf,
toSet2orjxp16sotqu as toSet,
HashSet2dzve9y63nf0v as HashSet,
sequence2vgswtrxvqoa7 as sequence,
SequenceScope1coiso86pqzq2 as SequenceScope,
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
mapsbvh18eqox7a as map,
contentEquals1cdp6c846cfdi as contentEquals,
contentHashCode25jw6rgkgywwr as contentHashCode,
NoSuchElementException679xzhnp5bpj as NoSuchElementException,
AbstractSet2mw1ev10zm1bz as AbstractSet,
AbstractCollection1g9uvtcheckwb as AbstractCollection,
ValueTimeMark3e7hmed1q029a as ValueTimeMark,
toSet2morh2kqexfa2 as toSet_0,
ArrayDeque2dzc9uld4xi7n as ArrayDeque,
_Duration___get_inWholeMilliseconds__impl__msfiry1byvgyrhm5g4a as _Duration___get_inWholeMilliseconds__impl__msfiry,
Duration5ynfiptaqcrg as Duration,
Monotonic_instance6v32gqtywf7e as Monotonic_instance,
singleOrNull2y8ki7u63vli1 as singleOrNull,
toMutableSetjdpdbr9jsqq8 as toMutableSet,
filter184huxd00uyfg as filter,
toListx6x8nvfmvvht as toList,
KClass1cc9rfeybg8hs as KClass,
arrayIterator3lgwvgteckzhv as arrayIterator,
fill3hcjvebk42tyx as fill,
distinct10qe1scfdvu5k as distinct,
toMutableSetr5xcjjw5nxgp as toMutableSet_0,
toList383f556t1dixk as toList_0,
Paire9pteg33gng7 as Pair,
firstqtqxwgtggxw8 as first,
count1ygc0p0bu4uw8 as count,
toList3jhuyej2anx2q as toList_1,
mutableListOf6oorvk2mtdmp as mutableListOf,
toHashSet1qrcsl3g8ugc8 as toHashSet,
withIndex37cl61h9v5txo as withIndex,
checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow,
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
first28gmhyvs4kf06 as first_0,
plus2m1vv33moko5t as plus_2,
Long2qws0ah9gnpki as Long,
numberToLong1a4cndvg6c52s as numberToLong,
PrimitiveClasses_getInstance2v63zn04dtq03 as PrimitiveClasses_getInstance,
toBoolean2azvnq2ukl7b3 as toBoolean,
toDouble1kn912gjoizjp as toDouble,
numberToDouble210hrknaofnhf as numberToDouble,
isNumberiramasdbon0i as isNumber,
toInt2q8uldh7sc951 as toInt,
Sequence1quqbxersk0bb as Sequence,
plus39kp8wyage607 as plus_3,
isArray1hxjqtqy632bc as isArray,
downTo39qhfeycepm1j as downTo,
setOf1u3mizs95ngxo as setOf,
UnsupportedOperationException2tkumpmhredt3 as UnsupportedOperationException,
intersect7qttw6wlmz1n as intersect,
plus1ogy4liedzq5j as plus_4,
compareTo3ankvs086tmwq as compareTo,
maxOfnpw4mt1rg0hl as maxOf,
minOf33o15vox9quzb as minOf,
first58ocm7j58k3q as first_1,
toIntOrNull3w2d066r9pvwm as toIntOrNull,
startsWith26w8qjqapeeq6 as startsWith,
take3onnpy6q7ctcz as take,
indexOf1xbs558u7wr52 as indexOf,
drop336950s126lmj as drop_0,
take9j4462mea726 as take_0,
endsWith3cq61xxngobwh as endsWith,
any2h2vr68v3604v as any_0,
startsWith1bgirhbedtv2y as startsWith_0,
isShortArraywz30zxwtqi8h as isShortArray,
isLongArray2fdt3z7yu3ef as isLongArray,
isIntArrayeijsubfngq38 as isIntArray,
isFloatArrayjjscnqphw92j as isFloatArray,
isDoubleArray1wyh4nyf7pjxn as isDoubleArray,
isCharArray21auq5hbrg68m as isCharArray,
isByteArray4nnzfn1x4o3w as isByteArray,
isBooleanArray35llghle4c6w1 as isBooleanArray,
isCharSequence1ju9jr1w86plq as isCharSequence,
isBlank1dvkhjjvox3p0 as isBlank,
println2shhhgwwt4c61 as println,
withIndex114bv3ied1pqb as withIndex_0,
withIndex1cnk1g6mmllem as withIndex_1,
withIndexoqm9veqy69bw as withIndex_2,
withIndex3cxpvalh3qkff as withIndex_3,
withIndex1inhdgibjvvfx as withIndex_4,
withIndex12z8nzt9y4gx9 as withIndex_5,
withIndex3n8jc3y7i2ijo as withIndex_6,
withIndexys6958xblrbk as withIndex_7,
withIndex3s8q7w1g0hyfn as withIndex_8,
} from './kotlin-kotlin-stdlib.mjs';
import {
STRING_getInstance2ou4lro9xn2qn as STRING_getInstance,
PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
KSerializerzf77vz1967fq as KSerializer,
SealedClassSerializeriwipiibk55zc as SealedClassSerializer,
StringSerializer_getInstance2wffkbpdux3h9 as StringSerializer_getInstance,
get_nullable197rfua9r7fsz as get_nullable,
LinkedHashMapSerializermaoj2nyji7op as LinkedHashMapSerializer,
PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
LinkedHashSetSerializer3ncla559t2lx7 as LinkedHashSetSerializer,
BooleanSerializer_getInstance1t8habeqgiyq1 as BooleanSerializer_getInstance,
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
import {
SupervisorJobythnfxkr3jxc as SupervisorJob,
CoroutineName2g5zosw74tf0f as CoroutineName,
CoroutineScopelux7s7zphw7e as CoroutineScope,
launch1c91vkjzdi9sd as launch,
CoroutineScopefcb5f5dwqcas as CoroutineScope_0,
CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred,
cancel36mj9lv3a0whl as cancel,
Flow3375h4584bu3w as Flow,
toListdhbspd5dylui as toList_2,
NonCancellable_getInstance2i4wno2druni8 as NonCancellable_getInstance,
withContexte657h72vdbqn as withContext,
Dispatchers_getInstanceitgtkvqfcnx3 as Dispatchers_getInstance,
Mutex16li1l0asjv17 as Mutex,
flow3tazazxj2t7g4 as flow,
FlowCollector26clgpmzihvke as FlowCollector,
emitAll36fmo1xi48d43 as emitAll,
catchrcnx5mlu3pkp as catch_0,
firstOrNull1hggf11dwl6h6 as firstOrNull,
single26kpbk2m4cfy5 as single_0,
firstOrNull3jjcu7fygcopr as firstOrNull_0,
singleOrNull22bka7h96fwu5 as singleOrNull_0,
await20nhgj9iqzkt as await_0,
collect1bqpff68uipyg as collect,
Channel3r72atmcithql as Channel,
cancelAndJoinohagsjjkatom as cancelAndJoin,
MutableStateFlow34bfoyvwu8czu as MutableStateFlow,
CompletableDeferred10t3vc1asgghx as CompletableDeferred_0,
onCompletion2zzj1m13j2omp as onCompletion,
emptyFlow35paiql7g3tok as emptyFlow,
get_isActive3hyjjajobpa4m as get_isActive,
} from './kotlinx-coroutines-core.mjs';
import { KotlinLogging_instance177vcamif7bv as KotlinLogging_instance } from './kotlin-logging.mjs';
import {
Companion_getInstance12xqg7tajamp0 as Companion_getInstance,
BigDecimal48yf13swr2y6 as BigDecimal,
BigInteger2os7lovh3vsct as BigInteger,
RoundingMode_UNNECESSARY_getInstance1k0p42pa6uqq2 as RoundingMode_UNNECESSARY_getInstance,
Companion_getInstance1sxhbhdtzlmj5 as Companion_getInstance_0,
} from './kt-math.mjs';
//region block: imports
var imul = Math.imul;
//endregion
//region block: pre-declaration
class Companion {
constructor() {
Companion_instance = this;
this.m2i_1 = AbsolutePathKt.p2i();
this.n2i_1 = AbsolutePathKt.p2i(listOf(RecursiveWildcard_getInstance()));
}
}
class Serializer {
constructor() {
Serializer_instance = this;
this.q2i_1 = PrimitiveSerialDescriptor('io.kform.AbsolutePath', STRING_getInstance());
}
s20() {
return this.q2i_1;
}
}
class PathKt {
static h2j(fragments) {
Companion_getInstance_3();
fragments = fragments === VOID ? emptyList() : fragments;
var $this = createThis(this);
$this.g2j_1 = ArrayList.r(fragments);
return $this;
}
i2j() {
return this.g2j_1;
}
static n2j(stringPath) {
Companion_getInstance_3();
return this.h2j(parse(Companion_getInstance_3(), stringPath));
}
o2j(index) {
return this.g2j_1.h1(index);
}
h1(index) {
return this.o2j(index);
}
s2j() {
return PathKt.h2j(Companion_getInstance_3().t2j(this.g2j_1));
}
c2k(fragments) {
return PathKt.h2j(plus_1(this.g2j_1, fragments));
}
d2k(paths) {
var tmp = Companion_getInstance_3();
// Inline function 'kotlin.collections.map' call
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList.w(paths.length);
var inductionVariable = 0;
var last = paths.length;
while (inductionVariable < last) {
var item = paths[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
var tmp$ret$0 = item.g2j_1;
destination.s(tmp$ret$0);
}
// Inline function 'kotlin.collections.toTypedArray' call
var tmp$ret$3 = copyToArray(destination);
return PathKt.h2j(tmp.t3i(arrayConcat([[this.g2j_1], tmp$ret$3])));
}
b2k() {
return PathKt.h2j(Companion_getInstance_3().f2j([this.g2j_1]));
}
w2j(paths) {
var tmp = Companion_getInstance_3();
// Inline function 'kotlin.collections.map' call
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList.w(paths.length);
var inductionVariable = 0;
var last = paths.length;
while (inductionVariable < last) {
var item = paths[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
var tmp$ret$0 = item.g2j_1;
destination.s(tmp$ret$0);
}
// Inline function 'kotlin.collections.toTypedArray' call
var tmp$ret$3 = copyToArray(destination);
return PathKt.h2j(tmp.f2j(arrayConcat([[this.g2j_1], tmp$ret$3])));
}
equals(other) {
var tmp;
if (this === other) {
tmp = true;
} else {
if (!(other instanceof PathKt)) {
tmp = false;
} else {
tmp = equals(this.b2k().g2j_1, other.b2k().g2j_1);
}
}
return tmp;
}
hashCode() {
return hashCode(this.b2k().g2j_1);
}
toString() {
// Inline function 'kotlin.text.buildString' call
// Inline function 'kotlin.apply' call
var this_0 = StringBuilder.u();
var iterator = this.g2j_1.z();
var index = 0;
while (iterator.a1()) {
var i = index;
index = index + 1 | 0;
var fragment = iterator.b1();
if (fragment instanceof Root) {
this_0.qi();
this_0.yc(_Char___init__impl__6a9atx(47));
} else {
this_0.xc(Companion_getInstance_3().s3i(fragment));
var tmp;
if (i < (this.g2j_1.c1() - 1 | 0)) {
tmp = true;
} else {
var tmp_0;
if (fragment instanceof Id) {
tmp_0 = fragment.q3i_1 === '';
} else {
tmp_0 = false;
}
tmp = tmp_0;
}
if (tmp) {
this_0.yc(_Char___init__impl__6a9atx(47));
}
}
}
return this_0.toString();
}
}
class AbsolutePathKt extends PathKt {
static r2i(fragments, needsResolving) {
Companion_getInstance_1();
return this.h2j(needsResolving ? Companion_getInstance_3().f2j([listOf(Root_getInstance()), fragments]) : fragments);
}
i2j() {
var tmp = drop(this.g2j_1, 1);
return isInterface(tmp, KtList) ? tmp : THROW_CCE();
}
c1() {
return this.g2j_1.c1() - 1 | 0;
}
j2j() {
return this.g2j_1.c1() === 1;
}
k2j() {
var tmp;
if (this.j2j()) {
tmp = null;
} else {
var tmp_0 = last(this.g2j_1);
tmp = tmp_0 instanceof AbsolutePathFragmentKt ? tmp_0 : THROW_CCE();
}
return tmp;
}
static p2i(fragments) {
Companion_getInstance_1();
fragments = fragments === VOID ? emptyList() : fragments;
var tmp = listOf(Root_getInstance());
// Inline function 'kotlin.collections.filterIndexed' call
// Inline function 'kotlin.collections.filterIndexedTo' call
var destination = ArrayList.x();
// Inline function 'kotlin.collections.forEachIndexed' call
var index = 0;
var _iterator__ex2g4s = fragments.z();
while (_iterator__ex2g4s.a1()) {
var item = _iterator__ex2g4s.b1();
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
var i = checkIndexOverflow(_unary__edvuaz);
if (!equals(item, RecursiveWildcard_getInstance()) || !equals(getOrNull(fragments, i + 1 | 0), RecursiveWildcard_getInstance())) {
destination.s(item);
}
}
return this.r2i(plus(tmp, destination), false);
}
static l2j(path) {
Companion_getInstance_1();
return this.r2i(path.g2j_1, !(path instanceof AbsolutePathKt));
}
static m2j(stringPath) {
Companion_getInstance_1();
return this.l2j(PathKt.n2j(stringPath));
}
o2j(index) {
var tmp = this.g2j_1.h1(index + 1 | 0);
return tmp instanceof AbsolutePathFragmentKt ? tmp : THROW_CCE();
}
h1(index) {
return this.o2j(index);
}
p2j() {
var tmp0 = this.g2j_1;
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.any' call
var tmp;
if (isInterface(tmp0, Collection)) {
tmp = tmp0.g1();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = false;
break $l$block_0;
}
var _iterator__ex2g4s = tmp0.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
if (element instanceof Wildcard) {
tmp$ret$0 = true;
break $l$block_0;
}
}
tmp$ret$0 = false;
}
return tmp$ret$0;
}
q2j() {
var tmp0 = this.g2j_1;
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.any' call
var tmp;
if (isInterface(tmp0, Collection)) {
tmp = tmp0.g1();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = false;
break $l$block_0;
}
var _iterator__ex2g4s = tmp0.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
if (element instanceof RecursiveWildcard) {
tmp$ret$0 = true;
break $l$block_0;
}
}
tmp$ret$0 = false;
}
return tmp$ret$0;
}
r2j() {
var tmp0 = this.g2j_1;
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.any' call
var tmp;
if (isInterface(tmp0, Collection)) {
tmp = tmp0.g1();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = false;
break $l$block_0;
}
var _iterator__ex2g4s = tmp0.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
var tmp_0;
if (element instanceof Wildcard) {
tmp_0 = true;
} else {
tmp_0 = element instanceof RecursiveWildcard;
}
if (tmp_0) {
tmp$ret$0 = true;
break $l$block_0;
}
}
tmp$ret$0 = false;
}
return tmp$ret$0;
}
s2j() {
return AbsolutePathKt.r2i(Companion_getInstance_3().t2j(this.g2j_1), false);
}
u2j(fragments) {
// Inline function 'kotlin.collections.filterIndexed' call
// Inline function 'kotlin.collections.filterIndexedTo' call
var destination = ArrayList.x();
// Inline function 'kotlin.collections.forEachIndexed' call
var index = 0;
var inductionVariable = 0;
var last_0 = fragments.length;
while (inductionVariable < last_0) {
var item = fragments[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
if (!equals(item, RecursiveWildcard_getInstance()) || !equals(_unary__edvuaz === 0 ? last(this.g2j_1) : fragments[_unary__edvuaz - 1 | 0], RecursiveWildcard_getInstance())) {
destination.s(item);
}
}
return AbsolutePathKt.r2i(plus(this.g2j_1, destination), false);
}
v2j(fragment) {
return this.u2j([fragment]);
}
w2j(paths) {
var tmp;
// Inline function 'kotlin.collections.isEmpty' call
if (paths.length === 0) {
tmp = this;
} else {
var tmp_0 = last_0(paths);
if (tmp_0 instanceof AbsolutePathKt) {
var tmp_1 = last_0(paths);
tmp = tmp_1 instanceof AbsolutePathKt ? tmp_1 : THROW_CCE();
} else {
var tmp_2 = Companion_getInstance_3();
// Inline function 'kotlin.collections.map' call
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList.w(paths.length);
var inductionVariable = 0;
var last = paths.length;
while (inductionVariable < last) {
var item = paths[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
var tmp$ret$1 = item.g2j_1;
destination.s(tmp$ret$1);
}
// Inline function 'kotlin.collections.toTypedArray' call
var tmp$ret$4 = copyToArray(destination);
tmp = AbsolutePathKt.r2i(tmp_2.f2j(arrayConcat([[this.g2j_1], tmp$ret$4])), false);
}
}
return tmp;
}
x2j(path) {
return this.w2j([path]);
}
y2j(path) {
return matchesImpl$default(Companion_getInstance_1(), this.i2j(), toAbsolutePath(path).i2j());
}
z2j(path) {
return containsImpl$default(Companion_getInstance_1(), this.i2j(), toAbsolutePath(path).i2j());
}
a2k(path) {
return PathKt.h2j(relativeImpl(this, toAbsolutePath(path).i2j(), this.i2j()));
}
equals(other) {
var tmp;
if (this === other) {
tmp = true;
} else {
if (!(other instanceof PathKt)) {
tmp = false;
} else {
if (other instanceof AbsolutePathKt) {
tmp = equals(this.g2j_1, other.g2j_1);
} else {
tmp = equals(this.g2j_1, other.b2k().g2j_1);
}
}
}
return tmp;
}
hashCode() {
return hashCode(this.g2j_1);
}
z() {
return this.i2j().z();
}
}
class DependencyInfo {
constructor(path, type) {
this.e2k_1 = path;
this.f2k_1 = type;
}
jm() {
return this.e2k_1;
}
km() {
return this.f2k_1;
}
toString() {
return 'DependencyInfo(path=' + this.e2k_1.toString() + ', type=' + toString(this.f2k_1) + ')';
}
hashCode() {
var result = this.e2k_1.hashCode();
result = imul(result, 31) + hashCode(this.f2k_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof DependencyInfo))
return false;
var tmp0_other_with_cast = other instanceof DependencyInfo ? other : THROW_CCE();
if (!this.e2k_1.equals(tmp0_other_with_cast.e2k_1))
return false;
if (!equals(this.f2k_1, tmp0_other_with_cast.f2k_1))
return false;
return true;
}
}
class ComputationContext {
constructor(schema, path, schemaPath, dependenciesInfo, externalContexts) {
this.g2k_1 = schema;
this.h2k_1 = path;
this.i2k_1 = schemaPath;
this.j2k_1 = dependenciesInfo;
this.k2k_1 = externalContexts;
}
l2k() {
var tmp = this.g2k_1;
return isInterface(tmp, SchemaKt) ? tmp : THROW_CCE();
}
m2k(dependencyKey) {
// Inline function 'kotlin.collections.contains' call
// Inline function 'kotlin.collections.containsKey' call
var this_0 = this.j2k_1;
// Inline function 'kotlin.require' call
if (!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).z2(dependencyKey)) {
var message = "No dependency found with key '" + dependencyKey + "'.";
throw IllegalArgumentException.h(toString(message));
}
var tmp = this.j2k_1.b3(dependencyKey);
return (tmp == null ? true : tmp instanceof ValueInfoKt) ? tmp : THROW_CCE();
}
n2k(dependencyKey) {
var tmp0_elvis_lhs = this.m2k(dependencyKey);
var tmp;
if (tmp0_elvis_lhs == null) {
throw DependencyNotFoundException.s2k(dependencyKey);
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
t2k(dependencyKey) {
var tmp0_safe_receiver = this.m2k(dependencyKey);
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w2k_1;
}
y2k(dependencyKey) {
return this.n2k(dependencyKey).w2k_1;
}
z2k(dependencyKey) {
var tmp0_safe_receiver = this.m2k(dependencyKey);
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v2k_1;
}
a2l(dependencyKey) {
return this.n2k(dependencyKey).v2k_1;
}
b2l(dependencyKey) {
var tmp0_safe_receiver = this.m2k(dependencyKey);
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2k_1;
}
c2l(dependencyKey) {
return this.n2k(dependencyKey).u2k_1;
}
d2l(externalContextName) {
// Inline function 'kotlin.collections.contains' call
// Inline function 'kotlin.collections.containsKey' call
var this_0 = this.k2k_1;
// Inline function 'kotlin.require' call
if (!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).z2(externalContextName)) {
var message = "No external context found with name '" + externalContextName + "'.";
throw IllegalArgumentException.h(toString(message));
}
var tmp = this.k2k_1.b3(externalContextName);
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
}
e2l(externalContextName) {
var tmp0_elvis_lhs = this.d2l(externalContextName);
var tmp;
if (tmp0_elvis_lhs == null) {
throw ExternalContextNotFoundException.j2l(externalContextName);
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
}
class Observer {
constructor(toObserve, updateState) {
this.k2l_1 = toObserve;
this.l2l_1 = updateState;
}
}
class ComputedValueKt {
o2l() {
return this.m2l_1;
}
p2l() {
return this.n2l_1;
}
toString() {
var tmp0_elvis_lhs = getKClassFromExpression(this).ug();
return tmp0_elvis_lhs == null ? anyToString(this) : tmp0_elvis_lhs;
}
}
class StatefulComputedValueKt extends ComputedValueKt {
u2l() {
return this.t2l_1;
}
w2l(state, $completion) {
return Unit_instance;
}
}
class ComputedValueContext extends ComputationContext {}
class FormManagerEvent {}
class ValueEvent {
constructor(path, schema) {
this.j2n_1 = path;
this.k2n_1 = schema;
}
e2m() {
return this.j2n_1;
}
f2m() {
return this.k2n_1;
}
}
class Init extends ValueEvent {
constructor(value, path, schema) {
super(path, schema);
this.a2m_1 = value;
this.b2m_1 = path;
this.c2m_1 = schema;
this.d2m_1 = null;
}
y2() {
return this.a2m_1;
}
e2m() {
return this.b2m_1;
}
f2m() {
return this.c2m_1;
}
g2m() {
return this.d2m_1;
}
toString() {
return 'Init(path=' + this.b2m_1.toString() + ', value=' + toString_0(this.a2m_1) + ')';
}
hashCode() {
var result = this.a2m_1 == null ? 0 : hashCode(this.a2m_1);
result = imul(result, 31) + this.b2m_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.c2m_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof Init))
return false;
var tmp0_other_with_cast = other instanceof Init ? other : THROW_CCE();
if (!equals(this.a2m_1, tmp0_other_with_cast.a2m_1))
return false;
if (!this.b2m_1.equals(tmp0_other_with_cast.b2m_1))
return false;
if (!equals(this.c2m_1, tmp0_other_with_cast.c2m_1))
return false;
return true;
}
}
class Change extends ValueEvent {
constructor(oldValue, value, path, schema) {
super(path, schema);
this.j2m_1 = oldValue;
this.k2m_1 = value;
this.l2m_1 = path;
this.m2m_1 = schema;
}
g2m() {
return this.j2m_1;
}
y2() {
return this.k2m_1;
}
e2m() {
return this.l2m_1;
}
f2m() {
return this.m2m_1;
}
toString() {
return 'Change(path=' + this.l2m_1.toString() + ', oldValue=' + toString_0(this.j2m_1) + ', value=' + toString_0(this.k2m_1) + ')';
}
hashCode() {
var result = this.j2m_1 == null ? 0 : hashCode(this.j2m_1);
result = imul(result, 31) + (this.k2m_1 == null ? 0 : hashCode(this.k2m_1)) | 0;
result = imul(result, 31) + this.l2m_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.m2m_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof Change))
return false;
var tmp0_other_with_cast = other instanceof Change ? other : THROW_CCE();
if (!equals(this.j2m_1, tmp0_other_with_cast.j2m_1))
return false;
if (!equals(this.k2m_1, tmp0_other_with_cast.k2m_1))
return false;
if (!this.l2m_1.equals(tmp0_other_with_cast.l2m_1))
return false;
if (!equals(this.m2m_1, tmp0_other_with_cast.m2m_1))
return false;
return true;
}
}
class Destroy extends ValueEvent {
constructor(oldValue, path, schema) {
super(path, schema);
this.p2m_1 = oldValue;
this.q2m_1 = path;
this.r2m_1 = schema;
this.s2m_1 = null;
}
g2m() {
return this.p2m_1;
}
e2m() {
return this.q2m_1;
}
f2m() {
return this.r2m_1;
}
y2() {
return this.s2m_1;
}
toString() {
return 'Destroy(path=' + this.q2m_1.toString() + ', oldValue=' + toString_0(this.p2m_1) + ')';
}
hashCode() {
var result = this.p2m_1 == null ? 0 : hashCode(this.p2m_1);
result = imul(result, 31) + this.q2m_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.r2m_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof Destroy))
return false;
var tmp0_other_with_cast = other instanceof Destroy ? other : THROW_CCE();
if (!equals(this.p2m_1, tmp0_other_with_cast.p2m_1))
return false;
if (!this.q2m_1.equals(tmp0_other_with_cast.q2m_1))
return false;
if (!equals(this.r2m_1, tmp0_other_with_cast.r2m_1))
return false;
return true;
}
}
class Add extends ValueEvent {
constructor(value, addedValue, id, path, schema) {
super(path, schema);
this.v2m_1 = value;
this.w2m_1 = addedValue;
this.x2m_1 = id;
this.y2m_1 = path;
this.z2m_1 = schema;
this.a2n_1 = null;
}
y2() {
return this.v2m_1;
}
e2m() {
return this.y2m_1;
}
f2m() {
return this.z2m_1;
}
g2m() {
return this.a2n_1;
}
toString() {
return 'Add(path=' + this.y2m_1.toString() + ', addedValue=' + toString_0(this.w2m_1) + ', id=' + this.x2m_1.toString() + ')';
}
hashCode() {
var result = this.v2m_1 == null ? 0 : hashCode(this.v2m_1);
result = imul(result, 31) + (this.w2m_1 == null ? 0 : hashCode(this.w2m_1)) | 0;
result = imul(result, 31) + this.x2m_1.hashCode() | 0;
result = imul(result, 31) + this.y2m_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.z2m_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof Add))
return false;
var tmp0_other_with_cast = other instanceof Add ? other : THROW_CCE();
if (!equals(this.v2m_1, tmp0_other_with_cast.v2m_1))
return false;
if (!equals(this.w2m_1, tmp0_other_with_cast.w2m_1))
return false;
if (!this.x2m_1.equals(tmp0_other_with_cast.x2m_1))
return false;
if (!this.y2m_1.equals(tmp0_other_with_cast.y2m_1))
return false;
if (!equals(this.z2m_1, tmp0_other_with_cast.z2m_1))
return false;
return true;
}
}
class Remove extends ValueEvent {
constructor(value, removedValue, id, path, schema) {
super(path, schema);
this.d2n_1 = value;
this.e2n_1 = removedValue;
this.f2n_1 = id;
this.g2n_1 = path;
this.h2n_1 = schema;
this.i2n_1 = null;
}
y2() {
return this.d2n_1;
}
e2m() {
return this.g2n_1;
}
f2m() {
return this.h2n_1;
}
g2m() {
return this.i2n_1;
}
toString() {
return 'Remove(path=' + this.g2n_1.toString() + ', removedValue=' + toString_0(this.e2n_1) + ', id=' + this.f2n_1.toString() + ')';
}
hashCode() {
var result = this.d2n_1 == null ? 0 : hashCode(this.d2n_1);
result = imul(result, 31) + (this.e2n_1 == null ? 0 : hashCode(this.e2n_1)) | 0;
result = imul(result, 31) + this.f2n_1.hashCode() | 0;
result = imul(result, 31) + this.g2n_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.h2n_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof Remove))
return false;
var tmp0_other_with_cast = other instanceof Remove ? other : THROW_CCE();
if (!equals(this.d2n_1, tmp0_other_with_cast.d2n_1))
return false;
if (!equals(this.e2n_1, tmp0_other_with_cast.e2n_1))
return false;
if (!this.f2n_1.equals(tmp0_other_with_cast.f2n_1))
return false;
if (!this.g2n_1.equals(tmp0_other_with_cast.g2n_1))
return false;
if (!equals(this.h2n_1, tmp0_other_with_cast.h2n_1))
return false;
return true;
}
}
class StateEvent {
constructor(path, schema) {
this.g2o_1 = path;
this.h2o_1 = schema;
}
e2m() {
return this.g2o_1;
}
f2m() {
return this.h2o_1;
}
}
class ValidationChange extends StateEvent {
constructor(status, issues, path, schema) {
super(path, schema);
this.n2n_1 = status;
this.o2n_1 = issues;
this.p2n_1 = path;
this.q2n_1 = schema;
}
e2m() {
return this.p2n_1;
}
f2m() {
return this.q2n_1;
}
toString() {
return 'ValidationChange(path=' + this.p2n_1.toString() + ', status=' + this.n2n_1.toString() + ', issues=' + toString(this.o2n_1) + ')';
}
hashCode() {
var result = this.n2n_1.hashCode();
result = imul(result, 31) + hashCode(this.o2n_1) | 0;
result = imul(result, 31) + this.p2n_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.q2n_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof ValidationChange))
return false;
var tmp0_other_with_cast = other instanceof ValidationChange ? other : THROW_CCE();
if (!this.n2n_1.equals(tmp0_other_with_cast.n2n_1))
return false;
if (!equals(this.o2n_1, tmp0_other_with_cast.o2n_1))
return false;
if (!this.p2n_1.equals(tmp0_other_with_cast.p2n_1))
return false;
if (!equals(this.q2n_1, tmp0_other_with_cast.q2n_1))
return false;
return true;
}
}
class DisplayChange extends StateEvent {
constructor(status, path, schema) {
super(path, schema);
this.t2n_1 = status;
this.u2n_1 = path;
this.v2n_1 = schema;
}
e2m() {
return this.u2n_1;
}
f2m() {
return this.v2n_1;
}
toString() {
return 'DisplayChange(path=' + this.u2n_1.toString() + ', status=' + this.t2n_1.toString() + ')';
}
hashCode() {
var result = this.t2n_1.hashCode();
result = imul(result, 31) + this.u2n_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.v2n_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof DisplayChange))
return false;
var tmp0_other_with_cast = other instanceof DisplayChange ? other : THROW_CCE();
if (!this.t2n_1.equals(tmp0_other_with_cast.t2n_1))
return false;
if (!this.u2n_1.equals(tmp0_other_with_cast.u2n_1))
return false;
if (!equals(this.v2n_1, tmp0_other_with_cast.v2n_1))
return false;
return true;
}
}
class DirtyChange extends StateEvent {
constructor(status, path, schema) {
super(path, schema);
this.y2n_1 = status;
this.z2n_1 = path;
this.a2o_1 = schema;
}
e2m() {
return this.z2n_1;
}
f2m() {
return this.a2o_1;
}
toString() {
return 'DirtyChange(path=' + this.z2n_1.toString() + ', status=' + this.y2n_1 + ')';
}
hashCode() {
var result = getBooleanHashCode(this.y2n_1);
result = imul(result, 31) + this.z2n_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.a2o_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof DirtyChange))
return false;
var tmp0_other_with_cast = other instanceof DirtyChange ? other : THROW_CCE();
if (!(this.y2n_1 === tmp0_other_with_cast.y2n_1))
return false;
if (!this.z2n_1.equals(tmp0_other_with_cast.z2n_1))
return false;
if (!equals(this.a2o_1, tmp0_other_with_cast.a2o_1))
return false;
return true;
}
}
class TouchedChange extends StateEvent {
constructor(status, path, schema) {
super(path, schema);
this.d2o_1 = status;
this.e2o_1 = path;
this.f2o_1 = schema;
}
e2m() {
return this.e2o_1;
}
f2m() {
return this.f2o_1;
}
toString() {
return 'TouchedChange(path=' + this.e2o_1.toString() + ', status=' + this.d2o_1 + ')';
}
hashCode() {
var result = getBooleanHashCode(this.d2o_1);
result = imul(result, 31) + this.e2o_1.hashCode() | 0;
result = imul(result, 31) + hashCode(this.f2o_1) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof TouchedChange))
return false;
var tmp0_other_with_cast = other instanceof TouchedChange ? other : THROW_CCE();
if (!(this.d2o_1 === tmp0_other_with_cast.d2o_1))
return false;
if (!this.e2o_1.equals(tmp0_other_with_cast.e2o_1))
return false;
if (!equals(this.f2o_1, tmp0_other_with_cast.f2o_1))
return false;
return true;
}
}
class AtPathException extends RuntimeException {
static s2o(path, message, cause) {
cause = cause === VOID ? null : cause;
var $this = this.tf("At '" + path.toString() + "': " + message, cause);
captureStack($this, $this.r2o_1);
$this.q2o_1 = path;
return $this;
}
}
class InvalidPathException extends AtPathException {
static n2o(path, message) {
var $this = this.s2o(path, message);
captureStack($this, $this.m2o_1);
return $this;
}
}
class ValidationFailureException extends AtPathException {
static z2o(path, validation, cause) {
var $this = this.s2o(path, "Failed to run validation '" + validation.toString() + "'", cause);
captureStack($this, $this.y2o_1);
$this.x2o_1 = validation;
return $this;
}
}
class DependencyNotFoundException extends RuntimeException {
static s2k(dependencyKey) {
var $this = this.vb("Dependency '" + dependencyKey + "' was not found.");
captureStack($this, $this.r2k_1);
$this.q2k_1 = dependencyKey;
return $this;
}
}
class ExternalContextNotFoundException extends RuntimeException {
static j2l(externalContextName) {
var $this = this.vb("External context '" + externalContextName + "' was not found.");
captureStack($this, $this.i2l_1);
$this.h2l_1 = externalContextName;
return $this;
}
}
class InvalidPathToObserveException extends InvalidPathException {
static i2p(path, computation, toObserve) {
var $this = this.n2o(path, "At '" + toString(computation) + "': Invalid path to observe '" + toObserve.toString() + "'.");
captureStack($this, $this.h2p_1);
$this.f2p_1 = computation;
$this.g2p_1 = toObserve;
return $this;
}
}
class InvalidDependencyPathException extends InvalidPathException {
static s2p(path, computation, dependencyKey, dependencyPath) {
var $this = this.n2o(path, "At '" + toString(computation) + "': At dependency '" + dependencyKey + "': Invalid path '" + dependencyPath.toString() + "'.");
captureStack($this, $this.r2p_1);
$this.o2p_1 = computation;
$this.p2p_1 = dependencyKey;
$this.q2p_1 = dependencyPath;
return $this;
}
}
class InvalidDependencyTypeException extends InvalidPathException {
static d2q(path, computation, expectedType, dependencyKey, dependencyType) {
var $this = this.n2o(path, "At '" + toString(computation) + "': At dependency '" + dependencyKey + "': " + ("Expected type: '" + expectedType + "', actual type: '" + kTypeToString(dependencyType) + "'."));
captureStack($this, $this.c2q_1);
$this.y2p_1 = computation;
$this.z2p_1 = expectedType;
$this.a2q_1 = dependencyKey;
$this.b2q_1 = dependencyType;
return $this;
}
}
class Companion_0 {
constructor() {
Companion_instance_0 = this;
var tmp = this;
var tmp_0 = KotlinLogging_instance;
tmp.b2r_1 = tmp_0.s11(FormManager$Companion$logger$lambda);
}
}
class FormManager$syncInit$slambda extends CoroutineImpl {
constructor(this$0, $validationMode, $completableInitialized, resultContinuation, $box) {
if ($box === VOID)
$box = {};
$box.k2r_1 = this$0;
$box.l2r_1 = $validationMode;
$box.m2r_1 = $completableInitialized;
super(resultContinuation, $box);
}
o2r($this$launch, $completion) {
var tmp = this.p2r($this$launch, $completion);
tmp.vd_1 = Unit_instance;
tmp.wd_1 = null;
return tmp.be();
}
ve(p1, $completion) {
return this.o2r((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
}
be() {
var suspendResult = this.vd_1;
$sm: do
try {
var tmp = this.td_1;
switch (tmp) {
case 0:
this.ud_1 = 4;
this.td_1 = 1;
suspendResult = this.k2r_1.q2r(new SetAction(this.k2r_1, null, null, null, this.k2r_1.f2q_1), this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 1:
if (this.l2r_1.equals(ValidationMode_Auto_getInstance())) {
this.td_1 = 2;
suspendResult = this.k2r_1.q2r(new StartValidationDaemonAction(this.k2r_1, this.k2r_1.r2q_1), this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
} else {
this.td_1 = 3;
continue $sm;
}
case 2:
this.td_1 = 3;
continue $sm;
case 3:
this.m2r_1.z19(Unit_instance);
var tmp_0 = Companion_getInstance_2().b2r_1;
tmp_0.m11(FormManager$syncInit$slambda$lambda);
return Unit_instance;
case 4:
throw this.wd_1;
}
} catch ($p) {
var e = $p;
if (this.ud_1 === 4) {
throw e;
} else {
this.td_1 = this.ud_1;
this.wd_1 = e;
}
}
while (true);
}
p2r($this$launch, completion) {
var i = new FormManager$syncInit$slambda(this.k2r_1, this.l2r_1, this.m2r_1, completion);
i.n2r_1 = $this$launch;
return i;
}
}
class FormManager$destroy$slambda extends CoroutineImpl {
constructor(this$0, resultContinuation, $box) {
if ($box === VOID)
$box = {};
$box.z2r_1 = this$0;
super(resultContinuation, $box);
}
o2r($this$withContext, $completion) {
var tmp = this.p2r($this$withContext, $completion);
tmp.vd_1 = Unit_instance;
tmp.wd_1 = null;
return tmp.be();
}
ve(p1, $completion) {
return this.o2r((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
}
be() {
var suspendResult = this.vd_1;
$sm: do
try {
var tmp = this.td_1;
switch (tmp) {
case 0:
this.ud_1 = 3;
this.b2s_1 = CancellationException.pe('Destroyed form manager.');
this.z2r_1.x2q_1.a1a(this.b2s_1);
this.z2r_1.x2q_1 = CompletableDeferred();
this.z2r_1.y2q_1.a1a(this.b2s_1);
this.z2r_1.y2q_1 = CompletableDeferred();
cancel(this.z2r_1.a2r(), this.b2s_1);
this.td_1 = 1;
suspendResult = this.z2r_1.z2q().k14(this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 1:
this.td_1 = 2;
suspendResult = this.z2r_1.r2q_1.m2s(this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 2:
this.z2r_1.s2q_1 = get_UNINITIALIZED();
this.z2r_1.t2q_1 = null;
this.z2r_1.u2q_1.l7();
var tmp_0 = Companion_getInstance_2().b2r_1;
tmp_0.m11(FormManager$destroy$slambda$lambda);
return Unit_instance;
case 3:
throw this.wd_1;
}
} catch ($p) {
var e = $p;
if (this.ud_1 === 3) {
throw e;
} else {
this.td_1 = this.ud_1;
this.wd_1 = e;
}
}
while (true);
}
p2r($this$withContext, completion) {
var i = new FormManager$destroy$slambda(this.z2r_1, completion);
i.a2s_1 = $this$withContext;
return i;
}
}
class FormManager$validate$slambda extends CoroutineImpl {
w2s(issues, $completion) {
var tmp = this.x2s(issues, $completion);
tmp.vd_1 = Unit_instance;
tmp.wd_1 = null;
return tmp.be();
}
ve(p1, $completion) {
return this.w2s((!(p1 == null) ? isInterface(p1, Flow) : false) ? p1 : THROW_CCE(), $completion);
}
be() {
var suspendResult = this.vd_1;
$sm: do
try {
var tmp = this.td_1;
switch (tmp) {
case 0:
this.ud_1 = 2;
this.td_1 = 1;
suspendResult = toList_2(this.v2s_1, VOID, this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 1:
return suspendResult;
case 2:
throw this.wd_1;
}
} catch ($p) {
var e = $p;
if (this.ud_1 === 2) {
throw e;
} else {
this.td_1 = this.ud_1;
this.wd_1 = e;
}
}
while (true);
}
x2s(issues, completion) {
var i = new FormManager$validate$slambda(completion);
i.v2s_1 = issues;
return i;
}
}
class FormManager$isValid$slambda extends CoroutineImpl {
h2t(issues, $completion) {
var tmp = this.x2s(issues, $completion);
tmp.vd_1 = Unit_instance;
tmp.wd_1 = null;
return tmp.be();
}
ve(p1, $completion) {
return this.h2t((!(p1 == null) ? isInterface(p1, Flow) : false) ? p1 : THROW_CCE(), $completion);
}
be() {
var suspendResult = this.vd_1;
$sm: do
try {
var tmp = this.td_1;
switch (tmp) {
case 0:
this.ud_1 = 2;
this.td_1 = 1;
suspendResult = containsNoErrors(this.g2t_1, this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 1:
return suspendResult;
case 2:
throw this.wd_1;
}
} catch ($p) {
var e = $p;
if (this.ud_1 === 2) {
throw e;
} else {
this.td_1 = this.ud_1;
this.wd_1 = e;
}
}
while (true);
}
x2s(issues, completion) {
var i = new FormManager$isValid$slambda(completion);
i.g2t_1 = issues;
return i;
}
}
class $initCOROUTINE$ extends CoroutineImpl {
constructor(_this__u8e3s4, externalContexts, validationMode, coroutineContext, resultContinuation) {
super(resultContinuation);
this.q2t_1 = _this__u8e3s4;
this.r2t_1 = externalContexts;
this.s2t_1 = validationMode;
this.t2t_1 = coroutineContext;
}
be() {
var suspendResult = this.vd_1;
$sm: do
try {
var tmp = this.td_1;
switch (tmp) {
case 0:
this.ud_1 = 2;
var tmp_0 = this;
tmp_0.u2t_1 = this.q2t_1.v2q_1;
this.v2t_1 = this.u2t_1;
var tmp_1 = this;
tmp_1.w2t_1 = null;
this.td_1 = 1;
suspendResult = this.v2t_1.n1x(this.w2t_1, this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 1:
l$ret$1: do {
var tmp_2;
try {
syncInit(this.q2t_1, this.r2t_1, this.s2t_1, this.t2t_1);
break l$ret$1;
} catch ($p) {
var tmp_3;
var t = $p;
this.v2t_1.o1x(this.w2t_1);
throw t;
}
}
while (false);
this.v2t_1.o1x(this.w2t_1);
return Unit_instance;
case 2:
throw this.wd_1;
}
} catch ($p) {
var e = $p;
if (this.ud_1 === 2) {
throw e;
} else {
this.td_1 = this.ud_1;
this.wd_1 = e;
}
}
while (true);
}
}
class $destroyCOROUTINE$ extends CoroutineImpl {
constructor(_this__u8e3s4, resultContinuation) {
super(resultContinuation);
this.f2u_1 = _this__u8e3s4;
}
be() {
var suspendResult = this.vd_1;
$sm: do
try {
var tmp = this.td_1;
switch (tmp) {
case 0:
this.ud_1 = 9;
var tmp_0 = this;
tmp_0.g2u_1 = this.f2u_1.v2q_1;
this.h2u_1 = this.g2u_1;
var tmp_1 = this;
tmp_1.i2u_1 = null;
this.td_1 = 1;
suspendResult = this.h2u_1.n1x(this.i2u_1, this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 1:
this.j2u_1 = Unit_instance;
this.td_1 = 2;
continue $sm;
case 2:
this.td_1 = 3;
continue $sm;
case 3:
this.ud_1 = 8;
if (!this.f2u_1.w2q_1) {
this.k2u_1 = Unit_instance;
this.ud_1 = 9;
this.td_1 = 6;
continue $sm;
} else {
this.td_1 = 4;
continue $sm;
}
case 4:
this.f2u_1.w2q_1 = false;
this.td_1 = 5;
var tmp_2 = NonCancellable_getInstance();
suspendResult = withContext(tmp_2, FormManager$destroy$slambda_0(this.f2u_1, null), this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 5:
this.j2u_1 = Unit_instance;
this.ud_1 = 9;
this.td_1 = 7;
continue $sm;
case 6:
this.ud_1 = 9;
var tmp_3 = this;
this.h2u_1.o1x(this.i2u_1);
return Unit_instance;
case 7:
this.j2u_1;
this.ud_1 = 9;
this.h2u_1.o1x(this.i2u_1);
return Unit_instance;
case 8:
this.ud_1 = 9;
var t = this.wd_1;
this.h2u_1.o1x(this.i2u_1);
throw t;
case 9:
throw this.wd_1;
}
} catch ($p) {
var e = $p;
if (this.ud_1 === 9) {
throw e;
} else {
this.td_1 = this.ud_1;
this.wd_1 = e;
}
}
while (true);
}
}
class $scheduleActionCOROUTINE$ extends CoroutineImpl {
constructor(_this__u8e3s4, action, resultContinuatio