(function(ca,da,ea,fa,ga,ha,S,N,T,W,X,G,Y,Z,ia,R,O,Q,$,ja,aa,ka,la,ma,na,oa,pa,B,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,n,ba){S("JS");T(null,"JS.ScriptExt",["JU.AU"],function(){var l=X(function(){this.e=this.vwr=null;this.chk=!1;this.st=null;this.slen=0;W(this,arguments)},JS,"ScriptExt",null);n(l,"init",function(a){this.e=a;this.vwr=this.e.vwr;return this},"~O");n(l,"atomExpressionAt",function(a){return this.e.atomExpressionAt(a)},"~N");n(l,"checkLength",
function(a){this.e.checkLength(a)},"~N");n(l,"error",function(a){this.e.error(a)},"~N");n(l,"invArg",function(){this.e.invArg()});n(l,"invPO",function(){this.error(23)});n(l,"getShapeProperty",function(a,b){return this.e.getShapeProperty(a,b)},"~N,~S");n(l,"paramAsStr",function(a){return this.e.paramAsStr(a)},"~N");n(l,"centerParameter",function(a){return this.e.centerParameter(a,null)},"~N");n(l,"floatParameter",function(a){return this.e.floatParameter(a)},"~N");n(l,"getPoint3f",function(a,b){return this.e.getPoint3f(a,
b,!0)},"~N,~B");n(l,"intParameter",function(a){return this.e.intParameter(a)},"~N");n(l,"isFloatParameter",function(a){switch(this.e.tokAt(a)){case 2:case 3:return!0}return!1},"~N");n(l,"setShapeProperty",function(a,b,c){this.e.setShapeProperty(a,b,c)},"~N,~S,~O");n(l,"showString",function(a){this.e.showString(a)},"~S");n(l,"stringParameter",function(a){return this.e.stringParameter(a)},"~N");n(l,"getToken",function(a){return this.e.getToken(a)},"~N");n(l,"tokAt",function(a){return this.e.tokAt(a)},
"~N");n(l,"setShapeId",function(a,b,c){c&&this.invArg();b=this.e.setShapeNameParameter(b).toLowerCase();this.setShapeProperty(a,"thisID",b);return b},"~N,~N,~B");n(l,"getColorTrans",function(a,b,c,f){c=3.4028235E38;1765808134!=a.theTok&&--b;switch(this.tokAt(b+1)){case 603979967:b++;c=this.isFloatParameter(b+1)?a.getTranslucentLevel(++b):this.vwr.getFloat(570425353);break;case 1073742074:b++,c=0}a.isColorParam(b+1)?f[0]=a.getArgbParam(++b):1073742333==this.tokAt(b+1)?(f[0]=0,a.iToken=b+1):3.4028235E38==
c?this.invArg():f[0]=-2147483648;return c},"JS.ScriptEval,~N,~B,~A");n(l,"finalizeObject",function(a,b,c,f,e,d,h,j){e&&this.setShapeProperty(a,"set",d);-2147483648!=b&&this.e.setShapePropertyBs(a,"color",Integer.$valueOf(b),j);3.4028235E38!=c&&this.e.setShapeTranslucency(a,"","translucent",c,j);0!=f&&this.setShapeProperty(a,"scale",Integer.$valueOf(f));0>h&&(h=-1-h,this.setShapeProperty(a,"token",Integer.$valueOf(1073742018)),this.setShapeProperty(a,"token",Integer.$valueOf(1073742046)));0<h&&(this.e.setMeshDisplayProperty(a,
h,0)||this.invArg())},"~N,~N,~N,~N,~B,~O,~N,JU.BS");n(l,"getIntArray2",function(a){a=this.e.getToken(a).getList();for(var b=JU.AU.newInt2(a.size()),c=b.length;0<=--c;){var f=a.get(c).getList();null==f&&this.invArg();b[c]=O(f.size(),0);for(var e=b[c].length;0<=--e;)b[c][e]=f.get(e).intValue}return b},"~N");n(l,"getAllPoints",function(a,b){var c=null,f=null;try{switch(this.e.tokAt(a)){case 7:c=this.e.getPointArray(a,-1,!1);break;case 12290:case 10:case 1073742325:f=this.atomExpressionAt(a)}null==c&&
(null==f&&(f=this.vwr.getAllAtoms()),c=this.bsToArray(f))}catch(e){if(!R(e,Exception))throw e;}(null==c||c.length<b)&&this.invArg();return c},"~N,~N");n(l,"bsToArray",function(a){for(var b=Array(a.cardinality()),c=a.nextSetBit(0),f=0;0<=c;c=a.nextSetBit(c+1))b[f++]=this.vwr.ms.at[c];return b},"JU.BS")});S("JS");T(["JS.ScriptExt"],"JS.CmdExt","java.util.Hashtable JU.AU $.BS $.Base64 $.Lst $.M3 $.M4 $.Measure $.P3 $.P4 $.PT $.Quat $.SB $.V3 J.api.Interface J.atomdata.RadiusData J.c.STER $.VDW J.i18n.GT JM.AtomCollection $.LabelToken $.Measurement $.Text JS.SV $.ScriptCompiler $.ScriptError $.ScriptEval $.ScriptInterruption $.ScriptMathProcessor $.T JU.BSUtil $.BoxInfo $.C $.Edge $.Elements $.Escape $.Logger $.Parser $.Point3fi $.SimpleUnitCell JV.FileManager $.StateManager $.Viewer".split(" "),
function(){var l=$(JS,"CmdExt",JS.ScriptExt);Z(l,function(){aa(this,JS.CmdExt,[])});ba(l,"dispatch",function(a,b,c){this.chk=this.e.chk;this.slen=this.e.slen;this.st=c;switch(a){case 1073741866:c[0].value=this.prepareBinaryOutput(c[0]);break;case 4098:this.assign();break;case 134221829:this.cache();break;case 4102:this.calculate();break;case 4103:this.capture();break;case 4105:this.centerAt();break;case 134221831:this.compare();break;case 528395:this.console();break;case 4106:this.connect(1);break;
case 1094717448:this.configuration();break;case 134221834:this.data();break;case 1613238294:this.connect(0);break;case 4120:this.image();break;case 4122:this.invertSelected();break;case 4124:this.macro();break;case 4125:this.mapProperty();break;case 4126:this.minimize(!1);break;case 603983903:this.modelkit();break;case 1275072532:this.modulation();break;case 4130:this.mutate();break;case 4131:this.navigate();break;case 4133:case 134221850:case 4138:this.plot(c);break;case 134222350:this.show();break;
case 528443:this.stereo();break;case 1814695966:this.unitcell(b?2:1,!1);break;case 134221856:return this.write(b?c:null);case 6:this.measure();break;case 21:this.polyhedra();break;case 20:this.ellipsoid();break;case 4:this.struts()}return null},"~N,~B,~A");n(l,"macro",function(){if(!this.chk){var a=this.e.optParameterAsString(1);if(0==a.length)this.showString(this.vwr.getMacro(null));else{var b=this.vwr.getMacro(a);null==b?this.showString("macro "+a+" could not be found. Current macros include:\n"+
this.vwr.getMacro(null)):(this.showString("running "+b),this.e.cmdScript(4124,b,null,null))}}});n(l,"evalParallel",function(a,b){this.chk=this.e.chk;this.slen=this.e.slen;var c=(new JS.ScriptEval).setViewer(this.vwr);c.historyDisabled=!0;c.compiler=new JS.ScriptCompiler(this.vwr);c.sm=b;try{c.restoreScriptContext(a,!0,!1,!1),c.setAllowJSThreads(!1),c.dispatchCommands(!1,!1,!1)}catch(f){if(R(f,Exception))return this.e.vwr.setStringProperty("_errormessage",""+f),null==c.thisContext&&(JU.Logger.error("Error evaluating context "+
f),f.printStackTrace()),!1;throw f;}return!0},"JS.ScriptContext,JV.ShapeManager");n(l,"getBitsetIdent",function(a,b,c,f,e,d){return this.getBitsetIdentFull(a,b,f,e,d,null)},"JU.BS,~S,~O,~B,~N,~B");n(l,"getBitsetIdentFull",function(a,b,c,f,e,d){var h=!N(a,"JM.BondSet");h?null==b?b=this.vwr.getStandardLabelFormat(0):0==b.length&&(b="%[label]"):null!=b&&0==b.length?b="[%a1 #%i1] %4.3LENGTH [%a2 #%i2] #%#":"%U".equals(b)&&(b="");var j=null==b?-1:b.indexOf("%"),g=2147483647!=f;if(null==a||this.chk||h&&
0>j)return null==b&&(b=""),e?B(-1,[b]):b;var j=this.vwr.ms,m=0;null==JS.CmdExt.labeler&&(JS.CmdExt.labeler=j.getLabeler());c=h||!c?null:a.getAssociatedAtoms(j);var p=null==b||0==b.length,s=h||p?null:JS.CmdExt.labeler.getBondLabelValues();b=p?null:h?JS.CmdExt.labeler.compile(this.vwr,b,"\x00",null):JS.CmdExt.labeler.compile(this.vwr,b,"\u0001",s);var v=g?1:a.cardinality(),k=null!=d;k||(d=Array(v));var u=new JU.P3;for(f=g?f:a.nextSetBit(0);0<=f;f=a.nextSetBit(f+1)){var q;h?q=p?j.at[f].getInfo():JS.CmdExt.labeler.formatLabelAtomArray(this.vwr,
j.at[f],b,"\x00",c,u):(q=j.bo[f],q=p?q.getIdentity():JS.CmdExt.labeler.formatLabelBond(this.vwr,q,b,s,c,u));q=JU.PT.formatStringI(q,"#",m+1);d[k?f:m]=q;m++;if(g)break}return 1==v&&!e?d[0]:d},"JU.BS,~S,~B,~N,~B,~A");n(l,"getLoadSymmetryParams",function(a,b,c){var f=this.e;this.chk=f.chk;this.slen=f.slen;var e=!1,d=null,h=this.tokAt(a);if(1073742332==h||8==h)d=f.getFractionalPoint(a),h=this.tokAt(a=f.iToken+1);switch(h){case 134217764:e=c.get("isEmptyLoad")===Boolean.TRUE;case 1073741938:case 1073742080:case 1094713350:case 1073742163:case 1073742114:case 1814695966:null==
d&&(d=JU.P3.new3(555,555,-1)),f.iToken=a-1}h=null;if(null!=d){c.put("lattice",d);a=f.iToken+1;b.append(" "+JU.SimpleUnitCell.escapeMultiplier(d));a=this.checkPacked(a,0,c,b);if(1094713350==this.tokAt(a)){c.put("centroid",Boolean.TRUE);b.append(" CENTROID");var j=0;this.isFloatParameter(a+1)&&(--a,j=1073742080);a=this.checkPacked(++a,j,c,b)}if(1073742163==this.tokAt(a)){b.append(" SUPERCELL ");if(f.isPoint3f(++a)){j=this.getPoint3f(a,!1);if(j.x!=G(j.x)||j.y!=G(j.y)||j.z!=G(j.z)||1>j.x||1>j.y||1>j.z)f.iToken=
a,this.invArg();a=f.iToken}else j=this.stringParameter(a);b.append(JU.Escape.e(j));c.put("supercell",j);a=this.checkPacked(++a,0,c,b)}j=0;1073742114==this.tokAt(a)&&(a++,j=this.floatParameter(a++),b.append(" range "+j));c.put("symmetryRange",Float.$valueOf(j));var j=null,g,m=-2147483648;134217764==this.tokAt(a)&&(++a,j=JU.PT.rep(this.paramAsStr(a++),"''",'"'),b.append(" spacegroup "+JU.PT.esc(j)),j.equalsIgnoreCase("ignoreOperators")?m=-999:(0==j.length?(g=this.vwr.getCurrentUnitCell(),null!=g&&(j=
g.getSpaceGroupName())):0<=j.indexOf(",")&&9>d.x&&(9>d.y&&0==d.z)&&(j+="#doNormalize=0"),c.put("spaceGroupName",j),m=-2));d=null;if(1814695966==this.tokAt(a)){++a;g=f.optParameterAsString(a);0==g.length?(g=this.vwr.getCurrentUnitCell(),null!=g&&(d=g.getUnitCellAsArray(!0),h=g.getCartesianOffset())):4==this.tokAt(a)?(d=Q(6,0),JU.SimpleUnitCell.setAbc(g,d,null)):d=f.floatParameterSet(a,6,9);(null==d||6!=d.length&&9!=d.length)&&this.invArg();b.append(" unitcell [");for(a=0;a<d.length;a++)b.append((0==
a?"":" ")+d[a]);b.append("]");c.put("unitcell",d);-2147483648==m&&(m=-1);a=f.iToken+1}-2147483648!=m&&c.put("spaceGroupIndex",Integer.$valueOf(m));e&&null==d&&null!=j&&JU.PT.parseInt(j)}e=!1;null==h&&1073742066==this.tokAt(a)&&(h=this.getPoint3f(++a,!0),e=f.coordinatesAreFractional);null!=h&&(e?(h.setT(f.fractionalPoint),c.put("unitCellOffsetFractional",e?Boolean.TRUE:Boolean.FALSE),b.append(" offset {"+h.x+" "+h.y+" "+h.z+"/1}")):b.append(" offset "+JU.Escape.eP(h)),c.put("unitCellOffset",h),a=f.iToken+
1);return a},"~N,JU.SB,java.util.Map");n(l,"checkPacked",function(a,b,c,f){0==b&&(b=this.tokAt(a));switch(b){case 1073741938:c.put("packed",Boolean.TRUE);var e=null;b=this.tokAt(++a);switch(b){case 1812599299:case 1814695966:case 4:break;default:this.e.isArrayParameter(a)?(e=this.e.getPointArray(a,-1,!1),a=this.e.iToken):this.isFloatParameter(a)?(e=this.floatParameter(a),e=B(-1,[new JU.P3,JU.P3.new3(e,e,e)])):(e=[],--a)}a++;if(this.e.chk)break;switch(b){case 4:a--;case 1814695966:b=this.e.optParameterAsString(a++).toLowerCase();
if(JU.PT.isOneOf(b,";conventional;primitive;rhombohedral;trigonal;")||0<=b.indexOf(",")&&0<=b.indexOf("a")&&0<=b.indexOf("b")&&0<=b.indexOf("c"))return c.put("fillRange",b),f.append(' FILL UNITCELL "'+b+'"'),a;b=this.vwr.getCurrentUnitCell();if(null!=b){e=JU.BoxInfo.toOABC(b.getUnitCellVerticesNoOffset(),b.getCartesianOffset());break}case 1812599299:e=JU.BoxInfo.toOABC(this.vwr.ms.getBBoxVertices(),null)}switch(e.length){case 2:b=e[1];e=B(-1,[e[0],JU.P3.newP(e[0]),new JU.P3,new JU.P3]);e[1].x=b.x;
e[2].y=b.y;e[3].z=b.z;break;case 3:e=B(-1,[new JU.P3,e[0],e[1],e[2]]);break;case 4:break;default:e=B(-1,[new JU.P3,JU.P3.new3(10,0,0),JU.P3.new3(0,10,0),JU.P3.new3(0,0,10)])}c.put("fillRange",e);f.append(" FILL ["+e[0]+e[1]+e[2]+e[3]+"]");break;case 1073742080:b=NaN,this.isFloatParameter(++a)&&(b=this.floatParameter(a++)),this.e.chk||(c.put("packed",Boolean.TRUE),f.append(" PACKED"),Float.isNaN(b)||(c.put("packingRange",Float.$valueOf(b)),f.append(" "+b)))}return a},"~N,~N,java.util.Map,JU.SB");n(l,
"cache",function(){var a=this.tokAt(1),b=null,c=2;switch(a){case 1275069441:case 1073742119:b=this.e.optParameterAsString(c++);case 1073741882:this.checkLength(c);this.chk||("all".equals(b)&&(b=null),b=this.vwr.cacheFileByName(b,1275069441==a),this.showString(0>b?"cache cleared":b+" bytes "+(1275069441==a?" cached":" removed")));break;default:this.invArg()}});n(l,"calculate",function(){var a=!1,b=!1,c=null,f=null,e=this.e,d=-2147483648,d=-1;if(2<=(e.iToken=e.slen))switch(e.clearDefinedVariableAtomSets(),
this.getToken(1).tok){case 2:if(3!=this.intParameter(1)||!this.paramAsStr(2).equalsIgnoreCase("D"))break;0>this.vwr.am.cmi&&e.errorStr(30,"calculate 3D");c="load append $ filter '2D';select visible;center selected";e.optParameterAsString(3).equalsIgnoreCase("ZAP")&&(c+=";zap modelIndex="+Math.max(this.vwr.am.cmi,0));this.chk||e.runScript(c);return;case 1073741824:this.checkLength(2);break;case 134217764:e.iToken=1;c=2==this.slen?null:this.atomExpressionAt(2);e.checkLast(e.iToken);this.chk||e.showString(""+
this.vwr.findSpaceGroup(null,c,null,null,null,null,1));return;case 1086324752:e.iToken=1;c=2==this.slen?null:this.atomExpressionAt(2);e.checkLast(e.iToken);this.chk||e.showString(this.vwr.calculateChirality(c));return;case 1631586315:this.checkLength(2);if(this.chk)return;d=this.vwr.calculateFormalCharges(null);this.showString(J.i18n.GT.i(J.i18n.GT.$("{0} charges modified"),d));return;case 1075838996:this.checkLength(2);this.chk||this.vwr.ms.assignAromaticBondsBs(!0,null);return;case 1613238294:2!=
e.slen&&(c=(b=1639976963==this.tokAt(++e.iToken))?this.vwr.bsA():this.atomExpressionAt(e.iToken),!b&&1639976963!=this.tokAt(++e.iToken)&&(f=this.atomExpressionAt(e.iToken)));if(this.chk)return;d=this.vwr.autoHbond(c,f,!1);-2147483648!=d&&e.report(J.i18n.GT.i(J.i18n.GT.$("{0} hydrogen bonds"),Math.abs(d)),!1);return;case 1612709900:a=this.tokAt(2);(b=1073742335==a)?e.iToken++:528443==a&&e.iToken++;c=this.slen==e.iToken+1?null:this.atomExpressionAt(e.iToken+1);null==c&&528443==a&&(c=this.vwr.getAtomBitSet("_C & connected(3) & !connected(double)"));
e.checkLast(e.iToken);this.chk||(this.vwr.addHydrogens(c,0),b&&(null==c&&(c=this.vwr.bsA()),this.vwr.makeConnections(0.1,1E8,515,1073742025,c,c,null,!1,!1,0),this.vwr.ms.assignAromaticBondsBs(!0,null)));return;case 1111492619:e.iToken=1;c=2==this.slen?null:this.atomExpressionAt(2);e.checkLast(e.iToken);this.chk||e.getPartialCharges(c);return;case 1088421903:case 1275068447:this.chk||(1275203608==this.tokAt(2)?(a=4==this.tokAt(3)?this.stringParameter(3):null,c=null!=a||3==this.slen?null:this.atomExpressionAt(3),
c=B(-1,[a,null,c]),this.showString(e.getShapePropertyData(21,"symmetry",c)?c[1]:"")):(c=2==this.slen?this.vwr.bsA():this.atomExpressionAt(2),this.showString(this.vwr.ms.calculatePointGroup(c))));return;case 1111490574:this.checkLength(2);this.chk||(this.vwr.calculateStraightness(),this.vwr.addStateScript("set quaternionFrame '"+this.vwr.getQuaternionFrame()+"'; calculate straightness",!1,!0));return;case 1639976963:c=4>this.slen||this.isFloatParameter(3)?null:this.atomExpressionAt(2);switch(this.tokAt(++e.iToken)){case 4138:break;
case 1111490587:if(this.chk)return;e.showString(this.vwr.getAnnotationParser(!0).calculateDSSRStructure(this.vwr,c));return;case 1073741915:b=!0;d=this.slen==e.iToken+1?-1:G(this.floatParameter(++e.iToken));break;case 0:b=this.vwr.getBoolean(603979826);break;default:this.invArg()}this.chk||this.showString(this.vwr.calculateStructures(c,b,!0,d));return;case 659482:c=e.iToken+1<this.slen?this.atomExpressionAt(++e.iToken):null;f=e.iToken+1<this.slen?this.atomExpressionAt(++e.iToken):null;this.checkLength(++e.iToken);
this.chk||(d=this.vwr.calculateStruts(c,f),0<d&&(this.setShapeProperty(1,"type",Integer.$valueOf(32768)),e.setShapePropertyBs(1,"color",Integer.$valueOf(16777215),null),e.setShapeTranslucency(1,"","translucent",0.5,null),this.setShapeProperty(1,"type",Integer.$valueOf(1023))),this.showString(J.i18n.GT.i(J.i18n.GT.$("{0} struts added"),d)));return;case 2097180:a=!0;case 1111490575:b=!1;switch(this.tokAt(2)){case 134217759:e.iToken++;break;case 0:b=!a;break;case 1073741952:b=!0;e.iToken++;break;default:b=
!0}c=e.iToken+1<this.slen?this.atomExpressionAt(++e.iToken):this.vwr.bsA();this.checkLength(++e.iToken);this.chk||this.vwr.calculateSurface(c,b?3.4028235E38:-1);return}e.errorStr2(53,"CALCULATE","3D? aromatic? hbonds? hydrogen? formalCharge? partialCharge? pointgroup? straightness? structure? struts? surfaceDistance FROM? surfaceDistance WITHIN?")});n(l,"capture",function(){if(!this.chk&&!this.vwr.allowCapture())this.showString("Cannot capture on this platform");else{var a=this.vwr.captureParams,
b=null==a?"GIF":a.get("type"),c=0,f=0,e=this.e.slen,d="",h=1073742070!=this.vwr.am.animationReplayMode,j=1,g=this.tokAt(j),m=603979967==g;m&&(g=this.tokAt(++j));var p=null;switch(0==g?g=102409:g){case 4:d=this.e.optParameterAsString(j++);if(0==d.length){f=102409;break}b=d.toLowerCase();b.endsWith(".gift")||b.endsWith(".pngt")?(m=!0,d=d.substring(0,d.length-1),b=d.toLowerCase()):!b.endsWith(".gif")&&!b.contains(".png")&&(d+=".gif");b.endsWith(".png")?(b.endsWith("0.png")||(d=d.substring(0,d.length-
4)+"0000.png"),b="PNG"):b="GIF";m&&(b+="T");g=d.indexOf("0000.");g=0>g||g!=d.lastIndexOf(".")-4;f=!1;528411==this.tokAt(j)&&(h=!0,this.tokAt(++j));switch(this.tokAt(j)){case 134222850:p=this.stringParameter(++j);break;case 1073742129:f=!0;case 1611141175:a="y";h=!0;j++;f?(j<e&&2!=this.tokAt(j)&&(a=this.e.optParameterAsString(j++).toLowerCase()),p="rotate Y 10 10;rotate Y -10 -10;rotate Y -10 -10;rotate Y 10 10",e=j<e?this.intParameter(j++):5,p=0>e?JU.PT.rep(p,"10;",""+-e+";"):JU.PT.rep(p,"10",""+
e)):(j<e&&(a=this.e.optParameterAsString(j++).toLowerCase()),p="rotate Y 360 30;");if(this.chk)return;this.vwr.setNavigationMode(!1);if(""===a||0>"xyz".indexOf(a))a="y";p=JU.PT.rep(p,"Y",a);break;case 3:case 2:c=this.floatParameter(j++)}if(this.chk)return;if(null!=p){p="set waitformoveto true;"+p+";set waitformoveto "+this.vwr.g.waitForMoveTo;p="capture "+(m?"transparent ":"")+JU.PT.esc(d)+(h?" LOOP;":";")+p+";capture end;";this.e.cmdScript(0,null,p,null);return}f=1073742031;a=new java.util.Hashtable;
m=this.vwr.getInt(553648132);g&&(a.put("streaming",Boolean.TRUE),h||this.showString(J.i18n.GT.o(J.i18n.GT.$("Note: Enable looping using the LOOP keyword just after the file name or {0}"),B(-1,["ANIMATION MODE LOOP"]))),this.showString(J.i18n.GT.o(J.i18n.GT.$("Animation delay based on: {0}"),B(-1,["ANIMATION FPS "+m]))));a.put("captureFps",Integer.$valueOf(m));break;case 102409:case 1073741874:null!=a&&a.put("captureSilent",Boolean.TRUE);case 1073742335:case 1073742334:this.checkLength(-2);f=g;break;
default:this.invArg()}this.chk||null==a||(a.put("type",b),b=Integer.$valueOf(this.vwr.getBackgroundArgb()),a.put("backgroundColor",b),a.put("fileName",d),a.put("quality",Integer.$valueOf(-1)),a.put("endTime",Long.$valueOf(0>=c?-1:System.currentTimeMillis()+Y(1E3*c))),a.put("captureMode",JS.T.nameOf(f).toLowerCase()),a.put("captureLooping",h?Boolean.TRUE:Boolean.FALSE),c=this.vwr.processWriteOrCapture(a),null==c&&(c="canceled"),JU.Logger.info(c))}});n(l,"centerAt",function(){var a=this.getToken(1).tok;
switch(a){case 1073741826:case 96:case 1812599299:break;default:this.invArg()}var b=JU.P3.new3(0,0,0);5==this.slen?(b.x=this.floatParameter(2),b.y=this.floatParameter(3),b.z=this.floatParameter(4)):this.e.isCenterParameter(2)?(b=this.centerParameter(2),this.e.checkLast(this.e.iToken)):this.checkLength(2);!this.chk&&!this.vwr.isJmolDataFrame()&&this.vwr.tm.setCenterAt(a,b)});n(l,"compare",function(){var a=this.e,b=!1,c=!1,f=!1,e=!1,d=!1,h=null,j=null,g=null,m=null,p=null,s=null;a.iToken=0;var v=this.isFloatParameter(1)?
this.floatParameter(++a.iToken):NaN,k=null,u=null,q=null,e=0;if(4115==this.tokAt(1))u=this.vwr.bsA();else if(u=this.atomExpressionAt(1),a.isArrayParameter(++a.iToken))k=a.getPointArray(a.iToken,-1,!1);else if(1153433601!=(e=this.tokAt(a.iToken))&&4115!=e)q=this.atomExpressionAt(a.iToken);var l=null,t=!1,n=!1,x=null,r=JU.BSUtil.copy(u);null!=q&&r.or(q);for(var A=null==k&&null!=q&&r.equals(u),r=A,F=1153433601==e,I=!1,y=a.iToken+1;y<this.slen;++y)switch(this.getToken(y).tok){case 4115:r=!0;null==q&&
(q=JU.BSUtil.copy(u));break;case 134218757:if(t=!0,e=this.tokAt(y+1),4!=e&&1275203608!=e){x="*";break}case 134218756:x=(n=1275203608==this.tokAt(++y))?"polyhedra":this.stringParameter(y);if(x.equalsIgnoreCase("polyhedra")||x.equalsIgnoreCase("polyhedron"))n=!0;break;case 1677721602:c=d=!0;x=this.paramAsStr(++y);x.equalsIgnoreCase("SMILES")&&(t=!0,1612709900==this.e.tokAt(y+1)?(x="H",y++):x="*");break;case 3:case 2:v=Math.abs(this.floatParameter(y));break;case 268436992:break;case 2109448:l=this.atomExpressionAt(++y);
y=a.iToken;break;case 10:case 1073742325:null!=s&&this.invArg();g=this.atomExpressionAt(a.iToken);e=A?0:this.tokAt(a.iToken+1);m=null==k&&a.isArrayParameter(a.iToken+1)?null:10==e||1073742325==e?this.atomExpressionAt(++a.iToken):JU.BSUtil.copy(g);null!=l&&(g.and(l),null!=m&&m.and(l));null==m?(e=a.iToken,k=a.getPointArray(a.iToken+1,-1,!1),null==k?a.iToken=e:I=!0):null!=q&&m.and(q);null==p&&(p=new JU.Lst);p.addLast(B(-1,[g,null==m?k:m]));F&&(k=null);y=a.iToken;break;case 1275203608:t=n=!0;break;case 4125:break;
case 7:null!=p&&this.invArg();b=!0;h=a.getQuaternionArray(a.theToken.getList(),1073742001);this.getToken(++y);j=a.getQuaternionArray(a.theToken.getList(),1073742001);null==s&&(s=new JU.Lst);s.addLast(B(-1,[h,j]));break;case 1073742077:b=!0;break;case 1153433601:F=!0;b=!1;break;case 134217751:b=!1;break;case 528432:c=!0;break;case 4160:f=!0;break;default:this.invArg()}if(!this.chk){r&&(v=0);Float.isNaN(v)||0>v?v=1:!c&&!f&&(c=f=!0);e=0!=v;(F=!b&&null==x&&!n||null!=k)&&J.api.Interface.getInterface("JU.Eigen",
this.vwr,"script");null==p&&null==s&&(n&&null==l&&(l=this.vwr.getAtomBitSet("polyhedra")),null==l?(g=F?this.vwr.getAtomBitSet("spine"):new JU.BS,0>g.nextSetBit(0)?(g=u,m=q):(m=JU.BSUtil.copy(g),g.and(u),m.and(q))):(g=JU.BSUtil.copy(u),m=JU.BSUtil.copy(q),g.and(l),g.and(u),null!=m&&(m.and(l),m.and(q))),p=new JU.Lst,p.addLast(B(-1,[g,m])));A=null;if(r)for(var A=this.vwr.ms.getModelBS(u,!1),l=Array(A.cardinality()),y=0,H=A.nextSetBit(0);0<=H;H=A.nextSetBit(H+1),y++)l[y]=this.vwr.getModelUndeletedAtomsBitSet(H);
else A=JU.BSUtil.newAndSetBit(0),l=B(-1,[u]);for(var D=0,H=A.nextSetBit(0);D<l.length;D++,H=A.nextSetBit(H+1)){var u=l[D],w=Q(2,0);if(r&&n&&0==D)q=u;else{var E=null,C=new JU.Lst,P=null,M=r?new JU.Lst:p;if(!I)for(y=0;y<p.size();++y){var K=p.get(y);r&&M.addLast(K=B(-1,[JU.BSUtil.copy(K[0]),K[1]]));K[0].and(u)}var L=null,G=null;if(F){null!=k&&(M.clear(),M.addLast(B(-1,[g,k])));try{P=this.vwr.getCenterAndPoints(M,!0)}catch(O){if(R(O,Exception))this.invArg();else throw O;}E=P[0].length-1;for(y=1;y<=E;y++){C=
P[0][y];K=P[1][y];if(!N(C,"JM.Atom")||!N(K,"JM.Atom"))break;r||JU.Logger.info(" atom 1 "+C.getInfo()+"\tatom 2 "+K.getInfo())}E=JU.Measure.calculateQuaternionRotation(P,w);y=Float.isNaN(w[1])?NaN:Math.round(100*w[0])/100;w=Float.isNaN(w[1])?NaN:Math.round(100*w[1])/100;this.showString("RMSD "+y+" --\x3e "+w+" Angstroms")}else if(b){if(null==s)for(y=0;y<M.size();y++){K=M.get(y);h=this.vwr.getAtomGroupQuaternions(K[0],2147483647);j=this.vwr.getAtomGroupQuaternions(K[1],2147483647);for(E=0;E<h.length&&
E<j.length;E++)C.addLast(j[E].div(h[E]))}else for(E=0;E<h.length&&E<j.length;E++)C.addLast(j[E].div(h[E]));w[0]=0;h=C.toArray(Array(C.size()));E=JU.Quat.sphereMean(h,w,1E-4);this.showString("RMSD = "+w[0]+" degrees")}else{y=new JU.M4;L=new JU.P3;if(null!=u&&null!=x&&("H".equals(x)||"*".equals(x)||"".equals(x)))try{x=this.vwr.getSmilesOpt(null==g?u:g,-1,-1,32768|("H".equals(x)?4096:0),null)}catch(U){if(R(U,Exception))a.evalError(U.getMessage(),null);else throw U;}if(d){var S;if(null==u||null==q||null==
(S=a.getSmilesExt().getFlexFitList(u,q,x,!t)))break;this.vwr.setDihedrals(S,null,1)}n?(w=JU.BS.copy(g),w.and(u),C=JU.BS.copy(m),C.and(q),w=a.getSmilesExt().mapPolyhedra(w.nextSetBit(0),C.nextSetBit(0),t,y)):(this.showString("COMPARE using "+(t?"SMILES ":"SMARTS ")+x),w=new JU.Lst,C=new JU.Lst,w=a.getSmilesExt().getSmilesCorrelation(null==g?u:g,null==m?q:m,x,w,C,y,null,!1,null,L,!1,32|(t?1:2)));if(Float.isNaN(w)){this.showString("structures do not match from "+u+" to "+q);break}f&&(G=new JU.V3,y.getTranslation(G));
c&&(E=new JU.M3,y.getRotationScale(E),E=JU.Quat.newM(E));this.showString("RMSD = "+w+" Angstroms");r&&(y=this.vwr.getV0abc(H,B(-1,[y])),null!=y&&this.vwr.ms.setModelCagePts(H,y,null))}null!=P&&(L=P[0][0]);null==L&&(P=this.vwr.getCenterAndPoints(M,!0),L=P[0][0]);M=new JU.P3;K=NaN;f&&(null==G&&(G=JU.V3.newVsub(P[1][0],L)),K=1E10);if(c&&(null==E&&a.evalError("option not implemented",null),M.add2(L,E.getNormal()),K=E.getTheta(),0==K&&f))if(0.01<G.length())K=1E10;else if(r)continue;else c=f=e=!1;if(!Float.isNaN(K)&&
!Float.isNaN(M.x)&&(C=null,c&&(f&&0!=v)&&(w=this.vwr.ms.getAtomPointVector(u),y=JS.ScriptMathProcessor.getMatrix4f(E.getMatrix(),G),C=JU.Measure.transformPoints(w,y,L)),a.useThreads()||(e=!1),this.vwr.rotateAboutPointsInternal(a,L,M,K/v,K,e,u,G,C,null,null,!1)&&e&&a.isJS))throw new JS.ScriptInterruption(a,"compare",1);}}}});n(l,"configuration",function(){var a=null,b=this.chk?null:this.vwr.bsA();if(1==this.slen){if(this.chk)return;a=this.vwr.ms.setConformation(b);this.vwr.ms.addStateScript("select",
null,b,null,";configuration",!0,!1)}else{var b=-2147483648,c=null;4==this.tokAt(1)?b=-1E3-(this.stringParameter(this.e.checkLast(1))+" ").codePointAt(0):2==this.tokAt(1)?b=this.intParameter(this.e.checkLast(1)):(c=a=this.atomExpressionAt(1),b=4==this.tokAt(this.e.iToken)?-1E3-(this.stringParameter(this.e.checkLast(this.e.iToken+1))+" ").codePointAt(0):this.intParameter(this.e.checkLast(this.e.iToken+1)));if(this.chk)return;this.vwr.addStateScript("configuration "+(null==c?"":JU.Escape.eBS(a)+" ")+
b+";",!0,!1);a=this.vwr.ms.getConformation(this.vwr.am.cmi,b,!0,c)}this.setShapeProperty(1,"type",Integer.$valueOf(30720));this.e.setShapeSizeBs(1,0,a);this.vwr.autoHbond(a,a,!0);this.vwr.selectStatus(a,!1,0,!this.e.doReport(),!1)});n(l,"measure",function(){var a=this.e,b=null,c=0,f=null;if(2==this.slen)switch(this.tokAt(1)){case 1073742334:this.setShapeProperty(6,"hideAll",Boolean.TRUE);return;case 12291:this.chk||this.vwr.clearAllMeasurements();return;case 1113589787:this.chk||this.showMeasureCount(!0);
return}this.vwr.shm.loadShape(6);switch(this.tokAt(1)){case 134218756:var e=this.stringParameter(3==this.slen?2:4);if(this.chk)return;var d=this.vwr.ms.at,h=this.vwr.ms.ac,b=null;try{b=this.vwr.getSmilesMatcher().getCorrelationMaps(e,d,h,this.vwr.bsA(),2)}catch(j){if(R(j,Exception))a.evalError(j.getMessage(),null);else throw j;}if(null==b)return;this.setShapeProperty(6,"maps",b);return}switch(this.slen){case 2:switch(this.getToken(1).tok){case 0:case 1073742335:this.vwr.shm.loadShape(6);this.setShapeProperty(6,
"hideAll",Boolean.FALSE);return;case 1073742001:this.chk||a.showStringPrint(this.vwr.getMeasurementInfoAsString(),!1);return;case 4:this.setShapeProperty(6,"setFormats",this.stringParameter(1));return}a.errorStr(24,"ON, OFF, DELETE");break;case 3:switch(this.getToken(1).tok){case 12291:if(1073742327==this.getToken(2).tok)this.chk||this.vwr.clearAllMeasurements();else{var g=this.intParameter(2)-1;this.chk||this.vwr.deleteMeasurement(g)}return}}for(var m=0,p=0,s=-1,v=-1,k=-1,u=O(5,0),q=Q(-1,[3.4028235E38,
3.4028235E38]),l=!1,t=!1,n=!1,x=!0,r=!1,A=null,F=null,e=268438018,B=d=null,y=h=null,H=new JU.Lst,r=new JU.BS,D=null,w=null,E=null,C=0,P=0,M=NaN,K=null,g=1;g<this.slen;++g)switch(this.getToken(g).tok){default:this.error(15);break;case 1073741974:1!=g&&this.invArg();b=a.optParameterAsString(++g);continue;case 1073741824:a.errorStr(24,"ALL, ALLCONNECTED, DELETE");break;case 1275082241:e=1275082241;if(1073742327==this.tokAt(g+1)&&this.slen==g+2){this.chk||(this.vwr.setShapeProperty(6,"selectall",null),
this.showMeasureCount(!0));return}break;case 1113589787:(0<H.size()||0<C||null!=b)&&this.invArg();e=1275082241;if(this.chk)D=new JU.BS;else if(D=this.vwr.getShapeProperty(6,"selected"),0==D.cardinality())return;l=!0;break;case 268439040:134217736!=this.tokAt(g+1)&&this.invArg();g++;n=!0;break;case 1073741832:K=this.paramAsStr(++g).toLowerCase();break;case 134217736:case 1073741834:case 1073742327:t=1073741834==a.theTok;v=-1;l=!0;t&&n&&this.invArg();break;case 1765808134:c=JU.C.getColix(a.getArgbParam(++g));
g=a.iToken;break;case 1073742066:a.isPoint3f(++g)?(f=this.getPoint3f(g,!1),f=Q(-1,[1,f.x,f.y,f.z,0,0,0])):f=a.floatParameterSet(g,7,7);g=a.iToken;break;case 1665140738:case 1073741917:P=G((1665140738==a.theTok?2E3:1E3)*this.floatParameter(++g));null!=b&&0>=P&&(P=-1);break;case 3:null!=A&&this.invArg();x=l=!0;k=(k+1)%2;q[k]=this.floatParameter(g);break;case 12291:268438018!=e&&1275082241!=e&&this.invArg();e=12291;break;case 4114:var L=this.floatParameter(++g),S=this.paramAsStr(++g),T=this.paramAsStr(++g);
this.chk||(y=this.vwr.getFont3D(S,T,L));break;case 2:L=this.intParameter(g);if(l)x=!0,k=(k+1)%2,q[k]=L;else{v=this.vwr.ms.getFirstAtomIndexFromAtomNumber(L,this.vwr.getVisibleFramesBitSet());if(!this.chk&&0>v)return;null!=w&&this.invArg();4<(u[0]=++m)&&a.bad();u[m]=v}break;case 1094713359:s=this.intParameter(++g);break;case 1073742334:268438018!=e&&this.invArg();e=1073742334;break;case 1073742335:268438018!=e&&this.invArg();e=1073742335;break;case 1073742114:x=l=!0;v=-1;break;case 1073741989:case 1073741990:F=
Boolean.$valueOf(1073741989==a.theTok);l=!0;n=1073741990==a.theTok;break;case 1648363544:0<=k&&this.invArg();A=a.encodeRadiusParameter(g,!1,!0);if(null==A)return;A.values=q;g=a.iToken;l=n=!0;F=Boolean.$valueOf(!1);1==C&&(C++,m++,L=JU.BSUtil.copy(r),JU.BSUtil.invertInPlace(L,this.vwr.ms.ac),L.and(this.vwr.ms.getAtomsWithinRadius(5,r,!1,null,null)),H.addLast(L));break;case 12290:case 10:case 1073742325:C++;case 1073742332:case 8:case 1073742330:(0<=v||null!=D)&&this.invArg();m=Array(1);w=a.centerParameter(g,
m);if(N(m[0],"JU.BS")&&(w=r=m[0],!this.chk&&0==r.length()))return;N(w,"JU.P3")&&(m=new JU.Point3fi,m.setT(w),m.mi=s,w=m);4<(m=++p)&&a.bad();g=a.iToken;H.addLast(w);break;case 1715472409:B=this.paramAsStr(g);break;case 1073742188:M=this.floatParameter(++g);break;case 4:L=this.stringParameter(g);JM.Measurement.isUnits(L)||L.equals("default")?h=L:d=L;break;case 1073742164:E=a.tickParamAsStr(g,!1,!0,!0),g=a.iToken,e=12290}(null!=A&&(0<=k||2!=m)||1275082241!=e&&null==D&&2>m&&null==b&&(null==E||1==m))&&
a.bad();null!=d&&0!=d.indexOf(m+":")&&(d=m+":"+d);x&&q[1]<q[0]&&(q[1]=q[0],q[0]=3.4028235E38==q[1]?3.4028235E38:-200);if(!this.chk)if(r=null!=b&&null==w&&268438018==e,null!=w||null!=D||null!=E||r){null==A&&(A=new J.atomdata.RadiusData(q,0,null,null));null!=E&&(E.id="default");if(r)e=266284;else if(null!=w&&(null!=B||null!=d)&&268438018==e)e=12290;a=null;if(null!=y||null!=K||0!=c||null!=d&&(r||0<=d.indexOf("\n")))a=JM.Text.newMeasure(this.vwr,y,c);null!=a&&(a.pymolOffset=f,a.setAlignmentLCR(K));this.setShapeProperty(6,
"measure",this.vwr.newMeasurementData(b,H).set(e,null,A,B,d,h,E,t,n,F,l,P,c,a,M,D));1275082241==e&&this.showMeasureCount(!1)}else switch(a=null==b?u:b,e){case 12291:this.setShapeProperty(6,"delete",a);break;case 1073742335:this.setShapeProperty(6,"show",a);break;case 1073742334:this.setShapeProperty(6,"hide",a);break;default:this.setShapeProperty(6,null==d&&null==h?"toggle":"toggleOn",a),null!=d&&this.setShapeProperty(6,"setFormats",d)}});n(l,"showMeasureCount",function(a){var b=this.vwr.getShapeProperty(6,
"selected"),c=b.cardinality();if(a)for(a=b.nextSetBit(0);0<=a;a=b.nextSetBit(a+1))this.showString(this.vwr.shm.getShape(6).getInfoAsString(a));this.showString(c+(1==c?" measure":" measures")+" selected")},"~B");n(l,"connect",function(a){var b=this.e,c=Q(2,0),f=Array(2);f[0]=f[1]=this.vwr.bsA();var e=NaN,d=O(-1,[-2147483648]),h=0,j=131071,g=1073742026,m=!1,p=!1,s=!1,v=3.4028235E38,k=!1,l=0,q=0,n=new JU.BS,t=!1,z=0,x=0,r=0,A=!1;if(1==this.slen)this.chk||this.vwr.rebondState(b.$isStateScript);else if(1073877011==
this.tokAt(1))this.chk||this.vwr.connectNBO(this.e.optParameterAsString(2));else{for(;a<this.slen;++a){switch(this.getToken(a).tok){case 1073742335:case 1073742334:this.checkLength(2);this.chk||this.vwr.rebondState(b.$isStateScript);return;case 2:case 3:if(0<l){(p||k)&&b.error(23);j=JU.Edge.getBondOrderFromFloat(this.floatParameter(a));131071==j&&this.invArg();p=!0;break}2<++q&&b.bad();var F=this.floatParameter(a);268441090==this.tokAt(a+1)&&(F=-F/100,a++);c[h++]=F;break;case 12290:case 10:case 1073742325:(2<
l||t&&0<l)&&b.bad();(p||k)&&this.invArg();f[l++]=this.atomExpressionAt(a);t=b.isBondSet;if(2==l){for(var F=b.iToken,I=a;I<F;I++)if(1073741824==this.tokAt(I)&&this.paramAsStr(I).equals("_1")){z=a;break}b.iToken=F}a=b.iToken;break;case 1086324742:A=!0;break;case 1765808134:case 603979967:case 1073742074:k=!0;v=this.getColorTrans(b,a,!1,d);a=b.iToken;break;case 1073742086:d=1073741852==this.tokAt(2);this.checkLength(d?3:2);if(this.chk)return;this.vwr.clearModelDependentObjects();this.vwr.ms.deleteAllBonds();
e=new JU.BS;this.vwr.ms.setPdbConectBonding(0,0,e);if(d){b=b.$isStateScript&&this.vwr.getBoolean(603979872);this.vwr.ms.autoBondBs4(null,null,e,null,this.vwr.getMadBond(),b,null);this.vwr.addStateScript(b?"set legacyAutoBonding TRUE;connect PDB AUTO;set legacyAutoBonding FALSE;":"connect PDB auto;",!1,!0);return}this.vwr.addStateScript("connect PDB;",!1,!0);return;case 1073741852:case 1073741904:case 1073742025:case 1073742026:s=!0;++a!=this.slen&&this.invArg();g=b.theTok;1073741852==g&&!(131071==
j||2048==j||515==j)&&this.invArg();break;case 659482:k||(d[0]=16777215,v=0.5,e=this.vwr.getFloat(570425406),k=!0),s||(g=1073742026,s=!0);case 1073741824:if(b.isColorParam(a)){x=-a;break}case 1075838996:case 1613238294:j=this.paramAsStr(a);131071==(j=JU.Edge.getBondOrderFromString(j))&&this.invArg();p&&b.error(18);p=!0;switch(j){case 33:switch(this.tokAt(a+1)){case 3:j=JU.Edge.getPartialBondOrderFromFloatEncodedInt(this.st[++a].intValue);break;case 2:j=this.intParameter(++a)}break;case 2048:2==this.tokAt(a+
1)&&(j=this.intParameter(++a)<<11,r=this.floatParameter(++a));break;case 65537:s||(g=1073742025,s=!0)}break;case 1665140738:e=this.floatParameter(++a);k=!0;break;case 1073742333:++a!=this.slen&&this.invArg();case 12291:g=12291;m=!0;k=!1;break;default:x=a}0<a&&(x==-a||x==a&&b.isColorParam(a)?(k=!0,d[0]=b.getArgbParam(a),a=b.iToken):x==a&&this.invArg())}if(!this.chk){2>h&&(0==h&&(c[0]=1E8),c[1]=c[0],c[0]=0.1);k&&(p||(j=65535),s||(g=1073742025));p=h=0;if(0<z){r=new JU.BS;this.vwr.definedAtomSets.put("_1",
r);A=f[0];for(s=A.nextSetBit(0);0<=s;s=A.nextSetBit(s+1))r.set(s),f=this.vwr.makeConnections(c[0],c[1],j,g,r,this.atomExpressionAt(z),n,t,!1,0),h+=Math.abs(f[0]),p+=f[1],r.clear(s)}else f=this.vwr.makeConnections(c[0],c[1],j,g,f[0],f[1],n,t,A,r),h+=Math.abs(f[0]),p+=f[1];c=b.doReport();m?c&&b.report(J.i18n.GT.i(J.i18n.GT.$("{0} connections deleted"),p),!1):(k&&(this.vwr.selectBonds(n),Float.isNaN(e)||b.setShapeSizeBs(1,Math.round(2E3*e),null),this.finalizeObject(1,d[0],v,0,!1,null,0,n),this.vwr.selectBonds(null)),
c&&b.report(J.i18n.GT.o(J.i18n.GT.$("{0} new bonds; {1} modified"),B(-1,[Integer.$valueOf(h),Integer.$valueOf(p)])),!1))}}},"~N");n(l,"console",function(){switch(this.getToken(1).tok){case 1073742334:this.chk||this.vwr.showConsole(!1);break;case 1073742335:this.chk||this.vwr.showConsole(!0);break;case 1073741882:this.chk||this.vwr.sm.clearConsole();break;case 134221856:this.showString(this.stringParameter(2));break;default:this.invArg()}});n(l,"data",function(){var a=this.e,b=null,c=null,f=!1,e;switch(a.iToken=
this.slen){case 5:b=this.paramAsStr(2);case 4:case 2:c=this.paramAsStr(1);if(c.equalsIgnoreCase("clear")){this.chk||this.vwr.setData(null,null,0,0,0,0,0);return}if(0<=(e=c.indexOf("@")))b=""+a.getParameter(c.substring(e+1),4,!0),c=c.substring(0,e).trim();else if(null==b&&0<=(e=c.indexOf(" ")))b=c.substring(e+1).trim(),c=c.substring(0,e).trim(),f=!0;break;default:a.bad()}e=c.substring(0,(c+" ").indexOf(" ")).toLowerCase();if(e.equals("model")||e.equals("append"))a.cmdLoad();else if(!this.chk){var d=
0<=c.toLowerCase().indexOf("(default)");if(e.equals("connect_atoms"))this.vwr.ms.connect(this.parseDataArray(b,!1));else if(0==e.indexOf("ligand_"))this.vwr.setLigandModel(c.substring(7).toUpperCase()+"_data",b.trim());else if(0==e.indexOf("file_"))this.vwr.setLigandModel(c.substring(5)+"_file",b.trim());else if(a=Array(4),e.equals("element_vdw")){a[0]=e;a[1]=b.$replace(";","\n");b=JU.Elements.elementNumberMax;e=O(b+1,0);for(d=1;d<=b;d++)e[d]=d;a[2]=e;a[3]=Integer.$valueOf(0);this.vwr.setData("element_vdw",
a,b,0,0,0,0)}else if(0==e.indexOf("data2d_"))a[0]=c,a[1]=this.parseDataArray(b,!1),a[3]=Integer.$valueOf(2),this.vwr.setData(c,a,0,0,0,0,0);else if(0==e.indexOf("data3d_"))a[0]=c,a[1]=this.parseDataArray(b,!0),a[3]=Integer.$valueOf(3),this.vwr.setData(c,a,0,0,0,0,0);else{var h=JU.PT.getTokens(c);if(0==e.indexOf("property_")&&!(2==h.length&&h[1].equals("set"))){d=this.vwr.bsA();a[0]=e;var j=f?0:this.vwr.getP("propertyAtomNumberField").intValue(),g=f?0:this.vwr.getP("propertyAtomNumberColumnCount").intValue(),
m=f?-2147483648:this.vwr.getP("propertyDataField").intValue(),p=f?0:this.vwr.getP("propertyDataColumnCount").intValue();!f&&0<=c.indexOf(" ")&&(3==h.length&&(j=JU.PT.parseInt(h[1]),m=JU.PT.parseInt(h[2])),5==h.length&&(j=JU.PT.parseInt(h[1]),g=JU.PT.parseInt(h[2]),m=JU.PT.parseInt(h[3]),p=JU.PT.parseInt(h[4])));0>j&&(j=0);0>m&&(m=0);c=this.vwr.ms.ac;f=null;h=JU.BS.newN(c);if(0<j){for(var f=O(c+2,0),s=0;s<=c;s++)f[s]=-1;for(s=d.nextSetBit(0);0<=s;s=d.nextSetBit(s+1)){var v=this.vwr.ms.at[s].getAtomNumber();
v>c+1||(0>v||h.get(v))||(h.set(v),f[v]=s)}a[2]=f}else a[2]=JU.BSUtil.copy(d);a[1]=b;a[3]=Integer.$valueOf(0);this.vwr.setData(e,a,c,j,g,m,p)}else"occupany".equals(e)&&(e="occupancy"),j=JM.AtomCollection.getUserSettableType(e),-1<j?this.vwr.setAtomData(j,e,b,d):(a[0]=c,a[1]=b,a[3]=Integer.$valueOf(0),this.vwr.setData(e,a,0,0,0,0,0))}}});n(l,"ellipsoid",function(){var a=this.e,b=0,c=1,f=3.4028235E38,e=!1,d=!1;this.setShapeProperty(20,"thisID",null);switch(this.getToken(1).tok){case 1073742335:b=2147483647;
break;case 1073742334:break;case 2:b=this.intParameter(1);break;case 36867:this.e.sm.loadShape(20);this.setShapeProperty(20,"select",this.paramAsStr(2));c=a.iToken;d=e=!0;break;case 1073741974:case 268441089:case 1073741824:this.e.sm.loadShape(20);1073741974==a.theTok&&c++;this.setShapeId(20,c,!1);c=a.iToken;e=!0;break;default:this.invArg()}if(e){for(b=O(-1,[-2147483648]);++c<this.slen;){var e=this.paramAsStr(c),h=null;this.getToken(c);if(!d)switch(a.theTok){case 1073742330:e="points";h=Array(3);
h[0]=a.objectNameParameter(++c);if(this.chk)continue;a.getShapePropertyData(24,"getVertices",h);break;case 1825200146:h=this.e.optParameterAsString(++c);if(0==h.length)continue;break;case 1611272194:var h=Array(3),j=null;switch(this.getToken(c+1).tok){case 11:for(var c=a.theToken.value,g=3;0<=--g;)c.getColumnV(g,h[g]=new JU.V3);break;case 1073742195:c+=2;case 268437504:j=new JU.Lst;for(g=3;0<=--g;){switch(this.tokAt(++c)){case 268437504:break;default:a.isCenterParameter(c)?j.addLast(JS.SV.newV(8,
this.centerParameter(c))):268437504!=this.tokAt(c)&&j.addLast(this.getToken(c))}c=a.iToken}268437505!=this.getToken(++c).tok&&this.invArg();break;case 7:j=a.theToken.getList();switch(j.size()){case 1:j=new JU.Lst;for(g=3;0<=--g;)j.addLast(this.getToken(++c));break;case 3:break;default:this.invArg()}break;default:for(g=0;3>g;g++)h[g]=new JU.V3,h[g].setT(this.centerParameter(++c)),c=a.iToken}if(null!=j)for(c=3;0<=--c;)switch(g=j.get(c),g.tok){case 7:h[c]=JU.V3.new3(JS.SV.fValue(g.getList().get(0)),
JS.SV.fValue(g.getList().get(1)),JS.SV.fValue(g.getList().get(2)));break;case 8:h[c]=JU.V3.newV(g.value)}c=a.iToken;break;case 12289:h=this.centerParameter(++c);c=a.iToken;break;case 1094713359:h=Integer.$valueOf(this.intParameter(++c));break;case 12291:h=Boolean.TRUE,this.checkLength(c+1)}if(null==h)switch(a.theTok){case 1073742335:e="on";h=Boolean.TRUE;break;case 1073742334:e="on";h=Boolean.FALSE;break;case 536875059:this.isFloatParameter(c+1)?h=Float.$valueOf(this.floatParameter(++c)):a.isCenterParameter(c)?
(c=this.centerParameter(c),h=Q(-1,[c.x,c.y,c.z])):h=a.floatParameterSet(++c,3,3);c=a.iToken;break;case 12290:case 10:case 1073742325:e="atoms";h=this.atomExpressionAt(c);c=a.iToken;break;case 1765808134:case 603979967:case 1073742074:f=this.getColorTrans(a,c,!0,b);c=a.iToken;continue;case 1073742075:h=this.paramAsStr(++c)}null==h&&this.invArg();this.setShapeProperty(20,e.toLowerCase(),h)}this.finalizeObject(20,b[0],f,0,!1,null,0,null);this.setShapeProperty(20,"thisID",null)}else a.setShapeSizeBs(20,
b,null)});n(l,"image",function(){this.chk||this.vwr.getConsole();var a=1,b=null;1073741974==this.tokAt(1)&&(b=this.e.optParameterAsString(++a),a++);var c=this.e.optParameterAsString(a),f=this.e.optParameterAsString(this.slen-1).equalsIgnoreCase("close");if(!f&&(this.slen==a||this.slen==a+2))c=this.slen==a+2?this.intParameter(a++):-1,a=0>c?-1:this.intParameter(a),f=new java.util.Hashtable,f.put("fileName","\u0001\u0001"+b),f.put("backgroundColor",Integer.$valueOf(this.vwr.getBackgroundArgb())),f.put("type",
"png"),f.put("quality",Integer.$valueOf(-1)),f.put("width",Integer.$valueOf(c)),f.put("height",Integer.$valueOf(a)),this.chk||this.vwr.processWriteOrCapture(f);else{if(f)switch(this.slen){case 2:c="closeall";break;case 3:case 4:break;default:this.checkLength(0)}this.chk||this.vwr.fm.loadImage(f?"\u0001close":c,"\u0001"+c+"\u0001"+("".equals(b)||null==b?null:b),!1)}});n(l,"invertSelected",function(){var a=this.e,b=null,c=null,f=null,e=-2147483648,d=1;switch(this.tokAt(1)){case 0:if(this.chk)return;
f=this.vwr.bsA();b=this.vwr.ms.getAtomSetCenter(f);this.vwr.invertAtomCoord(b,null,f,-1,!1);return;case 528443:case 1153433601:d++;case 10:case 1073742325:case 12290:f=this.atomExpressionAt(d);if(!a.isAtomExpression(a.iToken+1)){a.checkLengthErrorPt(a.iToken+1,a.iToken+1);if(!this.chk)for(a=f.nextSetBit(0);0<=a;a=f.nextSetBit(a+1))this.vwr.invertAtomCoord(null,null,f,a,!1);return}e=f.nextSetBit(0);f=this.atomExpressionAt(a.iToken+1);break;case 134217751:b=a.centerParameter(2,null);break;case 134217750:c=
a.planeParameter(1,!1);break;case 134219777:c=a.hklParameter(2,null,!0)}a.checkLengthErrorPt(a.iToken+1,1);null==c&&(null==b&&-2147483648==e)&&this.invArg();this.chk||-1!=e&&this.vwr.invertSelected(b,c,e,f)});n(l,"mapProperty",function(){for(var a,b,c,f,e,d=0,h=0,j=0,g=this.e;;){if(1113589787==this.tokAt(1))a=this.vwr.bsA(),b=this.atomExpressionAt(2),c=f="selected";else{a=this.atomExpressionAt(1);if(1073742336!=this.tokAt(++g.iToken)||!JS.T.tokAttr(d=this.tokAt(++g.iToken),1077936128))break;c=this.paramAsStr(g.iToken);
b=this.atomExpressionAt(++g.iToken);if(1073742336!=this.tokAt(++g.iToken)||!JS.T.tokAttr(h=this.tokAt(++g.iToken),2048))break;f=this.paramAsStr(g.iToken)}e=JS.T.tokAttr(j=this.tokAt(g.iToken+1),1077936128)?this.paramAsStr(++g.iToken):JS.T.nameOf(j=1094715393);g.checkLast(g.iToken);if(this.chk)return;var m=null;this.showString("mapping "+c.toUpperCase()+" for "+a.cardinality()+" atoms to "+f.toUpperCase()+" for "+b.cardinality()+" atoms using "+e.toUpperCase());if(JS.T.tokAttrOr(d,1094713344,1111490560)&&
JS.T.tokAttrOr(h,1094713344,1111490560)&&JS.T.tokAttrOr(j,1094713344,1111490560)){var p=this.getBitsetPropertyFloat(a,d|224,null,NaN,NaN),s=this.getBitsetPropertyFloat(a,j|224,null,NaN,NaN),d=this.getBitsetPropertyFloat(b,j|224,null,NaN,NaN),v=1715472409==h,k=Q(v?this.vwr.ms.ac:d.length,0),m=new JU.BS;if(p.length==s.length){for(var l=new java.util.Hashtable,j=0;j<p.length;j++)l.put(Float.$valueOf(s[j]),Float.$valueOf(p[j]));p=-1;for(j=s=0;j<d.length;j++){var p=b.nextSetBit(p+1),q=l.get(Float.$valueOf(d[j]));
null!=q&&(m.set(p),k[v?p:s]=q.floatValue(),s++)}v?this.vwr.setData(f,B(-1,[f,k,m,Integer.$valueOf(1),Boolean.TRUE]),this.vwr.ms.ac,0,0,2147483647,0):JS.T.tokAttr(h,2048)?this.vwr.setAtomProperty(m,h,0,0,null,k,null):this.error(56)}}if(null==m){c=this.getBitsetIdent(a,"{"+e+"=%["+e+"]}."+f+" = %["+c+"]",null,!1,2147483647,!1);a=new JU.SB;for(j=0;j<c.length;j++)0>c[j].indexOf("null")&&a.append(c[j]).appendC("\n");JU.Logger.debugging&&JU.Logger.debug(a.toString());c=JU.BSUtil.copy(this.vwr.slm.bsSubset);
this.vwr.slm.setSelectionSubset(b);try{g.runScript(a.toString())}catch(n){if(R(n,Exception))b=n,this.vwr.slm.setSelectionSubset(c),g.errorStr(-1,"Error: "+b.getMessage());else if(R(n,Error))b=n,this.vwr.slm.setSelectionSubset(c),g.errorStr(-1,"Error: "+b.toString());else throw n;}this.vwr.slm.setSelectionSubset(c)}this.showString("DONE");return}this.invArg()});n(l,"minimize",function(a){for(var b=null,c=2147483647,f=0,e=!1,d=!1,h=null,j=!1,g=!1,m=this.vwr.getMinimizer(!1),p=0,s=a?2:1;s<this.slen;s++)switch(this.getToken(s).tok){case 1073741905:f=
this.floatParameter(++s);continue;case 1073742114:p=this.floatParameter(++s);continue;case 1073741935:c=0;continue;case 1073741874:case 1073742162:this.checkLength(2);if(this.chk||null==m)return;m.setProperty(this.paramAsStr(s),null);return;case 1073741882:this.checkLength(2);if(this.chk||null==m)return;m.setProperty("clear",null);return;case 1073741894:1!=s&&this.invArg();b=a=0;c=O(5,0);if(1073741882==this.tokAt(++s))this.checkLength(3);else{for(;4>a&&!this.isFloatParameter(s);)c[++a]=this.atomExpressionAt(s).nextSetBit(0),
s=this.e.iToken+1;c[0]=a;1==a&&this.invArg();b=this.floatParameter(this.e.checkLast(s))}this.chk||this.vwr.getMinimizer(!0).setProperty("constraint",B(-1,[c,Float.$valueOf(b)]));return;case 12293:1!=s&&this.invArg();if(this.slen==++s){this.chk||(s=this.vwr.getMinimizer(!0).getProperty("fixed",0),null==s?this.e.showString("no atoms are fixed for minimization"):(a=s.cardinality(),this.e.showString(a+(1==a?" atom is":" atoms are")+" fixed for minimization: "+s+"\nunfix them with MINIMIZE FIX NONE")));
return}h=this.atomExpressionAt(s);0>h.nextSetBit(0)&&(h=null);s=this.e.iToken;this.chk||this.vwr.getMinimizer(!0).setProperty("fixed",h);if(s+1==this.slen)return;continue;case 1073741828:e=!0;continue;case 1073742072:case 1113589787:j=!0;break;case 1086324742:g=!0;break;case 1073742148:d=!0;break;case 266298:c=this.intParameter(++s);continue;case 10:case 1073742325:j=!0;case 1275082241:1275082241==this.e.theTok&&s++;b=this.atomExpressionAt(s);s=this.e.iToken;1073742072==this.tokAt(s+1)&&(s++,j=!0);
continue;default:this.invArg()}a&&(e||j||g)&&this.invArg();if(!this.chk)try{this.vwr.minimize(this.e,c,f,b,h,null,p,(e?16:0)|(a?256:0)|(j?32:0)|(g?64:0)|(d?1:0))}catch(v){if(R(v,Exception))throw new JS.ScriptInterruption(this.e,"minimize",1);throw v;}},"~B");n(l,"modulation",function(){var a=null,b=this.e,c=!0,f=!1,e=null,d=1;switch(this.getToken(d).tok){case 1073742334:c=!1;case 0:case 1073742335:break;case 12290:case 10:case 1073742325:e=this.atomExpressionAt(1);switch(this.tokAt(b.iToken+1)){case 1073742334:c=
!1;case 1073742335:b.iToken++}b.checkLast(b.iToken);break;case 1073742332:case 8:a=b.getPoint3f(1,!1,!0);f=1073742335==this.tokAt(b.iToken+1);break;default:var h=b.theToken.value.toString();d++;h.equalsIgnoreCase("t")?b.theTok=3:h.equalsIgnoreCase("m")||h.equalsIgnoreCase("q")?b.theTok=2:this.invArg();case 3:case 2:switch(b.theTok){case 3:this.isFloatParameter(d)?(a=this.floatParameter(d),a=JU.P3.new3(a,a,a)):a=b.getPoint3f(d,!1,!0);break;case 2:2==this.tokAt(d)?(f=this.intParameter(d),a=JU.P3.new3(f,
f,f)):a=b.getPoint3f(d,!1,!0),f=!0}break;case 536875059:c=this.floatParameter(2);this.chk||this.vwr.setFloatProperty("modulationScale",c);return}this.chk||(this.vwr.tm.setVibrationPeriod(0),this.vwr.setModulation(e,c,a,f))});n(l,"mutate",function(){var a=this.e.iToken,b,c=null,f=null,e=null,d=!1;switch(this.tokAt(++a)){case 1073741904:c="alpha";d=!0;b=null;switch(this.tokAt(++a)){case 0:this.invArg();break;default:switch(f=this.e.paramAsStr(a),a=this.e.iToken,this.tokAt(a+1)){case 0:break;case 268437504:case 1073742195:case 7:c=
null;e=this.e.floatParameterSet(++a,2,2147483647);1==e.length%2&&this.invArg();a=this.e.iToken;break;default:c=this.e.paramAsStr(++a),a=this.e.iToken}}break;case 2:this.st[1]=JS.T.o(4,""+this.st[1].value);default:b=this.atomExpressionAt(a);a=++this.e.iToken;break;case 268441089:b=this.vwr.getFrameAtoms(),a=++this.e.iToken}if(!this.chk&&null!=b){b.and(this.vwr.getFrameAtoms());var h=b.nextSetBit(0);0>h&&this.invArg();h=this.vwr.ms.at[h].mi;if(this.vwr.ms.isTrajectory(h)||!this.vwr.ms.am[h].isBioModel)return}null==
f&&(f=this.e.optParameterAsString(a));this.e.checkLast(a);if(!this.chk){a=f.startsWith("~");if(!a&&!d&&(0<=f.indexOf(".")||0>f.indexOf("-")&&3<f.length&&f.startsWith("==")))d=B(-1,[f]),f=null;else if(f=JU.PT.replaceAllCharacters(f,",; \t\n"," ").trim().toUpperCase(),!a&&0<=f.indexOf("-"))d=JU.PT.split(f,"-");else{if(a||3!=f.length||!this.vwr.getJBR().isKnownPDBGroup(f,20))f=this.vwr.getJBR().toStdAmino3(a?f.substring(1):f);d=JU.PT.getTokens(f)}this.e.iToken=this.e.slen;0<d.length&&!this.vwr.getJBR().getBioModelSet(this.vwr.ms).mutate(b,
f,d,c,e)&&this.invArg()}});n(l,"navigate",function(){var a=this.e;if(1==this.slen)a.setBooleanProperty("navigationMode",!0);else{var b=JU.V3.new3(0,1,0),c=new JU.Lst,f;if(2==this.slen)switch(this.getToken(1).tok){case 1073742335:case 1073742334:if(this.chk)return;a.setObjectMad10(34,"axes",10);this.setShapeProperty(34,"position",JU.P3.new3(50,50,3.4028235E38));a.setBooleanProperty("navigationMode",!0);this.vwr.tm.setNavOn(1073742335==a.theTok);return;case 1073742162:this.chk||this.vwr.tm.setNavXYZ(0,
0,0);return;case 8:case 1112152078:break;default:this.invArg()}!this.chk&&!this.vwr.getBoolean(603979889)&&a.setBooleanProperty("navigationMode",!0);for(var e=1;e<this.slen;e++){var d=this.isFloatParameter(e)?this.floatParameter(e++):2;0>d&&this.invArg();!this.chk&&0<d&&a.refresh(!1);switch(this.getToken(e).tok){case 8:case 1073742332:f=this.getPoint3f(e,!0);a.iToken++;a.iToken!=this.slen&&this.invArg();this.chk||this.vwr.tm.setNavXYZ(f.x,f.y,f.z);return;case 554176526:f=this.floatParameter(++e);
this.chk||c.addLast(B(-1,[Integer.$valueOf(554176526),Float.$valueOf(d),Float.$valueOf(f)]));continue;case 12289:f=this.centerParameter(++e);e=a.iToken;this.chk||c.addLast(B(-1,[Integer.$valueOf(134217751),Float.$valueOf(d),f]));continue;case 528432:switch(this.getToken(++e).tok){case 1111492629:b.set(1,0,0);e++;break;case 1111492630:b.set(0,1,0);e++;break;case 1111492631:b.set(0,0,1);e++;break;case 8:case 1073742332:b.setT(this.getPoint3f(e,!0));e=a.iToken+1;break;case 1073741824:this.invArg()}f=
this.floatParameter(e);this.chk||c.addLast(B(-1,[Integer.$valueOf(528432),Float.$valueOf(d),b,Float.$valueOf(f)]));continue;case 4160:var h=f=NaN;if(this.isFloatParameter(++e))f=this.floatParameter(e),h=this.floatParameter(++e);else switch(this.tokAt(e)){case 1111492629:f=this.floatParameter(++e);break;case 1111492630:h=this.floatParameter(++e);break;default:f=this.centerParameter(e);e=a.iToken;this.chk||c.addLast(B(-1,[Integer.$valueOf(4160),Float.$valueOf(d),f]));continue}this.chk||c.addLast(B(-1,
[Integer.$valueOf(268441090),Float.$valueOf(d),Float.$valueOf(f),Float.$valueOf(h)]));continue;case 268441088:continue;case 1112152078:f=new JU.Lst;a.isAtomExpression(e+1)?(h=this.atomExpressionAt(++e),e=a.iToken):h=this.vwr.bsA();if(this.chk)return;this.vwr.getPolymerPointsAndVectors(h,f);var j;if(0<(j=f.size())){for(var h=Array(j),g=0;g<j;g++)h[g]=f.get(g);c.addLast(B(-1,[Integer.$valueOf(1112152078),Float.$valueOf(d),h]));continue}break;case 1073742084:if(1073742330==this.getToken(e+1).tok){e++;
f=a.objectNameParameter(++e);if(this.chk)return;this.setShapeProperty(22,"thisID",f);f=this.getShapeProperty(22,"vertices");a.refresh(!1);null==f&&this.invArg();h=G(this.isFloatParameter(e+1)?this.floatParameter(++e):0);j=G(this.isFloatParameter(e+1)?this.floatParameter(++e):2147483647);c.addLast(B(-1,[Integer.$valueOf(1073742084),Float.$valueOf(d),f,null,O(-1,[h,j])]));continue}for(f=new JU.Lst;a.isCenterParameter(e+1);)f.addLast(this.centerParameter(++e)),e=a.iToken;if(0<f.size()){f=f.toArray(Array(f.size()));
this.chk||c.addLast(B(-1,[Integer.$valueOf(1073742084),Float.$valueOf(d),f,null,O(-1,[0,2147483647])]));continue}default:this.invArg()}}!this.chk&&!this.vwr.isJmolDataFrame()&&this.vwr.tm.navigateList(a,c)}});n(l,"plot",function(a){var b=this.e,c=this.vwr.am.cmi;0>c&&b.errorStr(30,"plot");var c=this.vwr.ms.getJmolDataSourceFrame(c),f=a.length-1,e=a!==this.st,d=!0,h=this.st;e&&(b.st=this.st=a);var j=e?134222350:a[0].tok,g=e||134221850==j||4138==j?0:1,m=null,p=!0,s=!1;switch(j){case 135176:p=!1;s=!0;
break;case 134222350:d=p=!1;break;case 134221856:p=!1,4==JS.CmdExt.tokAtArray(f,a)?m=this.stringParameter(f--):1073742336==JS.CmdExt.tokAtArray(f-1,a)?(m=this.paramAsStr(f-2)+"."+this.paramAsStr(f),f-=3):(b.st=this.st=h,b.iToken=this.st.length,this.error(13)),b.slen=this.slen=f+1}var e="",v=null,k="",l=!1,q=!1,n=!1,t=!1,z=Array(3),x=O(3,0),r=JU.BSUtil.copy(this.vwr.bsA()),A="; select "+JU.Escape.eBS(r)+";\n ",t=b.optParameterAsString(f).toLowerCase(),F=null,I=null,y=null,H=JS.CmdExt.tokAtArray(g,
a);4==H&&(H=JS.T.getTokFromName(a[g].value));switch(H){default:b.iToken=1;this.invArg();break;case 134221834:b.iToken=1;t="data";A="";break;case 1715472409:b.iToken=g+1;for(a=0;3>a;a++){switch(this.tokAt(b.iToken)){case 4:x[a]=JS.T.getTokFromName(b.getToken(b.iToken).value);break;default:x[a]=this.tokAt(b.iToken);break;case 0:0==a&&this.invArg();case 1287653388:case 32:case 64:a=2;continue}1715472409!=x[a]&&!JS.T.tokAttr(x[a],1077936128)&&this.invArg();z[a]=this.getToken(b.iToken).value.toString();
b.iToken++}1287653388==this.tokAt(b.iToken)&&(y=this.stringParameter(++b.iToken),d=!1,b.iToken++);32==this.tokAt(b.iToken)&&(F=this.getPoint3f(++b.iToken,!1),b.iToken++);64==this.tokAt(b.iToken)&&(I=this.getPoint3f(++b.iToken,!1),b.iToken++);t="property "+z[0]+(null==z[1]?"":" "+z[1])+(null==z[2]?"":" "+z[2]);0>r.nextSetBit(0)&&(r=this.vwr.getModelUndeletedAtomsBitSet(c));k="select "+JU.Escape.eBS(r)+";\n ";break;case 4138:t.equalsIgnoreCase("draw")&&(t=b.optParameterAsString(--f).toLowerCase());
t=f>g&&t.startsWith("r");t="ramachandran"+(t?" r":"")+(135176==j?" draw":"");break;case 134221850:case 136314895:e=' "'+this.vwr.getQuaternionFrame()+'"';k="set quaternionFrame"+e+";\n  ";l=!0;t.equalsIgnoreCase("draw")&&(s=!0,t=b.optParameterAsString(--f).toLowerCase());n=(q=t.startsWith("deriv")||t.startsWith("diff"))&&0<t.indexOf("2");q&&f--;if(t.equalsIgnoreCase("helix")||t.equalsIgnoreCase("axis"))q=s=!0,f=-1;t=((f<=g?"":b.optParameterAsString(f))+"w").substring(0,1);if(t.equals("a")||t.equals("r"))q=
!0;JU.PT.isOneOf(t,";w;x;y;z;r;a;")||b.evalError("QUATERNION [w,x,y,z,a,r] [difference][2]",null);t="quaternion "+t+(q?" difference":"")+(n?"2":"")+(s?" draw":"")}this.st=h;if(this.chk)return"";if(p&&(k+="plot "+t,h=this.vwr.ms.getJmolDataFrameIndex(c,k),0<h&&134221856!=j&&134222350!=j))return this.vwr.setCurrentModelIndexClear(h,!0),"";p=f=h=null;g=Array(3);if(1715472409==H){h=this.getBitsetPropertyFloat(r,x[0]|224,1715472409==x[0]?z[0]:null,null==F?NaN:F.x,null==I?NaN:I.x);g[0]=z[0]+" "+JU.Escape.eAF(h);
null!=z[1]&&(f=this.getBitsetPropertyFloat(r,x[1]|224,1715472409==x[1]?z[1]:null,null==F?NaN:F.y,null==I?NaN:I.y),g[1]=z[1]+" "+JU.Escape.eAF(f));null!=z[2]&&(p=this.getBitsetPropertyFloat(r,x[2]|224,1715472409==x[2]?z[2]:null,null==F?NaN:F.z,null==I?NaN:I.z),g[2]=z[2]+" "+JU.Escape.eAF(p));null==F&&(F=JU.P3.new3(this.getPlotMinMax(h,!1,x[0]),this.getPlotMinMax(f,!1,x[1]),this.getPlotMinMax(p,!1,x[2])));null==I&&(I=JU.P3.new3(this.getPlotMinMax(h,!0,x[0]),this.getPlotMinMax(f,!0,x[1]),this.getPlotMinMax(p,
!0,x[2])));JU.Logger.info("plot min/max: "+F+" "+I);s=v=null;if(d){s=JU.P3.new3(1,1,1);v=new JU.P3;v.ave(I,F);s.sub2(I,F);s.set(s.x/200,s.y/200,s.z/200);JS.T.tokAttr(x[0],1094713344)?(s.x=1,v.x=0):0.1<s.x&&10>=s.x&&(s.x=1);JS.T.tokAttr(x[1],1094713344)?(s.y=1,v.y=0):0.1<s.y&&10>=s.y&&(s.y=1);JS.T.tokAttr(x[2],1094713344)?(s.z=1,v.z=0):0.1<s.z&&10>=s.z&&(s.z=1);if(null==z[2]||null==z[1])v.z=F.z=I.z=s.z=0;for(a=0;a<h.length;a++)h[a]=(h[a]-v.x)/s.x;if(null!=z[1])for(a=0;a<f.length;a++)f[a]=(f[a]-v.y)/
s.y;if(null!=z[2])for(a=0;a<p.length;a++)p[a]=(p[a]-v.z)/s.z}v=B(-1,[r,h,f,p,F,I,s,v,y,g])}if(134221856==j)return this.vwr.writeFileData(m,"PLOT_"+t,c,v);d=t.equals("data")?"1 0 H 0 0 0 # Jmol PDB-encoded data":this.vwr.getPdbData(c,t,null,v,null,!0);if(134222350==j)return d;JU.Logger.debugging&&JU.Logger.debug(d);if(135176==j)return b.runScript(d),"";j=this.vwr.fm.getFileInfo();m=this.vwr.getBoolean(603979792);this.vwr.g.appendNew=!0;d=null!=d&&null==this.vwr.openStringInlineParamsAppend(d,null,
!0);this.vwr.g.appendNew=m;this.vwr.fm.setFileInfo(j);if(!d)return"";j=this.vwr.ms.mc;this.vwr.ms.setJmolDataFrame(k,c,j-1);1715472409!=H&&(k+=";\n"+A);k=this.vwr.addStateScript(k,!0,!1);d=150;switch(H){default:c="frame 0.0; frame last; reset;select visible;wireframe only;";d=10;break;case 1715472409:this.vwr.setFrameTitle(j-1,t+" plot for model "+this.vwr.getModelNumberDotted(c));c="frame 0.0; frame last; reset;select visible; spacefill 3.0; wireframe 0;draw plotAxisX"+j+' {100 -100 -100} {-100 -100 -100} "'+
z[0]+'";draw plotAxisY'+j+' {-100 100 -100} {-100 -100 -100} "'+z[1]+'";';null!=z[2]&&(c+="draw plotAxisZ"+j+' {-100 -100 100} {-100 -100 -100} "'+z[2]+'";');break;case 4138:this.vwr.setFrameTitle(j-1,"ramachandran plot for model "+this.vwr.getModelNumberDotted(c));c="frame 0.0; frame last; reset;select visible; color structure; spacefill 3.0; wireframe 0;draw ramaAxisX"+j+' {100 0 0} {-100 0 0} "phi";draw ramaAxisY'+j+' {0 100 0} {0 -100 0} "psi";';break;case 134221850:case 136314895:this.vwr.setFrameTitle(j-
1,t.$replace("w"," ")+e+" for model "+this.vwr.getModelNumberDotted(c)),c=JU.C.getHexCode(this.vwr.cm.colixBackgroundContrast),c="frame 0.0; frame last; reset;select visible; wireframe 0; spacefill 3.0; isosurface quatSphere"+j+" color "+c+" sphere 100.0 mesh nofill frontonly translucent 0.8;draw quatAxis"+j+'X {100 0 0} {-100 0 0} color red "x";draw quatAxis'+j+'Y {0 100 0} {0 -100 0} color green "y";draw quatAxis'+j+'Z {0 0 100} {0 0 -100} color blue "z";color structure;draw quatCenter'+j+"{0 0 0} scale 0.02;"}b.runScript(c+
A);k.setModelIndex(this.vwr.am.cmi);this.vwr.setRotationRadius(d,!0);b.sm.loadShape(31);this.showString("frame "+this.vwr.getModelNumberDotted(j-1)+(0<t.length?" created: "+t+(l?e:""):""));return""},"~A");n(l,"polyhedra",function(){var a=this.e,b=1==this.slen,c=!1,f=b,e=!1,d=!1,h=!1,j=NaN,g=0;a.sm.loadShape(21);this.setShapeProperty(21,"init",Boolean.TRUE);var m=3.4028235E38,p=-1,s=O(-1,[-2147483648]),v=-1,k=0,l=null,q=0,n=null,t=!1,z=null,x=null;if(2==this.slen&&1073742001==this.tokAt(1))this.chk||
a.showStringPrint(this.getShapeProperty(21,"list"),!1);else{for(var r=1;r<this.slen;++r){var A=null,z=null;switch(this.getToken(r).tok){case 1073742197:j=NaN;case 1073741872:a=1073742197==this.e.theTok?-1:2==this.tokAt(r+1)?this.intParameter(++r):1;this.chk||J.api.Interface.getInterface("JU.BZone",this.vwr,"script").createBZ(this.vwr,a,null,!1,n,j,q,l);return;case 6:A="info";z=this.e.theToken.getMap();f=!0;break;case 134217751:A="points";z=Float.$valueOf(1073742334==this.tokAt(++r)?0:this.e.floatParameter(r));
t=!0;break;case 536875059:j=this.floatParameter(++r);t=!0;continue;case 1814695966:null!=n&&this.invArg();A="unitCell";z=Boolean.TRUE;f=!0;break;case 1073742072:this.e.restrictSelected(!1,!1),a.theTok=1073742335;case 1073742335:case 12291:case 1073742334:(r+1!=this.slen||f||1<g)&&this.error(18);A=1073742334==a.theTok?"off":1073742335==a.theTok?"on":"delete";e=!0;break;case 7:(null==n||f)&&this.invArg();f=!0;z=this.getIntArray2(r);x=this.getAllPoints(a.iToken+1,3);r=a.iToken;N(x[0],"JM.Atom")&&this.setShapeProperty(21,
"model",Integer.$valueOf(x[0].getModelIndex()));A="definedFaces";z=B(-1,[z,x]);break;case 1073741961:A="full";break;case 2:null!=n&&this.invArg();A="nVertices";z=Integer.$valueOf(this.intParameter(r));f=!0;268436992==this.tokAt(r+1)&&r++;break;case 1677721602:null!=n&&this.invArg();0<g&&this.invPO();f=!0;A="bonds";b=!0;break;case 1073741852:-1!=p&&this.invArg(),p=0,r--;case 1665140738:r++;case 3:null!=n&&this.invArg();0<g&&this.invPO();A=0>=p?"radius":"radius1";z=Float.$valueOf(p=0==p?0:this.floatParameter(r));
f=!0;break;case 1073742066:this.isFloatParameter(r+1)?q=this.floatParameter(++r):(l=this.e.centerParameter(++r,null),r=a.iToken);t=!0;continue;case 1073741937:this.setShapeProperty(21,"collapsed",null);case 1073742099:case 1073741924:A=JS.T.nameOf(a.theTok);switch(this.tokAt(r+1)){case 268440324:case 268436992:r++}z=Float.$valueOf(this.floatParameter(++r));break;case 1094717454:null==n&&this.invArg();A="model";z=Integer.$valueOf(this.intParameter(++r));break;case 1073742170:(1<g||null!=n&&!c||v==
r)&&this.invPO();g=3;a.isAtomExpression(++r)?(A=f||c?"to":"toBitSet",z=this.atomExpressionAt(r)):a.isArrayParameter(r)?(A="toVertices",z=a.getPointArray(r,-1,!1)):this.error(19);r=a.iToken;f=!0;break;case 12290:case 10:case 1073742325:d&&this.invPO();switch(++g){case 1:null!=n&&this.invArg();A="centers";break;case 2:A="to";f=!0;break;default:a.bad()}z=this.atomExpressionAt(r);k=r=a.iToken;f=(new Boolean(f|r+1==this.slen)).valueOf();break;case 1765808134:case 603979967:case 1073742074:k==r-1&&(f=!0);
m=this.getColorTrans(a,r,!0,s);r=a.iToken;continue;case 1073741948:case 1073741886:k==r-1&&(f=!0);d&&this.error(18);d=!0;A=1073741886==this.e.theTok?"collapsed":null;f&&this.isFloatParameter(r+1)&&this.setShapeProperty(21,"faceCenterOffset",Float.$valueOf(this.floatParameter(++r)));break;case 1073742044:case 1073741933:case 1073741956:case 1073741934:k==r-1&&(f=!0);h&&this.error(18);t=h=!0;A=JS.T.nameOf(a.theTok);break;case 1073742182:case 1073742060:case 1073741861:case 1073741958:case 1073741964:continue;
case 1073741974:case 268441089:case 1073741824:case 4:if(!a.isColorParam(r)){1!=r&&this.invPO();n=1073741974==a.theTok?this.stringParameter(++r):a.optParameterAsString(r);268441089==this.tokAt(r+1)&&(n+=this.paramAsStr(++r));this.setShapeProperty(21,"thisID",n);this.setShapeProperty(21,"model",Integer.$valueOf(this.vwr.am.cmi));if(!a.isCenterParameter(r+1))continue;A="center";z=this.centerParameter(++r);r=a.iToken;c=!0;break}default:if(a.isColorParam(r)){k==r-1&&(f=!0);s[0]=a.getArgbParam(r);a.isCenterParameter(r)&&
(v=a.iToken+1);r=a.iToken;continue}this.invArg()}null!=A&&this.setShapeProperty(21,A,z);if(e)return}f?(!d&&b&&this.setShapeProperty(21,"bonds",null),this.setShapeProperty(21,"generate",null)):t||this.error(19);null!=l&&this.setShapeProperty(21,"offset",l);Float.isNaN(j)||this.setShapeProperty(21,"scale",Float.$valueOf(j));-2147483648!=s[0]&&this.setShapeProperty(21,"colorThis",Integer.$valueOf(s[0]));3.4028235E38!=m&&a.setShapeTranslucency(21,"","translucentThis",m,null);this.setShapeProperty(21,
"init",Boolean.FALSE)}});n(l,"write",function(a){var b=this.e,c=1,f=1,e=null,d=null,h=null,j=null,g="SPT",m=!0,p=!1,s=!1;null==a?(a=this.st,p=this.vwr.isApplet&&!this.vwr.isSignedApplet||!this.vwr.haveAccess(JV.Viewer.ACCESS.ALL)||0<this.vwr.fm.getPathForAllFiles().length):(c=f=0,m=!1,p=!m);var l=JS.CmdExt.tokAtArray(c,a);if(4==l&&!m){var k=JS.T.getTokenFromName(JS.SV.sValue(a[0]).toLowerCase());null!=k&&(l=k.tok)}switch(l){case 0:break;case 134221850:case 4138:case 1715472409:return d=this.plot(a),
p?d:this.writeMsg(d);case 134222850:b.isArrayParameter(c+1)&&(e=b.stringParameterSet(++c),j=h=".",f=c=b.iToken+1,l=this.tokAt(c));break;default:g=JS.SV.sValue(this.tokenAt(c,a)).toUpperCase()}var n=this.vwr.getExportDriverList(),k=null,q=m?this.slen:a.length,B="",t=null,z=!1,x=null,r=0,A=null,F=!1,I=null,y=-1,H=-1,D=!1,w=null,E=-2147483648;0!=l&&(m&&1<this.slen&&1073741848==this.tokAt(this.slen-2))&&(g=this.paramAsStr(this.slen-1).toUpperCase(),f=q,q-=2,l=0);switch(l){case 15:case 6:g="VAR";x=this.tokenAt(c++,
a);break;case 1073741984:g="INLINE";k=JS.SV.sValue(this.tokenAt(++c,a));c++;break;case 1275068447:g="PGRP";c++;B=JS.SV.sValue(this.tokenAt(c,a)).toLowerCase();B.equals("draw")&&c++;break;case 1073742329:c++;F=!0;break;case 1073742158:case 134222850:for(t=JS.SV.sValue(this.tokenAt(++c,a)).toLowerCase();t.equals("localpath")||t.equals("remotepath");)t.equals("localpath")?h=JS.SV.sValue(this.tokenAt(++c,a)):j=JS.SV.sValue(this.tokenAt(++c,a)),t=JS.SV.sValue(this.tokenAt(++c,a)).toLowerCase();g="SPT";
break;case 1228935687:case 134320141:case 1610616855:case 135180:case 1073742015:case 1073742018:case 1073877011:case 1073877010:case 135188:c++;break;case 1073741991:g="ZIPALL";c++;break;case 36868:g="VAR";c+=2;break;case 1073741929:case 4115:case 4120:case 1073742062:case 1073742139:case 4166:case 1073741824:case 4:switch(l){case 4115:c+1<q&&1073742325==a[++c].tok||10==a[c].tok?(t=b.atomExpression(a,c,0,!0,!1,null,!0),c=b.iToken+1):t=this.vwr.getAllAtoms();this.chk||(I=this.vwr.ms.getModelBS(t,
!0));break;case 1073741929:l=4120,z=!0;case 4120:g="IMAGE";c++;break;case 1073742139:t=JS.SV.sValue(this.tokenAt(++c,a)).toUpperCase();JU.PT.isOneOf(t,";PNG;PNGJ;")?(A=t,c++):A="PNG";break;case 4166:r=b.intParameterRange(++c,1,10);if(2147483647==r)return"";this.chk||(this.vwr.tm.setVibrationPeriod(0),b.isJS||b.delayScript(100));c++;break;default:l=4120}if(4120==l&&c<a.length)if(l=JS.T.getTokenFromName(JS.SV.sValue(a[c]).toLowerCase()),null!=l&&(g=JS.SV.sValue(l).toUpperCase()),JU.PT.isOneOf(g,n.toUpperCase())){c++;
g=g.substring(0,1).toUpperCase()+g.substring(1).toLowerCase();D=!0;m&&(w="Jmol."+g.toLowerCase());break}else if(JU.PT.isOneOf(g,";ZIP;ZIPALL;SPT;STATE;")){c++;break}else g="IMAGE";2==JS.CmdExt.tokAtArray(c,a)&&(y=JS.SV.iValue(this.tokenAt(c++,a)),0>=y&&this.invArg(),H=JS.SV.iValue(this.tokenAt(c++,a)),0>=H&&this.invArg())}if(f<q){t=JS.SV.sValue(this.tokenAt(c,a));if(t.equalsIgnoreCase("clipboard")){if(this.chk)return""}else JU.PT.isOneOf(t.toLowerCase(),";jpg;jpeg;jpg64;jpeg64;gif;gift;pdf;ppm;png;pngj;pngt;")?
(2==JS.CmdExt.tokAtArray(c+1,a)&&2==JS.CmdExt.tokAtArray(c+2,a)&&(y=JS.SV.iValue(this.tokenAt(++c,a)),0>=y&&this.invArg(),H=JS.SV.iValue(this.tokenAt(++c,a)),0>=H&&this.invArg()),2==JS.CmdExt.tokAtArray(c+1,a)&&(E=JS.SV.iValue(this.tokenAt(++c,a)))):JU.PT.isOneOf(t.toLowerCase(),";xyz;xyzrn;xyzvib;mol;mol67;sdf;v2000;v3000;json;pdb;pqr;cml;cif;cifp1;pwmat;pwslab;qcjson;xsf;")&&(g=t.toUpperCase(),c+1==q&&c++);g.equals("IMAGE")&&JU.PT.isOneOf(t.toLowerCase(),";jpg;jpeg;jpg64;jpeg64;gif;gift;pdf;ppm;png;pngj;pngt;scene;")&&
(g=t.toUpperCase(),E=-2147483648,c++)}c+2==q&&JS.SV.sValue(this.tokenAt(++c,a));switch(JS.CmdExt.tokAtArray(c,a)){case 0:p=!0;break;case 1073741884:break;case 805307393:w=g.equals("IMAGE")?"?jmol.png":"?jmol."+g.toLowerCase();break;case 1073741824:case 4:w=JS.SV.sValue(this.tokenAt(c,a));if(w.equalsIgnoreCase("clipboard")||!this.vwr.haveAccess(JV.Viewer.ACCESS.ALL))w=null;break;default:this.invArg()}if(g.equals("IMAGE")||g.equals("FRAME")||g.equals("VIBRATION"))g=null!=w&&0<=w.indexOf(".")?w.substring(w.lastIndexOf(".")+
1).toUpperCase():"JPG";if(g.equals("ISOSURFACE")||g.equals("CONTACT"))s=g.equals("CONTACT"),g=null!=w&&0<=w.indexOf(".")?w.substring(w.lastIndexOf(".")+1).toUpperCase():"JVXL",g.equals("PMESH")?g="ISOMESH":g.equals("PMB")&&(g="ISOMESHBIN");l=JU.PT.isOneOf(g.toLowerCase(),";jpg;jpeg;jpg64;jpeg64;gif;gift;pdf;ppm;png;pngj;pngt;scene;");if(!l&&(g.equals("MNU")?g="MENU":g.equals("WRL")||g.equals("VRML")?(g="Vrml",D=!0):g.equals("X3D")?(g="X3d",D=!0):g.equals("STL")?(g="Stl",D=!0):g.equals("IDTF")?(g=
"Idtf",D=!0):g.equals("MA")?(g="Maya",D=!0):g.equals("JS")?(g="Js",D=!0):g.equals("OBJ")?(g="Obj",D=!0):g.equals("JVXL")?g="ISOSURFACE":g.equals("XJVXL")?g="ISOSURFACE":g.equals("JMOL")?g="ZIPALL":g.equals("HIS")&&(g="HISTORY"),g.equals("COORD")||g.equals("COORDS")))g=null!=w&&0<=w.indexOf(".")?w.substring(w.lastIndexOf(".")+1).toUpperCase():"XYZ";null!=e&&(JV.FileManager.isJmolType(g)||this.invArg(),g.equals("PNG")&&(g="PNGJ"));!l&&(!D&&!JU.PT.isOneOf(g,";SCENE;JMOL;ZIP;ZIPALL;SPT;HISTORY;MO;NBO;ISOSURFACE;MESH;PMESH;PMB;ISOMESHBIN;ISOMESH;VAR;FILE;FUNCTION;CFI;CIF;CIFP1;CML;JSON;XYZ;XYZRN;XYZVIB;MENU;MOL;MOL67;PDB;PGRP;PQR;PWMAT;PWSLAB;QUAT;RAMA;SDF;V2000;V3000;QCJSON;XSF;INLINE;"))&&
b.errorStr2(54,"COORDS|FILE|FUNCTIONS|HISTORY|IMAGE|INLINE|ISOSURFACE|JMOL|MENU|MO|NBO|POINTGROUP|QUATERNION [w,x,y,z] [derivative]|RAMACHANDRAN|SPT|STATE|VAR x|ZIP|ZIPALL|CLIPBOARD","CIF|CIFP1|CML|CFI|GIF|GIFT|JPG|JPG64|JMOL|JVXL|MESH|MOL|PDB|PMESH|PNG|PNGJ|PNGT|PPM|PQR|PWMAT|PWSLAB|SDF|CD|JSON|QCJSON|V2000|V3000|SPT|XJVXL|XSF|XYZ|XYZRN|XYZVIB|ZIP"+n.toUpperCase().$replace(";","|"));if(this.chk)return"";var c=Array(1),C,f=this.vwr.getBoolean(603979934);if(D){f&&JU.Logger.startTimer("export");d=new java.util.Hashtable;
d.put("type",g);null!=w&&d.put("fileName",w);(m||null!=w)&&d.put("fullPath",c);d.put("width",Integer.$valueOf(y));d.put("height",Integer.$valueOf(H));k=this.vwr.generateOutputForExport(d);if(null==k||0==k.length)return"";if(p)return k;if(!g.equals("Povray")&&!g.equals("Idtf")||null==c[0])return this.writeMsg(k);d=g.equals("Idtf")?".tex":".ini";w=c[0]+d;C=new java.util.Hashtable;C.put("fileName",w);C.put("type",d);C.put("text",k);C.put("fullPath",c);d=this.vwr.processWriteOrCapture(C);g.equals("Idtf")&&
(k=k.substring(0,k.indexOf("\\begin{comment}")));k="Created "+c[0]+":\n\n"+k;f&&this.showString(JU.Logger.getTimerMsg("export",0));null!=d&&((g=!d.startsWith("OK"))&&b.evalError(d,null),b.report(k,g));return""}D=null;n=!1;if(null==k){k=g.intern();if("MENU"===k)k=this.vwr.getMenu("");else if("PGRP"===k)k=this.vwr.ms.getPointGroupAsString(this.vwr.bsA(),null,0,1,null,null,B.equals("draw")?"":null);else if("PDB"===k||"PQR"===k)p?k=this.vwr.getPdbAtomData(null,null,"PQR"===k,F):(n=!0,g="PDB_"+k+"-coord "+
F);else if("FILE"===k)"?".equals(w)&&(w="?Jmol."+this.vwr.getP("_fileType")),p?k=this.e.getCurrentModelFileAsString(null):n=!0;else if(JU.PT.isOneOf(k,";CIF;CIFP1;SDF;MOL;MOL67;V2000;V3000;CD;JSON;XYZ;XYZRN;XYZVIB;CML;QCJSON;PWMAT;PWSLAB;XSF;")){a=this.vwr.bsA();this.vwr.setErrorMessage(null," ("+a.cardinality()+" atoms)");k=this.vwr.getModelExtract(a,F,!1,k);d=this.vwr.getErrorMessageUn();this.vwr.setErrorMessage(null,null);if(0<=this.vwr.am.cmi&&!a.equals(C=this.vwr.getModelUndeletedAtomsBitSet(this.vwr.am.cmi)))d+=
"\nNote! Selected atom set "+a+" is not the same as the current model "+C;k.startsWith("ERROR:")&&(D=k)}else if("CFI"===k)k=this.vwr.getModelFileData("selected","cfi",!1);else if("FUNCTION"===k)k=this.vwr.getFunctionCalls(null),g="TXT";else if("VAR"===k)null==x&&(x=b.getParameter(JS.SV.sValue(this.tokenAt(m?2:1,a)),1073742190,!0)),a=null,15==x.tok?(a=new JU.Lst,a.addLast(x.value.data)):6==x.tok&&(a=null==w?new JU.Lst:this.prepareBinaryOutput(x)),null==a?(k=x.asString(),g="TXT"):null!=w&&(C=new java.util.Hashtable,
C.put("data",a),null==(D=k=this.vwr.createZip(w,1==a.size()||w.endsWith(".png")||w.endsWith(".pngj")?"BINARY":"ZIPDATA",C))&&b.evalError("#CANCELED#",null));else if("SPT"===k)if(F)C=this.vwr.ms.getTaintedAtoms(2),this.vwr.setAtomCoordsRelative(JU.P3.new3(0,0,0),null),k=this.vwr.getStateInfo(),this.vwr.ms.setTaintedAtoms(C,2);else{if(k=this.vwr.getStateInfo(),null!=h||null!=j)k=JV.FileManager.setScriptFileReferences(k,h,j,null)}else"ZIP"===k||"ZIPALL"===k?null!=w&&(C=new java.util.Hashtable,null!=
e&&C.put("data",e),null==(D=k=this.vwr.createZip(w,g,C))&&b.evalError("#CANCELED#",null)):"HISTORY"===k?(k=this.vwr.getSetHistory(2147483647),g="SPT"):"MO"===k||"NBO"===k?(k=this.getMoJvxl(2147483647,"NBO"===k),g="XJVXL"):"PMESH"===k||"PMB"===k?(null==(k=this.getIsosurfaceJvxl(29,k))&&this.error(31),g="XJVXL"):"ISOMESH"===k?(null==(k=this.getIsosurfaceJvxl(24,k))&&this.error(31),g="PMESH"):"ISOMESHBIN"===k?(null==(D=this.getIsosurfaceJvxl(24,"ISOMESHBIN"))&&this.error(31),g="PMB"):"ISOSURFACE"===
k||"MESH"===k?(null==(k=this.getIsosurfaceJvxl(s?25:24,k))&&this.error(31),g=0<=k.indexOf("<?xml")?"XJVXL":"JVXL",p||this.showString(this.getShapeProperty(s?25:24,"jvxlFileInfo"))):(m&&(p&&null==w)&&(p=!1,w="\u0001"),null==A&&0>E&&(E=-1));null==k&&(k="")}if(!m)return k;if(p)return b.showStringPrint(k,!0),"";if(null!=D&&"string"==typeof D)return this.writeMsg(D);if(n)return this.writeMsg(this.vwr.writeFileData(w,g,0,null));if(g.equals("SCENE"))D=A;else if(null==D&&(!l||null!=w))D=k;f&&JU.Logger.startTimer("write");
l&&(b.refresh(!1),0>y&&(y=z?250:this.vwr.getScreenWidth()),0>H&&(H=z?250:this.vwr.getScreenHeight()));C=new java.util.Hashtable;null!=w&&C.put("fileName",w);C.put("backgroundColor",Integer.$valueOf(this.vwr.getBackgroundArgb()));C.put("type",g);if(z){C.put("is2D",Boolean.TRUE);var G,b="smiles could not be generated";try{if(G=this.vwr.getOpenSmiles(null),0<G.length){var M=this.vwr.setLoadFormat(!0,"_"+G,"2",!1),M=M+("?width="+y+"&height="+H+"&format="+g.toLowerCase());this.showString(M);b=this.vwr.fm.getFileAsBytes(M,
null)}}catch(K){if(!R(K,Exception))throw K;}if("string"==typeof b)return this.showString(b),null;D=b}"string"==typeof D&&-2147483648==E?C.put("text",D):N(D,Array)&&C.put("bytes",D);null!=e&&C.put("scripts",e);null!=I&&C.put("bsFrames",I);C.put("fullPath",c);C.put("quality",Integer.$valueOf(E));C.put("width",Integer.$valueOf(y));C.put("height",Integer.$valueOf(H));C.put("nVibes",Integer.$valueOf(r));b=this.vwr.processWriteOrCapture(C);null==b&&(b="canceled");l&&b.startsWith("OK")&&(b+="; width="+y+
"; height="+H);f&&this.showString(JU.Logger.getTimerMsg("write",0));return this.writeMsg(b+(null==d?"":d))},"~A");n(l,"prepareBinaryOutput",function(a){var b=a.getMap();if(null==b||!b.containsKey("$_BINARY_$"))return null;a=new JU.Lst;for(var c,b=b.entrySet().iterator();b.hasNext()&&((c=b.next())||1);){var f=c.getKey();if(!f.equals("$_BINARY_$")){var e=c.getValue(),d=15==e.tok?e.value.data:null;null==d&&(e=e.asString(),d=e.startsWith(";base64,")?JU.Base64.decodeBase64(e):e.getBytes());if(f.equals("_DATA_")){a=
new JU.Lst;a.addLast(d);break}else f.equals("_IMAGE_")?(a.add(0,f),a.add(1,null),a.add(2,d)):(a.addLast(f),a.addLast(null),a.addLast(d))}}return a},"JS.SV");n(l,"writeMsg",function(a){if(this.chk||null==a)return"";var b=!a.startsWith("OK");b&&(this.e.evalError(a,null),alert(a));this.e.report(a,b);return a},"~S");n(l,"show",function(){var a=this.e,b=null,c=this.paramAsStr(1),f=null,e=0;3<this.slen&&268441088==this.tokAt(this.slen-3)&&268439040==this.tokAt(this.slen-2)?(f="!/"+this.paramAsStr(this.slen-
1),this.slen-=3,e=3):2<this.slen&&268441088==this.tokAt(this.slen-2)?(f="/"+this.paramAsStr(this.slen-1),this.slen-=2,e=2):0==(f=this.paramAsStr(this.slen-1)).lastIndexOf("/")?(this.slen--,e=1):f=null;var d=null,h=null,j=2,g=this.getToken(1),h=N(g,"JS.SV")&&1073741824!=g.tok?0:g.tok;4==h&&(g=JS.T.getTokenFromName(c.toLowerCase()),null!=g&&(h=g.tok));1296041985!=h&&(1073742158!=h&&1715472409!=h&&1228935687!=h)&&this.checkLength(-3);2==this.slen&&0<=c.indexOf("?")&&(d=this.vwr.getAllSettings(c.substring(0,
c.indexOf("?"))),h=-1);switch(h){case 0:this.chk||(d=a.theToken.escape());break;case 603984065:this.chk||(d=this.vwr.stm.getUndoInfo());break;case 1073741925:a.checkLength23();j=this.st.length;this.chk||(d=this.vwr.getModelInfo("domains"),d=N(d,"JS.SV")?this.vwr.getAnnotationInfo(d,a.optParameterAsString(2),1073741925):"domain information has not been loaded");break;case 1715472409:d=this.plot(this.st);j=this.st.length;break;case 1073742189:a.checkLength23();j=this.st.length;this.chk||(d=this.vwr.getModelInfo("validation"),
d=N(d,"JS.SV")?this.vwr.getAnnotationInfo(d,a.optParameterAsString(2),1073742189):"validation information has not been loaded");break;case 134221829:this.chk||(d=JU.Escape.e(this.vwr.fm.cacheList()));break;case 1111490587:a.checkLength23();j=this.st.length;this.chk||(d=this.vwr.getModelInfo("dssr"),d=null==d?"no DSSR information has been read":2<j?JS.SV.getVariable(this.vwr.extractProperty(d,this.stringParameter(2),-1)).asString():""+JS.SV.getVariable(d).asString());break;case 1073741915:h=2;3==this.slen?
h=G(this.floatParameter((j=3)-1)):this.checkLength(2+e);this.chk||(d=this.vwr.calculateStructures(null,!0,!1,h));break;case 545259572:this.checkLength(2+e);this.chk||(d=this.vwr.fm.getPathForAllFiles());break;case 1275203608:if(!this.chk){var m=Array(2);this.vwr.shm.getShapePropertyData(21,"allInfo",m);d=JS.SV.getVariable(m[1]).asString()}break;case 1073742038:this.chk||this.vwr.getNMRPredict(a.optParameterAsString(2));return;case 603983903:!this.chk&&3==this.slen&&(d=""+this.vwr.getModelkitPropertySafely(a.stringParameter(2)),
j=3);break;case 1275068433:case 1073741978:case 1073741929:case 1073741879:case 134218757:this.checkLength((1073741879==h||134218757==h&&1073742335==this.tokAt(2)?j=3:2)+e);if(this.chk)return;var p=a.optParameterAsString(2);1073741879==h&&("mf".equals(p)&&(p="formula"),"formula".equals(p)&&(d=this.vwr.getModelInfo("formula"),null!=d&&(d=JU.PT.rep(d," ",""))));if(null==d){try{switch(h){case 1275068433:d=this.vwr.getInchi(this.vwr.bsA(),null,null);null==d&&(d="?");break;case 1073741978:d=this.vwr.getInchi(this.vwr.bsA(),
null,"key");break;case 134218757:p.equalsIgnoreCase("true")?(d=this.vwr.getBioSmiles(null),f=null):null!=f&&(d=this.vwr.getSmilesOpt(null,-1,-1,1,f+"///"),f=null);break;default:d=this.vwr.ms.getModelDataBaseName(this.vwr.bsA()),d=null!=d&&(d.startsWith("$")||d.startsWith(":"))?d.substring(1):null}null==d&&(m=JU.Logger.getLogLevel(),JU.Logger.setLogLevel(4),d=134218757==h?this.vwr.getSmiles(null):this.vwr.getOpenSmiles(null),JU.Logger.setLogLevel(m))}catch(l){if(R(l,Exception))d=l.getMessage(),null==
d&&(d=""),l.printStackTrace();else throw l;}switch(h){case 1073741929:if(0<d.length){this.vwr.fm.loadImage(this.vwr.setLoadFormat(!1,"_"+d,"2",!1),"\u0001"+d,!1);return}d="Could not show drawing -- Either insufficient atoms are selected or the model is a PDB file.";break;case 1073741879:j=3,0<d.length?(d=this.vwr.getChemicalInfo(d,p,this.vwr.bsA()),0<=d.indexOf("FileNotFound")&&(d="?")):d="Could not show name -- Either insufficient atoms are selected or the model is a PDB file."}}break;case 134217764:case 1296041985:d=
"";m=null;if(2==(j=this.slen)){if(this.chk)break;m=this.vwr.getSymTemp().getSpaceGroupInfo(this.vwr.ms,null,-1,!1,null)}else if(134217764==h){m=this.paramAsStr(2);j=3;if(this.chk)break;m=this.vwr.getSymTemp().getSpaceGroupInfo(this.vwr.ms,JU.PT.rep(m,"''",'"'),-1,!1,null)}if(null!=m){d=(134217764==h?""+m.get("spaceGroupInfo")+m.get("spaceGroupNote"):"")+(m.containsKey("symmetryInfo")?m.get("symmetryInfo"):"");break}var h=2==this.tokAt(2)?this.intParameter(2):0,m=4==this.tokAt(2)||12==this.tokAt(2)?
this.paramAsStr(2):null,g=p=null,n=-1;if(3<this.slen&&4!=this.tokAt(3)){j=B(-1,[null,this.vwr.getFrameAtoms()]);p=a.centerParameter(2+(0==h?0:1),j);if(null!=j[0]&&j[0].isEmpty()){j=this.slen;break}j[0]=null;g=a.centerParameter(++a.iToken,j);if(null!=j[0]&&j[0].isEmpty()){j=this.slen;break}0==h&&2==this.tokAt(a.iToken+1)&&(n=a.getToken(++a.iToken).intValue)}var k=1<a.iToken&&4==this.tokAt(a.iToken+1)?this.stringParameter(++a.iToken):null;this.checkLength((j=++a.iToken)+e);this.chk||(d=this.vwr.getSymmetryInfo(this.vwr.getAllAtoms().nextSetBit(0),
m,h,null,p,g,0,k,0,n,0,null),d=null==d?"":N(d,"java.util.Map")?JS.SV.getVariable(d).asString():d.toString());break;case 1648363544:h=null;2<this.slen&&(j=this.slen,h=J.c.VDW.getVdwType(this.paramAsStr(2)),null==h&&this.invArg());this.chk||(d=this.vwr.getDefaultVdwNameOrData(0,h,null));break;case 134320141:a.checkLength23();j=this.slen;h=a.optParameterAsString(2);if(null==f&&0<=(p=h.indexOf("/")))f=h.substring(p+1),h=h.substring(0,p);this.chk||(d=this.vwr.getFunctionCalls(h));break;case 36867:this.checkLength(2+
e);this.chk||(d=this.vwr.getAllSettings(null));break;case 1073742166:d=this.vwr.getFrameTitle();break;case 1073742184:2==this.slen?this.chk||this.vwr.showUrl(a.getFullPathName(!1)):(h=this.paramAsStr(2),this.chk||this.vwr.showUrl(h));return;case 1765808134:c="defaultColorScheme";break;case 1610612740:c="scaleAngstromsPerInch";break;case 134221850:case 4138:if(this.chk)return;0>this.vwr.am.cmi&&a.errorStr(30,"show "+a.theToken.value);d=this.plot(this.st);j=this.slen;break;case 14:case 1112152078:this.chk||
(d=this.getContext(!1));break;case 1073741888:h=a.optParameterAsString(2);0<h.length&&(j=3);this.chk||(b=this.vwr.cm.getColorSchemeList(h));break;case 1073742192:this.chk||(d=this.vwr.getAtomDefs(this.vwr.definedAtomSets)+this.vwr.g.getVariableList()+this.getContext(!0));break;case 536870926:this.chk||(d=this.vwr.getTrajectoryState());break;case 553648144:b=""+JS.ScriptEval.commandHistoryLevelMax;break;case 553648148:b=""+JU.Logger.getLogLevel();break;case 603979825:b=""+this.vwr.getBoolean(603979825);
break;case 553648178:d="set strandCountForStrands "+this.vwr.getStrandCount(12)+"; set strandCountForMeshRibbon "+this.vwr.getStrandCount(13);break;case 536875070:d=this.vwr.showTimeout(2==(j=this.slen)?null:this.paramAsStr(2));break;case 536870918:b=JU.Escape.eP(this.vwr.getDefaultLattice());break;case 4126:this.chk||(d=this.vwr.getMinimizationInfo());break;case 1611272194:switch(this.vwr.g.axesMode){case 603979808:d="set axesUnitcell";break;case 603979804:d="set axesMolecular";break;default:d="set axesWindow"}break;
case 1610612737:d="set bondMode "+(this.vwr.getBoolean(603979812)?"OR":"AND");break;case 1649022989:this.chk||(d="set strandCountForStrands "+this.vwr.getStrandCount(12)+"; set strandCountForMeshRibbon "+this.vwr.getStrandCount(13));break;case 1613238294:d="set hbondsBackbone "+this.vwr.getBoolean(603979852)+";set hbondsSolid "+this.vwr.getBoolean(603979854);break;case 1611141175:this.chk||(d=this.vwr.getSpinState());break;case 1611141176:d="set ssbondsBackbone "+this.vwr.getBoolean(603979952);break;
case 1610625028:case 1611141172:d="selectionHalos "+(this.vwr.getSelectionHalosEnabled()?"ON":"OFF");break;case 1612709894:d="set selectHetero "+this.vwr.getBoolean(1612709894);break;case 1073741828:d=JU.Escape.eAP(this.vwr.getAdditionalHydrogens(null,null,768));break;case 1612709900:d="set selectHydrogens "+this.vwr.getBoolean(1612709900);break;case 553648130:case 553648138:case 536870924:case 553648176:case 553648172:case 1073741995:this.chk||(d=this.vwr.getLightingState());break;case 1073742136:case 4146:this.chk||
(d=this.vwr.stm.listSavedStates());break;case 1814695966:this.chk||(d=this.vwr.getUnitCellInfoText());break;case 1073742329:if(2==(j=this.slen)){this.chk||(d=this.vwr.getCoordinateState(this.vwr.bsA()));break}h=this.paramAsStr(2);this.chk||(d=this.vwr.stm.getSavedCoordinates(h));break;case 1073742158:!this.chk&&(null==a.outputBuffer&&null==f)&&this.vwr.sm.clearConsole();if(2==(j=this.slen)){this.chk||(d=this.vwr.getStateInfo());break}if(null!=f&&3==this.slen){this.chk||(d=this.vwr.getStateInfo());
break}else if(1228935687==this.tokAt(2)&&4==(j=this.slen)){this.chk||(d=this.vwr.fm.getEmbeddedFileState(this.paramAsStr(3),!0,"state.spt"));break}j=3;h=this.paramAsStr(2);this.chk||(d=this.vwr.stm.getSavedState(h));break;case 1639976963:if(2==(j=this.slen)){this.chk||(d=this.vwr.ms.getProteinStructureState(this.vwr.bsA(),134222350));break}h=this.paramAsStr(2);this.chk||(d=this.vwr.stm.getSavedStructure(h));break;case 134221834:p=3==(j=this.slen)?this.paramAsStr(2):null;this.chk||(m=this.vwr.getDataObj(p,
null,-2),p=(h=null!=p&&"types".equals(p.toLowerCase()))||"*".equals(p),null==m?d="no data":N(m,"JU.Lst")?m=m.toArray(Array(m.size())):p||(d=m,d=JU.Escape.encapsulateData(d[0],d[1],d[3].intValue())),null==d&&(d=m,h&&(d[1]=d[1].$replace("\n",",")),d=JU.Escape.e(d)));break;case 1073742330:j=3;d=a.setObjectProperty();break;case 1812599299:this.chk||(d=this.vwr.ms.getBoundBoxCommand(!0));break;case 12289:this.chk||(d="center "+JU.Escape.eP(this.vwr.tm.fixedRotationCenter));break;case 135176:this.chk||
(d=this.getShapeProperty(22,"command"));break;case 1228935687:if(2==this.slen){this.chk||(null==f&&this.vwr.sm.clearConsole(),d=this.e.getCurrentModelFileAsString(null));null==d&&(d="<unavailable>");break}j=3;b=this.paramAsStr(2);this.chk||(null==f&&this.vwr.sm.clearConsole(),d=this.vwr.getFileAsString3(b,!0,null));break;case 4115:d=1073742327==this.tokAt(2)&&0<(j=3)?this.vwr.getModelFileInfoAll():this.vwr.getModelFileInfo();break;case 1610616855:h=2==(j=this.slen)?2147483647:this.intParameter(2);
1>h&&this.invArg();this.chk||(this.vwr.sm.clearConsole(),0==a.scriptLevel&&this.vwr.removeCommand(),d=this.vwr.getSetHistory(h));break;case 135180:this.chk||(d=this.getShapeProperty(24,"jvxlDataXml"));break;case 1073877011:case 1073877010:a.optParameterAsString(2).equalsIgnoreCase("list")?(this.e.sm.loadShape(27),d=this.chk?"":this.getShapeProperty(27,"list -1"),j=3):(m=2==(j=this.slen)?-2147483648:this.intParameter(2),this.chk||(d=this.getMoJvxl(m,1073877011==h)));break;case 1094717454:this.chk||
(d=this.vwr.ms.getModelInfoAsString());break;case 537006096:this.chk||(d=this.vwr.getMeasurementInfoAsString());break;case 1073741864:j=3;!this.chk&&this.slen==j&&(d=this.paramAsStr(2),d=this.vwr.getOrientation(JS.T.getTokFromName(d.equals("box")?"volume":d.equals("rotation")?"best":d),"best",null,null).toString());break;case 1073742132:h=this.tokAt(2),0==h?h=1073742132:j=3;case 1073742178:case 4129:this.chk||(d=this.vwr.getOrientation(h,null,null,null).toString());break;case 1073742077:j=2;if(3<
this.slen)break;switch(h=this.tokAt(2)){case 1073742178:case 1073742132:case 4129:case 0:this.chk||(d=this.vwr.getOrientation(h,null,null,null).toString());break;default:h=a.optParameterAsString(2),d=this.vwr.getOrientation(1073742034,h,null,null).toString()}j=this.slen;break;case 1073742088:this.chk||(d=this.vwr.ms.getPDBHeader(this.vwr.am.cmi));break;case 1275068447:h=a.optParameterAsString(2);0==h.length&&(h=null);j=this.slen;this.chk||(d=this.vwr.ms.getPointGroupAsString(this.vwr.bsA(),"show:"+
h,0,0,null,null,null));break;case 1088421903:this.chk||(d=this.vwr.ms.getSymmetryInfoAsString());break;case 1073742176:this.chk||(d="transform:\n"+this.vwr.tm.matrixRotate.toString());break;case 4168:d="zoom "+(this.vwr.tm.zoomEnabled?""+this.vwr.tm.getZoomSetting():"off");break;case 1611272202:d=this.vwr.getShowFrank()?"frank ON":"frank OFF";break;case 1665140738:c="solventProbeRadius";break;case 1086324744:if(3==(j=this.slen)&&1073742334==this.tokAt(2))h=1086324743;case 1073741863:case 1086326788:case 1073742120:case 1113589787:case 1086324742:case 1153433601:case 1073741982:this.chk||
(d=this.vwr.getChimeInfo(h));break;case 537022465:case 1610612738:case 20482:case 1612709912:b="?";break;case 1073742030:h=2==(j=this.slen)?null:this.paramAsStr(2);this.chk||(d=this.vwr.getBindingInfo(h));break;case 1073742015:this.chk||(b=this.vwr.getMenu(""));break;case 1073741824:c.equalsIgnoreCase("fileHeader")&&(this.chk||(d=this.vwr.ms.getPDBHeader(this.vwr.am.cmi)));break;case 1073741992:case 36868:c=this.paramAsStr(j++),m=a.getParameter(c,1073742190,!0),this.chk||(d=1073741992==h?m.toJSON():
m.escape())}this.checkLength(j+e);this.chk||(null!=d?this.showString(this.filterShow(d,f)):null!=b?this.showString(c+" = "+b):null!=c&&(0<=c.indexOf(" ")?this.showString(c):this.showString(c+" = "+a.getParameter(c,1073742190,!0).escape())))});n(l,"filterShow",function(a,b){if(null==b)return a;var c=b.startsWith("!/");b=b.substring(c?2:1).toLowerCase();for(var f=JU.PT.split(a,"\n"),e=new JU.SB,d=0;d<f.length;d++)0>f[d].toLowerCase().indexOf(b)==c&&e.append(f[d]).appendC("\n");return e.toString()},
"~S,~S");n(l,"stereo",function(){for(var a=J.c.STER.DOUBLE,b=-5,c=!1,f=null,e=0,d=1;d<this.slen;++d)if(this.e.isColorParam(d))1<e&&this.e.bad(),0==e&&(f=O(2,0)),c||(b=3),f[e]=this.e.getArgbParam(d),0==e++&&(f[1]=~f[0]),d=this.e.iToken;else switch(this.getToken(d).tok){case 1073742335:this.e.checkLast(this.e.iToken=1);this.e.iToken=1;break;case 1073742334:this.e.checkLast(this.e.iToken=1);a=J.c.STER.NONE;break;case 2:case 3:b=this.floatParameter(d);c=!0;break;case 1073741824:if(c||(b=3),a=J.c.STER.getStereoMode(this.paramAsStr(d)),
null!=a)break;default:this.invArg()}this.chk||this.vwr.setStereoMode(f,a,b)});n(l,"struts",function(){var a=this.e,b=1073742072==this.tokAt(1)||1073742335==this.tokAt(1)||1==this.slen,c=a.getMadParameter();if(2147483647==c)return!1;b&&(c=Math.round(2E3*this.vwr.getFloat(570425406)));this.setShapeProperty(1,"type",Integer.$valueOf(32768));a.setShapeSizeBs(1,c,null);this.setShapeProperty(1,"type",Integer.$valueOf(1023));return!0});n(l,"unitcell",function(a,b){var c=this.e,f=2147483647,e=2147483647,
d=null,h=c.tickParamAsStr(a,!0,!1,!1);a=c.iToken;var j=null,g=null,m=null,p=null,l=e=!1,n=this.chk?null:this.vwr.getCurrentUnitCell(),k=this.tokAt(++a);switch(k){case 1073742333:this.chk||this.vwr.ms.clearUnitCell(this.vwr.am.cmi);return;case 4142:case 4141:l=!0;d=JU.P4.new4(0,0,0,-1);c.iToken++;break;case 2097180:e=c.hklParameter(a+1,null,!1);k=c.getPointOrPlane(a+1,7);a=c.iToken;var u=NaN;this.isFloatParameter(a+1)&&(u=this.floatParameter(++a),268441090==this.tokAt(a+1)&&(u=-u/100,a++));var q=NaN,
V=!1;this.isFloatParameter(a+1)&&(q=this.floatParameter(++a),268441090==this.tokAt(a+1)&&(V=!0,a++));var t=1073742172==this.tokAt(a+1);t&&a++;c.iToken=a;if(this.chk)break;N(k,"JU.P3")?k=JU.P4.new4(k.x,k.y,k.z,0):Float.isNaN(q)&&(q=k.w);var g=this.getUVBoxFromHKL(n,k,e),p=new JU.P3,z=new JU.V3;JU.Measure.getPlaneProjection(new JU.P3,e,p,z);0<u?(g[3].normalize(),g[3].scale(u)):0>u&&g[3].scale(-u);!Float.isNaN(q)&&0!=q&&(V&&(q=q/100*g[3].length()),g[0].scaleAdd2(q,z,g[0]));t&&g[0].scaleAdd2(-g[3].length(),
z,g[0]);p="surface"+G(k.x)+G(k.y)+G(k.z);break;case 536875059:case 1073742163:d=536875059==k?c.getPointOrPlane(++a,19):c.checkHKL(c.getFractionalPoint(++a));a=c.iToken;if(this.chk)break;g=n.getUnitCellVectors();g[1].scale(Math.abs(d.x));g[2].scale(Math.abs(d.y));g[3].scale(Math.abs(d.z));d=null;p="supercell";break;case 1073741938:d=c.getFractionalPoint(++a);a=c.iToken;if(this.chk)break;d=JU.SimpleUnitCell.ptToIJK(c.checkHKL(d),1);break;case 135180:case 1073742330:j=c.objectNameParameter(++a);break;
case 1812599299:c.iToken=a;if(this.chk)break;g=JU.P3.newP(this.vwr.getBoundBoxCenter());d=this.vwr.getBoundBoxCornerVector();g.sub(d);g=B(-1,[g,JU.P3.new3(2*d.x,0,0),JU.P3.new3(0,2*d.y,0),JU.P3.new3(0,0,2*d.z)]);d=null;break;case 1073742176:12!=this.tokAt(++a)&&this.invArg();if(this.chk)break;m=B(-1,[this.getToken(a).value]);break;case 11:case 12:m=this.getToken(a).value;break;case 12289:switch(this.tokAt(++a)){case 12290:case 10:case 1073742325:d=this.vwr.ms.getAtomSetCenter(this.atomExpressionAt(a));
a=c.iToken;if(this.chk)break;this.vwr.toFractional(d,!0);break;default:if(c.isCenterParameter(a)){d=this.centerParameter(a);a=c.iToken;break}this.invArg()}d.x-=0.5;d.y-=0.5;d.z-=0.5;break;case 12290:case 10:case 1073742325:e=this.atomExpressionAt(a).nextSetBit(0);a=c.iToken;this.chk||this.vwr.am.setUnitCellAtomIndex(e);if(0>e)return;break;case 1073742066:if(e=!0,c.isAtomExpression(a+1)){d=c.centerParameter(++a,null);a=c.iToken;if(this.chk)break;this.vwr.toFractional(d,!1);break}case 1073742114:d=
c.getFractionalPoint(++a);if(N(d,"JU.P4"))e&&this.invArg();else{a=c.iToken;if(this.chk)break;d=!e&&555>d.x?JU.SimpleUnitCell.ptToIJK(c.checkHKL(d),1):JU.P4.new4(d.x,d.y,d.z,e?1:0)}break;case 3:case 2:if(111>this.floatParameter(a)){a--;break}f=this.intParameter(a);break;case 4:case 1073741824:u=this.paramAsStr(a).toLowerCase();if(u.equals("rhombohedral")||u.equals("r")){if(null!=n&&0==n.getUnitCellInfoType(7))return;u="2/3a+1/3b+1/3c,-1/3a+1/3b+1/3c,-1/3a-2/3b+1/3c"}else if(u.equals("trigonal")||u.equals("hexagonal")){if(null!=
n&&0==n.getUnitCellInfoType(8))return;u="a-b,b-c,a+b+c"}p=u;if(0<=u.indexOf(",")||this.chk){m=u;break}e=null;this.vwr.ms.setModelCagePts(-1,null,null);m=this.vwr.getModelInfo("unitcell_conventional");k=null!=this.vwr.getModelInfo("isprimitive");if(JU.PT.isOneOf(p,";parent;standard;primitive;")){if(null==m&&k){this.showString("Cannot convert unit cell when file data is primitive and have no lattice information");return}p.equals("primitive")&&4==this.tokAt(a+1)&&(e=this.paramAsStr(++a).toUpperCase())}N(m,
Array)&&(g=m);null==e&&(e=this.vwr.getModelInfo("latticeType"));null!=m&&(this.vwr.ms.setModelCagePts(-1,this.vwr.getV0abc(-1,m),""+m),m=null);if(!p.equals("conventional"))if(this.setShapeProperty(34,"labels",null),u=this.vwr.getModelInfo("unitcell_"+p),null==u){if((u=p.equals("primitive"))||p.equals("reciprocal")){q=this.slen==a+1?1:2==this.tokAt(a+1)?3.141592653589793*this.intParameter(++a):this.floatParameter(++a);p=(null==n?"":n.getSpaceGroupName()+" ")+p;g=null==n?B(-1,[JU.P3.new3(0,0,0),JU.P3.new3(1,
0,0),JU.P3.new3(0,1,0),JU.P3.new3(0,0,1)]):n.getUnitCellVectors();null==e&&(e=this.vwr.getSymmetryInfo(this.vwr.getFrameAtoms().nextSetBit(0),null,0,null,null,null,1073741994,null,0,-1,0,null));null==n&&(n=this.vwr.getSymTemp());k||n.toFromPrimitive(!0,0==e.length?"P":e.charAt(0),g,this.vwr.getCurrentModelAuxInfo().get("primitiveToCrystal"));u||JU.SimpleUnitCell.getReciprocal(g,g,q);break}}else p=u,0<=u.indexOf(",")&&(m=u);break;default:e=Array(1),this.getUnitCellParameter(a,e)?g=e[0]:m=e[0],null==
m&&null==g?this.slen>a+1?(d=c.getFractionalPoint(a),a=c.iToken):a--:null!=m?(!this.chk&&b&&(null==n?this.vwr.assignSpaceGroup(null,"P1",m):n.fixUnitCell(m)&&c.invArgStr("Unit cell is incompatible with current space group")),a=c.iToken):null!=g&&(a=c.iToken)}e=c.getSetAxesTypeMad10(++a);c.checkLast(c.iToken);if(!(this.chk||2147483647==e)){2147483647==e&&this.vwr.am.setUnitCellAtomIndex(-1);null==g&&null!=m&&(g=this.vwr.getV0abc(-1,m));if(2147483647!=f)null!=n&&n.setOffset(f);else if(null!=j)this.vwr.setCurrentCage(j);
else if(l||null!=g)if(l=b||null==n?this.vwr.getModelkit(!1).transformAtomsToUnitCell(n,g,p):!0){if(b&&null!=n){this.vwr.ms.setSpaceGroup(this.vwr.am.cmi,n.getUnitCell(g,!1,null),null);return}this.vwr.ms.setModelCagePts(-1,g,p)}c.setObjectMad10(33,"unitCell",e);null!=d&&(n=this.vwr.ms.getUnitCell(-2147483648),null!=n&&n.setOffsetPt(d));null!=h&&this.setShapeProperty(33,"tickInfo",h);null!=p&&this.showString(p+(null==g?"":" "+JU.Escape.e(g)))}},"~N,~B");n(l,"getUVBoxFromHKL",function(a,b,c){var f=G(b.x),
e=G(b.y),d=G(b.z);for((0==f&&0==e&&0==d||f!=b.x||e!=b.y||d!=b.z)&&this.invArg();0==f%2&&0==e%2&&0==d%2;)f/=2,e/=2,d/=2;b=a.getUnitCellVectors();for(var h=c.w,j=JU.P4.new4(c.x,c.y,c.z,0),g=Math.max(Math.max(f,e),d),g=JU.Measure.getLatticePoints(a.getLatticeCentering(),g,g,g),m=g.size();0<=--m;)a.toCartesian(g.get(m),!0);for(var g=JU.Measure.getPointsOnPlane(g.toArray(Array(g.size())),j),j=new JU.P3,m=-179,n=3.4028235E38,l=3.4028235E38,v=a=null,k=m,u=3.4028235E38,q,B,t,z,x=g.size();0<=--x;){var r=g.get(x);
q=r.length();t=!1;if(!(0.01>q||null!=a&&(k=Math.abs(JU.Measure.computeTorsion(a,j,c,r,!0)))>-m))if(z=1>k,null==a)a=r,n=q;else{if(q<n-0.01)t=!0,k=u=3.4028235E38;else if(q<l-0.01)u=3.4028235E38;else if(!(q>=l+0.01))continue;t||(B=89<k)&&q<n+0.1&&-0.01<=r.x&&0.01>=r.y&&(3.4028235E38==u||89>u)?(z?(v=null,l=3.4028235E38):(v=a,l=n),a=r,n=q,!t&&k<u&&(u=k)):B&&q<l+0.1&&(v=r,l=q,k<u&&(u=k))}}null==a&&this.invArg();B=null;if(null==v)for(x=g.size();0<=--x;)r=g.get(x),k=JU.Measure.computeTorsion(a,j,c,r,!0),
-89.9>k&&k>m+0.01&&(m=k,B=r);else k=JU.Measure.computeTorsion(a,j,c,v,!0),1<k?(B=a,a=v):B=v;null==B&&this.invArg();b[1]=B;b[2]=a;c=1==((0>f?1:0)+(0>e?1:0)+(0>d?1:0))%2;g=b[3];j=JU.P3.newP(B);m=JU.P3.newP(a);0==f&&0==e?(m.scale(-1),j.scale(-1),b[1]=j,b[2]=m):!(0==f&&0==d)&&(0==e&&0==d)&&(j.scale(-1),m.scale(-1),b[1]=m,b[2]=j);c&&(j=b[1],b[1]=b[2],b[2]=j);g.cross(a,B);g.normalize();g.scale(h);return b},"J.api.SymmetryInterface,JU.P4,JU.P4");n(l,"modelkit",function(){var a=0,b=this.tokAt(1);switch(b){case 603984065:case 4139:this.chk&&
this.e.cmdUndoRedo(603984065==b?4165:4140);return;case 1073742334:if(this.e.$isStateScript&&this.vwr.getModelkit(!1).setProperty("updatekeysfromstate",null),2==this.slen&&null==this.vwr.getModelkitPropertySafely("exists"))return;case 0:case 1073742335:this.chk||this.vwr.setBooleanProperty("modelkitmode",1073742334!=b);if(0==this.tokAt(a+1))return;a=++this.e.iToken;break;case 4126:0>this.vwr.am.cmi&&this.e.errorStr(30,"MODELKIT MINIMIZE");this.minimize(!0);return;case 528432:case 4145:this.e.cmdRotate(!1,
!0);return;case 4098:++this.e.iToken;case 134217764:case 4106:case 12291:case 1275069441:case 4129:case 1073742080:this.assign();return;case 4130:++this.e.iToken;this.mutate();return}for(var c=this.vwr.getModelkit(!1);0!=(b=this.tokAt(++a));){var f=this.paramAsStr(a).toLowerCase(),e=null;switch(b){case 1073742335:case 1073742334:this.chk||(this.vwr.setBooleanProperty("modelkitmode",1073742335==b),1073742334==b&&this.vwr.setStringProperty("picking","identify"));continue;case 1610625028:case 12294:f=
"hidden";e=Boolean.$valueOf(1610625028!=b);break;case 12293:var f="constraint",e="",d=b=null,h=null;switch(this.tokAt(++a)){case 1073742334:case 1073742333:this.chk||this.vwr.setBooleanProperty("dragPicking",!1);break;case 135198:b=this.e.getPoint3f(++a,!0,!0);a=this.e.iToken;d=this.e.getPoint3f(++a,!0,!0);e=null;break;case 134219777:h=this.e.hklParameter(++a,null,!0);e=null;break;case 134217750:h=this.e.planeParameter(++a,!1);e=null;break;default:this.invArg()}null==e?((null==b||null==d)==(null==
h)&&this.invArg(),e=B(-1,[b,d,h])):e=null;a=this.e.iToken;break;case 36867:f=this.paramAsStr(++a);e=0==this.tokAt(++a)?"true":this.paramAsStr(a);break;case 4166:f="vibration";switch(this.tokAt(++a)){case 1073742334:e="off";break;case 1086324754:e="wyckoff";break;default:this.invArg()}break;case 1296041985:switch(this.tokAt(++a)){case 4:case 1073742333:e=this.paramAsStr(a);break;case 12:e=this.getToken(a).value;break;case 2:e=Integer.$valueOf(this.getToken(a).intValue);break;default:this.e.isCenterParameter(a)?
(f="center",e=this.e.centerParameter(a,null),a=this.e.iToken):this.invArg()}break;case 1073742066:if(e=this.paramAsStr(a+1),e.equals("none")){++a;break}case 134217751:case 12289:e=this.e.atomCenterOrCoordinateParameter(++a,null);a=this.e.iToken;break;case 1073742024:e=this.paramAsStr(++a).toLowerCase();this.vwr.isModelKitOption("M",e)||this.invArg();break;case 1814695966:if(this.e.isArrayParameter(a+1)){this.unitcell(2,!0);return}e=this.paramAsStr(++a).toLowerCase();if(!this.vwr.isModelKitOption("U",
e)){this.unitcell(2,!0);return}break;case 1088421903:e=this.paramAsStr(++a).toLowerCase();this.vwr.isModelKitOption("S",e)||this.invArg();break;default:if(this.vwr.isModelKitOption("B",f)){e=Boolean.$valueOf(0==(b=this.tokAt(++a))||1073742335==b);break}if(this.vwr.isModelKitOption("M",f)){e=f;f="mode";break}if(this.vwr.isModelKitOption("U",f)){e=f;f="unitcell";break}this.invArg()}!this.chk&&(null!=e&&null!=(e=c.setProperty(f,e))&&"hidden"!==f&&!c.isHidden())&&this.vwr.showString("modelkit SET "+f+
" "+e.toString(),!1)}});n(l,"assign",function(){0>this.vwr.am.cmi&&this.invArg();var a=this.vwr.getThisModelAtoms(),b=++this.e.iToken,c=this.tokAt(b),f=-1,e=-1,d=1153433601==c,h=1677721602==c,j=4106==c,g=12291==c,m=1275069441==c,n=4129==c,l=134217764==c,v=1073742080==c,k=null,u=null;d||h||j||l||g||n||m||v?b++:(d=!0,c=1153433601);var q=null;if(h){if(2==this.tokAt(b))f=this.e.intParameter(b);else if(N(this.getToken(b).value,"JM.BondSet"))f=this.getToken(b).value.nextSetBit(0);else switch(q=this.expFor(b,
a),f=q.nextSetBit(0),q.cardinality()){case 1:q=this.expFor(++this.e.iToken,a),e=q.nextSetBit(0),0>e&&this.invArg(),q.set(f);case 2:q=this.vwr.ms.getBondsForSelectedAtoms(q,!1);q.isEmpty()?(j=!0,c=4106):f=q.nextSetBit(0);break;default:this.invArg()}b=++this.e.iToken}else if(1073742080==c)q=a;else if(!(d&&4==this.tokAt(b)||1275069441==c))if(!l||this.e.isAtomExpression(b)){q=this.expFor(b,a);f=q.nextSetBit(0);if(0>f)return;b=++this.e.iToken}var G=h=null,t=null;if(m)switch(this.e.isAtomExpression(b)?
(q=this.expFor(++this.e.iToken,a),b=this.e.iToken,h=this.e.optParameterAsString(b+1),h.toLowerCase().equals("packed")&&(v=!0,h="")):h=this.e.optParameterAsString(b),this.e.isPoint3f(this.e.iToken+1)?G=this.getPoint3f(++this.e.iToken,!0):this.e.isArrayParameter(this.e.iToken+1)&&(u=this.e.getPointArray(this.e.iToken+1,-1,!1)),0==h.length&&(h=null),this.tokAt(this.e.iToken+1)){case 1073742080:v=!0;++this.e.iToken;break;case 1086324754:++this.e.iToken,t=this.paramAsStr(++this.e.iToken),b=t.equalsIgnoreCase("general")?
"G":1<t.length||0==t.length?"\x00":t.charAt(0),("a">b&&"A"!=b&&"G"!=b||"z"<b)&&this.invArg(),"packed".equals(this.e.optParameterAsString(this.e.iToken+1))&&(v=!0,++this.e.iToken)}else n?this.e.isArrayParameter(b)?u=this.e.getPointArray(b,-1,!1):G=this.getPoint3f(b,!0):l?(h=this.e.optParameterAsString(b),d=this.vwr.getOperativeSymmetry(),h.equalsIgnoreCase("packed")?(null==d&&this.invArg(),h=d.getClegId(),v=!0):h.equals("ITA")?this.e.optParameterAsString(b+1).equals("/")?(h+="/"+this.e.optParameterAsString(b+
2),this.e.iToken=b+2):h+="/":0>h.indexOf(":")&&0<h.indexOf(",")&&(null==d&&this.invArg(),b=d.getClegId(),h=b.substring(0,b.indexOf(":")+1)+h),1814695966==this.tokAt(this.e.iToken+1)&&(k=Array(1),this.getUnitCellParameter(this.e.iToken+2,k),k=k[0],null==k&&this.invArg()),1073742080==this.tokAt(this.e.iToken+1)&&(v=!0,++this.e.iToken)):j?!g&&0>e&&(q=this.expFor(b,a),e=q.nextSetBit(0),h=this.e.optParameterAsString(++this.e.iToken)):(h=this.e.optParameterAsString(b),d&&(G=++this.e.iToken<this.slen?this.centerParameter(this.e.iToken):
null));if(!this.chk)switch(this.vwr.pushState(),c){case 1153433601:this.e.clearDefinedVariableAtomSets();this.vwr.getModelkit(!1).cmdAssignAtom(q,G,h,this.e.fullCommand);break;case 1677721602:this.vwr.getModelkit(!1).cmdAssignBond(f,(h+"-").charAt(0),this.e.fullCommand);break;case 4106:this.vwr.getModelkit(!1).cmdAssignConnect(f,e,(h+"1").charAt(0),this.e.fullCommand);break;case 1073742080:h=null;case 1275069441:case 1086324754:null==u&&(null!=G?u=B(-1,[G]):null==q&&null==t&&(null==h?this.invArg():
t="G"));a=this.vwr.getModelkit(!1).cmdAssignAddAtoms(h+(null!=t?":"+t:""),u,q,v?"packed":"",this.e.fullCommand);this.e.doReport()&&this.e.report(J.i18n.GT.i(J.i18n.GT.$("{0} atoms added"),a),!1);break;case 12291:a=this.vwr.getModelkit(!1).cmdAssignDeleteAtoms(q);this.e.doReport()&&this.e.report(J.i18n.GT.i(J.i18n.GT.$("{0} atoms deleted"),a),!1);break;case 4129:a=this.vwr.getModelkit(!1).cmdAssignMoveAtoms(q,f,JU.P3.newP(G),u,!0,!1);0<a&&this.vwr.checkCoordinatesChanged(q);this.e.doReport()&&this.e.report(J.i18n.GT.i(J.i18n.GT.$("{0} atoms moved"),
a),!1);break;case 134217764:q=this.vwr.assignSpaceGroup(q,h,k),q.endsWith("!")&&this.e.invArgStr(q),this.e.doReport()&&this.e.showString(q),v&&(a=this.vwr.getModelkit(!1).cmdAssignSpaceGroupPacked(a,q.substring(0,q.indexOf("\n")),this.e.fullCommand),this.e.doReport()&&this.e.report(J.i18n.GT.i(J.i18n.GT.$("{0} atoms added"),a),!1))}});n(l,"getUnitCellParameter",function(a,b){b[0]=null;if(8==this.tokAt(a))return!1;var c=this.e.iToken;if(4==this.tokAt(a)){var c=this.paramAsStr(a),f=this.vwr.getCurrentUnitCell();
null==f&&this.invArg();this.chk||(b[0]=f.getV0abc(c,null));return!0}if(this.e.isArrayParameter(a)){this.e.ignoreError=!0;if(1073742332!=this.tokAt(a+2))try{return b[0]=this.e.floatParameterSet(a,6,6),this.e.ignoreError=!1}catch(e){if(!R(e,Exception))throw e;}try{b[0]=this.e.getPointArray(a,4,!1)}catch(d){if(R(d,Exception))this.e.iToken=c;else throw d;}this.e.ignoreError=!1}return!0},"~N,~A");n(l,"expFor",function(a,b){var c=JU.BS.copy(this.atomExpressionAt(a));c.and(b);return c},"~N,JU.BS");n(l,"getContext",
function(a){for(var b=new JU.SB,c=this.e.thisContext;null!=c;)a?null!=c.vars&&(b.append(this.getScriptID(c)),b.append(JV.StateManager.getVariableList(c.vars,80,!0,!1))):b.append(JS.ScriptError.getErrorLineMessage(c.functionName,c.scriptFileName,this.e.getLinenumber(c),c.pc,JS.ScriptEval.statementAsString(this.vwr,c.statement,-9999,this.e.debugHigh))),c=c.parentContext;a?null!=this.e.contextVariables&&(b.append(this.getScriptID(null)),b.append(JV.StateManager.getVariableList(this.e.contextVariables,
80,!0,!1))):b.append(this.e.getErrorLineMessage2());return b.toString()},"~B");n(l,"getIsosurfaceJvxl",function(a,b){return this.chk?"":this.getShapeProperty(a,"PMESH"===b||"MESH"===b?"jvxlMeshX":"ISOMESH"===b?"pmesh":"ISOMESHBIN"===b||"PMB"===b?"pmeshbin":"jvxlDataXml")},"~N,~S");n(l,"getMoJvxl",function(a,b){var c=b?28:27;this.e.sm.loadShape(c);var f=this.vwr.am.cmi;0>f&&this.e.errorStr(30,"show/write MO/NBO");var e=this.vwr.ms.getInfo(f,"moData");null==e&&this.error(27);var d=this.getShapeProperty(c,
"moNumber");(null==d||0==d.intValue())&&this.setShapeProperty(c,"init",Integer.$valueOf(f));this.setShapeProperty(c,"moData",e);return this.e.sm.getShapePropertyIndex(c,"showMO",a)},"~N,~B");n(l,"getScriptID",function(a){return"\n# "+(null==a?this.e.functionName:"function "+a.functionName)+" (file "+(null==a?this.e.scriptFileName:a.scriptFileName)+(null==a?"":" context "+a.id)+")\n"},"JS.ScriptContext");n(l,"tokenAt",function(a,b){return a<b.length?b[a]:null},"~N,~A");l.tokAtArray=n(l,"tokAtArray",
function(a,b){return a<b.length&&null!=b[a]?b[a].tok:0},"~N,~A");n(l,"getPlotMinMax",function(a,b,c){if(null==a)return 0;switch(c){case 1111490568:case 1111490569:case 1111490570:return b?180:-180;case 1111490565:case 1111490576:return b?360:0;case 1111490574:return b?1:-1}c=b?-1E10:1E10;for(var f=a.length;0<=--f;){var e=a[f];Float.isNaN(e)||b==e>c&&(c=e)}return c},"~A,~B,~N");n(l,"parseDataArray",function(a,b){a=JU.Parser.fixDataString(a);var c=JU.Parser.markLines(a,"\n"),f=c.length;if(!b){for(var e=
JU.AU.newFloat2(f),d=0,h=0;d<f;h=c[d++])h=JU.PT.getTokens(a.substring(h,c[d])),JU.PT.parseFloatArrayData(h,e[d]=Q(h.length,0));return e}h=JU.PT.getTokens(a.substring(0,c[0]));if(3!=h.length)return Q(0,0,0,0);var j=JU.PT.parseInt(h[0]),g=JU.PT.parseInt(h[1]),m=JU.PT.parseInt(h[2]);if(1>j||1>g||1>m)return Q(1,1,1,0);for(var e=JU.AU.newFloat3(j,g),l=0,n=0,d=1,h=c[0];d<f&&l<j;h=c[d++])h=JU.PT.getTokens(a.substring(h,c[d])),h.length<m||(JU.PT.parseFloatArrayData(h,e[l][n]=Q(h.length,0)),++n==g&&(l++,n=
0));return l!=j?(System.out.println("Error reading 3D data -- nX = "+j+", but only "+l+" blocks read"),Q(1,1,1,0)):e},"~S,~B");n(l,"getBitsetPropertyFloat",function(a,b,c,f,e){b=null==c||1086325010==b||1111490843==b?this.e.getBitsetProperty(a,null,b,null,null,c,null,!1,2147483647,!1):this.vwr.getDataObj(c,a,1);if(null==b||!JU.AU.isAF(b))return null==a?null:Q(a.cardinality(),0);if(!Float.isNaN(f))for(a=0;a<b.length;a++)b[a]<f&&(b[a]=NaN);if(!Float.isNaN(e))for(a=0;a<b.length;a++)b[a]>e&&(b[a]=NaN);
return b},"JU.BS,~N,~S,~N,~N");l.labeler=null})})(Clazz,Clazz.getClassName,Clazz.newLongArray,Clazz.doubleToByte,Clazz.doubleToInt,Clazz.doubleToLong,Clazz.declarePackage,Clazz.instanceOf,Clazz.load,Clazz.instantialize,Clazz.decorateAsClass,Clazz.floatToInt,Clazz.floatToLong,Clazz.makeConstructor,Clazz.defineEnumConstant,Clazz.exceptionOf,Clazz.newIntArray,Clazz.newFloatArray,Clazz.declareType,Clazz.prepareFields,Clazz.superConstructor,Clazz.newByteArray,Clazz.declareInterface,Clazz.newShortArray,
Clazz.innerTypeInstance,Clazz.isClassDefined,Clazz.prepareCallback,Clazz.newArray,Clazz.castNullAs,Clazz.floatToShort,Clazz.superCall,Clazz.decorateAsType,Clazz.newBooleanArray,Clazz.newCharArray,Clazz.implementOf,Clazz.newDoubleArray,Clazz.overrideConstructor,Clazz.clone,Clazz.doubleToShort,Clazz.getInheritedLevel,Clazz.getParamsType,Clazz.isAF,Clazz.isAB,Clazz.isAI,Clazz.isAS,Clazz.isASS,Clazz.isAP,Clazz.isAFloat,Clazz.isAII,Clazz.isAFF,Clazz.isAFFF,Clazz.tryToSearchAndExecute,Clazz.getStackTrace,
Clazz.inheritArgs,Clazz.alert,Clazz.defineMethod,Clazz.overrideMethod,Clazz.declareAnonymous,Clazz.cloneFinals);
