(function (_, kotlin_kotlin, kotlin_io_github_pdvrieze_xmlutil_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) { 'use strict'; //region block: imports var imul = Math.imul; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m; var CompactFragment_init_$Create$ = kotlin_io_github_pdvrieze_xmlutil_core.$_$.j; var Unit_instance = kotlin_kotlin.$_$.m5; var siblingsToFragment = kotlin_io_github_pdvrieze_xmlutil_core.$_$.u1; var isInterface = kotlin_kotlin.$_$.mc; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.c5; var arrayOf = kotlin_kotlin.$_$.hj; var createKType = kotlin_kotlin.$_$.b; var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v3; var THROW_CCE = kotlin_kotlin.$_$.si; var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l3; var Companion_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.q; var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z; var buildClassSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1; var protoOf = kotlin_kotlin.$_$.ed; var ICompactFragment = kotlin_io_github_pdvrieze_xmlutil_core.$_$.c1; var CompactFragment = kotlin_io_github_pdvrieze_xmlutil_core.$_$.b1; var toList = kotlin_kotlin.$_$.y9; var objectMeta = kotlin_kotlin.$_$.dd; var setMetadataFor = kotlin_kotlin.$_$.fd; var VOID = kotlin_kotlin.$_$.f; var Companion_instance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r; var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e; var single = kotlin_kotlin.$_$.s9; var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l; var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1; var StringCompanionObject_instance = kotlin_kotlin.$_$.a5; var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1; var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1; var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i; var NodeConsts_instance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.p; var to = kotlin_kotlin.$_$.yj; var mapOf = kotlin_kotlin.$_$.r8; var iterator = kotlin_io_github_pdvrieze_xmlutil_core.$_$.z; var asSequence = kotlin_kotlin.$_$.je; var toList_0 = kotlin_kotlin.$_$.xe; var createDocument = kotlin_io_github_pdvrieze_xmlutil_core.$_$.a1; var DomWriter = kotlin_io_github_pdvrieze_xmlutil_core.$_$.d1; var writeElement = kotlin_io_github_pdvrieze_xmlutil_core.$_$.c2; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2; var charSequenceLength = kotlin_kotlin.$_$.ob; var iterator_0 = kotlin_io_github_pdvrieze_xmlutil_core.$_$.y; var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v; var QName_init_$Create$ = kotlin_io_github_pdvrieze_xmlutil_core.$_$.m; var objectCreate = kotlin_kotlin.$_$.cd; var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2; var classMeta = kotlin_kotlin.$_$.qb; var smartStartTag = kotlin_io_github_pdvrieze_xmlutil_core.$_$.w1; var decodeSerializableElement$default = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a; var CompositeDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1; var DeserializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k3; var ensureNotNull = kotlin_kotlin.$_$.kj; var Enum = kotlin_kotlin.$_$.fi; var hashCode = kotlin_kotlin.$_$.cc; var equals = kotlin_kotlin.$_$.ub; var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e3; var HashMap_init_$Create$ = kotlin_kotlin.$_$.p; var HashSet_init_$Create$ = kotlin_kotlin.$_$.s; var Map = kotlin_kotlin.$_$.z5; var asSequence_0 = kotlin_kotlin.$_$.j6; var filterNot = kotlin_kotlin.$_$.ke; var map = kotlin_kotlin.$_$.re; var sortedWith = kotlin_kotlin.$_$.we; var XMLConstants_instance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.s; var NamespaceImpl = kotlin_io_github_pdvrieze_xmlutil_core.$_$.j1; var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q3; var interfaceMeta = kotlin_kotlin.$_$.dc; var Comparator = kotlin_kotlin.$_$.ci; var contains = kotlin_kotlin.$_$.r6; var compareValues = kotlin_kotlin.$_$.ka; var plus = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i3; var StringWriter = kotlin_io_github_pdvrieze_xmlutil_core.$_$.u; var XmlStreaming_instance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.t; var collectionSizeOrDefault = kotlin_kotlin.$_$.p6; var mapCapacity = kotlin_kotlin.$_$.q8; var coerceAtLeast = kotlin_kotlin.$_$.rd; var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u; var skipPreamble = kotlin_io_github_pdvrieze_xmlutil_core.$_$.v1; var isEquivalent = kotlin_io_github_pdvrieze_xmlutil_core.$_$.s1; var QName = kotlin_io_github_pdvrieze_xmlutil_core.$_$.g1; var QName_init_$Create$_0 = kotlin_io_github_pdvrieze_xmlutil_core.$_$.n; var Collection = kotlin_kotlin.$_$.p5; var SerializersModuleBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f3; var getKClass = kotlin_kotlin.$_$.e; var QNameSerializer_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.r; var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p; var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o; var toBoolean = kotlin_kotlin.$_$.yg; var toByte = kotlin_kotlin.$_$.zg; var toUByte = kotlin_kotlin.$_$.mh; var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.i3; var toShort = kotlin_kotlin.$_$.jh; var toUShort = kotlin_kotlin.$_$.qh; var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.k4; var toInt = kotlin_kotlin.$_$.fh; var toUInt = kotlin_kotlin.$_$.nh; var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.s3; var toLong = kotlin_kotlin.$_$.ih; var toULong = kotlin_kotlin.$_$.ph; var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.b4; var toDouble = kotlin_kotlin.$_$.ch; var single_0 = kotlin_kotlin.$_$.ig; var decodeSerializableValue = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2; var EventType_END_DOCUMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.c; var EventType_END_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.d; var EventType_START_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.f; var readSimpleElement = kotlin_io_github_pdvrieze_xmlutil_core.$_$.t1; var allConsecutiveTextContent = kotlin_io_github_pdvrieze_xmlutil_core.$_$.n1; var allText = kotlin_io_github_pdvrieze_xmlutil_core.$_$.o1; var noWhenBranchMatchedException = kotlin_kotlin.$_$.rj; var AssertionError_init_$Create$ = kotlin_kotlin.$_$.h1; var toString = kotlin_kotlin.$_$.jd; var XmlException_init_$Create$ = kotlin_io_github_pdvrieze_xmlutil_core.$_$.o; var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.r2; var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1; var LIST = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1; var MAP = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1; var decodeSequentially = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2; var booleanArray = kotlin_kotlin.$_$.jb; var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.k; var CompactFragment_init_$Create$_0 = kotlin_io_github_pdvrieze_xmlutil_core.$_$.l; var CompactFragment_init_$Create$_1 = kotlin_io_github_pdvrieze_xmlutil_core.$_$.k; var AbstractCollectionSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2; var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l; var plus_0 = kotlin_kotlin.$_$.e9; var singleOrNull = kotlin_kotlin.$_$.r9; var get_indices = kotlin_kotlin.$_$.b8; var checkIndexOverflow = kotlin_kotlin.$_$.n6; var IntCompanionObject_instance = kotlin_kotlin.$_$.y4; var emptyList = kotlin_kotlin.$_$.n7; var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k; var elementContentToFragment = kotlin_io_github_pdvrieze_xmlutil_core.$_$.p1; var EndElementEvent = kotlin_io_github_pdvrieze_xmlutil_core.$_$.i1; var decodeCollectionSize = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2; var xmlCollapseWhitespace = kotlin_io_github_pdvrieze_xmlutil_core.$_$.d2; var split = kotlin_kotlin.$_$.kg; var until = kotlin_kotlin.$_$.ae; var elementToFragment = kotlin_io_github_pdvrieze_xmlutil_core.$_$.q1; var assert = kotlin_io_github_pdvrieze_xmlutil_core.$_$.v; var assert_0 = kotlin_io_github_pdvrieze_xmlutil_core.$_$.w; var joinToString = kotlin_kotlin.$_$.e8; var EventType_CDSECT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.b; var EventType_IGNORABLE_WHITESPACE_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.e; var EventType_TEXT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.g; var XmlBufferedReader = kotlin_io_github_pdvrieze_xmlutil_core.$_$.h1; var toCName = kotlin_io_github_pdvrieze_xmlutil_core.$_$.y1; var SerializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p3; var last = kotlin_kotlin.$_$.ag; var isWhitespace = kotlin_kotlin.$_$.vf; var first = kotlin_kotlin.$_$.kf; var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.wj; var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.h3; var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.j3; var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.j4; var UShort__toString_impl_edaoee = kotlin_kotlin.$_$.l4; var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.q3; var UInt__toString_impl_dbgl21 = kotlin_kotlin.$_$.t3; var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.a4; var ULong__toString_impl_f9au7k = kotlin_kotlin.$_$.c4; var toString_0 = kotlin_kotlin.$_$.c3; var beginCollection = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k2; var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1; var encodeSerializableValue = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m2; var encodeNotNullMark = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2; var smartStartTag_0 = kotlin_io_github_pdvrieze_xmlutil_core.$_$.x1; var endTag = kotlin_io_github_pdvrieze_xmlutil_core.$_$.r1; var sortedWith_0 = kotlin_kotlin.$_$.t9; var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2; var Iterator = kotlin_kotlin.$_$.u5; var firstOrNull = kotlin_kotlin.$_$.me; var charSequenceGet = kotlin_kotlin.$_$.nb; var isDigit = kotlin_kotlin.$_$.pf; var numberRangeToNumber = kotlin_kotlin.$_$.vc; var asSequence_1 = kotlin_kotlin.$_$.k6; var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.h2; var writeAttribute = kotlin_io_github_pdvrieze_xmlutil_core.$_$.b2; var first_0 = kotlin_kotlin.$_$.v7; var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1; var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m; var OBJECT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q; var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n; var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u2; var substringAfterLast = kotlin_kotlin.$_$.ng; var toQname = kotlin_io_github_pdvrieze_xmlutil_core.$_$.a2; var startsWith = kotlin_kotlin.$_$.mg; var lastIndexOf = kotlin_kotlin.$_$.yf; var indexOf = kotlin_kotlin.$_$.nf; var startsWith_0 = kotlin_kotlin.$_$.lg; var XmlDeclMode_None_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.h; var XmlVersion_XML11_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.a; var captureStack = kotlin_kotlin.$_$.kb; var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o3; var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f; var getStringHashCode = kotlin_kotlin.$_$.bc; var getBooleanHashCode = kotlin_kotlin.$_$.xb; var OPEN_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h; var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1; var fillArrayVal = kotlin_kotlin.$_$.wb; var plus_1 = kotlin_kotlin.$_$.te; var filter = kotlin_kotlin.$_$.le; var Sequence = kotlin_kotlin.$_$.ie; var flatMap = kotlin_kotlin.$_$.oe; var charArrayOf = kotlin_kotlin.$_$.lb; var split_0 = kotlin_kotlin.$_$.jg; var SerializersModuleCollector = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h3; var Char = kotlin_kotlin.$_$.ai; var Long = kotlin_kotlin.$_$.li; var listOfNotNull = kotlin_kotlin.$_$.m8; var getPrefixes = kotlin_io_github_pdvrieze_xmlutil_core.$_$.e1; var NamespaceContextImpl = kotlin_io_github_pdvrieze_xmlutil_core.$_$.f1; var startDocument$default = kotlin_io_github_pdvrieze_xmlutil_core.$_$.i; var namespaceAttr = kotlin_io_github_pdvrieze_xmlutil_core.$_$.k1; var processingInstruction = kotlin_io_github_pdvrieze_xmlutil_core.$_$.l1; var XmlWriter = kotlin_io_github_pdvrieze_xmlutil_core.$_$.m1; var listOf = kotlin_kotlin.$_$.o8; var isCharSequence = kotlin_kotlin.$_$.ic; var trim = kotlin_kotlin.$_$.uh; var lazy = kotlin_kotlin.$_$.qj; var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.e2; var getKClassFromExpression = kotlin_kotlin.$_$.d; var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x; var getPolymorphicDescriptors = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2; var get_capturedKClass = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1; var toNamespace = kotlin_io_github_pdvrieze_xmlutil_core.$_$.z1; var Companion_getInstance_0 = kotlin_kotlin.$_$.i5; var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1; var Companion_getInstance_1 = kotlin_kotlin.$_$.l5; var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1; var Companion_getInstance_2 = kotlin_kotlin.$_$.j5; var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1; var Companion_getInstance_3 = kotlin_kotlin.$_$.k5; var serializer_4 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1; var requireNoNulls = kotlin_kotlin.$_$.l9; var toList_1 = kotlin_kotlin.$_$.z9; var get_indices_0 = kotlin_kotlin.$_$.d8; var substringBeforeLast = kotlin_kotlin.$_$.sg; var dropLast = kotlin_kotlin.$_$.ef; var endsWith = kotlin_kotlin.$_$.gf; var KProperty1 = kotlin_kotlin.$_$.fe; var getPropertyCallableRef = kotlin_kotlin.$_$.ac; var Pair = kotlin_kotlin.$_$.pi; var toMutableList = kotlin_kotlin.$_$.ca; var compareTo = kotlin_kotlin.$_$.rb; var get_EmptySerializersModuleLegacyJs = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d3; var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u3; var get_name = kotlin_io_github_pdvrieze_xmlutil_core.$_$.x; var replace = kotlin_kotlin.$_$.gg; //endregion //region block: pre-declaration setMetadataFor(CompactFragmentSerializer, 'CompactFragmentSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(NodeSerializer, 'NodeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(ElementSerializer, 'ElementSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(DocumentDecoder, 'DocumentDecoder', classMeta, VOID, [Decoder]); setMetadataFor(DocumentCompositeDecoder, 'DocumentCompositeDecoder', classMeta, VOID, [CompositeDecoder]); setMetadataFor(WrappedDeserializationStrategy, 'WrappedDeserializationStrategy', classMeta, VOID, [DeserializationStrategy]); setMetadataFor(InputKind, 'InputKind', classMeta, Enum); setMetadataFor(InputKind$Element, 'Element', classMeta, InputKind); setMetadataFor(InputKind$Attribute, 'Attribute', classMeta, InputKind); setMetadataFor(InputKind$Text, 'Text', classMeta, InputKind); setMetadataFor(OutputKind, 'OutputKind', classMeta, Enum); setMetadataFor(OutputKind$Attribute, 'Attribute', classMeta, OutputKind); setMetadataFor(OutputKind$Text, 'Text', classMeta, OutputKind); setMetadataFor(PolyBaseInfo, 'PolyBaseInfo', classMeta); setMetadataFor(Companion, 'Companion', objectMeta, VOID, [StringFormat]); function delegateFormat() { return new XML(this.t39(), this.d46()); } setMetadataFor(XmlCodecConfig, 'XmlCodecConfig', interfaceMeta); function ensureNamespace(qName) { return this.pkz(qName, false); } setMetadataFor(XmlOutput, 'XmlOutput', interfaceMeta, VOID, [XmlCodecConfig]); setMetadataFor(XmlInput, 'XmlInput', interfaceMeta, VOID, [XmlCodecConfig]); setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(XML, 'XML', classMeta, VOID, [StringFormat]); setMetadataFor(XmlDecoderBase$SerialValueDecoder$decodeInline$1, VOID, classMeta); setMetadataFor(XmlCodec, 'XmlCodec', classMeta); setMetadataFor(DecodeCommons, 'DecodeCommons', classMeta, XmlCodec, [XmlCodec, XmlInput, Decoder]); setMetadataFor(XmlDecoder, 'XmlDecoder', classMeta, DecodeCommons, [DecodeCommons, Decoder, XmlInput]); setMetadataFor(StringDecoder, 'StringDecoder', classMeta, DecodeCommons, [Decoder, XmlInput, DecodeCommons]); setMetadataFor(SerialValueDecoder, 'SerialValueDecoder', classMeta, XmlDecoder); setMetadataFor(NullDecoder, 'NullDecoder', classMeta, XmlDecoder, [XmlDecoder, CompositeDecoder]); setMetadataFor(XmlTagCodec, 'XmlTagCodec', classMeta); setMetadataFor(TagDecoderBase, 'TagDecoderBase', classMeta, XmlTagCodec, [XmlTagCodec, CompositeDecoder, XmlInput]); setMetadataFor(TagDecoder, 'TagDecoder', classMeta, TagDecoderBase); setMetadataFor(AttributeMapDecoder, 'AttributeMapDecoder', classMeta, TagDecoderBase, [TagDecoderBase, Decoder]); setMetadataFor(AttributeListDecoder, 'AttributeListDecoder', classMeta, TagDecoderBase); setMetadataFor(AnonymousListDecoder, 'AnonymousListDecoder', classMeta, TagDecoderBase); setMetadataFor(NamedListDecoder, 'NamedListDecoder', classMeta, TagDecoderBase); setMetadataFor(MapDecoderBase, 'MapDecoderBase', classMeta, TagDecoderBase); setMetadataFor(AnonymousMapDecoder, 'AnonymousMapDecoder', classMeta, MapDecoderBase); setMetadataFor(NamedMapDecoder, 'NamedMapDecoder', classMeta, MapDecoderBase); setMetadataFor(PolymorphicDecoder, 'PolymorphicDecoder', classMeta, TagDecoderBase); setMetadataFor(XmlCodecBase, 'XmlCodecBase', classMeta); setMetadataFor(XmlDecoderBase, 'XmlDecoderBase', classMeta, XmlCodecBase); setMetadataFor(PolyInfo, 'PolyInfo', classMeta); setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(XmlEncoder, 'XmlEncoder', classMeta, XmlCodec, [XmlCodec, Encoder, XmlOutput]); setMetadataFor(NSAttrXmlEncoder, 'NSAttrXmlEncoder', classMeta, XmlEncoder); setMetadataFor(PrimitiveEncoder, 'PrimitiveEncoder', classMeta, VOID, [Encoder, XmlOutput]); setMetadataFor(InlineEncoder, 'InlineEncoder', classMeta, XmlEncoder); setMetadataFor(TagEncoder, 'TagEncoder', classMeta, XmlTagCodec, [XmlTagCodec, CompositeEncoder, XmlOutput]); setMetadataFor(InlineTagEncoder, 'InlineTagEncoder', classMeta, TagEncoder); setMetadataFor(PolymorphicEncoder, 'PolymorphicEncoder', classMeta, TagEncoder, [TagEncoder, XmlOutput]); setMetadataFor(AttributeMapEncoder, 'AttributeMapEncoder', classMeta, TagEncoder); setMetadataFor(AttributeListEncoder, 'AttributeListEncoder', classMeta, TagEncoder); setMetadataFor(ListEncoder, 'ListEncoder', classMeta, TagEncoder, [TagEncoder, XmlOutput]); setMetadataFor(MapEncoder, 'MapEncoder', classMeta, TagEncoder); setMetadataFor(XmlEncoderBase, 'XmlEncoderBase', classMeta, XmlCodecBase); setMetadataFor(Companion_0, 'Companion', objectMeta); setMetadataFor(sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0, 'sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0', classMeta); setMetadataFor(sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0_0, 'sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0', classMeta); setMetadataFor(sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0_1, 'sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0', classMeta); setMetadataFor(Builder, 'Builder', classMeta, VOID, VOID, Builder); setMetadataFor(Companion_1, 'Companion', objectMeta); setMetadataFor(XmlConfig, 'XmlConfig', classMeta); setMetadataFor(XmlSerialException, 'XmlSerialException', classMeta, SerializationException); setMetadataFor(UnknownXmlFieldException, 'UnknownXmlFieldException', classMeta, XmlSerialException); setMetadataFor(XmlParsingException, 'XmlParsingException', classMeta, XmlSerialException); setMetadataFor(DeclaredNameInfo, 'DeclaredNameInfo', classMeta); setMetadataFor(ActualNameInfo, 'ActualNameInfo', classMeta); setMetadataFor(XmlEncodeDefault, 'XmlEncodeDefault', classMeta, Enum); function get_defaultPrimitiveOutputKind() { return OutputKind_Attribute_getInstance(); } function get_defaultObjectOutputKind() { return OutputKind_Element_getInstance(); } function get_isStrictNames() { return false; } function get_verifyElementOrder() { return false; } function defaultOutputKind(serialKind) { var tmp; if (equals(serialKind, ENUM_getInstance()) ? true : equals(serialKind, OBJECT_getInstance())) { tmp = this.tlk(); } else { if (serialKind instanceof PrimitiveKind) { tmp = this.slk(); } else { if (equals(serialKind, OPEN_getInstance())) { tmp = OutputKind_Element_getInstance(); } else { tmp = OutputKind_Element_getInstance(); } } } return tmp; } function invalidOutputKind(message) { return this.wlk(message); } function serialTypeNameToQName(typeNameInfo, parentNamespace) { return this.bll(typeNameInfo.nlk_1, parentNamespace); } function serialUseNameToQName(useNameInfo, parentNamespace) { return this.bll(useNameInfo.nlk_1, parentNamespace); } function effectiveOutputKind(serializerParent, tagParent, canBeAttribute) { var base = this.dll(serializerParent, tagParent); if (!canBeAttribute ? base.equals(OutputKind_Attribute_getInstance()) : false) { return this.fll(serializerParent, tagParent, base); } return base; } function overrideSerializerOrNull(serializerParent, tagParent) { return null; } function handleUnknownContentRecovering(input, inputKind, descriptor, name, candidates) { this.hll(input, inputKind, name, candidates); return emptyList(); } function onElementRepeated(parentDescriptor, childIndex) { } function handleAttributeOrderConflict(serializerParent, tagParent, outputKind) { throw SerializationException_init_$Create$('Node ' + serializerParent.ill().nlk_1 + ' wants to be an attribute but cannot due to ordering constraints'); } function initialChildReorderMap(parentDescriptor) { return null; } function enumEncoding(enumDescriptor, index) { return enumDescriptor.w46(index); } function preserveSpace(serializerParent, tagParent) { return true; } function mapKeyName(serializerParent) { return DeclaredNameInfo_init_$Create$('key'); } function mapValueName(serializerParent, isListEluded) { return DeclaredNameInfo_init_$Create$('value'); } function mapEntryName(serializerParent, isListEluded) { return QName_init_$Create$_0(serializerParent.oll().ckn(), 'entry'); } function isMapValueCollapsed(mapParent, valueDescriptor) { return false; } function elementNamespaceDecls(serializerParent) { return emptyList(); } function attributeListDelimiters(serializerParent, tagParent) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [' ', '\n', '\t', '\r']; } setMetadataFor(XmlSerializationPolicy, 'XmlSerializationPolicy', interfaceMeta); setMetadataFor(Builder_0, 'Builder', classMeta); setMetadataFor(DefaultXmlSerializationPolicy, 'DefaultXmlSerializationPolicy', classMeta, VOID, [XmlSerializationPolicy]); setMetadataFor(XmlSerialName, 'XmlSerialName', classMeta); setMetadataFor(XmlPolyChildren, 'XmlPolyChildren', classMeta); setMetadataFor(XmlElement, 'XmlElement', classMeta); setMetadataFor(XmlId, 'XmlId', classMeta); setMetadataFor(XmlValue, 'XmlValue', classMeta); setMetadataFor(XmlChildrenName, 'XmlChildrenName', classMeta); setMetadataFor(XmlCData, 'XmlCData', classMeta); setMetadataFor(XmlDefault, 'XmlDefault', classMeta); setMetadataFor(XmlOtherAttributes, 'XmlOtherAttributes', classMeta); setMetadataFor(XmlBefore, 'XmlBefore', classMeta); setMetadataFor(XmlAfter, 'XmlAfter', classMeta); setMetadataFor(XmlIgnoreWhitespace, 'XmlIgnoreWhitespace', classMeta); setMetadataFor(XmlNamespaceDeclSpec, 'XmlNamespaceDeclSpec', classMeta); setMetadataFor(ChildCollector, 'ChildCollector', classMeta, VOID, [SerializersModuleCollector], ChildCollector); setMetadataFor(DummyDecoder, 'DummyDecoder', classMeta, VOID, [Decoder]); setMetadataFor(NamespaceCollectingXmlWriter$namespaceContext$1, VOID, classMeta, VOID, [NamespaceContextImpl]); setMetadataFor(NamespaceCollectingXmlWriter, 'NamespaceCollectingXmlWriter', classMeta, VOID, [XmlWriter]); setMetadataFor(PrefixWrappingPolicy, 'PrefixWrappingPolicy', classMeta, VOID, [XmlSerializationPolicy]); setMetadataFor(XmlQNameSerializer, 'XmlQNameSerializer', objectMeta, VOID, [KSerializer]); function get_isNullable() { return this.hl2().l46(); } function get_kind() { return this.hl2().s46(); } function get_isCData() { return false; } function isElementOptional(index) { return this.hl2().x46(index); } setMetadataFor(SafeXmlDescriptor, 'SafeXmlDescriptor', interfaceMeta); setMetadataFor(XmlDescriptor, 'XmlDescriptor', classMeta, VOID, [SafeXmlDescriptor]); setMetadataFor(XmlRootDescriptor, 'XmlRootDescriptor', classMeta, XmlDescriptor); setMetadataFor(Companion_2, 'Companion', objectMeta); setMetadataFor(XmlValueDescriptor, 'XmlValueDescriptor', classMeta, XmlDescriptor); setMetadataFor(XmlPolymorphicDescriptor, 'XmlPolymorphicDescriptor', classMeta, XmlValueDescriptor); function copy$default(useNameInfo, useOutputKind, overriddenSerializer, $super) { useNameInfo = useNameInfo === VOID ? this.ill() : useNameInfo; useOutputKind = useOutputKind === VOID ? this.ull() : useOutputKind; overriddenSerializer = overriddenSerializer === VOID ? this.zlm() : overriddenSerializer; return $super === VOID ? this.gln(useNameInfo, useOutputKind, overriddenSerializer) : $super.gln.call(this, useNameInfo, useOutputKind, overriddenSerializer); } setMetadataFor(SafeParentInfo, 'SafeParentInfo', interfaceMeta); setMetadataFor(DetachedParent, 'DetachedParent', classMeta, VOID, [SafeParentInfo]); setMetadataFor(XmlListLikeDescriptor, 'XmlListLikeDescriptor', classMeta, XmlDescriptor); setMetadataFor(XmlListDescriptor, 'XmlListDescriptor', classMeta, XmlListLikeDescriptor); setMetadataFor(XmlPrimitiveDescriptor, 'XmlPrimitiveDescriptor', classMeta, XmlValueDescriptor); setMetadataFor(XmlAttributeMapDescriptor, 'XmlAttributeMapDescriptor', classMeta, XmlValueDescriptor); setMetadataFor(XmlMapDescriptor, 'XmlMapDescriptor', classMeta, XmlListLikeDescriptor); setMetadataFor(Companion_3, 'Companion', objectMeta); setMetadataFor(XmlInlineDescriptor, 'XmlInlineDescriptor', classMeta, XmlValueDescriptor); setMetadataFor(XmlCompositeDescriptor, 'XmlCompositeDescriptor', classMeta, XmlValueDescriptor); setMetadataFor(UNSET, 'UNSET', objectMeta); setMetadataFor(PolymorphicMode, 'PolymorphicMode', classMeta); setMetadataFor(TRANSPARENT, 'TRANSPARENT', objectMeta, PolymorphicMode); setMetadataFor(TAG, 'TAG', objectMeta, PolymorphicMode); setMetadataFor(ATTR, 'ATTR', classMeta, PolymorphicMode); setMetadataFor(ParentInfo, 'ParentInfo', classMeta, VOID, [SafeParentInfo]); setMetadataFor(InjectedParentTag, 'InjectedParentTag', classMeta, VOID, [SafeParentInfo]); setMetadataFor(Companion_4, 'Companion', objectMeta); setMetadataFor(XmlOrderConstraint, 'XmlOrderConstraint', classMeta); setMetadataFor(OrderWildcard, 'OrderWildcard', classMeta, Enum); setMetadataFor(XmlOrderNode, 'XmlOrderNode', classMeta); setMetadataFor(XmlTypeDescriptor, 'XmlTypeDescriptor', classMeta); //endregion function readCompactFragmentContent($this, input) { var tmp; if (isInterface(input, XmlInput)) { // Inline function 'kotlin.run' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.CompactFragmentSerializer.readCompactFragmentContent.' call var $this$run = input.ekx(); $this$run.e(); tmp = siblingsToFragment($this$run); } else { // Inline function 'kotlin.collections.mutableListOf' call var namespaces = ArrayList_init_$Create$(); var content = ''; var index = input.i49($this.dkx_1); while (index >= 0) { var tmp0_subject = index; if (tmp0_subject === 0) namespaces = input.f49($this.dkx_1, index, $this.ckx_1); else if (tmp0_subject === 1) content = input.c49($this.dkx_1, index); index = input.i49($this.dkx_1); } tmp = CompactFragment_init_$Create$(namespaces, content); } return tmp; } function CompactFragmentSerializer$descriptor$lambda($this$buildClassSerialDescriptor) { $this$buildClassSerialDescriptor.l45('namespaces', CompactFragmentSerializer_getInstance().ckx_1.a45()); // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_0 = serializer(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); var tmp$ret$2 = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).a45(); $this$buildClassSerialDescriptor.l45('content', tmp$ret$2); return Unit_instance; } function CompactFragmentSerializer() { CompactFragmentSerializer_instance = this; this.ckx_1 = ListSerializer(Companion_getInstance()); var tmp = this; tmp.dkx_1 = buildClassSerialDescriptor('compactFragment', [], CompactFragmentSerializer$descriptor$lambda); } protoOf(CompactFragmentSerializer).a45 = function () { return this.dkx_1; }; protoOf(CompactFragmentSerializer).c45 = function (decoder) { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.dkx_1; var composite = decoder.s48(descriptor); // Inline function 'nl.adaptivity.xmlutil.serialization.CompactFragmentSerializer.deserialize.' call var result = readCompactFragmentContent(CompactFragmentSerializer_getInstance(), composite); composite.t48(descriptor); return result; }; protoOf(CompactFragmentSerializer).fkx = function (encoder, value) { this.gkx(encoder, isInterface(value, ICompactFragment) ? value : THROW_CCE()); }; protoOf(CompactFragmentSerializer).b45 = function (encoder, value) { return this.fkx(encoder, value instanceof CompactFragment ? value : THROW_CCE()); }; protoOf(CompactFragmentSerializer).gkx = function (output, value) { // Inline function 'kotlinx.serialization.encoding.encodeStructure' call var descriptor = this.dkx_1; var composite = output.s48(descriptor); // Inline function 'nl.adaptivity.xmlutil.serialization.CompactFragmentSerializer.serialize.' call CompactFragmentSerializer_getInstance().hkx(composite, value); composite.t48(descriptor); }; protoOf(CompactFragmentSerializer).hkx = function (encoder, value) { var xmlOutput = isInterface(encoder, XmlOutput) ? encoder : null; if (!(xmlOutput == null)) { var writer = xmlOutput.vko(); var tmp0_iterator = value.jkw().w(); while (tmp0_iterator.f()) { var namespace = tmp0_iterator.e(); if (writer.hkp(namespace.ckn()) == null) { writer.kkp(namespace); } } value.lkw(writer); } else { encoder.i4a(this.dkx_1, 0, this.ckx_1, toList(value.jkw())); encoder.g4a(this.dkx_1, 1, value.kkw()); } }; var CompactFragmentSerializer_instance; function CompactFragmentSerializer_getInstance() { if (CompactFragmentSerializer_instance == null) new CompactFragmentSerializer(); return CompactFragmentSerializer_instance; } function deserialize($this, decoder) { var result = {_v: null}; // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = $this.kkx_1; var composite = decoder.s48(descriptor); var type = null; var nextValue = composite.i49(NodeSerializer_getInstance().kkx_1); $l$loop: while (true) { var tmp = nextValue; if (!!(tmp === -1)) { break $l$loop; } var tmp0_subject = nextValue; if (tmp0_subject === 0) type = composite.c49(NodeSerializer_getInstance().kkx_1, 0); else if (tmp0_subject === 1) { switch (type) { case null: throw SerializationException_init_$Create$('Missing type'); case 'element': result._v = composite.f49(NodeSerializer_getInstance().kkx_1, 1, ElementSerializer_getInstance()); break; case 'attr': var map = composite.f49(NodeSerializer_getInstance().kkx_1, 1, NodeSerializer_getInstance().ikx_1); if (!(map.u() === 1)) throw SerializationException_init_$Create$('Only a single attribute pair expected'); // Inline function 'kotlin.apply' call var this_0 = decoder.mkx_1.createAttribute(single(map.o2())); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.NodeSerializer.deserialize..' call this_0.value = single(map.p2()); result._v = this_0; break; case 'text': result._v = decoder.mkx_1.createTextNode(composite.c49(NodeSerializer_getInstance().kkx_1, 1)); break; case 'comment': result._v = decoder.mkx_1.createComment(composite.c49(NodeSerializer_getInstance().kkx_1, 1)); break; default: throw SerializationException_init_$Create$('unsupported type: ' + type); } } nextValue = composite.i49(NodeSerializer_getInstance().kkx_1); } var result_0 = Unit_instance; composite.t48(descriptor); var tmp0_elvis_lhs = result._v; var tmp_0; if (tmp0_elvis_lhs == null) { throw SerializationException_init_$Create$('Missing value'); } else { tmp_0 = tmp0_elvis_lhs; } return tmp_0; } function NodeSerializer$ed$lambda($this$buildSerialDescriptor) { // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_0 = serializer(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); var tmp$ret$2 = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).a45(); $this$buildSerialDescriptor.l45('text', tmp$ret$2); var tmp = CONTEXTUAL_getInstance(); $this$buildSerialDescriptor.l45('element', buildSerialDescriptor('element', tmp, [], NodeSerializer$ed$lambda$lambda)); return Unit_instance; } function NodeSerializer$ed$lambda$lambda($this$buildSerialDescriptor) { return Unit_instance; } function NodeSerializer$descriptor$lambda($this$buildSerialDescriptor) { // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_0 = serializer(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); var tmp$ret$2 = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).a45(); $this$buildSerialDescriptor.l45('type', tmp$ret$2); $this$buildSerialDescriptor.l45('value', NodeSerializer_getInstance().jkx_1); return Unit_instance; } function NodeSerializer() { NodeSerializer_instance = this; this.ikx_1 = MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)); var tmp = this; var tmp_0 = CONTEXTUAL_getInstance(); tmp.jkx_1 = buildSerialDescriptor('org.w3c.dom.Node', tmp_0, [], NodeSerializer$ed$lambda); var tmp_1 = this; var tmp_2 = SEALED_getInstance(); tmp_1.kkx_1 = buildSerialDescriptor('node', tmp_2, [], NodeSerializer$descriptor$lambda); } protoOf(NodeSerializer).a45 = function () { return this.kkx_1; }; protoOf(NodeSerializer).c45 = function (decoder) { var tmp; if (decoder instanceof DocumentDecoder) { tmp = deserialize(this, decoder); } else { tmp = deserialize(this, DocumentDecoder_init_$Create$(decoder)); } return tmp; }; protoOf(NodeSerializer).nkx = function (encoder, value) { // Inline function 'kotlinx.serialization.encoding.encodeStructure' call var descriptor = this.kkx_1; var composite = encoder.s48(descriptor); // Inline function 'nl.adaptivity.xmlutil.serialization.NodeSerializer.serialize.' call var tmp0_subject = value.nodeType; var tmp; var tmp_0 = tmp0_subject; if (tmp_0 === 9) { tmp = true; } else { var tmp_1 = tmp0_subject; tmp = tmp_1 === 11; } if (tmp) { var tmp_2; var tmp_3 = value.nodeType; if (tmp_3 === 11) { tmp_2 = 'fragment'; } else { tmp_2 = 'document'; } var type = tmp_2; composite.g4a(NodeSerializer_getInstance().kkx_1, 0, type); var children = toList_0(asSequence(iterator(value.childNodes))); composite.i4a(NodeSerializer_getInstance().kkx_1, 1, ListSerializer(NodeSerializer_getInstance()), children); } else { var tmp_4 = tmp0_subject; if (tmp_4 === 1) { composite.g4a(NodeSerializer_getInstance().kkx_1, 0, 'element'); var tmp_5 = NodeSerializer_getInstance().kkx_1; var tmp_6 = ElementSerializer_getInstance(); composite.i4a(tmp_5, 1, tmp_6, !(value == null) ? value : THROW_CCE()); } else { var tmp_7 = tmp0_subject; if (tmp_7 === 2) { composite.g4a(NodeSerializer_getInstance().kkx_1, 0, 'attr'); var tmp_8 = NodeSerializer_getInstance().kkx_1; var tmp_9 = NodeSerializer_getInstance().ikx_1; composite.i4a(tmp_8, 1, tmp_9, mapOf(to((!(value == null) ? value : THROW_CCE()).name, value.value))); } else { var tmp_10; var tmp_11 = tmp0_subject; if (tmp_11 === 3) { tmp_10 = true; } else { var tmp_12 = tmp0_subject; tmp_10 = tmp_12 === 4; } if (tmp_10) { composite.g4a(NodeSerializer_getInstance().kkx_1, 0, 'text'); var tmp_13 = NodeSerializer_getInstance().kkx_1; var tmp1_elvis_lhs = value.textContent; composite.g4a(tmp_13, 1, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); } else { var tmp_14 = tmp0_subject; if (tmp_14 === 8) { composite.g4a(NodeSerializer_getInstance().kkx_1, 0, 'comment'); var tmp_15 = NodeSerializer_getInstance().kkx_1; var tmp2_elvis_lhs = value.textContent; composite.g4a(tmp_15, 1, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); } else { var tmp_16 = tmp0_subject; if (tmp_16 === 7) throw SerializationException_init_$Create$('Processing instructions can not be serialized'); else { throw SerializationException_init_$Create$('Cannot serialize: ' + value); } } } } } } composite.t48(descriptor); }; protoOf(NodeSerializer).b45 = function (encoder, value) { return this.nkx(encoder, (!(value == null) ? !(value == null) : false) ? value : THROW_CCE()); }; var NodeSerializer_instance; function NodeSerializer_getInstance() { if (NodeSerializer_instance == null) new NodeSerializer(); return NodeSerializer_instance; } function deserializeInput($this, decoder) { var document = createDocument(decoder.ekx().ec()); var fragment = document.createDocumentFragment(); var out = new DomWriter(fragment); writeElement(out, null, decoder.ekx()); var e = fragment.firstChild; $l$loop: while (true) { var tmp; if (!(e == null)) { var tmp_0 = e.nodeType; tmp = !(tmp_0 === 1); } else { tmp = false; } if (!tmp) { break $l$loop; } e = e.nextSibling; } var tmp0_elvis_lhs = (e == null ? true : !(e == null)) ? e : THROW_CCE(); var tmp_1; if (tmp0_elvis_lhs == null) { throw SerializationException_init_$Create$('Expected element, but did not find it'); } else { tmp_1 = tmp0_elvis_lhs; } return tmp_1; } function deserialize_0($this, decoder) { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = $this.pkx_1; var composite = decoder.s48(descriptor); // Inline function 'nl.adaptivity.xmlutil.serialization.ElementSerializer.deserialize.' call var contentSerializer = ListSerializer(NodeSerializer_getInstance()); var idx = composite.i49(ElementSerializer_getInstance().pkx_1); var nameSpace = null; var localName = null; var attributes = null; var content = null; $l$loop: while (true) { var tmp = idx; if (!!(tmp === -1)) { break $l$loop; } var tmp0_subject = idx; if (tmp0_subject === 0) nameSpace = composite.c49(ElementSerializer_getInstance().pkx_1, 0); else { if (tmp0_subject === 1) localName = composite.c49(ElementSerializer_getInstance().pkx_1, 1); else { if (tmp0_subject === 2) attributes = ElementSerializer_getInstance().okx_1.c45(decoder); else { if (tmp0_subject === 3) content = contentSerializer.c45(decoder); else { if (tmp0_subject === -3) throw SerializationException_init_$Create$('Found unexpected child at index: ' + idx); else { throw IllegalStateException_init_$Create$('Received an unexpected decoder value: ' + idx); } } } } } idx = composite.i49(ElementSerializer_getInstance().pkx_1); } if (localName == null) throw SerializationException_init_$Create$('Missing localName'); if (attributes == null) throw SerializationException_init_$Create$('Missing attributes'); if (content == null) throw SerializationException_init_$Create$('Missing content'); var doc = decoder.mkx_1; // Inline function 'kotlin.apply' call var tmp_0; // Inline function 'kotlin.text.isNullOrEmpty' call var this_0 = nameSpace; // Inline function 'kotlin.contracts.contract' call if (this_0 == null ? true : charSequenceLength(this_0) === 0) { tmp_0 = doc.createElement(localName); } else { tmp_0 = doc.createElementNS(nameSpace, localName); } var this_1 = tmp_0; // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.ElementSerializer.deserialize..' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = attributes.q2().w(); while (tmp0_iterator.f()) { var tmp1_loop_parameter = tmp0_iterator.e(); // Inline function 'kotlin.collections.component1' call var name = tmp1_loop_parameter.s2(); // Inline function 'kotlin.collections.component2' call var value = tmp1_loop_parameter.t2(); this_1.setAttribute(name, value); } var tmp2_iterator = content.w(); while (tmp2_iterator.f()) { var node = tmp2_iterator.e(); this_1.appendChild(doc.adoptNode(node)); } var result = this_1; composite.t48(descriptor); return result; } function ElementSerializer$descriptor$lambda($this$buildClassSerialDescriptor) { // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_0 = serializer(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); var tmp$ret$2 = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).a45(); $this$buildClassSerialDescriptor.l45('namespace', tmp$ret$2, VOID, true); // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_1 = serializer(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); var tmp$ret$5 = (isInterface(this_1, KSerializer) ? this_1 : THROW_CCE()).a45(); $this$buildClassSerialDescriptor.l45('localname', tmp$ret$5); $this$buildClassSerialDescriptor.l45('attributes', ElementSerializer_getInstance().okx_1.a45()); $this$buildClassSerialDescriptor.l45('content', ListSerializer(NodeSerializer_getInstance()).a45()); return Unit_instance; } function ElementSerializer() { ElementSerializer_instance = this; this.okx_1 = MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)); var tmp = this; tmp.pkx_1 = buildClassSerialDescriptor('element', [], ElementSerializer$descriptor$lambda); } protoOf(ElementSerializer).a45 = function () { return this.pkx_1; }; protoOf(ElementSerializer).c45 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeInput(this, decoder); } else { if (decoder instanceof DocumentDecoder) { tmp = deserialize_0(this, decoder); } else { tmp = deserialize_0(this, DocumentDecoder_init_$Create$(decoder)); } } return tmp; }; protoOf(ElementSerializer).qkx = function (encoder, value) { if (isInterface(encoder, XmlOutput)) { serialize(encoder.vko(), value); } else { // Inline function 'kotlinx.serialization.encoding.encodeStructure' call var descriptor = this.pkx_1; var composite = encoder.s48(descriptor); // Inline function 'nl.adaptivity.xmlutil.serialization.ElementSerializer.serialize.' call var ln = value.localName; if (ln == null) { composite.g4a(ElementSerializer_getInstance().pkx_1, 1, value.tagName); } else { var namespaceURI = value.namespaceURI; // Inline function 'kotlin.text.isNullOrEmpty' call // Inline function 'kotlin.contracts.contract' call if (!(namespaceURI == null ? true : charSequenceLength(namespaceURI) === 0)) { composite.g4a(ElementSerializer_getInstance().pkx_1, 0, namespaceURI); } composite.g4a(ElementSerializer_getInstance().pkx_1, 1, value.localName); } var attrIterator = iterator_0(value.attributes); // Inline function 'kotlin.sequences.associate' call // Inline function 'kotlin.sequences.associateTo' call var this_0 = asSequence(attrIterator); var destination = LinkedHashMap_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'kotlin.collections.plusAssign' call // Inline function 'nl.adaptivity.xmlutil.serialization.ElementSerializer.serialize..' call var pair = to(element.nodeName, element.value); destination.s(pair.w6_1, pair.x6_1); } var m = destination; composite.i4a(ElementSerializer_getInstance().pkx_1, 2, ElementSerializer_getInstance().okx_1, m); var n = toList_0(asSequence(iterator(value.childNodes))); composite.i4a(ElementSerializer_getInstance().pkx_1, 3, ListSerializer(NodeSerializer_getInstance()), n); composite.t48(descriptor); } }; protoOf(ElementSerializer).b45 = function (encoder, value) { return this.qkx(encoder, (!(value == null) ? !(value == null) : false) ? value : THROW_CCE()); }; var ElementSerializer_instance; function ElementSerializer_getInstance() { if (ElementSerializer_instance == null) new ElementSerializer(); return ElementSerializer_instance; } function DocumentDecoder_init_$Init$(delegate, $this) { // Inline function 'kotlin.apply' call var this_0 = createDocument(QName_init_$Create$('dummy')); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.DocumentDecoder..' call var tmp0_safe_receiver = this_0.documentElement; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call this_0.removeChild(tmp0_safe_receiver); } DocumentDecoder.call($this, delegate, this_0); return $this; } function DocumentDecoder_init_$Create$(delegate) { return DocumentDecoder_init_$Init$(delegate, objectCreate(protoOf(DocumentDecoder))); } function DocumentDecoder(delegate, document) { this.lkx_1 = delegate; this.mkx_1 = document; } protoOf(DocumentDecoder).f48 = function () { return this.lkx_1.f48(); }; protoOf(DocumentDecoder).g48 = function () { return this.lkx_1.g48(); }; protoOf(DocumentDecoder).m48 = function () { return this.lkx_1.m48(); }; protoOf(DocumentDecoder).l48 = function () { return this.lkx_1.l48(); }; protoOf(DocumentDecoder).o48 = function (enumDescriptor) { return this.lkx_1.o48(enumDescriptor); }; protoOf(DocumentDecoder).k48 = function () { return this.lkx_1.k48(); }; protoOf(DocumentDecoder).p48 = function (descriptor) { return this.lkx_1.p48(descriptor); }; protoOf(DocumentDecoder).i48 = function () { return this.lkx_1.i48(); }; protoOf(DocumentDecoder).j48 = function () { return this.lkx_1.j48(); }; protoOf(DocumentDecoder).d48 = function () { return this.lkx_1.d48(); }; protoOf(DocumentDecoder).e48 = function () { return this.lkx_1.e48(); }; protoOf(DocumentDecoder).r48 = function (deserializer) { return this.lkx_1.r48(deserializer); }; protoOf(DocumentDecoder).h48 = function () { return this.lkx_1.h48(); }; protoOf(DocumentDecoder).n48 = function () { return this.lkx_1.n48(); }; protoOf(DocumentDecoder).s48 = function (descriptor) { return new DocumentCompositeDecoder(this.lkx_1.s48(descriptor), this.mkx_1); }; function serialize(encoder, value) { // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var nsUri = value.namespaceURI; var tmp0_elvis_lhs = value.localName; var localName = tmp0_elvis_lhs == null ? value.tagName : tmp0_elvis_lhs; var prefix = value.prefix; smartStartTag(encoder, nsUri, localName, prefix); // Inline function 'nl.adaptivity.xmlutil.serialization.serialize.' call var tmp0_iterator = iterator_0(value.attributes); while (tmp0_iterator.f()) { var n = tmp0_iterator.e(); serialize_0(encoder, n); } var tmp1_iterator = iterator(value.childNodes); while (tmp1_iterator.f()) { var child = tmp1_iterator.e(); serialize_1(encoder, child); } encoder.fkp(nsUri, localName, prefix); } function DocumentCompositeDecoder(delegate, document) { this.rkx_1 = delegate; this.skx_1 = document; } protoOf(DocumentCompositeDecoder).d46 = function () { return this.rkx_1.d46(); }; protoOf(DocumentCompositeDecoder).u48 = function (descriptor, index) { return this.rkx_1.u48(descriptor, index); }; protoOf(DocumentCompositeDecoder).v48 = function (descriptor, index) { return this.rkx_1.v48(descriptor, index); }; protoOf(DocumentCompositeDecoder).b49 = function (descriptor, index) { return this.rkx_1.b49(descriptor, index); }; protoOf(DocumentCompositeDecoder).j49 = function (descriptor) { return this.rkx_1.j49(descriptor); }; protoOf(DocumentCompositeDecoder).a49 = function (descriptor, index) { return this.rkx_1.a49(descriptor, index); }; protoOf(DocumentCompositeDecoder).i49 = function (descriptor) { return this.rkx_1.i49(descriptor); }; protoOf(DocumentCompositeDecoder).z48 = function (descriptor, index) { return this.rkx_1.z48(descriptor, index); }; protoOf(DocumentCompositeDecoder).d49 = function (descriptor, index) { return this.rkx_1.d49(descriptor, index); }; protoOf(DocumentCompositeDecoder).x48 = function (descriptor, index) { return this.rkx_1.x48(descriptor, index); }; protoOf(DocumentCompositeDecoder).y48 = function (descriptor, index) { return this.rkx_1.y48(descriptor, index); }; protoOf(DocumentCompositeDecoder).h49 = function () { return this.rkx_1.h49(); }; protoOf(DocumentCompositeDecoder).w48 = function (descriptor, index) { return this.rkx_1.w48(descriptor, index); }; protoOf(DocumentCompositeDecoder).c49 = function (descriptor, index) { return this.rkx_1.c49(descriptor, index); }; protoOf(DocumentCompositeDecoder).t48 = function (descriptor) { this.rkx_1.t48(descriptor); }; protoOf(DocumentCompositeDecoder).e49 = function (descriptor, index, deserializer, previousValue) { return this.rkx_1.e49(descriptor, index, wrap(deserializer, this.skx_1), previousValue); }; protoOf(DocumentCompositeDecoder).g49 = function (descriptor, index, deserializer, previousValue) { return this.rkx_1.g49(descriptor, index, wrap(deserializer, this.skx_1), previousValue); }; function serialize_0(encoder, value) { var tmp = value.namespaceURI; var tmp0_elvis_lhs = value.localName; encoder.bkp(tmp, tmp0_elvis_lhs == null ? value.name : tmp0_elvis_lhs, value.prefix, value.value); } function serialize_1(encoder, value) { var tmp0_subject = value.nodeType; var tmp; var tmp_0 = tmp0_subject; if (tmp_0 === 1) { serialize(encoder, !(value == null) ? value : THROW_CCE()); tmp = Unit_instance; } else { var tmp_1 = tmp0_subject; if (tmp_1 === 2) { serialize_0(encoder, !(value == null) ? value : THROW_CCE()); tmp = Unit_instance; } else { var tmp_2 = tmp0_subject; if (tmp_2 === 4) { serialize_2(encoder, !(value == null) ? value : THROW_CCE()); tmp = Unit_instance; } else { var tmp_3 = tmp0_subject; if (tmp_3 === 3) { serialize_3(encoder, !(value == null) ? value : THROW_CCE()); tmp = Unit_instance; } else { var tmp_4 = tmp0_subject; if (tmp_4 === 8) { serialize_4(encoder, !(value == null) ? value : THROW_CCE()); tmp = Unit_instance; } else { var tmp_5 = tmp0_subject; if (tmp_5 === 7) { serialize_5(encoder, !(value == null) ? value : THROW_CCE()); tmp = Unit_instance; } else { throw IllegalArgumentException_init_$Create$('Can not serialize node: ' + value); } } } } } } return tmp; } function WrappedDeserializationStrategy(delegate, document) { this.tkx_1 = delegate; this.ukx_1 = document; } protoOf(WrappedDeserializationStrategy).a45 = function () { return this.tkx_1.a45(); }; protoOf(WrappedDeserializationStrategy).c45 = function (decoder) { return this.tkx_1.c45(new DocumentDecoder(decoder, this.ukx_1)); }; function wrap(_this__u8e3s4, document) { return new WrappedDeserializationStrategy(_this__u8e3s4, document); } function serialize_2(encoder, value) { encoder.zko(ensureNotNull(value.textContent)); } function serialize_3(encoder, value) { encoder.yko(ensureNotNull(value.textContent)); } function serialize_4(encoder, value) { encoder.rko(ensureNotNull(value.textContent)); } function serialize_5(encoder, value) { // Inline function 'nl.adaptivity.xmlutil.dom.getTarget' call var tmp = value.target; var tmp0_elvis_lhs = value.textContent; encoder.sko(tmp + ' ' + (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs)); } function InputKind$Element() { InputKind.call(this, 'Element', 0); InputKind_Element_instance = this; } protoOf(InputKind$Element).xkx = function (outputKind) { return outputKind.equals(OutputKind_Element_getInstance()); }; var InputKind_Element_instance; function InputKind$Attribute() { InputKind.call(this, 'Attribute', 1); InputKind_Attribute_instance = this; } protoOf(InputKind$Attribute).xkx = function (outputKind) { return outputKind.equals(OutputKind_Attribute_getInstance()); }; var InputKind_Attribute_instance; function InputKind$Text() { InputKind.call(this, 'Text', 2); InputKind_Text_instance = this; } protoOf(InputKind$Text).xkx = function (outputKind) { return outputKind.equals(OutputKind_Text_getInstance()); }; var InputKind_Text_instance; var InputKind_entriesInitialized; function InputKind_initEntries() { if (InputKind_entriesInitialized) return Unit_instance; InputKind_entriesInitialized = true; InputKind_Element_instance = new InputKind$Element(); InputKind_Attribute_instance = new InputKind$Attribute(); InputKind_Text_instance = new InputKind$Text(); } function InputKind(name, ordinal) { Enum.call(this, name, ordinal); } protoOf(InputKind).aky = function (xmlDescriptor) { return this.xkx(xmlDescriptor.fky()); }; function InputKind_Element_getInstance() { InputKind_initEntries(); return InputKind_Element_instance; } function InputKind_Attribute_getInstance() { InputKind_initEntries(); return InputKind_Attribute_instance; } function InputKind_Text_getInstance() { InputKind_initEntries(); return InputKind_Text_instance; } var OutputKind_Element_instance; function OutputKind$Attribute() { OutputKind.call(this, 'Attribute', 1); OutputKind_Attribute_instance = this; } protoOf(OutputKind$Attribute).iky = function () { return true; }; var OutputKind_Attribute_instance; function OutputKind$Text() { OutputKind.call(this, 'Text', 2); OutputKind_Text_instance = this; } protoOf(OutputKind$Text).iky = function () { return true; }; var OutputKind_Text_instance; var OutputKind_Mixed_instance; var OutputKind_Inline_instance; var OutputKind_entriesInitialized; function OutputKind_initEntries() { if (OutputKind_entriesInitialized) return Unit_instance; OutputKind_entriesInitialized = true; OutputKind_Element_instance = new OutputKind('Element', 0); OutputKind_Attribute_instance = new OutputKind$Attribute(); OutputKind_Text_instance = new OutputKind$Text(); OutputKind_Mixed_instance = new OutputKind('Mixed', 3); OutputKind_Inline_instance = new OutputKind('Inline', 4); } function OutputKind(name, ordinal) { Enum.call(this, name, ordinal); } protoOf(OutputKind).iky = function () { return false; }; function OutputKind_Element_getInstance() { OutputKind_initEntries(); return OutputKind_Element_instance; } function OutputKind_Attribute_getInstance() { OutputKind_initEntries(); return OutputKind_Attribute_instance; } function OutputKind_Text_getInstance() { OutputKind_initEntries(); return OutputKind_Text_instance; } function OutputKind_Mixed_getInstance() { OutputKind_initEntries(); return OutputKind_Mixed_instance; } function OutputKind_Inline_getInstance() { OutputKind_initEntries(); return OutputKind_Inline_instance; } function PolyBaseInfo(tagName, descriptor) { this.nky_1 = tagName; this.oky_1 = descriptor; } protoOf(PolyBaseInfo).pky = function () { return this.oky_1.a46(); }; protoOf(PolyBaseInfo).toString = function () { return 'PolyBaseInfo(tagName=' + this.nky_1 + ', descriptor=' + this.oky_1 + ')'; }; protoOf(PolyBaseInfo).hashCode = function () { var result = this.nky_1.hashCode(); result = imul(result, 31) + hashCode(this.oky_1) | 0; return result; }; protoOf(PolyBaseInfo).equals = function (other) { if (this === other) return true; if (!(other instanceof PolyBaseInfo)) return false; var tmp0_other_with_cast = other instanceof PolyBaseInfo ? other : THROW_CCE(); if (!this.nky_1.equals(tmp0_other_with_cast.nky_1)) return false; if (!equals(this.oky_1, tmp0_other_with_cast.oky_1)) return false; return true; }; function get_defaultXmlModule() { _init_properties_XML_kt__j4k93v(); return defaultXmlModule; } var defaultXmlModule; function XML$Companion$defaultInstance$lambda($this$$receiver) { return Unit_instance; } function XML_init_$Init$(serializersModule, configure, $this) { serializersModule = serializersModule === VOID ? EmptySerializersModule() : serializersModule; var tmp; if (configure === VOID) { tmp = XML$_init_$lambda_gk87g4; } else { tmp = configure; } configure = tmp; // Inline function 'kotlin.apply' call var this_0 = new Builder(); // Inline function 'kotlin.contracts.contract' call configure(this_0); XML_init_$Init$_0(this_0, serializersModule, $this); return $this; } function XML_init_$Create$(serializersModule, configure) { return XML_init_$Init$(serializersModule, configure, objectCreate(protoOf(XML))); } function collectNamespaces($this, xmlDescriptor, xmlEncoderBase, serializer, value) { var prefixToNamespaceMap = HashMap_init_$Create$(); var namespaceToPrefixMap = HashMap_init_$Create$(); var pendingNamespaces = HashSet_init_$Create$(); var seenDescriptors = HashSet_init_$Create$(); var hasSeenDynamicQname = {_v: false}; var polyCollector = new ChildCollector(null); xmlEncoderBase.qky_1.x4o(polyCollector); collectNamespaces$collect_0(hasSeenDynamicQname, seenDescriptors, namespaceToPrefixMap, prefixToNamespaceMap, pendingNamespaces, xmlDescriptor); var tmp0_iterator = polyCollector.tky_1.w(); while (tmp0_iterator.f()) { var childSerializer = tmp0_iterator.e(); collectNamespaces$collect_0(hasSeenDynamicQname, seenDescriptors, namespaceToPrefixMap, prefixToNamespaceMap, pendingNamespaces, $this.wky(childSerializer)); } if (hasSeenDynamicQname._v) { var collector = new NamespaceCollectingXmlWriter(prefixToNamespaceMap, namespaceToPrefixMap, pendingNamespaces); var base = new XmlEncoderBase(xmlEncoderBase.qky_1, xmlEncoderBase.rky_1, collector); (new XmlEncoder(base, xmlDescriptor, -1)).j4a(serializer, value); } var nsIdx = 1; var tmp1_iterator = pendingNamespaces.w(); while (tmp1_iterator.f()) { var namespaceUri = tmp1_iterator.e(); $l$loop: while (true) { // Inline function 'kotlin.collections.contains' call // Inline function 'kotlin.collections.containsKey' call var key = 'ns' + nsIdx; if (!(isInterface(prefixToNamespaceMap, Map) ? prefixToNamespaceMap : THROW_CCE()).r(key)) { break $l$loop; } nsIdx = nsIdx + 1 | 0; } var prefix = 'ns' + nsIdx; // Inline function 'kotlin.collections.set' call prefixToNamespaceMap.s(prefix, namespaceUri); // Inline function 'kotlin.collections.set' call namespaceToPrefixMap.s(namespaceUri, prefix); } // Inline function 'kotlin.sequences.sortedBy' call var tmp = asSequence_0(prefixToNamespaceMap); var tmp_0 = filterNot(tmp, XML$collectNamespaces$lambda); var this_0 = map(tmp_0, XML$collectNamespaces$lambda_0); // Inline function 'kotlin.comparisons.compareBy' call var tmp_1 = XML$collectNamespaces$lambda_1; var tmp$ret$2 = new sam$kotlin_Comparator$0(tmp_1); var tmp$ret$3 = sortedWith(this_0, tmp$ret$2); return toList_0(tmp$ret$3); } function xmlDescriptor($this, serialDescriptor, rootName) { var tmp; if (rootName == null) { var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = serialDescriptor.p46().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlSerialName) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_safe_receiver = tmp$ret$0; tmp = tmp0_safe_receiver == null ? null : toQName(tmp0_safe_receiver, serialDescriptor.a46(), null); } else { tmp = rootName; } var tmp2_elvis_lhs = tmp; var tmp_0; if (tmp2_elvis_lhs == null) { var tmp_1 = DeclaredNameInfo_init_$Create$(serialDescriptor.a46()); tmp_0 = $this.uky_1.fkz_1.kkz(tmp_1, new NamespaceImpl('', '')); } else { tmp_0 = tmp2_elvis_lhs; } var serialName = tmp_0; return new XmlRootDescriptor($this.uky_1, $this.vky_1, serialDescriptor, serialName, false); } function XML_init_$Init$_0(config, serializersModule, $this) { serializersModule = serializersModule === VOID ? EmptySerializersModule() : serializersModule; XML.call($this, XmlConfig_init_$Create$(config), serializersModule); return $this; } function Companion() { Companion_instance_0 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.lkz_1 = [XmlQNameSerializer_getInstance(), NodeSerializer_getInstance(), ElementSerializer_getInstance(), CompactFragmentSerializer_getInstance()]; var tmp_0 = this; tmp_0.mkz_1 = XML_init_$Create$(VOID, XML$Companion$defaultInstance$lambda); } protoOf(Companion).d46 = function () { return this.mkz_1.vky_1; }; protoOf(Companion).b46 = function (serializer, value) { return this.mkz_1.b46(serializer, value); }; protoOf(Companion).c46 = function (deserializer, string) { return this.mkz_1.c46(deserializer, string); }; var Companion_instance_0; function Companion_getInstance_4() { if (Companion_instance_0 == null) new Companion(); return Companion_instance_0; } function XmlCodecConfig() { } function XmlOutput() { } function XmlInput() { } function sam$kotlin_Comparator$0(function_0) { this.qkz_1 = function_0; } protoOf(sam$kotlin_Comparator$0).qa = function (a, b) { return this.qkz_1(a, b); }; protoOf(sam$kotlin_Comparator$0).compare = function (a, b) { return this.qa(a, b); }; function collectNamespaces$collect(namespaceToPrefixMap, prefixToNamespaceMap, pendingNamespaces, prefix, namespaceUri) { // Inline function 'kotlin.collections.contains' call // Inline function 'kotlin.collections.containsKey' call if (!(isInterface(namespaceToPrefixMap, Map) ? namespaceToPrefixMap : THROW_CCE()).r(namespaceUri)) { // Inline function 'kotlin.collections.contains' call // Inline function 'kotlin.collections.containsKey' call if ((isInterface(prefixToNamespaceMap, Map) ? prefixToNamespaceMap : THROW_CCE()).r(prefix)) { // Inline function 'kotlin.text.isEmpty' call if (charSequenceLength(namespaceUri) === 0) { var tmp0_safe_receiver = prefixToNamespaceMap.q(''); if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.XML.collectNamespaces.collect.' call pendingNamespaces.j1(tmp0_safe_receiver); namespaceToPrefixMap.u2(tmp0_safe_receiver); } // Inline function 'kotlin.collections.set' call prefixToNamespaceMap.s('', ''); // Inline function 'kotlin.collections.set' call namespaceToPrefixMap.s('', ''); } else { pendingNamespaces.j1(namespaceUri); } } else { if (pendingNamespaces.b1(namespaceUri)) { pendingNamespaces.k1(namespaceUri); } // Inline function 'kotlin.collections.set' call prefixToNamespaceMap.s(prefix, namespaceUri); // Inline function 'kotlin.collections.set' call namespaceToPrefixMap.s(namespaceUri, prefix); } } } function collectNamespaces$collect_0(hasSeenDynamicQname, seenDescriptors, namespaceToPrefixMap, prefixToNamespaceMap, pendingNamespaces, descriptor) { // Inline function 'nl.adaptivity.xmlutil.prefix' call var prefix = descriptor.xkz().dkr(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var namespaceUri = descriptor.xkz().bkr(); var tmp; var tmp_0; if (!descriptor.ykz().equals(OutputKind_Attribute_getInstance())) { tmp_0 = true; } else { // Inline function 'kotlin.text.isNotEmpty' call tmp_0 = charSequenceLength(namespaceUri) > 0; } if (tmp_0) { tmp = true; } else { // Inline function 'kotlin.text.isNotEmpty' call tmp = charSequenceLength(prefix) > 0; } if (tmp) { collectNamespaces$collect(namespaceToPrefixMap, prefixToNamespaceMap, pendingNamespaces, prefix, namespaceUri); } // Inline function 'kotlin.collections.mutableListOf' call var childrenToCollect = ArrayList_init_$Create$(); if (descriptor instanceof XmlPolymorphicDescriptor) { childrenToCollect.n1(descriptor.kl0_1.p2()); } var inductionVariable = 0; var last = descriptor.q46(); if (inductionVariable < last) do { var elementIndex = inductionVariable; inductionVariable = inductionVariable + 1 | 0; childrenToCollect.j1(descriptor.u46(elementIndex)); } while (inductionVariable < last); var tmp1_iterator = childrenToCollect.w(); while (tmp1_iterator.f()) { var childDescriptor = tmp1_iterator.e(); if (!hasSeenDynamicQname._v ? contains(Companion_getInstance_4().lkz_1, childDescriptor.skz_1) : false) { hasSeenDynamicQname._v = true; } if (!seenDescriptors.b1(childDescriptor)) { seenDescriptors.j1(childDescriptor); collectNamespaces$collect_0(hasSeenDynamicQname, seenDescriptors, namespaceToPrefixMap, prefixToNamespaceMap, pendingNamespaces, childDescriptor); } } } function XML$_init_$lambda_gk87g4($this$null) { return Unit_instance; } function XML$collectNamespaces$lambda(_name_for_destructuring_parameter_0__wldtmu) { // Inline function 'kotlin.collections.component1' call var prefix = _name_for_destructuring_parameter_0__wldtmu.s2(); // Inline function 'kotlin.collections.component2' call var ns = _name_for_destructuring_parameter_0__wldtmu.t2(); var tmp; // Inline function 'kotlin.text.isEmpty' call if (charSequenceLength(prefix) === 0) { // Inline function 'kotlin.text.isEmpty' call tmp = charSequenceLength(ns) === 0; } else { tmp = false; } return tmp; } function XML$collectNamespaces$lambda_0(it) { return new NamespaceImpl(it.s2(), it.t2()); } function XML$collectNamespaces$lambda_1(a, b) { // Inline function 'kotlin.comparisons.compareValuesBy' call // Inline function 'nl.adaptivity.xmlutil.serialization.XML.collectNamespaces.' call var tmp = a.mku_1; // Inline function 'nl.adaptivity.xmlutil.serialization.XML.collectNamespaces.' call var tmp$ret$1 = b.mku_1; return compareValues(tmp, tmp$ret$1); } function XML(config, serializersModule) { Companion_getInstance_4(); serializersModule = serializersModule === VOID ? EmptySerializersModule() : serializersModule; this.uky_1 = config; this.vky_1 = plus(serializersModule, get_defaultXmlModule()); } protoOf(XML).d46 = function () { return this.vky_1; }; protoOf(XML).b46 = function (serializer, value) { return this.nl0(serializer, value, null); }; protoOf(XML).nl0 = function (serializer, value, prefix) { var stringWriter = new StringWriter(); $l$block: { // Inline function 'nl.adaptivity.xmlutil.core.impl.multiplatform.use' call var this_0 = XmlStreaming_instance.nkw(stringWriter, this.uky_1.ckz_1, this.uky_1.dkz_1); try { this.ol0(this_0, serializer, value, prefix); break $l$block; }finally { this_0.n(); } } return stringWriter.toString(); }; protoOf(XML).ol0 = function (target, serializer, value, prefix) { target.ikp(this.uky_1.ekz_1); if (!(prefix == null)) { var root = XmlRootDescriptor_init_$Create$(this.uky_1, this.vky_1, serializer.a45()); var serialQName = copy(root.u46(0).xkz(), prefix); this.pl0(target, serializer, value, serialQName); } else { this.pl0(target, serializer, value, null); } }; protoOf(XML).pl0 = function (target, serializer, value, rootName) { target.ikp(this.uky_1.ekz_1); if (target.gkn() === 0) { switch (this.uky_1.dkz_1.ab_1) { case 1: target.dkp(this.uky_1.hkz_1.ekv_1); break; case 3: target.dkp(this.uky_1.hkz_1.ekv_1, 'UTF-8'); break; case 0: case 2: break; } } var root = new XmlRootDescriptor(this.uky_1, this.vky_1, serializer.a45(), rootName, false); var xmlDescriptor = root.u46(0); var xmlEncoderBase = new XmlEncoderBase(this.vky_1, this.uky_1, target); var tmp; if (this.uky_1.jkz_1) { var collectedNamespaces = collectNamespaces(this, xmlDescriptor, xmlEncoderBase, serializer, value); // Inline function 'kotlin.collections.associate' call var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(collectedNamespaces, 10)), 16); // Inline function 'kotlin.collections.associateTo' call var destination = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator = collectedNamespaces.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'kotlin.collections.plusAssign' call // Inline function 'nl.adaptivity.xmlutil.serialization.XML.encodeToWriter.' call var pair = to(element.ckn(), element.ekn()); destination.s(pair.w6_1, pair.x6_1); } var prefixMap = destination; // Inline function 'kotlin.apply' call var this_0 = Builder_init_$Create$(this.uky_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.XML.encodeToWriter.' call var tmp_0 = this_0; var tmp0_elvis_lhs = this_0.bl1_1; tmp_0.bl1_1 = new PrefixWrappingPolicy(tmp0_elvis_lhs == null ? this_0.il1().f3() : tmp0_elvis_lhs, prefixMap); var newConfig = XmlConfig_init_$Create$(this_0); var remappedEncoderBase = new XmlEncoderBase(this.vky_1, newConfig, target); var newRootName = rootName == null ? null : remapPrefix_0(rootName, prefixMap); var newRoot = new XmlRootDescriptor(newConfig, this.vky_1, serializer.a45(), newRootName, false); var newDescriptor = newRoot.u46(0); tmp = new NSAttrXmlEncoder(remappedEncoderBase, newDescriptor, collectedNamespaces, -1); } else { tmp = new XmlEncoder(xmlEncoderBase, xmlDescriptor, -1); } var encoder = tmp; serializer.b45(encoder, value); }; protoOf(XML).c46 = function (deserializer, string) { return this.rl1(deserializer, XmlStreaming_instance.mkw(string)); }; protoOf(XML).sl1 = function (deserializer, reader, rootName) { var tmp; if (rootName == null) { var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = deserializer.a45().p46().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlSerialName) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_safe_receiver = tmp$ret$0; tmp = tmp0_safe_receiver == null ? null : toQName(tmp0_safe_receiver, deserializer.a45().a46(), null); } else { tmp = rootName; } var serialName = tmp; skipPreamble(reader); var xmlDecoderBase = new XmlDecoderBase(this.vky_1, this.uky_1, reader); var rootDescriptor = new XmlRootDescriptor(this.uky_1, this.vky_1, deserializer.a45(), serialName, false); var elementDescriptor = rootDescriptor.u46(0); var tmp2_safe_receiver = elementDescriptor instanceof XmlPolymorphicDescriptor ? elementDescriptor : null; var tmp_0; if (tmp2_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.run' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.XML.decodeFromReader.' call var tagName = serialName == null ? reader.ec() : serialName; var tmp$ret$2; $l$block_1: { // Inline function 'kotlin.collections.singleOrNull' call var single = null; var found = false; var tmp0_iterator_0 = tmp2_safe_receiver.kl0_1.p2().w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.XML.decodeFromReader..' call if (isEquivalent(tagName, element.xkz())) { if (found) { tmp$ret$2 = null; break $l$block_1; } single = element; found = true; } } if (!found) { tmp$ret$2 = null; break $l$block_1; } tmp$ret$2 = single; } var tmp1_safe_receiver = tmp$ret$2; var tmp_1; if (tmp1_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.XML.decodeFromReader..' call tmp_1 = new PolyInfo(tagName, 0, tmp1_safe_receiver); } tmp_0 = tmp_1; } var polyInfo = tmp_0; var decoder = new XmlDecoder(xmlDecoderBase, elementDescriptor, polyInfo); return decoder.r48(deserializer); }; protoOf(XML).rl1 = function (deserializer, reader, rootName, $super) { rootName = rootName === VOID ? null : rootName; return $super === VOID ? this.sl1(deserializer, reader, rootName) : $super.sl1.call(this, deserializer, reader, rootName); }; protoOf(XML).al2 = function (deserializer, rootName) { return xmlDescriptor(this, deserializer.a45(), rootName); }; protoOf(XML).wky = function (deserializer, rootName, $super) { rootName = rootName === VOID ? null : rootName; return $super === VOID ? this.al2(deserializer, rootName) : $super.al2.call(this, deserializer, rootName); }; function copy(_this__u8e3s4, prefix) { var tmp; if (prefix === VOID) { // Inline function 'nl.adaptivity.xmlutil.prefix' call tmp = _this__u8e3s4.dkr(); } else { tmp = prefix; } prefix = tmp; _init_properties_XML_kt__j4k93v(); var tmp_0; // Inline function 'nl.adaptivity.xmlutil.prefix' call if (prefix === _this__u8e3s4.dkr()) { tmp_0 = _this__u8e3s4; } else { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp_1 = _this__u8e3s4.bkr(); // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$3 = _this__u8e3s4.ckr(); tmp_0 = new QName(tmp_1, tmp$ret$3, prefix); } return tmp_0; } function toQName(_this__u8e3s4, serialName, parentNamespace) { _init_properties_XML_kt__j4k93v(); var tmp; if (_this__u8e3s4.cl2_1 === get_UNSET_ANNOTATION_VALUE()) { var tmp_0; if (_this__u8e3s4.bl2_1 === get_UNSET_ANNOTATION_VALUE()) { var tmp_1; if (parentNamespace == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.toQName.' call tmp_1 = QName_init_$Create$_0(parentNamespace.ckn(), serialName); } var tmp2_elvis_lhs = tmp_1; tmp_0 = tmp2_elvis_lhs == null ? QName_init_$Create$(serialName) : tmp2_elvis_lhs; } else { var tmp_2; if (parentNamespace == null) { tmp_2 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.toQName.' call tmp_2 = QName_init_$Create$_0(parentNamespace.ckn(), _this__u8e3s4.bl2_1); } var tmp4_elvis_lhs = tmp_2; tmp_0 = tmp4_elvis_lhs == null ? QName_init_$Create$(_this__u8e3s4.bl2_1) : tmp4_elvis_lhs; } tmp = tmp_0; } else if (_this__u8e3s4.bl2_1 === get_UNSET_ANNOTATION_VALUE()) { tmp = _this__u8e3s4.dl2_1 === get_UNSET_ANNOTATION_VALUE() ? QName_init_$Create$_0(serialName, _this__u8e3s4.cl2_1) : new QName(serialName, _this__u8e3s4.cl2_1, _this__u8e3s4.dl2_1); } else if (_this__u8e3s4.dl2_1 === get_UNSET_ANNOTATION_VALUE()) { tmp = QName_init_$Create$_0(_this__u8e3s4.cl2_1, _this__u8e3s4.bl2_1); } else { tmp = new QName(_this__u8e3s4.cl2_1, _this__u8e3s4.bl2_1, _this__u8e3s4.dl2_1); } return tmp; } function toQName_0(_this__u8e3s4) { _init_properties_XML_kt__j4k93v(); return _this__u8e3s4.fl2_1 === get_UNSET_ANNOTATION_VALUE() ? QName_init_$Create$(_this__u8e3s4.el2_1) : _this__u8e3s4.gl2_1 === get_UNSET_ANNOTATION_VALUE() ? QName_init_$Create$_0(_this__u8e3s4.fl2_1, _this__u8e3s4.el2_1) : new QName(_this__u8e3s4.fl2_1, _this__u8e3s4.el2_1, _this__u8e3s4.gl2_1); } function getValueChild(_this__u8e3s4) { _init_properties_XML_kt__j4k93v(); var inductionVariable = 0; var last = _this__u8e3s4.q46(); if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = _this__u8e3s4.hl2().t46(i); var tmp; if (isInterface(this_0, Collection)) { tmp = this_0.d1(); } else { tmp = false; } if (tmp) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.getValueChild.' call if (element instanceof XmlValue) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) return i; } while (inductionVariable < last); return -1; } function getAttrMap(_this__u8e3s4) { _init_properties_XML_kt__j4k93v(); var inductionVariable = 0; var last = _this__u8e3s4.q46(); if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var tmp = _this__u8e3s4.u46(i); if (tmp instanceof XmlAttributeMapDescriptor) return i; } while (inductionVariable < last); return -1; } function copy_0(_this__u8e3s4, namespaceURI, localPart, prefix) { var tmp; if (namespaceURI === VOID) { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call tmp = _this__u8e3s4.bkr(); } else { tmp = namespaceURI; } namespaceURI = tmp; var tmp_0; if (localPart === VOID) { // Inline function 'nl.adaptivity.xmlutil.localPart' call tmp_0 = _this__u8e3s4.ckr(); } else { tmp_0 = localPart; } localPart = tmp_0; var tmp_1; if (prefix === VOID) { // Inline function 'nl.adaptivity.xmlutil.prefix' call tmp_1 = _this__u8e3s4.dkr(); } else { tmp_1 = prefix; } prefix = tmp_1; _init_properties_XML_kt__j4k93v(); return new QName(namespaceURI, localPart, prefix); } function getValueChild_0(_this__u8e3s4) { _init_properties_XML_kt__j4k93v(); var inductionVariable = 0; var last = _this__u8e3s4.q46(); if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = _this__u8e3s4.t46(i); var tmp; if (isInterface(this_0, Collection)) { tmp = this_0.d1(); } else { tmp = false; } if (tmp) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.getValueChild.' call if (element instanceof XmlValue) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) return i; } while (inductionVariable < last); return -3; } var properties_initialized_XML_kt_umqxeh; function _init_properties_XML_kt__j4k93v() { if (!properties_initialized_XML_kt_umqxeh) { properties_initialized_XML_kt_umqxeh = true; var tmp = getPlatformDefaultModule(); // Inline function 'kotlinx.serialization.modules.SerializersModule' call var builder = new SerializersModuleBuilder(); // Inline function 'nl.adaptivity.xmlutil.serialization.defaultXmlModule.' call builder.c4p(getKClass(CompactFragment), CompactFragmentSerializer_getInstance()); builder.c4p(getKClass(QName), QNameSerializer_getInstance()); var tmp$ret$0 = builder.f3(); defaultXmlModule = plus(tmp, tmp$ret$0); } } function XmlDecoderBase$SerialValueDecoder$decodeInline$1() { this.il2_1 = null; } protoOf(XmlDecoderBase$SerialValueDecoder$decodeInline$1).jl2 = function (_set____db54di) { this.il2_1 = _set____db54di; }; protoOf(XmlDecoderBase$SerialValueDecoder$decodeInline$1).kl2 = function () { return this.il2_1; }; function toNonTransparentChild(_this__u8e3s4, $this) { var result = _this__u8e3s4; $l$loop: while (true) { var tmp; if (result instanceof XmlInlineDescriptor) { tmp = true; } else { var tmp_0; if (result instanceof XmlListDescriptor) { tmp_0 = result.sl2(); } else { tmp_0 = false; } tmp = tmp_0; } if (!tmp) { break $l$loop; } result = result.u46(0); } var tmp_1; var tmp_2; if (result instanceof XmlMapDescriptor) { tmp_2 = result.sl2(); } else { tmp_2 = false; } if (tmp_2) { tmp_1 = result.el3(); } else { tmp_1 = false; } if (tmp_1) { return toNonTransparentChild(result.u46(1), $this); } return result; } function nextNulledItemsIdx($this) { var inductionVariable = $this.ql3_1 + 1 | 0; var last = $this.pl3_1.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (!($this.pl3_1[i] ? true : $this.xl3_1.x46(i))) { var childDesc = $this.xl3_1.u46(i); var tmp1_safe_receiver = childDesc instanceof XmlValueDescriptor ? childDesc : null; var default_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gl4_1; var tmp; if (i === getValueChild($this.xl3_1)) { tmp = true; } else if (!(default_0 == null)) { tmp = true; } else { var tmp_0; if (childDesc.l46()) { tmp_0 = true; } else { var tmp2_subject = childDesc.s46(); tmp_0 = (equals(tmp2_subject, LIST_getInstance()) ? true : equals(tmp2_subject, MAP_getInstance())) ? true : false; } tmp = tmp_0; } var defaultOrList = tmp; if (defaultOrList) { $this.ql3_1 = i; return Unit_instance; } } } while (inductionVariable < last); $this.ql3_1 = $this.pl3_1.length; } function indexOf$checkInputType(_this__u8e3s4, $inputType, this$0) { return $inputType.aky(this$0.xl3_1.u46(_this__u8e3s4)) ? _this__u8e3s4 : null; } function indexOf$checkInputType_0(_this__u8e3s4, $inputType) { return $inputType.aky(_this__u8e3s4.kl4_1) ? _this__u8e3s4 : null; } function _get_parentXmlDescriptor__yo818r($this) { var tmp = $this.xl3_1.rkz_1.a45(); return tmp instanceof XmlDescriptor ? tmp : THROW_CCE(); } function XmlDecoderBase$AnonymousMapDecoder$decodeElementIndex$lambda(this$0) { return function () { return '' + this$0.xl3_1.ll4() + ' != ' + this$0.ekx().ec(); }; } function DecodeCommons($outer, xmlDescriptor) { this.ol4_1 = $outer; XmlCodec.call(this, $outer, xmlDescriptor); } protoOf(DecodeCommons).t39 = function () { return this.ol4_1.rky_1; }; protoOf(DecodeCommons).d46 = function () { return this.ol4_1.qky_1; }; protoOf(DecodeCommons).ekx = function () { return this.ol4_1.rl4_1; }; protoOf(DecodeCommons).e48 = function () { return null; }; protoOf(DecodeCommons).f48 = function () { return toBoolean(this.tl4()); }; protoOf(DecodeCommons).g48 = function () { var tmp; if (this.ul4_1.wl4()) { // Inline function 'kotlin.UByte.toByte' call var this_0 = toUByte(this.tl4()); tmp = _UByte___get_data__impl__jof9qr(this_0); } else { tmp = toByte(this.tl4()); } return tmp; }; protoOf(DecodeCommons).h48 = function () { var tmp; if (this.ul4_1.wl4()) { // Inline function 'kotlin.UShort.toShort' call var this_0 = toUShort(this.tl4()); tmp = _UShort___get_data__impl__g0245(this_0); } else { tmp = toShort(this.tl4()); } return tmp; }; protoOf(DecodeCommons).i48 = function () { var tmp; if (this.ul4_1.wl4()) { // Inline function 'kotlin.UInt.toInt' call var this_0 = toUInt(this.tl4()); tmp = _UInt___get_data__impl__f0vqqw(this_0); } else { tmp = toInt(this.tl4()); } return tmp; }; protoOf(DecodeCommons).j48 = function () { var tmp; if (this.ul4_1.wl4()) { // Inline function 'kotlin.ULong.toLong' call var this_0 = toULong(this.tl4()); tmp = _ULong___get_data__impl__fggpzb(this_0); } else { tmp = toLong(this.tl4()); } return tmp; }; protoOf(DecodeCommons).k48 = function () { // Inline function 'kotlin.text.toFloat' call var this_0 = this.tl4(); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return toDouble(this_0); }; protoOf(DecodeCommons).l48 = function () { return toDouble(this.tl4()); }; protoOf(DecodeCommons).m48 = function () { return single_0(this.tl4()); }; protoOf(DecodeCommons).o48 = function (enumDescriptor) { var stringName = this.tl4(); var inductionVariable = 0; var last = enumDescriptor.q46(); if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (stringName === this.t39().fkz_1.xl4(enumDescriptor, i)) return i; } while (inductionVariable < last); throw SerializationException_init_$Create$('No enum constant found for name ' + stringName + ' in ' + enumDescriptor.a46()); }; protoOf(DecodeCommons).tl4 = function (defaultOverEmpty, $super) { defaultOverEmpty = defaultOverEmpty === VOID ? true : defaultOverEmpty; return $super === VOID ? this.yl4(defaultOverEmpty) : $super.yl4.call(this, defaultOverEmpty); }; protoOf(DecodeCommons).n48 = function () { return this.yl4(false); }; function XmlDecoder($outer, xmlDescriptor, polyInfo, attrIndex) { polyInfo = polyInfo === VOID ? null : polyInfo; attrIndex = attrIndex === VOID ? -1 : attrIndex; this.zl1_1 = $outer; DecodeCommons.call(this, $outer, xmlDescriptor); this.wl1_1 = polyInfo; this.xl1_1 = attrIndex; this.yl1_1 = false; } protoOf(XmlDecoder).zl4 = function () { return null; }; protoOf(XmlDecoder).d48 = function () { if (this.zl1_1.al5()) return false; return !this.ekx().lkn().equals(EventType_END_DOCUMENT_getInstance()); }; protoOf(XmlDecoder).e48 = function () { if (this.zl1_1.al5()) { this.ekx().tks(); var tmp = this.ekx(); var tmp_0 = EventType_END_ELEMENT_getInstance(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp_1 = this.a46().bkr(); // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$1 = this.a46().ckr(); tmp.vkn(tmp_0, tmp_1, tmp$ret$1); return null; } return protoOf(DecodeCommons).e48.call(this); }; protoOf(XmlDecoder).p48 = function (descriptor) { this.yl1_1 = true; return this; }; protoOf(XmlDecoder).yl4 = function (defaultOverEmpty) { var tmp = this.ul4_1; var tmp0_safe_receiver = tmp instanceof XmlValueDescriptor ? tmp : null; var defaultString = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gl4_1; var descOutputKind = this.ul4_1.fky(); var tmp_0; if (this.xl1_1 >= 0) { tmp_0 = this.ekx().ukn(this.xl1_1); } else { var tmp_1; switch (descOutputKind.ab_1) { case 0: var tmp_2 = this.ekx(); var tmp_3 = EventType_START_ELEMENT_getInstance(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp_4 = this.a46().bkr(); // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$1 = this.a46().ckr(); tmp_2.vkn(tmp_3, tmp_4, tmp$ret$1); tmp_1 = readSimpleElement(this.ekx()); break; case 1: throw SerializationException_init_$Create$('Attribute parsing without a concrete index is unsupported'); case 4: throw SerializationException_init_$Create$('Inline classes can not be decoded directly'); case 3: tmp_1 = allConsecutiveTextContent(this.ekx()); break; case 2: var tmp_5; if (this.ul4_1.bl5()) { tmp_5 = allConsecutiveTextContent(this.ekx()); } else { tmp_5 = allText(this.ekx()); } tmp_1 = tmp_5; break; default: noWhenBranchMatchedException(); break; } tmp_0 = tmp_1; } var stringValue = tmp_0; var tmp_6; var tmp_7; var tmp_8; if (defaultOverEmpty) { // Inline function 'kotlin.text.isEmpty' call tmp_8 = charSequenceLength(stringValue) === 0; } else { tmp_8 = false; } if (tmp_8) { tmp_7 = !(defaultString == null); } else { tmp_7 = false; } if (tmp_7) { tmp_6 = defaultString; } else { tmp_6 = stringValue; } return tmp_6; }; protoOf(XmlDecoder).s48 = function (descriptor) { throw AssertionError_init_$Create$('This should not happen as decodeSerializableValue should be called first'); }; protoOf(XmlDecoder).r48 = function (deserializer) { var deser = this.ul4_1.cl5(deserializer); var tmp; var tmp_0; if (this.yl1_1) { var tmp_1 = this.ul4_1; tmp_0 = tmp_1 instanceof XmlInlineDescriptor; } else { tmp_0 = false; } if (tmp_0) { tmp = this.ul4_1.u46(0); } else { tmp = this.ul4_1; } var desc = tmp; var serialValueDecoder = new SerialValueDecoder(this.zl1_1, desc, this.wl1_1, this.xl1_1, this.zl4()); var value = deser.c45(serialValueDecoder); var tmp0_safe_receiver = serialValueDecoder.ml5_1; var tagId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kl2(); if (!(tagId == null)) { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call $l$block: { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call if (value == null) { // Inline function 'kotlin.checkNotNull.' call var message = 'Required value was null.'; throw IllegalStateException_init_$Create$(toString(message)); } else { break $l$block; } } if (!(this.zl1_1.sl4_1.s(tagId, value) == null)) throw XmlException_init_$Create$('Duplicate use of id ' + tagId); } return value; }; function StringDecoder($outer, xmlDescriptor, stringValue) { this.tl5_1 = $outer; DecodeCommons.call(this, $outer, xmlDescriptor); this.sl5_1 = stringValue; } protoOf(StringDecoder).s48 = function (descriptor) { throw UnsupportedOperationException_init_$Create$('Strings cannot be decoded to structures'); }; protoOf(StringDecoder).d48 = function () { return true; }; protoOf(StringDecoder).p48 = function (descriptor) { return new StringDecoder(this.tl5_1, this.ul4_1.u46(0), this.sl5_1); }; protoOf(StringDecoder).yl4 = function (defaultOverEmpty) { var tmp = this.ul4_1; var tmp0_safe_receiver = tmp instanceof XmlValueDescriptor ? tmp : null; var defaultString = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gl4_1; var tmp_0; if (defaultOverEmpty ? !(defaultString == null) : false) { // Inline function 'kotlin.text.isEmpty' call var this_0 = this.sl5_1; tmp_0 = charSequenceLength(this_0) === 0; } else { tmp_0 = false; } if (tmp_0) return defaultString; return this.sl5_1; }; protoOf(StringDecoder).r48 = function (deserializer) { var deser = this.ul4_1.cl5(deserializer); return deser.c45(this); }; function SerialValueDecoder($outer, xmlDescriptor, polyInfo, attrIndex, typeDiscriminatorName) { this.ol5_1 = $outer; XmlDecoder.call(this, $outer, xmlDescriptor, polyInfo, attrIndex); this.kl5_1 = typeDiscriminatorName; this.ll5_1 = false; this.ml5_1 = null; var tmp = this; // Inline function 'kotlin.collections.mutableListOf' call tmp.nl5_1 = ArrayList_init_$Create$(); } protoOf(SerialValueDecoder).zl4 = function () { return this.kl5_1; }; protoOf(SerialValueDecoder).ul5 = function (name) { this.nl5_1.j1(name); }; protoOf(SerialValueDecoder).yl4 = function (defaultOverEmpty) { var value = protoOf(XmlDecoder).yl4.call(this, defaultOverEmpty); if (this.xl1_1 >= 0 ? this.ul4_1.vl5() : false) { var tmp0_safe_receiver = this.ml5_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.run' call // Inline function 'kotlin.contracts.contract' call tmp0_safe_receiver.jl2(value); } } return value; }; protoOf(SerialValueDecoder).d48 = function () { this.ll5_1 = true; return protoOf(XmlDecoder).d48.call(this); }; protoOf(SerialValueDecoder).r48 = function (deserializer) { return this.ll5_1 ? deserializer.c45(this) : protoOf(XmlDecoder).r48.call(this, deserializer); }; protoOf(SerialValueDecoder).p48 = function (descriptor) { var tmp = this; tmp.ml5_1 = new XmlDecoderBase$SerialValueDecoder$decodeInline$1(); return protoOf(XmlDecoder).p48.call(this, descriptor); }; protoOf(SerialValueDecoder).s48 = function (descriptor) { if (descriptor.l46()) { // Inline function 'kotlin.also' call var this_0 = new TagDecoder(this.ol5_1, this.ul4_1, this.zl4()); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call this.ml5_1 = this_0; return this_0; } // Inline function 'kotlin.also' call var tmp; var tmp_0 = this.ul4_1.s46(); if (tmp_0 instanceof PrimitiveKind) { throw AssertionError_init_$Create$('A primitive is not a composite'); } else { var tmp_1 = this.ul4_1; if (tmp_1 instanceof XmlPolymorphicDescriptor) { // Inline function 'kotlin.also' call var this_1 = new PolymorphicDecoder(this.ol5_1, this.ul4_1, this.wl1_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call this.ml5_1 = this_1; tmp = this_1; } else { var tmp_2 = this.ul4_1; if (tmp_2 instanceof XmlListDescriptor) { var tmp_3; if (this.ul4_1.fky().equals(OutputKind_Attribute_getInstance())) { // Inline function 'kotlin.also' call var this_2 = new AttributeListDecoder(this.ol5_1, this.ul4_1, this.xl1_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call this.ml5_1 = this_2; tmp_3 = this_2; } else if (this.ul4_1.sl2()) { // Inline function 'kotlin.also' call var this_3 = new AnonymousListDecoder(this.ol5_1, this.ul4_1, this.wl1_1, this.zl4()); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call this.ml5_1 = this_3; tmp_3 = this_3; } else { // Inline function 'kotlin.also' call var this_4 = new NamedListDecoder(this.ol5_1, this.ul4_1, this.zl4()); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call this.ml5_1 = this_4; tmp_3 = this_4; } tmp = tmp_3; } else { var tmp_4 = this.ul4_1; if (tmp_4 instanceof XmlMapDescriptor) { var tmp_5; if (this.ul4_1.sl2()) { // Inline function 'kotlin.also' call var this_5 = new AnonymousMapDecoder(this.ol5_1, this.ul4_1, this.wl1_1, this.zl4()); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call this.ml5_1 = this_5; tmp_5 = this_5; } else { // Inline function 'kotlin.also' call var this_6 = new NamedMapDecoder(this.ol5_1, this.ul4_1, this.wl1_1, this.zl4()); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call this.ml5_1 = this_6; tmp_5 = this_6; } tmp = tmp_5; } else { // Inline function 'kotlin.also' call var this_7 = new TagDecoder(this.ol5_1, this.ul4_1, this.zl4()); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call this.ml5_1 = this_7; tmp = this_7; } } } } var this_8 = tmp; // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.SerialValueDecoder.beginStructure.' call var tmp0_iterator = this.nl5_1.w(); while (tmp0_iterator.f()) { var attrName = tmp0_iterator.e(); this_8.ul5(attrName); } return this_8; }; function NullDecoder($outer, xmlDescriptor) { this.dl6_1 = $outer; XmlDecoder.call(this, $outer, xmlDescriptor); } protoOf(NullDecoder).d48 = function () { return false; }; protoOf(NullDecoder).e49 = function (descriptor, index, deserializer, previousValue) { var tmp = this.ul4_1; var tmp0_safe_receiver = tmp instanceof XmlValueDescriptor ? tmp : null; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.el6(this.dl6_1, deserializer); var default_0 = tmp1_elvis_lhs == null ? previousValue : tmp1_elvis_lhs; return (default_0 == null ? true : !(default_0 == null)) ? default_0 : THROW_CCE(); }; protoOf(NullDecoder).g49 = function (descriptor, index, deserializer, previousValue) { return null; }; protoOf(NullDecoder).s48 = function (descriptor) { return this; }; protoOf(NullDecoder).t48 = function (descriptor) { }; protoOf(NullDecoder).i49 = function (descriptor) { var tmp0_subject = descriptor.s46(); var tmp; if (tmp0_subject instanceof MAP) { tmp = true; } else { tmp = tmp0_subject instanceof LIST; } if (tmp) { return -1; } else { throw AssertionError_init_$Create$('Null objects have no members'); } }; protoOf(NullDecoder).u48 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).v48 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).w48 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).x48 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).j49 = function (descriptor) { return 0; }; protoOf(NullDecoder).y48 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).z48 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).a49 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).b49 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).c49 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; protoOf(NullDecoder).d49 = function (descriptor, index) { throw AssertionError_init_$Create$('Null objects have no members'); }; function TagDecoder($outer, xmlDescriptor, typeDiscriminatorName) { this.yl6_1 = $outer; TagDecoderBase.call(this, $outer, xmlDescriptor, typeDiscriminatorName); this.xl6_1 = this.ekx().ec(); } protoOf(TagDecoder).t48 = function (descriptor) { if (!this.vl3_1) { var index = this.i49(descriptor); if (!(index === -1)) throw new XmlSerialException('Unexpected content in end structure'); } this.ekx().wks(EventType_END_ELEMENT_getInstance(), this.xl6_1); }; function TagDecoderBase($outer, xmlDescriptor, typeDiscriminatorName) { this.wl3_1 = $outer; XmlTagCodec.call(this, $outer, xmlDescriptor); this.hl3_1 = typeDiscriminatorName; this.il3_1 = null; var tmp = this; // Inline function 'kotlin.collections.mutableListOf' call tmp.jl3_1 = ArrayList_init_$Create$(); this.ml3_1 = xmlDescriptor.bl5(); this.nl3_1 = this.ekx().lkn().equals(EventType_START_ELEMENT_getInstance()) ? this.ekx().kkn() : 0; this.ol3_1 = this.ekx().gkn(); this.pl3_1 = booleanArray(xmlDescriptor.q46()); this.ql3_1 = -1; this.rl3_1 = -1; this.sl3_1 = null; this.tl3_1 = getAttrMap(xmlDescriptor); this.ul3_1 = ArrayDeque_init_$Create$(); this.vl3_1 = false; // Inline function 'kotlin.collections.mutableMapOf' call var polyMap = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.collections.mutableMapOf' call var nameMap = LinkedHashMap_init_$Create$(); var inductionVariable = 0; var last = xmlDescriptor.q46(); if (inductionVariable < last) do { var idx = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var child = toNonTransparentChild(xmlDescriptor.u46(idx), this); var tmp_0; if (child instanceof XmlPolymorphicDescriptor) { tmp_0 = child.gl7(); } else { tmp_0 = false; } if (tmp_0) { // Inline function 'kotlin.collections.iterator' call var tmp1_iterator = child.kl0_1.q2().w(); while (tmp1_iterator.f()) { // Inline function 'kotlin.collections.component2' call var childDescriptor = tmp1_iterator.e().t2(); var tagName = this.fl7(childDescriptor.xkz()); // Inline function 'kotlin.collections.set' call var value = new PolyInfo(tagName, idx, childDescriptor); polyMap.s(tagName, value); } } else { // Inline function 'kotlin.collections.set' call var key = this.fl7(child.xkz()); nameMap.s(key, idx); } } while (inductionVariable < last); this.ll3_1 = polyMap; this.kl3_1 = nameMap; } protoOf(TagDecoderBase).jl2 = function (_set____db54di) { this.il3_1 = _set____db54di; }; protoOf(TagDecoderBase).kl2 = function () { return this.il3_1; }; protoOf(TagDecoderBase).ekx = function () { return this.wl3_1.rl4_1; }; protoOf(TagDecoderBase).zl6 = function (desc, index, deserializer) { var childXmlDescriptor = this.xl3_1.u46(index); var effectiveDeserializer = childXmlDescriptor.cl5(deserializer); var tmp; if (this.ql3_1 >= 0) { tmp = null; } else { var tmp_0 = effectiveDeserializer.a45().s46(); if (tmp_0 instanceof PrimitiveKind) { tmp = new XmlDecoder(this.wl3_1, childXmlDescriptor, this.sl3_1, this.rl3_1); } else { tmp = new SerialValueDecoder(this.wl3_1, childXmlDescriptor, this.sl3_1, this.rl3_1, null); } } return tmp; }; protoOf(TagDecoderBase).e49 = function (descriptor, index, deserializer, previousValue) { // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.handleRecovery' call this.wl3_1; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.ul3_1.d1()) { var d = this.ul3_1.of(); if (!(d.hl7_1 === index)) { throw IllegalStateException_init_$Create$('Recovery state is inconsistent'); } // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeSerializableElement.' call var tmp = d.il7_1; var it = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE(); return (it == null ? true : !(it == null)) ? it : THROW_CCE(); } var childXmlDescriptor = this.xl3_1.u46(index); var effectiveDeserializer = childXmlDescriptor.cl5(deserializer); var tmp_0; if (equals(isInterface(effectiveDeserializer, DeserializationStrategy) ? effectiveDeserializer : THROW_CCE(), CompactFragmentSerializer_getInstance())) { tmp_0 = getValueChild(this.xl3_1) === index; } else { tmp_0 = false; } if (tmp_0) { if (this.ql3_1 >= 0) { var tmp_1 = CompactFragment_init_$Create$_0(''); return !(tmp_1 == null) ? tmp_1 : THROW_CCE(); } // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeSerializableElement.' call var it_0 = siblingsToFragment(this.ekx()); this.ekx().iks(); var tmp0_elvis_lhs = it_0 instanceof CompactFragment ? it_0 : null; var tmp_2 = tmp0_elvis_lhs == null ? CompactFragment_init_$Create$_1(it_0) : tmp0_elvis_lhs; return !(tmp_2 == null) ? tmp_2 : THROW_CCE(); } var tmp_3; var tmp_4; if (this.rl3_1 >= 0) { tmp_4 = childXmlDescriptor instanceof XmlAttributeMapDescriptor; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = new AttributeMapDecoder(this.wl3_1, childXmlDescriptor, this.rl3_1); } else { var tmp0_elvis_lhs_0 = this.zl6(descriptor, index, effectiveDeserializer); tmp_3 = tmp0_elvis_lhs_0 == null ? new NullDecoder(this.wl3_1, childXmlDescriptor) : tmp0_elvis_lhs_0; } var decoder = tmp_3; var tmp_5; if (effectiveDeserializer instanceof AbstractCollectionSerializer) { tmp_5 = effectiveDeserializer.k4c(decoder, previousValue); } else { tmp_5 = effectiveDeserializer.c45(decoder); } var result = tmp_5; var tmp1_safe_receiver = decoder instanceof SerialValueDecoder ? decoder : null; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ml5_1; var tagId = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kl2(); if (!(tagId == null)) { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call $l$block: { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call if (result == null) { // Inline function 'kotlin.checkNotNull.' call var message = 'Required value was null.'; throw IllegalStateException_init_$Create$(toString(message)); } else { break $l$block; } } if (!(this.wl3_1.sl4_1.s(tagId, result) == null)) throw XmlException_init_$Create$('Duplicate use of id ' + tagId); } this.pl3_1[index] = true; return result; }; protoOf(TagDecoderBase).g49 = function (descriptor, index, deserializer, previousValue) { // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.handleRecovery' call this.wl3_1; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.ul3_1.d1()) { var d = this.ul3_1.of(); if (!(d.hl7_1 === index)) { throw IllegalStateException_init_$Create$('Recovery state is inconsistent'); } // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeNullableSerializableElement.' call var tmp = d.il7_1; var it = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE(); return !(it == null) ? it : THROW_CCE(); } if (this.wl3_1.al5()) { if (!this.ekx().tks().equals(EventType_END_ELEMENT_getInstance())) throw SerializationException_init_$Create$('Elements with nil tags may not have content'); return null; } var tmp0_elvis_lhs = this.zl6(descriptor, index, deserializer); var tmp_0; if (tmp0_elvis_lhs == null) { return null; } else { tmp_0 = tmp0_elvis_lhs; } var decoder = tmp_0; var effectiveDeserializer = this.xl3_1.u46(index).cl5(deserializer); var tmp_1; if (effectiveDeserializer instanceof AbstractCollectionSerializer) { tmp_1 = effectiveDeserializer.k4c(decoder, previousValue); } else { tmp_1 = effectiveDeserializer.c45(decoder); } var result = tmp_1; var tmp1_safe_receiver = decoder instanceof SerialValueDecoder ? decoder : null; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ml5_1; var tagId = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kl2(); if (!(tagId == null)) { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call $l$block: { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call if (result == null) { // Inline function 'kotlin.checkNotNull.' call var message = 'Required value was null.'; throw IllegalStateException_init_$Create$(toString(message)); } else { break $l$block; } } if (!(this.wl3_1.sl4_1.s(tagId, result) == null)) throw XmlException_init_$Create$('Duplicate use of id ' + tagId); } this.pl3_1[index] = true; return result; }; protoOf(TagDecoderBase).d49 = function (descriptor, index) { // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.handleRecovery' call this.wl3_1; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.ul3_1.d1()) { var d = this.ul3_1.of(); if (!(d.hl7_1 === index)) { throw IllegalStateException_init_$Create$('Recovery state is inconsistent'); } // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeInlineElement.' call var tmp = d.il7_1; var it = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE(); return new DummyDecoder(it); } var childXmlDescriptor = this.xl3_1.u46(index); var tmp_0; if (descriptor.s46() instanceof PrimitiveKind) { tmp_0 = new XmlDecoder(this.wl3_1, childXmlDescriptor, this.sl3_1, this.rl3_1); } else { tmp_0 = new SerialValueDecoder(this.wl3_1, childXmlDescriptor, this.sl3_1, this.rl3_1, this.hl3_1); } return tmp_0; }; protoOf(TagDecoderBase).al7 = function (name, inputType) { var isNameOfAttr = inputType.equals(InputKind_Attribute_getInstance()); this.sl3_1 = null; var polyMap = this.ll3_1; var nameMap = this.kl3_1; var normalizedName = this.fl7(name); var tmp0_safe_receiver = nameMap.q(normalizedName); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : indexOf$checkInputType(tmp0_safe_receiver, inputType, this); if (tmp1_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return this.cl7(tmp1_safe_receiver, inputType); } var tmp2_safe_receiver = polyMap.q(normalizedName); var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : indexOf$checkInputType_0(tmp2_safe_receiver, inputType); if (tmp3_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = this.cl7(tmp3_safe_receiver.jl4_1, inputType); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.indexOf..' call this.sl3_1 = tmp3_safe_receiver; return this_0; } // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var containingNamespaceUri = this.a46().bkr(); if (isNameOfAttr ? !this.t39().fkz_1.kl7() : false) { // Inline function 'kotlin.text.isEmpty' call // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var this_1 = name.bkr(); if (charSequenceLength(this_1) === 0) { var attrName = copy_0(normalizedName, containingNamespaceUri); var tmp4_safe_receiver = nameMap.q(attrName); var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : indexOf$checkInputType(tmp4_safe_receiver, inputType, this); if (tmp5_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return this.bl7(tmp5_safe_receiver); } var tmp6_safe_receiver = polyMap.q(attrName); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : indexOf$checkInputType_0(tmp6_safe_receiver, inputType); if (tmp7_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call this.sl3_1 = tmp7_safe_receiver; return this.bl7(tmp7_safe_receiver.jl4_1); } } // Inline function 'kotlin.text.isEmpty' call // Inline function 'nl.adaptivity.xmlutil.prefix' call var this_2 = name.dkr(); if (charSequenceLength(this_2) === 0) { var emptyNsPrefix = this.ekx().wkm(''); if (!(emptyNsPrefix == null)) { var attrName_0 = copy_0(normalizedName, emptyNsPrefix); var tmp8_safe_receiver = nameMap.q(attrName_0); var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : indexOf$checkInputType(tmp8_safe_receiver, inputType, this); if (tmp9_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return this.bl7(tmp9_safe_receiver); } var tmp10_safe_receiver = polyMap.q(attrName_0); var tmp11_safe_receiver = tmp10_safe_receiver == null ? null : indexOf$checkInputType_0(tmp10_safe_receiver, inputType); if (tmp11_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return this.bl7(tmp11_safe_receiver.jl4_1); } } } } var tmp; var tmp_0; if (!this.t39().fkz_1.kl7()) { // Inline function 'kotlin.text.isNotEmpty' call tmp_0 = charSequenceLength(containingNamespaceUri) > 0; } else { tmp_0 = false; } if (tmp_0) { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call tmp = containingNamespaceUri === name.bkr(); } else { tmp = false; } if (tmp) { var tmp12_safe_receiver = nameMap.q(QName_init_$Create$(name.ckr())); var tmp13_safe_receiver = tmp12_safe_receiver == null ? null : indexOf$checkInputType(tmp12_safe_receiver, inputType, this); if (tmp13_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return this.cl7(tmp13_safe_receiver, inputType); } } var tmp_1; if (inputType.equals(InputKind_Attribute_getInstance())) { var containsUpper = this.nl3_1; var containsArg = this.rl3_1; tmp_1 = 0 <= containsArg ? containsArg < containsUpper : false; } else { tmp_1 = false; } if (tmp_1) { // Inline function 'kotlin.takeIf' call var this_3 = this.tl3_1; // Inline function 'kotlin.contracts.contract' call var tmp_2; // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.indexOf.' call if (this_3 >= 0) { tmp_2 = this_3; } else { tmp_2 = null; } var tmp14_safe_receiver = tmp_2; if (tmp14_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return tmp14_safe_receiver; } } else { // Inline function 'kotlin.takeIf' call var this_4 = getValueChild(this.xl3_1); // Inline function 'kotlin.contracts.contract' call var tmp_3; // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.indexOf.' call if (this_4 >= 0) { tmp_3 = this_4; } else { tmp_3 = null; } var tmp15_safe_receiver = tmp_3; if (tmp15_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call var valChildDesc = this.xl3_1.u46(tmp15_safe_receiver); $l$loop: while (true) { var tmp_4; var tmp_5; if (valChildDesc instanceof XmlListDescriptor) { tmp_5 = valChildDesc.sl2(); } else { tmp_5 = false; } if (tmp_5) { tmp_4 = true; } else { tmp_4 = valChildDesc instanceof XmlInlineDescriptor; } if (!tmp_4) { break $l$loop; } valChildDesc = valChildDesc.u46(0); } var tmp_6; if (equals(valChildDesc.hl2(), CompactFragmentSerializer_getInstance().dkx_1)) { return this.bl7(tmp15_safe_receiver); } } } // Inline function 'kotlin.let' call var tmp_7 = this.t39().fkz_1; var tmp_8 = this.ekx(); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(nameMap.u()); // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = nameMap.q2().w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.indexOf.' call // Inline function 'kotlin.collections.component1' call var k = item.s2(); // Inline function 'kotlin.collections.component2' call var v = item.t2(); var tmp$ret$24 = new PolyInfo(k, v, this.xl3_1.u46(v)); destination.j1(tmp$ret$24); } // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.indexOf.' call var it = tmp_7.ll7(tmp_8, inputType, this.xl3_1, name, plus_0(destination, polyMap.p2())); var singleParsed = singleOrNull(it); if ((singleParsed == null ? null : singleParsed.jl7_1) === true) { return singleParsed.hl7_1; } this.ul3_1.n1(it); return -3; }; protoOf(TagDecoderBase).bl7 = function (_this__u8e3s4) { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.checkRepeat.' call if (_this__u8e3s4 >= 0 ? this.pl3_1[_this__u8e3s4] : false) { var desc = this.xl3_1.u46(_this__u8e3s4); var tmp; if (!(desc instanceof XmlListLikeDescriptor)) { tmp = true; } else { tmp = !desc.sl2(); } if (tmp) { this.t39().fkz_1.ml7(this.xl3_1, _this__u8e3s4); } } return _this__u8e3s4; }; protoOf(TagDecoderBase).cl7 = function (_this__u8e3s4, inputType) { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.checkRepeatAndOrder.' call this.bl7(_this__u8e3s4); if (this.t39().fkz_1.dl8() ? inputType.equals(InputKind_Element_getInstance()) : false) { var tmp = this.xl3_1; if (tmp instanceof XmlCompositeDescriptor) { var constraints = this.xl3_1.al8(); // Inline function 'kotlin.collections.isNullOrEmpty' call // Inline function 'kotlin.contracts.contract' call if (!(constraints == null ? true : constraints.d1())) { var orderedBefore = booleanArray(this.pl3_1.length); var orderedAfter = booleanArray(this.pl3_1.length); var tmp0_iterator = constraints.w(); while (tmp0_iterator.f()) { var tmp1_loop_parameter = tmp0_iterator.e(); var before = tmp1_loop_parameter.y6(); var after = tmp1_loop_parameter.z6(); if (before === -2) { orderedAfter[after] = true; } if (after === -2) { orderedBefore[before] = true; } } var tmp2_iterator = constraints.w(); while (tmp2_iterator.f()) { var tmp3_loop_parameter = tmp2_iterator.e(); var before_0 = tmp3_loop_parameter.y6(); var after_0 = tmp3_loop_parameter.z6(); if (before_0 === _this__u8e3s4) { if (after_0 === -2) { var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator_0 = get_indices(this.pl3_1).w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); checkIndexOverflow(index); // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.checkRepeatAndOrder..' call if ((this.pl3_1[item] ? this.xl3_1.u46(item).ykz().equals(OutputKind_Element_getInstance()) : false) ? !orderedBefore[item] : false) { tmp$ret$2 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$2 = -1; } var seenSiblingIndex = tmp$ret$2; if (seenSiblingIndex >= 0) { throw new XmlSerialException('Found element ' + this.xl3_1.u46(seenSiblingIndex).xkz() + ' before ' + this.xl3_1.u46(_this__u8e3s4).xkz() + ' in conflict with ordering constraints'); } } else { if (this.pl3_1[after_0]) { throw new XmlSerialException('Found element ' + this.xl3_1.u46(after_0).xkz() + ' before ' + this.xl3_1.u46(_this__u8e3s4).xkz() + ' in conflict with ordering constraints'); } } } if (!orderedAfter[_this__u8e3s4]) { var tmp$ret$4; $l$block_0: { // Inline function 'kotlin.collections.indexOfFirst' call var index_0 = 0; var tmp0_iterator_1 = get_indices(this.pl3_1).w(); while (tmp0_iterator_1.f()) { var item_0 = tmp0_iterator_1.e(); checkIndexOverflow(index_0); // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.checkRepeatAndOrder..' call if (this.pl3_1[item_0] ? orderedAfter[item_0] : false) { tmp$ret$4 = index_0; break $l$block_0; } index_0 = index_0 + 1 | 0; } tmp$ret$4 = -1; } var alreadySeenTrailingIndex = tmp$ret$4; if (alreadySeenTrailingIndex > 0) { throw new XmlSerialException('Found element ' + this.xl3_1.u46(_this__u8e3s4).xkz() + ' after ' + this.xl3_1.u46(alreadySeenTrailingIndex) + ' in conflict with ordering constraints'); } } } } } } return _this__u8e3s4; }; protoOf(TagDecoderBase).i49 = function (descriptor) { if (!this.vl3_1 ? this.ekx().gkn() < this.ol3_1 : false) { return -1; } this.vl3_1 = true; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.ul3_1.d1()) { return this.ul3_1.kf().hl7_1; } if (this.ql3_1 >= 0) { this.ekx().wks(EventType_END_ELEMENT_getInstance(), this.xl3_1.xkz()); if (this.ql3_1 >= this.pl3_1.length) { return -1; } // Inline function 'kotlin.also' call var this_0 = this.ql3_1; // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeElementIndex.' call nextNulledItemsIdx(this); return this_0; } this.rl3_1 = this.rl3_1 + 1 | 0; $l$loop: while (true) { var tmp; var containsUpper = this.nl3_1; var containsArg = this.rl3_1; if (0 <= containsArg ? containsArg < containsUpper : false) { var tmp$ret$2; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_1 = this.jl3_1; var tmp_0; if (isInterface(this_1, Collection)) { tmp_0 = this_1.d1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$2 = false; break $l$block_0; } var tmp0_iterator = this_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeElementIndex.' call if (isEquivalent(element, this.ekx().xks(this.rl3_1))) { tmp$ret$2 = true; break $l$block_0; } } tmp$ret$2 = false; } tmp = tmp$ret$2; } else { tmp = false; } if (!tmp) { break $l$loop; } this.rl3_1 = this.rl3_1 + 1 | 0; } var containsUpper_0 = this.nl3_1; var containsArg_0 = this.rl3_1; if (0 <= containsArg_0 ? containsArg_0 < containsUpper_0 : false) { var name = this.ekx().xks(this.rl3_1); var tmp_1; var tmp_2; var tmp_3; if (name.equals(this.hl3_1)) { tmp_3 = true; } else { var tmp_4 = name.bkr(); tmp_3 = tmp_4 === 'http://www.w3.org/2000/xmlns/'; } if (tmp_3) { tmp_2 = true; } else { // Inline function 'nl.adaptivity.xmlutil.prefix' call var tmp_5 = name.dkr(); tmp_2 = tmp_5 === 'xmlns'; } if (tmp_2) { tmp_1 = true; } else { var tmp_6; // Inline function 'kotlin.text.isEmpty' call // Inline function 'nl.adaptivity.xmlutil.prefix' call var this_2 = name.dkr(); if (charSequenceLength(this_2) === 0) { // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp_7 = name.ckr(); tmp_6 = tmp_7 === 'xmlns'; } else { tmp_6 = false; } tmp_1 = tmp_6; } if (tmp_1) { return this.i49(descriptor); } else { var tmp_8; var tmp_9 = name.bkr(); if (tmp_9 === 'http://www.w3.org/XML/1998/namespace') { // Inline function 'nl.adaptivity.xmlutil.localPart' call tmp_8 = name.ckr() === 'space'; } else { tmp_8 = false; } if (tmp_8) { var tmp3_subject = this.ekx().ukn(this.rl3_1); if (tmp3_subject === 'preserve') this.ml3_1 = true; else if (tmp3_subject === 'default') this.ml3_1 = this.xl3_1.bl5(); var tmp4_safe_receiver = this.kl3_1.q(name); var tmp_10; if (tmp4_safe_receiver == null) { tmp_10 = null; } else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeElementIndex.' call this.pl3_1[tmp4_safe_receiver] = true; tmp_10 = tmp4_safe_receiver; } var tmp5_elvis_lhs = tmp_10; return tmp5_elvis_lhs == null ? this.i49(descriptor) : tmp5_elvis_lhs; } } // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.markSeenOrHandleUnknown' call this.wl3_1; var this_3 = this.al7(name, InputKind_Attribute_getInstance()); var tmp_11; if (this_3 === -3) { // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeElementIndex.' call tmp_11 = this.i49(descriptor); } else { this.pl3_1[this_3] = true; tmp_11 = this_3; } return tmp_11; } this.rl3_1 = IntCompanionObject_instance.MIN_VALUE; // Inline function 'kotlin.collections.iterator' call var tmp6_iterator = this.ekx(); while (tmp6_iterator.f()) { var eventType = tmp6_iterator.e(); switch (eventType.ab_1) { case 2: return this.dl7(descriptor); case 0: case 3: case 6: case 11: break; case 8: case 5: case 9: case 4: var valueChild = getValueChild_0(descriptor); if (this.ekx().yks()) { var tmp_12; if (!(valueChild === -3)) { tmp_12 = this.ml3_1; } else { tmp_12 = false; } if (tmp_12) { var valueKind = this.xl3_1.u46(valueChild).s46(); if (equals(valueKind, LIST_getInstance()) ? true : equals(valueKind, STRING_getInstance())) { this.pl3_1[valueChild] = true; return valueChild; } } } else if (!this.ekx().yks()) { // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.markSeenOrHandleUnknown' call this.wl3_1; var tmp_13; if (valueChild === -3) { // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeElementIndex.' call // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeElementIndex..' call var it = this.t39().fkz_1.ll7(this.ekx(), InputKind_Text_getInstance(), this.xl3_1, QName_init_$Create$(''), emptyList()); this.ul3_1.n1(it); tmp_13 = this.i49(descriptor); } else { this.pl3_1[valueChild] = true; tmp_13 = valueChild; } return tmp_13; } break; case 10: // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.markSeenOrHandleUnknown' call this.wl3_1; var this_4 = this.al7(this.ekx().ec(), InputKind_Attribute_getInstance()); var tmp_14; if (this_4 === -3) { // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeElementIndex.' call tmp_14 = this.i49(descriptor); } else { this.pl3_1[this_4] = true; tmp_14 = this_4; } return tmp_14; case 1: var i = this.al7(this.ekx().ec(), InputKind_Element_getInstance()); if (i === -3) { // Inline function 'kotlin.collections.isNotEmpty' call if (!this.ul3_1.d1()) { return this.ul3_1.kf().hl7_1; } elementContentToFragment(this.ekx()); } else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeElementIndex.' call this.pl3_1[i] = true; return i; } break; case 7: throw new XmlSerialException('End document in unexpected location'); } } return -1; }; protoOf(TagDecoderBase).t48 = function (descriptor) { if (!this.vl3_1) { var index = this.i49(descriptor); if (!(index === -1)) throw new XmlSerialException('Unexpected content in end structure'); } if (this.hl3_1 == null) { this.ekx().wks(EventType_END_ELEMENT_getInstance(), this.a46()); } else { this.ekx().wks(EventType_END_ELEMENT_getInstance(), null); } }; protoOf(TagDecoderBase).dl7 = function (desc) { nextNulledItemsIdx(this); var tmp; if (this.ql3_1 < this.pl3_1.length) { tmp = this.ql3_1; } else { tmp = -1; } return tmp; }; protoOf(TagDecoderBase).el7 = function (lastAttrIndex) { return this.ekx().ukn(this.rl3_1); }; protoOf(TagDecoderBase).c49 = function (descriptor, index) { // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.handleRecovery' call this.wl3_1; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.ul3_1.d1()) { var d = this.ul3_1.of(); if (!(d.hl7_1 === index)) { throw IllegalStateException_init_$Create$('Recovery state is inconsistent'); } // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeStringElement.' call var tmp = d.il7_1; return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE(); } var childDesc = this.xl3_1.u46(index); this.pl3_1[index] = true; var isAttribute = this.rl3_1 >= 0; if (isAttribute) { var a = this.el7(this.rl3_1); if (this.xl3_1.u46(index).vl5()) { this.jl2(a); } return a; } else if (this.ql3_1 >= 0) { var tmp0_safe_receiver = childDesc instanceof XmlValueDescriptor ? childDesc : null; var default_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gl4_1; var tmp_0; if (!(default_0 == null)) { tmp_0 = default_0; } else if (index === getValueChild(this.xl3_1)) { tmp_0 = ''; } else { throw new XmlSerialException('Missing child ' + descriptor.w46(index) + ':' + index); } return tmp_0; } var tmp_1; switch (childDesc.fky().ab_1) { case 4: throw new XmlSerialException('Inline elements can not be directly decoded'); case 0: tmp_1 = readSimpleElement(this.ekx()); break; case 3: case 2: // Inline function 'kotlin.also' call var this_0 = allConsecutiveTextContent(this.ekx()); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagDecoderBase.decodeStringElement.' call var peek = this.ekx().rks(); if (!(peek instanceof EndElementEvent)) { throw new XmlSerialException('Missing end tag after text only content (found: ' + peek + ')'); } else { // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$1 = this.a46().ckr(); if (!(peek.ukt_1 === tmp$ret$1)) { // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$2 = this.a46().ckr(); throw new XmlSerialException('Expected end tag local name ' + tmp$ret$2 + ', found ' + peek.ukt_1); } } tmp_1 = this_0; break; case 1: var message = 'Attributes should already be read now'; throw IllegalStateException_init_$Create$(toString(message)); default: noWhenBranchMatchedException(); break; } return tmp_1; }; protoOf(TagDecoderBase).x48 = function (descriptor, index) { return toInt(this.c49(descriptor, index)); }; protoOf(TagDecoderBase).u48 = function (descriptor, index) { return toBoolean(this.c49(descriptor, index)); }; protoOf(TagDecoderBase).v48 = function (descriptor, index) { return toByte(this.c49(descriptor, index)); }; protoOf(TagDecoderBase).w48 = function (descriptor, index) { return toShort(this.c49(descriptor, index)); }; protoOf(TagDecoderBase).y48 = function (descriptor, index) { return toLong(this.c49(descriptor, index)); }; protoOf(TagDecoderBase).z48 = function (descriptor, index) { // Inline function 'kotlin.text.toFloat' call var this_0 = this.c49(descriptor, index); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return toDouble(this_0); }; protoOf(TagDecoderBase).a49 = function (descriptor, index) { return toDouble(this.c49(descriptor, index)); }; protoOf(TagDecoderBase).b49 = function (descriptor, index) { return single_0(this.c49(descriptor, index)); }; protoOf(TagDecoderBase).ul5 = function (attrName) { this.jl3_1.j1(attrName); }; function AttributeMapDecoder($outer, xmlDescriptor, attrIndex) { this.zl8_1 = $outer; TagDecoderBase.call(this, $outer, xmlDescriptor, null); this.wl8_1 = attrIndex; this.xl8_1 = -1; this.yl8_1 = 0; } protoOf(AttributeMapDecoder).h49 = function () { return true; }; protoOf(AttributeMapDecoder).j49 = function (descriptor) { return 1; }; protoOf(AttributeMapDecoder).i49 = function (descriptor) { var tmp; switch (this.yl8_1) { case 0: case 1: var tmp2 = this.yl8_1; this.yl8_1 = tmp2 + 1 | 0; tmp = tmp2; break; default: tmp = -1; break; } return tmp; }; protoOf(AttributeMapDecoder).e49 = function (descriptor, index, deserializer, previousValue) { if (this.xl8_1 < 0) this.xl8_1 = index; var fixedIndex = (index - this.xl8_1 | 0) % 2 | 0; var effectiveDeserializer = this.xl3_1.u46(fixedIndex).cl5(deserializer); if (fixedIndex === 0) { if (equals(effectiveDeserializer, XmlQNameSerializer_getInstance())) { var tmp = this.ekx().xks(this.wl8_1); return !(tmp == null) ? tmp : THROW_CCE(); } } return effectiveDeserializer.c45(new StringDecoder(this.zl8_1, this.xl3_1.ll9(), xmlCollapseWhitespace(this.ekx().ukn(this.wl8_1)))); }; protoOf(AttributeMapDecoder).c49 = function (descriptor, index) { var tmp; if ((index % 2 | 0) === 0) { var name = this.ekx().xks(this.wl8_1); var tmp_0; var tmp_1; // Inline function 'kotlin.text.isEmpty' call // Inline function 'nl.adaptivity.xmlutil.prefix' call var this_0 = name.dkr(); if (charSequenceLength(this_0) === 0) { tmp_1 = true; } else { // Inline function 'kotlin.text.isEmpty' call // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var this_1 = name.bkr(); tmp_1 = charSequenceLength(this_1) === 0; } if (tmp_1) { // Inline function 'nl.adaptivity.xmlutil.localPart' call tmp_0 = name.ckr(); } else { throw new XmlSerialException('A QName in a namespace cannot be converted to a string'); } tmp = tmp_0; } else { tmp = this.ekx().ukn(this.wl8_1); } return tmp; }; protoOf(AttributeMapDecoder).t48 = function (descriptor) { }; protoOf(AttributeMapDecoder).s48 = function (descriptor) { return this; }; protoOf(AttributeMapDecoder).f48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).g48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).m48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).l48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).o48 = function (enumDescriptor) { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).k48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).p48 = function (descriptor) { return this; }; protoOf(AttributeMapDecoder).i48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).j48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).d48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).e48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).h48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; protoOf(AttributeMapDecoder).n48 = function () { throw UnsupportedOperationException_init_$Create$('Expect map structure'); }; function AttributeListDecoder($outer, xmlDescriptor, attrIndex) { this.gla_1 = $outer; TagDecoderBase.call(this, $outer, xmlDescriptor, null); this.ela_1 = 0; this.fla_1 = split(xmlCollapseWhitespace(this.ekx().ukn(attrIndex)), xmlDescriptor.pla_1.slice()); } protoOf(AttributeListDecoder).h49 = function () { return true; }; protoOf(AttributeListDecoder).j49 = function (descriptor) { return this.fla_1.u(); }; protoOf(AttributeListDecoder).e49 = function (descriptor, index, deserializer, previousValue) { var tmp = this.xl3_1.u46(index); var tmp1 = this.ela_1; this.ela_1 = tmp1 + 1 | 0; var decoder = new StringDecoder(this.gla_1, tmp, this.fla_1.v(tmp1)); return decoder.r48(deserializer); }; protoOf(AttributeListDecoder).c49 = function (descriptor, index) { var tmp1 = this.ela_1; this.ela_1 = tmp1 + 1 | 0; return this.fla_1.v(tmp1); }; protoOf(AttributeListDecoder).t48 = function (descriptor) { }; function AnonymousListDecoder($outer, xmlDescriptor, polyInfo, typeDiscriminatorName) { this.mlb_1 = $outer; TagDecoderBase.call(this, $outer, xmlDescriptor, typeDiscriminatorName); this.jlb_1 = polyInfo; var tmp = this; var tmp$ret$2; $l$block_0: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = until(0, _get_parentXmlDescriptor__yo818r(this).q46()).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.AnonymousListDecoder.listChildIdx.' call var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator_0 = _get_parentXmlDescriptor__yo818r(this).hl2().t46(element).w(); while (tmp0_iterator_0.f()) { var e = tmp0_iterator_0.e(); if (e instanceof XmlValue) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_safe_receiver = tmp$ret$0; if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nlb_1) === true) { tmp$ret$2 = element; break $l$block_0; } } tmp$ret$2 = null; } var tmp0_elvis_lhs = tmp$ret$2; tmp.klb_1 = tmp0_elvis_lhs == null ? -1 : tmp0_elvis_lhs; this.llb_1 = false; } protoOf(AnonymousListDecoder).i49 = function (descriptor) { var tmp; if (this.llb_1) { tmp = -1; } else { this.llb_1 = true; tmp = 0; } return tmp; }; protoOf(AnonymousListDecoder).e49 = function (descriptor, index, deserializer, previousValue) { var childXmlDescriptor = this.xl3_1.u46(0); var effectiveDeserializer = childXmlDescriptor.cl5(deserializer); var tmp; if (equals(isInterface(effectiveDeserializer, DeserializationStrategy) ? effectiveDeserializer : THROW_CCE(), CompactFragmentSerializer_getInstance())) { tmp = getValueChild(_get_parentXmlDescriptor__yo818r(this)) === this.klb_1; } else { tmp = false; } if (tmp) { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.AnonymousListDecoder.decodeSerializableElement.' call var it = elementToFragment(this.ekx()); var tmp0_elvis_lhs = it instanceof CompactFragment ? it : null; var tmp_0 = tmp0_elvis_lhs == null ? CompactFragment_init_$Create$_1(it) : tmp0_elvis_lhs; return !(tmp_0 == null) ? tmp_0 : THROW_CCE(); } var decoder = new SerialValueDecoder(this.mlb_1, childXmlDescriptor, this.jlb_1, IntCompanionObject_instance.MIN_VALUE, this.hl3_1); var result = deserializer.c45(decoder); var tmp0_safe_receiver = decoder instanceof SerialValueDecoder ? decoder : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ml5_1; var tagId = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kl2(); if (!(tagId == null)) { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call $l$block: { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call if (result == null) { // Inline function 'kotlin.checkNotNull.' call var message = 'Required value was null.'; throw IllegalStateException_init_$Create$(toString(message)); } else { break $l$block; } } if (!(this.mlb_1.sl4_1.s(tagId, result) == null)) throw XmlException_init_$Create$('Duplicate use of id ' + tagId); } return result; }; protoOf(AnonymousListDecoder).t48 = function (descriptor) { }; protoOf(AnonymousListDecoder).j49 = function (descriptor) { return 1; }; function NamedListDecoder($outer, xmlDescriptor, typeDiscriminatorName) { this.hlc_1 = $outer; TagDecoderBase.call(this, $outer, xmlDescriptor, typeDiscriminatorName); this.glc_1 = 0; } protoOf(NamedListDecoder).i49 = function (descriptor) { this.vl3_1 = true; var tmp; if (this.ekx().tks().ab_1 === 2) { tmp = -1; } else { var tmp2 = this.glc_1; this.glc_1 = tmp2 + 1 | 0; tmp = tmp2; } return tmp; }; protoOf(NamedListDecoder).e49 = function (descriptor, index, deserializer, previousValue) { var childXmlDescriptor = this.xl3_1.u46(0); var decoder = new SerialValueDecoder(this.hlc_1, childXmlDescriptor, this.sl3_1, this.rl3_1, null); var tmp; if (deserializer instanceof AbstractCollectionSerializer) { tmp = deserializer.k4c(decoder, previousValue); } else { tmp = deserializer.c45(decoder); } var result = tmp; var tmp1_safe_receiver = decoder instanceof SerialValueDecoder ? decoder : null; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ml5_1; var tagId = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kl2(); if (!(tagId == null)) { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call $l$block: { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call if (result == null) { // Inline function 'kotlin.checkNotNull.' call var message = 'Required value was null.'; throw IllegalStateException_init_$Create$(toString(message)); } else { break $l$block; } } if (!(this.hlc_1.sl4_1.s(tagId, result) == null)) throw XmlException_init_$Create$('Duplicate use of id ' + tagId); } return result; }; function MapDecoderBase($outer, xmlDescriptor, polyInfo, typeDiscriminatorName) { this.cld_1 = $outer; TagDecoderBase.call(this, $outer, xmlDescriptor, typeDiscriminatorName); this.ald_1 = polyInfo; this.bld_1 = -1; } protoOf(MapDecoderBase).e49 = function (descriptor, index, deserializer, previousValue) { this.bld_1 = index; var keyDescriptor = this.xl3_1.u46(0); if ((index % 2 | 0) === 0) { if (keyDescriptor.ykz().equals(OutputKind_Attribute_getInstance())) { var tmp0_elvis_lhs = this.ekx().vks(keyDescriptor.xkz()); var tmp; if (tmp0_elvis_lhs == null) { throw new XmlSerialException('Missing key attribute (' + keyDescriptor.xkz() + ') on ' + this.ekx().ec() + '@' + this.ekx().mkn()); } else { tmp = tmp0_elvis_lhs; } var key = tmp; return deserializer.c45(new StringDecoder(this.cld_1, keyDescriptor, key)); } else { assert(!this.xl3_1.el3()); // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call if (!isEquivalent(this.ekx().ec(), keyDescriptor.xkz())) { // Inline function 'nl.adaptivity.xmlutil.serialization.MapDecoderBase.decodeSerializableElement.' call var message = '' + this.ekx().ec() + ' != ' + this.xl3_1.ll4(); throw IllegalStateException_init_$Create$(toString(message)); } return protoOf(TagDecoderBase).e49.call(this, descriptor, index % 2 | 0, deserializer, previousValue); } } var valueDescriptor = this.xl3_1.u46(1); var decoder = new SerialValueDecoder(this.cld_1, valueDescriptor, this.ald_1, IntCompanionObject_instance.MIN_VALUE, this.hl3_1); if (this.xl3_1.el3()) { decoder.ul5(keyDescriptor.xkz()); } var result = deserializer.c45(decoder); var tmp1_safe_receiver = decoder instanceof SerialValueDecoder ? decoder : null; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ml5_1; var tagId = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kl2(); if (!(tagId == null)) { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call $l$block: { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call if (result == null) { // Inline function 'kotlin.checkNotNull.' call var message_0 = 'Required value was null.'; throw IllegalStateException_init_$Create$(toString(message_0)); } else { break $l$block; } } if (!(this.cld_1.sl4_1.s(tagId, result) == null)) throw XmlException_init_$Create$('Duplicate use of id ' + tagId); } return result; }; function AnonymousMapDecoder($outer, xmlDescriptor, polyInfo, typeDiscriminatorName) { this.yld_1 = $outer; MapDecoderBase.call(this, $outer, xmlDescriptor, polyInfo, typeDiscriminatorName); } protoOf(AnonymousMapDecoder).i49 = function (descriptor) { if (!this.xl3_1.el3()) { if (this.bld_1 < 0) { // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call if (!this.ekx().lkn().equals(EventType_START_ELEMENT_getInstance())) { // Inline function 'kotlin.check.' call var message = 'Check failed.'; throw IllegalStateException_init_$Create$(toString(message)); } if (!isEquivalent(this.xl3_1.ll4(), this.ekx().ec())) throw new XmlSerialException('Map entry not found. Found ' + this.ekx().ec() + '@' + this.ekx().mkn() + ' instead'); } if ((this.bld_1 % 2 | 0) === 0) { var tmp = isEquivalent(this.xl3_1.ll4(), this.ekx().ec()); assert_0(tmp, XmlDecoderBase$AnonymousMapDecoder$decodeElementIndex$lambda(this)); } var rawIndex = protoOf(MapDecoderBase).i49.call(this, descriptor); if (rawIndex < 0) return rawIndex; this.bld_1 = (this.bld_1 - (this.bld_1 % 2 | 0) | 0) + (rawIndex % 2 | 0) | 0; return this.bld_1; } else { var tmp_0; if (this.bld_1 >= 0 ? (this.bld_1 % 2 | 0) === 1 : false) { tmp_0 = -1; } else { this.bld_1 = this.bld_1 + 1 | 0; tmp_0 = this.bld_1; } return tmp_0; } }; protoOf(AnonymousMapDecoder).t48 = function (descriptor) { if (!this.xl3_1.el3()) { // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call if (!this.ekx().lkn().equals(EventType_END_ELEMENT_getInstance())) { // Inline function 'kotlin.check.' call var message = 'Check failed.'; throw IllegalStateException_init_$Create$(toString(message)); } } // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call if (!isEquivalent(this.ekx().ec(), this.xl3_1.ll4())) { // Inline function 'kotlin.check.' call var message_0 = 'Check failed.'; throw IllegalStateException_init_$Create$(toString(message_0)); } }; protoOf(AnonymousMapDecoder).j49 = function (descriptor) { return 2; }; function NamedMapDecoder($outer, xmlDescriptor, polyInfo, typeDiscriminatorName) { this.ule_1 = $outer; MapDecoderBase.call(this, $outer, xmlDescriptor, polyInfo, typeDiscriminatorName); } protoOf(NamedMapDecoder).bl7 = function (_this__u8e3s4) { return _this__u8e3s4; }; protoOf(NamedMapDecoder).i49 = function (descriptor) { if (!this.xl3_1.el3()) { var tmp; // Inline function 'kotlin.mod' call var r = this.bld_1 % 2 | 0; if ((r + (2 & ((r ^ 2) & (r | (-r | 0))) >> 31) | 0) === 1) { var tmp0_safe_receiver = this.ekx().rks(); tmp = equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lkn(), EventType_START_ELEMENT_getInstance()); } else { tmp = false; } if (tmp) { this.ekx().tks(); } if (protoOf(MapDecoderBase).i49.call(this, descriptor) < 0) { return -1; } } else { var tmp_0; // Inline function 'kotlin.mod' call var r_0 = this.bld_1 % 2 | 0; if ((r_0 + (2 & ((r_0 ^ 2) & (r_0 | (-r_0 | 0))) >> 31) | 0) === 1) { tmp_0 = protoOf(MapDecoderBase).i49.call(this, descriptor) < 0; } else { tmp_0 = false; } if (tmp_0) { return -1; } } this.bld_1 = this.bld_1 + 1 | 0; return this.bld_1; }; protoOf(NamedMapDecoder).e49 = function (descriptor, index, deserializer, previousValue) { // Inline function 'kotlin.also' call var this_0 = protoOf(MapDecoderBase).e49.call(this, descriptor, index, deserializer, previousValue); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.NamedMapDecoder.decodeSerializableElement.' call if ((index % 2 | 0) === 1 ? !this.xl3_1.el3() : false) { // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call if (!this.ekx().tks().equals(EventType_END_ELEMENT_getInstance())) { // Inline function 'kotlin.check.' call var message = 'Check failed.'; throw IllegalStateException_init_$Create$(toString(message)); } assert(isEquivalent(this.xl3_1.ll4(), this.ekx().ec())); } return this_0; }; protoOf(NamedMapDecoder).t48 = function (descriptor) { assert(isEquivalent(this.xl3_1.xkz(), this.ekx().ec())); protoOf(MapDecoderBase).t48.call(this, descriptor); }; protoOf(NamedMapDecoder).j49 = function (descriptor) { return -1; }; function PolymorphicDecoder($outer, xmlDescriptor, polyInfo) { this.rlf_1 = $outer; TagDecoderBase.call(this, $outer, xmlDescriptor, null); this.nlf_1 = polyInfo; this.olf_1 = 0; this.plf_1 = null; this.qlf_1 = null; } protoOf(PolymorphicDecoder).i49 = function (descriptor) { var polyMode = this.xl3_1.jl0_1; if (equals(polyMode, TRANSPARENT_getInstance())) { var tmp; switch (this.olf_1) { case 0: case 1: var tmp2 = this.olf_1; this.olf_1 = tmp2 + 1 | 0; tmp = tmp2; break; default: tmp = -1; break; } return tmp; } else { if (!(this.plf_1 == null)) { var tmp_0; if (this.olf_1 === 1) { tmp_0 = 1; } else { tmp_0 = -1; } return tmp_0; } if (this.olf_1 === 0) { var inductionVariable = 0; var last = this.nl3_1; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var attrName = this.ekx().xks(i); var tmp_1; var tmp_2; // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp_3 = attrName.bkr(); if (tmp_3 === 'http://www.w3.org/2001/XMLSchema-instance') { // Inline function 'nl.adaptivity.xmlutil.localPart' call tmp_2 = attrName.ckr() === 'type'; } else { tmp_2 = false; } if (tmp_2) { tmp_1 = true; } else { var tmp5_safe_receiver = polyMode instanceof ATTR ? polyMode : null; tmp_1 = attrName.equals(tmp5_safe_receiver == null ? null : tmp5_safe_receiver.slf_1); } if (tmp_1) { var sdec = new StringDecoder(this.rlf_1, this.xl3_1.u46(0), this.ekx().ukn(i)); var typeQName_0 = XmlQNameSerializer_getInstance().c45(sdec); // Inline function 'kotlin.collections.map' call var this_0 = this.xl3_1.kl0_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(this_0.u()); // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = this_0.q2().w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.PolymorphicDecoder.decodeElementIndex.' call // Inline function 'kotlin.collections.component1' call var childSerialName = item.s2(); // Inline function 'kotlin.collections.component2' call var childDesc = item.t2(); var tmp$ret$5 = to(childSerialName, typeQName(this.t39().fkz_1, childDesc)); destination.j1(tmp$ret$5); } var childQnames = destination; var tmp_4 = this; var tmp$ret$9; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator_0 = childQnames.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.PolymorphicDecoder.decodeElementIndex.' call if (element.x6_1.equals(typeQName_0)) { tmp$ret$9 = element; break $l$block; } } tmp$ret$9 = null; } var tmp6_safe_receiver = tmp$ret$9; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.w6_1; var tmp_5; if (tmp7_elvis_lhs == null) { throw new XmlSerialException('Could not find child for type with qName: ' + typeQName_0 + '. Candidates are: ' + joinToString(childQnames)); } else { tmp_5 = tmp7_elvis_lhs; } tmp_4.plf_1 = tmp_5; this.qlf_1 = attrName; this.olf_1 = 1; return 0; } } while (inductionVariable < last); } // Inline function 'kotlin.also' call var this_1 = protoOf(TagDecoderBase).i49.call(this, descriptor); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.PolymorphicDecoder.decodeElementIndex.' call this.olf_1 = this_1 + 1 | 0; return this_1; } }; protoOf(PolymorphicDecoder).c49 = function (descriptor, index) { var isMixed = this.xl3_1.il0_1.equals(OutputKind_Mixed_getInstance()); var tmp; if (index === 0) { var tmp_0; if (!(this.plf_1 == null)) { tmp_0 = ensureNotNull(this.plf_1); } else if (!this.xl3_1.gl7()) { var typeTag = this.xl3_1.u46(0).xkz(); var tmp_1 = this.ekx(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp_2 = typeTag.bkr(); // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$1 = typeTag.ckr(); var tmp1_safe_receiver = tmp_1.r7e(tmp_2, tmp$ret$1); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : Companion_instance_1.ulf(tmp1_safe_receiver, this.xl3_1.ll0_1); var tmp_3; if (tmp2_elvis_lhs == null) { throw new XmlParsingException(this.ekx().mkn(), 'Missing type for polymorphic value'); } else { tmp_3 = tmp2_elvis_lhs; } tmp_0 = tmp_3; } else if (isMixed ? (this.ekx().lkn().equals(EventType_TEXT_getInstance()) ? true : this.ekx().lkn().equals(EventType_IGNORABLE_WHITESPACE_getInstance())) ? true : this.ekx().lkn().equals(EventType_CDSECT_getInstance()) : false) { tmp_0 = 'kotlin.String'; } else if (this.nlf_1 == null) { var message = 'PolyInfo is null for a transparent polymorphic decoder'; throw IllegalStateException_init_$Create$(toString(message)); } else { tmp_0 = this.nlf_1.pky(); } tmp = tmp_0; } else { var tmp_4; if (!this.xl3_1.gl7()) { throw new XmlSerialException('NonTransparent polymorphic values cannot have text content only'); } else if (isMixed) { tmp_4 = allConsecutiveTextContent(this.ekx()); } else { tmp_4 = protoOf(TagDecoderBase).c49.call(this, descriptor, index); } tmp = tmp_4; } return tmp; }; protoOf(PolymorphicDecoder).zl6 = function (desc, index, deserializer) { var tmp0_safe_receiver = this.nlf_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kl4_1; var childXmlDescriptor = tmp1_elvis_lhs == null ? this.xl3_1.vlf(deserializer.a45().a46()) : tmp1_elvis_lhs; return new SerialValueDecoder(this.rlf_1, childXmlDescriptor, this.sl3_1, this.rl3_1, this.qlf_1); }; protoOf(PolymorphicDecoder).e49 = function (descriptor, index, deserializer, previousValue) { var tmp0_safe_receiver = this.plf_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call var childXmlDescriptor = this.xl3_1.vlf(tmp0_safe_receiver); var decoder = new SerialValueDecoder(this.rlf_1, childXmlDescriptor, this.sl3_1, this.rl3_1, this.qlf_1); this.olf_1 = 2; var result = deserializer.c45(decoder); var tmp0_safe_receiver_0 = decoder instanceof SerialValueDecoder ? decoder : null; var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ml5_1; var tagId = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kl2(); if (!(tagId == null)) { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call $l$block: { // Inline function 'kotlin.checkNotNull' call // Inline function 'kotlin.contracts.contract' call if (result == null) { // Inline function 'kotlin.checkNotNull.' call var message = 'Required value was null.'; throw IllegalStateException_init_$Create$(toString(message)); } else { break $l$block; } } if (!(this.rlf_1.sl4_1.s(tagId, result) == null)) throw XmlException_init_$Create$('Duplicate use of id ' + tagId); } return result; } if (!this.xl3_1.gl7()) { this.ekx().vkn(EventType_START_ELEMENT_getInstance(), null, 'value'); return protoOf(TagDecoderBase).e49.call(this, descriptor, index, deserializer, previousValue); } var isMixed = this.xl3_1.il0_1.equals(OutputKind_Mixed_getInstance()); var tmp; var tmp_0; if (isMixed) { var tmp_1 = deserializer.a45().s46(); tmp_0 = tmp_1 instanceof PrimitiveKind; } else { tmp_0 = false; } if (tmp_0) { var childXmlDescriptor_0 = this.xl3_1.vlf(deserializer.a45().a46()); tmp = deserializer.c45(new XmlDecoder(this.rlf_1, childXmlDescriptor_0)); } else { tmp = protoOf(TagDecoderBase).e49.call(this, descriptor, index, deserializer, previousValue); } return tmp; }; protoOf(PolymorphicDecoder).t48 = function (descriptor) { if (!this.xl3_1.gl7()) { var tmp = this.ekx(); var tmp_0 = EventType_END_ELEMENT_getInstance(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp_1 = this.a46().bkr(); // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$1 = this.a46().ckr(); tmp.vkn(tmp_0, tmp_1, tmp$ret$1); } else { var isMixed = this.xl3_1.il0_1.equals(OutputKind_Mixed_getInstance()); if (!isMixed ? true : !this.xl3_1.gl7()) { var tmp0_safe_receiver = this.nlf_1; var t = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.il4_1; if (!(t == null)) { var tmp_2 = this.ekx(); var tmp_3 = EventType_END_ELEMENT_getInstance(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp_4 = t.bkr(); // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$3 = t.ckr(); tmp_2.vkn(tmp_3, tmp_4, tmp$ret$3); } else { protoOf(TagDecoderBase).t48.call(this, descriptor); } } } }; function XmlDecoderBase(context, config, input) { XmlCodecBase.call(this, context, config); this.rl4_1 = new XmlBufferedReader(input); var tmp = this; // Inline function 'kotlin.collections.mutableMapOf' call tmp.sl4_1 = LinkedHashMap_init_$Create$(); } protoOf(XmlDecoderBase).al5 = function () { if (this.rl4_1.lkn().equals(EventType_START_ELEMENT_getInstance())) { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = until(0, this.rl4_1.kkn()); var tmp; if (isInterface(this_0, Collection)) { tmp = this_0.d1(); } else { tmp = false; } if (tmp) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.XmlDecoderBase.hasNullMark.' call var tmp_0; var tmp_1; var tmp_2; var tmp_3 = this.rl4_1.rkn(element); if (tmp_3 === 'http://www.w3.org/2001/XMLSchema-instance') { tmp_2 = this.rl4_1.tkn(element) === 'nil'; } else { tmp_2 = false; } if (tmp_2) { tmp_1 = this.rl4_1.ukn(element) === 'true'; } else { tmp_1 = false; } if (tmp_1) { tmp_0 = true; } else { var tmp_4; var tmp_5 = this.rl4_1.xks(element); var tmp0_safe_receiver = this.rky_1.gkz_1; if (tmp_5.equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w6_1)) { tmp_4 = this.rl4_1.ukn(element) === this.rky_1.gkz_1.x6_1; } else { tmp_4 = false; } tmp_0 = tmp_4; } if (tmp_0) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } var hasNilAttr = tmp$ret$0; if (hasNilAttr) return true; } return false; }; function PolyInfo(tagName, index, descriptor) { this.il4_1 = tagName; this.jl4_1 = index; this.kl4_1 = descriptor; } protoOf(PolyInfo).pky = function () { return this.kl4_1.hl2().a46(); }; protoOf(PolyInfo).toString = function () { return 'PolyInfo(tagName=' + this.il4_1 + ', index=' + this.jl4_1 + ', descriptor=' + this.kl4_1 + ')'; }; protoOf(PolyInfo).hashCode = function () { var result = this.il4_1.hashCode(); result = imul(result, 31) + this.jl4_1 | 0; result = imul(result, 31) + this.kl4_1.hashCode() | 0; return result; }; protoOf(PolyInfo).equals = function (other) { if (this === other) return true; if (!(other instanceof PolyInfo)) return false; var tmp0_other_with_cast = other instanceof PolyInfo ? other : THROW_CCE(); if (!this.il4_1.equals(tmp0_other_with_cast.il4_1)) return false; if (!(this.jl4_1 === tmp0_other_with_cast.jl4_1)) return false; if (!this.kl4_1.equals(tmp0_other_with_cast.kl4_1)) return false; return true; }; function encodeQName($this, value) { var effectiveQName = $this.pkz(value, false); XmlQNameSerializer_getInstance().xkq($this, effectiveQName); } function writeDiscriminatorAttributeIfNeeded($this) { if (!($this.ylf_1 == null)) { var typeName = $this.pkz(typeQName($this.t39().fkz_1, $this.xl3_1), true); smartWriteAttribute($this.clg_1, $this.ylf_1, toCName(typeName)); } } function encodeQName_0($this, elementDescriptor, index, value) { var effectiveQName = $this.pkz(value, false); var encoder = new XmlEncoder($this.clg_1, elementDescriptor, index); $this.dlg(index, XmlEncoderBase$TagEncoder$encodeQName$lambda(encoder, effectiveQName)); } function sam$kotlin_Comparator$0_0(function_0) { this.elg_1 = function_0; } protoOf(sam$kotlin_Comparator$0_0).qa = function (a, b) { return this.elg_1(a, b); }; protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) { return this.qa(a, b); }; function XmlEncoderBase$TagEncoder$encodeSerializableElement$lambda($value) { return function ($this$defer) { var tmp = CompactFragmentSerializer_getInstance(); tmp.hkx($this$defer, (!($value == null) ? isInterface($value, ICompactFragment) : false) ? $value : THROW_CCE()); return Unit_instance; }; } function XmlEncoderBase$TagEncoder$encodeSerializableElement$lambda_0($effectiveSerializer, $encoder, $value) { return function ($this$defer) { $effectiveSerializer.b45($encoder, $value); return Unit_instance; }; } function XmlEncoderBase$TagEncoder$encodeSerializableElement$lambda_1($effectiveSerializer, $encoder, $value) { return function ($this$defer) { $effectiveSerializer.b45($encoder, $value); return Unit_instance; }; } function XmlEncoderBase$TagEncoder$encodeNullableSerializableElement$lambda($serializer, $encoder) { return function ($this$defer) { (isInterface($serializer, SerializationStrategy) ? $serializer : THROW_CCE()).b45($encoder, null); return Unit_instance; }; } function XmlEncoderBase$TagEncoder$encodeNullableSerializableElement$lambda_0(this$0, $elemDescriptor, this$1, $nilAttr) { return function ($this$defer) { var this_0 = this$0.vko(); var qName = $elemDescriptor.xkz(); var nsUri = qName.bkr(); var localName = qName.ckr(); var prefix = qName.dkr(); smartStartTag(this_0, nsUri, localName, prefix); // Inline function 'nl.adaptivity.xmlutil.serialization.TagEncoder.encodeNullableSerializableElement..' call smartWriteAttribute(this$1, $nilAttr.w6_1, $nilAttr.x6_1); this_0.fkp(nsUri, localName, prefix); return Unit_instance; }; } function XmlEncoderBase$TagEncoder$encodeQName$lambda($encoder, $effectiveQName) { return function ($this$defer) { XmlQNameSerializer_getInstance().xkq($encoder, $effectiveQName); return Unit_instance; }; } function XmlEncoderBase$TagEncoder$encodeStringElement$lambda(this$0, $elementDescriptor, $value) { return function ($this$defer) { var this_0 = this$0.vko(); var qName = $elementDescriptor.xkz(); var nsUri = qName.bkr(); var localName = qName.ckr(); var prefix = qName.dkr(); smartStartTag(this_0, nsUri, localName, prefix); // Inline function 'nl.adaptivity.xmlutil.serialization.TagEncoder.encodeStringElement..' call if (!$elementDescriptor.bl5() ? isWhitespace(first($value)) ? true : isWhitespace(last($value)) : false) { var tmp = this$0.vko(); tmp.bkp('http://www.w3.org/XML/1998/namespace', 'space', 'xml', 'preserve'); } if ($elementDescriptor.flg()) { this$0.vko().zko($value); } else { this$0.vko().yko($value); } this_0.fkp(nsUri, localName, prefix); return Unit_instance; }; } function XmlEncoderBase$TagEncoder$encodeStringElement$lambda_0($elementDescriptor, this$0, $value) { return function ($this$defer) { var tmp; if ($elementDescriptor.flg()) { this$0.vko().zko($value); tmp = Unit_instance; } else { this$0.vko().yko($value); tmp = Unit_instance; } return Unit_instance; }; } function XmlEncoderBase$TagEncoder$flushDeferred$lambda(a, b) { // Inline function 'kotlin.comparisons.compareValuesBy' call // Inline function 'nl.adaptivity.xmlutil.serialization.TagEncoder.flushDeferred.' call var tmp = a.w6_1; // Inline function 'nl.adaptivity.xmlutil.serialization.TagEncoder.flushDeferred.' call var tmp$ret$1 = b.w6_1; return compareValues(tmp, tmp$ret$1); } function XmlEncoderBase$TagEncoder$doWriteAttribute$lambda(this$0, $actualAttrName, $value) { return function ($this$null) { smartWriteAttribute(this$0, $actualAttrName, $value); return Unit_instance; }; } function _get_entryKey__gkoau6($this) { var tmp = $this.nlg_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('entryKey'); } } function _get_parentXmlDescriptor__yo818r_0($this) { var tmp = $this.xl3_1.rkz_1.a45(); return tmp instanceof XmlDescriptor ? tmp : THROW_CCE(); } function _get_mapDescriptor__1b9wli($this) { var tmp = $this.xl3_1; return tmp instanceof XmlMapDescriptor ? tmp : THROW_CCE(); } function _get_keySerializer__nwm36o($this) { var tmp = $this.wlg_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('keySerializer'); } } function XmlEncoderBase$MapEncoder$encodeSerializableElement$lambda(this$0, $valueDescriptor, this$1, $keyDescriptor, $effectiveSerializer, $value) { return function ($this$defer) { var this_0 = this$0.vko(); var qName = $valueDescriptor.xkz(); var nsUri = qName.bkr(); var localName = qName.ckr(); var prefix = qName.dkr(); smartStartTag(this_0, nsUri, localName, prefix); // Inline function 'nl.adaptivity.xmlutil.serialization.MapEncoder.encodeSerializableElement..' call var keyEncoder = new PrimitiveEncoder(this$1, $this$defer.d46(), $keyDescriptor); var tmp = _get_keySerializer__nwm36o(this$0); keyEncoder.j4a(isInterface(tmp, SerializationStrategy) ? tmp : THROW_CCE(), this$0.xlg_1); var serializedKey = keyEncoder.blh_1.toString(); smartWriteAttribute(this$1, $keyDescriptor.xkz(), serializedKey); $effectiveSerializer.b45(new InlineEncoder(this$1, this$0, 1), $value); this_0.fkp(nsUri, localName, prefix); return Unit_instance; }; } function XmlEncoder($outer, xmlDescriptor, elementIndex, discriminatorName) { discriminatorName = discriminatorName === VOID ? null : discriminatorName; this.bkz_1 = $outer; XmlCodec.call(this, $outer, xmlDescriptor); this.zky_1 = elementIndex; this.akz_1 = discriminatorName; } protoOf(XmlEncoder).vko = function () { return this.bkz_1.flh_1; }; protoOf(XmlEncoder).d46 = function () { return this.bkz_1.qky_1; }; protoOf(XmlEncoder).t39 = function () { return this.bkz_1.rky_1; }; protoOf(XmlEncoder).pkz = function (qName, isAttr) { return ensureNamespace_1(this.bkz_1, qName, isAttr); }; protoOf(XmlEncoder).n49 = function (value) { return this.v49(value.toString()); }; protoOf(XmlEncoder).o49 = function (value) { var tmp; if (this.ul4_1.wl4() === true) { // Inline function 'kotlin.toUByte' call var tmp$ret$0 = _UByte___init__impl__g9hnc4(value); this.v49(UByte__toString_impl_v72jg(tmp$ret$0)); tmp = Unit_instance; } else { this.v49(value.toString()); tmp = Unit_instance; } return tmp; }; protoOf(XmlEncoder).p49 = function (value) { var tmp; if (this.ul4_1.wl4() === true) { // Inline function 'kotlin.toUShort' call var tmp$ret$0 = _UShort___init__impl__jigrne(value); this.v49(UShort__toString_impl_edaoee(tmp$ret$0)); tmp = Unit_instance; } else { this.v49(value.toString()); tmp = Unit_instance; } return tmp; }; protoOf(XmlEncoder).q49 = function (value) { var tmp; if (this.ul4_1.wl4() === true) { // Inline function 'kotlin.toUInt' call var tmp$ret$0 = _UInt___init__impl__l7qpdl(value); this.v49(UInt__toString_impl_dbgl21(tmp$ret$0)); tmp = Unit_instance; } else { this.v49(value.toString()); tmp = Unit_instance; } return tmp; }; protoOf(XmlEncoder).r49 = function (value) { var tmp; if (this.ul4_1.wl4() === true) { // Inline function 'kotlin.toULong' call var tmp$ret$0 = _ULong___init__impl__c78o9k(value); this.v49(ULong__toString_impl_f9au7k(tmp$ret$0)); tmp = Unit_instance; } else { this.v49(value.toString()); tmp = Unit_instance; } return tmp; }; protoOf(XmlEncoder).s49 = function (value) { return this.v49(value.toString()); }; protoOf(XmlEncoder).t49 = function (value) { return this.v49(value.toString()); }; protoOf(XmlEncoder).u49 = function (value) { return this.v49(toString_0(value)); }; protoOf(XmlEncoder).v49 = function (value) { var tmp = this.ul4_1; var defaultValue = (tmp instanceof XmlValueDescriptor ? tmp : THROW_CCE()).gl4_1; if (value === defaultValue) return Unit_instance; switch (this.ul4_1.fky().ab_1) { case 4: case 0: // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var this_0 = this.vko(); var qName = this.a46(); // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var nsUri = qName.bkr(); var localName = qName.ckr(); var prefix = qName.dkr(); smartStartTag(this_0, nsUri, localName, prefix); // Inline function 'nl.adaptivity.xmlutil.serialization.XmlEncoder.encodeString.' call if (!(this.akz_1 == null)) { var typeRef = this.pkz(typeQName(this.t39().fkz_1, this.ul4_1), false); smartWriteAttribute(this.bkz_1, this.akz_1, toCName(typeRef)); } if (!this.ul4_1.bl5() ? isWhitespace(first(value)) ? true : isWhitespace(last(value)) : false) { var tmp_0 = this.vko(); tmp_0.bkp('http://www.w3.org/XML/1998/namespace', 'space', 'xml', 'preserve'); } if (this.ul4_1.flg()) { this.vko().zko(value); } else { this.vko().yko(value); } this_0.fkp(nsUri, localName, prefix); break; case 1: smartWriteAttribute(this.bkz_1, this.a46(), value); break; case 3: case 2: if (this.ul4_1.flg()) { this.vko().zko(value); } else { this.vko().yko(value); } break; } }; protoOf(XmlEncoder).w49 = function (enumDescriptor, index) { var stringRepr = this.t39().fkz_1.xl4(enumDescriptor, index); this.v49(stringRepr); }; protoOf(XmlEncoder).m4a = function () { }; protoOf(XmlEncoder).m49 = function () { var nilAttr = this.t39().gkz_1; if (this.ul4_1.fky().equals(OutputKind_Element_getInstance()) ? !(nilAttr == null) : false) { // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var this_0 = this.vko(); var qName = this.a46(); // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var nsUri = qName.bkr(); var localName = qName.ckr(); var prefix = qName.dkr(); smartStartTag(this_0, nsUri, localName, prefix); // Inline function 'nl.adaptivity.xmlutil.serialization.XmlEncoder.encodeNull.' call if (!(this.akz_1 == null)) { var typeRef = this.pkz(typeQName(this.t39().fkz_1, this.ul4_1), true); smartWriteAttribute(this.bkz_1, this.akz_1, toCName(typeRef)); } smartWriteAttribute(this.bkz_1, nilAttr.w6_1, nilAttr.x6_1); this_0.fkp(nsUri, localName, prefix); } }; protoOf(XmlEncoder).j4a = function (serializer, value) { var effectiveSerializer = this.ul4_1.hlh(serializer); if (equals(effectiveSerializer, XmlQNameSerializer_getInstance())) { encodeQName(this, value instanceof QName ? value : THROW_CCE()); } else { effectiveSerializer.b45(this, value); } }; protoOf(XmlEncoder).x49 = function (descriptor) { return new XmlEncoder(this.bkz_1, this.ul4_1.u46(0), this.zky_1, this.akz_1); }; protoOf(XmlEncoder).s48 = function (descriptor) { // Inline function 'kotlin.apply' call var this_0 = this.bkz_1.ilh(this.ul4_1, this.zky_1, this.akz_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.XmlEncoder.beginStructure.' call this_0.jlh(); return this_0; }; function NSAttrXmlEncoder($outer, xmlDescriptor, namespaces, elementIndex) { this.qlh_1 = $outer; XmlEncoder.call(this, $outer, xmlDescriptor, elementIndex); this.plh_1 = toList(namespaces); } protoOf(NSAttrXmlEncoder).s48 = function (descriptor) { var compositeEncoder = protoOf(XmlEncoder).s48.call(this, descriptor); var tmp0_iterator = this.plh_1.w(); while (tmp0_iterator.f()) { var namespace = tmp0_iterator.e(); if (this.vko().gkp(namespace.ekn()) == null) { this.vko().kkp(namespace); } } return compositeEncoder; }; function PrimitiveEncoder($outer, serializersModule, xmlDescriptor) { this.clh_1 = $outer; this.zlg_1 = serializersModule; this.alh_1 = xmlDescriptor; this.blh_1 = StringBuilder_init_$Create$(); } protoOf(PrimitiveEncoder).d46 = function () { return this.zlg_1; }; protoOf(PrimitiveEncoder).t39 = function () { return this.clh_1.rky_1; }; protoOf(PrimitiveEncoder).vko = function () { return this.clh_1.flh_1; }; protoOf(PrimitiveEncoder).pkz = function (qName, isAttr) { return ensureNamespace_1(this.clh_1, qName, isAttr); }; protoOf(PrimitiveEncoder).s48 = function (descriptor) { throw IllegalArgumentException_init_$Create$('Primitives cannot be structs'); }; protoOf(PrimitiveEncoder).n49 = function (value) { return this.v49(value.toString()); }; protoOf(PrimitiveEncoder).o49 = function (value) { var tmp; if (this.alh_1.wl4() === true) { // Inline function 'kotlin.toUByte' call var tmp$ret$0 = _UByte___init__impl__g9hnc4(value); this.v49(UByte__toString_impl_v72jg(tmp$ret$0)); tmp = Unit_instance; } else { this.v49(value.toString()); tmp = Unit_instance; } return tmp; }; protoOf(PrimitiveEncoder).u49 = function (value) { return this.v49(toString_0(value)); }; protoOf(PrimitiveEncoder).t49 = function (value) { return this.v49(value.toString()); }; protoOf(PrimitiveEncoder).w49 = function (enumDescriptor, index) { var tagName = this.alh_1.u46(index).xkz(); var tmp; // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call if (tagName.bkr() === '') { // Inline function 'nl.adaptivity.xmlutil.prefix' call tmp = tagName.dkr() === ''; } else { tmp = false; } if (tmp) { // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$2 = tagName.ckr(); this.v49(tmp$ret$2); } else { this.j4a(QNameSerializer_getInstance(), tagName); } }; protoOf(PrimitiveEncoder).s49 = function (value) { return this.v49(value.toString()); }; protoOf(PrimitiveEncoder).x49 = function (descriptor) { return this; }; protoOf(PrimitiveEncoder).q49 = function (value) { var tmp; if (this.alh_1.wl4() === true) { // Inline function 'kotlin.toUInt' call var tmp$ret$0 = _UInt___init__impl__l7qpdl(value); this.v49(UInt__toString_impl_dbgl21(tmp$ret$0)); tmp = Unit_instance; } else { this.v49(value.toString()); tmp = Unit_instance; } return tmp; }; protoOf(PrimitiveEncoder).r49 = function (value) { var tmp; if (this.alh_1.wl4() === true) { // Inline function 'kotlin.toULong' call var tmp$ret$0 = _ULong___init__impl__c78o9k(value); this.v49(ULong__toString_impl_f9au7k(tmp$ret$0)); tmp = Unit_instance; } else { this.v49(value.toString()); tmp = Unit_instance; } return tmp; }; protoOf(PrimitiveEncoder).m49 = function () { return Unit_instance; }; protoOf(PrimitiveEncoder).p49 = function (value) { var tmp; if (this.alh_1.wl4() === true) { // Inline function 'kotlin.toUShort' call var tmp$ret$0 = _UShort___init__impl__jigrne(value); this.v49(UShort__toString_impl_edaoee(tmp$ret$0)); tmp = Unit_instance; } else { this.v49(value.toString()); tmp = Unit_instance; } return tmp; }; protoOf(PrimitiveEncoder).v49 = function (value) { this.blh_1.y5(value); }; protoOf(PrimitiveEncoder).j4a = function (serializer, value) { var tmp0_subject = this.alh_1.hlh(serializer); if (equals(tmp0_subject, XmlQNameSerializer_getInstance())) { var tmp = XmlQNameSerializer_getInstance(); tmp.xkq(this, this.okz(value instanceof QName ? value : THROW_CCE())); } else { encodeSerializableValue.call(this, serializer, value); } }; function InlineEncoder($outer, parent, childIndex) { this.ylh_1 = $outer; XmlEncoder.call(this, $outer, parent.xl3_1.u46(childIndex), childIndex, null); this.wlh_1 = parent; this.xlh_1 = childIndex; } protoOf(InlineEncoder).v49 = function (value) { var d = this.ul4_1.u46(0); this.wlh_1.zlh(d, this.xlh_1, value); }; protoOf(InlineEncoder).j4a = function (serializer, value) { var d = this.ul4_1.u46(0); this.wlh_1.ali(d, this.xlh_1, serializer, value); }; protoOf(InlineEncoder).x49 = function (descriptor) { return this; }; protoOf(InlineEncoder).s48 = function (descriptor) { // Inline function 'kotlin.apply' call var this_0 = new InlineTagEncoder(this.ylh_1, this.ylh_1.ilh(this.ul4_1, this.zky_1, this.akz_1)); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.InlineEncoder.beginStructure.' call this_0.jlh(); return this_0; }; function InlineTagEncoder($outer, delegate) { this.jli_1 = $outer; TagEncoder.call(this, $outer, delegate.xl3_1, null); this.ili_1 = delegate; } protoOf(InlineTagEncoder).jlh = function () { }; protoOf(InlineTagEncoder).ali = function (elementDescriptor, index, serializer, value) { this.ili_1.ali(elementDescriptor, index, serializer, value); }; protoOf(InlineTagEncoder).h4a = function (descriptor, index) { return this.ili_1.h4a(descriptor, index); }; protoOf(InlineTagEncoder).o4a = function (descriptor, index) { return this.ili_1.o4a(descriptor, index); }; protoOf(InlineTagEncoder).k4a = function (descriptor, index, serializer, value) { this.ili_1.k4a(descriptor, index, serializer, value); }; protoOf(InlineTagEncoder).zlh = function (elementDescriptor, index, value) { this.ili_1.zlh(elementDescriptor, index, value); }; protoOf(InlineTagEncoder).t48 = function (descriptor) { this.ili_1.kli(); }; function TagEncoder($outer, xmlDescriptor, discriminatorName, deferring) { deferring = deferring === VOID ? true : deferring; this.clg_1 = $outer; XmlTagCodec.call(this, $outer, xmlDescriptor); this.ylf_1 = discriminatorName; this.zlf_1 = deferring; var tmp = this; // Inline function 'kotlin.collections.mutableListOf' call tmp.alg_1 = ArrayList_init_$Create$(); var tmp_0 = this; var tmp0_safe_receiver = xmlDescriptor instanceof XmlCompositeDescriptor ? xmlDescriptor : null; tmp_0.blg_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nli(); } protoOf(TagEncoder).vko = function () { return this.clg_1.flh_1; }; protoOf(TagEncoder).pkz = function (qName, isAttr) { return ensureNamespace_1(this.clg_1, qName, isAttr); }; protoOf(TagEncoder).jlh = function () { smartStartTag_0(this.vko(), this.a46()); this.lli(); writeDiscriminatorAttributeIfNeeded(this); }; protoOf(TagEncoder).lli = function () { var tmp0_iterator = this.xl3_1.vkz_1.w(); while (tmp0_iterator.f()) { var namespace = tmp0_iterator.e(); ensureNamespace_0(this.clg_1, namespace); } }; protoOf(TagEncoder).dlg = function (index, deferred) { if (this.xl3_1.u46(index).oli()) { deferred(this); } else if (!this.zlf_1) { deferred(this); } else if (!(this.blg_1 == null)) { this.alg_1.j1(to(this.blg_1[index], deferred)); } else { var outputKind = this.xl3_1.u46(index).fky(); if (outputKind.equals(OutputKind_Attribute_getInstance())) { deferred(this); } else { this.alg_1.j1(to(index, deferred)); } } }; protoOf(TagEncoder).i4a = function (descriptor, index, serializer, value) { this.ali(this.xl3_1.u46(index), index, serializer, value); }; protoOf(TagEncoder).ali = function (elementDescriptor, index, serializer, value) { var encoder = elementDescriptor.oli() ? new InlineEncoder(this.clg_1, this, index) : new XmlEncoder(this.clg_1, elementDescriptor, index); var effectiveSerializer = this.xl3_1.u46(index).hlh(serializer); if (equals(effectiveSerializer, XmlQNameSerializer_getInstance())) { encodeQName_0(this, elementDescriptor, index, value instanceof QName ? value : THROW_CCE()); } else if (equals(effectiveSerializer, CompactFragmentSerializer_getInstance())) if (getValueChild(this.xl3_1) === index) { this.dlg(index, XmlEncoderBase$TagEncoder$encodeSerializableElement$lambda(value)); } else { this.dlg(index, XmlEncoderBase$TagEncoder$encodeSerializableElement$lambda_0(effectiveSerializer, encoder, value)); } else { this.dlg(index, XmlEncoderBase$TagEncoder$encodeSerializableElement$lambda_1(effectiveSerializer, encoder, value)); } }; protoOf(TagEncoder).h4a = function (descriptor, index) { return new InlineEncoder(this.clg_1, this, index); }; protoOf(TagEncoder).o4a = function (descriptor, index) { var elementDescriptor = this.xl3_1.u46(index); return this.t39().fkz_1.pli(elementDescriptor); }; protoOf(TagEncoder).y49 = function (descriptor, index, value) { this.g4a(descriptor, index, value.toString()); }; protoOf(TagEncoder).z49 = function (descriptor, index, value) { if (this.xl3_1.wl4() === true) { // Inline function 'kotlin.toUByte' call var tmp$ret$0 = _UByte___init__impl__g9hnc4(value); this.g4a(descriptor, index, UByte__toString_impl_v72jg(tmp$ret$0)); } else { this.g4a(descriptor, index, value.toString()); } }; protoOf(TagEncoder).a4a = function (descriptor, index, value) { if (this.xl3_1.wl4() === true) { // Inline function 'kotlin.toUShort' call var tmp$ret$0 = _UShort___init__impl__jigrne(value); this.g4a(descriptor, index, UShort__toString_impl_edaoee(tmp$ret$0)); } else { this.g4a(descriptor, index, value.toString()); } }; protoOf(TagEncoder).b4a = function (descriptor, index, value) { if (this.xl3_1.wl4() === true) { // Inline function 'kotlin.toUInt' call var tmp$ret$0 = _UInt___init__impl__l7qpdl(value); this.g4a(descriptor, index, UInt__toString_impl_dbgl21(tmp$ret$0)); } else { this.g4a(descriptor, index, value.toString()); } }; protoOf(TagEncoder).c4a = function (descriptor, index, value) { if (this.xl3_1.wl4() === true) { // Inline function 'kotlin.toULong' call var tmp$ret$0 = _ULong___init__impl__c78o9k(value); this.g4a(descriptor, index, ULong__toString_impl_f9au7k(tmp$ret$0)); } else { this.g4a(descriptor, index, value.toString()); } }; protoOf(TagEncoder).d4a = function (descriptor, index, value) { this.g4a(descriptor, index, value.toString()); }; protoOf(TagEncoder).e4a = function (descriptor, index, value) { this.g4a(descriptor, index, value.toString()); }; protoOf(TagEncoder).f4a = function (descriptor, index, value) { this.g4a(descriptor, index, toString_0(value)); }; protoOf(TagEncoder).k4a = function (descriptor, index, serializer, value) { var nilAttr = this.t39().gkz_1; var elemDescriptor = this.xl3_1.u46(index); if (!(value == null)) { this.i4a(descriptor, index, serializer, value); } else if (serializer.a45().l46()) { var encoder = elemDescriptor.oli() ? new InlineEncoder(this.clg_1, this, index) : new XmlEncoder(this.clg_1, elemDescriptor, index); this.dlg(index, XmlEncoderBase$TagEncoder$encodeNullableSerializableElement$lambda(serializer, encoder)); } else if (!(nilAttr == null) ? elemDescriptor.ykz().equals(OutputKind_Element_getInstance()) : false) { this.dlg(index, XmlEncoderBase$TagEncoder$encodeNullableSerializableElement$lambda_0(this, elemDescriptor, this.clg_1, nilAttr)); } }; protoOf(TagEncoder).g4a = function (descriptor, index, value) { var elementDescriptor = this.xl3_1.u46(index); this.zlh(elementDescriptor, index, value); }; protoOf(TagEncoder).zlh = function (elementDescriptor, index, value) { var tmp0_safe_receiver = elementDescriptor instanceof XmlValueDescriptor ? elementDescriptor : null; var defaultValue = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gl4_1; if (value === defaultValue) return Unit_instance; switch (elementDescriptor.fky().ab_1) { case 4: case 0: this.dlg(index, XmlEncoderBase$TagEncoder$encodeStringElement$lambda(this, elementDescriptor, value)); break; case 1: this.mli(index, elementDescriptor.xkz(), value); break; case 3: case 2: if (!elementDescriptor.bl5() ? isWhitespace(first(value)) ? true : isWhitespace(last(value)) : false) { var tmp = this.vko(); tmp.bkp('http://www.w3.org/XML/1998/namespace', 'space', 'xml', 'preserve'); } this.dlg(index, XmlEncoderBase$TagEncoder$encodeStringElement$lambda_0(elementDescriptor, this, value)); break; } }; protoOf(TagEncoder).t48 = function (descriptor) { this.kli(); endTag(this.vko(), this.a46()); }; protoOf(TagEncoder).kli = function () { this.zlf_1 = false; // Inline function 'kotlin.collections.sortedBy' call var this_0 = this.alg_1; // Inline function 'kotlin.comparisons.compareBy' call var tmp = XmlEncoderBase$TagEncoder$flushDeferred$lambda; var tmp$ret$0 = new sam$kotlin_Comparator$0_0(tmp); var actions = sortedWith_0(this_0, tmp$ret$0); var tmp0_iterator = actions.w(); while (tmp0_iterator.f()) { var deferred = tmp0_iterator.e().z6(); deferred(this); } }; protoOf(TagEncoder).mli = function (index, name, value) { var tmp; var tmp_0; // Inline function 'kotlin.text.isEmpty' call var this_0 = name.bkr(); if (charSequenceLength(this_0) === 0) { tmp_0 = true; } else { var tmp_1; if (this.a46().bkr() === name.bkr()) { // Inline function 'nl.adaptivity.xmlutil.prefix' call var tmp_2 = this.a46().dkr(); // Inline function 'nl.adaptivity.xmlutil.prefix' call tmp_1 = tmp_2 === name.dkr(); } else { tmp_1 = false; } tmp_0 = tmp_1; } if (tmp_0) { // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$3 = name.ckr(); tmp = QName_init_$Create$(tmp$ret$3); } else { tmp = name; } var actualAttrName = tmp; if (!(this.blg_1 == null)) { var deferred = XmlEncoderBase$TagEncoder$doWriteAttribute$lambda(this.clg_1, actualAttrName, value); this.alg_1.j1(to(this.blg_1[index], deferred)); } else { smartWriteAttribute(this.clg_1, actualAttrName, value); } }; function nextAutoPrefix(_this__u8e3s4, $this) { var prefix; do { prefix = 'n' + $this.glh_1; } while (!(_this__u8e3s4.wkm(prefix) == null)); return prefix; } function ensureNamespace_0($this, namespace) { if (!($this.nkn().xkm(namespace.ckn()) == null)) return Unit_instance; var effectivePrefix = $this.nkn().wkm(namespace.ekn()) == null ? namespace.ekn() : nextAutoPrefix($this.nkn(), $this); $this.flh_1.wko(effectivePrefix, namespace.ckn()); } function ensureNamespace_1($this, qName, isAttr) { if (isAttr) { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call if (qName.bkr() === '') return copy(qName, ''); else { // Inline function 'nl.adaptivity.xmlutil.prefix' call if (qName.dkr() === '') { var tmp$ret$6; $l$block: { // Inline function 'kotlin.sequences.firstOrNull' call // Inline function 'nl.adaptivity.xmlutil.prefixesFor' call var this_0 = $this.flh_1.nkn(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var namespaceURI = qName.bkr(); var tmp = this_0.bkn(namespaceURI); var tmp$ret$3 = isInterface(tmp, Iterator) ? tmp : THROW_CCE(); var tmp0_iterator = asSequence(tmp$ret$3).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.XmlEncoderBase.ensureNamespace.' call // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(element) > 0) { tmp$ret$6 = element; break $l$block; } } tmp$ret$6 = null; } var tmp0_elvis_lhs = tmp$ret$6; var tmp_0; if (tmp0_elvis_lhs == null) { // Inline function 'kotlin.also' call var this_1 = nextAutoPrefix($this.nkn(), $this); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.XmlEncoderBase.ensureNamespace.' call // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp$ret$7 = qName.bkr(); $this.flh_1.wko(this_1, tmp$ret$7); tmp_0 = this_1; } else { tmp_0 = tmp0_elvis_lhs; } var effectivePrefix = tmp_0; return copy(qName, effectivePrefix); } } } var registeredNamespace = $this.flh_1.gkp(qName.dkr()); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call if (registeredNamespace === qName.bkr()) return qName; // Inline function 'nl.adaptivity.xmlutil.prefixesFor' call var this_2 = $this.flh_1.nkn(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var namespaceURI_0 = qName.bkr(); var tmp_1 = this_2.bkn(namespaceURI_0); var tmp$ret$11 = isInterface(tmp_1, Iterator) ? tmp_1 : THROW_CCE(); var tmp_2 = asSequence(tmp$ret$11); var registeredPrefix = firstOrNull(filterNot(tmp_2, XmlEncoderBase$ensureNamespace$lambda(isAttr))); var tmp_3; if (!(registeredPrefix == null)) { tmp_3 = copy(qName, registeredPrefix); } else if (!(registeredNamespace == null)) { // Inline function 'nl.adaptivity.xmlutil.prefix' call var prefix = qName.dkr(); var lastDigitIdx = prefix.length; while (lastDigitIdx > 0 ? isDigit(charSequenceGet(prefix, lastDigitIdx - 1 | 0)) : false) { lastDigitIdx = lastDigitIdx - 1 | 0; } var prefixBase; var prefixStart; if (lastDigitIdx === 0) { prefixBase = 'ns'; prefixStart = 0; } else if (lastDigitIdx < prefix.length) { // Inline function 'kotlin.text.substring' call var endIndex = lastDigitIdx; // Inline function 'kotlin.js.asDynamic' call prefixBase = prefix.substring(0, endIndex); // Inline function 'kotlin.text.substring' call var startIndex = lastDigitIdx; // Inline function 'kotlin.js.asDynamic' call var tmp$ret$16 = prefix.substring(startIndex); prefixStart = toInt(tmp$ret$16); } else { prefixBase = prefix; prefixStart = 0; } var tmp$ret$18; $l$block_0: { // Inline function 'kotlin.sequences.first' call var tmp_4 = asSequence_1(numberRangeToNumber(prefixStart, IntCompanionObject_instance.MAX_VALUE)); var tmp0_iterator_0 = map(tmp_4, XmlEncoderBase$ensureNamespace$lambda_0(prefixBase)).w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.XmlEncoderBase.ensureNamespace.' call if ($this.flh_1.gkp(element_0) == null) { tmp$ret$18 = element_0; break $l$block_0; } } throw NoSuchElementException_init_$Create$('Sequence contains no element matching the predicate.'); } var newPrefix = tmp$ret$18; // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp$ret$19 = qName.bkr(); $this.flh_1.wko(newPrefix, tmp$ret$19); tmp_3 = copy(qName, newPrefix); } else { // Inline function 'nl.adaptivity.xmlutil.prefix' call var tmp_5 = qName.dkr(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp$ret$21 = qName.bkr(); $this.flh_1.wko(tmp_5, tmp$ret$21); tmp_3 = qName; } return tmp_3; } function smartWriteAttribute($this, name, value) { var argPrefix = name.dkr(); var resolvedNamespace = $this.flh_1.gkp(argPrefix); var tmp; // Inline function 'kotlin.text.isEmpty' call // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var this_0 = name.bkr(); if (charSequenceLength(this_0) === 0) { // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$2 = name.ckr(); tmp = QName_init_$Create$(tmp$ret$2); } else { // Inline function 'kotlin.text.isEmpty' call if (charSequenceLength(argPrefix) === 0) { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call name.bkr(); tmp = ensureNamespace_1($this, name, true); } else { if (!(resolvedNamespace == null)) { tmp = name; } else { tmp = ensureNamespace_1($this, name, true); } } } var effectiveQName = tmp; writeAttribute($this.flh_1, effectiveQName, value); } function PolymorphicEncoder($outer, xmlDescriptor) { this.xli_1 = $outer; TagEncoder.call(this, $outer, xmlDescriptor, null, false); } protoOf(PolymorphicEncoder).dlg = function (index, deferred) { deferred(this); }; protoOf(PolymorphicEncoder).jlh = function () { if (equals(this.xl3_1.jl0_1, TAG_getInstance())) { protoOf(TagEncoder).jlh.call(this); } }; protoOf(PolymorphicEncoder).zlh = function (elementDescriptor, index, value) { var isMixed = this.xl3_1.il0_1.equals(OutputKind_Mixed_getInstance()); var polymorphicMode = this.xl3_1.jl0_1; if (index === 0) { if (equals(polymorphicMode, TAG_getInstance())) { var childDesc = this.xl3_1.u46(0); switch (childDesc.fky().ab_1) { case 1: this.mli(0, childDesc.xkz(), Companion_instance_1.yli(value, this.xl3_1.ll0_1)); break; case 3: case 4: case 0: // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var this_0 = this.vko(); var qName = childDesc.xkz(); // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var nsUri = qName.bkr(); var localName = qName.ckr(); var prefix = qName.dkr(); smartStartTag(this_0, nsUri, localName, prefix); // Inline function 'nl.adaptivity.xmlutil.serialization.PolymorphicEncoder.encodeStringElement.' call this_0.yko(value); this_0.fkp(nsUri, localName, prefix); break; case 2: throw new XmlSerialException('the type for a polymorphic child cannot be a text'); } } } else { if (equals(polymorphicMode, TRANSPARENT_getInstance())) { if (isMixed) { this.vko().yko(value); } else { // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var this_1 = this.vko(); var qName_0 = this.a46(); // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var nsUri_0 = qName_0.bkr(); var localName_0 = qName_0.ckr(); var prefix_0 = qName_0.dkr(); smartStartTag(this_1, nsUri_0, localName_0, prefix_0); // Inline function 'nl.adaptivity.xmlutil.serialization.PolymorphicEncoder.encodeStringElement.' call this_1.yko(value); this_1.fkp(nsUri_0, localName_0, prefix_0); } } else { if (polymorphicMode instanceof ATTR) { // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var this_2 = this.vko(); var qName_1 = this.a46(); // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var nsUri_1 = qName_1.bkr(); var localName_1 = qName_1.ckr(); var prefix_1 = qName_1.dkr(); smartStartTag(this_2, nsUri_1, localName_1, prefix_1); // Inline function 'nl.adaptivity.xmlutil.serialization.PolymorphicEncoder.encodeStringElement.' call var attrQName = this.pkz(typeQName(this.t39().fkz_1, elementDescriptor), true); smartWriteAttribute(this.xli_1, polymorphicMode.slf_1, toCName(attrQName)); this_2.yko(value); this_2.fkp(nsUri_1, localName_1, prefix_1); } else { protoOf(TagEncoder).zlh.call(this, elementDescriptor, index, value); } } } }; protoOf(PolymorphicEncoder).ali = function (elementDescriptor, index, serializer, value) { var childXmlDescriptor = this.xl3_1.vlf(serializer.a45().a46()); var tmp = this.xl3_1.jl0_1; var tmp0_safe_receiver = tmp instanceof ATTR ? tmp : null; var discriminatorName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.slf_1; var encoder = new XmlEncoder(this.xli_1, childXmlDescriptor, index, discriminatorName); serializer.b45(encoder, value); }; protoOf(PolymorphicEncoder).t48 = function (descriptor) { if (equals(this.xl3_1.jl0_1, TAG_getInstance())) { protoOf(TagEncoder).t48.call(this, descriptor); } }; function AttributeMapEncoder($outer, xmlDescriptor) { this.olg_1 = $outer; TagEncoder.call(this, $outer, xmlDescriptor, null); } protoOf(AttributeMapEncoder).dlg = function (index, deferred) { deferred(this); }; protoOf(AttributeMapEncoder).zlh = function (elementDescriptor, index, value) { var tmp0_subject = index % 2 | 0; if (tmp0_subject === 0) this.nlg_1 = QName_init_$Create$(value); else if (tmp0_subject === 1) { smartWriteAttribute(this.olg_1, _get_entryKey__gkoau6(this), value); } }; protoOf(AttributeMapEncoder).ali = function (elementDescriptor, index, serializer, value) { if ((index % 2 | 0) === 0) { var effectiveSerializer = elementDescriptor.hlh(serializer); var tmp = this; var tmp_0; if (equals(effectiveSerializer, XmlQNameSerializer_getInstance())) { tmp_0 = value instanceof QName ? value : THROW_CCE(); } else { // Inline function 'kotlin.apply' call var this_0 = new PrimitiveEncoder(this.olg_1, this.d46(), this.xl3_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.AttributeMapEncoder.encodeSerializableElement.' call this_0.j4a(effectiveSerializer, value); tmp_0 = QName_init_$Create$(this_0.blh_1.toString()); } tmp.nlg_1 = tmp_0; } else { var effectiveSerializer_0 = this.xl3_1.u46(1).hlh(serializer); // Inline function 'kotlin.apply' call var this_1 = new PrimitiveEncoder(this.olg_1, this.d46(), this.xl3_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.AttributeMapEncoder.encodeSerializableElement.' call this_1.j4a(effectiveSerializer_0, value); var entryValue = this_1.blh_1.toString(); this.mli(index, _get_entryKey__gkoau6(this), entryValue); } }; protoOf(AttributeMapEncoder).jlh = function () { }; protoOf(AttributeMapEncoder).t48 = function (descriptor) { }; function AttributeListEncoder($outer, xmlDescriptor, elementIndex) { this.jlj_1 = $outer; TagEncoder.call(this, $outer, xmlDescriptor, null); this.glj_1 = elementIndex; this.hlj_1 = StringBuilder_init_$Create$(); this.ilj_1 = first_0(xmlDescriptor.pla_1); var d = xmlDescriptor; var ok; do { d = d.u46(0); ok = d.fky(); } while (ok.equals(OutputKind_Inline_getInstance())); if (!ok.equals(OutputKind_Attribute_getInstance()) ? !ok.equals(OutputKind_Text_getInstance()) : false) { throw IllegalArgumentException_init_$Create$('An xml list stored in an attribute must store atomics, not structs'); } } protoOf(AttributeListEncoder).dlg = function (index, deferred) { return deferred(this); }; protoOf(AttributeListEncoder).jlh = function () { }; protoOf(AttributeListEncoder).ali = function (elementDescriptor, index, serializer, value) { var encoder = new PrimitiveEncoder(this.jlj_1, this.d46(), elementDescriptor); encoder.j4a(serializer, value); this.zlh(elementDescriptor, index, encoder.blh_1.toString()); }; protoOf(AttributeListEncoder).zlh = function (elementDescriptor, index, value) { // Inline function 'kotlin.text.isNotEmpty' call var this_0 = this.hlj_1; if (charSequenceLength(this_0) > 0) { this.hlj_1.y5(this.ilj_1); } this.hlj_1.y5(value); }; protoOf(AttributeListEncoder).t48 = function (descriptor) { this.mli(this.glj_1, this.xl3_1.xkz(), this.hlj_1.toString()); }; function ListEncoder($outer, xmlDescriptor, listChildIdx, discriminatorName) { this.slj_1 = $outer; TagEncoder.call(this, $outer, xmlDescriptor, discriminatorName, false); this.rlj_1 = listChildIdx; } protoOf(ListEncoder).dlg = function (index, deferred) { deferred(this); }; protoOf(ListEncoder).jlh = function () { if (!this.xl3_1.sl2()) { var childName = this.xl3_1.u46(0).xkz(); protoOf(TagEncoder).jlh.call(this); var tagName = this.a46(); var tmp; // Inline function 'nl.adaptivity.xmlutil.prefix' call var tmp_0 = tagName.dkr(); // Inline function 'nl.adaptivity.xmlutil.prefix' call if (!(tmp_0 === childName.dkr())) { var tmp_1 = this.vko(); // Inline function 'nl.adaptivity.xmlutil.prefix' call var tmp$ret$2 = childName.dkr(); var tmp_2 = tmp_1.gkp(tmp$ret$2); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call tmp = !(tmp_2 === childName.bkr()); } else { tmp = false; } if (tmp) { var tmp_3 = this.vko(); // Inline function 'nl.adaptivity.xmlutil.prefix' call var tmp_4 = childName.dkr(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp$ret$5 = childName.bkr(); tmp_3.wko(tmp_4, tmp$ret$5); } } }; protoOf(ListEncoder).ali = function (elementDescriptor, index, serializer, value) { var childDescriptor = this.xl3_1.u46(0); var tmp0_subject = elementDescriptor.hlh(serializer); if (equals(tmp0_subject, CompactFragmentSerializer_getInstance())) if (getValueChild(_get_parentXmlDescriptor__yo818r_0(this)) === this.rlj_1) { var tmp = CompactFragmentSerializer_getInstance(); tmp.hkx(this, (!(value == null) ? isInterface(value, ICompactFragment) : false) ? value : THROW_CCE()); } else { serializer.b45(new XmlEncoder(this.slj_1, childDescriptor, index), value); } else { serializer.b45(new XmlEncoder(this.slj_1, childDescriptor, index), value); } }; protoOf(ListEncoder).zlh = function (elementDescriptor, index, value) { if (index > 0) { (new XmlEncoder(this.slj_1, elementDescriptor, index)).v49(value); } }; protoOf(ListEncoder).t48 = function (descriptor) { if (!this.xl3_1.sl2()) { protoOf(TagEncoder).t48.call(this, descriptor); } }; function MapEncoder($outer, xmlDescriptor, discriminatorName) { discriminatorName = discriminatorName === VOID ? null : discriminatorName; this.ylg_1 = $outer; TagEncoder.call(this, $outer, xmlDescriptor, discriminatorName); this.xlg_1 = null; } protoOf(MapEncoder).dlg = function (index, deferred) { deferred(this); }; protoOf(MapEncoder).zlh = function (elementDescriptor, index, value) { var tmp0_subject = index % 2 | 0; if (tmp0_subject === 0) { this.wlg_1 = serializer_0(StringCompanionObject_instance); this.xlg_1 = value; } else if (tmp0_subject === 1) { this.ali(this.xl3_1, index, serializer_0(StringCompanionObject_instance), value); } }; protoOf(MapEncoder).ali = function (elementDescriptor, index, serializer, value) { if ((index % 2 | 0) === 0) { this.wlg_1 = elementDescriptor.hlh(serializer); this.xlg_1 = value; } else { var valueDescriptor = this.xl3_1.u46(1); var effectiveSerializer = valueDescriptor.hlh(serializer); var keyDescriptor = this.xl3_1.u46(0); if (_get_mapDescriptor__1b9wli(this).el3()) { this.dlg(index, XmlEncoderBase$MapEncoder$encodeSerializableElement$lambda(this, valueDescriptor, this.ylg_1, keyDescriptor, effectiveSerializer, value)); } else { // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var this_0 = this.vko(); var qName = _get_mapDescriptor__1b9wli(this).ll4(); // Inline function 'nl.adaptivity.xmlutil.smartStartTag' call var nsUri = qName.bkr(); var localName = qName.ckr(); var prefix = qName.dkr(); smartStartTag(this_0, nsUri, localName, prefix); // Inline function 'nl.adaptivity.xmlutil.serialization.MapEncoder.encodeSerializableElement.' call var keyEncoder = new XmlEncoder(this.ylg_1, keyDescriptor, index - 1 | 0); var tmp = _get_keySerializer__nwm36o(this); keyEncoder.j4a(isInterface(tmp, SerializationStrategy) ? tmp : THROW_CCE(), this.xlg_1); effectiveSerializer.b45(new XmlEncoder(this.ylg_1, valueDescriptor, index), value); this_0.fkp(nsUri, localName, prefix); } } }; protoOf(MapEncoder).jlh = function () { if (!_get_mapDescriptor__1b9wli(this).sl2()) { protoOf(TagEncoder).jlh.call(this); } }; protoOf(MapEncoder).t48 = function (descriptor) { if (!_get_mapDescriptor__1b9wli(this).sl2()) { protoOf(TagEncoder).t48.call(this, descriptor); } }; function XmlEncoderBase$ensureNamespace$lambda($isAttr) { return function (it) { var tmp; if ($isAttr) { // Inline function 'kotlin.text.isEmpty' call tmp = charSequenceLength(it) === 0; } else { tmp = false; } return tmp; }; } function XmlEncoderBase$ensureNamespace$lambda_0($prefixBase) { return function (it) { return $prefixBase + it; }; } function XmlEncoderBase(context, config, target) { XmlCodecBase.call(this, context, config); this.flh_1 = target; this.glh_1 = 1; } protoOf(XmlEncoderBase).nkn = function () { return this.flh_1.nkn(); }; protoOf(XmlEncoderBase).ilh = function (xmlDescriptor, elementIndex, discriminatorName) { var tmp0_subject = xmlDescriptor.tlj(); var tmp; if (tmp0_subject instanceof PrimitiveKind) { throw AssertionError_init_$Create$('A primitive is not a composite'); } else { if (equals(tmp0_subject, CONTEXTUAL_getInstance()) ? true : equals(tmp0_subject, MAP_getInstance())) { var tmp_0; if (xmlDescriptor.fky().ab_1 === 1) { var valueType = xmlDescriptor.u46(1); if (!valueType.ykz().iky() ? !equals(valueType.skz_1, XmlQNameSerializer_getInstance()) : false) { throw new XmlSerialException('Values of an attribute map must be textual or a qname'); } var keyType = xmlDescriptor.u46(0); if (!equals(keyType.skz_1, XmlQNameSerializer_getInstance()) ? !keyType.ykz().iky() : false) { throw new XmlSerialException('The keys of an attribute map must be string or qname'); } tmp_0 = new AttributeMapEncoder(this, xmlDescriptor); } else { tmp_0 = new MapEncoder(this, xmlDescriptor instanceof XmlMapDescriptor ? xmlDescriptor : THROW_CCE(), discriminatorName); } tmp = tmp_0; } else { if ((equals(tmp0_subject, CLASS_getInstance()) ? true : equals(tmp0_subject, OBJECT_getInstance())) ? true : equals(tmp0_subject, ENUM_getInstance())) { tmp = new TagEncoder(this, xmlDescriptor, discriminatorName); } else { if (equals(tmp0_subject, LIST_getInstance())) { var tmp_1; if (xmlDescriptor.fky().ab_1 === 1) { tmp_1 = new AttributeListEncoder(this, xmlDescriptor instanceof XmlListDescriptor ? xmlDescriptor : THROW_CCE(), elementIndex); } else { tmp_1 = new ListEncoder(this, xmlDescriptor instanceof XmlListDescriptor ? xmlDescriptor : THROW_CCE(), elementIndex, discriminatorName); } tmp = tmp_1; } else { if (tmp0_subject instanceof PolymorphicKind) { tmp = new PolymorphicEncoder(this, xmlDescriptor instanceof XmlPolymorphicDescriptor ? xmlDescriptor : THROW_CCE()); } else { noWhenBranchMatchedException(); } } } } } return tmp; }; function Companion_0() { } protoOf(Companion_0).ulj = function (_this__u8e3s4, parentNamespace) { var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = _this__u8e3s4.p46().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlSerialName) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_safe_receiver = tmp$ret$0; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return toQName(tmp0_safe_receiver, _this__u8e3s4.a46(), parentNamespace); } return toQname(substringAfterLast(_this__u8e3s4.a46(), _Char___init__impl__6a9atx(46)), parentNamespace); }; protoOf(Companion_0).ulf = function (_this__u8e3s4, parentType) { if (parentType == null ? true : !startsWith(_this__u8e3s4, _Char___init__impl__6a9atx(46))) return _this__u8e3s4; // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.Companion.expandTypeNameIfNeeded.' call var idx = lastIndexOf(parentType, _Char___init__impl__6a9atx(46)); if (idx < 0) { // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call return _this__u8e3s4.substring(1); } // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call var parentPkg = parentType.substring(0, idx); return parentPkg + _this__u8e3s4; }; protoOf(Companion_0).yli = function (_this__u8e3s4, parentType) { if (parentType == null) return _this__u8e3s4; // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.Companion.tryShortenTypeName.' call var idx = lastIndexOf(parentType, _Char___init__impl__6a9atx(46)); if (idx < 0) return _this__u8e3s4; // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call var parentPkg = parentType.substring(0, idx); if (startsWith_0(_this__u8e3s4, parentPkg) ? indexOf(_this__u8e3s4, _Char___init__impl__6a9atx(46), parentPkg.length + 1 | 0) < 0 : false) { // Inline function 'kotlin.text.substring' call var startIndex = parentPkg.length; // Inline function 'kotlin.js.asDynamic' call return _this__u8e3s4.substring(startIndex); } return _this__u8e3s4; }; var Companion_instance_1; function Companion_getInstance_5() { return Companion_instance_1; } function XmlCodec($outer, xmlDescriptor) { this.vl4_1 = $outer; this.ul4_1 = xmlDescriptor; } protoOf(XmlCodec).a46 = function () { return this.ul4_1.xkz(); }; function XmlTagCodec($outer, xmlDescriptor) { this.yl3_1 = $outer; this.xl3_1 = xmlDescriptor; } protoOf(XmlTagCodec).t39 = function () { return this.yl3_1.rky_1; }; protoOf(XmlTagCodec).d46 = function () { return this.yl3_1.qky_1; }; protoOf(XmlTagCodec).a46 = function () { return this.xl3_1.xkz(); }; protoOf(XmlTagCodec).fl7 = function (_this__u8e3s4) { return copy(_this__u8e3s4, ''); }; function XmlCodecBase(serializersModule, config) { this.qky_1 = serializersModule; this.rky_1 = config; } function Builder_init_$Init$(config, $this) { var tmp = config.fkz_1; var tmp0_safe_receiver = tmp instanceof DefaultXmlSerializationPolicy ? tmp : null; Builder.call($this, config.ckz_1, config.dkz_1, config.ekz_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wlj_1, null, config.fkz_1); $this.fl1_1 = config.gkz_1; $this.el1_1 = config.ikz_1; $this.hl1_1 = config.jkz_1; $this.gl1_1 = config.hkz_1; return $this; } function Builder_init_$Create$(config) { return Builder_init_$Init$(config, objectCreate(protoOf(Builder))); } function sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0(function_0) { this.dlk_1 = function_0; } protoOf(sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0).elk = function (input, inputKind, descriptor, name, candidates) { return this.dlk_1(input, inputKind, descriptor, name, candidates); }; function sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0_0(function_0) { this.flk_1 = function_0; } protoOf(sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0_0).elk = function (input, inputKind, descriptor, name, candidates) { return this.flk_1(input, inputKind, descriptor, name, candidates); }; function sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0_1(function_0) { this.glk_1 = function_0; } protoOf(sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0_1).elk = function (input, inputKind, descriptor, name, candidates) { return this.glk_1(input, inputKind, descriptor, name, candidates); }; function XmlConfig$Companion$DEFAULT_UNKNOWN_CHILD_HANDLER$lambda(input, inputKind, descriptor, name, candidates) { var tmp; var tmp_0; if (inputKind.equals(InputKind_Attribute_getInstance())) { var tmp_1 = Companion_getInstance_6().hlk_1; var tmp_2; if (name == null) { tmp_2 = null; } else { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call tmp_2 = name.bkr(); } tmp_0 = contains(tmp_1, tmp_2); } else { tmp_0 = false; } if (tmp_0) { tmp = emptyList(); } else { var tmp_3 = input.mkn(); var tmp_4 = descriptor.hl2().a46(); var tmp_5 = descriptor.xkz(); throw new UnknownXmlFieldException(tmp_3, '(' + tmp_4 + ') ' + tmp_5 + '/' + toString(name == null ? '' : name) + ' (' + inputKind + ')', candidates); } return tmp; } function XmlConfig$Companion$IGNORING_UNKNOWN_CHILD_HANDLER$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd, _anonymous_parameter_2__qggqfi, _anonymous_parameter_3__qggqen, _anonymous_parameter_4__qggqds) { return emptyList(); } function XmlConfig$Companion$IGNORING_UNKNOWN_NAMESPACE_HANDLER$lambda(input, inputKind, descriptor, name, candidates) { var inputNs = input.ckn(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var contextNs = descriptor.xkz().bkr(); var tmp; var tmp_0; if (!(inputNs === contextNs)) { tmp_0 = true; } else { var tmp_1; if (inputKind.equals(InputKind_Attribute_getInstance())) { var tmp_2; if (name == null) { tmp_2 = null; } else { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call tmp_2 = name.bkr(); } var tmp_3 = tmp_2; tmp_1 = tmp_3 === 'http://www.w3.org/2001/XMLSchema-instance'; } else { tmp_1 = false; } tmp_0 = tmp_1; } if (tmp_0) { tmp = emptyList(); } else { var tmp_4 = input.mkn(); var tmp_5 = descriptor.hl2().a46(); var tmp_6 = descriptor.xkz(); throw new UnknownXmlFieldException(tmp_4, '(' + tmp_5 + ') ' + tmp_6 + '/' + toString(name == null ? '' : name) + ' (' + inputKind + ')', candidates); } return tmp; } function XmlConfig$Companion$DEFAULT_NONRECOVERABLE_CHILD_HANDLER$lambda(input, inputKind, name, candidates) { var tmp = input.mkn(); var tmp1_elvis_lhs = name == null ? null : name.toString(); throw new UnknownXmlFieldException(tmp, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs, candidates); } function XmlConfig_init_$Init$(builder, $this) { builder = builder === VOID ? new Builder() : builder; var tmp = builder.xl0_1; var tmp_0 = builder.yl0_1; var tmp_1 = builder.zl0_1; var tmp2_elvis_lhs = builder.bl1_1; var tmp_2; if (tmp2_elvis_lhs == null) { var tmp0_elvis_lhs = builder.mlk(); var tmp_3 = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs; var tmp_4 = builder.dl1_1; var tmp1_elvis_lhs = builder.al1_1; tmp_2 = DefaultXmlSerializationPolicy_init_$Create$(false, tmp_3, tmp_4, tmp1_elvis_lhs == null ? Companion_getInstance_6().ilk_1 : tmp1_elvis_lhs); } else { tmp_2 = tmp2_elvis_lhs; } XmlConfig.call($this, tmp, tmp_0, tmp_1, tmp_2, builder.fl1_1, builder.gl1_1); $this.ikz_1 = builder.el1_1; $this.jkz_1 = builder.hl1_1; return $this; } function XmlConfig_init_$Create$(builder) { return XmlConfig_init_$Init$(builder, objectCreate(protoOf(XmlConfig))); } function Builder(repairNamespaces, xmlDeclMode, indentString, autoPolymorphic, unknownChildHandler, policy) { repairNamespaces = repairNamespaces === VOID ? true : repairNamespaces; xmlDeclMode = xmlDeclMode === VOID ? XmlDeclMode_None_getInstance() : xmlDeclMode; indentString = indentString === VOID ? '' : indentString; autoPolymorphic = autoPolymorphic === VOID ? null : autoPolymorphic; unknownChildHandler = unknownChildHandler === VOID ? Companion_getInstance_6().ilk_1 : unknownChildHandler; policy = policy === VOID ? null : policy; this.xl0_1 = repairNamespaces; this.yl0_1 = xmlDeclMode; this.zl0_1 = indentString; this.al1_1 = unknownChildHandler; this.bl1_1 = policy; this.cl1_1 = autoPolymorphic; this.dl1_1 = XmlEncodeDefault_ANNOTATED_getInstance(); this.el1_1 = true; this.fl1_1 = null; this.gl1_1 = XmlVersion_XML11_getInstance(); this.hl1_1 = false; } protoOf(Builder).mlk = function () { var tmp1_elvis_lhs = this.cl1_1; var tmp; if (tmp1_elvis_lhs == null) { var tmp_0 = this.bl1_1; var tmp0_safe_receiver = tmp_0 instanceof DefaultXmlSerializationPolicy ? tmp_0 : null; tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wlj_1; } else { tmp = tmp1_elvis_lhs; } return tmp; }; protoOf(Builder).il1 = function () { var p = this.bl1_1; var tmp; if (p instanceof DefaultXmlSerializationPolicy) { tmp = Builder_init_$Create$_0(p); } else { tmp = new Builder_0(); } return tmp; }; function Companion_1() { Companion_instance_2 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.hlk_1 = ['http://www.w3.org/2001/XMLSchema-instance', 'http://www.w3.org/XML/1998/namespace']; var tmp_0 = this; var tmp_1 = XmlConfig$Companion$DEFAULT_UNKNOWN_CHILD_HANDLER$lambda; tmp_0.ilk_1 = new sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0(tmp_1); var tmp_2 = this; var tmp_3 = XmlConfig$Companion$IGNORING_UNKNOWN_CHILD_HANDLER$lambda; tmp_2.jlk_1 = new sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0_0(tmp_3); var tmp_4 = this; var tmp_5 = XmlConfig$Companion$IGNORING_UNKNOWN_NAMESPACE_HANDLER$lambda; tmp_4.klk_1 = new sam$nl_adaptivity_xmlutil_serialization_UnknownChildHandler$0_1(tmp_5); var tmp_6 = this; tmp_6.llk_1 = XmlConfig$Companion$DEFAULT_NONRECOVERABLE_CHILD_HANDLER$lambda; } var Companion_instance_2; function Companion_getInstance_6() { if (Companion_instance_2 == null) new Companion_1(); return Companion_instance_2; } function XmlConfig(repairNamespaces, xmlDeclMode, indentString, policy, nilAttribute, xmlVersion) { Companion_getInstance_6(); repairNamespaces = repairNamespaces === VOID ? true : repairNamespaces; xmlDeclMode = xmlDeclMode === VOID ? XmlDeclMode_None_getInstance() : xmlDeclMode; indentString = indentString === VOID ? '' : indentString; nilAttribute = nilAttribute === VOID ? null : nilAttribute; xmlVersion = xmlVersion === VOID ? XmlVersion_XML11_getInstance() : xmlVersion; this.ckz_1 = repairNamespaces; this.dkz_1 = xmlDeclMode; this.ekz_1 = indentString; this.fkz_1 = policy; this.gkz_1 = nilAttribute; this.hkz_1 = xmlVersion; this.ikz_1 = true; this.jkz_1 = false; } function UnknownXmlFieldException(locationInfo, xmlName, candidates) { candidates = candidates === VOID ? emptyList() : candidates; var tmp = candidateString(candidates); var tmp_0; if (locationInfo == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.UnknownXmlFieldException..' call tmp_0 = ' at position ' + locationInfo; } var tmp1_elvis_lhs = tmp_0; XmlSerialException.call(this, 'Could not find a field for name ' + xmlName + tmp + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs)); captureStack(this, UnknownXmlFieldException); } function XmlSerialException(message, cause) { cause = cause === VOID ? null : cause; SerializationException_init_$Init$(message, cause, this); captureStack(this, XmlSerialException); } function XmlParsingException(locationInfo, message, cause) { cause = cause === VOID ? null : cause; XmlSerialException.call(this, 'Invalid XML value at position: ' + locationInfo + ': ' + message, cause); captureStack(this, XmlParsingException); } function candidateString(candidates) { var tmp; if (candidates.w().f() === true) { tmp = joinToString(candidates, VOID, '\n candidates: ', VOID, VOID, VOID, candidateString$lambda); } else { tmp = ''; } return tmp; } function candidateString$lambda(it) { var tmp; if (it instanceof PolyInfo) { tmp = '' + it.il4_1 + ' (' + it.kl4_1.fky() + ')'; } else { tmp = toString(it); } return tmp; } function DeclaredNameInfo_init_$Init$(serialName, $this) { DeclaredNameInfo.call($this, serialName, null, false); return $this; } function DeclaredNameInfo_init_$Create$(serialName) { return DeclaredNameInfo_init_$Init$(serialName, objectCreate(protoOf(DeclaredNameInfo))); } var XmlEncodeDefault_ALWAYS_instance; var XmlEncodeDefault_ANNOTATED_instance; var XmlEncodeDefault_NEVER_instance; var XmlEncodeDefault_entriesInitialized; function XmlEncodeDefault_initEntries() { if (XmlEncodeDefault_entriesInitialized) return Unit_instance; XmlEncodeDefault_entriesInitialized = true; XmlEncodeDefault_ALWAYS_instance = new XmlEncodeDefault('ALWAYS', 0); XmlEncodeDefault_ANNOTATED_instance = new XmlEncodeDefault('ANNOTATED', 1); XmlEncodeDefault_NEVER_instance = new XmlEncodeDefault('NEVER', 2); } function DeclaredNameInfo(serialName, annotatedName, isDefaultNamespace) { this.nlk_1 = serialName; this.olk_1 = annotatedName; this.plk_1 = isDefaultNamespace; // Inline function 'kotlin.check' call // Inline function 'kotlin.contracts.contract' call if (!!(this.plk_1 ? this.olk_1 == null : false)) { // Inline function 'nl.adaptivity.xmlutil.serialization.DeclaredNameInfo.' call var message = 'Default namespace requires there to be an annotated name'; throw IllegalStateException_init_$Create$(toString(message)); } } protoOf(DeclaredNameInfo).toString = function () { return 'DeclaredNameInfo(serialName=' + this.nlk_1 + ', annotatedName=' + this.olk_1 + ', isDefaultNamespace=' + this.plk_1 + ')'; }; protoOf(DeclaredNameInfo).hashCode = function () { var result = getStringHashCode(this.nlk_1); result = imul(result, 31) + (this.olk_1 == null ? 0 : this.olk_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.plk_1) | 0; return result; }; protoOf(DeclaredNameInfo).equals = function (other) { if (this === other) return true; if (!(other instanceof DeclaredNameInfo)) return false; var tmp0_other_with_cast = other instanceof DeclaredNameInfo ? other : THROW_CCE(); if (!(this.nlk_1 === tmp0_other_with_cast.nlk_1)) return false; if (!equals(this.olk_1, tmp0_other_with_cast.olk_1)) return false; if (!(this.plk_1 === tmp0_other_with_cast.plk_1)) return false; return true; }; function ActualNameInfo(serialName, annotatedName) { this.qlk_1 = serialName; this.rlk_1 = annotatedName; } protoOf(ActualNameInfo).toString = function () { return 'ActualNameInfo(serialName=' + this.qlk_1 + ', annotatedName=' + this.rlk_1 + ')'; }; protoOf(ActualNameInfo).hashCode = function () { var result = getStringHashCode(this.qlk_1); result = imul(result, 31) + this.rlk_1.hashCode() | 0; return result; }; protoOf(ActualNameInfo).equals = function (other) { if (this === other) return true; if (!(other instanceof ActualNameInfo)) return false; var tmp0_other_with_cast = other instanceof ActualNameInfo ? other : THROW_CCE(); if (!(this.qlk_1 === tmp0_other_with_cast.qlk_1)) return false; if (!this.rlk_1.equals(tmp0_other_with_cast.rlk_1)) return false; return true; }; function XmlEncodeDefault(name, ordinal) { Enum.call(this, name, ordinal); } function XmlEncodeDefault_ANNOTATED_getInstance() { XmlEncodeDefault_initEntries(); return XmlEncodeDefault_ANNOTATED_instance; } function XmlSerializationPolicy() { } function Builder_init_$Init$_0(policy, $this) { Builder_0.call($this, policy.vlj_1, policy.wlj_1, policy.xlj_1, policy.ylj_1, policy.zlj_1, policy.alk_1, policy.dl8(), policy.kl7()); return $this; } function Builder_init_$Create$_0(policy) { return Builder_init_$Init$_0(policy, objectCreate(protoOf(Builder_0))); } function DefaultXmlSerializationPolicy_init_$Init$(pedantic, autoPolymorphic, encodeDefault, unknownChildHandler, typeDiscriminatorName, throwOnRepeatedElement, verifyElementOrder, $this) { autoPolymorphic = autoPolymorphic === VOID ? false : autoPolymorphic; encodeDefault = encodeDefault === VOID ? XmlEncodeDefault_ANNOTATED_getInstance() : encodeDefault; unknownChildHandler = unknownChildHandler === VOID ? Companion_getInstance_6().ilk_1 : unknownChildHandler; typeDiscriminatorName = typeDiscriminatorName === VOID ? null : typeDiscriminatorName; throwOnRepeatedElement = throwOnRepeatedElement === VOID ? false : throwOnRepeatedElement; verifyElementOrder = verifyElementOrder === VOID ? false : verifyElementOrder; DefaultXmlSerializationPolicy.call($this, pedantic, autoPolymorphic, encodeDefault, unknownChildHandler, typeDiscriminatorName, throwOnRepeatedElement, verifyElementOrder, false); return $this; } function DefaultXmlSerializationPolicy_init_$Create$(pedantic, autoPolymorphic, encodeDefault, unknownChildHandler, typeDiscriminatorName, throwOnRepeatedElement, verifyElementOrder) { return DefaultXmlSerializationPolicy_init_$Init$(pedantic, autoPolymorphic, encodeDefault, unknownChildHandler, typeDiscriminatorName, throwOnRepeatedElement, verifyElementOrder, objectCreate(protoOf(DefaultXmlSerializationPolicy))); } function DefaultXmlSerializationPolicy_init_$Init$_0(builder, $this) { DefaultXmlSerializationPolicy.call($this, builder.jl1_1, builder.kl1_1, builder.ll1_1, builder.ml1_1, builder.nl1_1, builder.ol1_1, builder.pl1_1, builder.ql1_1); return $this; } function DefaultXmlSerializationPolicy_init_$Create$_0(builder) { return DefaultXmlSerializationPolicy_init_$Init$_0(builder, objectCreate(protoOf(DefaultXmlSerializationPolicy))); } function Builder_0(pedantic, autoPolymorphic, encodeDefault, unknownChildHandler, typeDiscriminatorName, throwOnRepeatedElement, verifyElementOrder, isStrictAttributeNames) { pedantic = pedantic === VOID ? false : pedantic; autoPolymorphic = autoPolymorphic === VOID ? false : autoPolymorphic; encodeDefault = encodeDefault === VOID ? XmlEncodeDefault_ANNOTATED_getInstance() : encodeDefault; unknownChildHandler = unknownChildHandler === VOID ? Companion_getInstance_6().ilk_1 : unknownChildHandler; typeDiscriminatorName = typeDiscriminatorName === VOID ? null : typeDiscriminatorName; throwOnRepeatedElement = throwOnRepeatedElement === VOID ? false : throwOnRepeatedElement; verifyElementOrder = verifyElementOrder === VOID ? false : verifyElementOrder; isStrictAttributeNames = isStrictAttributeNames === VOID ? false : isStrictAttributeNames; this.jl1_1 = pedantic; this.kl1_1 = autoPolymorphic; this.ll1_1 = encodeDefault; this.ml1_1 = unknownChildHandler; this.nl1_1 = typeDiscriminatorName; this.ol1_1 = throwOnRepeatedElement; this.pl1_1 = verifyElementOrder; this.ql1_1 = isStrictAttributeNames; } protoOf(Builder_0).f3 = function () { return DefaultXmlSerializationPolicy_init_$Create$_0(this); }; function initialChildReorderMap$toChildIndex(_this__u8e3s4, nameToIdx, $parentDescriptor) { var tmp; if (_this__u8e3s4 === '*') { tmp = -2; } else { var tmp1_elvis_lhs = nameToIdx.q(_this__u8e3s4); var tmp_0; if (tmp1_elvis_lhs == null) { throw new XmlSerialException('Could not find the attribute in ' + $parentDescriptor.a46() + ' with the name: ' + _this__u8e3s4 + '\n Candidates were: ' + joinToString(nameToIdx.o2())); } else { tmp_0 = tmp1_elvis_lhs; } tmp = tmp_0; } return tmp; } function DefaultXmlSerializationPolicy$effectiveName$lambda() { return 'Type name info should match'; } function DefaultXmlSerializationPolicy$elementNamespaceDecls$lambda(it) { return it instanceof XmlNamespaceDeclSpec; } function DefaultXmlSerializationPolicy$elementNamespaceDecls$lambda_0(decl) { return get_namespaces(decl); } function DefaultXmlSerializationPolicy(pedantic, autoPolymorphic, encodeDefault, unknownChildHandler, typeDiscriminatorName, throwOnRepeatedElement, verifyElementOrder, isStrictNames) { autoPolymorphic = autoPolymorphic === VOID ? false : autoPolymorphic; encodeDefault = encodeDefault === VOID ? XmlEncodeDefault_ANNOTATED_getInstance() : encodeDefault; unknownChildHandler = unknownChildHandler === VOID ? Companion_getInstance_6().ilk_1 : unknownChildHandler; typeDiscriminatorName = typeDiscriminatorName === VOID ? null : typeDiscriminatorName; throwOnRepeatedElement = throwOnRepeatedElement === VOID ? false : throwOnRepeatedElement; verifyElementOrder = verifyElementOrder === VOID ? false : verifyElementOrder; this.vlj_1 = pedantic; this.wlj_1 = autoPolymorphic; this.xlj_1 = encodeDefault; this.ylj_1 = unknownChildHandler; this.zlj_1 = typeDiscriminatorName; this.alk_1 = throwOnRepeatedElement; this.blk_1 = verifyElementOrder; this.clk_1 = isStrictNames; } protoOf(DefaultXmlSerializationPolicy).dl8 = function () { return this.blk_1; }; protoOf(DefaultXmlSerializationPolicy).kl7 = function () { return this.clk_1; }; protoOf(DefaultXmlSerializationPolicy).all = function (serializerParent, tagParent) { return this.zlj_1; }; protoOf(DefaultXmlSerializationPolicy).ylk = function (serializerParent, tagParent) { var useAnnotations = tagParent.sll(); var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = useAnnotations.w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlValue) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_safe_receiver = tmp$ret$0; var isMixed = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nlb_1) === true; if (isMixed) return true; var tmp$ret$1; $l$block_0: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator_0 = useAnnotations.w(); while (tmp0_iterator_0.f()) { var e_0 = tmp0_iterator_0.e(); if (e_0 instanceof XmlChildrenName) { tmp$ret$1 = e_0; break $l$block_0; } } tmp$ret$1 = null; } var tmp1_safe_receiver = tmp$ret$1; var reqChildrenName = tmp1_safe_receiver == null ? null : toQName_0(tmp1_safe_receiver); return reqChildrenName == null; }; protoOf(DefaultXmlSerializationPolicy).zlk = function (serializerParent, tagParent) { var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = tagParent.sll().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlPolyChildren) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var xmlPolyChildren = tmp$ret$0; return this.wlj_1 ? true : !(xmlPolyChildren == null); }; protoOf(DefaultXmlSerializationPolicy).dll = function (serializerParent, tagParent) { return this.ell(serializerParent, tagParent, true); }; protoOf(DefaultXmlSerializationPolicy).ell = function (serializerParent, tagParent, canBeAttribute) { var tmp0_safe_receiver = this.gll(serializerParent, tagParent); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a45(); var serialDescriptor = tmp1_elvis_lhs == null ? serializerParent.tll() : tmp1_elvis_lhs; var overrideOutputKind = serializerParent.ull(); var tmp; switch (overrideOutputKind == null ? -1 : overrideOutputKind.ab_1) { case -1: var useAnnotations = tagParent.sll(); var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = useAnnotations.w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlValue) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp2_safe_receiver = tmp$ret$0; var isValue = (tmp2_safe_receiver == null ? null : tmp2_safe_receiver.nlb_1) === true; var parentChildDesc = tagParent.tll(); while (parentChildDesc.r46()) { parentChildDesc = parentChildDesc.u46(0); } var elementKind = parentChildDesc.s46(); var tmp_0; if (equals(elementKind, CLASS_getInstance())) { tmp_0 = OutputKind_Element_getInstance(); } else if (isValue) { tmp_0 = OutputKind_Mixed_getInstance(); } else if (!canBeAttribute ? equals(tagParent.ull(), OutputKind_Attribute_getInstance()) : false) { tmp_0 = this.fll(serializerParent, tagParent, OutputKind_Attribute_getInstance()); } else if (!canBeAttribute) { tmp_0 = OutputKind_Element_getInstance(); } else { var tmp3_elvis_lhs = tagParent.ull(); var tmp4_elvis_lhs = tmp3_elvis_lhs == null ? declOutputKind(serialDescriptor) : tmp3_elvis_lhs; tmp_0 = tmp4_elvis_lhs == null ? this.ulk(serialDescriptor.s46()) : tmp4_elvis_lhs; } tmp = tmp_0; break; case 3: var tmp_1; var tmp_2 = serializerParent.a45(); if (tmp_2 instanceof XmlListDescriptor) { var tmp_3; if (equals(tagParent.tll().s46(), CLASS_getInstance())) { tmp_3 = OutputKind_Element_getInstance(); } else { tmp_3 = OutputKind_Mixed_getInstance(); } tmp_1 = tmp_3; } else { var tmp5_elvis_lhs = tagParent.ull(); var tmp6_elvis_lhs = tmp5_elvis_lhs == null ? declOutputKind(serialDescriptor) : tmp5_elvis_lhs; var outputKind = tmp6_elvis_lhs == null ? this.ulk(serialDescriptor.s46()) : tmp6_elvis_lhs; tmp_1 = outputKind.ab_1 === 1 ? OutputKind_Text_getInstance() : outputKind; } tmp = tmp_1; break; default: tmp = overrideOutputKind; break; } return tmp; }; protoOf(DefaultXmlSerializationPolicy).bll = function (serialName, parentNamespace) { var tmp; switch (serialName) { case 'kotlin.Boolean': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'boolean', 'xsd'); break; case 'kotlin.Byte': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'byte', 'xsd'); break; case 'kotlin.UByte': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'unsignedByte', 'xsd'); break; case 'kotlin.Short': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'short', 'xsd'); break; case 'kotlin.UShort': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'unsignedShort', 'xsd'); break; case 'kotlin.Int': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'int', 'xsd'); break; case 'kotlin.UInt': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'unsignedInt', 'xsd'); break; case 'kotlin.Long': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'long', 'xsd'); break; case 'kotlin.ULong': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'unsignedLong', 'xsd'); break; case 'kotlin.Float': case 'kotlin.Double': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'double', 'xsd'); break; case 'kotlin.String': tmp = new QName('http://www.w3.org/2001/XMLSchema', 'string', 'xsd'); break; default: tmp = toQname(substringAfterLast(serialName, _Char___init__impl__6a9atx(46)), parentNamespace); break; } return tmp; }; protoOf(DefaultXmlSerializationPolicy).xlk = function (serializerParent, tagParent, outputKind, useName) { var typeDescriptor = serializerParent.vll(); var serialKind = typeDescriptor.wll_1.s46(); var typeNameInfo = typeDescriptor.xll_1; var parentNamespace = tagParent.oll(); var tmp = typeNameInfo.equals(typeDescriptor.xll_1); assert_0(tmp, DefaultXmlSerializationPolicy$effectiveName$lambda); var tmp0_safe_receiver = tagParent.a45(); var parentSerialKind = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tlj(); var tmp_0; if (outputKind.equals(OutputKind_Attribute_getInstance())) { var tmp_1; if (useName.plk_1) { var tmp1_safe_receiver = useName.olk_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ckr(); tmp_1 = QName_init_$Create$(tmp2_elvis_lhs == null ? useName.nlk_1 : tmp2_elvis_lhs); } else if (!(useName.olk_1 == null)) { tmp_1 = useName.olk_1; } else { tmp_1 = QName_init_$Create$(useName.nlk_1); } tmp_0 = tmp_1; } else { if (!(useName.olk_1 == null)) { tmp_0 = useName.olk_1; } else { var tmp_2; var tmp_3; var tmp_4; var tmp_5; var tmp_6; if (serialKind instanceof PrimitiveKind) { tmp_6 = true; } else { tmp_6 = equals(serialKind, MAP_getInstance()); } if (tmp_6) { tmp_5 = true; } else { tmp_5 = equals(serialKind, LIST_getInstance()); } if (tmp_5) { tmp_4 = true; } else { tmp_4 = equals(serialKind, OPEN_getInstance()); } if (tmp_4) { tmp_3 = true; } else { tmp_3 = typeNameInfo.nlk_1 === 'kotlin.Unit'; } if (tmp_3) { tmp_2 = true; } else { tmp_2 = parentSerialKind instanceof PolymorphicKind; } if (tmp_2) { tmp_0 = this.cll(useName, parentNamespace); } else { if (!(typeNameInfo.olk_1 == null)) { tmp_0 = typeNameInfo.olk_1; } else { tmp_0 = this.kkz(typeNameInfo, parentNamespace); } } } } return tmp_0; }; protoOf(DefaultXmlSerializationPolicy).pli = function (elementDescriptor) { var tmp; switch (this.xlj_1.ab_1) { case 2: tmp = false; break; case 0: tmp = true; break; case 1: var tmp1_safe_receiver = elementDescriptor instanceof XmlValueDescriptor ? elementDescriptor : null; tmp = (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gl4_1) == null; break; default: noWhenBranchMatchedException(); break; } return tmp; }; protoOf(DefaultXmlSerializationPolicy).ll7 = function (input, inputKind, descriptor, name, candidates) { return this.ylj_1.elk(input, inputKind, descriptor, name, candidates); }; protoOf(DefaultXmlSerializationPolicy).hll = function (input, inputKind, name, candidates) { throw UnsupportedOperationException_init_$Create$('this function should not be called'); }; protoOf(DefaultXmlSerializationPolicy).ml7 = function (parentDescriptor, childIndex) { if (this.alk_1) { throw new XmlSerialException('Duplicate child (' + parentDescriptor.u46(childIndex) + ' found in ' + parentDescriptor + ' outside of eluded list context'); } }; protoOf(DefaultXmlSerializationPolicy).gll = function (serializerParent, tagParent) { switch (serializerParent.tll().a46()) { case 'javax.xml.namespace.QName?': case 'javax.xml.namespace.QName': return serializerParent.tll().l46() ? get_nullable(XmlQNameSerializer_getInstance()) : XmlQNameSerializer_getInstance(); default: return null; } }; protoOf(DefaultXmlSerializationPolicy).jll = function (parentDescriptor) { // Inline function 'kotlin.collections.associateBy' call var this_0 = until(0, parentDescriptor.q46()); var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16); // Inline function 'kotlin.collections.associateByTo' call var destination = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.initialChildReorderMap.' call var tmp$ret$0 = parentDescriptor.w46(element); destination.s(tmp$ret$0, element); } var nameToIdx = destination; var orderConstraints = HashSet_init_$Create$(); // Inline function 'kotlin.collections.mutableMapOf' call var orderNodes = LinkedHashMap_init_$Create$(); var inductionVariable = 0; var last = parentDescriptor.q46(); if (inductionVariable < last) do { var elementIdx = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var xmlBefore = null; var xmlAfter = null; var tmp1_iterator = parentDescriptor.t46(elementIdx).w(); while (tmp1_iterator.f()) { var annotation = tmp1_iterator.e(); var tmp; if (annotation instanceof XmlBefore) { // Inline function 'kotlin.collections.isNotEmpty' call // Inline function 'kotlin.collections.isEmpty' call tmp = !(annotation.zll_1.length === 0); } else { tmp = false; } if (tmp) { // Inline function 'kotlin.collections.mapTo' call var indexedObject = annotation.zll_1; var inductionVariable_0 = 0; var last_0 = indexedObject.length; while (inductionVariable_0 < last_0) { var item = indexedObject[inductionVariable_0]; inductionVariable_0 = inductionVariable_0 + 1 | 0; // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.initialChildReorderMap.' call var successorIdx = initialChildReorderMap$toChildIndex(item, nameToIdx, parentDescriptor); var tmp$ret$6 = new XmlOrderConstraint(elementIdx, successorIdx); orderConstraints.j1(tmp$ret$6); } xmlBefore = annotation.zll_1; } else { var tmp_0; if (annotation instanceof XmlAfter) { // Inline function 'kotlin.collections.isNotEmpty' call // Inline function 'kotlin.collections.isEmpty' call tmp_0 = !(annotation.alm_1.length === 0); } else { tmp_0 = false; } if (tmp_0) { // Inline function 'kotlin.collections.mapTo' call var indexedObject_0 = annotation.alm_1; var inductionVariable_1 = 0; var last_1 = indexedObject_0.length; while (inductionVariable_1 < last_1) { var item_0 = indexedObject_0[inductionVariable_1]; inductionVariable_1 = inductionVariable_1 + 1 | 0; // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.initialChildReorderMap.' call var predecessorIdx = initialChildReorderMap$toChildIndex(item_0, nameToIdx, parentDescriptor); var tmp$ret$10 = new XmlOrderConstraint(predecessorIdx, elementIdx); orderConstraints.j1(tmp$ret$10); } xmlAfter = annotation.alm_1; } } if (!(xmlBefore == null) ? true : !(xmlAfter == null)) { // Inline function 'kotlin.collections.getOrPut' call var key = parentDescriptor.w46(elementIdx); var value = orderNodes.q(key); var tmp_1; if (value == null) { // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.initialChildReorderMap.' call var answer = new XmlOrderNode(elementIdx); orderNodes.s(key, answer); tmp_1 = answer; } else { tmp_1 = value; } var node = tmp_1; if (!(xmlBefore == null)) { var tmp_2 = 0; var tmp_3 = xmlBefore.length; // Inline function 'kotlin.arrayOfNulls' call var tmp_4 = fillArrayVal(Array(tmp_3), null); while (tmp_2 < tmp_3) { var tmp_5 = tmp_2; var name = xmlBefore[tmp_5]; // Inline function 'kotlin.collections.getOrPut' call var value_0 = orderNodes.q(name); var tmp_6; if (value_0 == null) { // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.initialChildReorderMap.' call var answer_0 = new XmlOrderNode(initialChildReorderMap$toChildIndex(name, nameToIdx, parentDescriptor)); orderNodes.s(name, answer_0); tmp_6 = answer_0; } else { tmp_6 = value_0; } tmp_4[tmp_5] = tmp_6; tmp_2 = tmp_2 + 1 | 0; } var befores = tmp_4; node.flm(befores.slice()); } if (!(xmlAfter == null)) { var tmp_7 = 0; var tmp_8 = xmlAfter.length; // Inline function 'kotlin.arrayOfNulls' call var tmp_9 = fillArrayVal(Array(tmp_8), null); while (tmp_7 < tmp_8) { var tmp_10 = tmp_7; var name_0 = xmlAfter[tmp_10]; // Inline function 'kotlin.collections.getOrPut' call var value_1 = orderNodes.q(name_0); var tmp_11; if (value_1 == null) { // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.initialChildReorderMap.' call var answer_1 = new XmlOrderNode(initialChildReorderMap$toChildIndex(name_0, nameToIdx, parentDescriptor)); orderNodes.s(name_0, answer_1); tmp_11 = answer_1; } else { tmp_11 = value_1; } tmp_9[tmp_10] = tmp_11; tmp_7 = tmp_7 + 1 | 0; } var afters = tmp_9; node.glm(afters.slice()); } } } } while (inductionVariable < last); if (orderNodes.d1()) return null; return orderConstraints.d1() ? null : toList(orderConstraints); }; protoOf(DefaultXmlSerializationPolicy).kll = function (serializerParent, tagParent) { var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = serializerParent.sll().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlIgnoreWhitespace) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_safe_receiver = tmp$ret$0; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.preserveSpace.' call return !tmp0_safe_receiver.hlm_1; } var tmp$ret$2; $l$block_0: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator_0 = serializerParent.tll().p46().w(); while (tmp0_iterator_0.f()) { var e_0 = tmp0_iterator_0.e(); if (e_0 instanceof XmlIgnoreWhitespace) { tmp$ret$2 = e_0; break $l$block_0; } } tmp$ret$2 = null; } var tmp1_safe_receiver = tmp$ret$2; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hlm_1; return !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs); }; protoOf(DefaultXmlSerializationPolicy).lll = function (serializerParent) { return DeclaredNameInfo_init_$Create$('key'); }; protoOf(DefaultXmlSerializationPolicy).mll = function (serializerParent, isListEluded) { var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = serializerParent.sll().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlChildrenName) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var childAnnotation = tmp$ret$0; var childrenName = childAnnotation == null ? null : toQName_0(childAnnotation); return new DeclaredNameInfo('value', childrenName, (childAnnotation == null ? null : childAnnotation.fl2_1) === get_UNSET_ANNOTATION_VALUE()); }; protoOf(DefaultXmlSerializationPolicy).nll = function (serializerParent, isListEluded) { if (isListEluded) { var tmp0_safe_receiver = serializerParent.ill().olk_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call return tmp0_safe_receiver; } } return QName_init_$Create$_0(serializerParent.oll().ckn(), 'entry'); }; protoOf(DefaultXmlSerializationPolicy).pll = function (mapParent, valueDescriptor) { var keyDescriptor = mapParent.tll().u46(0); var keyUseName = this.lll(mapParent); var pseudoKeyParent = new InjectedParentTag(0, new XmlTypeDescriptor(keyDescriptor, mapParent.oll()), keyUseName, mapParent.oll()); var keyEffectiveOutputKind = this.ell(pseudoKeyParent, pseudoKeyParent, true); if (!keyEffectiveOutputKind.iky()) return false; var keyName = this.xlk(pseudoKeyParent, pseudoKeyParent, keyEffectiveOutputKind, keyUseName); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.map' call var this_0 = until(0, valueDescriptor.q46()); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.isMapValueCollapsed.' call var tmp$ret$0 = valueDescriptor.u46(item); destination.j1(tmp$ret$0); } var tmp0_iterator_0 = destination.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.DefaultXmlSerializationPolicy.isMapValueCollapsed.' call if (isEquivalent(element.xkz(), keyName)) return false; } return true; }; protoOf(DefaultXmlSerializationPolicy).qll = function (serializerParent) { var annotations = plus_1(asSequence_1(serializerParent.sll()), serializerParent.vll().wll_1.p46()); // Inline function 'kotlin.sequences.filterIsInstance' call var tmp = filter(annotations, DefaultXmlSerializationPolicy$elementNamespaceDecls$lambda); var tmp_0 = isInterface(tmp, Sequence) ? tmp : THROW_CCE(); return toList_0(flatMap(tmp_0, DefaultXmlSerializationPolicy$elementNamespaceDecls$lambda_0)); }; protoOf(DefaultXmlSerializationPolicy).wlk = function (message) { if (this.vlj_1) throw new XmlSerialException(message); }; function typeQName(_this__u8e3s4, xmlDescriptor) { var tmp0_elvis_lhs = xmlDescriptor.ilm().jlm(); return tmp0_elvis_lhs == null ? _this__u8e3s4.kkz(xmlDescriptor.ilm().xll_1, xmlDescriptor.rkz_1.oll()) : tmp0_elvis_lhs; } function XmlSerialName(value, namespace, prefix) { value = value === VOID ? 'ZXC\x01VBNBVCXZ' : value; namespace = namespace === VOID ? 'ZXC\x01VBNBVCXZ' : namespace; prefix = prefix === VOID ? 'ZXC\x01VBNBVCXZ' : prefix; this.bl2_1 = value; this.cl2_1 = namespace; this.dl2_1 = prefix; } protoOf(XmlSerialName).equals = function (other) { if (!(other instanceof XmlSerialName)) return false; var tmp0_other_with_cast = other instanceof XmlSerialName ? other : THROW_CCE(); if (!(this.bl2_1 === tmp0_other_with_cast.bl2_1)) return false; if (!(this.cl2_1 === tmp0_other_with_cast.cl2_1)) return false; if (!(this.dl2_1 === tmp0_other_with_cast.dl2_1)) return false; return true; }; protoOf(XmlSerialName).hashCode = function () { var result = imul(getStringHashCode('value'), 127) ^ getStringHashCode(this.bl2_1); result = result + (imul(getStringHashCode('namespace'), 127) ^ getStringHashCode(this.cl2_1)) | 0; result = result + (imul(getStringHashCode('prefix'), 127) ^ getStringHashCode(this.dl2_1)) | 0; return result; }; protoOf(XmlSerialName).toString = function () { return '@nl.adaptivity.xmlutil.serialization.XmlSerialName(value=' + this.bl2_1 + ', namespace=' + this.cl2_1 + ', prefix=' + this.dl2_1 + ')'; }; function get_UNSET_ANNOTATION_VALUE() { return UNSET_ANNOTATION_VALUE; } var UNSET_ANNOTATION_VALUE; function XmlPolyChildren() { } function XmlElement() { } function XmlId() { } function XmlValue(value) { value = value === VOID ? true : value; this.nlb_1 = value; } protoOf(XmlValue).equals = function (other) { if (!(other instanceof XmlValue)) return false; var tmp0_other_with_cast = other instanceof XmlValue ? other : THROW_CCE(); if (!(this.nlb_1 === tmp0_other_with_cast.nlb_1)) return false; return true; }; protoOf(XmlValue).hashCode = function () { return imul(getStringHashCode('value'), 127) ^ getBooleanHashCode(this.nlb_1); }; protoOf(XmlValue).toString = function () { return '@nl.adaptivity.xmlutil.serialization.XmlValue(value=' + this.nlb_1 + ')'; }; function XmlChildrenName() { } function XmlCData() { } function XmlDefault() { } function XmlOtherAttributes() { } function XmlBefore() { } function XmlAfter() { } function XmlIgnoreWhitespace() { } function XmlNamespaceDeclSpec() { } function get_namespaces(_this__u8e3s4) { // Inline function 'kotlin.collections.map' call var this_0 = split_0(_this__u8e3s4.klm_1, charArrayOf([_Char___init__impl__6a9atx(59)])); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization..' call var eq = indexOf(item, _Char___init__impl__6a9atx(61)); var tmp; if (eq === -1) { tmp = new NamespaceImpl('', item); } else { // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call var tmp_0 = item.substring(0, eq); // Inline function 'kotlin.text.substring' call var startIndex = eq + 1 | 0; // Inline function 'kotlin.js.asDynamic' call var tmp$ret$3 = item.substring(startIndex); tmp = new NamespaceImpl(tmp_0, tmp$ret$3); } var tmp$ret$4 = tmp; destination.j1(tmp$ret$4); } return destination; } function ChildCollector(wantedBaseClass) { wantedBaseClass = wantedBaseClass === VOID ? null : wantedBaseClass; this.sky_1 = wantedBaseClass; var tmp = this; // Inline function 'kotlin.collections.mutableListOf' call tmp.tky_1 = ArrayList_init_$Create$(); } protoOf(ChildCollector).f4p = function (baseClass, defaultDeserializerProvider) { }; protoOf(ChildCollector).e4p = function (baseClass, defaultSerializerProvider) { }; protoOf(ChildCollector).c4p = function (kClass, serializer) { }; protoOf(ChildCollector).a4p = function (kClass, provider) { }; protoOf(ChildCollector).d4p = function (baseClass, actualClass, actualSerializer) { if (this.sky_1 == null ? true : equals(this.sky_1, baseClass)) { this.tky_1.j1(actualSerializer); } }; function DummyDecoder(value) { this.llm_1 = value; } protoOf(DummyDecoder).f48 = function () { var tmp = this.llm_1; return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).g48 = function () { var tmp = this.llm_1; return (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).m48 = function () { var tmp = this.llm_1; return tmp instanceof Char ? tmp.sb_1 : THROW_CCE(); }; protoOf(DummyDecoder).l48 = function () { var tmp = this.llm_1; return (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).k48 = function () { var tmp = this.llm_1; return (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).i48 = function () { var tmp = this.llm_1; return (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).j48 = function () { var tmp = this.llm_1; return tmp instanceof Long ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).h48 = function () { var tmp = this.llm_1; return (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).n48 = function () { var tmp = this.llm_1; return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).o48 = function (enumDescriptor) { var tmp = this.llm_1; return (tmp instanceof Enum ? tmp : THROW_CCE()).ab_1; }; protoOf(DummyDecoder).r48 = function (deserializer) { var tmp = this.llm_1; return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE(); }; protoOf(DummyDecoder).p48 = function (inlineDescriptor) { return this; }; protoOf(DummyDecoder).d48 = function () { return this.llm_1 == null; }; protoOf(DummyDecoder).e48 = function () { var tmp = this.llm_1; var tmp_0; var tmp_1; if (tmp == null) { tmp_1 = true; } else { tmp_1 = false; } if (tmp_1) { tmp_0 = tmp; } else { tmp_0 = THROW_CCE(); } return tmp_0; }; protoOf(DummyDecoder).s48 = function (descriptor) { throw UnsupportedOperationException_init_$Create$('Explicit decoding of elements of hardcoded values is not supported'); }; function recordNamespace($this, prefix, namespaceUri) { // Inline function 'kotlin.collections.contains' call // Inline function 'kotlin.collections.containsKey' call var this_0 = $this.nlm_1; if (!(isInterface(this_0, Map) ? this_0 : THROW_CCE()).r(namespaceUri)) { // Inline function 'kotlin.text.isEmpty' call if (charSequenceLength(namespaceUri) === 0) { var existingDefaultNamespace = $this.mlm_1.q(''); if (!(existingDefaultNamespace == null)) { $this.nlm_1.u2(existingDefaultNamespace); $this.olm_1.j1(existingDefaultNamespace); } // Inline function 'kotlin.collections.set' call $this.nlm_1.s('', ''); // Inline function 'kotlin.collections.set' call $this.mlm_1.s('', ''); } else { // Inline function 'kotlin.collections.contains' call // Inline function 'kotlin.collections.containsKey' call var this_1 = $this.mlm_1; if ((isInterface(this_1, Map) ? this_1 : THROW_CCE()).r(prefix)) { $this.olm_1.j1(namespaceUri); } else { if ($this.olm_1.b1(namespaceUri)) { $this.olm_1.k1(namespaceUri); } // Inline function 'kotlin.collections.set' call $this.mlm_1.s(prefix, namespaceUri); // Inline function 'kotlin.collections.set' call $this.nlm_1.s(namespaceUri, prefix); } } } } function NamespaceCollectingXmlWriter$namespaceContext$1(this$0) { this.rlm_1 = this$0; } protoOf(NamespaceCollectingXmlWriter$namespaceContext$1).xkm = function (namespaceURI) { return this.rlm_1.hkp(namespaceURI); }; protoOf(NamespaceCollectingXmlWriter$namespaceContext$1).wkm = function (prefix) { return this.rlm_1.gkp(prefix); }; protoOf(NamespaceCollectingXmlWriter$namespaceContext$1).zkm = function (namespaceURI) { return listOfNotNull(this.xkm(namespaceURI)).w(); }; function NamespaceCollectingXmlWriter(prefixToUriMap, uriToPrefixMap, pendingNamespaces) { this.mlm_1 = prefixToUriMap; this.nlm_1 = uriToPrefixMap; this.olm_1 = pendingNamespaces; this.plm_1 = 0; this.qlm_1 = ''; } protoOf(NamespaceCollectingXmlWriter).gkn = function () { return this.plm_1; }; protoOf(NamespaceCollectingXmlWriter).ikp = function (_set____db54di) { this.qlm_1 = _set____db54di; }; protoOf(NamespaceCollectingXmlWriter).jkp = function () { return this.qlm_1; }; protoOf(NamespaceCollectingXmlWriter).wko = function (namespacePrefix, namespaceUri) { recordNamespace(this, namespacePrefix, namespaceUri); }; protoOf(NamespaceCollectingXmlWriter).gkp = function (prefix) { return this.mlm_1.q(prefix); }; protoOf(NamespaceCollectingXmlWriter).hkp = function (namespaceUri) { // Inline function 'kotlin.collections.get' call var this_0 = this.nlm_1; return (isInterface(this_0, Map) ? this_0 : THROW_CCE()).q(namespaceUri); }; protoOf(NamespaceCollectingXmlWriter).bkp = function (namespace, name, prefix, value) { if (namespace === 'http://www.w3.org/2000/xmlns/') { if (prefix === 'xmlns') { this.wko(prefix, value); } else { if (prefix === '') { this.wko(name, value); } } } }; protoOf(NamespaceCollectingXmlWriter).nkn = function () { return new NamespaceCollectingXmlWriter$namespaceContext$1(this); }; protoOf(NamespaceCollectingXmlWriter).xko = function (namespace, localName, prefix) { this.plm_1 = this.plm_1 + 1 | 0; }; protoOf(NamespaceCollectingXmlWriter).fkp = function (namespace, localName, prefix) { this.plm_1 = this.plm_1 - 1 | 0; }; protoOf(NamespaceCollectingXmlWriter).n = function () { }; protoOf(NamespaceCollectingXmlWriter).rko = function (text) { }; protoOf(NamespaceCollectingXmlWriter).yko = function (text) { }; protoOf(NamespaceCollectingXmlWriter).zko = function (text) { }; protoOf(NamespaceCollectingXmlWriter).akp = function (text) { }; protoOf(NamespaceCollectingXmlWriter).sko = function (text) { }; protoOf(NamespaceCollectingXmlWriter).jko = function (text) { }; protoOf(NamespaceCollectingXmlWriter).uko = function (text) { }; protoOf(NamespaceCollectingXmlWriter).ckp = function (version, encoding, standalone) { }; protoOf(NamespaceCollectingXmlWriter).ekp = function () { }; function remapPrefix(_this__u8e3s4, $this) { var prefixMap = $this.tlm_1; return remapPrefix_0(_this__u8e3s4, prefixMap); } function PrefixWrappingPolicy(basePolicy, prefixMap) { this.slm_1 = basePolicy; this.tlm_1 = prefixMap; } protoOf(PrefixWrappingPolicy).tlk = function () { return this.slm_1.tlk(); }; protoOf(PrefixWrappingPolicy).slk = function () { return this.slm_1.slk(); }; protoOf(PrefixWrappingPolicy).kl7 = function () { return this.slm_1.kl7(); }; protoOf(PrefixWrappingPolicy).dl8 = function () { return this.slm_1.dl8(); }; protoOf(PrefixWrappingPolicy).rll = function (serializerParent, tagParent) { return this.slm_1.rll(serializerParent, tagParent); }; protoOf(PrefixWrappingPolicy).dll = function (serializerParent, tagParent) { return this.slm_1.dll(serializerParent, tagParent); }; protoOf(PrefixWrappingPolicy).ell = function (serializerParent, tagParent, canBeAttribute) { return this.slm_1.ell(serializerParent, tagParent, canBeAttribute); }; protoOf(PrefixWrappingPolicy).qll = function (serializerParent) { return this.slm_1.qll(serializerParent); }; protoOf(PrefixWrappingPolicy).xl4 = function (enumDescriptor, index) { return this.slm_1.xl4(enumDescriptor, index); }; protoOf(PrefixWrappingPolicy).fll = function (serializerParent, tagParent, outputKind) { return this.slm_1.fll(serializerParent, tagParent, outputKind); }; protoOf(PrefixWrappingPolicy).hll = function (input, inputKind, name, candidates) { this.slm_1.hll(input, inputKind, name, candidates); }; protoOf(PrefixWrappingPolicy).ll7 = function (input, inputKind, descriptor, name, candidates) { return this.slm_1.ll7(input, inputKind, descriptor, name, candidates); }; protoOf(PrefixWrappingPolicy).wlk = function (message) { this.slm_1.wlk(message); }; protoOf(PrefixWrappingPolicy).jll = function (parentDescriptor) { return this.slm_1.jll(parentDescriptor); }; protoOf(PrefixWrappingPolicy).vlk = function (message) { this.slm_1.vlk(message); }; protoOf(PrefixWrappingPolicy).ylk = function (serializerParent, tagParent) { return this.slm_1.ylk(serializerParent, tagParent); }; protoOf(PrefixWrappingPolicy).pll = function (mapParent, valueDescriptor) { return this.slm_1.pll(mapParent, valueDescriptor); }; protoOf(PrefixWrappingPolicy).zlk = function (serializerParent, tagParent) { return this.slm_1.zlk(serializerParent, tagParent); }; protoOf(PrefixWrappingPolicy).lll = function (serializerParent) { return this.slm_1.lll(serializerParent); }; protoOf(PrefixWrappingPolicy).mll = function (serializerParent, isListEluded) { return this.slm_1.mll(serializerParent, isListEluded); }; protoOf(PrefixWrappingPolicy).ml7 = function (parentDescriptor, childIndex) { this.slm_1.ml7(parentDescriptor, childIndex); }; protoOf(PrefixWrappingPolicy).gll = function (serializerParent, tagParent) { return this.slm_1.gll(serializerParent, tagParent); }; protoOf(PrefixWrappingPolicy).all = function (serializerParent, tagParent) { return this.slm_1.all(serializerParent, tagParent); }; protoOf(PrefixWrappingPolicy).kll = function (serializerParent, tagParent) { return this.slm_1.kll(serializerParent, tagParent); }; protoOf(PrefixWrappingPolicy).pli = function (elementDescriptor) { return this.slm_1.pli(elementDescriptor); }; protoOf(PrefixWrappingPolicy).xlk = function (serializerParent, tagParent, outputKind, useName) { return remapPrefix(this.slm_1.xlk(serializerParent, tagParent, outputKind, useName), this); }; protoOf(PrefixWrappingPolicy).kkz = function (typeNameInfo, parentNamespace) { return remapPrefix(this.slm_1.kkz(typeNameInfo, parentNamespace), this); }; protoOf(PrefixWrappingPolicy).bll = function (serialName, parentNamespace) { return remapPrefix(this.slm_1.bll(serialName, parentNamespace), this); }; protoOf(PrefixWrappingPolicy).nll = function (serializerParent, isListEluded) { return remapPrefix(mapEntryName.call(this, serializerParent, isListEluded), this); }; function remapPrefix_0(_this__u8e3s4, prefixMap) { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp = _this__u8e3s4.bkr(); // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp_0 = _this__u8e3s4.ckr(); // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp$ret$2 = _this__u8e3s4.bkr(); var tmp0_elvis_lhs = prefixMap.q(tmp$ret$2); var tmp_1; if (tmp0_elvis_lhs == null) { // Inline function 'nl.adaptivity.xmlutil.prefix' call tmp_1 = _this__u8e3s4.dkr(); } else { tmp_1 = tmp0_elvis_lhs; } return new QName(tmp, tmp_0, tmp_1); } function XmlQNameSerializer$descriptor$lambda($this$buildSerialDescriptor) { var tmp = $this$buildSerialDescriptor; tmp.f45_1 = listOf(new XmlSerialName('QName', 'http://www.w3.org/2001/XMLSchema', 'xsd')); return Unit_instance; } function XmlQNameSerializer() { XmlQNameSerializer_instance = this; var tmp = this; var tmp_0 = STRING_getInstance(); tmp.tlf_1 = buildSerialDescriptor('javax.xml.namespace.QName', tmp_0, [], XmlQNameSerializer$descriptor$lambda); } protoOf(XmlQNameSerializer).a45 = function () { return this.tlf_1; }; protoOf(XmlQNameSerializer).c45 = function (decoder) { if (!isInterface(decoder, XmlInput)) throw SerializationException_init_$Create$('QNameXmlSerializer only makes sense in an XML context'); var namespaceContext = decoder.ekx().nkn().ykm(); // Inline function 'kotlin.text.trim' call var this_0 = decoder.n48(); var prefixedName = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var cIndex = indexOf(prefixedName, _Char___init__impl__6a9atx(58)); var prefix; var namespace; var localPart; if (cIndex < 0) { prefix = ''; localPart = prefixedName; var tmp0_elvis_lhs = namespaceContext.wkm(''); namespace = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; } else { // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call prefix = prefixedName.substring(0, cIndex); // Inline function 'kotlin.text.substring' call var startIndex = cIndex + 1 | 0; // Inline function 'kotlin.js.asDynamic' call localPart = prefixedName.substring(startIndex); var tmp1_elvis_lhs = namespaceContext.wkm(prefix); var tmp; if (tmp1_elvis_lhs == null) { throw SerializationException_init_$Create$('Missing namespace for prefix ' + prefix + ' in QName value'); } else { tmp = tmp1_elvis_lhs; } namespace = tmp; } return new QName(namespace, localPart, prefix); }; protoOf(XmlQNameSerializer).xkq = function (encoder, value) { if (!isInterface(encoder, XmlOutput)) throw SerializationException_init_$Create$('QNameXmlSerializer only makes sense in an XML context'); // Inline function 'nl.adaptivity.xmlutil.prefix' call var tmp = value.dkr(); // Inline function 'nl.adaptivity.xmlutil.localPart' call var tmp$ret$1 = value.ckr(); encoder.v49(tmp + ':' + tmp$ret$1); }; protoOf(XmlQNameSerializer).b45 = function (encoder, value) { return this.xkq(encoder, value instanceof QName ? value : THROW_CCE()); }; var XmlQNameSerializer_instance; function XmlQNameSerializer_getInstance() { if (XmlQNameSerializer_instance == null) new XmlQNameSerializer(); return XmlQNameSerializer_instance; } function XmlRootDescriptor_init_$Init$(config, serializersModule, descriptor, $this) { XmlRootDescriptor.call($this, config, serializersModule, descriptor, null, false); return $this; } function XmlRootDescriptor_init_$Create$(config, serializersModule, descriptor) { return XmlRootDescriptor_init_$Init$(config, serializersModule, descriptor, objectCreate(protoOf(XmlRootDescriptor))); } function _get_element__z0t21h($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wl0_1; element$factory(); return this_0.t2(); } function XmlRootDescriptor$element$delegate$lambda($config, $serializersModule, this$0) { return function () { return Companion_instance_3.ulm($config, $serializersModule, this$0.rkz_1, VOID, false); }; } function XmlRootDescriptor(config, serializersModule, descriptor, tagName, isDefaultNamespace) { XmlDescriptor.call(this, config.fkz_1, DetachedParent_init_$Create$(descriptor, tagName, true, null, isDefaultNamespace)); var tmp = this; tmp.wl0_1 = lazy(XmlRootDescriptor$element$delegate$lambda(config, serializersModule, this)); } protoOf(XmlRootDescriptor).vl5 = function () { return false; }; protoOf(XmlRootDescriptor).oli = function () { return true; }; protoOf(XmlRootDescriptor).bl5 = function () { return _get_element__z0t21h(this).bl5(); }; protoOf(XmlRootDescriptor).xkz = function () { var useNameInfo = this.tkz_1; return ensureNotNull(useNameInfo.olk_1); }; protoOf(XmlRootDescriptor).fky = function () { return OutputKind_Mixed_getInstance(); }; protoOf(XmlRootDescriptor).u46 = function (index) { if (!(index === 0)) throw IndexOutOfBoundsException_init_$Create$('There is exactly one child to a root tag'); return _get_element__z0t21h(this); }; protoOf(XmlRootDescriptor).q46 = function () { return 1; }; protoOf(XmlRootDescriptor).vlm = function (builder, indent, seen) { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlRootDescriptor.appendTo.' call builder.r8('('); this.u46(0).vlm(builder, indent + 4 | 0, seen); builder.r8(')'); }; protoOf(XmlRootDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(XmlDescriptor).equals.call(this, other)) return false; if (!(other instanceof XmlRootDescriptor)) THROW_CCE(); return _get_element__z0t21h(this).equals(_get_element__z0t21h(other)); }; protoOf(XmlRootDescriptor).hashCode = function () { var result = protoOf(XmlDescriptor).hashCode.call(this); result = imul(31, result) + _get_element__z0t21h(this).hashCode() | 0; return result; }; function Companion_2() { } protoOf(Companion_2).xlm = function (config, serializersModule, serializerParent, tagParent, canBeAttribute) { var overridenSerializer = config.fkz_1.gll(serializerParent, tagParent); var elementSerialDescriptor; var effectiveSerializerParent; var effectiveTagParent; if (overridenSerializer == null) { elementSerialDescriptor = serializerParent.tll(); effectiveSerializerParent = serializerParent; effectiveTagParent = tagParent; } else { elementSerialDescriptor = overridenSerializer.a45(); effectiveSerializerParent = serializerParent.ylm(VOID, VOID, overridenSerializer); effectiveTagParent = tagParent.ylm(VOID, VOID, overridenSerializer); } var preserveSpace = config.fkz_1.kll(serializerParent, tagParent); var tmp1_subject = elementSerialDescriptor.s46(); var tmp; if (equals(tmp1_subject, ENUM_getInstance())) { tmp = true; } else { tmp = tmp1_subject instanceof PrimitiveKind; } if (tmp) return new XmlPrimitiveDescriptor(config.fkz_1, effectiveSerializerParent, effectiveTagParent, canBeAttribute, preserveSpace); else { if (equals(tmp1_subject, LIST_getInstance())) return new XmlListDescriptor(config, serializersModule, effectiveSerializerParent, effectiveTagParent); else { if (equals(tmp1_subject, MAP_getInstance())) { var tmp2_subject = serializerParent.ull(); return (tmp2_subject == null ? -1 : tmp2_subject.ab_1) === 1 ? new XmlAttributeMapDescriptor(config, serializersModule, effectiveSerializerParent, effectiveTagParent) : new XmlMapDescriptor(config, serializersModule, effectiveSerializerParent, effectiveTagParent); } else { if (tmp1_subject instanceof PolymorphicKind) return new XmlPolymorphicDescriptor(config, serializersModule, effectiveSerializerParent, effectiveTagParent); } } } return (config.ikz_1 ? elementSerialDescriptor.r46() : false) ? new XmlInlineDescriptor(config, serializersModule, effectiveSerializerParent, effectiveTagParent, canBeAttribute) : new XmlCompositeDescriptor(config, serializersModule, effectiveSerializerParent, effectiveTagParent, preserveSpace); }; protoOf(Companion_2).ulm = function (config, serializersModule, serializerParent, tagParent, canBeAttribute, $super) { tagParent = tagParent === VOID ? serializerParent : tagParent; return $super === VOID ? this.xlm(config, serializersModule, serializerParent, tagParent, canBeAttribute) : $super.xlm.call(this, config, serializersModule, serializerParent, tagParent, canBeAttribute); }; var Companion_instance_3; function Companion_getInstance_7() { return Companion_instance_3; } function XmlDescriptor$tagName$delegate$lambda($policy, $serializerParent, this$0) { return function () { return $policy.xlk($serializerParent, this$0.rkz_1, this$0.fky(), this$0.tkz_1); }; } function XmlDescriptor(policy, serializerParent, tagParent) { tagParent = tagParent === VOID ? serializerParent : tagParent; this.rkz_1 = tagParent; this.skz_1 = serializerParent.zlm(); this.tkz_1 = serializerParent.ill(); this.ukz_1 = serializerParent.vll(); this.vkz_1 = policy.qll(serializerParent); var tmp = this; tmp.wkz_1 = lazy(XmlDescriptor$tagName$delegate$lambda(policy, serializerParent, this)); } protoOf(XmlDescriptor).ykz = function () { return this.fky().ab_1 === 4 ? this.u46(0).ykz() : this.fky(); }; protoOf(XmlDescriptor).ilm = function () { return this.ukz_1; }; protoOf(XmlDescriptor).wl4 = function () { return false; }; protoOf(XmlDescriptor).xkz = function () { // Inline function 'kotlin.getValue' call var this_0 = this.wkz_1; tagName$factory(); return this_0.t2(); }; protoOf(XmlDescriptor).hlh = function (fallback) { var tmp0_elvis_lhs = this.skz_1; var tmp = tmp0_elvis_lhs == null ? fallback : tmp0_elvis_lhs; return isInterface(tmp, SerializationStrategy) ? tmp : THROW_CCE(); }; protoOf(XmlDescriptor).cl5 = function (fallback) { var tmp0_elvis_lhs = this.skz_1; var tmp = tmp0_elvis_lhs == null ? fallback : tmp0_elvis_lhs; return isInterface(tmp, DeserializationStrategy) ? tmp : THROW_CCE(); }; protoOf(XmlDescriptor).hl2 = function () { return this.ilm().wll_1; }; protoOf(XmlDescriptor).q46 = function () { return this.ilm().wll_1.q46(); }; protoOf(XmlDescriptor).tlj = function () { return this.ilm().wll_1.s46(); }; protoOf(XmlDescriptor).u46 = function (index) { throw IndexOutOfBoundsException_init_$Create$('There are no children'); }; protoOf(XmlDescriptor).wlm = function (builder, indent, seen) { var tmp; if (this instanceof XmlListDescriptor) { tmp = true; } else { tmp = this instanceof XmlPrimitiveDescriptor; } if (tmp) { this.vlm(builder, indent, seen); } else { if (seen.b1(this.hl2().a46())) { builder.r8(this.xkz().toString()).r8('<...> = ').r8(this.fky().za_1); } else { seen.j1(this.hl2().a46()); this.vlm(builder, indent, seen); } } return builder; }; protoOf(XmlDescriptor).toString = function () { var tmp = StringBuilder_init_$Create$(); // Inline function 'kotlin.collections.mutableSetOf' call var tmp$ret$0 = LinkedHashSet_init_$Create$(); return this.wlm(tmp, 0, tmp$ret$0).toString(); }; protoOf(XmlDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof XmlDescriptor)) THROW_CCE(); if (!equals(this.skz_1, other.skz_1)) return false; if (!this.tkz_1.equals(other.tkz_1)) return false; return this.ilm().equals(other.ilm()); }; protoOf(XmlDescriptor).hashCode = function () { var result = this.tkz_1.hashCode(); result = imul(31, result) + this.ilm().hashCode() | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.skz_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; return result; }; function _get_children__my42wc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ml0_1; children$factory(); return this_0.t2(); } function XmlPolymorphicDescriptor$children$delegate$lambda(this$0, $config, $serializersModule) { return function () { // Inline function 'kotlin.collections.List' call // Inline function 'kotlin.collections.MutableList' call var size = this$0.q46(); var list = ArrayList_init_$Create$_0(size); // Inline function 'kotlin.repeat' call // Inline function 'kotlin.contracts.contract' call var inductionVariable = 0; if (inductionVariable < size) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.collections.MutableList.' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlPolymorphicDescriptor.children$delegate..' call var canBeAttribute = index === 0; var overrideOutputKind = canBeAttribute ? OutputKind_Attribute_getInstance() : OutputKind_Element_getInstance(); var parent = new ParentInfo(this$0, index, VOID, overrideOutputKind); var tmp$ret$0 = Companion_instance_3.ulm($config, $serializersModule, parent, VOID, canBeAttribute); list.j1(tmp$ret$0); } while (inductionVariable < size); return list; }; } function XmlPolymorphicDescriptor(config, serializersModule, serializerParent, tagParent) { XmlValueDescriptor.call(this, config.fkz_1, serializerParent, tagParent); this.il0_1 = config.fkz_1.ell(serializerParent, tagParent, false); var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = tagParent.sll().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlPolyChildren) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var xmlPolyChildren = tmp$ret$0; var polyAttrName = config.fkz_1.all(serializerParent, tagParent); this.jl0_1 = config.fkz_1.zlk(serializerParent, tagParent) ? TRANSPARENT_getInstance() : polyAttrName == null ? TAG_getInstance() : new ATTR(polyAttrName); var tmp = this; // Inline function 'kotlin.also' call // Inline function 'kotlin.collections.mutableMapOf' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlPolymorphicDescriptor.' call var tmp0_subject = this.jl0_1; var tmp_0; if (equals(tmp0_subject, TRANSPARENT_getInstance())) { tmp_0 = null; } else { if (equals(tmp0_subject, TAG_getInstance())) { tmp_0 = Companion_instance_3.ulm(config, serializersModule, new ParentInfo(this, 1), VOID, false).xkz(); } else { if (tmp0_subject instanceof ATTR) { tmp_0 = this.xkz(); } else { noWhenBranchMatchedException(); } } } var qName = tmp_0; if (!(xmlPolyChildren == null)) { var tmp1_safe_receiver = tagParent.a45(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hl2(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.a46(); var tmp_1 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs; var tmp4_safe_receiver = tagParent.a45(); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.xkz(); var baseName = new ActualNameInfo(tmp_1, tmp5_elvis_lhs == null ? QName_init_$Create$_0('', '') : tmp5_elvis_lhs); var tmp6_elvis_lhs = get_capturedKClass(this.hl2()); var baseClass = tmp6_elvis_lhs == null ? PrimitiveClasses_getInstance().w7() : tmp6_elvis_lhs; var indexedObject = xmlPolyChildren.aln_1; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var polyChild = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; var childInfo = polyTagName(baseName, polyChild, baseClass, serializersModule); var childSerializerParent = DetachedParent_init_$Create$(childInfo.oky_1, childInfo.nky_1, false, VOID, false); // Inline function 'kotlin.collections.set' call var key = childInfo.pky(); var value = Companion_instance_3.xlm(config, serializersModule, childSerializerParent, tagParent, false); this_0.s(key, value); } } else if (equals(this.hl2().s46(), SEALED_getInstance())) { var d = this.hl2().u46(1); var inductionVariable_0 = 0; var last_0 = d.q46(); if (inductionVariable_0 < last_0) do { var i = inductionVariable_0; inductionVariable_0 = inductionVariable_0 + 1 | 0; var childDesc = d.u46(i); var childSerializerParent_0 = DetachedParent_init_$Create$(childDesc, qName, false, VOID, false); // Inline function 'kotlin.collections.set' call var key_0 = childDesc.a46(); var value_0 = Companion_instance_3.xlm(config, serializersModule, childSerializerParent_0, tagParent, false); this_0.s(key_0, value_0); } while (inductionVariable_0 < last_0); } else { var childDescriptors = getPolymorphicDescriptors(serializersModule, this.hl2()); var tmp9_iterator = childDescriptors.w(); while (tmp9_iterator.f()) { var childDesc_0 = tmp9_iterator.e(); var childSerializerParent_1 = DetachedParent_init_$Create$(childDesc_0, qName, false, this.il0_1, false); // Inline function 'kotlin.collections.set' call var key_1 = childDesc_0.a46(); var value_1 = Companion_instance_3.xlm(config, serializersModule, childSerializerParent_1, tagParent, false); this_0.s(key_1, value_1); } } tmp.kl0_1 = this_0; var tmp_2 = this; var tmp0_safe_receiver = tagParent.a45(); var tmp1_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hl2(); var tmp3_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.a46(); var tmp_3; if (tmp3_elvis_lhs_0 == null) { var tmp2_safe_receiver_0 = get_capturedKClass(this.hl2()); tmp_3 = tmp2_safe_receiver_0 == null ? null : get_serialName(tmp2_safe_receiver_0); } else { tmp_3 = tmp3_elvis_lhs_0; } tmp_2.ll0_1 = tmp_3; var tmp_4 = this; tmp_4.ml0_1 = lazy(XmlPolymorphicDescriptor$children$delegate$lambda(this, config, serializersModule)); } protoOf(XmlPolymorphicDescriptor).vl5 = function () { return false; }; protoOf(XmlPolymorphicDescriptor).oli = function () { return false; }; protoOf(XmlPolymorphicDescriptor).bl5 = function () { return false; }; protoOf(XmlPolymorphicDescriptor).fky = function () { return this.il0_1; }; protoOf(XmlPolymorphicDescriptor).gl7 = function () { return equals(this.jl0_1, TRANSPARENT_getInstance()); }; protoOf(XmlPolymorphicDescriptor).u46 = function (index) { return _get_children__my42wc(this).v(index); }; protoOf(XmlPolymorphicDescriptor).vlf = function (typeName) { var tmp0_elvis_lhs = this.kl0_1.q(typeName); var tmp; if (tmp0_elvis_lhs == null) { throw new XmlSerialException('Missing polymorphic information for ' + typeName); } else { tmp = tmp0_elvis_lhs; } return tmp; }; protoOf(XmlPolymorphicDescriptor).vlm = function (builder, indent, seen) { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlPolymorphicDescriptor.appendTo.' call builder.r8(this.xkz().toString()); if (this.gl7()) { builder.r8(' <~('); var tmp0_iterator = this.kl0_1.p2().w(); while (tmp0_iterator.f()) { var polyVal = tmp0_iterator.e(); // Inline function 'kotlin.text.appendLine' call var this_0 = polyVal.wlm(builder, indent + 4 | 0, seen); var value = _Char___init__impl__6a9atx(44); // Inline function 'kotlin.text.appendLine' call this_0.z5(value).z5(_Char___init__impl__6a9atx(10)); } } else { builder.r8(' ('); builder.r8(' ['); var tmp1_iterator = this.kl0_1.p2().w(); while (tmp1_iterator.f()) { var polyVal_0 = tmp1_iterator.e(); // Inline function 'kotlin.text.appendLine' call var this_1 = polyVal_0.wlm(builder, indent + 4 | 0, seen); var value_0 = _Char___init__impl__6a9atx(44); // Inline function 'kotlin.text.appendLine' call this_1.z5(value_0).z5(_Char___init__impl__6a9atx(10)); } builder.z5(_Char___init__impl__6a9atx(93)); } }; protoOf(XmlPolymorphicDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(XmlValueDescriptor).equals.call(this, other)) return false; if (!(other instanceof XmlPolymorphicDescriptor)) THROW_CCE(); if (!this.il0_1.equals(other.il0_1)) return false; if (!equals(this.jl0_1, other.jl0_1)) return false; if (!equals(this.kl0_1, other.kl0_1)) return false; if (!(this.ll0_1 == other.ll0_1)) return false; return true; }; protoOf(XmlPolymorphicDescriptor).hashCode = function () { var result = protoOf(XmlValueDescriptor).hashCode.call(this); result = imul(31, result) + this.il0_1.hashCode() | 0; result = imul(31, result) + hashCode(this.jl0_1) | 0; result = imul(31, result) + hashCode(this.kl0_1) | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.ll0_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; return result; }; function DetachedParent_init_$Init$(serialDescriptor, useName, isDocumentRoot, outputKind, isDefaultNamespace, $this) { outputKind = outputKind === VOID ? null : outputKind; // Inline function 'kotlin.run' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.DetachedParent..' call var tmp0_safe_receiver = get_capturedKClass(serialDescriptor); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_serialName(tmp0_safe_receiver); var tmp$ret$1 = tmp1_elvis_lhs == null ? serialDescriptor.a46() : tmp1_elvis_lhs; DetachedParent.call($this, serialDescriptor, new DeclaredNameInfo(tmp$ret$1, useName, isDefaultNamespace), isDocumentRoot, outputKind); return $this; } function DetachedParent_init_$Create$(serialDescriptor, useName, isDocumentRoot, outputKind, isDefaultNamespace) { return DetachedParent_init_$Init$(serialDescriptor, useName, isDocumentRoot, outputKind, isDefaultNamespace, objectCreate(protoOf(DetachedParent))); } function DetachedParent_init_$Init$_0(serialDescriptor, isDocumentRoot, outputKind, $this) { outputKind = outputKind === VOID ? null : outputKind; // Inline function 'kotlin.run' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.DetachedParent..' call var tmp0_safe_receiver = get_capturedKClass(serialDescriptor); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_serialName(tmp0_safe_receiver); var tmp$ret$1 = tmp1_elvis_lhs == null ? serialDescriptor.a46() : tmp1_elvis_lhs; DetachedParent.call($this, serialDescriptor, new DeclaredNameInfo(tmp$ret$1, null, false), isDocumentRoot, outputKind); return $this; } function DetachedParent_init_$Create$_0(serialDescriptor, isDocumentRoot, outputKind) { return DetachedParent_init_$Init$_0(serialDescriptor, isDocumentRoot, outputKind, objectCreate(protoOf(DetachedParent))); } function DetachedParent(serialDescriptor, elementUseNameInfo, isDocumentRoot, outputKind, overriddenSerializer) { outputKind = outputKind === VOID ? null : outputKind; overriddenSerializer = overriddenSerializer === VOID ? null : overriddenSerializer; this.bln_1 = serialDescriptor; this.cln_1 = elementUseNameInfo; this.dln_1 = isDocumentRoot; this.eln_1 = overriddenSerializer; this.fln_1 = outputKind; } protoOf(DetachedParent).ill = function () { return this.cln_1; }; protoOf(DetachedParent).zlm = function () { return this.eln_1; }; protoOf(DetachedParent).gln = function (useNameInfo, useOutputKind, overriddenSerializer) { return new DetachedParent(this.bln_1, useNameInfo, this.dln_1, useOutputKind, overriddenSerializer); }; protoOf(DetachedParent).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof DetachedParent)) THROW_CCE(); if (!equals(this.bln_1, other.bln_1)) return false; if (!this.cln_1.equals(other.cln_1)) return false; if (!(this.dln_1 === other.dln_1)) return false; if (!equals(this.eln_1, other.eln_1)) return false; if (!equals(this.fln_1, other.fln_1)) return false; return true; }; protoOf(DetachedParent).hashCode = function () { var result = hashCode(this.bln_1); result = imul(31, result) + this.cln_1.hashCode() | 0; result = imul(31, result) + getBooleanHashCode(this.dln_1) | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.eln_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.fln_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hashCode(); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; return result; }; protoOf(DetachedParent).a45 = function () { return null; }; protoOf(DetachedParent).vll = function () { var tmp0_safe_receiver = this.eln_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a45(); return new XmlTypeDescriptor(tmp1_elvis_lhs == null ? this.bln_1 : tmp1_elvis_lhs, this.oll()); }; protoOf(DetachedParent).sll = function () { return emptyList(); }; protoOf(DetachedParent).tll = function () { var tmp0_safe_receiver = this.eln_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a45(); return tmp1_elvis_lhs == null ? this.bln_1 : tmp1_elvis_lhs; }; protoOf(DetachedParent).ull = function () { return this.fln_1; }; protoOf(DetachedParent).oll = function () { var tmp0_safe_receiver = this.cln_1.olk_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toNamespace(tmp0_safe_receiver); return tmp1_elvis_lhs == null ? new NamespaceImpl('', '') : tmp1_elvis_lhs; }; function SafeParentInfo() { } function SafeXmlDescriptor() { } function _get_childDescriptor__xb3z96($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qla_1; childDescriptor$factory(); return this_0.t2(); } function XmlListDescriptor$childDescriptor$delegate$lambda($tagParent, this$0, $config, $serializersModule) { return function () { var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = $tagParent.sll().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlChildrenName) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var childrenNameAnnotation = tmp$ret$0; var tmp; if (!(childrenNameAnnotation == null)) { var tmp_0 = toQName_0(childrenNameAnnotation); tmp = new DeclaredNameInfo(childrenNameAnnotation.el2_1, tmp_0, (childrenNameAnnotation == null ? null : childrenNameAnnotation.fl2_1) === get_UNSET_ANNOTATION_VALUE()); } else if (!this$0.sl2()) { tmp = null; } else { tmp = $tagParent.ill(); } var useNameInfo = tmp; return Companion_instance_3.xlm($config, $serializersModule, new ParentInfo(this$0, 0, useNameInfo, this$0.ola_1), $tagParent, false); }; } function XmlListDescriptor(config, serializersModule, serializerParent, tagParent) { tagParent = tagParent === VOID ? serializerParent : tagParent; XmlListLikeDescriptor.call(this, config, serializerParent, tagParent); var tmp = this; var tmp_0; var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = tagParent.sll().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlElement) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_safe_receiver = tmp$ret$0; if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hln_1) === false) { tmp_0 = OutputKind_Attribute_getInstance(); } else { var tmp$ret$1; $l$block_0: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator_0 = tagParent.sll().w(); while (tmp0_iterator_0.f()) { var e_0 = tmp0_iterator_0.e(); if (e_0 instanceof XmlId) { tmp$ret$1 = e_0; break $l$block_0; } } tmp$ret$1 = null; } if (!(tmp$ret$1 == null)) { tmp_0 = OutputKind_Attribute_getInstance(); } else { if (!this.sl2()) { tmp_0 = OutputKind_Element_getInstance(); } else { var tmp_1; var tmp$ret$2; $l$block_1: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator_1 = tagParent.sll().w(); while (tmp0_iterator_1.f()) { var e_1 = tmp0_iterator_1.e(); if (e_1 instanceof XmlValue) { tmp$ret$2 = e_1; break $l$block_1; } } tmp$ret$2 = null; } if (!(tmp$ret$2 == null)) { tmp_1 = config.fkz_1.zlk(DetachedParent_init_$Create$_0(this.hl2().u46(0), false), tagParent); } else { tmp_1 = false; } if (tmp_1) { tmp_0 = OutputKind_Mixed_getInstance(); } else { tmp_0 = OutputKind_Element_getInstance(); } } } } tmp.ola_1 = tmp_0; var tmp_2 = this; var tmp_3; if (this.ola_1.ab_1 === 1) { tmp_3 = config.fkz_1.rll(new ParentInfo(this, 0, this.tkz_1, this.ola_1), tagParent); } else { // Inline function 'kotlin.emptyArray' call tmp_3 = []; } tmp_2.pla_1 = tmp_3; var tmp_4 = this; tmp_4.qla_1 = lazy(XmlListDescriptor$childDescriptor$delegate$lambda(tagParent, this, config, serializersModule)); } protoOf(XmlListDescriptor).fky = function () { return this.ola_1; }; protoOf(XmlListDescriptor).vl5 = function () { return false; }; protoOf(XmlListDescriptor).u46 = function (index) { return _get_childDescriptor__xb3z96(this); }; protoOf(XmlListDescriptor).vlm = function (builder, indent, seen) { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlListDescriptor.appendTo.' call builder.r8(this.xkz().toString()); if (this.sl2()) { builder.r8(': EludedList<'); _get_childDescriptor__xb3z96(this).wlm(builder, indent, seen); builder.z5(_Char___init__impl__6a9atx(62)); } else { builder.r8(': ExplicitList<'); _get_childDescriptor__xb3z96(this).wlm(builder, indent, seen); builder.z5(_Char___init__impl__6a9atx(62)); } }; protoOf(XmlListDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(XmlListLikeDescriptor).equals.call(this, other)) return false; if (!(other instanceof XmlListDescriptor)) THROW_CCE(); if (!(this.sl2() === other.sl2())) return false; if (!this.ola_1.equals(other.ola_1)) return false; return _get_childDescriptor__xb3z96(this).equals(_get_childDescriptor__xb3z96(other)); }; protoOf(XmlListDescriptor).hashCode = function () { var result = protoOf(XmlListLikeDescriptor).hashCode.call(this); result = imul(31, result) + getBooleanHashCode(this.sl2()) | 0; result = imul(31, result) + this.ola_1.hashCode() | 0; result = imul(31, result) + _get_childDescriptor__xb3z96(this).hashCode() | 0; return result; }; function XmlPrimitiveDescriptor(policy, serializerParent, tagParent, canBeAttribute, preserveSpace) { XmlValueDescriptor.call(this, policy, serializerParent, tagParent); this.rln_1 = preserveSpace; var tmp = this; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = serializerParent.sll(); var tmp_0; if (isInterface(this_0, Collection)) { tmp_0 = this_0.d1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlPrimitiveDescriptor.' call if (element instanceof XmlId) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } tmp.sln_1 = tmp$ret$0; this.tln_1 = policy.ell(serializerParent, tagParent, canBeAttribute); } protoOf(XmlPrimitiveDescriptor).bl5 = function () { return this.rln_1; }; protoOf(XmlPrimitiveDescriptor).vl5 = function () { return this.sln_1; }; protoOf(XmlPrimitiveDescriptor).oli = function () { return false; }; protoOf(XmlPrimitiveDescriptor).fky = function () { return this.tln_1; }; protoOf(XmlPrimitiveDescriptor).q46 = function () { return 0; }; protoOf(XmlPrimitiveDescriptor).vlm = function (builder, indent, seen) { builder.r8(this.xkz().toString()).z5(_Char___init__impl__6a9atx(58)).r8(this.s46().toString()).r8(' = ').r8(this.tln_1.toString()); }; protoOf(XmlPrimitiveDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(XmlValueDescriptor).equals.call(this, other)) return false; if (!(other instanceof XmlPrimitiveDescriptor)) THROW_CCE(); return this.tln_1.equals(other.tln_1); }; protoOf(XmlPrimitiveDescriptor).hashCode = function () { var result = protoOf(XmlValueDescriptor).hashCode.call(this); result = imul(31, result) + this.tln_1.hashCode() | 0; return result; }; function XmlAttributeMapDescriptor$keyDescriptor$delegate$lambda($config, $serializersModule, this$0, $tagParent) { return function () { return Companion_instance_3.xlm($config, $serializersModule, new ParentInfo(this$0, 0, VOID, OutputKind_Text_getInstance()), $tagParent, true); }; } function XmlAttributeMapDescriptor$valueDescriptor$delegate$lambda($config, $serializersModule, this$0, $tagParent) { return function () { return Companion_instance_3.xlm($config, $serializersModule, new ParentInfo(this$0, 1, VOID, OutputKind_Text_getInstance()), $tagParent, true); }; } function XmlAttributeMapDescriptor(config, serializersModule, serializerParent, tagParent) { XmlValueDescriptor.call(this, config.fkz_1, serializerParent, tagParent); var tmp = this; tmp.jl9_1 = lazy(XmlAttributeMapDescriptor$keyDescriptor$delegate$lambda(config, serializersModule, this, tagParent)); var tmp_0 = this; tmp_0.kl9_1 = lazy(XmlAttributeMapDescriptor$valueDescriptor$delegate$lambda(config, serializersModule, this, tagParent)); } protoOf(XmlAttributeMapDescriptor).oli = function () { return false; }; protoOf(XmlAttributeMapDescriptor).vl5 = function () { return false; }; protoOf(XmlAttributeMapDescriptor).bl5 = function () { return true; }; protoOf(XmlAttributeMapDescriptor).fky = function () { return OutputKind_Attribute_getInstance(); }; protoOf(XmlAttributeMapDescriptor).uln = function () { // Inline function 'kotlin.getValue' call var this_0 = this.jl9_1; keyDescriptor$factory(); return this_0.t2(); }; protoOf(XmlAttributeMapDescriptor).ll9 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.kl9_1; valueDescriptor$factory(); return this_0.t2(); }; protoOf(XmlAttributeMapDescriptor).q46 = function () { return 2; }; protoOf(XmlAttributeMapDescriptor).u46 = function (index) { return (index % 2 | 0) === 0 ? this.uln() : this.ll9(); }; protoOf(XmlAttributeMapDescriptor).vlm = function (builder, indent, seen) { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlAttributeMapDescriptor.appendTo.' call // Inline function 'kotlin.text.appendLine' call // Inline function 'kotlin.text.appendLine' call builder.r8(this.xkz().toString()).r8(' (').z5(_Char___init__impl__6a9atx(10)); appendIndent(builder, indent); // Inline function 'kotlin.text.appendLine' call // Inline function 'kotlin.text.appendLine' call this.uln().wlm(builder, indent + 4 | 0, seen).r8(',').z5(_Char___init__impl__6a9atx(10)); appendIndent(builder, indent); this.ll9().wlm(builder, indent + 4 | 0, seen).z5(_Char___init__impl__6a9atx(41)); }; function _get_keyDescriptor__hu7alf($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cl3_1; keyDescriptor$factory_0(); return this_0.t2(); } function _get_valueDescriptor__8ouq3z($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dl3_1; valueDescriptor$factory_0(); return this_0.t2(); } function XmlMapDescriptor$isValueCollapsed$delegate$lambda($config, $serializerParent, this$0) { return function () { return $config.fkz_1.pll($serializerParent, _get_valueDescriptor__8ouq3z(this$0)); }; } function XmlMapDescriptor$entryName$delegate$lambda(this$0, $config, $serializerParent) { return function () { var tmp; if (this$0.el3()) { tmp = _get_valueDescriptor__8ouq3z(this$0).xkz(); } else { tmp = $config.fkz_1.nll($serializerParent, this$0.sl2()); } return tmp; }; } function XmlMapDescriptor$keyDescriptor$delegate$lambda($config, $serializerParent, this$0, $tagParent, $serializersModule) { return function () { var keyNameInfo = $config.fkz_1.lll($serializerParent); var parentInfo = new ParentInfo(this$0, 0, keyNameInfo); var keyTagParent = new InjectedParentTag(0, this$0.ilm().v(0), keyNameInfo, $tagParent.oll()); return Companion_instance_3.xlm($config, $serializersModule, parentInfo, keyTagParent, true); }; } function XmlMapDescriptor$valueDescriptor$delegate$lambda($config, $serializerParent, this$0, $tagParent, $serializersModule) { return function () { var valueNameInfo = $config.fkz_1.mll($serializerParent, this$0.sl2()); var parentInfo = new ParentInfo(this$0, 1, valueNameInfo, OutputKind_Element_getInstance()); var valueTagParent = new InjectedParentTag(0, this$0.ilm().v(1), valueNameInfo, $tagParent.oll()); return Companion_instance_3.xlm($config, $serializersModule, parentInfo, valueTagParent, true); }; } function XmlMapDescriptor(config, serializersModule, serializerParent, tagParent) { tagParent = tagParent === VOID ? serializerParent : tagParent; XmlListLikeDescriptor.call(this, config, serializerParent, tagParent); var tmp = this; tmp.al3_1 = lazy(XmlMapDescriptor$isValueCollapsed$delegate$lambda(config, serializerParent, this)); var tmp_0 = this; tmp_0.bl3_1 = lazy(XmlMapDescriptor$entryName$delegate$lambda(this, config, serializerParent)); var tmp_1 = this; tmp_1.cl3_1 = lazy(XmlMapDescriptor$keyDescriptor$delegate$lambda(config, serializerParent, this, tagParent, serializersModule)); var tmp_2 = this; tmp_2.dl3_1 = lazy(XmlMapDescriptor$valueDescriptor$delegate$lambda(config, serializerParent, this, tagParent, serializersModule)); } protoOf(XmlMapDescriptor).fky = function () { return OutputKind_Element_getInstance(); }; protoOf(XmlMapDescriptor).vl5 = function () { return false; }; protoOf(XmlMapDescriptor).el3 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.al3_1; isValueCollapsed$factory(); return this_0.t2(); }; protoOf(XmlMapDescriptor).ll4 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.bl3_1; entryName$factory(); return this_0.t2(); }; protoOf(XmlMapDescriptor).u46 = function (index) { return (index % 2 | 0) === 0 ? _get_keyDescriptor__hu7alf(this) : _get_valueDescriptor__8ouq3z(this); }; protoOf(XmlMapDescriptor).vlm = function (builder, indent, seen) { builder.r8(this.xkz().toString()).r8(this.sl2() ? ': TransparentMap<' : ': ExplicitMap<'); this.u46(0).vlm(builder, indent + 4 | 0, seen); builder.r8(', '); this.u46(1).vlm(builder, indent + 4 | 0, seen); builder.z5(_Char___init__impl__6a9atx(62)); }; function _get_child__j05w3v($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.flo_1; child$factory(); return this_0.t2(); } function Companion_3() { Companion_instance_4 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.hlo_1 = [serializer_1(Companion_getInstance_0()).a45(), serializer_2(Companion_getInstance_1()).a45(), serializer_3(Companion_getInstance_2()).a45(), serializer_4(Companion_getInstance_3()).a45()]; } var Companion_instance_4; function Companion_getInstance_8() { if (Companion_instance_4 == null) new Companion_3(); return Companion_instance_4; } function XmlInlineDescriptor$child$delegate$lambda(this$0, $tagParent, $config, $serializersModule, $canBeAttribute) { return function () { var tmp; if (!(this$0.tkz_1.olk_1 == null)) { tmp = this$0.tkz_1; } else if (!(this$0.ilm().xll_1.olk_1 == null)) { tmp = this$0.ilm().xll_1; } else { var serialName = this$0.ilm().wll_1.w46(0); var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = this$0.ilm().wll_1.t46(0).w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlSerialName) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var annotation = tmp$ret$0; var qName = annotation == null ? null : toQName(annotation, serialName, $tagParent.oll()); var childUseNameInfo = new DeclaredNameInfo(serialName, qName, (annotation == null ? null : annotation.cl2_1) === get_UNSET_ANNOTATION_VALUE()); tmp = !(childUseNameInfo.olk_1 == null) ? childUseNameInfo : this$0.tkz_1; } var effectiveUseNameInfo = tmp; var useParentInfo = new ParentInfo(this$0, 0, effectiveUseNameInfo); return Companion_instance_3.xlm($config, $serializersModule, useParentInfo, $tagParent, $canBeAttribute); }; } function XmlInlineDescriptor$isUnsigned$delegate$lambda(this$0) { return function () { return contains(Companion_getInstance_8().hlo_1, this$0.hl2()) ? true : _get_child__j05w3v(this$0).wl4(); }; } function XmlInlineDescriptor(config, serializersModule, serializerParent, tagParent, canBeAttribute) { Companion_getInstance_8(); XmlValueDescriptor.call(this, config.fkz_1, serializerParent, tagParent); var tmp = this; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = serializerParent.sll(); var tmp_0; if (isInterface(this_0, Collection)) { tmp_0 = this_0.d1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlInlineDescriptor.isIdAttr.' call if (element instanceof XmlId) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } tmp.elo_1 = tmp$ret$0; if (!serializerParent.tll().r46()) { throw AssertionError_init_$Create$('InlineDescriptors are only valid for inline classes'); } var tmp_1 = this; tmp_1.flo_1 = lazy(XmlInlineDescriptor$child$delegate$lambda(this, tagParent, config, serializersModule, canBeAttribute)); var tmp_2 = this; tmp_2.glo_1 = lazy(XmlInlineDescriptor$isUnsigned$delegate$lambda(this)); } protoOf(XmlInlineDescriptor).vl5 = function () { return this.elo_1; }; protoOf(XmlInlineDescriptor).oli = function () { return true; }; protoOf(XmlInlineDescriptor).bl5 = function () { return _get_child__j05w3v(this).bl5(); }; protoOf(XmlInlineDescriptor).fky = function () { return _get_child__j05w3v(this).fky(); }; protoOf(XmlInlineDescriptor).xkz = function () { return _get_child__j05w3v(this).xkz(); }; protoOf(XmlInlineDescriptor).u46 = function (index) { if (!(index === 0)) throw IllegalArgumentException_init_$Create$('Inline classes only have one child'); return _get_child__j05w3v(this); }; protoOf(XmlInlineDescriptor).wl4 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.glo_1; isUnsigned$factory(); return this_0.t2(); }; protoOf(XmlInlineDescriptor).vlm = function (builder, indent, seen) { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlInlineDescriptor.appendTo.' call builder.r8(this.xkz().toString()); builder.r8(': Inline ('); _get_child__j05w3v(this).wlm(builder, indent + 4 | 0, seen); builder.z5(_Char___init__impl__6a9atx(41)); }; protoOf(XmlInlineDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(XmlValueDescriptor).equals.call(this, other)) return false; if (!(other instanceof XmlInlineDescriptor)) THROW_CCE(); return this.wl4() === other.wl4(); }; protoOf(XmlInlineDescriptor).hashCode = function () { var result = protoOf(XmlValueDescriptor).hashCode.call(this); result = imul(31, result) + getBooleanHashCode(this.wl4()) | 0; return result; }; function _get_children__my42wc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yl7_1; children$factory_0(); return this_0.t2(); } function getElementDescriptors($this, config, serializersModule, initialChildReorderInfo) { // Inline function 'kotlin.arrayOfNulls' call var size = $this.q46(); var descriptors = fillArrayVal(Array(size), null); var tmp0_iterator = sequenceStarts(initialChildReorderInfo, $this.q46()).w(); while (tmp0_iterator.f()) { var orderedSequence = tmp0_iterator.e(); var tmp1_iterator = flatten(orderedSequence).w(); while (tmp1_iterator.f()) { var element = tmp1_iterator.e(); getElementDescriptors$ensureDescriptor(element, descriptors, $this, config, serializersModule); } } return toList_1(requireNoNulls(descriptors)); } function createElementDescriptor($this, config, serializersModule, index, canBeAttribute) { return Companion_instance_3.ulm(config, serializersModule, new ParentInfo($this, index), VOID, canBeAttribute); } function _get_childReorderInfo__htyspq($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zl7_1; childReorderInfo$factory(); return this_0.t2(); } function getElementDescriptors$ensureDescriptor(_this__u8e3s4, descriptors, this$0, $config, $serializersModule) { var tmp0_elvis_lhs = descriptors[_this__u8e3s4.blm_1]; var tmp; if (tmp0_elvis_lhs == null) { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlCompositeDescriptor.getElementDescriptors.ensureDescriptor.' call var tmp_0; if (_this__u8e3s4.clm_1.d1()) { tmp_0 = true; } else { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.all' call var this_0 = _this__u8e3s4.clm_1; var tmp_1; if (isInterface(this_0, Collection)) { tmp_1 = this_0.d1(); } else { tmp_1 = false; } if (tmp_1) { tmp$ret$0 = true; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlCompositeDescriptor.getElementDescriptors.ensureDescriptor..' call if (!getElementDescriptors$ensureDescriptor(element, descriptors, this$0, $config, $serializersModule).fky().equals(OutputKind_Attribute_getInstance())) { tmp$ret$0 = false; break $l$block_0; } } tmp$ret$0 = true; } tmp_0 = tmp$ret$0; } var canBeAttribute = tmp_0; // Inline function 'kotlin.also' call var this_1 = createElementDescriptor(this$0, $config, $serializersModule, _this__u8e3s4.blm_1, canBeAttribute); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlCompositeDescriptor.getElementDescriptors.ensureDescriptor..' call descriptors[_this__u8e3s4.blm_1] = this_1; tmp = this_1; } else { tmp = tmp0_elvis_lhs; } return tmp; } function XmlCompositeDescriptor$children$delegate$lambda(this$0, $config, $serializersModule) { return function () { var valueChildIndex = getValueChild(this$0); var tmp; if (!(this$0.xl7_1 == null)) { tmp = getElementDescriptors(this$0, $config, $serializersModule, this$0.xl7_1); } else { // Inline function 'kotlin.collections.List' call // Inline function 'kotlin.collections.MutableList' call var size = this$0.q46(); var list = ArrayList_init_$Create$_0(size); // Inline function 'kotlin.repeat' call // Inline function 'kotlin.contracts.contract' call var inductionVariable = 0; if (inductionVariable < size) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.collections.MutableList.' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlCompositeDescriptor.children$delegate..' call var tmp$ret$0 = createElementDescriptor(this$0, $config, $serializersModule, index, true); list.j1(tmp$ret$0); } while (inductionVariable < size); tmp = list; } var l = tmp; var tmp_0; if (valueChildIndex >= 0) { var valueChild = l.v(valueChildIndex); var tmp_1; if (!equals(valueChild.tlj(), LIST_getInstance()) ? true : !equals(valueChild.u46(0).hl2(), CompactFragmentSerializer_getInstance().dkx_1)) { var tmp$ret$4; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = get_indices_0(l).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlCompositeDescriptor.children$delegate..' call if (!(element === valueChildIndex) ? l.v(element).fky().equals(OutputKind_Element_getInstance()) : false) { tmp$ret$4 = element; break $l$block; } } tmp$ret$4 = null; } var invalidIdx = tmp$ret$4; var tmp_2; if (!(invalidIdx == null)) { throw new XmlSerialException('Types with an @XmlValue member may not contain other child elements (' + this$0.hl2().u46(invalidIdx)); } tmp_1 = tmp_2; } tmp_0 = tmp_1; } return l; }; } function XmlCompositeDescriptor$childReorderInfo$delegate$lambda(this$0) { return function () { var tmp0_safe_receiver = this$0.xl7_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlCompositeDescriptor.childReorderInfo$delegate..' call var newList = sequenceStarts(tmp0_safe_receiver, this$0.q46()); tmp = fullFlatten(newList, this$0.hl2(), _get_children__my42wc_0(this$0)); } return tmp; }; } function XmlCompositeDescriptor(config, serializersModule, serializerParent, tagParent, preserveSpace) { XmlValueDescriptor.call(this, config.fkz_1, serializerParent, tagParent); this.wl7_1 = preserveSpace; var requestedOutputKind = config.fkz_1.ell(serializerParent, tagParent, false); if (!requestedOutputKind.equals(OutputKind_Element_getInstance())) { config.fkz_1.vlk('Class SerialKinds/composites can only have Element output kinds, not ' + requestedOutputKind); } this.xl7_1 = config.fkz_1.jll(this.hl2()); var tmp = this; tmp.yl7_1 = lazy(XmlCompositeDescriptor$children$delegate$lambda(this, config, serializersModule)); var tmp_0 = this; tmp_0.zl7_1 = lazy(XmlCompositeDescriptor$childReorderInfo$delegate$lambda(this)); } protoOf(XmlCompositeDescriptor).bl5 = function () { return this.wl7_1; }; protoOf(XmlCompositeDescriptor).vl5 = function () { return false; }; protoOf(XmlCompositeDescriptor).oli = function () { return false; }; protoOf(XmlCompositeDescriptor).fky = function () { return OutputKind_Element_getInstance(); }; protoOf(XmlCompositeDescriptor).u46 = function (index) { return _get_children__my42wc_0(this).v(index); }; protoOf(XmlCompositeDescriptor).nli = function () { var tmp0_safe_receiver = _get_childReorderInfo__htyspq(this); return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x6_1; }; protoOf(XmlCompositeDescriptor).al8 = function () { var tmp0_safe_receiver = _get_childReorderInfo__htyspq(this); return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w6_1; }; protoOf(XmlCompositeDescriptor).vlm = function (builder, indent, seen) { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlCompositeDescriptor.appendTo.' call // Inline function 'kotlin.text.appendLine' call // Inline function 'kotlin.text.appendLine' call builder.r8(this.xkz().toString()).r8(' (').z5(_Char___init__impl__6a9atx(10)); var first = true; var tmp0_iterator = _get_children__my42wc_0(this).w(); while (tmp0_iterator.f()) { var child = tmp0_iterator.e(); if (first) first = false; else { // Inline function 'kotlin.text.appendLine' call var value = _Char___init__impl__6a9atx(44); // Inline function 'kotlin.text.appendLine' call builder.z5(value).z5(_Char___init__impl__6a9atx(10)); } appendIndent(builder, indent); child.wlm(builder, indent + 4 | 0, seen); } // Inline function 'kotlin.text.appendLine' call var tmp$ret$4 = builder.z5(_Char___init__impl__6a9atx(10)); appendIndent(tmp$ret$4, indent - 4 | 0).z5(_Char___init__impl__6a9atx(41)); }; protoOf(XmlCompositeDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(XmlValueDescriptor).equals.call(this, other)) return false; if (!(other instanceof XmlCompositeDescriptor)) THROW_CCE(); if (!equals(this.xl7_1, other.xl7_1)) return false; return true; }; protoOf(XmlCompositeDescriptor).hashCode = function () { var result = protoOf(XmlValueDescriptor).hashCode.call(this); var tmp = imul(31, result); var tmp0_safe_receiver = this.xl7_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; return result; }; function defaultValue($this, serializersModule, config, deserializer) { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call var d = $this.hl4_1; var tmp; if (!equals(d, UNSET_instance)) { return (d == null ? true : !(d == null)) ? d : THROW_CCE(); } var tmp_0; if ($this.gl4_1 == null) { tmp_0 = null; } else { var defaultDecoder = new XmlDecoder(new XmlDecoderBase(serializersModule, config, CompactFragment_init_$Create$_0($this.gl4_1).xkw()), $this); tmp_0 = deserializer.c45(defaultDecoder); } var d_0 = tmp_0; $this.hl4_1 = d_0; return (d_0 == null ? true : !(d_0 == null)) ? d_0 : THROW_CCE(); } function UNSET() { } var UNSET_instance; function UNSET_getInstance() { return UNSET_instance; } function XmlValueDescriptor(policy, serializerParent, tagParent) { XmlDescriptor.call(this, policy, serializerParent, tagParent); var tmp = this; var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = serializerParent.sll().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlCData) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_elvis_lhs = tmp$ret$0; var tmp_0; if (tmp0_elvis_lhs == null) { var tmp$ret$1; $l$block_0: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator_0 = tagParent.sll().w(); while (tmp0_iterator_0.f()) { var e_0 = tmp0_iterator_0.e(); if (e_0 instanceof XmlCData) { tmp$ret$1 = e_0; break $l$block_0; } } tmp$ret$1 = null; } tmp_0 = tmp$ret$1; } else { tmp_0 = tmp0_elvis_lhs; } var tmp1_elvis_lhs = tmp_0; var tmp_1; if (tmp1_elvis_lhs == null) { var tmp$ret$2; $l$block_1: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator_1 = serializerParent.tll().p46().w(); while (tmp0_iterator_1.f()) { var e_1 = tmp0_iterator_1.e(); if (e_1 instanceof XmlCData) { tmp$ret$2 = e_1; break $l$block_1; } } tmp$ret$2 = null; } tmp_1 = tmp$ret$2; } else { tmp_1 = tmp1_elvis_lhs; } var tmp2_safe_receiver = tmp_1; tmp.fl4_1 = (tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ilo_1) === true; var tmp_2 = this; var tmp0_elvis_lhs_0 = get_declDefault(tagParent.sll()); tmp_2.gl4_1 = tmp0_elvis_lhs_0 == null ? get_declDefault_0(serializerParent.tll()) : tmp0_elvis_lhs_0; this.hl4_1 = UNSET_instance; } protoOf(XmlValueDescriptor).flg = function () { return this.fl4_1; }; protoOf(XmlValueDescriptor).el6 = function (xmlCodecBase, deserializer) { return defaultValue(this, xmlCodecBase.qky_1, xmlCodecBase.rky_1, deserializer); }; protoOf(XmlValueDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(XmlDescriptor).equals.call(this, other)) return false; if (!(other instanceof XmlValueDescriptor)) THROW_CCE(); if (!(this.fl4_1 === other.fl4_1)) return false; if (!(this.gl4_1 == other.gl4_1)) return false; return equals(this.hl4_1, other.hl4_1); }; protoOf(XmlValueDescriptor).hashCode = function () { var result = protoOf(XmlDescriptor).hashCode.call(this); result = imul(31, result) + getBooleanHashCode(this.fl4_1) | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.gl4_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.hl4_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : hashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; return result; }; function TRANSPARENT() { TRANSPARENT_instance = this; PolymorphicMode.call(this); } var TRANSPARENT_instance; function TRANSPARENT_getInstance() { if (TRANSPARENT_instance == null) new TRANSPARENT(); return TRANSPARENT_instance; } function TAG() { TAG_instance = this; PolymorphicMode.call(this); } var TAG_instance; function TAG_getInstance() { if (TAG_instance == null) new TAG(); return TAG_instance; } function ATTR(name) { PolymorphicMode.call(this); this.slf_1 = name; } function PolymorphicMode() { } function ParentInfo(descriptor, index, useNameInfo, useOutputKind, overriddenSerializer) { useNameInfo = useNameInfo === VOID ? null : useNameInfo; useOutputKind = useOutputKind === VOID ? null : useOutputKind; overriddenSerializer = overriddenSerializer === VOID ? null : overriddenSerializer; this.jlo_1 = descriptor; this.klo_1 = index; this.llo_1 = overriddenSerializer; var tmp = this; var tmp_0; if (useNameInfo == null) { tmp_0 = this.klo_1 === -1 ? DeclaredNameInfo_init_$Create$(this.jlo_1.hl2().a46()) : getElementNameInfo(this.jlo_1.hl2(), this.klo_1, toNamespace(this.jlo_1.xkz())); } else { tmp_0 = useNameInfo; } tmp.mlo_1 = tmp_0; var tmp_1 = this; var tmp_2; if (useOutputKind == null) { tmp_2 = this.klo_1 === -1 ? null : getRequestedOutputKind(this.jlo_1.hl2().t46(this.klo_1)); } else { tmp_2 = useOutputKind; } tmp_1.nlo_1 = tmp_2; } protoOf(ParentInfo).a45 = function () { return this.jlo_1; }; protoOf(ParentInfo).zlm = function () { return this.llo_1; }; protoOf(ParentInfo).gln = function (useNameInfo, useOutputKind, overriddenSerializer) { return new ParentInfo(this.jlo_1, this.klo_1, useNameInfo, useOutputKind, overriddenSerializer); }; protoOf(ParentInfo).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ParentInfo)) THROW_CCE(); if (!this.jlo_1.equals(other.jlo_1)) return false; if (!(this.klo_1 === other.klo_1)) return false; if (!equals(this.llo_1, other.llo_1)) return false; if (!this.mlo_1.equals(other.mlo_1)) return false; return equals(this.nlo_1, other.nlo_1); }; protoOf(ParentInfo).hashCode = function () { var result = this.jlo_1.hashCode(); result = imul(31, result) + this.klo_1 | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.llo_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; result = imul(31, result) + this.mlo_1.hashCode() | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.nlo_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hashCode(); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; return result; }; protoOf(ParentInfo).oll = function () { return toNamespace(this.jlo_1.xkz()); }; protoOf(ParentInfo).vll = function () { return !(this.llo_1 == null) ? new XmlTypeDescriptor(this.llo_1.a45(), toNamespace(this.jlo_1.xkz())) : this.klo_1 === -1 ? this.jlo_1.ilm() : equals(this.tll().s46(), CONTEXTUAL_getInstance()) ? this.jlo_1.ilm() : new XmlTypeDescriptor(this.tll(), this.jlo_1.rkz_1.oll()); }; protoOf(ParentInfo).ill = function () { return this.mlo_1; }; protoOf(ParentInfo).sll = function () { return this.klo_1 === -1 ? emptyList() : this.jlo_1.hl2().t46(this.klo_1); }; protoOf(ParentInfo).tll = function () { return !(this.llo_1 == null) ? this.llo_1.a45() : equals(this.jlo_1.tlj(), CONTEXTUAL_getInstance()) ? this.jlo_1.hl2() : this.klo_1 === -1 ? this.jlo_1.hl2() : this.jlo_1.hl2().u46(this.klo_1); }; protoOf(ParentInfo).ull = function () { return this.nlo_1; }; function polyTagName(parentName, polyChildSpecification, baseClass, serializersModule) { var currentPkg = substringBeforeLast(parentName.qlk_1, _Char___init__impl__6a9atx(46), ''); var parentTag = parentName.rlk_1; var eqPos = indexOf(polyChildSpecification, _Char___init__impl__6a9atx(61)); var pkgPos; var typeNameBase; var prefix; var localPart; if (eqPos < 0) { typeNameBase = polyChildSpecification; pkgPos = lastIndexOf(polyChildSpecification, _Char___init__impl__6a9atx(46)); // Inline function 'nl.adaptivity.xmlutil.prefix' call prefix = parentTag.dkr(); var tmp; if (pkgPos < 0) { tmp = polyChildSpecification; } else { // Inline function 'kotlin.text.substring' call var startIndex = pkgPos + 1 | 0; // Inline function 'kotlin.js.asDynamic' call tmp = polyChildSpecification.substring(startIndex); } localPart = tmp; } else { // Inline function 'kotlin.text.trim' call // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call var this_0 = polyChildSpecification.substring(0, eqPos); typeNameBase = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); pkgPos = lastIndexOf(polyChildSpecification, _Char___init__impl__6a9atx(46), eqPos - 1 | 0); var prefPos = indexOf(polyChildSpecification, _Char___init__impl__6a9atx(58), eqPos + 1 | 0); if (prefPos < 0) { // Inline function 'nl.adaptivity.xmlutil.prefix' call prefix = parentTag.dkr(); // Inline function 'kotlin.text.trim' call // Inline function 'kotlin.text.substring' call var startIndex_0 = eqPos + 1 | 0; // Inline function 'kotlin.js.asDynamic' call var this_1 = polyChildSpecification.substring(startIndex_0); localPart = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); } else { // Inline function 'kotlin.text.trim' call // Inline function 'kotlin.text.substring' call var startIndex_1 = eqPos + 1 | 0; // Inline function 'kotlin.js.asDynamic' call var this_2 = polyChildSpecification.substring(startIndex_1, prefPos); prefix = toString(trim(isCharSequence(this_2) ? this_2 : THROW_CCE())); // Inline function 'kotlin.text.trim' call // Inline function 'kotlin.text.substring' call var startIndex_2 = prefPos + 1 | 0; // Inline function 'kotlin.js.asDynamic' call var this_3 = polyChildSpecification.substring(startIndex_2); localPart = toString(trim(isCharSequence(this_3) ? this_3 : THROW_CCE())); } } var tmp_0; var tmp_1; if (!(pkgPos === 0)) { tmp_1 = true; } else { // Inline function 'kotlin.text.isEmpty' call tmp_1 = charSequenceLength(currentPkg) === 0; } if (tmp_1) { tmp_0 = typeNameBase; } else { // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call tmp_0 = currentPkg + '.' + typeNameBase.substring(1); } var typename = tmp_0; var tmp0_safe_receiver = serializersModule.r4a(baseClass, typename); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a45(); var tmp_2; if (tmp1_elvis_lhs == null) { throw XmlException_init_$Create$('Missing descriptor for ' + typename + ' in the serial context'); } else { tmp_2 = tmp1_elvis_lhs; } var descriptor = tmp_2; var tmp_3; if (eqPos < 0) { var tmp_4 = Companion_instance_1; // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp$ret$19 = parentTag.bkr(); tmp_3 = tmp_4.ulj(descriptor, new NamespaceImpl(prefix, tmp$ret$19)); } else { // Inline function 'nl.adaptivity.xmlutil.namespaceURI' call var tmp$ret$20 = parentTag.bkr(); tmp_3 = new QName(tmp$ret$20, localPart, prefix); } var name = tmp_3; return new PolyBaseInfo(name, descriptor); } function XmlListLikeDescriptor(config, serializerParent, tagParent) { tagParent = tagParent === VOID ? serializerParent : tagParent; XmlDescriptor.call(this, config.fkz_1, serializerParent, tagParent); var tmp = this; var tmp_0; var tmp_1; if (tagParent instanceof DetachedParent) { tmp_1 = tagParent.dln_1; } else { tmp_1 = false; } if (tmp_1) { tmp_0 = false; } else { tmp_0 = config.fkz_1.ylk(serializerParent, tagParent); } tmp.rl2_1 = tmp_0; } protoOf(XmlListLikeDescriptor).sl2 = function () { return this.rl2_1; }; protoOf(XmlListLikeDescriptor).oli = function () { return false; }; protoOf(XmlListLikeDescriptor).bl5 = function () { return false; }; protoOf(XmlListLikeDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(XmlDescriptor).equals.call(this, other)) return false; if (!(other instanceof XmlListLikeDescriptor)) THROW_CCE(); if (!(this.sl2() === other.sl2())) return false; if (!(this.oli() === other.oli())) return false; return this.bl5() === other.bl5(); }; protoOf(XmlListLikeDescriptor).hashCode = function () { var result = protoOf(XmlDescriptor).hashCode.call(this); result = imul(31, result) + getBooleanHashCode(this.sl2()) | 0; result = imul(31, result) + getBooleanHashCode(this.oli()) | 0; result = imul(31, result) + getBooleanHashCode(this.bl5()) | 0; return result; }; function appendIndent(_this__u8e3s4, count) { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.appendIndent.' call var inductionVariable = 0; if (inductionVariable < count) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; _this__u8e3s4.z5(_Char___init__impl__6a9atx(32)); } while (inductionVariable < count); return _this__u8e3s4; } function InjectedParentTag(index, elementTypeDescriptor, elementUseNameInfo, namespace, elementUseOutputKind, overriddenSerializer) { elementUseOutputKind = elementUseOutputKind === VOID ? null : elementUseOutputKind; overriddenSerializer = overriddenSerializer === VOID ? null : overriddenSerializer; this.olo_1 = index; this.plo_1 = elementTypeDescriptor; this.qlo_1 = elementUseNameInfo; this.rlo_1 = namespace; this.slo_1 = elementUseOutputKind; this.tlo_1 = overriddenSerializer; this.ulo_1 = null; } protoOf(InjectedParentTag).vll = function () { return this.plo_1; }; protoOf(InjectedParentTag).ill = function () { return this.qlo_1; }; protoOf(InjectedParentTag).oll = function () { return this.rlo_1; }; protoOf(InjectedParentTag).ull = function () { return this.slo_1; }; protoOf(InjectedParentTag).zlm = function () { return this.tlo_1; }; protoOf(InjectedParentTag).a45 = function () { return this.ulo_1; }; protoOf(InjectedParentTag).sll = function () { return emptyList(); }; protoOf(InjectedParentTag).tll = function () { return this.plo_1.wll_1; }; protoOf(InjectedParentTag).gln = function (useNameInfo, useOutputKind, overriddenSerializer) { return new InjectedParentTag(this.olo_1, this.plo_1, useNameInfo, this.rlo_1, useOutputKind, overriddenSerializer); }; function get_declDefault(_this__u8e3s4) { var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlDefault) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var tmp0_safe_receiver = tmp$ret$0; return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vlo_1; } function get_declDefault_0(_this__u8e3s4) { return get_declDefault(_this__u8e3s4.p46()); } function getElementNameInfo(_this__u8e3s4, index, parentNamespace) { var serialName = _this__u8e3s4.w46(index); var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = _this__u8e3s4.t46(index).w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlSerialName) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var annotation = tmp$ret$0; var qName = annotation == null ? null : toQName(annotation, serialName, parentNamespace); return new DeclaredNameInfo(serialName, qName, (annotation == null ? null : annotation.cl2_1) === get_UNSET_ANNOTATION_VALUE()); } function getRequestedOutputKind(_this__u8e3s4) { var xmlCData = null; var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var annotation = tmp0_iterator.e(); var tmp1_safe_receiver = annotation instanceof XmlValue ? annotation : null; if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.nlb_1) === true) return OutputKind_Mixed_getInstance(); else { var tmp; if (annotation instanceof XmlId) { tmp = true; } else { tmp = annotation instanceof XmlOtherAttributes; } if (tmp) return OutputKind_Attribute_getInstance(); else { if (annotation instanceof XmlElement) return annotation.hln_1 ? OutputKind_Element_getInstance() : OutputKind_Attribute_getInstance(); else { var tmp_0; if (annotation instanceof XmlPolyChildren) { tmp_0 = true; } else { tmp_0 = annotation instanceof XmlChildrenName; } if (tmp_0) return OutputKind_Element_getInstance(); else { if (annotation instanceof XmlCData) xmlCData = annotation; } } } } } var tmp2_safe_receiver = xmlCData; if ((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ilo_1) === true) return OutputKind_Element_getInstance(); return null; } function declOutputKind(_this__u8e3s4) { var tmp0_iterator = _this__u8e3s4.p46().w(); while (tmp0_iterator.f()) { var a = tmp0_iterator.e(); var tmp; if (a instanceof XmlValue) { tmp = a.nlb_1; } else { tmp = false; } if (tmp) return OutputKind_Text_getInstance(); else { if (a instanceof XmlId) return OutputKind_Attribute_getInstance(); else { if (a instanceof XmlElement) return a.hln_1 ? OutputKind_Element_getInstance() : OutputKind_Attribute_getInstance(); else { var tmp_0; if (a instanceof XmlPolyChildren) { tmp_0 = true; } else { tmp_0 = a instanceof XmlChildrenName; } if (tmp_0) return OutputKind_Element_getInstance(); } } } } return null; } function getNameInfo(_this__u8e3s4, parentNamespace) { var tmp; if (_this__u8e3s4.l46() ? endsWith(_this__u8e3s4.a46(), _Char___init__impl__6a9atx(63)) : false) { tmp = dropLast(_this__u8e3s4.a46(), 1); } else { var tmp0_safe_receiver = get_capturedKClass(_this__u8e3s4); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_serialName(tmp0_safe_receiver); tmp = tmp1_elvis_lhs == null ? _this__u8e3s4.a46() : tmp1_elvis_lhs; } var realSerialName = tmp; var tmp$ret$0; $l$block: { // Inline function 'nl.adaptivity.xmlutil.serialization.firstOrNull' call var tmp0_iterator = _this__u8e3s4.p46().w(); while (tmp0_iterator.f()) { var e = tmp0_iterator.e(); if (e instanceof XmlSerialName) { tmp$ret$0 = e; break $l$block; } } tmp$ret$0 = null; } var annotation = tmp$ret$0; var qName = annotation == null ? null : toQName(annotation, realSerialName, parentNamespace); return new DeclaredNameInfo(realSerialName, qName, (annotation == null ? null : annotation.cl2_1) === get_UNSET_ANNOTATION_VALUE()); } function element$factory() { return getPropertyCallableRef('element', 1, KProperty1, function (receiver) { return _get_element__z0t21h(receiver); }, null); } function tagName$factory() { return getPropertyCallableRef('tagName', 1, KProperty1, function (receiver) { return receiver.xkz(); }, null); } function children$factory() { return getPropertyCallableRef('children', 1, KProperty1, function (receiver) { return _get_children__my42wc(receiver); }, null); } function childDescriptor$factory() { return getPropertyCallableRef('childDescriptor', 1, KProperty1, function (receiver) { return _get_childDescriptor__xb3z96(receiver); }, null); } function keyDescriptor$factory() { return getPropertyCallableRef('keyDescriptor', 1, KProperty1, function (receiver) { return receiver.uln(); }, null); } function valueDescriptor$factory() { return getPropertyCallableRef('valueDescriptor', 1, KProperty1, function (receiver) { return receiver.ll9(); }, null); } function isValueCollapsed$factory() { return getPropertyCallableRef('isValueCollapsed', 1, KProperty1, function (receiver) { return receiver.el3(); }, null); } function entryName$factory() { return getPropertyCallableRef('entryName', 1, KProperty1, function (receiver) { return receiver.ll4(); }, null); } function keyDescriptor$factory_0() { return getPropertyCallableRef('keyDescriptor', 1, KProperty1, function (receiver) { return _get_keyDescriptor__hu7alf(receiver); }, null); } function valueDescriptor$factory_0() { return getPropertyCallableRef('valueDescriptor', 1, KProperty1, function (receiver) { return _get_valueDescriptor__8ouq3z(receiver); }, null); } function child$factory() { return getPropertyCallableRef('child', 1, KProperty1, function (receiver) { return _get_child__j05w3v(receiver); }, null); } function isUnsigned$factory() { return getPropertyCallableRef('isUnsigned', 1, KProperty1, function (receiver) { return receiver.wl4(); }, null); } function children$factory_0() { return getPropertyCallableRef('children', 1, KProperty1, function (receiver) { return _get_children__my42wc_0(receiver); }, null); } function childReorderInfo$factory() { return getPropertyCallableRef('childReorderInfo', 1, KProperty1, function (receiver) { return _get_childReorderInfo__htyspq(receiver); }, null); } function Companion_4() { this.wlo_1 = -2; } var Companion_instance_5; function Companion_getInstance_9() { return Companion_instance_5; } function XmlOrderConstraint(before, after) { this.bl8_1 = before; this.cl8_1 = after; } protoOf(XmlOrderConstraint).y6 = function () { return this.bl8_1; }; protoOf(XmlOrderConstraint).z6 = function () { return this.cl8_1; }; protoOf(XmlOrderConstraint).toString = function () { return 'XmlOrderConstraint(before=' + this.bl8_1 + ', after=' + this.cl8_1 + ')'; }; protoOf(XmlOrderConstraint).hashCode = function () { var result = this.bl8_1; result = imul(result, 31) + this.cl8_1 | 0; return result; }; protoOf(XmlOrderConstraint).equals = function (other) { if (this === other) return true; if (!(other instanceof XmlOrderConstraint)) return false; var tmp0_other_with_cast = other instanceof XmlOrderConstraint ? other : THROW_CCE(); if (!(this.bl8_1 === tmp0_other_with_cast.bl8_1)) return false; if (!(this.cl8_1 === tmp0_other_with_cast.cl8_1)) return false; return true; }; var OrderWildcard_BEFORE_instance; var OrderWildcard_NONE_instance; var OrderWildcard_AFTER_instance; var OrderWildcard_entriesInitialized; function OrderWildcard_initEntries() { if (OrderWildcard_entriesInitialized) return Unit_instance; OrderWildcard_entriesInitialized = true; OrderWildcard_BEFORE_instance = new OrderWildcard('BEFORE', 0); OrderWildcard_NONE_instance = new OrderWildcard('NONE', 1); OrderWildcard_AFTER_instance = new OrderWildcard('AFTER', 2); } function OrderWildcard(name, ordinal) { Enum.call(this, name, ordinal); } function XmlOrderNode$toString$lambda(it) { return it.blm_1.toString(); } function XmlOrderNode$toString$lambda_0(it) { return it.blm_1.toString(); } function OrderWildcard_BEFORE_getInstance() { OrderWildcard_initEntries(); return OrderWildcard_BEFORE_instance; } function OrderWildcard_NONE_getInstance() { OrderWildcard_initEntries(); return OrderWildcard_NONE_instance; } function OrderWildcard_AFTER_getInstance() { OrderWildcard_initEntries(); return OrderWildcard_AFTER_instance; } function XmlOrderNode(elementIdx) { this.blm_1 = elementIdx; var tmp = this; // Inline function 'kotlin.collections.mutableListOf' call tmp.clm_1 = ArrayList_init_$Create$(); var tmp_0 = this; // Inline function 'kotlin.collections.mutableListOf' call tmp_0.dlm_1 = ArrayList_init_$Create$(); this.elm_1 = OrderWildcard_NONE_getInstance(); } protoOf(XmlOrderNode).flm = function (nodes) { var inductionVariable = 0; var last = nodes.length; while (inductionVariable < last) { var node = nodes[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; if (!this.dlm_1.b1(node)) { this.dlm_1.j1(node); node.glm([this]); } } }; protoOf(XmlOrderNode).glm = function (nodes) { var inductionVariable = 0; var last = nodes.length; while (inductionVariable < last) { var node = nodes[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; if (!this.clm_1.b1(node)) { this.clm_1.j1(node); node.flm([this]); } } }; protoOf(XmlOrderNode).toString = function () { var tmp = joinToString(this.clm_1, VOID, VOID, VOID, VOID, VOID, XmlOrderNode$toString$lambda); return '(' + this.blm_1 + ', p=[' + tmp + '], s=[' + joinToString(this.dlm_1, VOID, VOID, VOID, VOID, VOID, XmlOrderNode$toString$lambda_0) + '])'; }; protoOf(XmlOrderNode).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof XmlOrderNode)) THROW_CCE(); if (!(this.blm_1 === other.blm_1)) return false; if (!equals(this.clm_1, other.clm_1)) return false; if (!equals(this.dlm_1, other.dlm_1)) return false; return this.elm_1.equals(other.elm_1); }; protoOf(XmlOrderNode).hashCode = function () { var result = this.blm_1; result = imul(31, result) + hashCode(this.clm_1) | 0; result = imul(31, result) + hashCode(this.dlm_1) | 0; result = imul(31, result) + this.elm_1.hashCode() | 0; return result; }; function sequenceStarts(_this__u8e3s4, childCount) { var beforeAny = booleanArray(childCount); var hasWildCard = false; var afterAny = booleanArray(childCount); var tmp = 0; // Inline function 'kotlin.arrayOfNulls' call var tmp_0 = fillArrayVal(Array(childCount), null); while (tmp < childCount) { var tmp_1 = tmp; tmp_0[tmp_1] = new XmlOrderNode(tmp_1); tmp = tmp + 1 | 0; } var nodes = tmp_0; // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.sequenceStarts.' call if (element.cl8_1 === -2) { hasWildCard = true; beforeAny[element.bl8_1] = true; } else { if (element.bl8_1 === -2) { hasWildCard = true; afterAny[element.cl8_1] = true; } else { // Inline function 'nl.adaptivity.xmlutil.serialization.structure.XmlOrderConstraint.map' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.sequenceStarts..' call var tmp_2 = nodes[element.bl8_1]; // Inline function 'nl.adaptivity.xmlutil.serialization.structure.sequenceStarts..' call var tmp$ret$3 = nodes[element.cl8_1]; var tmp0_container = new Pair(tmp_2, tmp$ret$3); var before = tmp0_container.y6(); var after = tmp0_container.z6(); before.flm([after]); after.glm([before]); } } } if (hasWildCard) { var inductionVariable = 0; var last = beforeAny.length - 1 | 0; if (inductionVariable <= last) do { var idx = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (beforeAny[idx]) { nodes[idx].elm_1 = OrderWildcard_BEFORE_getInstance(); } else if (afterAny[idx]) { nodes[idx].elm_1 = OrderWildcard_AFTER_getInstance(); } } while (inductionVariable <= last); // Inline function 'kotlin.run' call // Inline function 'kotlin.contracts.contract' call var beforesToCheck = ArrayDeque_init_$Create$(); // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = get_indices(beforeAny); var destination = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_0.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.sequenceStarts..' call if (beforeAny[element_0]) { destination.j1(element_0); } } beforesToCheck.n1(destination); $l$loop: while (true) { // Inline function 'kotlin.collections.isNotEmpty' call if (!!beforesToCheck.d1()) { break $l$loop; } var idx_0 = beforesToCheck.of(); // Inline function 'kotlin.sequences.forEach' call var tmp_3 = asSequence_1(nodes[idx_0].clm_1); var tmp0_iterator_1 = filter(tmp_3, sequenceStarts$lambda(beforeAny)).w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.sequenceStarts..' call element_1.elm_1 = OrderWildcard_BEFORE_getInstance(); beforesToCheck.j1(element_1.blm_1); } } // Inline function 'kotlin.run' call // Inline function 'kotlin.contracts.contract' call var aftersToCheck = ArrayDeque_init_$Create$(); // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_1 = get_indices(afterAny); var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_2 = this_1.w(); while (tmp0_iterator_2.f()) { var element_2 = tmp0_iterator_2.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.sequenceStarts..' call if (afterAny[element_2]) { destination_0.j1(element_2); } } aftersToCheck.n1(destination_0); $l$loop_0: while (true) { // Inline function 'kotlin.collections.isNotEmpty' call if (!!aftersToCheck.d1()) { break $l$loop_0; } var idx_1 = aftersToCheck.of(); // Inline function 'kotlin.sequences.forEach' call var tmp_4 = asSequence_1(nodes[idx_1].dlm_1); var tmp0_iterator_3 = filter(tmp_4, sequenceStarts$lambda_0(afterAny)).w(); while (tmp0_iterator_3.f()) { var element_3 = tmp0_iterator_3.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.sequenceStarts..' call element_3.elm_1 = OrderWildcard_AFTER_getInstance(); aftersToCheck.j1(element_3.blm_1); } } } // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination_1 = ArrayList_init_$Create$(); var inductionVariable_0 = 0; var last_0 = nodes.length; while (inductionVariable_0 < last_0) { var element_4 = nodes[inductionVariable_0]; inductionVariable_0 = inductionVariable_0 + 1 | 0; // Inline function 'nl.adaptivity.xmlutil.serialization.structure.sequenceStarts.' call if (element_4.clm_1.d1()) { destination_1.j1(element_4); } } return destination_1; } function flatten(_this__u8e3s4) { var seen = booleanArray(flatten$lastIndex(_this__u8e3s4) + 1 | 0); // Inline function 'kotlin.also' call // Inline function 'kotlin.collections.mutableListOf' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.structure.flatten.' call this_0.j1(_this__u8e3s4); flatten$flattenSuccessorsTo(_this__u8e3s4, seen, this_0); return this_0; } function fullFlatten(_this__u8e3s4, serialDescriptor, children) { // Inline function 'kotlin.arrayOfNulls' call var size = serialDescriptor.q46(); var originalOrderNodes = fillArrayVal(Array(size), null); // Inline function 'kotlin.collections.mutableListOf' call var allNodes = ArrayList_init_$Create$(); var tmp = asSequence_1(_this__u8e3s4); var tmp0_iterator = filter(tmp, fullFlatten$lambda).w(); while (tmp0_iterator.f()) { var node = tmp0_iterator.e(); fullFlatten$addTransitive(originalOrderNodes, node); allNodes.j1(node); } var inductionVariable = 0; var last = originalOrderNodes.length - 1 | 0; if (inductionVariable <= last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (originalOrderNodes[i] == null) { var node_0 = new XmlOrderNode(i); originalOrderNodes[i] = node_0; allNodes.j1(node_0); } } while (inductionVariable <= last); // Inline function 'kotlin.collections.partition' call var first = ArrayList_init_$Create$(); var second = ArrayList_init_$Create$(); var tmp0_iterator_0 = allNodes.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.fullFlatten.' call if (children.v(element.blm_1).fky().equals(OutputKind_Attribute_getInstance())) { first.j1(element); } else { second.j1(element); } } var tmp2_container = new Pair(first, second); var attributes = tmp2_container.y6(); var members = tmp2_container.z6(); var tmp_0 = 0; var tmp_1 = serialDescriptor.q46(); var tmp_2 = new Int32Array(tmp_1); while (tmp_0 < tmp_1) { tmp_2[tmp_0] = -1; tmp_0 = tmp_0 + 1 | 0; } var finalToDeclMap = tmp_2; var tmp_3 = 0; var tmp_4 = serialDescriptor.q46(); var tmp_5 = new Int32Array(tmp_4); while (tmp_3 < tmp_4) { tmp_5[tmp_3] = -1; tmp_3 = tmp_3 + 1 | 0; } var declToOrderMap = tmp_5; var nextElemIdx = 0; // Inline function 'kotlin.collections.mutableListOf' call var constraints = ArrayList_init_$Create$(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var indexedObject = [attributes, members]; var inductionVariable_0 = 0; var last_0 = indexedObject.length; while (inductionVariable_0 < last_0) { var attrOrMembers = indexedObject[inductionVariable_0]; inductionVariable_0 = inductionVariable_0 + 1 | 0; // Inline function 'kotlin.collections.mutableListOf' call var before = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.mutableListOf' call var general = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.mutableListOf' call var after = ArrayList_init_$Create$(); var tmp4_iterator = attrOrMembers.w(); while (tmp4_iterator.f()) { var node_1 = tmp4_iterator.e(); switch (node_1.elm_1.ab_1) { case 0: before.j1(node_1); break; case 1: general.j1(node_1); break; case 2: after.j1(node_1); break; } } var tmp6_iterator = before.w(); while (tmp6_iterator.f()) { var node_2 = tmp6_iterator.e(); constraints.j1(new XmlOrderConstraint(node_2.blm_1, -2)); } var tmp7_iterator = after.w(); while (tmp7_iterator.f()) { var node_3 = tmp7_iterator.e(); constraints.j1(new XmlOrderConstraint(-2, node_3.blm_1)); } // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var indexedObject_0 = [before, general, after]; var inductionVariable_1 = 0; var last_1 = indexedObject_0.length; while (inductionVariable_1 < last_1) { var base = indexedObject_0[inductionVariable_1]; inductionVariable_1 = inductionVariable_1 + 1 | 0; var queue = toMutableList(base); $l$loop: while (true) { // Inline function 'kotlin.collections.isNotEmpty' call if (!!queue.d1()) { break $l$loop; } var tmp$ret$17; $l$block_0: { // Inline function 'nl.adaptivity.xmlutil.serialization.structure.indexOfMinBy' call if (queue.d1()) { tmp$ret$17 = -1; break $l$block_0; } if (queue.u() === 1) { tmp$ret$17 = 0; break $l$block_0; } var idx = 1; var minIdx = 0; // Inline function 'nl.adaptivity.xmlutil.serialization.structure.fullFlatten.' call var node_4 = queue.v(0); var tmp_6; var tmp$ret$18; $l$block_2: { // Inline function 'kotlin.collections.any' call var this_0 = node_4.clm_1; var tmp_7; if (isInterface(this_0, Collection)) { tmp_7 = this_0.d1(); } else { tmp_7 = false; } if (tmp_7) { tmp$ret$18 = false; break $l$block_2; } var tmp0_iterator_1 = this_0.w(); while (tmp0_iterator_1.f()) { var element_0 = tmp0_iterator_1.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.fullFlatten..' call if (declToOrderMap[element_0.blm_1] < 0) { tmp$ret$18 = true; break $l$block_2; } } tmp$ret$18 = false; } if (tmp$ret$18) { tmp_6 = serialDescriptor.q46(); } else { tmp_6 = node_4.blm_1; } var minValue = tmp_6; do { // Inline function 'nl.adaptivity.xmlutil.serialization.structure.fullFlatten.' call var node_5 = queue.v(idx); var tmp_8; var tmp$ret$21; $l$block_4: { // Inline function 'kotlin.collections.any' call var this_1 = node_5.clm_1; var tmp_9; if (isInterface(this_1, Collection)) { tmp_9 = this_1.d1(); } else { tmp_9 = false; } if (tmp_9) { tmp$ret$21 = false; break $l$block_4; } var tmp0_iterator_2 = this_1.w(); while (tmp0_iterator_2.f()) { var element_1 = tmp0_iterator_2.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.fullFlatten..' call if (declToOrderMap[element_1.blm_1] < 0) { tmp$ret$21 = true; break $l$block_4; } } tmp$ret$21 = false; } if (tmp$ret$21) { tmp_8 = serialDescriptor.q46(); } else { tmp_8 = node_5.blm_1; } var v = tmp_8; if (compareTo(minValue, v) > 0) { minIdx = idx; minValue = v; } idx = idx + 1 | 0; } while (idx < queue.u()); tmp$ret$17 = minIdx; } var nextIdx = tmp$ret$17; var next = queue.t1(nextIdx); finalToDeclMap[nextElemIdx] = next.blm_1; declToOrderMap[next.blm_1] = nextElemIdx; nextElemIdx = nextElemIdx + 1 | 0; var tmp10_iterator = next.dlm_1.w(); while (tmp10_iterator.f()) { var successor = tmp10_iterator.e(); if (base.b1(successor)) { constraints.j1(new XmlOrderConstraint(next.blm_1, successor.blm_1)); } if (!queue.b1(successor)) { queue.j1(successor); } } } } } return to(constraints, declToOrderMap); } function flatten$lastIndex(_this__u8e3s4) { var lastIndex = _this__u8e3s4.blm_1; var tmp0_iterator = _this__u8e3s4.dlm_1.w(); while (tmp0_iterator.f()) { var successor = tmp0_iterator.e(); var c = flatten$lastIndex(successor); if (c > lastIndex) lastIndex = c; } return lastIndex; } function flatten$flattenSuccessorsTo(_this__u8e3s4, seen, receiver) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = _this__u8e3s4.dlm_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'nl.adaptivity.xmlutil.serialization.structure.flatten.flattenSuccessorsTo.' call if (!seen[element.blm_1]) { destination.j1(element); } } var unseenSuccessors = destination; var tmp0_iterator_0 = unseenSuccessors.w(); while (tmp0_iterator_0.f()) { var successor = tmp0_iterator_0.e(); receiver.j1(successor); seen[successor.blm_1] = true; } var tmp1_iterator = unseenSuccessors.w(); while (tmp1_iterator.f()) { var successor_0 = tmp1_iterator.e(); flatten$flattenSuccessorsTo(successor_0, seen, receiver); } } function fullFlatten$addTransitive(originalOrderNodes, node) { if (originalOrderNodes[node.blm_1] == null) { originalOrderNodes[node.blm_1] = node; var tmp0_iterator = node.dlm_1.w(); while (tmp0_iterator.f()) { var next = tmp0_iterator.e(); fullFlatten$addTransitive(originalOrderNodes, next); } } } function sequenceStarts$lambda($beforeAny) { return function (it) { return !$beforeAny[it.blm_1]; }; } function sequenceStarts$lambda_0($afterAny) { return function (it) { return !$afterAny[it.blm_1]; }; } function fullFlatten$lambda(it) { return it.clm_1.d1(); } function _get_children__my42wc_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yll_1; children$factory_1(); return this_0.t2(); } function XmlTypeDescriptor$children$delegate$lambda(this$0, $parentNamespace) { return function () { var tmp = 0; var tmp_0 = this$0.wll_1.q46(); // Inline function 'kotlin.arrayOfNulls' call var tmp_1 = fillArrayVal(Array(tmp_0), null); while (tmp < tmp_0) { var tmp_2 = tmp; var tmp_3 = this$0.wll_1.u46(tmp_2); var tmp0_safe_receiver = this$0.jlm(); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toNamespace(tmp0_safe_receiver); tmp_1[tmp_2] = new XmlTypeDescriptor(tmp_3, tmp1_elvis_lhs == null ? $parentNamespace : tmp1_elvis_lhs); tmp = tmp + 1 | 0; } return tmp_1; }; } function XmlTypeDescriptor(serialDescriptor, parentNamespace) { this.wll_1 = serialDescriptor; this.xll_1 = getNameInfo(this.wll_1, parentNamespace); var tmp = this; tmp.yll_1 = lazy(XmlTypeDescriptor$children$delegate$lambda(this, parentNamespace)); } protoOf(XmlTypeDescriptor).jlm = function () { return this.xll_1.olk_1; }; protoOf(XmlTypeDescriptor).v = function (index) { return _get_children__my42wc_1(this)[index]; }; protoOf(XmlTypeDescriptor).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof XmlTypeDescriptor)) THROW_CCE(); if (!equals(this.wll_1, other.wll_1)) return false; return this.xll_1.equals(other.xll_1); }; protoOf(XmlTypeDescriptor).hashCode = function () { var result = hashCode(this.wll_1); result = imul(31, result) + this.xll_1.hashCode() | 0; return result; }; function children$factory_1() { return getPropertyCallableRef('children', 1, KProperty1, function (receiver) { return _get_children__my42wc_1(receiver); }, null); } function getPlatformDefaultModule() { return get_EmptySerializersModuleLegacyJs(); } function get_serialName(_this__u8e3s4) { var tmp0_safe_receiver = serializerOrNull(_this__u8e3s4); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.run' call // Inline function 'kotlin.contracts.contract' call // Inline function 'nl.adaptivity.xmlutil.serialization.impl..' call tmp = tmp0_safe_receiver.a45().a46(); } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? replace(get_name(_this__u8e3s4), _Char___init__impl__6a9atx(36), _Char___init__impl__6a9atx(46)) : tmp1_elvis_lhs; } //region block: post-declaration protoOf(DocumentCompositeDecoder).f49 = decodeSerializableElement$default; protoOf(DecodeCommons).nkz = delegateFormat; protoOf(DecodeCommons).r48 = decodeSerializableValue; protoOf(NullDecoder).f49 = decodeSerializableElement$default; protoOf(NullDecoder).h49 = decodeSequentially; protoOf(TagDecoderBase).f49 = decodeSerializableElement$default; protoOf(TagDecoderBase).h49 = decodeSequentially; protoOf(TagDecoderBase).j49 = decodeCollectionSize; protoOf(TagDecoderBase).nkz = delegateFormat; protoOf(AttributeMapDecoder).r48 = decodeSerializableValue; protoOf(XmlEncoder).n4a = beginCollection; protoOf(PrimitiveEncoder).m4a = encodeNotNullMark; protoOf(PrimitiveEncoder).n4a = beginCollection; protoOf(PrimitiveEncoder).okz = ensureNamespace; protoOf(DefaultXmlSerializationPolicy).slk = get_defaultPrimitiveOutputKind; protoOf(DefaultXmlSerializationPolicy).tlk = get_defaultObjectOutputKind; protoOf(DefaultXmlSerializationPolicy).ulk = defaultOutputKind; protoOf(DefaultXmlSerializationPolicy).vlk = invalidOutputKind; protoOf(DefaultXmlSerializationPolicy).kkz = serialTypeNameToQName; protoOf(DefaultXmlSerializationPolicy).cll = serialUseNameToQName; protoOf(DefaultXmlSerializationPolicy).fll = handleAttributeOrderConflict; protoOf(DefaultXmlSerializationPolicy).xl4 = enumEncoding; protoOf(DefaultXmlSerializationPolicy).rll = attributeListDelimiters; protoOf(NamespaceCollectingXmlWriter$namespaceContext$1).bkn = getPrefixes; protoOf(NamespaceCollectingXmlWriter).dkp = startDocument$default; protoOf(NamespaceCollectingXmlWriter).kkp = namespaceAttr; protoOf(NamespaceCollectingXmlWriter).tko = processingInstruction; protoOf(XmlDescriptor).l46 = get_isNullable; protoOf(XmlDescriptor).s46 = get_kind; protoOf(XmlDescriptor).flg = get_isCData; protoOf(XmlDescriptor).x46 = isElementOptional; protoOf(DetachedParent).ylm = copy$default; protoOf(ParentInfo).ylm = copy$default; protoOf(InjectedParentTag).ylm = copy$default; //endregion //region block: init Companion_instance_1 = new Companion_0(); UNSET_ANNOTATION_VALUE = 'ZXC\x01VBNBVCXZ'; Companion_instance_3 = new Companion_2(); UNSET_instance = new UNSET(); Companion_instance_5 = new Companion_4(); //endregion //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = XML_init_$Create$; _.$_$.b = Companion_getInstance_6; _.$_$.c = XmlInput; _.$_$.d = XML; _.$_$.e = XmlSerialName; _.$_$.f = XmlValue; //endregion return _; }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./xmlutil-core.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'))); //# sourceMappingURL=xmlutil-serialization.js.map