UNPKG

kaitai-struct-compiler

Version:
1,435 lines (1,434 loc) 6.5 MB
(function (root, factory) { if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof module === 'object' && module.exports) { module.exports = factory(); } else { root.KaitaiStructCompiler = factory(); } }(typeof self !== 'undefined' ? self : this, function () { let MainJs; (function(){ 'use strict'; var $linkingInfo = Object.freeze({ "esVersion": 6, "assumingES6": true, "productionMode": false, "linkerVersion": "1.13.1", "fileLevelThis": this }); var $getOwnPropertyDescriptors = (Object.getOwnPropertyDescriptors || (() => { var ownKeysFun; if ((((typeof Reflect) !== "undefined") && Reflect.ownKeys)) { ownKeysFun = Reflect.ownKeys } else { var getOwnPropertySymbols = (Object.getOwnPropertySymbols || ((o) => [])); ownKeysFun = ((o) => Object.getOwnPropertyNames(o).concat(getOwnPropertySymbols(o))) }; return ((o) => { var ownKeys = ownKeysFun(o); var descriptors = {}; var len = (ownKeys.length | 0); var i = 0; while ((i !== len)) { var key = ownKeys[i]; Object.defineProperty(descriptors, key, { "configurable": true, "enumerable": true, "writable": true, "value": Object.getOwnPropertyDescriptor(o, key) }); i = ((i + 1) | 0) }; return descriptors }) })()); var $L0; function $propertyName(arg0) { for (var prop in arg0) { return prop } } function $Char(c) { this.c = c } $Char.prototype.toString = (function() { return String.fromCharCode(this.c) }); function $valueDescription(arg0) { return (((typeof arg0) === "number") ? (((arg0 === 0) && ((1 / arg0) < 0)) ? "number(-0)" : (("number(" + arg0) + ")")) : ((arg0 instanceof $c_RTLong) ? "long" : ((arg0 instanceof $Char) ? "char" : ((!(!(arg0 && arg0.$classData))) ? arg0.$classData.name : (typeof arg0))))) } function $throwClassCastException(arg0, arg1) { throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError(new $c_jl_ClassCastException((($valueDescription(arg0) + " cannot be cast to ") + arg1))) } function $throwArrayCastException(arg0, arg1, arg2) { while ((--arg2)) { arg1 = ("[" + arg1) }; $throwClassCastException(arg0, arg1) } function $throwArrayIndexOutOfBoundsException(arg0) { throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError($ct_jl_ArrayIndexOutOfBoundsException__T__(new $c_jl_ArrayIndexOutOfBoundsException(), ((arg0 === null) ? null : ("" + arg0)))) } function $throwArrayStoreException(arg0) { throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError(new $c_jl_ArrayStoreException(((arg0 === null) ? null : $valueDescription(arg0)))) } function $throwNegativeArraySizeException() { throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError(new $c_jl_NegativeArraySizeException()) } function $throwNullPointerException() { throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError($ct_jl_NullPointerException__(new $c_jl_NullPointerException())) } function $n(arg0) { if ((arg0 === null)) { $throwNullPointerException() }; return arg0 } function $noIsInstance(arg0) { throw new TypeError("Cannot call isInstance() on a Class representing a JS trait/object") } function $newArrayObject(arg0, arg1) { return $newArrayObjectInternal(arg0, arg1, 0) } function $newArrayObjectInternal(arg0, arg1, arg2) { var result = new arg0.constr(arg1[arg2]); if ((arg2 < (arg1.length - 1))) { var subArrayClassData = arg0.componentData; var subLengthIndex = (arg2 + 1); var underlying = result.u; for (var i = 0; (i < underlying.length); (i++)) { underlying[i] = $newArrayObjectInternal(subArrayClassData, arg1, subLengthIndex) } }; return result } function $objectClone(arg0) { return Object.create(Object.getPrototypeOf(arg0), $getOwnPropertyDescriptors(arg0)) } function $objectOrArrayClone(arg0) { return (arg0.$classData.isArrayClass ? arg0.clone__O() : $objectClone(arg0)) } function $objectGetClass(arg0) { switch ((typeof arg0)) { case "string": { return $d_T.getClassOf() } case "number": { if ($isInt(arg0)) { if ((((arg0 << 24) >> 24) === arg0)) { return $d_jl_Byte.getClassOf() } else if ((((arg0 << 16) >> 16) === arg0)) { return $d_jl_Short.getClassOf() } else { return $d_jl_Integer.getClassOf() } } else if ($isFloat(arg0)) { return $d_jl_Float.getClassOf() } else { return $d_jl_Double.getClassOf() } } case "boolean": { return $d_jl_Boolean.getClassOf() } case "undefined": { return $d_jl_Void.getClassOf() } default: { if ((arg0 === null)) { $throwNullPointerException() } else if ((arg0 instanceof $c_RTLong)) { return $d_jl_Long.getClassOf() } else if ((arg0 instanceof $Char)) { return $d_jl_Character.getClassOf() } else if ((!(!(arg0 && arg0.$classData)))) { return arg0.$classData.getClassOf() } else { return null } } } } function $objectClassName(arg0) { switch ((typeof arg0)) { case "string": { return "java.lang.String" } case "number": { if ($isInt(arg0)) { if ((((arg0 << 24) >> 24) === arg0)) { return "java.lang.Byte" } else if ((((arg0 << 16) >> 16) === arg0)) { return "java.lang.Short" } else { return "java.lang.Integer" } } else if ($isFloat(arg0)) { return "java.lang.Float" } else { return "java.lang.Double" } } case "boolean": { return "java.lang.Boolean" } case "undefined": { return "java.lang.Void" } default: { if ((arg0 === null)) { $throwNullPointerException() } else if ((arg0 instanceof $c_RTLong)) { return "java.lang.Long" } else if ((arg0 instanceof $Char)) { return "java.lang.Character" } else if ((!(!(arg0 && arg0.$classData)))) { return arg0.$classData.name } else { return $throwNullPointerException() } } } } function $dp_charAt__I__C(instance, x0) { if (((typeof instance) === "string")) { return $f_T__charAt__I__C(instance, x0) } else { return instance.charAt__I__C(x0) } } function $dp_codePointAt__I__I(instance, x0) { if (((typeof instance) === "string")) { return $f_T__codePointAt__I__I(instance, x0) } else { return instance.codePointAt__I__I(x0) } } function $dp_compareTo__O__I(instance, x0) { switch ((typeof instance)) { case "string": { return $f_T__compareTo__O__I(instance, x0) } case "number": { return $f_jl_Double__compareTo__O__I(instance, x0) } case "boolean": { return $f_jl_Boolean__compareTo__O__I(instance, x0) } default: { if ((instance instanceof $c_RTLong)) { return $f_jl_Long__compareTo__O__I(instance, x0) } else if ((instance instanceof $Char)) { return $f_jl_Character__compareTo__O__I($uC(instance), x0) } else { return instance.compareTo__O__I(x0) } } } } function $dp_compareTo__T__I(instance, x0) { if (((typeof instance) === "string")) { return $f_T__compareTo__T__I(instance, x0) } else { return instance.compareTo__T__I(x0) } } function $dp_compareToIgnoreCase__T__I(instance, x0) { if (((typeof instance) === "string")) { return $f_T__compareToIgnoreCase__T__I(instance, x0) } else { return instance.compareToIgnoreCase__T__I(x0) } } function $dp_endsWith__T__Z(instance, x0) { if (((typeof instance) === "string")) { return $f_T__endsWith__T__Z(instance, x0) } else { return instance.endsWith__T__Z(x0) } } function $dp_equals__O__Z(instance, x0) { switch ((typeof instance)) { case "string": { return $f_T__equals__O__Z(instance, x0) } case "number": { return $f_jl_Double__equals__O__Z(instance, x0) } case "boolean": { return $f_jl_Boolean__equals__O__Z(instance, x0) } case "undefined": { return $f_jl_Void__equals__O__Z(instance, x0) } default: { if (((!(!(instance && instance.$classData))) || (instance === null))) { return instance.equals__O__Z(x0) } else if ((instance instanceof $c_RTLong)) { return $f_jl_Long__equals__O__Z(instance, x0) } else if ((instance instanceof $Char)) { return $f_jl_Character__equals__O__Z($uC(instance), x0) } else { return $c_O.prototype.equals__O__Z.call(instance, x0) } } } } function $dp_getBytes__Ljava_nio_charset_Charset__AB(instance, x0) { if (((typeof instance) === "string")) { return $f_T__getBytes__Ljava_nio_charset_Charset__AB(instance, x0) } else { return instance.getBytes__Ljava_nio_charset_Charset__AB(x0) } } function $dp_getChars__I__I__AC__I__V(instance, x0, x1, x2, x3) { if (((typeof instance) === "string")) { return $f_T__getChars__I__I__AC__I__V(instance, x0, x1, x2, x3) } else { return instance.getChars__I__I__AC__I__V(x0, x1, x2, x3) } } function $dp_hashCode__I(instance) { switch ((typeof instance)) { case "string": { return $f_T__hashCode__I(instance) } case "number": { return $f_jl_Double__hashCode__I(instance) } case "boolean": { return $f_jl_Boolean__hashCode__I(instance) } case "undefined": { return $f_jl_Void__hashCode__I(instance) } default: { if (((!(!(instance && instance.$classData))) || (instance === null))) { return instance.hashCode__I() } else if ((instance instanceof $c_RTLong)) { return $f_jl_Long__hashCode__I(instance) } else if ((instance instanceof $Char)) { return $f_jl_Character__hashCode__I($uC(instance)) } else { return $c_O.prototype.hashCode__I.call(instance) } } } } function $dp_indexOf__I__I(instance, x0) { if (((typeof instance) === "string")) { return $f_T__indexOf__I__I(instance, x0) } else { return instance.indexOf__I__I(x0) } } function $dp_lastIndexOf__I__I(instance, x0) { if (((typeof instance) === "string")) { return $f_T__lastIndexOf__I__I(instance, x0) } else { return instance.lastIndexOf__I__I(x0) } } function $dp_length__I(instance) { if (((typeof instance) === "string")) { return $f_T__length__I(instance) } else { return instance.length__I() } } function $dp_repeat__I__T(instance, x0) { if (((typeof instance) === "string")) { return $f_T__repeat__I__T(instance, x0) } else { return instance.repeat__I__T(x0) } } function $dp_replaceAll__T__T__T(instance, x0, x1) { if (((typeof instance) === "string")) { return $f_T__replaceAll__T__T__T(instance, x0, x1) } else { return instance.replaceAll__T__T__T(x0, x1) } } function $dp_split__T__I__AT(instance, x0, x1) { if (((typeof instance) === "string")) { return $f_T__split__T__I__AT(instance, x0, x1) } else { return instance.split__T__I__AT(x0, x1) } } function $dp_subSequence__I__I__jl_CharSequence(instance, x0, x1) { if (((typeof instance) === "string")) { return $f_T__subSequence__I__I__jl_CharSequence(instance, x0, x1) } else { return instance.subSequence__I__I__jl_CharSequence(x0, x1) } } function $dp_toCharArray__AC(instance) { if (((typeof instance) === "string")) { return $f_T__toCharArray__AC(instance) } else { return instance.toCharArray__AC() } } function $dp_toString__T(instance) { return ((instance === (void 0)) ? "undefined" : instance.toString()) } function $dp_trim__T(instance) { if (((typeof instance) === "string")) { return $f_T__trim__T(instance) } else { return instance.trim__T() } } function $intDiv(arg0, arg1) { if ((arg1 === 0)) { throw new $c_jl_ArithmeticException("/ by zero") } else { return ((arg0 / arg1) | 0) } } function $intMod(arg0, arg1) { if ((arg1 === 0)) { throw new $c_jl_ArithmeticException("/ by zero") } else { return ((arg0 % arg1) | 0) } } function $doubleToInt(arg0) { return ((arg0 > 2147483647) ? 2147483647 : ((arg0 < (-2147483648)) ? (-2147483648) : (arg0 | 0))) } function $charAt(arg0, arg1) { var r = arg0.charCodeAt(arg1); if ((r !== r)) { throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError($ct_jl_StringIndexOutOfBoundsException__I__(new $c_jl_StringIndexOutOfBoundsException(), arg1)) } else { return r } } function $resolveSuperRef(arg0, arg1) { var getPrototypeOf = Object.getPrototyeOf; var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var superProto = arg0.prototype; while ((superProto !== null)) { var desc = getOwnPropertyDescriptor(superProto, arg1); if ((desc !== (void 0))) { return desc }; superProto = getPrototypeOf(superProto) } } function $superGet(arg0, arg1, arg2) { var desc = $resolveSuperRef(arg0, arg2); if ((desc !== (void 0))) { var getter = desc.get; return ((getter !== (void 0)) ? getter.call(arg1) : getter.value) } } function $superSet(arg0, arg1, arg2, arg3) { var desc = $resolveSuperRef(arg0, arg2); if ((desc !== (void 0))) { var setter = desc.set; if ((setter !== (void 0))) { setter.call(arg1, arg3); return (void 0) } }; throw new TypeError((("super has no setter '" + arg2) + "'.")) } function $arraycopyCheckBounds(arg0, arg1, arg2, arg3, arg4) { if ((((((arg1 < 0) || (arg3 < 0)) || (arg4 < 0)) || (arg1 > ((arg0 - arg4) | 0))) || (arg3 > ((arg2 - arg4) | 0)))) { $throwArrayIndexOutOfBoundsException(null) } } function $arraycopyGeneric(arg0, arg1, arg2, arg3, arg4) { $arraycopyCheckBounds(arg0.length, arg1, arg2.length, arg3, arg4); if ((((arg0 !== arg2) || (arg3 < arg1)) || (((arg1 + arg4) | 0) < arg3))) { for (var i = 0; (i < arg4); i = ((i + 1) | 0)) { arg2[((arg3 + i) | 0)] = arg0[((arg1 + i) | 0)] } } else { for (var i = ((arg4 - 1) | 0); (i >= 0); i = ((i - 1) | 0)) { arg2[((arg3 + i) | 0)] = arg0[((arg1 + i) | 0)] } } } function $systemArraycopy(arg0, arg1, arg2, arg3, arg4) { arg0.copyTo(arg1, arg2, arg3, arg4) } function $systemArraycopyRefs(arg0, arg1, arg2, arg3, arg4) { if (arg2.$classData.isAssignableFrom(arg0.$classData)) { $arraycopyGeneric(arg0.u, arg1, arg2.u, arg3, arg4) } else { var srcArray = arg0.u; $arraycopyCheckBounds(srcArray.length, arg1, arg2.u.length, arg3, arg4); for (var i = 0; (i < arg4); i = ((i + 1) | 0)) { arg2.set(((arg3 + i) | 0), srcArray[((arg1 + i) | 0)]) } } } function $systemArraycopyFull(arg0, arg1, arg2, arg3, arg4) { var srcData = (arg0 && arg0.$classData); if ((srcData === (arg2 && arg2.$classData))) { if ((srcData && srcData.isArrayClass)) { $systemArraycopy(arg0, arg1, arg2, arg3, arg4) } else { $throwArrayStoreException(null) } } else if (((arg0 instanceof $ac_O) && (arg2 instanceof $ac_O))) { $systemArraycopyRefs(arg0, arg1, arg2, arg3, arg4) } else { $throwArrayStoreException(null) } } var $lastIDHash = 0; var $idHashCodeMap = new WeakMap(); function $systemIdentityHashCode(obj) { switch ((typeof obj)) { case "string": { return $f_T__hashCode__I(obj) } case "number": { return $f_jl_Double__hashCode__I(obj) } case "bigint": { var biHash = 0; if ((obj < BigInt(0))) { obj = (~obj) }; while ((obj !== BigInt(0))) { biHash = (biHash ^ Number(BigInt.asIntN(32, obj))); obj = (obj >> BigInt(32)) }; return biHash } case "boolean": { return (obj ? 1231 : 1237) } case "undefined": { return 0 } case "symbol": { var description = obj.description; return ((description === (void 0)) ? 0 : $f_T__hashCode__I(description)) } default: { if ((obj === null)) { return 0 } else { var hash = $idHashCodeMap.get(obj); if ((hash === (void 0))) { hash = (($lastIDHash + 1) | 0); $lastIDHash = hash; $idHashCodeMap.set(obj, hash) }; return hash } } } } function $isByte(arg0) { return ((((typeof arg0) === "number") && (((arg0 << 24) >> 24) === arg0)) && ((1 / arg0) !== (1 / (-0)))) } function $isShort(arg0) { return ((((typeof arg0) === "number") && (((arg0 << 16) >> 16) === arg0)) && ((1 / arg0) !== (1 / (-0)))) } function $isInt(arg0) { return ((((typeof arg0) === "number") && ((arg0 | 0) === arg0)) && ((1 / arg0) !== (1 / (-0)))) } function $isFloat(arg0) { return (((typeof arg0) === "number") && ((arg0 !== arg0) || (Math.fround(arg0) === arg0))) } function $bC(arg0) { return new $Char(arg0) } var $bC0 = $bC(0); function $uV(arg0) { return (((arg0 === (void 0)) || (arg0 === null)) ? (void 0) : $throwClassCastException(arg0, "java.lang.Void")) } function $uZ(arg0) { return ((((typeof arg0) === "boolean") || (arg0 === null)) ? (!(!arg0)) : $throwClassCastException(arg0, "java.lang.Boolean")) } function $uC(arg0) { return (((arg0 instanceof $Char) || (arg0 === null)) ? ((arg0 === null) ? 0 : arg0.c) : $throwClassCastException(arg0, "java.lang.Character")) } function $uB(arg0) { return (($isByte(arg0) || (arg0 === null)) ? (arg0 | 0) : $throwClassCastException(arg0, "java.lang.Byte")) } function $uS(arg0) { return (($isShort(arg0) || (arg0 === null)) ? (arg0 | 0) : $throwClassCastException(arg0, "java.lang.Short")) } function $uI(arg0) { return (($isInt(arg0) || (arg0 === null)) ? (arg0 | 0) : $throwClassCastException(arg0, "java.lang.Integer")) } function $uJ(arg0) { return (((arg0 instanceof $c_RTLong) || (arg0 === null)) ? ((arg0 === null) ? $L0 : arg0) : $throwClassCastException(arg0, "java.lang.Long")) } function $uF(arg0) { return (($isFloat(arg0) || (arg0 === null)) ? (+arg0) : $throwClassCastException(arg0, "java.lang.Float")) } function $uD(arg0) { return ((((typeof arg0) === "number") || (arg0 === null)) ? (+arg0) : $throwClassCastException(arg0, "java.lang.Double")) } function $uT(arg0) { return ((((typeof arg0) === "string") || (arg0 === null)) ? ((arg0 === null) ? "" : arg0) : $throwClassCastException(arg0, "java.lang.String")) } function $ct_O__($thiz) { return $thiz } /** @constructor */ function $c_O() { /*<skip>*/ } $c_O.prototype.constructor = $c_O; /** @constructor */ function $h_O() { /*<skip>*/ } $h_O.prototype = $c_O.prototype; $c_O.prototype.hashCode__I = (function() { return $systemIdentityHashCode(this) }); $c_O.prototype.equals__O__Z = (function(that) { return (this === that) }); $c_O.prototype.toString__T = (function() { var i = this.hashCode__I(); return (($objectClassName(this) + "@") + $as_T($uD((i >>> 0.0)).toString(16))) }); $c_O.prototype.toString = (function() { return this.toString__T() }); function $ac_O(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Array(arg); for (var i = 0; (i < arg); (i++)) { this.u[i] = null } } else { this.u = arg } } $ac_O.prototype = new $h_O(); $ac_O.prototype.constructor = $ac_O; $ac_O.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_O.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_O.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyGeneric(this.u, srcPos, dest.u, destPos, length) }); $ac_O.prototype.clone__O = (function() { return new $ac_O(this.u.slice()) }); function $ah_O() { /*<skip>*/ } $ah_O.prototype = $ac_O.prototype; function $ac_Z(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Array(arg); for (var i = 0; (i < arg); (i++)) { this.u[i] = false } } else { this.u = arg } } $ac_Z.prototype = new $h_O(); $ac_Z.prototype.constructor = $ac_Z; $ac_Z.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_Z.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_Z.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyGeneric(this.u, srcPos, dest.u, destPos, length) }); $ac_Z.prototype.clone__O = (function() { return new $ac_Z(this.u.slice()) }); function $ac_C(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Uint16Array(arg) } else { this.u = arg } } $ac_C.prototype = new $h_O(); $ac_C.prototype.constructor = $ac_C; $ac_C.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_C.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_C.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length); dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos) }); $ac_C.prototype.clone__O = (function() { return new $ac_C(this.u.slice()) }); function $ac_B(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Int8Array(arg) } else { this.u = arg } } $ac_B.prototype = new $h_O(); $ac_B.prototype.constructor = $ac_B; $ac_B.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_B.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_B.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length); dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos) }); $ac_B.prototype.clone__O = (function() { return new $ac_B(this.u.slice()) }); function $ac_S(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Int16Array(arg) } else { this.u = arg } } $ac_S.prototype = new $h_O(); $ac_S.prototype.constructor = $ac_S; $ac_S.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_S.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_S.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length); dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos) }); $ac_S.prototype.clone__O = (function() { return new $ac_S(this.u.slice()) }); function $ac_I(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Int32Array(arg) } else { this.u = arg } } $ac_I.prototype = new $h_O(); $ac_I.prototype.constructor = $ac_I; $ac_I.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_I.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_I.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length); dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos) }); $ac_I.prototype.clone__O = (function() { return new $ac_I(this.u.slice()) }); function $ac_J(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Array(arg); for (var i = 0; (i < arg); (i++)) { this.u[i] = $L0 } } else { this.u = arg } } $ac_J.prototype = new $h_O(); $ac_J.prototype.constructor = $ac_J; $ac_J.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_J.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_J.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyGeneric(this.u, srcPos, dest.u, destPos, length) }); $ac_J.prototype.clone__O = (function() { return new $ac_J(this.u.slice()) }); function $ac_F(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Float32Array(arg) } else { this.u = arg } } $ac_F.prototype = new $h_O(); $ac_F.prototype.constructor = $ac_F; $ac_F.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_F.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_F.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length); dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos) }); $ac_F.prototype.clone__O = (function() { return new $ac_F(this.u.slice()) }); function $ac_D(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Float64Array(arg) } else { this.u = arg } } $ac_D.prototype = new $h_O(); $ac_D.prototype.constructor = $ac_D; $ac_D.prototype.get = (function(i) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; return this.u[i] }); $ac_D.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; this.u[i] = v }); $ac_D.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length); dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos) }); $ac_D.prototype.clone__O = (function() { return new $ac_D(this.u.slice()) }); function $TypeData() { this.constr = (void 0); this.ancestors = null; this.componentData = null; this.arrayBase = null; this.arrayDepth = 0; this.zero = null; this.arrayEncodedName = ""; this._classOf = (void 0); this._arrayOf = (void 0); this.isAssignableFromFun = (void 0); this.wrapArray = (void 0); this.isJSType = false; this.name = ""; this.isPrimitive = false; this.isInterface = false; this.isArrayClass = false; this.isInstance = (void 0) } $TypeData.prototype.initPrim = (function(zero, arrayEncodedName, displayName, arrayClass, typedArrayClass) { this.ancestors = {}; this.zero = zero; this.arrayEncodedName = arrayEncodedName; var self = this; this.isAssignableFromFun = ((that) => (that === self)); this.name = displayName; this.isPrimitive = true; this.isInstance = ((obj) => false); if ((arrayClass !== (void 0))) { this._arrayOf = new $TypeData().initSpecializedArray(this, arrayClass, typedArrayClass) }; return this }); $TypeData.prototype.initClass = (function(internalNameObj, isInterface, fullName, ancestors, isJSType, parentData, isInstance) { var internalName = $propertyName(internalNameObj); this.ancestors = ancestors; this.arrayEncodedName = (("L" + fullName) + ";"); this.isAssignableFromFun = ((that) => (!(!that.ancestors[internalName]))); this.isJSType = (!(!isJSType)); this.name = fullName; this.isInterface = isInterface; this.isInstance = (isInstance || ((obj) => (!(!((obj && obj.$classData) && obj.$classData.ancestors[internalName]))))); return this }); $TypeData.prototype.initSpecializedArray = (function(componentData, arrayClass, typedArrayClass, isAssignableFromFun) { arrayClass.prototype.$classData = this; var name = ("[" + componentData.arrayEncodedName); this.constr = arrayClass; this.ancestors = { O: 1, jl_Cloneable: 1, Ljava_io_Serializable: 1 }; this.componentData = componentData; this.arrayBase = componentData; this.arrayDepth = 1; this.arrayEncodedName = name; this.name = name; this.isArrayClass = true; var self = this; this.isAssignableFromFun = (isAssignableFromFun || ((that) => (self === that))); this.wrapArray = (typedArrayClass ? ((array) => new arrayClass(new typedArrayClass(array))) : ((array) => new arrayClass(array))); this.isInstance = ((obj) => (obj instanceof arrayClass)); return this }); $TypeData.prototype.initArray = (function(componentData) { function ArrayClass(arg) { if (((typeof arg) === "number")) { if ((arg < 0)) { $throwNegativeArraySizeException() }; this.u = new Array(arg); for (var i = 0; (i < arg); (i++)) { this.u[i] = null } } else { this.u = arg } } ArrayClass.prototype = new $ah_O(); ArrayClass.prototype.constructor = ArrayClass; ArrayClass.prototype.set = (function(i, v) { if (((i < 0) || (i >= this.u.length))) { $throwArrayIndexOutOfBoundsException(i) }; if ((((v !== null) && (!componentData.isJSType)) && (!componentData.isInstance(v)))) { $throwArrayStoreException(v) }; this.u[i] = v }); ArrayClass.prototype.copyTo = (function(srcPos, dest, destPos, length) { $arraycopyGeneric(this.u, srcPos, dest.u, destPos, length) }); ArrayClass.prototype.clone__O = (function() { return new ArrayClass(this.u.slice()) }); var arrayBase = (componentData.arrayBase || componentData); var arrayDepth = (componentData.arrayDepth + 1); ArrayClass.prototype.$classData = this; var name = ("[" + componentData.arrayEncodedName); this.constr = ArrayClass; this.ancestors = { O: 1, jl_Cloneable: 1, Ljava_io_Serializable: 1 }; this.componentData = componentData; this.arrayBase = arrayBase; this.arrayDepth = arrayDepth; this.arrayEncodedName = name; this.name = name; this.isArrayClass = true; var isAssignableFromFun = ((that) => { var thatDepth = that.arrayDepth; return ((thatDepth === arrayDepth) ? arrayBase.isAssignableFromFun(that.arrayBase) : ((thatDepth > arrayDepth) && (arrayBase === $d_O))) }); this.isAssignableFromFun = isAssignableFromFun; this.wrapArray = ((array) => new ArrayClass(array)); var self = this; this.isInstance = ((obj) => { var data = (obj && obj.$classData); return ((!(!data)) && ((data === self) || isAssignableFromFun(data))) }); return this }); $TypeData.prototype.getArrayOf = (function() { if ((!this._arrayOf)) { this._arrayOf = new $TypeData().initArray(this) }; return this._arrayOf }); $TypeData.prototype.getClassOf = (function() { if ((!this._classOf)) { this._classOf = new $c_jl_Class(this) }; return this._classOf }); $TypeData.prototype.isAssignableFrom = (function(that) { return ((this === that) || this.isAssignableFromFun(that)) }); $TypeData.prototype.checkCast = (function(obj) { if ((((obj !== null) && (!this.isJSType)) && (!this.isInstance(obj)))) { $throwClassCastException(obj, this.name) } }); $TypeData.prototype.getSuperclass = (function() { return (this.parentData ? this.parentData.getClassOf() : null) }); $TypeData.prototype.getComponentType = (function() { return (this.componentData ? this.componentData.getClassOf() : null) }); $TypeData.prototype.newArrayOfThisClass = (function(lengths) { var arrayClassData = this; for (var i = 0; (i < lengths.length); (i++)) { arrayClassData = arrayClassData.getArrayOf() }; return $newArrayObject(arrayClassData, lengths) }); function $isArrayOf_O(obj, depth) { var data = (obj && obj.$classData); if ((!data)) { return false } else { var arrayDepth = data.arrayDepth; return ((arrayDepth === depth) ? (!data.arrayBase.isPrimitive) : (arrayDepth > depth)) } } function $isArrayOf_Z(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_Z)))) } function $isArrayOf_C(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_C)))) } function $isArrayOf_B(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_B)))) } function $isArrayOf_S(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_S)))) } function $isArrayOf_I(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_I)))) } function $isArrayOf_J(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_J)))) } function $isArrayOf_F(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_F)))) } function $isArrayOf_D(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_D)))) } function $asArrayOf_O(obj, depth) { if (($isArrayOf_O(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "Ljava.lang.Object;", depth) } } function $asArrayOf_Z(obj, depth) { if (($isArrayOf_Z(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "Z", depth) } } function $asArrayOf_C(obj, depth) { if (($isArrayOf_C(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "C", depth) } } function $asArrayOf_B(obj, depth) { if (($isArrayOf_B(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "B", depth) } } function $asArrayOf_S(obj, depth) { if (($isArrayOf_S(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "S", depth) } } function $asArrayOf_I(obj, depth) { if (($isArrayOf_I(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "I", depth) } } function $asArrayOf_J(obj, depth) { if (($isArrayOf_J(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "J", depth) } } function $asArrayOf_F(obj, depth) { if (($isArrayOf_F(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "F", depth) } } function $asArrayOf_D(obj, depth) { if (($isArrayOf_D(obj, depth) || (obj === null))) { return obj } else { $throwArrayCastException(obj, "D", depth) } } var $d_O = new $TypeData(); $d_O.ancestors = { O: 1 }; $d_O.arrayEncodedName = "Ljava.lang.Object;"; $d_O.isAssignableFromFun = ((that) => (!that.isPrimitive)); $d_O.name = "java.lang.Object"; $d_O.isInstance = ((obj) => (obj !== null)); $d_O._arrayOf = new $TypeData().initSpecializedArray($d_O, $ac_O, (void 0), ((that) => { var thatDepth = that.arrayDepth; return ((thatDepth === 1) ? (!that.arrayBase.isPrimitive) : (thatDepth > 1)) })); $c_O.prototype.$classData = $d_O; var $d_V = new $TypeData().initPrim((void 0), "V", "void", (void 0), (void 0)); var $d_Z = new $TypeData().initPrim(false, "Z", "boolean", $ac_Z, (void 0)); var $d_C = new $TypeData().initPrim(0, "C", "char", $ac_C, Uint16Array); var $d_B = new $TypeData().initPrim(0, "B", "byte", $ac_B, Int8Array); var $d_S = new $TypeData().initPrim(0, "S", "short", $ac_S, Int16Array); var $d_I = new $TypeData().initPrim(0, "I", "int", $ac_I, Int32Array); var $d_J = new $TypeData().initPrim(null, "J", "long", $ac_J, (void 0)); var $d_F = new $TypeData().initPrim(0.0, "F", "float", $ac_F, Float32Array); var $d_D = new $TypeData().initPrim(0.0, "D", "double", $ac_D, Float64Array); function $is_Lfastparse_Implicits$Sequencer(obj) { return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lfastparse_Implicits$Sequencer))) } function $as_Lfastparse_Implicits$Sequencer(obj) { return (($is_Lfastparse_Implicits$Sequencer(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "fastparse.Implicits$Sequencer")) } function $isArrayOf_Lfastparse_Implicits$Sequencer(obj, depth) { return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lfastparse_Implicits$Sequencer))) } function $asArrayOf_Lfastparse_Implicits$Sequencer(obj, depth) { return (($isArrayOf_Lfastparse_Implicits$Sequencer(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lfastparse.Implicits$Sequencer;", depth)) } function $f_Lfastparse_LowestPriSequencer__Sequencer1__O($thiz) { var f = new $c_sjsr_AnonFunction2(((x0$1$2, x1$1$2) => $ct_T2__O__O__(new $c_T2(), x0$1$2, x1$1$2))); return new $c_Lfastparse_Implicits$Sequencer$NarySequencer(f) } function $ct_Lfastparse_Parsed__Z__($thiz, isSuccess) { return $thiz } /** @constructor */ function $c_Lfastparse_Parsed() { /*<skip>*/ } $c_Lfastparse_Parsed.prototype = new $h_O(); $c_Lfastparse_Parsed.prototype.constructor = $c_Lfastparse_Parsed; /** @constructor */ function $h_Lfastparse_Parsed() { /*<skip>*/ } $h_Lfastparse_Parsed.prototype = $c_Lfastparse_Parsed.prototype; /** @constructor */ function $c_Lfastparse_Parsed$() { /*<skip>*/ } $c_Lfastparse_Parsed$.prototype = new $h_O(); $c_Lfastparse_Parsed$.prototype.constructor = $c_Lfastparse_Parsed$; /** @constructor */ function $h_Lfastparse_Parsed$() { /*<skip>*/ } $h_Lfastparse_Parsed$.prototype = $c_Lfastparse_Parsed$.prototype; $c_Lfastparse_Parsed$.prototype.fromParsingRun__Lfastparse_ParsingRun__Lfastparse_Parsed = (function(p) { if ($n(p).Lfastparse_ParsingRun__f_isSuccess) { return new $c_Lfastparse_Parsed$Success($n(p).Lfastparse_ParsingRun__f_successValue, $n(p).Lfastparse_ParsingRun__f_index) } else { var this$1 = $n($m_s_Option$().apply__O__s_Option($n(p).Lfastparse_ParsingRun__f_lastFailureMsg)); if (this$1.isEmpty__Z()) { var $$x1 = "" } else { var arg1 = this$1.get__O(); var x$1 = $as_Lfastparse_internal_Msgs(arg1); var this$2 = $n(x$1); var $$x1 = $m_Lfastparse_internal_Util$().parenthize__sci_Seq__T(this$2.Lfastparse_internal_Msgs__f_value) }; var label = $as_T($$x1); var index = $n(p).Lfastparse_ParsingRun__f_index; var extra = new $c_Lfastparse_Parsed$Extra($n(p).Lfastparse_ParsingRun__f_input, $n(p).Lfastparse_ParsingRun__f_startIndex, $n(p).Lfastparse_ParsingRun__f_index, $n(p).Lfastparse_ParsingRun__f_originalParser, $n(p).Lfastparse_ParsingRun__f_failureStack); return new $c_Lfastparse_Parsed$Failure(label, index, extra) } }); var $d_Lfastparse_Parsed$ = new $TypeData().initClass({ Lfastparse_Parsed$: 0 }, false, "fastparse.Parsed$", { Lfastparse_Parsed$: 1, O: 1 }); $c_Lfastparse_Parsed$.prototype.$classData = $d_Lfastparse_Parsed$; var $n_Lfastparse_Parsed$; function $m_Lfastparse_Parsed$() { if ((!$n_Lfastparse_Parsed$)) { $n_Lfastparse_Parsed$ = new $c_Lfastparse_Parsed$() }; return $n_Lfastparse_Parsed$ } /** @constructor */ function $c_Lfastparse_Parsed$Extra(input, startIndex, index, originalParser, stack) { this.Lfastparse_Parsed$Extra__f_input = null; this.Lfastparse_Parsed$Extra__f_startIndex = 0; this.Lfastparse_Parsed$Extra__f_index = 0; this.Lfastparse_Parsed$Extra__f_originalParser = null; this.Lfastparse_Parsed$Extra__f_input = input; this.Lfastparse_Parsed$Extra__f_startIndex = startIndex; this.Lfastparse_Parsed$Extra__f_index = index; this.Lfastparse_Parsed$Extra__f_originalParser = originalParser } $c_Lfastparse_Parsed$Extra.prototype = new $h_O(); $c_Lfastparse_Parsed$Extra.prototype.constructor = $c_Lfastparse_Parsed$Extra; /** @constructor */ function $h_Lfastparse_Parsed$Extra() { /*<skip>*/ } $h_Lfastparse_Parsed$Extra.prototype = $c_Lfastparse_Parsed$Extra.prototype; $c_Lfastparse_Parsed$Extra.prototype.trace__Z__Lfastparse_Parsed$TracedFailure = (function(enableLogging) { $n(this.Lfastparse_Parsed$Extra__f_input); var $$x1 = $m_Lfastparse_Parsed$TracedFailure$(); var x$1 = this.Lfastparse_Parsed$Extra__f_input; var x$2 = this.Lfastparse_Parsed$Extra__f_originalParser; var x$3 = this.Lfastparse_Parsed$Extra__f_startIndex; var x$4 = this.Lfastparse_Parsed$Extra__f_index; $m_Lfastparse_package$(); var x$7 = null; return $n($$x1).fromParsingRun__Lfastparse_ParsingRun__Lfastparse_Parsed$TracedFailure($m_Lfastparse_package$().parseInputRaw__Lfastparse_ParserInput__F1__Z__I__I__Lfastparse_internal_Instrument__Z__Lfastparse_ParsingRun(x$1, x$2, true, x$3, x$4, x$7, enableLogging)) }); var $d_Lfastparse_Parsed$Extra = new $TypeData().initClass({ Lfastparse_Parsed$Extra: 0 }, false, "fastparse.Parsed$Extra", { Lfastparse_Parsed$Extra: 1, O: 1 }); $c_Lfastparse_Parsed$Extra.prototype.$classData = $d_Lfastparse_Parsed$Extra; /** @constructor */ function $c_Lfastparse_Parsed$Failure$() { /*<skip>*/ } $c_Lfastparse_Parsed$Failure$.prototype = new $h_O(); $c_Lfastparse_Parsed$Failure$.prototype.constructor = $c_Lfastparse_Parsed$Failure$; /** @constructor */ function $h_Lfastparse_Parsed$Failure$() { /*<skip>*/ } $h_Lfastparse_Parsed$Failure$.prototype = $c_Lfastparse_Parsed$Failure$.prototype; $c_Lfastparse_Parsed$Failure$.prototype.formatMsg__Lfastparse_ParserInput__sci_List__I__T = (function(input, stack, index) { return ((("Expected " + $m_Lfastparse_Parsed$Failure$().formatStack__Lfastparse_ParserInput__sci_List__T(input, stack)) + ", found ") + $m_Lfastparse_Parsed$Failure$().formatTrailing__Lfastparse_ParserInput__I__T(input, index)) }); $c_Lfastparse_Parsed$Failure$.prototype.formatStack__Lfastparse_ParserInput__sci_List__T = (function(input, stack) { var this$2 = $n(stack); var f = ((x0$1$2) => { var x0$1 = $as_T2(x0$1$2); if ((x0$1 !== null)) { var s = $as_T($n(x0$1)._1__O()); var i = $n(x0$1)._2$mcI$sp__I(); return ((s + ":") + $n(input).prettyIndex__I__T(i)) } else { throw new $c_s_MatchError(x0$1) } }); if ((this$2 === $m_sci_Nil$())) { var $$x1 = $m_sci_Nil$() } else { var arg1 = this$2.head__O(); var h = new $c_sci_$colon$colon(f(arg1), $m_sci_Nil$()); var t = h; var rest = $as_sci_List(this$2.tail__O()); while ((rest !== $m_sci_Nil$())) { var arg1$1 = $n(rest).head__O(); var nx = new $c_sci_$colon$colon(f(arg1$1), $m_sci_Nil$()); $n(t).sci_$colon$colon__f_next = nx; t = nx; rest = $as_sci_List($n(rest).tail__O()) }; var $$x1 = h }; var this$3 = $n($$x1); return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$3, "", " / ", "") }); $c_Lfastparse_Parsed$Failure$.prototype.formatTrailing__Lfastparse_ParserInput__I__T = (function(input, index) { return $m_Lfastparse_internal_Util$().literalize__sci_IndexedSeq__Z__T($m_s_Predef$().wrapString__T__sci_WrappedString($n(input).slice__I__I__T(index, ((10 + index) | 0))), false) }); var $d_Lfastparse_Parsed$Failure$ = new $TypeData().initClass({ Lfastparse_Parsed$Failure$: 0 }, false, "fastparse.Parsed$Failure$", { Lfastparse_Parsed$Failure$: 1, O: 1 }); $c_Lfastparse_Parsed$Failure$.prototype.$classData = $d_Lfastparse_Parsed$Failure$; var $n_Lfastparse_Parsed$Failure$; function $m_Lfastparse_Parsed$Failure$() { if ((!$n_Lfastparse_Parsed$Failure$)) { $n_Lfastparse_Parsed$Failure$ = new $c_Lfastparse_Parsed$Failure$() }; return $n_Lfastparse_Parsed$Failure$ } /** @constructor */ function $c_Lfastparse_ParsingRun(input, startIndex, originalParser, traceIndex, instrument, failureTerminalAggregate, failureGroupAggregate, shortParserMsg, lastFailureMsg, failureStack, isSuccess, logDepth, index, cut, successValue, verboseFailures, noDropBuffer, misc) { this.Lfastparse_ParsingRun__f_input = null; this.Lfastparse_ParsingRun__f_startIndex = 0; this.Lfastparse_ParsingRun__f_originalParser = null; this.Lfastparse_ParsingRun__f_traceIndex = 0; this.Lfastparse_ParsingRun__f_instrument = null; this.Lfastparse_ParsingRun__f_failureTerminalAggregate = null; this.Lfastparse_ParsingRun__f_failureGroupAggregate = null; this.Lfastparse_ParsingRun__f_shortParserMsg = null; this.Lfastparse_ParsingRun__f_lastFailureMsg = null; this.Lfastparse_ParsingRun__f_failureStack = null; this.Lfastparse_ParsingRun__f_isSuccess = false; this.Lfastparse_ParsingRun__f_index = 0; this.Lfastparse_ParsingRun__f_cut = false; this.Lfastparse_ParsingRun__f_successValue = null; this.Lfastparse_ParsingRun__f_verboseFailures = false; this.Lfastparse_ParsingRun__f_noDropBuffer = false; this.Lfastparse_ParsingRun__f_input = input; this.Lfastparse_ParsingRun__f_startIndex = startIndex; this.Lfastparse_ParsingRun__f_originalParser = originalParser; this.Lfastparse_ParsingRun__f_traceIndex = traceIndex; this.Lfastparse_ParsingRun__f_instrument = instrument; this.Lfastparse_ParsingRun__f_failureTerminalAggregate = failureTerminalAggregate; this.Lfastparse_ParsingRun__f_failureGroupAggregate = failureGroupAggregate; this.Lfastparse_ParsingRun__f_shortParserMsg = shortParserMsg; this.Lfastparse_ParsingRun__f_lastFailureMsg = lastFailureMsg; this.Lfastparse_ParsingRun__f_failureStack = failureStack; this.Lfastparse_ParsingRun__f_isSuccess = isSuccess; this.Lfastparse_ParsingRun__f_index = index; this.Lfastparse_ParsingRun__f_cut = cut; this.Lfastparse_ParsingRun__f_successValue = successValue; this.Lfastparse_ParsingRun__f_verboseFailures = verboseFailures; this.Lfastparse_ParsingRun__f_noDropBuffer = noDropBuffer } $c_Lfastparse_ParsingRun.prototype = new $h_O(); $c_Lfastparse_ParsingRun.prototype.constructor = $c_Lfastparse_ParsingRun; /** @constructor */ function $h_Lfastparse_ParsingRun() { /*<skip>*/ } $h_Lfastparse_ParsingRun.prototype = $c_Lfastparse_ParsingRun.prototype; $c_Lfastparse_ParsingRun.prototype.aggregateMsg__I__F0__Lfastparse_internal_Msgs__V = (function(startIndex, msgToSet, msgToAggregate) { $n($m_s_package$().s_package$__f_List); var array = [new $c_Lfastparse_internal_Lazy(msgToSet)]; var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); var msgToSet$1 = new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)); this.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V(startIndex, msgToSet$1, msgToAggregate, false) }); $c_Lfastparse_ParsingRun.prototype.aggregateMsg__I__Lfastparse_internal_Msgs__Lfastparse_internal_Msgs__Z__V = (function(startIndex, msgToSet, msgToAggregate, forceAggregate) { if (((!this.Lfastparse_ParsingRun__f_isSuccess) && (this.Lfastparse_ParsingRun__f_lastFailureMsg === null))) { this.Lfastparse_ParsingRun__f_lastFailureMsg = msgToSet }; this.Lfastparse_ParsingRun__f_shortParserMsg = msgToSet; if ((this.checkAggregate__I__Z(startIndex) && (!forceAggregate))) { this.Lfastparse_ParsingRun__f_failureGroupAggregate = msgToSet } else { this.Lfastparse_ParsingRun__f_failureGroupAggregate = msgToAggregate } }); $c_Lfastparse_ParsingRun.prototype.aggregateTerminal__I__F0__V = (function(startIndex, f) { var f2 = new $c_Lfastparse_internal_Lazy(f); if ((!this.Lfastparse_ParsingRun__f_isSuccess)) { if ((this.Lfastparse_ParsingRun__f_index === this.Lfastparse_ParsingRun__f_traceIndex)) { this.Lfastparse_ParsingRun__f_failureTerminalAggregate = $n(this.Lfastparse_ParsingRun__f_failureTerminalAggregate).$colon$colon__Lfastparse_internal_Lazy__Lfastparse_internal_Msgs(f2) }; if ((this.Lfastparse_ParsingRun__f_lastFailureMsg === null)) { $n($m_s_package$().s_package$__f_List); var array = [f2]; var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); this.Lfastparse_ParsingRun__f_lastFailureMsg = new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems)) } }; if ((startIndex >= this.Lfastparse_ParsingRun__f_traceIndex)) { $n($m_s_package$().s_package$__f_List); var array$1 = [f2]; var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1); var $$x1 = new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)) } else { var $$x1 = $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty }; this.Lfastparse_ParsingRun__f_shortParserMsg = $$x1; this.Lfastparse_ParsingRun__f_failureGroupAggregate = (this.checkAggregate__I__Z(startIndex) ? this.Lfastparse_ParsingRun__f_shortParserMsg : $m_Lfastparse_internal_Msgs$().Lfastparse_internal_Msgs$__f_empty) }); $c_Lfastparse_ParsingRun.prototype.setMsg__I__F0__V = (function(startIndex, f) { $n($m_s_package$().s_package$__f_List); var array = [new $c_Lfastparse_internal_Lazy(f)]; var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array); this.setMsg__I__Lfastparse_internal_Msgs__V(startIndex, new $c_Lfastparse_internal_Msgs($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems))) }); $c_Lfastparse_ParsingRun.prototype.setMsg__I__Lfastparse_internal_Msgs__V = (function(startIndex, f) { if (((!this.Lfastparse_ParsingRun__f_isSuccess) && (this.Lfastparse_ParsingRun__f_lastFailureMsg === null))) { this.Lfastparse_ParsingRun__f_lastFailureMsg = f }; this.Lfastparse_ParsingRun__f_shortParserMsg = ((startIndex >= this.Lfastparse_ParsingRun__f_traceIndex) ? f