UNPKG

jointjs

Version:

JavaScript diagramming library

1,506 lines (1,378 loc) 4.33 MB
// -------------- FAKE ELEMENTS GWT ASSUMES EXIST -------------- var $wnd; if (typeof window !== 'undefined') $wnd = window else if (typeof global !== 'undefined') $wnd = global // nodejs else if (typeof self !== 'undefined') $wnd = self // web worker var $moduleName, $moduleBase; // -------------- GENERATED CODE -------------- var $intern_0 = 2147483647, $intern_1 = {3:1, 4:1, 5:1}, $intern_2 = {3:1, 6:1, 4:1, 9:1, 5:1}, $intern_3 = {128:1, 279:1, 3:1, 32:1, 19:1, 46:1}, $intern_4 = {81:1}, $intern_5 = {3:1, 81:1}, $intern_6 = {50:1}, $intern_7 = {39:1}, $intern_8 = {21:1, 15:1}, $intern_9 = {21:1, 15:1, 22:1}, $intern_10 = {211:1, 50:1}, $intern_11 = {211:1, 50:1, 123:1}, $intern_12 = {256:1, 3:1}, $intern_13 = {51:1}, $intern_14 = {21:1, 28:1, 15:1}, $intern_15 = 1872, $intern_16 = {21:1, 28:1, 15:1, 22:1}, $intern_17 = {81:1, 124:1, 118:1}, $intern_18 = {21:1, 28:1, 15:1, 22:1, 70:1}, $intern_19 = {21:1, 28:1, 15:1, 205:1, 22:1, 70:1}, $intern_20 = {50:1, 123:1}, $intern_21 = {376:1, 39:1}, $intern_22 = {256:1, 517:1, 3:1}, $intern_23 = {3:1, 6:1, 4:1, 5:1}, $intern_24 = {163:1}, $intern_25 = {l:4194303, m:4194303, h:524287}, $intern_26 = {147:1, 51:1}, $intern_27 = {239:1, 3:1, 32:1}, $intern_28 = {21:1}, $intern_29 = {3:1, 21:1, 28:1, 15:1}, $intern_30 = {143:1, 3:1, 21:1, 28:1, 15:1, 14:1, 49:1}, $intern_31 = {3:1, 4:1, 5:1, 216:1}, $intern_32 = {3:1, 21:1, 28:1, 15:1, 22:1}, $intern_33 = {21:1, 15:1, 22:1, 70:1}, $intern_34 = 1073741824, $intern_35 = {458:1, 3:1, 21:1, 28:1, 15:1, 22:1, 70:1}, $intern_36 = {3:1, 6:1, 4:1, 5:1, 216:1}, $intern_37 = 461845907, $intern_38 = -862048943, $intern_39 = {21:1, 28:1, 47:1, 15:1, 14:1}, $intern_40 = {21:1, 28:1, 47:1, 15:1, 14:1, 49:1}, $intern_41 = {147:1, 375:1, 3:1, 32:1, 19:1, 51:1}, $intern_42 = {59:1}, $intern_43 = {3:1, 59:1}, $intern_44 = 1.0E-4, $intern_45 = -2147483648, $intern_46 = {3:1, 103:1, 56:1, 82:1}, $intern_47 = {191:1, 3:1, 4:1}, $intern_48 = 1000, $intern_49 = 65535, $intern_50 = 1900, $intern_51 = {42:1, 3:1, 4:1}, $intern_52 = {3:1, 4:1, 32:1, 194:1}, $intern_53 = 4194303, $intern_54 = 1048575, $intern_55 = 524288, $intern_56 = 4194304, $intern_57 = 17592186044416, $intern_58 = 1000000000, $intern_59 = -17592186044416, $intern_60 = {3:1, 103:1, 73:1, 56:1, 82:1}, $intern_61 = {3:1, 286:1, 82:1}, $intern_62 = 3.4028234663852886E38, $intern_63 = Infinity, $intern_64 = -Infinity, $intern_65 = 4096, $intern_66 = 16384, $intern_67 = {3:1, 4:1, 361:1}, $intern_68 = 65536, $intern_69 = 55296, $intern_70 = {101:1, 3:1, 4:1}, $intern_71 = 100000, $intern_72 = 0.3010299956639812, $intern_73 = 4294967295, $intern_74 = 4294967296, $intern_75 = {3:1, 4:1, 21:1, 28:1, 47:1, 11:1, 15:1, 14:1, 49:1}, $intern_76 = {3:1, 21:1, 28:1, 47:1, 15:1, 14:1, 49:1}, $intern_77 = {21:1, 15:1, 14:1}, $intern_78 = {269:1}, $intern_79 = {3:1, 4:1, 81:1}, $intern_80 = {3:1, 4:1, 21:1, 28:1, 15:1, 69:1, 22:1}, $intern_81 = {197:1}, $intern_82 = 1.4901161193847656E-8, $intern_83 = 1.1102230246251565E-16, $intern_84 = 15525485, $intern_85 = 5.9604644775390625E-8, $intern_86 = 16777216, $intern_87 = 16777215, $intern_88 = {3:1, 4:1, 21:1, 28:1, 47:1, 15:1, 14:1, 49:1}, $intern_89 = {3:1, 32:1, 19:1, 292:1}, $intern_90 = {46:1}, $intern_91 = 1024, $intern_92 = {128:1, 46:1}, $intern_93 = {132:1}, $intern_94 = {187:1, 3:1, 4:1}, $intern_95 = {184:1, 323:1}, $intern_96 = {3:1, 4:1, 5:1, 581:1}, $intern_97 = 0.01, $intern_98 = {3:1, 96:1, 134:1}, $intern_99 = {200:1}, $intern_100 = 1.5707963267948966, $intern_101 = {3:1, 4:1, 5:1, 190:1}, $intern_102 = {3:1, 6:1, 4:1, 5:1, 102:1, 122:1}, $intern_103 = 0.001, $intern_104 = 1.600000023841858, $intern_105 = {3:1, 6:1, 4:1, 9:1, 5:1, 119:1}, $intern_106 = {3:1, 6:1, 4:1, 5:1, 153:1, 102:1, 122:1}, $intern_107 = {48:1}, $intern_108 = {3:1, 6:1, 4:1, 5:1, 466:1, 153:1, 102:1, 122:1}, $intern_109 = {3:1, 6:1, 4:1, 5:1, 153:1, 207:1, 218:1, 102:1, 122:1}, $intern_110 = {3:1, 6:1, 4:1, 5:1, 153:1, 1850:1, 218:1, 102:1, 122:1}, $intern_111 = {3:1, 4:1, 141:1, 233:1, 461:1}, $intern_112 = {3:1, 4:1, 113:1, 233:1, 461:1}, $intern_113 = {464:1}, $intern_114 = {231:1}, $intern_115 = {3:1, 4:1, 5:1, 666:1}, $intern_116 = {129:1, 48:1}, $intern_117 = {448:1, 231:1}, $intern_118 = {806:1, 3:1, 4:1}, $intern_119 = {3:1, 4:1, 5:1, 813:1}, $intern_120 = 1.0E-5, $intern_121 = 1.7976931348623157E308, $intern_122 = 1.0E-6, $intern_123 = 0.09999999999999998, $intern_124 = 1.0E-8, $intern_125 = 4.71238898038469, $intern_126 = 3.141592653589793, $intern_127 = 6.283185307179586, $intern_128 = 4.9E-324, $intern_129 = {3:1, 4:1, 5:1, 102:1}, $intern_130 = 5.497787143782138, $intern_131 = 3.9269908169872414, $intern_132 = 2.356194490192345, $intern_133 = {362:1}, $intern_134 = {306:1}, $intern_135 = 0.05, $intern_136 = 1.2999999523162842, $intern_137 = {91:1, 89:1}, $intern_138 = 32768, $intern_139 = {99:1, 91:1, 89:1, 53:1, 44:1, 93:1}, $intern_140 = {188:1, 3:1, 4:1}, $intern_141 = {3:1, 4:1, 21:1, 28:1, 47:1, 15:1, 14:1, 49:1, 66:1, 57:1, 54:1}, $intern_142 = {3:1, 4:1, 21:1, 28:1, 47:1, 15:1, 50:1, 14:1, 49:1, 66:1, 57:1, 54:1, 576:1}, $intern_143 = {403:1, 657:1}, $intern_144 = {3:1, 4:1, 21:1, 28:1, 47:1, 15:1, 14:1, 66:1, 54:1}, $intern_145 = {363:1, 144:1}, $intern_146 = {3:1, 4:1, 5:1, 121:1}, $intern_147 = {3:1, 4:1, 21:1, 28:1, 47:1, 15:1, 14:1, 49:1, 66:1, 54:1}, $intern_148 = {3:1, 6:1, 4:1, 5:1, 190:1}, $intern_149 = {3:1, 4:1, 5:1, 216:1, 364:1}, $intern_150 = {76:1}, $intern_151 = {3:1, 21:1, 15:1, 14:1, 54:1, 577:1, 76:1, 67:1, 92:1}, $intern_152 = 8192, $intern_153 = 2048, $intern_154 = {3:1, 4:1, 5:1, 243:1}, $intern_155 = {3:1, 4:1, 5:1, 658:1}, $intern_156 = {3:1, 4:1, 21:1, 28:1, 47:1, 15:1, 14:1, 49:1, 66:1, 57:1, 54:1, 67:1}, $intern_157 = {3:1, 4:1, 21:1, 28:1, 47:1, 15:1, 14:1, 49:1, 66:1, 57:1, 54:1, 76:1, 67:1, 92:1}, $intern_158 = {3:1, 4:1, 5:1, 659:1}, $intern_159 = {3:1, 4:1, 21:1, 28:1, 47:1, 15:1, 14:1, 66:1, 54:1, 76:1, 67:1, 92:1}, $intern_160 = {21:1, 28:1, 47:1, 15:1, 14:1, 54:1, 67:1}, $intern_161 = {50:1, 123:1, 276:1}, $intern_162 = {71:1, 329:1}, $intern_163 = 1260, $intern_164 = -32768, $intern_165 = {52:1}, $intern_166 = {3:1, 4:1, 5:1, 116:1}, $intern_167 = {91:1, 89:1, 578:1, 1842:1}, $intern_168 = 1114111, $intern_169 = {3:1, 115:1}, $intern_170 = {3:1, 4:1, 5:1, 365:1}; var _, prototypesByTypeId_0, initFnList_0, permutationId = -1; function setGwtProperty(propertyName, propertyValue){ typeof window === 'object' && typeof window['$gwt'] === 'object' && (window['$gwt'][propertyName] = propertyValue); } function gwtOnLoad_0(errFn, modName, modBase, softPermutationId){ ensureModuleInit(); var initFnList = initFnList_0; $moduleName = modName; $moduleBase = modBase; permutationId = softPermutationId; function initializeModules(){ for (var i = 0; i < initFnList.length; i++) { initFnList[i](); } } if (errFn) { try { $entry(initializeModules)(); } catch (e) { errFn(modName, e); } } else { $entry(initializeModules)(); } } function ensureModuleInit(){ initFnList_0 == null && (initFnList_0 = []); } function addInitFunctions(){ ensureModuleInit(); var initFnList = initFnList_0; for (var i = 0; i < arguments.length; i++) { initFnList.push(arguments[i]); } } function typeMarkerFn(){ } function toString_47(object){ var number; if (Array.isArray(object) && object.typeMarker === typeMarkerFn) { return $getName(getClass__Ljava_lang_Class___devirtual$(object)) + '@' + (number = hashCode__I__devirtual$(object) >>> 0 , number.toString(16)); } return object.toString(); } function portableObjCreate(obj){ function F(){ } ; F.prototype = obj || {}; return new F; } function makeLambdaFunction(samMethod, ctor, ctorArguments){ var lambda = function(){ return samMethod.apply(lambda, arguments); } ; ctor.apply(lambda, ctorArguments); return lambda; } function emptyMethod(){ } function defineClass(typeId, superTypeIdOrPrototype, castableTypeMap){ var prototypesByTypeId = prototypesByTypeId_0, superPrototype; var prototype_0 = prototypesByTypeId[typeId]; var clazz = prototype_0 instanceof Array?prototype_0[0]:null; if (prototype_0 && !clazz) { _ = prototype_0; } else { _ = (superPrototype = superTypeIdOrPrototype && superTypeIdOrPrototype.prototype , !superPrototype && (superPrototype = prototypesByTypeId_0[superTypeIdOrPrototype]) , portableObjCreate(superPrototype)); _.castableTypeMap = castableTypeMap; !superTypeIdOrPrototype && (_.typeMarker = typeMarkerFn); prototypesByTypeId[typeId] = _; } for (var i = 3; i < arguments.length; ++i) { arguments[i].prototype = _; } clazz && (_.___clazz = clazz); } function bootstrap(){ prototypesByTypeId_0 = {}; !Array.isArray && (Array.isArray = function(vArg){ return Object.prototype.toString.call(vArg) === '[object Array]'; } ); function now_0(){ return (new Date).getTime(); } !Date.now && (Date.now = now_0); } bootstrap(); function Object_0(){ } function equals_Ljava_lang_Object__Z__devirtual$(this$static, other){ return instanceOfString(this$static)?$equals_4(this$static, other):instanceOfDouble(this$static)?(checkCriticalNotNull(this$static) , this$static === other):instanceOfBoolean(this$static)?(checkCriticalNotNull(this$static) , this$static === other):hasJavaObjectVirtualDispatch(this$static)?this$static.equals_0(other):isJavaArray(this$static)?this$static === other:$equals_3(this$static, other); } function getClass__Ljava_lang_Class___devirtual$(this$static){ return instanceOfString(this$static)?Ljava_lang_String_2_classLit:instanceOfDouble(this$static)?Ljava_lang_Double_2_classLit:instanceOfBoolean(this$static)?Ljava_lang_Boolean_2_classLit:hasJavaObjectVirtualDispatch(this$static)?this$static.___clazz:isJavaArray(this$static)?this$static.___clazz:this$static.___clazz || Array.isArray(this$static) && getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1) || Lcom_google_gwt_core_client_JavaScriptObject_2_classLit; } function hashCode__I__devirtual$(this$static){ return instanceOfString(this$static)?getHashCode_1(this$static):instanceOfDouble(this$static)?$hashCode_0(this$static):instanceOfBoolean(this$static)?(checkCriticalNotNull(this$static) , this$static)?1231:1237:hasJavaObjectVirtualDispatch(this$static)?this$static.hashCode_1():isJavaArray(this$static)?getHashCode_0(this$static):$hashCode(this$static); } defineClass(1, null, {}, Object_0); _.equals_0 = function equals(other){ return this === other; } ; _.getClass_0 = function getClass_0(){ return this.___clazz; } ; _.hashCode_1 = function hashCode_0(){ return getHashCode_0(this); } ; _.toString_0 = function toString_0(){ var number; return $getName(getClass__Ljava_lang_Class___devirtual$(this)) + '@' + (number = hashCode__I__devirtual$(this) >>> 0 , number.toString(16)); } ; _.equals = function(other){ return this.equals_0(other); } ; _.hashCode = function(){ return this.hashCode_1(); } ; _.toString = function(){ return this.toString_0(); } ; function canCast(src_0, dstId){ if (instanceOfString(src_0)) { return !!stringCastMap[dstId]; } else if (src_0.castableTypeMap) { return !!src_0.castableTypeMap[dstId]; } else if (instanceOfDouble(src_0)) { return !!doubleCastMap[dstId]; } else if (instanceOfBoolean(src_0)) { return !!booleanCastMap[dstId]; } return false; } function castTo(src_0, dstId){ checkCriticalType(src_0 == null || canCast(src_0, dstId)); return src_0; } function castToArray(src_0){ var elementTypeCategory; checkCriticalType(src_0 == null || Array.isArray(src_0) && (elementTypeCategory = getElementTypeCategory(src_0) , !(elementTypeCategory >= 14 && elementTypeCategory <= 16))); return src_0; } function castToBoolean(src_0){ checkCriticalType(src_0 == null || instanceOfBoolean(src_0)); return src_0; } function castToDouble(src_0){ checkCriticalType(src_0 == null || instanceOfDouble(src_0)); return src_0; } function castToJso(src_0){ checkCriticalType(src_0 == null || isJsObjectOrFunction(src_0) && !(src_0.typeMarker === typeMarkerFn)); return src_0; } function castToString(src_0){ checkCriticalType(src_0 == null || instanceOfString(src_0)); return src_0; } function charToString(x_0){ return String.fromCharCode(x_0); } function hasJavaObjectVirtualDispatch(src_0){ return !Array.isArray(src_0) && src_0.typeMarker === typeMarkerFn; } function instanceOf(src_0, dstId){ return src_0 != null && canCast(src_0, dstId); } function instanceOfBoolean(src_0){ return typeof src_0 === 'boolean'; } function instanceOfDouble(src_0){ return typeof src_0 === 'number'; } function instanceOfJso(src_0){ return src_0 != null && isJsObjectOrFunction(src_0) && !(src_0.typeMarker === typeMarkerFn); } function instanceOfString(src_0){ return typeof src_0 === 'string'; } function isJsObjectOrFunction(src_0){ return typeof src_0 === 'object' || typeof src_0 === 'function'; } function maskUndefined(src_0){ return src_0 == null?null:src_0; } function round_int(x_0){ return Math.max(Math.min(x_0, $intern_0), -2147483648) | 0; } function throwClassCastExceptionUnlessNull(o){ checkCriticalType(o == null); return o; } var booleanCastMap, doubleCastMap, stringCastMap; function $ensureNamesAreInitialized(this$static){ if (this$static.typeName != null) { return; } initializeNames(this$static); } function $getEnumConstants(this$static){ return this$static.enumConstantsFunc && this$static.enumConstantsFunc(); } function $getName(this$static){ $ensureNamesAreInitialized(this$static); return this$static.typeName; } function $toString_6(this$static){ return ((this$static.modifiers & 2) != 0?'interface ':(this$static.modifiers & 1) != 0?'':'class ') + ($ensureNamesAreInitialized(this$static) , this$static.typeName); } function Class(){ ++nextSequentialId; this.typeName = null; this.simpleName = null; this.packageName = null; this.compoundName = null; this.canonicalName = null; this.typeId = null; this.arrayLiterals = null; } function createClassObject(packageName, compoundClassName){ var clazz; clazz = new Class; clazz.packageName = packageName; clazz.compoundName = compoundClassName; return clazz; } function createForClass(packageName, compoundClassName, typeId){ var clazz; clazz = createClassObject(packageName, compoundClassName); maybeSetClassLiteral(typeId, clazz); return clazz; } function createForEnum(packageName, compoundClassName, typeId, superclass, enumConstantsFunc, enumValueOfFunc){ var clazz; clazz = createClassObject(packageName, compoundClassName); maybeSetClassLiteral(typeId, clazz); clazz.modifiers = enumConstantsFunc?8:0; clazz.enumSuperclass = superclass; clazz.enumConstantsFunc = enumConstantsFunc; clazz.enumValueOfFunc = enumValueOfFunc; return clazz; } function createForInterface(packageName, compoundClassName){ var clazz; clazz = createClassObject(packageName, compoundClassName); clazz.modifiers = 2; return clazz; } function createForPrimitive(className, primitiveTypeId){ var clazz; clazz = createClassObject('', className); clazz.typeId = primitiveTypeId; clazz.modifiers = 1; return clazz; } function getClassLiteralForArray_0(leafClass, dimensions){ var arrayLiterals = leafClass.arrayLiterals = leafClass.arrayLiterals || []; return arrayLiterals[dimensions] || (arrayLiterals[dimensions] = leafClass.createClassLiteralForArray(dimensions)); } function getPrototypeForClass(clazz){ if (clazz.isPrimitive()) { return null; } var typeId = clazz.typeId; return prototypesByTypeId_0[typeId]; } function initializeNames(clazz){ if (clazz.isArray_1()) { var componentType = clazz.componentType; componentType.isPrimitive()?(clazz.typeName = '[' + componentType.typeId):!componentType.isArray_1()?(clazz.typeName = '[L' + componentType.getName() + ';'):(clazz.typeName = '[' + componentType.getName()); clazz.canonicalName = componentType.getCanonicalName() + '[]'; clazz.simpleName = componentType.getSimpleName() + '[]'; return; } var packageName = clazz.packageName; var compoundName = clazz.compoundName; compoundName = compoundName.split('/'); clazz.typeName = join_0('.', [packageName, join_0('$', compoundName)]); clazz.canonicalName = join_0('.', [packageName, join_0('.', compoundName)]); clazz.simpleName = compoundName[compoundName.length - 1]; } function join_0(separator, strings){ var i = 0; while (!strings[i] || strings[i] == '') { i++; } var result = strings[i++]; for (; i < strings.length; i++) { if (!strings[i] || strings[i] == '') { continue; } result += separator + strings[i]; } return result; } function maybeSetClassLiteral(typeId, clazz){ var proto; if (!typeId) { return; } clazz.typeId = typeId; var prototype_0 = getPrototypeForClass(clazz); if (!prototype_0) { prototypesByTypeId_0[typeId] = [clazz]; return; } prototype_0.___clazz = clazz; } defineClass(287, 1, {287:1, 1928:1}, Class); _.createClassLiteralForArray = function createClassLiteralForArray(dimensions){ var clazz; clazz = new Class; clazz.modifiers = 4; dimensions > 1?(clazz.componentType = getClassLiteralForArray_0(this, dimensions - 1)):(clazz.componentType = this); return clazz; } ; _.getCanonicalName = function getCanonicalName(){ $ensureNamesAreInitialized(this); return this.canonicalName; } ; _.getName = function getName(){ return $getName(this); } ; _.getSimpleName = function getSimpleName(){ return $ensureNamesAreInitialized(this) , this.simpleName; } ; _.isArray_1 = function isArray_1(){ return (this.modifiers & 4) != 0; } ; _.isPrimitive = function isPrimitive(){ return (this.modifiers & 1) != 0; } ; _.toString_0 = function toString_51(){ return $toString_6(this); } ; _.modifiers = 0; var nextSequentialId = 1; var Ljava_lang_Object_2_classLit = createForClass('java.lang', 'Object', 1); var Ljava_lang_Class_2_classLit = createForClass('java.lang', 'Class', 287); defineClass(1903, 1, {3:1}); var Lcom_google_common_base_Optional_2_classLit = createForClass('com.google.common.base', 'Optional', 1903); function $clinit_Absent(){ $clinit_Absent = emptyMethod; INSTANCE = new Absent; } function Absent(){ } defineClass(1107, 1903, {3:1}, Absent); _.equals_0 = function equals_0(object){ return object === this; } ; _.hashCode_1 = function hashCode_1(){ return 2040732332; } ; _.toString_0 = function toString_1(){ return 'Optional.absent()'; } ; _.transform = function transform(function_0){ checkNotNull(function_0); return $clinit_Absent() , INSTANCE; } ; var INSTANCE; var Lcom_google_common_base_Absent_2_classLit = createForClass('com.google.common.base', 'Absent', 1107); var Lcom_google_common_base_Function_2_classLit = createForInterface('com.google.common.base', 'Function'); function $appendTo(this$static, appendable, parts){ checkNotNull(appendable); if (parts.hasNext_0()) { $append_7(appendable, this$static.toString_1(parts.next_1())); while (parts.hasNext_0()) { $append_7(appendable, this$static.separator); $append_7(appendable, this$static.toString_1(parts.next_1())); } } return appendable; } function $appendTo_0(this$static, builder, parts){ var impossible; try { $appendTo(this$static, builder, parts); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 520)) { impossible = $e0; throw toJs(new AssertionError_0(impossible)); } else throw toJs($e0); } return builder; } function $join(this$static, parts){ return $appendTo_0(this$static, new StringBuilder, parts).string; } function $toString(part){ checkNotNull(part); return instanceOf(part, 519)?castTo(part, 519):toString_47(part); } function $useForNull(this$static){ checkNotNull('null'); return new Joiner$1(this$static, this$static); } function Joiner(separator){ this.separator = castToString(checkNotNull(separator)); } defineClass(423, 1, {}, Joiner); _.toString_1 = function toString_2(part){ return $toString(part); } ; var Lcom_google_common_base_Joiner_2_classLit = createForClass('com.google.common.base', 'Joiner', 423); function $toString_0(this$static, part){ return part == null?this$static.val$nullText3:$toString(part); } function Joiner$1(this$0, $anonymous0){ this.this$01 = this$0; this.val$nullText3 = 'null'; this.separator = $anonymous0.separator; } defineClass(953, 423, {}, Joiner$1); _.toString_1 = function toString_3(part){ return $toString_0(this, part); } ; var Lcom_google_common_base_Joiner$1_2_classLit = createForClass('com.google.common.base', 'Joiner/1', 953); function $appendTo_1(this$static, appendable, parts){ var e, entry; checkNotNull(appendable); if (parts.hasNext_0()) { entry = castTo(parts.next_1(), 39); $append_7(appendable, $toString_0(this$static.joiner, entry.getKey())); $append_7(appendable, this$static.keyValueSeparator); $append_7(appendable, $toString_0(this$static.joiner, entry.getValue())); while (parts.hasNext_0()) { $append_7(appendable, this$static.joiner.separator); e = castTo(parts.next_1(), 39); $append_7(appendable, $toString_0(this$static.joiner, e.getKey())); $append_7(appendable, this$static.keyValueSeparator); $append_7(appendable, $toString_0(this$static.joiner, e.getValue())); } } return appendable; } function $appendTo_2(this$static, builder, entries){ var impossible; try { $appendTo_1(this$static, builder, entries); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 520)) { impossible = $e0; throw toJs(new AssertionError_0(impossible)); } else throw toJs($e0); } return builder; } function Joiner$MapJoiner(joiner){ this.joiner = joiner; this.keyValueSeparator = castToString(checkNotNull('=')); } defineClass(952, 1, {}, Joiner$MapJoiner); var Lcom_google_common_base_Joiner$MapJoiner_2_classLit = createForClass('com.google.common.base', 'Joiner/MapJoiner', 952); function equal(a, b){ return maskUndefined(a) === maskUndefined(b) || a != null && equals_Ljava_lang_Object__Z__devirtual$(a, b); } function badElementIndex(index_0, size_0){ if (index_0 < 0) { return format('%s (%s) must not be negative', stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_1, 1, 5, ['index', valueOf_5(index_0)])); } else if (size_0 < 0) { throw toJs(new IllegalArgumentException_0('negative size: ' + size_0)); } else { return format('%s (%s) must be less than size (%s)', stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_1, 1, 5, ['index', valueOf_5(index_0), valueOf_5(size_0)])); } } function badPositionIndex(index_0, size_0, desc){ if (index_0 < 0) { return format('%s (%s) must not be negative', stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_1, 1, 5, [desc, valueOf_5(index_0)])); } else if (size_0 < 0) { throw toJs(new IllegalArgumentException_0('negative size: ' + size_0)); } else { return format('%s (%s) must not be greater than size (%s)', stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_1, 1, 5, [desc, valueOf_5(index_0), valueOf_5(size_0)])); } } function badPositionIndexes(start_0, end, size_0){ if (start_0 < 0 || start_0 > size_0) { return badPositionIndex(start_0, size_0, 'start index'); } if (end < 0 || end > size_0) { return badPositionIndex(end, size_0, 'end index'); } return format('end index (%s) must not be less than start index (%s)', stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_1, 1, 5, [valueOf_5(end), valueOf_5(start_0)])); } function checkArgument(expression){ if (!expression) { throw toJs(new IllegalArgumentException); } } function checkArgument_0(expression, errorMessage){ if (!expression) { throw toJs(new IllegalArgumentException_0(errorMessage)); } } function checkArgument_1(b, p1){ if (!b) { throw toJs(new IllegalArgumentException_0(format('value already present: %s', stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_1, 1, 5, [p1])))); } } function checkArgument_2(b, errorMessageTemplate, p1, p2){ if (!b) { throw toJs(new IllegalArgumentException_0(format(errorMessageTemplate, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_1, 1, 5, [p1, p2])))); } } function checkElementIndex(index_0, size_0){ if (index_0 < 0 || index_0 >= size_0) { throw toJs(new IndexOutOfBoundsException_0(badElementIndex(index_0, size_0))); } return index_0; } function checkNotNull(reference){ if (reference == null) { throw toJs(new NullPointerException); } return reference; } function checkNotNull_0(reference, errorMessage){ if (reference == null) { throw toJs(new NullPointerException_0(errorMessage)); } return reference; } function checkPositionIndex(index_0, size_0){ if (index_0 < 0 || index_0 > size_0) { throw toJs(new IndexOutOfBoundsException_0(badPositionIndex(index_0, size_0, 'index'))); } return index_0; } function checkPositionIndexes(start_0, end, size_0){ if (start_0 < 0 || end < start_0 || end > size_0) { throw toJs(new IndexOutOfBoundsException_0(badPositionIndexes(start_0, end, size_0))); } } function checkState(expression){ if (!expression) { throw toJs(new IllegalStateException); } } function checkState_0(expression, errorMessage){ if (!expression) { throw toJs(new IllegalStateException_0(errorMessage)); } } function format(template, args){ var builder, i, placeholderStart, templateStart; template = template; builder = new StringBuilder_0; templateStart = 0; i = 0; while (i < args.length) { placeholderStart = template.indexOf('%s', templateStart); if (placeholderStart == -1) { break; } builder.string += '' + template.substr(templateStart, placeholderStart - templateStart); $append_10(builder, args[i++]); templateStart = placeholderStart + 2; } $append_9(builder, template, templateStart, template.length); if (i < args.length) { builder.string += ' ['; $append_10(builder, args[i++]); while (i < args.length) { builder.string += ', '; $append_10(builder, args[i++]); } builder.string += ']'; } return builder.string; } var Lcom_google_common_base_Predicate_2_classLit = createForInterface('com.google.common.base', 'Predicate'); function $clinit_Predicates(){ $clinit_Predicates = emptyMethod; COMMA_JOINER = new Joiner(String.fromCharCode(44)); } var COMMA_JOINER; function $apply(this$static, t){ var i; for (i = 0; i < this$static.components.array.length; i++) { if (!castTo($get_11(this$static.components, i), 128).apply_1(t)) { return false; } } return true; } function Predicates$AndPredicate(components){ this.components = components; } defineClass(530, 1, {128:1, 530:1, 3:1, 46:1}, Predicates$AndPredicate); _.test_0 = function test_0(input_0){ return $apply(this, input_0); } ; _.apply_1 = function apply_1(t){ return $apply(this, t); } ; _.equals_0 = function equals_1(obj){ var that; if (instanceOf(obj, 530)) { that = castTo(obj, 530); return $equals_2(this.components, that.components); } return false; } ; _.hashCode_1 = function hashCode_2(){ return hashCode_48(this.components) + 306654252; } ; _.toString_0 = function toString_4(){ return 'Predicates.and(' + $join(($clinit_Predicates() , COMMA_JOINER), new AbstractList$IteratorImpl(this.components)) + ')'; } ; var Lcom_google_common_base_Predicates$AndPredicate_2_classLit = createForClass('com.google.common.base', 'Predicates/AndPredicate', 530); function $apply_0(this$static, t){ try { return this$static.target.contains(t); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 161)) { return false; } else if (instanceOf($e0, 168)) { return false; } else throw toJs($e0); } } function Predicates$InPredicate(target){ this.target = castTo(checkNotNull(target), 15); } defineClass(532, 1, {128:1, 532:1, 3:1, 46:1}, Predicates$InPredicate); _.test_0 = function test_1(input_0){ return $apply_0(this, input_0); } ; _.apply_1 = function apply_2(t){ return $apply_0(this, t); } ; _.equals_0 = function equals_2(obj){ var that; if (instanceOf(obj, 532)) { that = castTo(obj, 532); return equals_Ljava_lang_Object__Z__devirtual$(this.target, that.target); } return false; } ; _.hashCode_1 = function hashCode_3(){ return hashCode__I__devirtual$(this.target); } ; _.toString_0 = function toString_5(){ return 'Predicates.in(' + this.target + ')'; } ; var Lcom_google_common_base_Predicates$InPredicate_2_classLit = createForClass('com.google.common.base', 'Predicates/InPredicate', 532); function Predicates$IsEqualToPredicate(target){ this.target = target; } defineClass(531, 1, {128:1, 531:1, 3:1, 46:1}, Predicates$IsEqualToPredicate); _.test_0 = function test_2(input_0){ return equals_Ljava_lang_Object__Z__devirtual$(this.target, input_0); } ; _.apply_1 = function apply_3(t){ return equals_Ljava_lang_Object__Z__devirtual$(this.target, t); } ; _.equals_0 = function equals_3(obj){ var that; if (instanceOf(obj, 531)) { that = castTo(obj, 531); return equals_Ljava_lang_Object__Z__devirtual$(this.target, that.target); } return false; } ; _.hashCode_1 = function hashCode_4(){ return hashCode__I__devirtual$(this.target); } ; _.toString_0 = function toString_6(){ return 'Predicates.equalTo(' + this.target + ')'; } ; var Lcom_google_common_base_Predicates$IsEqualToPredicate_2_classLit = createForClass('com.google.common.base', 'Predicates/IsEqualToPredicate', 531); function $compareTo(this$static, other){ return this$static.ordinal - other.ordinal; } function $toString_1(this$static){ return this$static.name_0 != null?this$static.name_0:'' + this$static.ordinal; } function Enum(name_0, ordinal){ this.name_0 = name_0; this.ordinal = ordinal; } function createValueOfMap(enumConstants){ var result, value_0, value$index, value$max; result = {}; for (value$index = 0 , value$max = enumConstants.length; value$index < value$max; ++value$index) { value_0 = enumConstants[value$index]; result[':' + (value_0.name_0 != null?value_0.name_0:'' + value_0.ordinal)] = value_0; } return result; } function valueOf(map_0, name_0){ var result; checkCriticalNotNull(name_0); result = map_0[':' + name_0]; checkCriticalArgument_1(!!result, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_1, 1, 5, [name_0])); return result; } function valueOf_0(enumType, name_0){ var enumValueOfFunc; enumValueOfFunc = (checkCriticalNotNull(enumType) , enumType).enumValueOfFunc; checkCriticalArgument(!!enumValueOfFunc); checkCriticalNotNull(name_0); return enumValueOfFunc(name_0); } defineClass(19, 1, {3:1, 32:1, 19:1}); _.compareTo = function compareTo(other){ return $compareTo(this, castTo(other, 19)); } ; _.equals_0 = function equals_4(other){ return this === other; } ; _.hashCode_1 = function hashCode_5(){ return getHashCode_0(this); } ; _.toString_0 = function toString_7(){ return $toString_1(this); } ; _.ordinal = 0; var Ljava_lang_Enum_2_classLit = createForClass('java.lang', 'Enum', 19); function $clinit_Predicates$ObjectPredicate(){ $clinit_Predicates$ObjectPredicate = emptyMethod; ALWAYS_TRUE = new Predicates$ObjectPredicate$1; ALWAYS_FALSE = new Predicates$ObjectPredicate$2; IS_NULL = new Predicates$ObjectPredicate$3; NOT_NULL = new Predicates$ObjectPredicate$4; } function Predicates$ObjectPredicate(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function valueOf_1(name_0){ $clinit_Predicates$ObjectPredicate(); return valueOf(($clinit_Predicates$ObjectPredicate$Map() , $MAP), name_0); } function values_0(){ $clinit_Predicates$ObjectPredicate(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_common_base_Predicates$ObjectPredicate_2_classLit, 1), $intern_2, 279, 0, [ALWAYS_TRUE, ALWAYS_FALSE, IS_NULL, NOT_NULL]); } defineClass(279, 19, $intern_3); _.test_0 = function test_3(input_0){ return this.apply_1(input_0); } ; var ALWAYS_FALSE, ALWAYS_TRUE, IS_NULL, NOT_NULL; var Lcom_google_common_base_Predicates$ObjectPredicate_2_classLit = createForEnum('com.google.common.base', 'Predicates/ObjectPredicate', 279, Ljava_lang_Enum_2_classLit, values_0, valueOf_1); function Predicates$ObjectPredicate$1(){ Predicates$ObjectPredicate.call(this, 'ALWAYS_TRUE', 0); } defineClass(1108, 279, $intern_3, Predicates$ObjectPredicate$1); _.apply_1 = function apply_4(o){ return true; } ; _.toString_0 = function toString_8(){ return 'Predicates.alwaysTrue()'; } ; var Lcom_google_common_base_Predicates$ObjectPredicate$1_2_classLit = createForEnum('com.google.common.base', 'Predicates/ObjectPredicate/1', 1108, Lcom_google_common_base_Predicates$ObjectPredicate_2_classLit, null, null); function Predicates$ObjectPredicate$2(){ Predicates$ObjectPredicate.call(this, 'ALWAYS_FALSE', 1); } defineClass(1109, 279, $intern_3, Predicates$ObjectPredicate$2); _.apply_1 = function apply_5(o){ return false; } ; _.toString_0 = function toString_9(){ return 'Predicates.alwaysFalse()'; } ; var Lcom_google_common_base_Predicates$ObjectPredicate$2_2_classLit = createForEnum('com.google.common.base', 'Predicates/ObjectPredicate/2', 1109, Lcom_google_common_base_Predicates$ObjectPredicate_2_classLit, null, null); function Predicates$ObjectPredicate$3(){ Predicates$ObjectPredicate.call(this, 'IS_NULL', 2); } defineClass(1110, 279, $intern_3, Predicates$ObjectPredicate$3); _.apply_1 = function apply_6(o){ return o == null; } ; _.toString_0 = function toString_10(){ return 'Predicates.isNull()'; } ; var Lcom_google_common_base_Predicates$ObjectPredicate$3_2_classLit = createForEnum('com.google.common.base', 'Predicates/ObjectPredicate/3', 1110, Lcom_google_common_base_Predicates$ObjectPredicate_2_classLit, null, null); function Predicates$ObjectPredicate$4(){ Predicates$ObjectPredicate.call(this, 'NOT_NULL', 3); } defineClass(1111, 279, $intern_3, Predicates$ObjectPredicate$4); _.apply_1 = function apply_7(o){ return o != null; } ; _.toString_0 = function toString_11(){ return 'Predicates.notNull()'; } ; var Lcom_google_common_base_Predicates$ObjectPredicate$4_2_classLit = createForEnum('com.google.common.base', 'Predicates/ObjectPredicate/4', 1111, Lcom_google_common_base_Predicates$ObjectPredicate_2_classLit, null, null); function $clinit_Predicates$ObjectPredicate$Map(){ $clinit_Predicates$ObjectPredicate$Map = emptyMethod; $MAP = createValueOfMap(($clinit_Predicates$ObjectPredicate() , stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_common_base_Predicates$ObjectPredicate_2_classLit, 1), $intern_2, 279, 0, [ALWAYS_TRUE, ALWAYS_FALSE, IS_NULL, NOT_NULL]))); } var $MAP; function Present(reference){ this.reference = reference; } defineClass(397, 1903, {397:1, 3:1}, Present); _.equals_0 = function equals_5(object){ var other; if (instanceOf(object, 397)) { other = castTo(object, 397); return equals_Ljava_lang_Object__Z__devirtual$(this.reference, other.reference); } return false; } ; _.hashCode_1 = function hashCode_6(){ return 1502476572 + hashCode__I__devirtual$(this.reference); } ; _.toString_0 = function toString_12(){ return 'Optional.of(' + this.reference + ')'; } ; _.transform = function transform_0(function_0){ return new Present(checkNotNull_0(function_0.apply_0(this.reference), 'the Function passed to Optional.transform() must not return null.')); } ; var Lcom_google_common_base_Present_2_classLit = createForClass('com.google.common.base', 'Present', 397); defineClass(1877, 1, {}); _.toString_0 = function toString_13(){ return toString_47(this.delegate_0()); } ; var Lcom_google_common_collect_ForwardingObject_2_classLit = createForClass('com.google.common.collect', 'ForwardingObject', 1877); function $forEach_1(this$static, consumer){ var entry, entry$iterator; checkCriticalNotNull(consumer); for (entry$iterator = this$static.entrySet_0().iterator_0(); entry$iterator.hasNext_0();) { entry = castTo(entry$iterator.next_1(), 39); consumer.accept_0(entry.getKey(), entry.getValue()); } } function $merge(this$static, key, value_0, remappingFunction){ var currentValue, newValue; checkCriticalNotNull(remappingFunction); checkCriticalNotNull(value_0); currentValue = this$static.get_0(key); newValue = currentValue == null?value_0:addAll_19(castTo(currentValue, 14), castTo(value_0, 15)); newValue == null?this$static.remove(key):this$static.put(key, newValue); return newValue; } var Ljava_util_Map_2_classLit = createForInterface('java.util', 'Map'); function $containsKey(this$static, key){ return this$static.delegate_1().containsKey(key); } function $get(this$static, key){ return this$static.delegate_1().get_0(key); } defineClass(1886, 1877, $intern_4); _.delegate_0 = function delegate_0(){ return this.delegate_1(); } ; _.forEach = function forEach(consumer){ $forEach_1(this, consumer); } ; _.merge = function merge(key, value_0, remappingFunction){ return $merge(this, key, value_0, remappingFunction); } ; _.clear_0 = function clear_0(){ this.delegate_1().clear_0(); } ; _.containsKey = function containsKey(key){ return $containsKey(this, key); } ; _.containsValue = function containsValue(value_0){ return this.delegate_1().containsValue(value_0); } ; _.entrySet_0 = function entrySet(){ return this.delegate_1().entrySet_0(); } ; _.equals_0 = function equals_6(object){ return object === this || $equals(this.delegate_1(), object); } ; _.get_0 = function get_0(key){ return $get(this, key); } ; _.hashCode_1 = function hashCode_7(){ return hashCode_47(this.delegate_1().entrySet_0()); } ; _.isEmpty = function isEmpty(){ return this.delegate_1().size_1() == 0; } ; _.keySet_0 = function keySet(){ return this.delegate_1().keySet_0(); } ; _.put = function put(key, value_0){ return this.delegate_1().put(key, value_0); } ; _.remove = function remove_0(object){ return this.delegate_1().remove(object); } ; _.size_1 = function size_1(){ return this.delegate_1().size_1(); } ; _.values_0 = function values_1(){ return new AbstractMap$2(this.delegate_1()); } ; var Lcom_google_common_collect_ForwardingMap_2_classLit = createForClass('com.google.common.collect', 'ForwardingMap', 1886); function $clear(this$static){ this$static.delegate.clear_0(); this$static.inverse.delegate.clear_0(); } function $containsValue(this$static, value_0){ return $containsKey(this$static.inverse, value_0); } function $entrySet(this$static){ var result; result = this$static.entrySet; return !result?(this$static.entrySet = new AbstractBiMap$EntrySet(this$static)):result; } function $keySet(this$static){ var result; result = this$static.keySet; return !result?(this$static.keySet = new AbstractBiMap$KeySet(this$static)):result; } function $putInBothMaps(this$static, key, value_0, force){ var containedKey, oldValue; this$static.checkKey(key); this$static.checkValue(value_0); containedKey = this$static.delegate.containsKey(key); if (containedKey && equal(value_0, this$static.delegate.get_0(key))) { return value_0; } force?$remove(this$static.inverse, value_0):checkArgument_1(!$containsKey(this$static.inverse, value_0), value_0); oldValue = this$static.delegate.put(key, value_0); containedKey && this$static.inverse.delegate.remove(oldValue); this$static.inverse.delegate.put(value_0, key); return oldValue; } function $remove(this$static, key){ return this$static.delegate.containsKey(key)?$removeFromBothMaps(this$static, key):null; } function $removeFromBothMaps(this$static, key){ var oldValue; oldValue = this$static.delegate.remove(key); this$static.inverse.delegate.remove(oldValue); return oldValue; } function $removeFromInverseMap(this$static, oldValue){ this$static.inverse.delegate.remove(oldValue); } function $updateInverseMap(this$static, key, oldValue, newValue){ this$static.inverse.delegate.remove(oldValue); this$static.inverse.delegate.put(newValue, key); } function AbstractBiMap(forward_0, backward){ checkState(!this.delegate); checkState(!this.inverse); checkArgument($size_1(forward_0.map_0) == 0); checkArgument(backward.hashCodeMap.size_0 + backward.stringMap.size_0 == 0); checkArgument(true); this.delegate = forward_0; this.inverse = this.makeInverse(backward); } defineClass(685, 1886, $intern_5); _.values_0 = function values_2(){ var result; return result = this.valueSet , !result?(this.valueSet = new AbstractBiMap$ValueSet(this)):result; } ; _.checkKey = function checkKey(key){ return key; } ; _.checkValue = function checkValue(value_0){ return value_0; } ; _.clear_0 = function clear_1(){ $clear(this); } ; _.containsValue = function containsValue_0(value_0){ return $containsValue(this, value_0); } ; _.delegate_1 = function delegate_1(){ return this.delegate; } ; _.entrySet_0 = function entrySet_0(){ return $entrySet(this); } ; _.entrySetIterator = function entrySetIterator(){ var iterator; iterator = this.delegate.entrySet_0().iterator_0(); return new AbstractBiMap$1(this, iterator); } ; _.keySet_0 = function keySet_0(){ return $keySet(this); } ; _.makeInverse = function makeInverse(backward){ return new AbstractBiMap$Inverse(backward, this); } ; _.put = function put_0(key, value_0){ return $putInBothMaps(this, key, value_0, false); } ; _.remove = function remove_1(key){ return $remove(this, key); } ; _.values_1 = function values_3(){ var result; return result = this.valueSet , !result?(this.valueSet = new AbstractBiMap$ValueSet(this)):result; } ; var Lcom_google_common_collect_AbstractBiMap_2_classLit = createForClass('com.google.common.collect', 'AbstractBiMap', 685); function $forEachRemaining(this$static, consumer){ checkCriticalNotNull(consumer); while (this$static.hasNext_0()) { consumer.accept(this$static.next_1()); } } function $remove_20(){ throw toJs(new UnsupportedOperationException); } function AbstractBiMap$1(this$0, val$iterator){ this.this$01 = this$0; this.val$iterator2 = val$iterator; } defineClass(982, 1, $intern_6, AbstractBiMap$1); _.forEachRemaining = function forEachRemaining(consumer){ $forEachRemaining(this, consumer); } ; _.next_1 = function next_0(){ return this.entry = castTo(this.val$iterator2.next_1(), 39) , new AbstractBiMap$BiMapEntry(this.this$01, this.entry); } ; _.hasNext_0 = function hasNext(){ return this.val$iterator2.hasNext_0(); } ; _.remove_0 = function remove_2(){ var value_0; checkState_0(!!this.entry, 'no calls to next() since the last call to remove()'); value_0 = this.entry.getValue(); this.val$iterator2.remove_0(); $removeFromInverseMap(this.this$01, value_0); } ; var Lcom_google_common_collect_AbstractBiMap$1_2_classLit = createForClass('com.google.common.collect', 'AbstractBiMap/1', 982); var Ljava_util_Map$Entry_2_classLit = createForInterface('java.util', 'Map/Entry'); defineClass(1887, 1877, $intern_7); _.delegate_0 = function delegate_2(){ return this.delegate; } ; _.equals_0 = function equals_7(object){ return this.delegate.equals_0(object); } ; _.getKey = function getKey(){ return this.delegate.getKey(); } ; _.getValue = function getValue(){ return this.delegate.getValue(); } ; _.hashCode_1 = function hashCode_8(){ return this.delegate.hashCode_1(); } ; _.setValue = function setValue(value_0){ return this.delegate.setValue(value_0); } ; var Lcom_google_common_collect_ForwardingMapEntry_2_classLit = createForClass('com.google.common.collect', 'ForwardingMapEntry', 1887); function AbstractBiMap$BiMapEntry(this$0, delegate){ this.this$01 = this$0; this.delegate = delegate; } defineClass(980, 1887, $intern_7, AbstractBiMap$BiMapEntry); _.setValue = function setValue_0(value_0){ var oldValue; checkState_0($contains($entrySet(this.this$01), this), 'entry no longer in map'); if (equal(value_0, this.delegate.getValue())) { return value_0; } checkArgument_1(!$containsValue(this.this$01, value_0), value_0); oldValue = this.delegate.setValue(value_0); checkState_0(equal(value_0, $get(this.this$01, this.delegate.getKey())), 'entry no longer in map'); $updateInverseMap(this.this$01, this.delegate.getKey(), oldValue, value_0); return oldValue; } ; var Lcom_google_common_collect_AbstractBiMap$BiMapEntry_2_classLit = createForClass('com.google.common.collect', 'AbstractBiMap/BiMapEntry', 980); function $forEach(this$static, action){ var t, t$iterator; checkCriticalNotNull(action); for (t$iterator = this$static.iterator_0(); t$iterator.hasNext_0();) { t = t$iterator.next_1(); action.accept(t); } } defineClass(1878, 1877, $intern_8); _.delegate_0 = function delegate_3(){ return this.delegate_2(); } ; _.forEach_0 = function forEach_0(action){ $forEach(this, action); } ; _.parallelStream = function parallelStream(){ return new StreamImpl(null, this.spliterator_0()); } ; _.spliterator_0 = function spliterator_0(){ return new Spliterators$IteratorSpliterator(this, 0); } ; _.stream = function stream(){ return new StreamImpl(null, this.spliterator_0()); } ; _.add_1 = function add_1(element){ return this.delegate_2().add_1(element); } ; _.addAll = function addAll(collection){ return this.delegate_2().addAll(collection); } ; _.clear_0 = function clear_2(){ this.delegate_2().clear_0(); } ; _.contains = function contains(object){ return this.delegate_2().contains(object); } ; _.containsAll = function containsAll(collection){ return this.delegate_2().containsAll(collection); } ; _.isEmpty = function isEmpty_0(){ return this.delegate_2().isEmpty(); } ; _.iterator_0 = function iterator_0(){ return this.delegate_2().iterator_0(); } ; _.remove_1 = function remove_3(object){ return this.delegate_2().remove_1(object); } ; _.size_1 = function size_2(){ return this.delegate_2().size_1(); } ; _.toArray = function toArray(){ return this.delegate_2().toArray(); } ; _.toArray_0 = function toArray_0(array){ return this.delegate_2().toArray_0(array); } ; var Lcom_google_common_collect_ForwardingCollection_2_classLit = createForClass('com.google.common.collect', 'ForwardingCollection', 1878); var Ljava_util_Set_2_classLit = createForInterface('java.util', 'Set'); defineClass(1879, 1878, $intern_9); _.delegate_2 = function delegate_4(){ return this.delegate_3(); } ; _.spliterator_0 = function spliterator_1(){ return new Spliterators$IteratorSpliterator(this, 1); } ; _.equals_0 = function equals_8(object){ return object === this || equals_Ljava_lang_Object__Z__devirtual$(this.delegate_3(), object); } ; _.hashCode_1 = function hashCode_9(){ return hashCode__I__devirtual$(this.delegate_3()); } ; var Lcom_google_common_collect_ForwardingSet_2_classLit = createForClass('com.google.common.collect', 'ForwardingSet', 1879); function $contains(this$static, o){ return containsEntryImpl(this$static.esDelegate, o); } function AbstractBiMap$EntrySet(this$0){ this.this$01 = this$0; this.esDelegate = this.this$01.delegate.entrySet_0(); } defineClass(981, 1879, $intern_9, AbstractBiMap$EntrySet); _.clear_0 = function clear_3(){ $clear(this.this$01); } ; _.contains = function contains_0(o){ return $contains(this, o); } ; _.containsAll = function containsAll_0(c){ return $clinit_Collections2() , all_0(c, ($clinit_Predicates() , new Predicates$InPredicate(this))); } ; _.delegate_3 = function delegate_5(){ return this.esDelegate; } ; _.iterator_0 = function iterator_1(){ return this.this$01.entrySetIterator(); } ; _.remove_1 = function remove_4(object){ var entry; if (!this.esDelegate.contains(object)) { return false; } entry = castTo(object, 39); this.this$01.inverse.delegate.remove(entry.getValue()); this.esDelegate.remove_1(entry); return true; } ; _.toArray = function toArray_1(){ var newArray; return newArray = initUnidimensionalArray(Ljava_lang_Object_2_classLit, $intern_1, 1, this.esDelegate.size_1(), 5, 1) , toArrayImpl(this, newArray); } ; _.toArray_0 = function toArray_2(array){ return toArrayImpl(this, array); } ; var Lcom_google_common_collect_AbstractBiMap$EntrySet_2_classLit = createForClass('com.google.common.collect', 'AbstractBiMap/EntrySet', 981); function AbstractBiMap$Inverse(backward, forward_0){ this.delegate = backward; this.inverse = forward_0; } defineClass(686, 685, $intern_5, AbstractBiMap$Inverse); _.checkKey = function checkKey_0(key){ return this.inverse.checkValue(key); } ; _.checkValue = function checkValue_0(value_0){ return this.inverse.checkKey(value_0); } ; var Lcom_google_common_collect_AbstractBiMap$Inverse_2_classLit = createForClass('com.google.common.collect', 'AbstractBiMap/Inverse', 686); function AbstractBiMap$KeySet(this$0){ this.this$01 = this$0; } defineClass(979, 1879, $intern_9, AbstractBiMap$KeySet); _.clear_0 = function clear_4(){ $clear(this.this$01); } ; _.delegate_3 = function delegate_6(){ return this.this$01.delegate.keySet_0(); } ; _.iterator_0 = function iterator_2(){ return $clinit_Maps() , transform_3($entrySet(this.this$01).this$01.entrySetIterator(), ($clinit_Maps$EntryFunction() , KEY)); } ; _.remove_1 = function remove_5(key){ if (!this.this$01.delegate.keySet_0().contains(key)) { return false; } $removeFromBothMaps(this.this$01, key); return true; } ; var Lcom_google_common_collect_AbstractBiMap$KeySet_2_classLit = createForClass('com.google.common.collect', 'AbstractBiMap/KeySet', 979); function AbstractBiMap$ValueSet(this$0