(function(X,Y,Z,$,aa,Q,L,R,S,T,O,U,V,ba,I,K,W,M,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,k,N){Q("JS");R(["JS.JmolCmdExtension"],"JS.CmdExt","java.lang.Boolean $.Float $.Long java.util.Hashtable JU.AU $.BS $.Base64 $.Lst $.M3 $.M4 $.Measure $.P3 $.PT $.Quat $.SB $.V3 J.api.Interface J.atomdata.RadiusData J.c.STER $.VDW J.i18n.GT JM.Atom $.AtomCollection $.BondSet $.LabelToken JS.SV $.ScriptCompiler $.ScriptError $.ScriptEval $.ScriptInterruption $.ScriptMathProcessor $.ScriptParam $.T JU.BSUtil $.C $.Edge $.Elements $.Escape $.Logger $.Parser $.Point3fi JV.FileManager $.StateManager $.Viewer".split(" "),
function(){c$=T(function(){this.e=this.vwr=null;this.chk=!1;this.st=null;this.slen=0;S(this,arguments)},JS,"CmdExt",null,JS.JmolCmdExtension);V(c$,function(){});N(c$,"init",function(a){this.e=a;this.vwr=this.e.vwr;return this},"~O");N(c$,"dispatch",function(a,b,d){this.chk=this.e.chk;this.slen=this.e.slen;this.st=d;switch(a){case 4098:this.assign();break;case 135270423:this.cache();break;case 4102:this.calculate();break;case 4103:this.capture();break;case 4105:this.centerAt();break;case 135270405:this.compare();
break;case 528395:this.console();break;case 4106:this.connect(1);break;case 1095766024:this.configuration();break;case 135270408:this.data();break;case 1612189718:this.connect(0);break;case 1052700:this.mapProperty();break;case 4126:this.minimize();break;case 1276121113:this.modulation();break;case 4131:this.navigate();break;case 4133:case 135270418:case 1052714:this.plot(d);break;case 135270926:this.show();break;case 528443:this.stereo();break;case 135270422:return this.write(b?d: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");k(c$,"atomExpressionAt",function(a){return this.e.atomExpressionAt(a)},"~N");k(c$,"checkLength",function(a){this.e.checkLength(a)},"~N");k(c$,"error",function(a){this.e.error(a)},"~N");k(c$,"invArg",function(){this.e.invArg()});k(c$,"invPO",function(){this.error(23)});k(c$,"getShapeProperty",function(a,b){return this.e.getShapeProperty(a,b)},"~N,~S");k(c$,"paramAsStr",function(a){return this.e.paramAsStr(a)},
"~N");k(c$,"centerParameter",function(a){return this.e.centerParameter(a)},"~N");k(c$,"floatParameter",function(a){return this.e.floatParameter(a)},"~N");k(c$,"getPoint3f",function(a,b){return this.e.getPoint3f(a,b)},"~N,~B");k(c$,"intParameter",function(a){return this.e.intParameter(a)},"~N");k(c$,"isFloatParameter",function(a){return this.e.isFloatParameter(a)},"~N");k(c$,"setShapeProperty",function(a,b,d){this.e.setShapeProperty(a,b,d)},"~N,~S,~O");k(c$,"showString",function(a){this.e.showString(a)},
"~S");k(c$,"stringParameter",function(a){return this.e.stringParameter(a)},"~N");k(c$,"getToken",function(a){return this.e.getToken(a)},"~N");k(c$,"tokAt",function(a){return this.e.tokAt(a)},"~N");k(c$,"cache",function(){var a=this.tokAt(1),b=null,d=2;switch(a){case 1276118017:case 1073742119:b=this.e.optParameterAsString(d++);case 1073741882:this.checkLength(d);this.chk||("all".equals(b)&&(b=null),b=this.vwr.cacheFileByName(b,1276118017==a),this.showString(0>b?"cache cleared":b+" bytes "+(1276118017==
a?" cached":" removed")));break;default:this.invArg()}});k(c$,"calculate",function(){var a=!1,b=!1,d=null,c=null,e=this.e,f=-2147483648;if(2<=(e.iToken=e.slen))switch(e.clearDefinedVariableAtomSets(),this.getToken(1).tok){case 1073741824:this.checkLength(2);break;case 1632634891:this.checkLength(2);if(this.chk)return;f=this.vwr.calculateFormalCharges(null);this.showString(J.i18n.GT.i(J.i18n.GT._("{0} charges modified"),f));return;case 1076887572:this.checkLength(2);this.chk||this.vwr.ms.assignAromaticBondsBs(!0,
null);return;case 1612189718:2!=e.slen&&(d=(b=1641025539==this.tokAt(++e.iToken))?this.vwr.bsA():this.atomExpressionAt(e.iToken),!b&&1641025539!=this.tokAt(++e.iToken)&&(c=this.atomExpressionAt(e.iToken)));if(this.chk)return;f=this.vwr.autoHbond(d,c,!1);-2147483648!=f&&e.report(J.i18n.GT.i(J.i18n.GT._("{0} hydrogen bonds"),Math.abs(f)));return;case 1613758476:d=2==this.slen?null:this.atomExpressionAt(2);e.checkLast(e.iToken);this.chk||this.vwr.addHydrogens(d,!1,!1);return;case 1112541195:e.iToken=
1;d=2==this.slen?null:this.atomExpressionAt(2);e.checkLast(e.iToken);if(!this.chk)try{this.vwr.calculatePartialCharges(d)}catch(g){if(I(g,JV.JmolAsyncException))e.loadFileResourceAsync(g.getFileName());else throw g;}return;case 1073742102:this.chk||this.showString(this.vwr.ms.calculatePointGroup(this.vwr.bsA()));return;case 1112539150:this.checkLength(2);this.chk||(this.vwr.calculateStraightness(),this.vwr.addStateScript("set quaternionFrame '"+this.vwr.getQuaternionFrame()+"'; calculate straightness",
!1,!0));return;case 1641025539:d=4>this.slen?null:this.atomExpressionAt(2);switch(this.tokAt(++e.iToken)){case 1052714:break;case 1073741916:if(this.chk)return;e.showString(this.vwr.getAnnotationParser().calculateDSSRStructure(this.vwr,d));return;case 1073741915:b=!0;break;case 0:b=this.vwr.getBoolean(603979826);break;default:this.invArg()}this.chk||this.showString(this.vwr.calculateStructures(d,b,!0));return;case 1708058:d=e.iToken+1<this.slen?this.atomExpressionAt(++e.iToken):null;c=e.iToken+1<
this.slen?this.atomExpressionAt(++e.iToken):null;this.checkLength(++e.iToken);this.chk||(f=this.vwr.calculateStruts(d,c),0<f&&(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"),f)));return;case 3145756:a=!0;case 1112539151:b=!1;switch(this.tokAt(2)){case 135266325:e.iToken++;
break;case 0:b=!a;break;case 1073741952:b=!0;e.iToken++;break;default:b=!0}d=e.iToken+1<this.slen?this.atomExpressionAt(++e.iToken):this.vwr.bsA();this.checkLength(++e.iToken);this.chk||this.vwr.calculateSurface(d,b?3.4028235E38:-1);return}e.errorStr2(53,"CALCULATE","aromatic? hbonds? hydrogen? formalCharge? partialCharge? pointgroup? straightness? structure? struts? surfaceDistance FROM? surfaceDistance WITHIN?")});k(c$,"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"),d=0,c=0,e=this.e.slen,f="",g=1073742070!=this.vwr.am.animationReplayMode,h=1,j=this.tokAt(h),B=603979967==j;B&&(j=this.tokAt(++h));switch(0==j?j=1150985:j){case 4:f=this.e.optParameterAsString(h++);if(0==f.length){c=1150985;break}b=f.toLowerCase();b.endsWith(".gift")||b.endsWith(".pngt")?(B=!0,f=f.substring(0,f.length-1),b=f.toLowerCase()):!b.endsWith(".gif")&&!b.contains(".png")&&(f+=".gif");b.endsWith(".png")?(b.endsWith("0.png")||
(f=f.substring(0,f.length-4)+"0000.png"),b="PNG"):b="GIF";B&&(b+="T");a=f.indexOf("0000.");j=0>a||a!=f.lastIndexOf(".")-4;a=!1;528410==this.tokAt(h)&&(g=!0,this.tokAt(++h));switch(this.tokAt(h)){case 1073742129:a=!0;case 1611141175:d=null;g="y";h++;a?(h<e&&2!=this.tokAt(h)&&(g=this.e.optParameterAsString(h++).toLowerCase()),d=JU.PT.rep("rotate Y 10 10;rotate Y -10 -10;rotate Y -10 -10;rotate Y 10 10","10",""+(h<e?this.intParameter(h++):5))):(h<e&&(g=this.e.optParameterAsString(h++).toLowerCase()),
d="rotate Y 360 30;");if(this.chk)return;this.vwr.setNavigationMode(!1);if(""===g||0>"xyz".indexOf(g))g="y";e=this.vwr.g.waitForMoveTo;d="set waitformoveto true;"+JU.PT.rep(d,"Y",g)+";set waitformoveto "+e;d="capture "+(B?"transparent ":"")+JU.PT.esc(f)+" LOOP;"+d+";capture end;";this.e.cmdScript(0,null,d);return;case 3:case 2:d=this.floatParameter(h++)}if(this.chk)return;c=1073742032;a=new java.util.Hashtable;B=this.vwr.getInt(553648132);j&&(a.put("streaming",Boolean.TRUE),g||this.showString(J.i18n.GT.o(J.i18n.GT._("Note: Enable looping using {0}"),
["ANIMATION MODE LOOP"])),this.showString(J.i18n.GT.o(J.i18n.GT._("Animation delay based on: {0}"),["ANIMATION FPS "+B])));a.put("captureFps",Integer.$valueOf(B));break;case 1150985:case 1073741874:null!=a&&a.put("captureSilent",Boolean.TRUE);case 1048589:case 1048588:this.checkLength(-2);c=j;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",f),a.put("quality",Integer.$valueOf(-1)),a.put("endTime",
Long.$valueOf(0>=d?-1:System.currentTimeMillis()+U(1E3*d))),a.put("captureMode",JS.T.nameOf(c).toLowerCase()),a.put("captureLooping",g?Boolean.TRUE:Boolean.FALSE),f=this.vwr.processWriteOrCapture(a),JU.Logger.info(f))}});k(c$,"centerAt",function(){var a=this.getToken(1).tok;switch(a){case 1073741826:case 96:case 1679429641: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)});k(c$,"compare",function(){var a=this.e,b=!1,d=!1,c=!1,e=!1,f=!1,g=null,h=null,j=null,B=null,v=null,t=null;a.iToken=0;var r=this.isFloatParameter(1)?this.floatParameter(++a.iToken):NaN,s=this.atomExpressionAt(++a.iToken),k=null,l=null;a.isArrayParameter(++a.iToken)?k=a.getPointArray(a.iToken,-1,!1):1141899265!=this.tokAt(a.iToken)&&(l=this.atomExpressionAt(a.iToken));
var y=null,n=!1,z=null,x=JU.BSUtil.copy(s);null!=l&&x.or(l);for(var x=e=null==k&&null!=l&&x.equals(s),p=a.iToken+1;p<this.slen;++p)switch(this.getToken(p).tok){case 4115:x=!0;break;case 135267336:if(n=!0,4!=this.tokAt(p+1)){z="*";break}case 135267335:z=this.stringParameter(++p);break;case 1678770178:d=f=!0;z=this.paramAsStr(++p);z.equalsIgnoreCase("SMILES")&&(n=!0,z="*");break;case 3:case 2:r=Math.abs(this.floatParameter(p));break;case 269484080:break;case 3158024:y=this.atomExpressionAt(++p);p=a.iToken;
break;case 10:case 1048577:null!=t&&this.invArg();var j=this.atomExpressionAt(a.iToken),q=e?0:this.tokAt(a.iToken+1),B=null==k&&a.isArrayParameter(a.iToken+1)?null:10==q||1048577==q?this.atomExpressionAt(++a.iToken):JU.BSUtil.copy(j);null!=y&&(j.and(y),null!=B&&B.and(y));null==B?k=a.getPointArray(++a.iToken,-1,!1):B.and(l);null==v&&(v=new JU.Lst);v.addLast([j,B]);p=a.iToken;break;case 7:null!=v&&this.invArg();b=!0;g=a.getQuaternionArray(a.theToken.getList(),1073742001);this.getToken(++p);h=a.getQuaternionArray(a.theToken.getList(),
1073742001);null==t&&(t=new JU.Lst);t.addLast([g,h]);break;case 1073742077:b=!0;break;case 135266320:case 1141899265:b=!1;break;case 528432:d=!0;break;case 4160:c=!0;break;default:this.invArg()}if(!this.chk){x&&(r=0);Float.isNaN(r)||0>r?r=1:!d&&!c&&(d=c=!0);e=0!=r;(q=!b&&null==z||null!=k)&&J.api.Interface.getInterface("JU.Eigen",this.vwr,"script");null==v&&null==t&&(null==y?(j=q?this.vwr.getAtomBitSet("spine"):new JU.BS,0>j.nextSetBit(0)?(j=s,B=l):(B=JU.BSUtil.copy(j),j.and(s),B.and(l))):(j=JU.BSUtil.copy(s),
B=JU.BSUtil.copy(l),j.and(y),B.and(y),j.and(s),B.and(l)),v=new JU.Lst,v.addLast([j,B]));if(x){s=this.vwr.ms.getModelBS(s,!1);y=Array(s.cardinality());p=0;for(B=s.nextSetBit(0);0<=B;B=s.nextSetBit(B+1),p++)y[p]=this.vwr.getModelUndeletedAtomsBitSet(B)}else y=[s];for(B=0;B<y.length;B++){for(var s=y[B],w=M(2,0),u=null,A=new JU.Lst,D=null,E=x?new JU.Lst:v,p=0;p<v.size();++p){var G=v.get(p);x&&E.addLast(G=[JU.BSUtil.copy(G[0]),G[1]]);G[0].and(s)}var F=null,m=null;if(q){null!=k&&(E.clear(),E.addLast([j,
k]));try{D=this.vwr.getCenterAndPoints(E,!0)}catch(H){if(I(H,Exception))this.invArg();else throw H;}u=D[0].length-1;for(p=1;p<=u;p++){A=D[0][p];G=D[1][p];if(!L(A,JM.Atom)||!L(G,JM.Atom))break;JU.Logger.info(" atom 1 "+A.getInfo()+"\tatom 2 "+G.getInfo())}u=JU.Measure.calculateQuaternionRotation(D,w);p=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 "+p+" --\x3e "+w+" Angstroms")}else if(b){if(null==t)for(p=0;p<E.size();p++){G=E.get(p);
g=this.vwr.getAtomGroupQuaternions(G[0],2147483647);h=this.vwr.getAtomGroupQuaternions(G[1],2147483647);for(u=0;u<g.length&&u<h.length;u++)A.addLast(h[u].div(g[u]))}else for(u=0;u<g.length&&u<h.length;u++)A.addLast(h[u].div(g[u]));w[0]=0;g=A.toArray(Array(A.size()));u=JU.Quat.sphereMean(g,w,1E-4);this.showString("RMSD = "+w[0]+" degrees")}else{p=new JU.M4;F=new JU.P3;if(("*".equals(z)||"".equals(z))&&null!=s)try{z=this.vwr.getSmiles(s)}catch(P){if(I(P,Exception))a.evalError(P.getMessage(),null);else throw P;
}if(f){var K;if(null==s||null==l||null==(K=a.getSmilesExt().getFlexFitList(s,l,z,!n)))break;this.vwr.setDihedrals(K,null,1)}w=a.getSmilesExt().getSmilesCorrelation(s,l,z,null,null,p,null,!n,!1,null,F,!1,!1);if(Float.isNaN(w)){this.showString("structures do not match");break}c&&(m=new JU.V3,p.getTranslation(m));d&&(u=new JU.M3,p.getRotationScale(u),u=JU.Quat.newM(u));this.showString("RMSD = "+w+" Angstroms")}null!=D&&(F=D[0][0]);null==F&&(D=this.vwr.getCenterAndPoints(E,!0),F=D[0][0]);E=new JU.P3;
w=NaN;c&&(null==m&&(m=JU.V3.newVsub(D[1][0],F)),w=1E10);d&&(null==u&&a.evalError("option not implemented",null),E.add2(F,u.getNormal()),w=u.getTheta(),0==w&&c&&(0.01<m.length()?w=1E10:d=c=e=!1));if(!Float.isNaN(w)&&!Float.isNaN(E.x)&&(D=null,d&&(c&&0!=r)&&(D=this.vwr.ms.getAtomPointVector(s),p=JS.ScriptMathProcessor.getMatrix4f(u.getMatrix(),m),D=JU.Measure.transformPoints(D,p,F)),a.useThreads()||(e=!1),this.vwr.rotateAboutPointsInternal(a,F,E,w/r,w,e,s,m,D,null,null)&&e&&a.isJS))throw new JS.ScriptInterruption(a,
"compare",1);}}});k(c$,"configuration",function(){var a,b=this.vwr.bsA();if(1==this.slen)a=this.vwr.ms.setConformation(b),this.vwr.ms.addStateScript("select",null,b,null,"configuration",!0,!1);else{b=this.intParameter(this.e.checkLast(1));if(this.chk)return;a=this.vwr.ms.getConformation(this.vwr.am.cmi,b-1,!0);this.vwr.addStateScript("configuration "+b+";",!0,!1)}this.chk||(this.setShapeProperty(1,"type",Integer.$valueOf(30720)),this.e.setShapeSizeBs(1,0,a),this.vwr.autoHbond(a,a,!0),this.vwr.select(a,
!1,0,this.e.tQuiet))});k(c$,"measure",function(){var a=this.e,b=null,d=0,c=null;if(2==this.slen)switch(this.tokAt(1)){case 1048588:this.setShapeProperty(6,"hideAll",Boolean.TRUE);return;case 12291:this.chk||this.vwr.clearAllMeasurements();return}this.vwr.shm.loadShape(6);switch(this.tokAt(1)){case 135267335:var e=this.stringParameter(3==this.slen?2:4);if(this.chk)return;var f=this.vwr.ms.at,b=this.vwr.ms.ac,d=null;try{d=this.vwr.getSmilesMatcher().getCorrelationMaps(e,f,b,this.vwr.bsA(),!0,!1)}catch(g){if(I(g,
Exception))a.evalError(g.getMessage(),null);else throw g;}if(null==d)return;this.setShapeProperty(6,"maps",d);return}switch(this.slen){case 2:switch(this.getToken(1).tok){case 0:case 1048589: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(1048579==
this.getToken(2).tok)this.chk||this.vwr.clearAllMeasurements();else{var h=this.intParameter(2)-1;this.chk||this.vwr.deleteMeasurement(h)}return}}for(var j=0,B=0,v=-1,k=-1,r=-1,s=K(5,0),C=[3.4028235E38,3.4028235E38],l=!1,y=!1,n=!1,z=!0,x=null,p=null,e=269484114,q=f=null,w=new JU.Lst,u=new JU.BS,A=null,D=null,E=0,G=0,h=1;h<this.slen;++h)switch(this.getToken(h).tok){case 1074790550:1!=h&&this.invArg();b=a.optParameterAsString(++h);continue;case 1073741824:a.errorStr(24,"ALL, ALLCONNECTED, DELETE");break;
default:this.error(15);break;case 269484144:135266310!=this.tokAt(h+1)&&this.invArg();h++;n=!0;break;case 135266310:case 1073741834:case 1048579:y=1073741834==a.theTok;k=-1;l=!0;y&&n&&this.invArg();break;case 1766856708:d=JU.C.getColix(a.getArgbParam(++h));h=a.iToken;break;case 1073742066:a.isPoint3f(++h)?(c=this.getPoint3f(h,!1),c=[1,c.x,c.y,c.z,0,0,0]):c=a.floatParameterSet(h,7,7);h=a.iToken;break;case 1666189314:case 1073741917:G=O((1666189314==a.theTok?2E3:1E3)*this.floatParameter(++h));null!=
b&&0>=G&&(G=-1);break;case 3:null!=x&&this.invArg();z=l=!0;r=(r+1)%2;C[r]=this.floatParameter(h);break;case 12291:269484114!=e&&this.invArg();e=12291;break;case 4114:var F=this.floatParameter(++h),m=this.paramAsStr(++h),H=this.paramAsStr(++h);this.chk||(q=this.vwr.getFont3D(m,H,F));break;case 2:F=this.intParameter(h);if(l)z=!0,r=(r+1)%2,C[r]=F;else{k=this.vwr.getAtomIndexFromAtomNumber(F);if(!this.chk&&0>k)return;null!=A&&this.invArg();4<(s[0]=++j)&&a.bad();s[j]=k}break;case 1095761935:v=this.intParameter(++h);
break;case 1048588:269484114!=e&&this.invArg();e=1048588;break;case 1048589:269484114!=e&&this.invArg();e=1048589;break;case 1073742114:z=l=!0;k=-1;break;case 1073741989:case 1073741990:p=Boolean.$valueOf(1073741989==a.theTok);l=!0;n=1073741990==a.theTok;break;case 1649412120:0<=r&&this.invArg();x=a.encodeRadiusParameter(h,!1,!0);if(null==x)return;x.values=C;h=a.iToken;l=n=!0;p=Boolean.$valueOf(!1);1==E&&(E++,j++,F=JU.BSUtil.copy(u),JU.BSUtil.invertInPlace(F,this.vwr.ms.ac),F.and(this.vwr.ms.getAtomsWithinRadius(5,
u,!1,null)),w.addLast(F));break;case 10:case 1048577:case 1048586:case 8:case 1048582:(10==a.theTok||1048577==a.theTok)&&E++;0<=k&&this.invArg();a.expressionResult=Boolean.FALSE;A=this.centerParameter(h);if(L(a.expressionResult,JU.BS)&&(A=u=a.expressionResult,!this.chk&&0==u.length()))return;L(A,JU.P3)&&(j=new JU.Point3fi,j.setT(A),j.mi=v,A=j);4<(j=++B)&&a.bad();h=a.iToken;w.addLast(A);break;case 4:f=this.stringParameter(h);break;case 1073742164:D=a.tickParamAsStr(h,!1,!0,!0),h=a.iToken,e=1060866}(null!=
x&&(0<=r||2!=j)||2>j&&null==b&&(null==D||1==j))&&a.bad();null!=f&&0!=f.indexOf(j+":")&&(f=j+":"+f);z&&C[1]<C[0]&&(C[1]=C[0],C[0]=3.4028235E38==C[1]?3.4028235E38:-200);if(!this.chk)if(null!=A||null!=D)null==x&&(x=new J.atomdata.RadiusData(C,0,null,null)),null==A&&(D.id="default"),null!=A&&(null!=f&&269484114==e)&&(e=1060866),a=null,null!=q&&(a=J.api.Interface.getInterface("JM.Text",this.vwr,"script").newLabel(this.vwr,q,"",d,0,0,0,null)),null!=a&&(a.pymolOffset=c),this.setShapeProperty(6,"measure",
this.vwr.newMeasurementData(b,w).set(e,null,x,f,null,D,y,n,p,l,G,d,a));else switch(a=null==b?s:b,e){case 12291:this.setShapeProperty(6,"delete",a);break;case 1048589:this.setShapeProperty(6,"show",a);break;case 1048588:this.setShapeProperty(6,"hide",a);break;default:this.setShapeProperty(6,null==f?"toggle":"toggleOn",a),null!=f&&this.setShapeProperty(6,"setFormats",f)}});k(c$,"connect",function(a){var b=this.e,d=M(2,0),c=Array(2);c[0]=c[1]=this.vwr.bsA();var e=NaN,f=[-2147483648],g=0,h=131071,j=1073742026,
B=!1,k=!1,t=!1,r=3.4028235E38,s=!1,C=0,l=0,y=new JU.BS,n=!1,z=0,x=0,p=0,q=!1;if(1==this.slen)this.chk||this.vwr.rebondState(b.$isStateScript);else{for(;a<this.slen;++a){switch(this.getToken(a).tok){case 1048589:case 1048588:this.checkLength(2);this.chk||this.vwr.rebondState(b.$isStateScript);return;case 2:case 3:if(0<C){(k||s)&&b.error(23);h=JU.Edge.getBondOrderFromFloat(this.floatParameter(a));131071==h&&this.invArg();k=!0;break}2<++l&&b.bad();var w=this.floatParameter(a);269484210==this.tokAt(a+
1)&&(w=-w/100,a++);d[g++]=w;break;case 10:case 1048577:(2<C||n&&0<C)&&b.bad();(k||s)&&this.invArg();c[C++]=this.atomExpressionAt(a);n=b.isBondSet;if(2==C){for(var w=b.iToken,u=a;u<w;u++)if(1073741824==this.tokAt(u)&&this.paramAsStr(u).equals("_1")){z=a;break}b.iToken=w}a=b.iToken;break;case 1087373318:q=!0;break;case 1766856708:case 603979967:case 1073742074:s=!0;r=this.getColorTrans(b,a,!1,f);a=b.iToken;break;case 1074790662:f=1073741852==this.tokAt(2);this.checkLength(f?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(f){b=b.$isStateScript&&this.vwr.g.legacyAutoBonding;this.vwr.ms.autoBondBs4(null,null,e,null,this.vwr.getMadBond(),b);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 1073741830:case 1073741852:case 1073741904:case 1073742025:case 1073742026:t=
!0;++a!=this.slen&&this.invArg();j=b.theTok;1073741852==j&&!(131071==h||2048==h||515==h)&&this.invArg();break;case 1708058:s||(f[0]=16777215,r=0.5,e=this.vwr.getFloat(570425406),s=!0),t||(j=1073742026),t=!0;case 1073741824:if(b.isColorParam(a)){x=-a;break}case 1076887572:case 1612189718:h=this.paramAsStr(a);131071==(h=JS.ScriptParam.getBondOrderFromString(h))&&this.invArg();k&&b.error(18);k=!0;switch(h){case 33:switch(this.tokAt(a+1)){case 3:h=JS.ScriptParam.getPartialBondOrderFromFloatEncodedInt(this.st[++a].intValue);
break;case 2:h=this.intParameter(++a)}break;case 2048:2==this.tokAt(a+1)&&(h=this.intParameter(++a)<<11,p=this.floatParameter(++a))}break;case 1666189314:e=this.floatParameter(++a);s=!0;break;case 1048587:case 12291:++a!=this.slen&&this.invArg();j=12291;B=!0;s=!1;break;default:x=a}0<a&&(x==-a||x==a&&b.isColorParam(a)?(s=!0,f[0]=b.getArgbParam(a),a=b.iToken):x==a&&this.invArg())}if(!this.chk){2>g&&(0==g&&(d[0]=1E8),d[1]=d[0],d[0]=0.1);s&&(k||(h=65535),t||(j=1073742025));k=g=0;if(0<z){p=new JU.BS;b.definedAtomSets.put("_1",
p);q=c[0];for(t=q.nextSetBit(0);0<=t;t=q.nextSetBit(t+1))p.set(t),c=this.vwr.makeConnections(d[0],d[1],h,j,p,this.atomExpressionAt(z),y,n,!1,0),g+=Math.abs(c[0]),k+=c[1],p.clear(t)}else c=this.vwr.makeConnections(d[0],d[1],h,j,c[0],c[1],y,n,q,p),g+=Math.abs(c[0]),k+=c[1];d=b.doReport();B?d&&b.report(J.i18n.GT.i(J.i18n.GT._("{0} connections deleted"),k)):(s&&(this.vwr.selectBonds(y),Float.isNaN(e)||b.setShapeSizeBs(1,Math.round(2E3*e),null),this.finalizeObject(1,f[0],r,0,!1,null,0,y),this.vwr.selectBonds(null)),
d&&b.report(J.i18n.GT.o(J.i18n.GT._("{0} new bonds; {1} modified"),[Integer.$valueOf(g),Integer.$valueOf(k)])))}}},"~N");k(c$,"console",function(){switch(this.getToken(1).tok){case 1048588:this.chk||this.vwr.showConsole(!1);break;case 1048589:this.chk||this.vwr.showConsole(!0);break;case 1073741882:this.chk||this.vwr.sm.clearConsole();break;case 135270422:this.showString(this.stringParameter(2));break;default:this.invArg()}});k(c$,"data",function(){var a=this.e,b=null,d=null,c=!1,e;switch(a.iToken=
this.slen){case 5:b=this.paramAsStr(2);case 4:case 2:d=this.paramAsStr(1);if(d.equalsIgnoreCase("clear")){this.chk||this.vwr.setData(null,null,0,0,0,0,0);return}if(0<=(e=d.indexOf("@")))b=""+a.getParameter(d.substring(e+1),4,!0),d=d.substring(0,e).trim();else if(null==b&&0<=(e=d.indexOf(" ")))b=d.substring(e+1).trim(),d=d.substring(0,e).trim(),c=!0;break;default:a.bad()}e=d+" ";e=e.substring(0,e.indexOf(" ")).toLowerCase();if(e.equals("model")||e.equals("append"))a.cmdLoad();else if(!this.chk){var f=
0<=d.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(d.substring(7).toUpperCase()+"_data",b.trim());else if(0==e.indexOf("file_"))this.vwr.setLigandModel(d.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=K(b+1,0);for(f=1;f<=b;f++)e[f]=f;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]=d,a[1]=this.parseDataArray(b,!1),a[3]=Integer.$valueOf(2),this.vwr.setData(d,a,0,0,0,0,0);else if(0==e.indexOf("data3d_"))a[0]=d,a[1]=this.parseDataArray(b,!0),a[3]=Integer.$valueOf(3),this.vwr.setData(d,a,0,0,0,0,0);else{var g=JU.PT.getTokens(d);if(0==e.indexOf("property_")&&!(2==g.length&&g[1].equals("set"))){f=this.vwr.bsA();a[0]=e;var h=c?0:this.vwr.getP("propertyAtomNumberField").intValue(),j=c?0:this.vwr.getP("propertyAtomNumberColumnCount").intValue(),
k=c?-2147483648:this.vwr.getP("propertyDataField").intValue(),v=c?0:this.vwr.getP("propertyDataColumnCount").intValue();!c&&0<=d.indexOf(" ")&&(3==g.length&&(h=JU.PT.parseInt(g[1]),k=JU.PT.parseInt(g[2])),5==g.length&&(h=JU.PT.parseInt(g[1]),j=JU.PT.parseInt(g[2]),k=JU.PT.parseInt(g[3]),v=JU.PT.parseInt(g[4])));0>h&&(h=0);0>k&&(k=0);d=this.vwr.ms.ac;c=null;g=JU.BS.newN(d);if(0<h){for(var c=K(d+2,0),t=0;t<=d;t++)c[t]=-1;for(t=f.nextSetBit(0);0<=t;t=f.nextSetBit(t+1)){var r=this.vwr.ms.at[t].getAtomNumber();
r>d+1||(0>r||g.get(r))||(g.set(r),c[r]=t)}a[2]=c}else a[2]=JU.BSUtil.copy(f);a[1]=b;a[3]=Integer.$valueOf(0);this.vwr.setData(e,a,d,h,j,k,v)}else"occupany".equals(e)&&(e="occupancy"),h=JM.AtomCollection.getUserSettableType(e),0<=h?this.vwr.setAtomData(h,e,b,f):(a[0]=d,a[1]=b,a[3]=Integer.$valueOf(0),this.vwr.setData(e,a,0,0,0,0,0))}}});k(c$,"ellipsoid",function(){var a=this.e,b=0,d=1,c=3.4028235E38,e=!1,f=!1;this.setShapeProperty(20,"thisID",null);switch(this.getToken(1).tok){case 1048589:b=2147483647;
break;case 1048588:break;case 2:b=this.intParameter(1);break;case 1085443:this.e.sm.loadShape(20);this.setShapeProperty(20,"select",this.paramAsStr(2));d=a.iToken;f=e=!0;break;case 1074790550:case 269484209:case 1073741824:this.e.sm.loadShape(20);1074790550==a.theTok&&d++;this.setShapeId(20,d,!1);d=a.iToken;e=!0;break;default:this.invArg()}if(e){for(b=[-2147483648];++d<this.slen;){var e=this.paramAsStr(d),g=null;this.getToken(d);if(!f)switch(a.theTok){case 1048582:e="points";g=Array(3);g[0]=a.objectNameParameter(++d);
if(this.chk)continue;a.getShapePropertyData(24,"getVertices",g);break;case 1611272194:for(var g=Array(3),h=0;3>h;h++)g[h]=new JU.V3,g[h].setT(this.centerParameter(++d)),d=a.iToken;break;case 12289:g=this.centerParameter(++d);d=a.iToken;break;case 1095761935:g=Integer.$valueOf(this.intParameter(++d));break;case 12291:g=Boolean.TRUE,this.checkLength(d+1)}if(null==g)switch(a.theTok){case 1048589:e="on";g=Boolean.TRUE;break;case 1048588:e="on";g=Boolean.FALSE;break;case 1073742138:g=Float.$valueOf(this.floatParameter(++d));
break;case 10:case 1048577:e="atoms";g=this.atomExpressionAt(d);d=a.iToken;break;case 1766856708:case 603979967:case 1073742074:c=this.getColorTrans(a,d,!0,b);d=a.iToken;continue;case 1073742075:g=this.paramAsStr(++d)}null==g&&this.invArg();this.setShapeProperty(20,e.toLowerCase(),g)}this.finalizeObject(20,b[0],c,0,!1,null,0,null);this.setShapeProperty(20,"thisID",null)}else a.setShapeSizeBs(20,b,null)});k(c$,"mapProperty",function(){for(var a,b,d,c,e,f=0,g=0,h=0,j=this.e;;){if(1114638363==this.tokAt(1))a=
this.vwr.bsA(),b=this.atomExpressionAt(2),d=c="selected";else{a=this.atomExpressionAt(1);if(1048583!=this.tokAt(++j.iToken)||!JS.T.tokAttr(f=this.tokAt(++j.iToken),1078984704))break;d=this.paramAsStr(j.iToken);b=this.atomExpressionAt(++j.iToken);if(1048583!=this.tokAt(++j.iToken)||!JS.T.tokAttr(g=this.tokAt(++j.iToken),2048))break;c=this.paramAsStr(j.iToken)}e=JS.T.tokAttr(h=this.tokAt(j.iToken+1),1078984704)?this.paramAsStr(++j.iToken):JS.T.nameOf(h=1095763969);j.checkLast(j.iToken);if(this.chk)return;
var k=null;this.showString("mapping "+d.toUpperCase()+" for "+a.cardinality()+" atoms to "+c.toUpperCase()+" for "+b.cardinality()+" atoms using "+e.toUpperCase());if(JS.T.tokAttrOr(f,1095761920,1112539136)&&JS.T.tokAttrOr(g,1095761920,1112539136)&&JS.T.tokAttrOr(h,1095761920,1112539136)){var v=j.getBitsetPropertyFloat(a,f|224,NaN,NaN),t=j.getBitsetPropertyFloat(a,h|224,NaN,NaN),f=j.getBitsetPropertyFloat(b,h|224,NaN,NaN),r=1716520985==g,s=M(r?this.vwr.ms.ac:f.length,0),k=new JU.BS;if(v.length==t.length){for(var C=
new java.util.Hashtable,h=0;h<v.length;h++)C.put(Float.$valueOf(t[h]),Float.$valueOf(v[h]));v=-1;for(h=t=0;h<f.length;h++){var v=b.nextSetBit(v+1),l=C.get(Float.$valueOf(f[h]));null!=l&&(k.set(v),s[r?v:t]=l.floatValue(),t++)}r?this.vwr.setData(c,[c,s,k,Integer.$valueOf(1),Boolean.TRUE],this.vwr.ms.ac,0,0,2147483647,0):this.vwr.setAtomProperty(k,g,0,0,null,s,null)}}if(null==k){d=this.getBitsetIdent(a,"{"+e+"=%["+e+"]}."+c+" = %["+d+"]",null,!1,2147483647,!1);a=new JU.SB;for(h=0;h<d.length;h++)0>d[h].indexOf("null")&&
a.append(d[h]).appendC("\n");JU.Logger.debugging&&JU.Logger.debug(a.toString());d=JU.BSUtil.copy(this.vwr.slm.bsSubset);this.vwr.slm.setSelectionSubset(b);try{j.runScript(a.toString())}catch(y){if(I(y,Exception))b=y,this.vwr.slm.setSelectionSubset(d),j.errorStr(-1,"Error: "+b.getMessage());else if(I(y,Error))b=y,this.vwr.slm.setSelectionSubset(d),j.errorStr(-1,"Error: "+b.toString());else throw y;}this.vwr.slm.setSelectionSubset(d)}this.showString("DONE");return}this.invArg()});k(c$,"minimize",function(){for(var a=
null,b=2147483647,d=0,c=!1,e=!1,f=null,g=!1,h=this.vwr.getMinimizer(!1),j=1;j<this.slen;j++)switch(this.getToken(j).tok){case 1073741828:c=!0;continue;case 1073741874:case 1073742162:this.checkLength(2);if(this.chk||null==h)return;h.setProperty(this.paramAsStr(j),null);return;case 1073741882:this.checkLength(2);if(this.chk||null==h)return;h.setProperty("clear",null);return;case 1073741894:1!=j&&this.invArg();b=a=0;d=K(5,0);if(1073741882==this.tokAt(++j))this.checkLength(3);else{for(;4>a&&!this.isFloatParameter(j);)d[++a]=
this.atomExpressionAt(j).nextSetBit(0),j=this.e.iToken+1;d[0]=a;1==a&&this.invArg();b=this.floatParameter(this.e.checkLast(j))}this.chk||this.vwr.getMinimizer(!0).setProperty("constraint",[d,K(a,0),Float.$valueOf(b)]);return;case 1073741905:d=this.floatParameter(++j);continue;case 1073741934:b=0;continue;case 1060869:1!=j&&this.invArg();f=this.atomExpressionAt(++j);0>f.nextSetBit(0)&&(f=null);j=this.e.iToken;this.chk||this.vwr.getMinimizer(!0).setProperty("fixed",f);if(j+1==this.slen)return;continue;
case 10:case 1048577:g=!0;case 135280132:135280132==this.e.theTok&&j++;a=this.atomExpressionAt(j);j=this.e.iToken;1073742072==this.tokAt(j+1)&&(j++,g=!0);continue;case 1073742148:e=!0;break;case 266298:b=this.intParameter(++j);continue;default:this.invArg()}if(!this.chk)try{this.vwr.minimize(this.e,b,d,a,f,0,c,g,e,!1)}catch(k){if(I(k,Exception))throw new JS.ScriptInterruption(this.e,"minimize",1);throw k;}});k(c$,"modulation",function(){var a=null,b=!0,d=!1,c=null,e=1;switch(this.getToken(e).tok){case 1048588:b=
!1;case 0:case 1048589:break;case 10:case 1048577:c=this.atomExpressionAt(1);switch(this.tokAt(this.e.iToken+1)){case 1048588:b=!1;case 1048589:this.e.iToken++}this.e.checkLast(this.e.iToken);break;case 1048586:case 8:a=this.e.getPoint3f(1,!1);d=1048589==this.tokAt(this.e.iToken+1);break;case 1073741824:var f=this.e.theToken.value.toString();e++;f.equalsIgnoreCase("t")?this.e.theTok=3:f.equalsIgnoreCase("m")||f.equalsIgnoreCase("q")?this.e.theTok=2:this.invArg();case 3:case 2:switch(this.e.theTok){case 3:this.isFloatParameter(e)?
(a=this.floatParameter(e),a=JU.P3.new3(a,a,a)):a=this.e.getPoint3f(e,!1);break;case 2:2==this.tokAt(e)?(d=this.intParameter(e),a=JU.P3.new3(d,d,d)):a=this.e.getPoint3f(e,!1),d=!0}break;case 1073742138:b=this.floatParameter(2);this.chk||this.vwr.setFloatProperty("modulationScale",b);return;default:this.invArg()}this.chk||(this.vwr.tm.setVibrationPeriod(0),this.vwr.setModulation(c,b,a,d))});k(c$,"navigate",function(){var a=this.e;if(1==this.slen)a.setBooleanProperty("navigationMode",!0);else{var b=
JU.V3.new3(0,1,0),d=new JU.Lst,c;if(2==this.slen)switch(this.getToken(1).tok){case 1048589:case 1048588:if(this.chk)return;a.setObjectMad(34,"axes",1);this.setShapeProperty(34,"position",JU.P3.new3(50,50,3.4028235E38));a.setBooleanProperty("navigationMode",!0);this.vwr.tm.setNavOn(1048589==a.theTok);return;case 1073742162:this.chk||this.vwr.tm.setNavXYZ(0,0,0);return;case 8:case 1113200654:break;default:this.invArg()}!this.chk&&!this.vwr.getBoolean(603979887)&&a.setBooleanProperty("navigationMode",
!0);for(var e=1;e<this.slen;e++){var f=this.isFloatParameter(e)?this.floatParameter(e++):2;0>f&&this.invArg();!this.chk&&0<f&&a.refresh(!1);switch(this.getToken(e).tok){case 8:case 1048586:c=this.getPoint3f(e,!0);a.iToken++;a.iToken!=this.slen&&this.invArg();this.chk||this.vwr.tm.setNavXYZ(c.x,c.y,c.z);return;case 554176526:c=this.floatParameter(++e);this.chk||d.addLast([Integer.$valueOf(554176526),Float.$valueOf(f),Float.$valueOf(c)]);continue;case 12289:c=this.centerParameter(++e);e=a.iToken;this.chk||
d.addLast([Integer.$valueOf(135266320),Float.$valueOf(f),c]);continue;case 528432:switch(this.getToken(++e).tok){case 1112541205:b.set(1,0,0);e++;break;case 1112541206:b.set(0,1,0);e++;break;case 1112541207:b.set(0,0,1);e++;break;case 8:case 1048586:b.setT(this.getPoint3f(e,!0));e=a.iToken+1;break;case 1073741824:this.invArg()}c=this.floatParameter(e);this.chk||d.addLast([Integer.$valueOf(528432),Float.$valueOf(f),b,Float.$valueOf(c)]);continue;case 4160:var g=c=NaN;if(this.isFloatParameter(++e))c=
this.floatParameter(e),g=this.floatParameter(++e);else switch(this.tokAt(e)){case 1112541205:c=this.floatParameter(++e);break;case 1112541206:g=this.floatParameter(++e);break;default:c=this.centerParameter(e);e=a.iToken;this.chk||d.addLast([Integer.$valueOf(4160),Float.$valueOf(f),c]);continue}this.chk||d.addLast([Integer.$valueOf(269484210),Float.$valueOf(f),Float.$valueOf(c),Float.$valueOf(g)]);continue;case 269484208:continue;case 1113200654:c=new JU.Lst;10==this.tokAt(e+1)||1048577==this.tokAt(e+
1)?(g=this.atomExpressionAt(++e),e=a.iToken):g=this.vwr.bsA();if(this.chk)return;this.vwr.getPolymerPointsAndVectors(g,c);var h;if(0<(h=c.size())){for(var g=Array(h),j=0;j<h;j++)g[j]=c.get(j);d.addLast([Integer.$valueOf(1113200654),Float.$valueOf(f),g]);continue}break;case 1073742084:if(1048582==this.getToken(e+1).tok){e++;c=a.objectNameParameter(++e);if(this.chk)return;this.setShapeProperty(22,"thisID",c);c=this.getShapeProperty(22,"vertices");a.refresh(!1);null==c&&this.invArg();g=O(this.isFloatParameter(e+
1)?this.floatParameter(++e):0);h=O(this.isFloatParameter(e+1)?this.floatParameter(++e):2147483647);d.addLast([Integer.$valueOf(1073742084),Float.$valueOf(f),c,null,[g,h]]);continue}for(c=new JU.Lst;a.isCenterParameter(e+1);)c.addLast(this.centerParameter(++e)),e=a.iToken;if(0<c.size()){c=c.toArray(Array(c.size()));this.chk||d.addLast([Integer.$valueOf(1073742084),Float.$valueOf(f),c,null,[0,2147483647]]);continue}default:this.invArg()}}!this.chk&&!this.vwr.isJmolDataFrame()&&this.vwr.tm.navigateList(a,
d)}});k(c$,"plot",function(a){var b=this.e,d=this.vwr.am.cmi;0>d&&b.errorStr(30,"plot");var d=this.vwr.ms.getJmolDataSourceFrame(d),c=a.length-1,e=a!==this.st,f=!0,g=this.st;e&&(b.st=this.st=a);var h=e?135270926:a[0].tok,j=e||135270418==h||1052714==h?0:1,k=null,v=!0,t=!1;switch(h){case 135176:v=!1;t=!0;break;case 135270926:f=v=!1;break;case 135270422:v=!1,4==JS.CmdExt.tokAtArray(c,a)?k=this.stringParameter(c--):1048583==JS.CmdExt.tokAtArray(c-1,a)?(k=this.paramAsStr(c-2)+"."+this.paramAsStr(c),c-=
3):(b.st=this.st=g,b.iToken=this.st.length,this.error(13))}var e="",r=null,s="",C=!1,l=!1,y=!1,n=!1,z=0,x=0,p=0,q=JU.BSUtil.copy(this.vwr.bsA()),w="; select "+JU.Escape.eBS(q)+";\n ",n=b.optParameterAsString(c).toLowerCase(),u=null,A=null,D=null,E=JS.CmdExt.tokAtArray(j,a);4==E&&(E=JS.T.getTokFromName(a[j].value));switch(E){default:b.iToken=1;this.invArg();break;case 135270408:b.iToken=1;n="data";w="";break;case 1716520985:b.iToken=j+1;z=this.plotProp();0==z&&this.invArg();x=this.plotProp();p=this.plotProp();
1288701959==this.tokAt(b.iToken)&&(D=this.stringParameter(++b.iToken),f=!1,b.iToken++);32==this.tokAt(b.iToken)&&(u=this.getPoint3f(++b.iToken,!1),b.iToken++);64==this.tokAt(b.iToken)&&(A=this.getPoint3f(++b.iToken,!1),b.iToken++);n="property "+JS.T.nameOf(z)+(0==x?"":" "+JS.T.nameOf(x))+(0==p?"":" "+JS.T.nameOf(p));0>q.nextSetBit(0)&&(q=this.vwr.getModelUndeletedAtomsBitSet(d));s="select "+JU.Escape.eBS(q)+";\n ";break;case 1052714:n.equalsIgnoreCase("draw")&&(n=b.optParameterAsString(--c).toLowerCase());
n=c>j&&n.startsWith("r");n="ramachandran"+(n?" r":"")+(135176==h?" draw":"");break;case 135270418:case 137363467:e=' "'+this.vwr.getQuaternionFrame()+'"';s="set quaternionFrame"+e+";\n  ";C=!0;n.equalsIgnoreCase("draw")&&(t=!0,n=b.optParameterAsString(--c).toLowerCase());y=(l=n.startsWith("deriv")||n.startsWith("diff"))&&0<n.indexOf("2");l&&c--;if(n.equalsIgnoreCase("helix")||n.equalsIgnoreCase("axis"))l=t=!0,c=-1;n=((c<=j?"":b.optParameterAsString(c))+"w").substring(0,1);if(n.equals("a")||n.equals("r"))l=
!0;JU.PT.isOneOf(n,";w;x;y;z;r;a;")||b.evalError("QUATERNION [w,x,y,z,a,r] [difference][2]",null);n="quaternion "+n+(l?" difference":"")+(y?"2":"")+(t?" draw":"")}this.st=g;if(this.chk)return"";if(v&&(s+="plot "+n,a=this.vwr.ms.getJmolDataFrameIndex(d,s),0<a&&135270422!=h&&135270926!=h))return this.vwr.setCurrentModelIndexClear(a,!0),"";g=c=a=null;if(1716520985==E){a=b.getBitsetPropertyFloat(q,z|224,null==u?NaN:u.x,null==A?NaN:A.x);0!=x&&(c=b.getBitsetPropertyFloat(q,x|224,null==u?NaN:u.y,null==A?
NaN:A.y));0!=p&&(g=b.getBitsetPropertyFloat(q,p|224,null==u?NaN:u.z,null==A?NaN:A.z));null==u&&(u=JU.P3.new3(this.getPlotMinMax(a,!1,z),this.getPlotMinMax(c,!1,x),this.getPlotMinMax(g,!1,p)));null==A&&(A=JU.P3.new3(this.getPlotMinMax(a,!0,z),this.getPlotMinMax(c,!0,x),this.getPlotMinMax(g,!0,p)));JU.Logger.info("plot min/max: "+u+" "+A);j=r=null;if(f){j=JU.P3.new3(1,1,1);r=new JU.P3;r.ave(A,u);j.sub2(A,u);j.set(j.x/200,j.y/200,j.z/200);JS.T.tokAttr(z,1095761920)?(j.x=1,r.x=0):0.1<j.x&&10>=j.x&&(j.x=
1);JS.T.tokAttr(x,1095761920)?(j.y=1,r.y=0):0.1<j.y&&10>=j.y&&(j.y=1);JS.T.tokAttr(p,1095761920)?(j.z=1,r.z=0):0.1<j.z&&10>=j.z&&(j.z=1);if(0==p||0==x)r.z=u.z=A.z=j.z=0;for(f=0;f<a.length;f++)a[f]=(a[f]-r.x)/j.x;if(0!=x)for(f=0;f<c.length;f++)c[f]=(c[f]-r.y)/j.y;if(0!=p)for(f=0;f<g.length;f++)g[f]=(g[f]-r.z)/j.z}r=[q,a,c,g,u,A,j,r,D]}if(135270422==h)return this.vwr.writeFileData(k,"PLOT_"+n,d,r);f=n.equals("data")?"1 0 H 0 0 0 # Jmol PDB-encoded data":this.vwr.getPdbData(d,n,null,r,null,!0);if(135270926==
h)return f;JU.Logger.debugging&&JU.Logger.debug(f);if(135176==h)return b.runScript(f),"";h=this.vwr.fm.getFileInfo();k=this.vwr.getBoolean(603979792);this.vwr.g.appendNew=!0;f=null!=f&&null==this.vwr.openStringInlineParamsAppend(f,null,!0);this.vwr.g.appendNew=k;this.vwr.fm.setFileInfo(h);if(!f)return"";h=this.vwr.ms.mc;this.vwr.ms.setJmolDataFrame(s,d,h-1);1716520985!=E&&(s+=";\n"+w);s=this.vwr.addStateScript(s,!0,!1);f=150;switch(E){default:d="frame 0.0; frame last; reset;select visible;wireframe only;";
f=10;break;case 1716520985:this.vwr.setFrameTitle(h-1,n+" plot for model "+this.vwr.getModelNumberDotted(d));d="frame 0.0; frame last; reset;select visible; spacefill 3; wireframe 0;draw plotAxisX"+h+' {100 -100 -100} {-100 -100 -100} "'+JS.T.nameOf(z)+'";draw plotAxisY'+h+' {-100 100 -100} {-100 -100 -100} "'+JS.T.nameOf(x)+'";';0!=p&&(d+="draw plotAxisZ"+h+' {-100 -100 100} {-100 -100 -100} "'+JS.T.nameOf(p)+'";');break;case 1052714:this.vwr.setFrameTitle(h-1,"ramachandran plot for model "+this.vwr.getModelNumberDotted(d));
d="frame 0.0; frame last; reset;select visible; color structure; spacefill 3.0; wireframe 0;draw ramaAxisX"+h+' {100 0 0} {-100 0 0} "phi";draw ramaAxisY'+h+' {0 100 0} {0 -100 0} "psi";';break;case 135270418:case 137363467:this.vwr.setFrameTitle(h-1,n.$replace("w"," ")+e+" for model "+this.vwr.getModelNumberDotted(d)),d=JU.C.getHexCode(this.vwr.cm.colixBackgroundContrast),d="frame 0.0; frame last; reset;select visible; wireframe 0; spacefill 3.0; isosurface quatSphere"+h+" color "+d+" sphere 100.0 mesh nofill frontonly translucent 0.8;draw quatAxis"+
h+'X {100 0 0} {-100 0 0} color red "x";draw quatAxis'+h+'Y {0 100 0} {0 -100 0} color green "y";draw quatAxis'+h+'Z {0 0 100} {0 0 -100} color blue "z";color structure;draw quatCenter'+h+"{0 0 0} scale 0.02;"}b.runScript(d+w);s.setModelIndex(this.vwr.am.cmi);this.vwr.setRotationRadius(f,!0);b.sm.loadShape(31);this.showString("frame "+this.vwr.getModelNumberDotted(h-1)+(0<n.length?" created: "+n+(C?e:""):""));return""},"~A");k(c$,"plotProp",function(){var a=0;switch(this.tokAt(this.e.iToken)){case 1288701959:case 32:case 64:break;
default:JS.T.tokAttr(a=this.tokAt(this.e.iToken),1078984704)&&this.e.iToken++}return a});k(c$,"polyhedra",function(){var a=this.e,b=!1,d=!1,c=!1,e=!1,f=!1,g=0,h=0;this.e.sm.loadShape(21);this.setShapeProperty(21,"init",Boolean.TRUE);for(var j="centers",k="radius_",v=3.4028235E38,t=[-2147483648],r=1;r<this.slen;++r){var s=null,C=null;switch(this.getToken(r).tok){case 12291:case 1048589:case 1048588:(r+1!=this.slen||b||1<h||0==h&&"to".equals(j))&&this.error(18);s=1048588==a.theTok?"off":1048589==a.theTok?
"on":"delete";d=!0;break;case 269484436:case 269484080:continue;case 1678770178:0<h&&this.invPO();b=!0;s="bonds";break;case 1666189314:k="radius";continue;case 2:case 3:0<h&&!f&&this.invPO();if(2==a.theTok&&"radius_"===k){s="nVertices";C=Integer.$valueOf(this.intParameter(r));b=!0;break}s="radius_"===k?"radius":k;C=Float.$valueOf(this.floatParameter(r));k="radius_";f=!1;b=!0;break;case 10:case 1048577:c&&this.invPO();2<++h&&a.bad();"to".equals(j)&&(b=!0);s=j;j="to";C=this.atomExpressionAt(r);r=a.iToken;
break;case 1074790746:1<h&&this.invPO();if(10==this.tokAt(r+1)||1048577==this.tokAt(r+1)&&!b){s="toBitSet";C=this.atomExpressionAt(++r);r=a.iToken;b=!0;break}else b||this.error(19);j="to";continue;case 1073741937:b||this.error(19);k="faceCenterOffset";f=!0;continue;case 1073741924:0==h&&this.error(19);k="distanceFactor";f=!0;continue;case 1766856708:case 603979967:case 1073742074:v=this.getColorTrans(a,r,!0,t);r=a.iToken;continue;case 1073741886:case 1073741948:s="collapsed";C=1073741886==a.theTok?
Boolean.TRUE:Boolean.FALSE;c&&this.error(18);c=!0;break;case 1073742044:case 1073741933:case 1073741956:e&&this.error(18);s=this.paramAsStr(r);e=!0;break;case 1073741964:g=a.theTok;continue;default:if(a.isColorParam(r)){t[0]=a.getArgbParam(r);r=a.iToken;continue}this.invArg()}this.setShapeProperty(21,s,C);if(d)return!1}!b&&(!c&&!e&&0==g)&&this.error(19);b&&this.setShapeProperty(21,"generate",null);-2147483648!=t[0]&&this.setShapeProperty(21,"colorThis",Integer.$valueOf(t[0]));3.4028235E38!=v&&a.setShapeTranslucency(21,
"","translucentThis",v,null);0!=g&&this.setShapeProperty(21,"token",Integer.$valueOf(g));this.setShapeProperty(21,"init",Boolean.FALSE);return!0});N(c$,"evalParallel",function(a,b){var d=(new JS.ScriptEval).setViewer(this.vwr);d.historyDisabled=!0;d.compiler=new JS.ScriptCompiler(this.vwr);d.sm=b;try{d.restoreScriptContext(a,!0,!1,!1),d.allowJSThreads=!1,d.dispatchCommands(!1,!1,!1)}catch(c){if(I(c,Exception))return this.e.vwr.setStringProperty("_errormessage",""+c),null==d.thisContext&&(JU.Logger.error("Error evaluating context "+
c),this.vwr.isJS||c.printStackTrace()),!1;throw c;}return!0},"JS.ScriptContext,JV.ShapeManager");k(c$,"write",function(a){var b=0,d=0,c=this.e,e,f;null==a?(a=this.st,b=d=1,e=!0,f=this.vwr.isApplet&&!this.vwr.isSignedApplet||!this.vwr.haveAccess(JV.Viewer.ACCESS.ALL)||0<this.vwr.fm.getPathForAllFiles().length):(e=!1,f=!0);var g=e?this.slen:a.length,h=0,j=0,k=-1,v=-1,t=-2147483648,r=this.vwr.getBoolean(603979934),s=this.vwr.getExportDriverList(),C="PNGJ",l=null,y="",n=null,z=null,x=null,p=null,q=null,
w=null,u=Array(1),A=!1,D=!1,E=!1,G=null,F=null,m="SPT",H=e&&1==a.length?1073741884:JS.CmdExt.tokAtArray(b,a);switch(H){case 0:break;case 135271429:c.isArrayParameter(b+1)&&(F=c.stringParameterSet(++b),x=z=".",d=b=c.iToken+1,H=this.tokAt(b));break;default:m=JS.SV.sValue(this.tokenAt(b,a)).toUpperCase()}e&&1073741848==this.tokAt(this.slen-2)&&(m=this.paramAsStr(this.slen-1).toUpperCase(),d=g,g-=2,H=0);switch(H){case 15:case 6:m="VAR";w=this.tokenAt(b++,a);break;case 135270418:case 1052714:case 1716520985:q=
this.plot(a);if(!e)return q;break;case 1073741983:m="INLINE";l=JS.SV.sValue(this.tokenAt(++b,a));b++;break;case 1073742102:m="PGRP";b++;y=JS.SV.sValue(this.tokenAt(b,a)).toLowerCase();y.equals("draw")&&b++;break;case 1048581:b++;A=!0;break;case 1073742158:case 135271429:for(p=JS.SV.sValue(this.tokenAt(++b,a)).toLowerCase();p.equals("localpath")||p.equals("remotepath");)p.equals("localpath")?z=JS.SV.sValue(this.tokenAt(++b,a)):x=JS.SV.sValue(this.tokenAt(++b,a)),p=JS.SV.sValue(this.tokenAt(++b,a)).toLowerCase();
m="SPT";break;case 1229984263:case 135368713:case 1610616855:case 135180:case 1073742015:case 1073742018:case 1073877011:case 1073877010:case 135188:b++;break;case 1073741991:m="ZIPALL";b++;break;case 36868:m="VAR";b+=2;break;case 4115:case 1073741824:case 1073741979:case 1073742139:case 4:case 4166:switch(H){case 1073741979:b++;break;case 4166:j=c.intParameterRange(++b,1,10);if(2147483647==j)return"";this.chk||(this.vwr.tm.setVibrationPeriod(0),c.isJS||c.delayScript(100));b++;break;case 4115:var I;
b+1<g&&1048577==a[++b].tok||10==a[b].tok?(I=c.atomExpression(a,b,0,!0,!1,!0,!0),b=c.iToken+1):I=this.vwr.getAllAtoms();this.chk||(G=this.vwr.ms.getModelBS(I,!0));break;case 1073742139:p=JS.SV.sValue(this.tokenAt(++b,a)).toUpperCase();JU.PT.isOneOf(p,";PNG;PNGJ;")&&(C=p,b++);break;default:H=1073741979}if(1073741979==H)if(H=JS.T.getTokenFromName(JS.SV.sValue(a[b]).toLowerCase()),null!=H&&(m=JS.SV.sValue(H).toUpperCase(),(A=1048581==H.tok)&&b++),JU.PT.isOneOf(m,s.toUpperCase())){b++;m=m.substring(0,
1).toUpperCase()+m.substring(1).toLowerCase();D=!0;e&&(n="Jmol."+m.toLowerCase());break}else if(JU.PT.isOneOf(m,";ZIP;ZIPALL;SPT;STATE;")){b++;break}else A||(m="(image)");2==JS.CmdExt.tokAtArray(b,a)&&(k=JS.SV.iValue(this.tokenAt(b++,a)),v=JS.SV.iValue(this.tokenAt(b++,a)))}if(null==q){if(d<g){p=JS.SV.sValue(this.tokenAt(b,a));if(p.equalsIgnoreCase("clipboard")){if(this.chk)return""}else JU.PT.isOneOf(p.toLowerCase(),";jpg;jpeg;jpg64;jpeg64;gif;gift;pdf;ppm;png;pngj;pngt;")?(2==JS.CmdExt.tokAtArray(b+
1,a)&&2==JS.CmdExt.tokAtArray(b+2,a)&&(k=JS.SV.iValue(this.tokenAt(++b,a)),v=JS.SV.iValue(this.tokenAt(++b,a))),2==JS.CmdExt.tokAtArray(b+1,a)&&(t=JS.SV.iValue(this.tokenAt(++b,a)))):JU.PT.isOneOf(p.toLowerCase(),";xyz;xyzrn;xyzvib;mol;sdf;v2000;v3000;json;pdb;pqr;cml;")&&(m=p.toUpperCase(),b+1==g&&b++);m.equals("(image)")&&JU.PT.isOneOf(p.toLowerCase(),";jpg;jpeg;jpg64;jpeg64;gif;gift;pdf;ppm;png;pngj;pngt;scene;")&&(m=p.toUpperCase(),b++)}b+2==g&&(q=JS.SV.sValue(this.tokenAt(++b,a)),0<q.length&&
"."!=q.charAt(0)&&(m=p.toUpperCase()));switch(JS.CmdExt.tokAtArray(b,a)){case 0:f=!0;break;case 1073741884:break;case 1073741824:case 4:n=JS.SV.sValue(this.tokenAt(b,a));b==g-3&&1048583==JS.CmdExt.tokAtArray(b+1,a)&&(n+="."+JS.SV.sValue(this.tokenAt(b+2,a)));if("VAR"!==m&&b==d&&!A)m="IMAGE";else if(0<n.length&&"."==n.charAt(0)&&(b==d+1||b==d+2))n=JS.SV.sValue(this.tokenAt(b-1,a))+n,"VAR"!==m&&b==d+1&&(m="IMAGE");if(n.equalsIgnoreCase("clipboard")||!this.vwr.haveAccess(JV.Viewer.ACCESS.ALL))n=null;
break;default:this.invArg()}if(m.equals("IMAGE")||m.equals("(image)")||m.equals("FRAME")||m.equals("VIBRATION"))m=null!=n&&0<=n.indexOf(".")?n.substring(n.lastIndexOf(".")+1).toUpperCase():"JPG",JU.PT.isOneOf(m,";PNGJ;PNGT;GIFT;")&&(n=n.substring(0,n.length-1));m.equals("MNU")?m="MENU":m.equals("WRL")||m.equals("VRML")?(m="Vrml",D=!0):m.equals("X3D")?(m="X3d",D=!0):m.equals("IDTF")?(m="Idtf",D=!0):m.equals("MA")?(m="Maya",D=!0):m.equals("JS")?(m="Js",D=!0):m.equals("OBJ")?(m="Obj",D=!0):m.equals("JVXL")?
m="ISOSURFACE":m.equals("XJVXL")?m="ISOSURFACE":m.equals("JMOL")?m="ZIPALL":m.equals("HIS")&&(m="HISTORY");if(m.equals("COORD")||m.equals("COORDS"))m=null!=n&&0<=n.indexOf(".")?n.substring(n.lastIndexOf(".")+1).toUpperCase():"XYZ";E=JU.PT.isOneOf(m.toLowerCase(),";jpg;jpeg;jpg64;jpeg64;gif;gift;pdf;ppm;png;pngj;pngt;scene;");null!=F&&(m.equals("PNG")&&(m="PNGJ"),!m.equals("PNGJ")&&!m.equals("ZIPALL")&&this.invArg());!E&&(!D&&!JU.PT.isOneOf(m,";SCENE;JMOL;ZIP;ZIPALL;SPT;HISTORY;MO;NBO;ISOSURFACE;MESH;PMESH;VAR;FILE;FUNCTION;CML;JSON;XYZ;XYZRN;XYZVIB;MENU;MOL;PDB;PGRP;PQR;QUAT;RAMA;SDF;V2000;V3000;INLINE;"))&&
c.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","CML|GIF|GIFT|JPG|JPG64|JMOL|JVXL|MESH|MOL|PDB|PMESH|PNG|PNGJ|PNGT|PPM|PQR|SDF|CD|JSON|V2000|V3000|SPT|XJVXL|XYZ|XYZRN|XYZVIB|ZIP"+s.toUpperCase().$replace(";","|"));if(this.chk)return"";q=null;b=!1;if(null==l||D){l=m.intern();if(D){r&&JU.Logger.startTimer("export");j=new java.util.Hashtable;j.put("type",l);null!=n&&
j.put("fileName",n);(e||null!=n)&&j.put("fullPath",u);j.put("width",Integer.$valueOf(k));j.put("height",Integer.$valueOf(v));l=this.vwr.generateOutputForExport(j);if(null==l||0==l.length)return"";if(!e)return l;(m.equals("Povray")||m.equals("Idtf"))&&null!=u[0]?(k=m.equals("Idtf")?".tex":".ini",n=u[0]+k,e=new java.util.Hashtable,e.put("fileName",n),e.put("type",k),e.put("text",l),e.put("fullPath",u),q=this.vwr.processWriteOrCapture(e),m.equals("Idtf")&&(l=l.substring(0,l.indexOf("\\begin{comment}"))),
l="Created "+u[0]+":\n\n"+l,r&&this.showString(JU.Logger.getTimerMsg("export",0))):q=l;null!=q&&(q.startsWith("OK")||c.evalError(q,null),c.report(l));return""}if("MENU"===l)l=this.vwr.getMenu("");else if("PGRP"===l)l=this.vwr.ms.getPointGroupAsString(this.vwr.bsA(),y.equals("draw"),null,0,1);else if("PDB"===l||"PQR"===l)f?l=this.vwr.getPdbAtomData(null,null):b=!0;else if("FILE"===l)f?l=this.vwr.getCurrentFileAsString("script"):b=!0,"?".equals(n)&&(n="?Jmol."+this.vwr.getP("_fileType"));else if(("SDF"===
l||"MOL"===l||"V2000"===l||"V3000"===l||"CD"===l||"JSON"===l)&&A)l=this.vwr.getModelExtract("selected",!0,!1,l),l.startsWith("ERROR:")&&(q=l);else if("XYZ"===l||"XYZRN"===l||"XYZVIB"===l||"MOL"===l||"SDF"===l||"V2000"===l||"V3000"===l||"CML"===l||"CD"===l||"JSON"===l)l=this.vwr.getData("selected",l),l.startsWith("ERROR:")&&(q=l);else if("FUNCTION"===l)l=this.vwr.getFunctionCalls(null),m="TXT";else if("VAR"===l){null==w&&(w=c.getParameter(JS.SV.sValue(this.tokenAt(e?2:1,a)),1073742190,!0));a=null;
if(15==w.tok)a=new JU.Lst,a.addLast(w.value.data);else if(6==w.tok&&(y=w.value,y.containsKey("$_BINARY_$")&&(a=new JU.Lst,null!=n)))for(var K,y=y.entrySet().iterator();y.hasNext()&&((K=y.next())||1);)if(z=K.getKey(),!z.equals("$_BINARY_$"))if(x=K.getValue(),q=15==x.tok?x.value.data:null,null==q&&(q=x.asString(),q=q.startsWith(";base64,")?JU.Base64.decodeBase64(q):q.getBytes()),z.equals("_DATA_")){a=null;null==q&&(q=x.value.data);break}else z.equals("_IMAGE_")?(a.add(0,z),a.add(1,q)):(a.addLast(z),
a.addLast(null),a.addLast(q));null==a?null==q&&(l=w.asString(),m="TXT"):null!=n&&null==(q=l=this.vwr.createZip(n,1==a.size()?"BINARY":"ZIPDATA",a))&&c.evalError("#CANCELED#",null)}else if("SPT"===l)if(A)w=this.vwr.ms.getTaintedAtoms(2),this.vwr.setAtomCoordsRelative(JU.P3.new3(0,0,0),null),l=this.vwr.getStateInfo(),this.vwr.ms.setTaintedAtoms(w,2);else{if(l=this.vwr.getStateInfo(),null!=z||null!=x)l=JV.FileManager.setScriptFileReferences(l,z,x,null)}else"ZIP"===l||"ZIPALL"===l?null!=n&&null==(q=l=
this.vwr.createZip(n,m,F))&&c.evalError("#CANCELED#",null):"HISTORY"===l?(l=this.vwr.getSetHistory(2147483647),m="SPT"):"MO"===l||"NBO"===l?(l=this.getMoJvxl(2147483647,"NBO"===l),m="XJVXL"):"PMESH"===l?(null==(l=this.getIsosurfaceJvxl(!0,29))&&this.error(31),m="XJVXL"):"ISOSURFACE"===l||"MESH"===l?(null==(l=this.getIsosurfaceJvxl("MESH"===l,24))&&this.error(31),m=0<=l.indexOf("<?xml")?"XJVXL":"JVXL",f||this.showString(this.getShapeProperty(24,"jvxlFileInfo"))):(h=-1,0>t&&(t=-1));null==l&&!b&&(l=
"");0==h&&!b&&(null==q||L(q,String));E&&(c.refresh(!1),0>k&&(k=this.vwr.getScreenWidth()),0>v&&(v=this.vwr.getScreenHeight()))}if(!e)return l;if(f)return c.showStringPrint(l,!0),"";if(null!=q&&L(q,String))return 0!=q.indexOf("OK")&&alert(q),c.report(q),q;if(m.equals("SCENE"))q=C;else if(null==q&&(!E||null!=n))q=l;r&&JU.Logger.startTimer("write");b?q=this.vwr.writeFileData(n,m,0,null):(e=new java.util.Hashtable,null!=n&&e.put("fileName",n),e.put("backgroundColor",Integer.$valueOf(this.vwr.getBackgroundArgb())),
e.put("type",m),L(q,String)&&-2147483648==t?e.put("text",q):L(q,Array)&&e.put("bytes",q),null!=F&&e.put("scripts",F),null!=G&&e.put("bsFrames",G),e.put("fullPath",u),e.put("quality",Integer.$valueOf(t)),e.put("width",Integer.$valueOf(k)),e.put("height",Integer.$valueOf(v)),e.put("nVibes",Integer.$valueOf(j)),q=this.vwr.processWriteOrCapture(e));r&&this.showString(JU.Logger.getTimerMsg("write",0))}return!this.chk&&null!=q?(q.startsWith("OK")||(c.evalError(q,null),alert(q)),c.report(q+(E?"; width="+
k+"; height="+v:"")),q):""},"~A");k(c$,"show",function(){var a=this.e,b=null,d=this.paramAsStr(1),c=null,e=null,f=2,e=this.getToken(1),g=L(e,JS.SV)?0:e.tok;4==g&&(e=JS.T.getTokenFromName(d.toLowerCase()),null!=e&&(g=e.tok));1297090050!=g&&(1073742158!=g&&1716520985!=g)&&this.checkLength(-3);if(2==this.slen&&0<=d.indexOf("?"))this.showString(this.vwr.getAllSettings(d.substring(0,d.indexOf("?"))));else{switch(g){case 0:this.chk||(c=a.theToken.escape());break;case 1073741925:a.checkLength23();f=this.st.length;
this.chk||(c=this.vwr.ms.getInfo(this.vwr.am.cmi,"domains"),c=L(c,JS.SV)?this.vwr.getAnnotationInfo(c,a.optParameterAsString(2),1073741925):"domain information has not been loaded");break;case 1716520985:c=this.plot(this.st);f=this.st.length;break;case 1073742189:a.checkLength23();f=this.st.length;this.chk||(c=this.vwr.ms.getInfo(this.vwr.am.cmi,"validation"),c=L(c,JS.SV)?this.vwr.getAnnotationInfo(c,a.optParameterAsString(2),1073742189):"validation information has not been loaded");break;case 135270423:this.chk||
(c=JU.Escape.e(this.vwr.fm.cacheList()));break;case 1073741916:a.checkLength23();f=this.st.length;this.chk||(c=this.vwr.ms.getInfo(this.vwr.am.cmi,"dssr"),c=null==c?"no DSSR information has been read":2<f?JS.SV.getVariable(this.vwr.extractProperty(c,this.stringParameter(2),-1)).asString():""+JS.SV.getVariable(c).asString());break;case 1073741915:this.checkLength(2);this.chk||(c=this.vwr.calculateStructures(null,!0,!1));break;case 545259571:this.checkLength(2);this.chk||(c=this.vwr.fm.getPathForAllFiles());
break;case 1073742038:if(a.optParameterAsString(2).equalsIgnoreCase("1H")){f=3;this.chk||(c=this.vwr.getNMRPredict(!1));break}this.chk||this.vwr.getNMRPredict(!0);return;case 135267336:case 1073741929:case 1073741879:this.checkLength(1073741879==g?3:2);if(this.chk)return;try{c=this.vwr.getSmiles(null)}catch(h){if(I(h,Exception))c=h.getMessage();else throw h;}switch(g){case 1073741929:if(0<c.length){this.vwr.show2D(c);return}c="Could not show drawing -- Either insufficient atoms are selected or the model is a PDB file.";
break;case 1073741879:f=3,0<c.length?(c=this.vwr.getChemicalInfo(c,this.getToken(2)),0<=c.indexOf("FileNotFound")&&(c="?")):c="Could not show name -- Either insufficient atoms are selected or the model is a PDB file."}break;case 1297090050:var g=0,j=e=null;3<this.slen&&4!=this.tokAt(3)?(e=this.centerParameter(2),j=this.centerParameter(++a.iToken)):g=2==this.tokAt(2)?this.intParameter(2):0;var k=4==this.tokAt(a.iToken+1)?this.stringParameter(++a.iToken):null;this.checkLength(f=++a.iToken);this.chk||
(c=this.vwr.ms.getSymTemp(!0).getSymmetryInfoString(this.vwr.ms,this.vwr.am.cmi,g,e,j,null,k));break;case 1649412120:a=null;2<this.slen&&(a=J.c.VDW.getVdwType(this.paramAsStr(2)),null==a&&this.invArg());this.chk||this.showString(this.vwr.getDefaultVdwNameOrData(0,a,null));return;case 135368713:a.checkLength23();this.chk||this.showString(this.vwr.getFunctionCalls(a.optParameterAsString(2)));return;case 1085443:this.checkLength(2);this.chk||this.showString(this.vwr.getAllSettings(null));return;case 1074790760:if(2==
this.slen){this.chk||this.vwr.showUrl(a.getFullPathName());return}e=this.paramAsStr(2);this.chk||this.vwr.showUrl(e);return;case 1766856708:d="defaultColorScheme";break;case 1610612740:d="scaleAngstromsPerInch";break;case 135270418:case 1052714:if(this.chk)return;0>this.vwr.am.cmi&&a.errorStr(30,"show "+a.theToken.value);c=this.plot(this.st);f=this.slen;break;case 14:case 1113200654:this.chk||(c=this.getContext(!1));break;case 1073741888:e=a.optParameterAsString(2);0<e.length&&(f=3);this.chk||(b=
this.vwr.cm.getColorSchemeList(e));break;case 1073742192:this.chk||(c=this.vwr.getAtomDefs(a.definedAtomSets)+this.vwr.g.getVariableList()+this.getContext(!0));break;case 536870926:this.chk||(c=this.vwr.getTrajectoryState());break;case 553648148:b=""+a.commandHistoryLevelMax;break;case 553648150:b=""+JU.Logger.getLogLevel();break;case 603979825:b=""+this.vwr.getBoolean(603979825);break;case 553648178:c="set strandCountForStrands "+this.vwr.getStrandCount(12)+"; set strandCountForMeshRibbon "+this.vwr.getStrandCount(13);
break;case 536875070:c=this.vwr.showTimeout(2==(f=this.slen)?null:this.paramAsStr(2));break;case 536870918:b=JU.Escape.eP(this.vwr.getDefaultLattice());break;case 4126:this.chk||(c=this.vwr.getMinimizationInfo());break;case 1611272194:switch(this.vwr.g.axesMode){case 603979808:c="set axesUnitcell";break;case 603979804:c="set axesMolecular";break;default:c="set axesWindow"}break;case 1610612737:c="set bondMode "+(this.vwr.getBoolean(603979812)?"OR":"AND");break;case 1650071565:this.chk||(c="set strandCountForStrands "+
this.vwr.getStrandCount(12)+"; set strandCountForMeshRibbon "+this.vwr.getStrandCount(13));break;case 1612189718:c="set hbondsBackbone "+this.vwr.getBoolean(603979852)+";set hbondsSolid "+this.vwr.getBoolean(603979854);break;case 1611141175:this.chk||(c=this.vwr.getSpinState());break;case 1611141176:c="set ssbondsBackbone "+this.vwr.getBoolean(603979952);break;case 1610625028:case 1611141171:c="selectionHalos "+(this.vwr.getSelectionHaloEnabled(!1)?"ON":"OFF");break;case 1613758470:c="set selectHetero "+
this.vwr.getBoolean(1613758470);break;case 1073741828:c=JU.Escape.eAP(this.vwr.getAdditionalHydrogens(null,!0,!0,null));break;case 1613758476:c="set selectHydrogens "+this.vwr.getBoolean(1613758476);break;case 553648130:case 553648142:case 536870924:case 553648176:case 553648172:case 1073741995:this.chk||(c=this.vwr.getLightingState());break;case 1073742136:case 4146:this.chk||(c=this.vwr.stm.listSavedStates());break;case 1614417948:this.chk||(c=this.vwr.getUnitCellInfoText());break;case 1048581:if(2==
(f=this.slen)){this.chk||(c=this.vwr.getCoordinateState(this.vwr.bsA()));break}g=this.paramAsStr(2);this.chk||(c=this.vwr.stm.getSavedCoordinates(g));break;case 1073742158:!this.chk&&null==a.outputBuffer&&this.vwr.sm.clearConsole();if(2==(f=this.slen)){this.chk||(c=this.vwr.getStateInfo());break}e=this.paramAsStr(2);if(e.equals("/")&&4==(f=this.slen)){e=this.paramAsStr(3).toLowerCase();if(!this.chk){g=JU.PT.split(this.vwr.getStateInfo(),"\n");c=new JU.SB;for(j=0;j<g.length;j++)0<=g[j].toLowerCase().indexOf(e)&&
c.append(g[j]).appendC("\n");c=c.toString()}break}else if(1229984263==this.tokAt(2)&&4==(f=this.slen)){this.chk||(c=this.vwr.fm.getEmbeddedFileState(this.paramAsStr(3),!0));break}f=3;this.chk||(c=this.vwr.stm.getSavedState(e));break;case 1641025539:if(2==(f=this.slen)){this.chk||(c=this.vwr.getProteinStructureState());break}g=this.paramAsStr(2);this.chk||(c=this.vwr.stm.getSavedStructure(g));break;case 135270408:g=3==(f=this.slen)?this.paramAsStr(2):null;this.chk||(c=this.vwr.getData(g),c=null==c?
"no data":JU.Escape.encapsulateData(c[0],c[1],c[3].intValue()));break;case 1073742152:g=null;2==(f=this.slen)?this.chk||(g=this.vwr.ms.getSymTemp(!0).getSpaceGroupInfo(this.vwr.ms,null)):(e=this.paramAsStr(2),this.chk||(g=this.vwr.ms.getSymTemp(!0).getSpaceGroupInfo(this.vwr.ms,JU.PT.rep(e,"''",'"'))));null!=g&&(c=""+g.get("spaceGroupInfo")+g.get("symmetryInfo"));break;case 1048582:f=3;c=a.setObjectProperty();break;case 1679429641:this.chk||(c=this.vwr.ms.getBoundBoxCommand(!0));break;case 12289:this.chk||
(c="center "+JU.Escape.eP(this.vwr.tm.fixedRotationCenter));break;case 135176:this.chk||(c=this.getShapeProperty(22,"command"));break;case 1229984263:this.chk||this.vwr.sm.clearConsole();if(2==this.slen){this.chk||(c=this.vwr.getCurrentFileAsString("script"));null==c&&(c="<unavailable>");break}f=3;b=this.paramAsStr(2);this.chk||(c=this.vwr.getFileAsString3(b,!0,null));break;case 4115:c=1048579==this.tokAt(2)&&0<(f=3)?this.vwr.getModelFileInfoAll():this.vwr.getModelFileInfo();break;case 1610616855:g=
2==(f=this.slen)?2147483647:this.intParameter(2);1>g&&this.invArg();this.chk||(this.vwr.sm.clearConsole(),0==a.scriptLevel&&this.vwr.removeCommand(),c=this.vwr.getSetHistory(g));break;case 135180:this.chk||(c=this.getShapeProperty(24,"jvxlDataXml"));break;case 1073877011:case 1073877010:a.optParameterAsString(2).equalsIgnoreCase("list")?(this.e.sm.loadShape(27),c=this.chk?"":this.getShapeProperty(27,"list -1"),f=3):(e=2==(f=this.slen)?-2147483648:this.intParameter(2),this.chk||(c=this.getMoJvxl(e,
1073877011==g)));break;case 1095766030:this.chk||(c=this.vwr.ms.getModelInfoAsString());break;case 537006096:this.chk||(c=this.vwr.getMeasurementInfoAsString());break;case 1073741863:f=3;!this.chk&&this.slen==f&&(c=this.vwr.getOrientationText(this.tokAt(2),null));break;case 1073742132:g=this.tokAt(2),0==g?g=1073742132:f=3;case 1073742178:case 4130:this.chk||(c=this.vwr.getOrientationText(g,null));break;case 1073742077:f=2;if(3<this.slen)break;switch(g=this.tokAt(2)){case 1073742178:case 1073742132:case 4130:case 0:this.chk||
(c=this.vwr.getOrientationText(g,null));break;default:e=a.optParameterAsString(2),c=this.vwr.getOrientationText(1073742035,e)}f=this.slen;break;case 1073742088:this.chk||(c=this.vwr.ms.getPDBHeader(this.vwr.am.cmi));break;case 1073742102:this.chk||this.showString(this.vwr.ms.getPointGroupAsString(this.vwr.bsA(),!1,null,0,0));return;case 1089470478:this.chk||(c=this.vwr.ms.getSymmetryInfoAsString());break;case 1073742176:this.chk||(c="transform:\n"+this.vwr.tm.matrixRotate.toString());break;case 4168:c=
"zoom "+(this.vwr.tm.zoomEnabled?""+this.vwr.tm.getZoomSetting():"off");break;case 1611272202:c=this.vwr.getShowFrank()?"frank ON":"frank OFF";break;case 1666189314:d="solventProbeRadius";break;case 1087373320:if(3==(f=this.slen)&&1048588==this.tokAt(2))g=1087373319;case 1073741864:case 1087373316:case 1073742120:case 1114638363:case 1087373318:case 1141899265:case 1073741982:this.chk||(c=this.vwr.getChimeInfo(g));break;case 537022465:case 1610612738:case 20482:case 1613758488:b="?";break;case 1073742031:g=
2==(f=this.slen)?null:this.paramAsStr(2);this.chk||(c=this.vwr.getBindingInfo(g));break;case 1073742015:this.chk||(b=this.vwr.getMenu(""));break;case 1073741824:d.equalsIgnoreCase("fileHeader")&&(this.chk||(c=this.vwr.ms.getPDBHeader(this.vwr.am.cmi)));break;case 1073741992:case 36868:d=this.paramAsStr(f++),e=a.getParameter(d,1073742190,!0),this.chk||(c=1073741992==g?e.toJSON():e.escape())}this.checkLength(f);this.chk||(null!=c?this.showString(c):null!=b?this.showString(d+" = "+b):null!=d&&(0<=d.indexOf(" ")?
this.showString(d):this.showString(d+" = "+a.getParameter(d,1073742190,!0).escape())))}});k(c$,"stereo",function(){for(var a=J.c.STER.DOUBLE,b=-5,d=!1,c=null,e=0,f=1;f<this.slen;++f)if(this.e.isColorParam(f))1<e&&this.e.bad(),0==e&&(c=K(2,0)),d||(b=3),c[e]=this.e.getArgbParam(f),0==e++&&(c[1]=~c[0]),f=this.e.iToken;else switch(this.getToken(f).tok){case 1048589:this.e.checkLast(this.e.iToken=1);this.e.iToken=1;break;case 1048588:this.e.checkLast(this.e.iToken=1);a=J.c.STER.NONE;break;case 2:case 3:b=
this.floatParameter(f);d=!0;break;case 1073741824:if(d||(b=3),a=J.c.STER.getStereoMode(this.paramAsStr(f)),null!=a)break;default:this.invArg()}this.chk||this.vwr.setStereoMode(c,a,b)});k(c$,"struts",function(){var a=this.e,b=1073742072==this.tokAt(1)||1048589==this.tokAt(1)||1==this.slen,d=a.getMadParameter();if(2147483647==d)return!1;b&&(d=Math.round(2E3*this.vwr.getFloat(570425406)));this.setShapeProperty(1,"type",Integer.$valueOf(32768));a.setShapeSizeBs(1,d,null);this.setShapeProperty(1,"type",
Integer.$valueOf(1023));return!0});k(c$,"assign",function(){var a=this.tokAt(1),b=this.atomExpressionAt(2).nextSetBit(0),d=-1,c=null;if(!(0>b)){4106==a?d=this.atomExpressionAt(++this.e.iToken).nextSetBit(0):c=this.paramAsStr(++this.e.iToken);var e=++this.e.iToken<this.slen?this.centerParameter(this.e.iToken):null;if(!this.chk)switch(a){case 1141899265:this.e.clearDefinedVariableAtomSets();this.assignAtom(b,e,c);break;case 1678770178:this.assignBond(b,(c+"p").charAt(0));break;case 4106:this.assignConnect(b,
d)}}});k(c$,"assignAtom",function(a,b,d){d.equals("X")&&this.vwr.setRotateBondIndex(-1);if(this.vwr.ms.at[a].mi==this.vwr.ms.mc-1){this.vwr.clearModelDependentObjects();var c=this.vwr.ms.ac;if(null==b)this.vwr.sm.modifySend(a,this.vwr.ms.at[a].mi,1,this.e.fullCommand),this.vwr.ms.assignAtom(a,d,!0),JU.PT.isOneOf(d,";Mi;Pl;X;")||this.vwr.ms.setAtomNamesAndNumbers(a,-c,null),this.vwr.sm.modifySend(a,this.vwr.ms.at[a].mi,-1,"OK"),this.vwr.refresh(3,"assignAtom");else{var e=this.vwr.ms.at[a],f=JU.BSUtil.newAndSetBit(a);
b=[b];var g=new JU.Lst;g.addLast(e);e=e.mi;this.vwr.sm.modifySend(a,e,3,this.e.fullCommand);try{f=this.vwr.addHydrogensInline(f,g,b),a=f.nextSetBit(0),this.vwr.ms.assignAtom(a,d,!1)}catch(h){if(!I(h,Exception))throw h;}this.vwr.ms.setAtomNamesAndNumbers(a,-c,null);this.vwr.sm.modifySend(a,e,-3,"OK")}}},"~N,JU.P3,~S");k(c$,"assignBond",function(a,b){var d=-1;try{d=this.vwr.ms.bo[a].atom1.mi;this.vwr.sm.modifySend(a,d,2,this.e.fullCommand);var c=this.vwr.ms.setBondOrder(a,b);null==c||"0"==b?this.vwr.refresh(3,
"setBondOrder"):this.vwr.addHydrogens(c,!1,!0);this.vwr.sm.modifySend(a,d,-2,""+b)}catch(e){if(I(e,Exception))JU.Logger.error("assignBond failed"),this.vwr.sm.modifySend(a,d,-2,"ERROR "+e);else throw e;}},"~N,~S");k(c$,"assignConnect",function(a,b){this.vwr.clearModelDependentObjects();var d=JU.AU.newFloat2(1);d[0]=[a,b];var c=this.vwr.ms.at[a].mi;this.vwr.sm.modifySend(a,c,2,this.e.fullCommand);this.vwr.ms.connect(d);this.vwr.ms.assignAtom(a,".",!0);this.vwr.ms.assignAtom(b,".",!0);this.vwr.sm.modifySend(a,
c,-2,"OK");this.vwr.refresh(3,"assignConnect")},"~N,~N");k(c$,"getContext",function(a){for(var b=new JU.SB,d=this.e.thisContext;null!=d;)a?null!=d.vars&&(b.append(this.getScriptID(d)),b.append(JV.StateManager.getVariableList(d.vars,80,!0,!1))):b.append(JS.ScriptError.getErrorLineMessage(d.functionName,d.scriptFileName,this.e.getLinenumber(d),d.pc,JS.ScriptEval.statementAsString(this.vwr,d.statement,-9999,this.e.debugHigh))),d=d.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");k(c$,"getColorTrans",function(a,b,d,c){d=3.4028235E38;1766856708!=a.theTok&&--b;switch(this.tokAt(b+1)){case 603979967:b++;d=this.isFloatParameter(b+1)?a.getTranslucentLevel(++b):this.vwr.getFloat(570425354);break;case 1073742074:b++,d=0}a.isColorParam(b+1)?c[0]=a.getArgbParam(++b):1048587==this.tokAt(b+1)?(c[0]=0,a.iToken=b+1):3.4028235E38==d?this.invArg():
c[0]=-2147483648;return d},"JS.ScriptEval,~N,~B,~A");k(c$,"getIsosurfaceJvxl",function(a,b){return this.chk?"":this.getShapeProperty(b,a?"jvxlMeshX":"jvxlDataXml")},"~B,~N");k(c$,"getMoJvxl",function(a,b){var d=b?28:27;this.e.sm.loadShape(d);var c=this.vwr.am.cmi;0>c&&this.e.errorStr(30,"show/write MO/NBO");var e=this.vwr.ms.getInfo(c,"moData");null==e&&this.error(27);var f=this.getShapeProperty(d,"moNumber");(null==f||0==f.intValue())&&this.setShapeProperty(d,"init",Integer.$valueOf(c));this.setShapeProperty(d,
"moData",e);return this.getShapePropertyIndex(d,"showMO",a)},"~N,~B");k(c$,"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");k(c$,"getShapePropertyIndex",function(a,b,d){return this.e.sm.getShapePropertyIndex(a,b,d)},"~N,~S,~N");k(c$,"tokenAt",function(a,b){return a<b.length?b[a]:null},"~N,~A");c$.tokAtArray=k(c$,"tokAtArray",function(a,
b){return a<b.length&&null!=b[a]?b[a].tok:0},"~N,~A");k(c$,"finalizeObject",function(a,b,d,c,e,f,g,h){e&&this.setShapeProperty(a,"set",f);-2147483648!=b&&this.e.setShapePropertyBs(a,"color",Integer.$valueOf(b),h);3.4028235E38!=d&&this.e.setShapeTranslucency(a,"","translucent",d,h);0!=c&&this.setShapeProperty(a,"scale",Integer.$valueOf(c));0<g&&(this.e.setMeshDisplayProperty(a,g,0)||this.invArg())},"~N,~N,~N,~N,~B,~O,~N,JU.BS");k(c$,"getPlotMinMax",function(a,b,d){if(null==a)return 0;switch(d){case 1112539144:case 1112539145:case 1112539146:return b?
180:-180;case 1112539141:case 1112539152:return b?360:0;case 1112539150:return b?1:-1}d=b?-1E10:1E10;for(var c=a.length;0<=--c;){var e=a[c];Float.isNaN(e)||b==e>d&&(d=e)}return d},"~A,~B,~N");N(c$,"getBitsetIdent",function(a,b,d,c,e,f){var g=!L(d,JM.BondSet);g&&(null==b?b=this.vwr.getStandardLabelFormat(0):0==b.length&&(b="%[label]"));var h=null==b?-1:b.indexOf("%"),j=2147483647!=e;if(null==a||this.chk||g&&0>h)return null==b&&(b=""),f?[b]:b;var h=this.vwr.ms,k=0,v=h.getLabeler();d=g||!c?null:d.associatedAtoms;
null==d&&(null!=b&&0<b.indexOf("%D"))&&(d=this.vwr.ms.getAtomIndices(a));c=null==b||0==b.length;var t=g||c?null:JM.LabelToken.getBondLabelValues();b=c?null:g?v.compile(this.vwr,b,"\x00",null):v.compile(this.vwr,b,"\u0001",t);var r=j?1:JU.BSUtil.cardinalityOf(a),s=Array(r),C=new JU.P3;for(e=j?e:a.nextSetBit(0);0<=e;e=a.nextSetBit(e+1)){var l;g?l=c?h.at[e].getInfo():v.formatLabelAtomArray(this.vwr,h.at[e],b,"\x00",d,C):(l=h.bo[e],l=c?l.getIdentity():v.formatLabelBond(this.vwr,l,b,t,d,C));l=JU.PT.formatStringI(l,
"#",k+1);s[k++]=l;if(j)break}return 1==r&&!f?s[0]:s},"JU.BS,~S,~O,~B,~N,~B");k(c$,"listIsosurface",function(a){var b=3<this.slen?"0":0==this.tokAt(2)?"":" "+this.getToken(2).value;this.chk||this.showString(this.getShapeProperty(a,"list"+b));return!0},"~N");k(c$,"setShapeId",function(a,b,d){d&&this.invArg();b=this.e.setShapeNameParameter(b).toLowerCase();this.setShapeProperty(a,"thisID",b);return b},"~N,~N,~B");k(c$,"parseDataArray",function(a,b){a=JU.Parser.fixDataString(a);var d=JU.Parser.markLines(a,
"\n"),c=d.length;if(!b){for(var e=JU.AU.newFloat2(c),f=0,g=0;f<c;g=d[f++])g=JU.PT.getTokens(a.substring(g,d[f])),JU.PT.parseFloatArrayData(g,e[f]=M(g.length,0));return e}g=JU.PT.getTokens(a.substring(0,d[0]));if(3!=g.length)return M(0,0,0,0);var h=JU.PT.parseInt(g[0]),j=JU.PT.parseInt(g[1]),k=JU.PT.parseInt(g[2]);if(1>h||1>j||1>k)return M(1,1,1,0);for(var e=JU.AU.newFloat3(h,j),v=0,t=0,f=1,g=d[0];f<c&&v<h;g=d[f++])g=JU.PT.getTokens(a.substring(g,d[f])),g.length<k||(JU.PT.parseFloatArrayData(g,e[v][t]=
M(g.length,0)),++t==j&&(v++,t=0));return v!=h?(System.out.println("Error reading 3D data -- nX = "+h+", but only "+v+" blocks read"),M(1,1,1,0)):e},"~S,~B");W(c$,"ERROR_invalidArgument",22)})})(Clazz,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.defineStatics,
Clazz.newFloatArray,Clazz.declareType,Clazz.prepareFields,Clazz.superConstructor,Clazz.newByteArray,Clazz.declareInterface,Clazz.p0p,Clazz.pu$h,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.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);
