(function(na,oa,pa,qa,V,ra,ia,y,ja,ka,la,Y,sa,ma,ta,L,P,ua,B,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,C,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,p){ia("JS");ja(null,"JS.MathExt","java.lang.Float $.Number java.util.Date $.HashMap $.Hashtable $.Random JU.AU $.BS $.CU $.Lst $.M3 $.M4 $.Measure $.OC $.P3 $.P4 $.PT $.Quat $.Rdr $.SB $.V3 J.api.Interface J.atomdata.RadiusData J.bspt.PointIterator J.c.VDW J.i18n.GT JM.BondSet $.Measurement JS.SV $.ScriptParam $.T JU.BSUtil $.BoxInfo $.Escape $.JmolMolecule $.Logger $.Parser $.Point3fi $.SimpleUnitCell JV.FileManager $.JC $.Viewer".split(" "),
function(){c$=la(function(){this.pm=this.rand=this.e=this.vwr=null;ka(this,arguments)},JS,"MathExt");ma(c$,function(){});p(c$,"init",function(e){this.e=e;this.vwr=this.e.vwr;return this},"~O");p(c$,"evaluate",function(e,a,b,c){switch(c){case 134218760:return 1<=b.length&&4==b[0].tok?e.addXStr((1==b.length?(new java.util.Date).toString():this.vwr.apiPlatform.getDateFormat(JS.SV.sValue(b[1])))+"\t"+JS.SV.sValue(b[0]).trim()):e.addXInt(System.currentTimeMillis()-JS.MathExt.t0-(0==b.length?0:b[0].asInt()));
case 134218250:return 1==b.length&&2==b[0].tok?e.addXInt(b[0].intValue):e.addXFloat(Math.abs(b[0].asFloat()));case 134218242:case 134218245:case 134218244:case 134218246:return 1==b.length&&this.evaluateMath(e,b,c);case 1275069441:case 1275068928:case 1275068929:case 1275068930:case 1275068931:case 1275335685:case 1275334681:return this.evaluateList(e,a.intValue,b);case 268435520:0==b.length&&(e.wasX=!1);case 1275068418:return this.evaluateArray(e,b,1275068418==c&&268435665==a.tok);case 134217765:return e.addXObj(this.vwr.sm.getParameter(0==
b.length?-2147483648:b[0].intValue));case 134217731:case 134221850:return this.evaluateQuaternion(e,b,c);case 1275068420:return this.evaluateBin(e,b);case 134221829:return this.evaluateCache(e,b);case 1275068934:case 1275068935:return this.evaluateRowCol(e,b,c);case 1765808134:return this.evaluateColor(e,b);case 134221831:return this.evaluateCompare(e,b);case 1228931587:case 134217736:case 1275203608:return this.evaluateConnected(e,b,c,a.intValue);case 1814695966:return this.evaluateUnitCell(e,b,
268435665==a.tok);case 134353926:return this.evaluateContact(e,b);case 134221834:return this.evaluateData(e,b);case 1275069444:case 1275069442:return this.evaluateDotDist(e,b,c,a.intValue);case 1275069443:if(268435665==a.tok)return this.evaluateDotDist(e,b,c,a.intValue);case 134217729:case 1745489939:return this.evaluateMeasure(e,b,a.tok);case 1228935687:case 134222849:return this.evaluateLoad(e,b,1228935687==c);case 1275068427:return this.evaluateFind(e,b);case 1275068433:return this.evaluateInChI(e,
b);case 1287653388:case 1825200146:return this.evaluateFormat(e,a.intValue,b,1825200146==c);case 134320141:return this.evaluateUserFunction(e,a.value,b,a.intValue,268435665==a.tok);case 1275068446:case 1275068725:case 1275082245:case 1275072526:return this.evaluateGetProperty(e,b,c,268435665==a.tok);case 136314895:return this.evaluateHelix(e,b);case 134219265:case 134217750:case 134217763:return this.evaluatePlane(e,b,c);case 134218759:case 134238732:case 134222850:case 134222350:return this.evaluateScript(e,
b,c);case 1275069446:case 1275069447:case 1275068932:return this.evaluateString(e,a.intValue,b);case 134217751:return this.evaluatePoint(e,b);case 1275068447:return this.evaluatePointGroup(e,b,268435665==a.tok);case 134256131:return this.evaluatePrompt(e,b);case 134219268:return this.evaluateRandom(e,b);case 1275068432:return this.evaluateIn(e,b);case 1275072532:return this.evaluateModulation(e,b);case 1275068443:return this.evaluateReplace(e,b);case 134218756:case 134218757:case 1237320707:return this.evaluateSubstructure(e,
b,c,268435665==a.tok);case 1275068444:case 1275068425:return this.evaluateSort(e,b,c);case 134217764:return this.evaluateSpacegroup(e,b);case 1296041986:return this.evaluateSymop(e,b,268435665==a.tok);case 1275068445:return this.evaluateTensor(e,b);case 134217759:return this.evaluateWithin(e,b);case 134221856:return this.evaluateWrite(e,b)}return!1},"JS.ScriptMathProcessor,JS.T,~A,~N");p(c$,"evaluateSpacegroup",function(e,a){var b=null;switch(a.length){case 0:return e.addXObj(this.vwr.getSymTemp().getSpaceGroupInfo(this.vwr.ms,
null,this.vwr.am.cmi,!0,null));case 2:b=JS.SV.flistValue(a[1],0),6>b.length&&(b=null);case 1:var c=null,d=null;if(4==a[0].tok)d=a[0].asString();else if(c=JS.SV.getBitSet(a[0],!0),null==c)return e.addXObj(this.vwr.getSymTemp().getSpaceGroupInfo(this.vwr.ms,""+a[0].asString(),-2147483648,!0,b));return e.addXObj(this.vwr.findSpaceGroup(c,d,null==d));default:return!1}},"JS.ScriptMathProcessor,~A");p(c$,"evaluatePointGroup",function(e,a,b){var c=null,d=null,f=NaN,h=NaN,g=null,k=!1;switch(a.length){case 4:h=
a[3].asFloat();case 3:f=a[2].asFloat();case 2:switch(a[1].tok){case 8:d=JS.SV.ptValue(a[1]);break;case 10:g=JS.SV.getBitSet(a[1],!1),a[0].asString().equalsIgnoreCase("spaceGroup")&&(k=!0,2==a.length&&(f=0))}if(k)break;case 1:switch(a[0].tok){case 7:b=a[0].getList();c=Array(b.size());for(a=c.length;0<=--a;)c[a]=JS.SV.ptValue(b.get(a));break;case 10:g=JS.SV.getBitSet(a[0],!1);b=this.vwr.ms.getAtomPointVector(g);c=Array(b.size());for(a=c.length;0<=--a;)c[a]=b.get(a);break;case 4:if(b){g=JS.SV.getBitSet(e.getX(),
!0);if(null==g||g.isEmpty())return!1;k=a[0].asString();if("spacegroup".equals(k)){k=!0;break}}default:return!1}break;case 0:return e.addXObj(this.vwr.ms.getPointGroupInfo(null));default:return!1}if(null!=g){d=g.nextSetBit(0);if(0>d||d>=this.vwr.ms.ac||1!=g.cardinality())return!1;if(k){g=this.vwr.ms.generateCrystalClass(d,JU.P3.new3(NaN,NaN,NaN));c=Array(g.size());for(a=c.length;0<=--a;)c[a]=g.get(a);d=new JU.P3}else d=this.vwr.ms.at[d]}c=this.vwr.getSymTemp().setPointGroup(null,d,c,null,!1,Float.isNaN(f)?
this.vwr.getFloat(570425382):f,Float.isNaN(h)?this.vwr.getFloat(570425384):h,!0);return e.addXMap(c.getPointGroupInfo(-1,null,!0,null,0,1))},"JS.ScriptMathProcessor,~A,~B");p(c$,"evaluateUnitCell",function(e,a,b){b=b?JS.SV.getBitSet(e.getX(),!0):null;var c=(null==b?this.vwr.getAllAtoms():b).nextSetBit(0),d=a.length-1;b=1;switch(0>d?0:a[d].tok){case 2:case 3:b=a[d].asFloat(),d--}var f=0>d?0:a[0].tok,h=null,g=null;switch(f){case 7:g=a[0].getList();break;case 4:var k=a[0].asString();if(0==k.indexOf("a=")){for(var h=
Array(4),j=0;4>j;j++)h[j]=new JU.P3;JU.SimpleUnitCell.setOabc(k,null,h)}else if(0<=k.indexOf(","))return e.addXObj(this.vwr.getV0abc(-1,k))}k=null;j=null!=g;if(null==h&&j&&4>g.size())return!1;var m=j?1:0;null==h&&(!j&&8!=f)&&(k=0>c?this.vwr.getCurrentUnitCell():this.vwr.ms.getUnitCell(this.vwr.ms.at[c].mi),h=null==k?C(-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)]):k.getUnitCellVectors());if(null==h)if(h=Array(4),j)switch(g.size()){case 3:h[0]=new JU.P3;for(j=0;3>j;j++)h[j+
1]=JU.P3.newP(JS.SV.ptValue(g.get(j)));break;case 4:for(j=0;4>j;j++)h[j]=JU.P3.newP(JS.SV.ptValue(g.get(j)));break;case 6:f=B(6,0);for(j=0;6>j;j++)f[j]=g.get(j).asFloat();JU.SimpleUnitCell.setOabc(null,f,h);break;default:return!1}else switch(h[0]=JS.SV.ptValue(a[0]),d){case 3:for(j=1;4>j;j++)(h[j]=JU.P3.newP(JS.SV.ptValue(a[j]))).sub(h[0]);break;case 1:if(g=a[1].getList(),null!=g&&3==g.size()){for(j=0;3>j;j++)h[j+1]=JS.SV.ptValue(g.get(j));break}default:return!1}j=m<=d?a[m].asString():null;if((g=
"primitive".equalsIgnoreCase(j))||"conventional".equalsIgnoreCase(j)){a=++m>d?"":a[m].asString().toUpperCase();a.equals("BCC")?a="I":0==a.length&&(a=this.vwr.getSymmetryInfo(c,null,0,null,null,null,1073741994,null,0,-1,0));if(null==a||0==a.length)return!1;null==k&&(k=this.vwr.getSymTemp());c=this.vwr.getModelForAtomIndex(c).auxiliaryInfo.get("primitiveToCrystal");if(!k.toFromPrimitive(g,a.charAt(0),h,c))return!1}else if("reciprocal".equalsIgnoreCase(j))h=JU.SimpleUnitCell.getReciprocal(h,null,b),
b=1;else if("vertices".equalsIgnoreCase(j))return e.addXObj(JU.BoxInfo.getVerticesFromOABC(h));if(1!=b)for(j=1;4>j;j++)h[j].scale(b);return e.addXObj(h)},"JS.ScriptMathProcessor,~A,~B");p(c$,"evaluateArray",function(e,a,b){if(b){b=e.getX();switch(1==a.length?b.tok:0){case 6:var c=new JU.Lst,d=a[0].asString(),f=b.getMap(),h=b.getKeys(!1);b=0;for(a=h.length;b<a;b++)if(null==f.get(h[b]).getMap())return!1;b=0;for(a=h.length;b<a;b++){var g=f.get(h[b]),g=g.getMap(),g=JS.SV.deepCopy(g,!0,!1);g.put(d,JS.SV.newS(h[b]));
c.addLast(JS.SV.newV(6,g))}return e.addXList(c);case 7:c=new java.util.Hashtable;d=b.getList();f=a[0].asString();b=0;for(a=d.size();b<a;b++)if(g=d.get(b).getMap(),null==g||null==g.get(f))return!1;b=0;for(a=d.size();b<a;b++)g=d.get(b),g=JS.SV.deepCopy(g.getMap(),!0,!1),h=g.remove(f),c.put(h.asString(),JS.SV.newV(6,g));return e.addXObj(c)}return!1}c=Array(a.length);for(b=c.length;0<=--b;)c[b]=JS.SV.newT(a[b]);return e.addXAV(c)},"JS.ScriptMathProcessor,~A,~B");p(c$,"evaluateBin",function(e,a){var b=
a.length;if(3>b||5<b)return!1;var c=e.getX(),d=13==c.tok;if(!d&&7!=c.tok)return e.addX(c);var f=JS.SV.fValue(a[0]),h=JS.SV.fValue(a[1]),g=JS.SV.fValue(a[2]),k=4<=b&&1073742335==a[b-1].tok,b=(5==b||4==b&&!k)&&1073742334!=a[3].tok?JS.SV.sValue(a[3]):null,j=null;if(d)c=c.value;else{d=c.getList();c=B(d.size(),0);null!=b&&(j=JU.AU.createArrayOfHashtable(d.size()));try{for(var m=d.size();0<=--m;)c[m]=JS.SV.fValue(null==b?d.get(m):(j[m]=d.get(m).getMap()).get(b))}catch(r){if(L(r,Exception))return!1;throw r;
}}for(var h=Math.max(V(Math.floor((h-f)/g+0.01)),1),d=P(h,0),l=c.length,m=0;m<l;m++){var t=V(Math.floor((c[m]-f)/g));if(!(0>t||t>=h))if(d[t]++,null!=b){var q=j[m];if(null!=q){q.put("_bin",JS.SV.newI(t));var n=f+g*t,p=n+g;q.put("_binMin",JS.SV.newF(0==t?-3.4028235E38:n));q.put("_binMax",JS.SV.newF(t==h-1?3.4028235E38:p))}}}if(k){k=new JU.Lst;for(m=0;m<h;m++)k.addLast(B(-1,[f+g*m,d[m]]));return e.addXList(k)}return e.addXAI(d)},"JS.ScriptMathProcessor,~A");p(c$,"evaluateCache",function(e,a){return 0<
a.length?!1:e.addXMap(this.vwr.fm.cacheList())},"JS.ScriptMathProcessor,~A");p(c$,"evaluateColor",function(e,a){var b=0<a.length?JS.SV.sValue(a[0]):"",c=b.startsWith("$");if(2==a.length&&b.equalsIgnoreCase("TOHSL"))return e.addXPt(JU.CU.rgbToHSL(JU.P3.newP(8==a[1].tok?JS.SV.ptValue(a[1]):JU.CU.colorPtFromString(a[1].asString())),!0));if(2==a.length&&b.equalsIgnoreCase("TORGB")){var d=JU.P3.newP(8==a[1].tok?JS.SV.ptValue(a[1]):JU.CU.colorPtFromString(a[1].asString()));return e.addXPt(8==a[1].tok?JU.CU.hslToRGB(d):
d)}if(4==a.length&&(1073742335==a[3].tok||1073742334==a[3].tok)){var d=JU.P3.newP(8==a[0].tok?JS.SV.ptValue(a[0]):JU.CU.colorPtFromString(a[0].asString())),f=JU.P3.newP(8==a[1].tok?JS.SV.ptValue(a[1]):JU.CU.colorPtFromString(a[1].asString())),h=1073742335==a[3].tok;h&&(d=JU.CU.rgbToHSL(d,!1),f=JU.CU.rgbToHSL(f,!1));var g=new JU.SB,f=JU.V3.newVsub(f,d),k=a[2].asInt();2>k&&(k=20);f.scale(1/(k-1));for(b=0;b<k;b++)g.append(JU.Escape.escapeColor(JU.CU.colorPtToFFRGB(h?JU.CU.hslToRGB(d):d))),d.add(f);return e.addXStr(g.toString())}k=
c?null:this.vwr.cm.getColorEncoder(b);if(!c&&null==k)return e.addXStr("");d=1<a.length?JS.SV.fValue(a[1]):3.4028235E38;f=2<a.length?JS.SV.fValue(a[2]):3.4028235E38;h=3<a.length?JS.SV.fValue(a[3]):3.4028235E38;g=3.4028235E38!=h||3.4028235E38!=d&&3.4028235E38==f;3.4028235E38==f&&0==b.length&&(h=d,f=this.vwr.getCurrentColorRange(),d=f[0],f=f[1]);if(c){k=b.substring(1);k=C(-1,[k,null]);if(!this.vwr.shm.getShapePropertyData(24,"colorEncoder",k))return e.addXStr("");k=k[1]}else k.setRange(d,f,d>f);b=k.getColorKey();
return g?e.addXPt(JU.CU.colorPtFromInt(k.getArgb(3.4028235E38==f?d:h),null)):e.addX(JS.SV.getVariableMap(b))},"JS.ScriptMathProcessor,~A");p(c$,"evaluateCompare",function(e,a){var b=a.length;if(2>b||5<b)return!1;var c,d=1073742335==a[b-1].tok;(d||1073742334==a[b-1].tok)&&b--;var f=JS.SV.sValue(a[b-1]),h=f.equalsIgnoreCase("stddev"),g=f.equalsIgnoreCase("ISOMER"),k=g&&d,j=f.equalsIgnoreCase("BONDS"),m=7==a[0].tok&&7==a[1].tok,r=!m&&!g&&b>(h?3:2),d=10==a[0].tok?a[0].value:null,l=10==a[1].tok?a[1].value:
null,t=null==d?JS.SV.sValue(a[0]):"",q=null==l?JS.SV.sValue(a[1]):"";c=NaN;try{if(j){if(4!=b)return!1;t=JS.SV.sValue(a[2]);r=t.equalsIgnoreCase("SMILES");try{r&&(t=this.vwr.getSmiles(d))}catch(n){if(L(n,Exception))this.e.evalError(n.getMessage(),null);else throw n;}var p=this.e.getSmilesExt().getFlexFitList(d,l,t,!r);return null==p?e.addXStr(""):e.addXAF(p)}if(g){if(3!=b)return!1;if(null==d&&null==l){var u=this.vwr.getSmilesMatcher().getRelationship(t,q).toUpperCase();return e.addXStr(u)}var y=null==
d?this.vwr.getSmilesMatcher().getMolecularFormula(t,!1):JU.JmolMolecule.getMolecularFormulaAtoms(this.vwr.ms.at,d,null,!1),B=null==l?this.vwr.getSmilesMatcher().getMolecularFormula(q,!1):JU.JmolMolecule.getMolecularFormulaAtoms(this.vwr.ms.at,l,null,!1);if(!y.equals(B))return e.addXStr("NONE");null!=d&&(t=this.e.getSmilesExt().getSmilesMatches("/strict///",null,d,null,1,!0,!1));var z;null==l?z=0<this.vwr.getSmilesMatcher().areEqual(q,t):(q=this.e.getSmilesExt().getSmilesMatches("/strict///",null,
l,null,1,!0,!1),z=0<=this.e.getSmilesExt().getSmilesMatches("/strict///"+t,null,l,null,1,!0,!1).nextSetBit(0));if(!z){var A=t+q;if(0<=A.indexOf("/")||0<=A.indexOf("\\")||0<=A.indexOf("@")){if(0<=t.indexOf("@")&&(null!=l||0<=q.indexOf("@"))&&0>t.indexOf("@SP")){var D=t.toLowerCase().indexOf("invertstereo"),t=0<=D?"/strict/"+t.substring(0,D)+t.substring(D+12):"/invertstereo strict/"+t;if(z=null==l?0<this.vwr.getSmilesMatcher().areEqual(t,q):0<=this.e.getSmilesExt().getSmilesMatches(t,null,l,null,1,
!0,!1).nextSetBit(0))return e.addXStr("ENANTIOMERS")}null==l?z=0<this.vwr.getSmilesMatcher().areEqual("/nostereo/"+q,t):(u=this.e.getSmilesExt().getSmilesMatches("/nostereo/"+t,null,l,null,1,!0,!1),z=0<=u.nextSetBit(0));if(z)return e.addXStr("DIASTEREOMERS")}u="CONSTITUTIONAL ISOMERS";if(k){var v=this.vwr.getInchi(d,null,null);null!=v&&v.equals(this.vwr.getInchi(l,null,null))&&(u="TAUTOMERS")}return e.addXStr(u)}if(null==d||null==l)return e.addXStr("IDENTICAL");c=this.e.getSmilesExt().getSmilesCorrelation(d,
l,t,null,null,null,null,!1,null,null,!1,1);return e.addXStr(0.2>c?"IDENTICAL":"IDENTICAL or CONFORMATIONAL ISOMERS (RMSD="+c+")")}var F=new JU.M4,v=z=null;if(r){if(null==d||null==l)return!1;var f=JS.SV.sValue(a[2]),C=f.equalsIgnoreCase("MAP"),r=f.equalsIgnoreCase("SMILES"),s=C||f.equalsIgnoreCase("SMARTS");if(r||s)f=b>(h?4:3)?JS.SV.sValue(a[3]):null;var x="H".equalsIgnoreCase(f)||"allH".equalsIgnoreCase(f)||"bestH".equalsIgnoreCase(f),O=!x&&("polyhedra".equalsIgnoreCase(f)||"polyhedron".equalsIgnoreCase(f));
if(O)c=this.e.getSmilesExt().mapPolyhedra(d.nextSetBit(0),l.nextSetBit(0),r,F);else{z=new JU.Lst;var v=new JU.Lst,A="all".equalsIgnoreCase(f)||"allH".equalsIgnoreCase(f),E="best".equalsIgnoreCase(f)||"bestH".equalsIgnoreCase(f);"stddev".equals(f)&&(f=null);s=f;if(null==f||x||A||E){if(!C&&!r||x&&O)return!1;s="/noaromatic"+(A||E?"/":" nostereo/")+this.e.getSmilesExt().getSmilesMatches(x?"H":"",null,d,null,1,!0,!1)}else A=!0;c=this.e.getSmilesExt().getSmilesCorrelation(d,l,s,z,v,F,null,C,null,null,E,
(r?1:2)|(!A&&!E?8:0));if(C){var K=z.size();if(0==K)return e.addXStr("");for(var I=V(v.size()/K),u=new JU.Lst,U=0,D=0;U<I;U++){var w=JU.AU.newInt2(K);u.addLast(w);for(b=0;b<K;b++,D++)w[b]=P(-1,[z.get(b).i,v.get(D).i])}return A?e.addXList(u):0<u.size()?e.addXAII(u.get(0)):e.addXStr("")}}}if(m){z=this.e.getPointVector(a[0],3);v=this.e.getPointVector(a[1],3);w=3<=b?a[2].getList():null;if(null!=w){b--;var Q=w.size();if(Q!=z.size()||Q!=v.size())return!1;for(var W=new JU.Lst,U=0;U<Q;U++)W.addLast(z.get(w.get(U).intValue));
z=W}switch(b){case 2:break;case 3:if(h)break;default:return!1}null!=z&&(null!=v&&z.size()==v.size())&&(J.api.Interface.getInterface("JU.Eigen",this.vwr,"script"),c=JU.Measure.getTransformMatrix4(z,v,F,null))}return h||Float.isNaN(c)?e.addXFloat(c):e.addXM4(F.round(1E-7))}catch(M){if(L(M,Exception))return this.e.evalError(null==M.getMessage()?M.toString():M.getMessage(),null),!1;throw M;}},"JS.ScriptMathProcessor,~A");p(c$,"evaluateConnected",function(e,a,b,c){if(5<a.length)return!1;var d=-2147483648,
f=2147483647,h=0,g=3.4028235E38,k=65535,j=null,m=null,r=!1,l=!1;switch(b){case 1275203608:m=-2147483648;h=null;if(0<a.length)switch(a[0].tok){case 2:m=a[0].intValue;break;case 4:h=JS.SV.sValue(a[0])}1275203608==c&&(j=JS.SV.getBitSet(e.getX(),!0));j=C(-1,[Integer.$valueOf(m),h,j]);this.vwr.shm.getShapePropertyData(21,"getCenters",j)||(j[1]=null);return e.addXBs(null==j[1]?new JU.BS:j[1]);case 1228931587:j=e.getX();if(10!=j.tok||1!=a.length||10!=a[0].tok)return!1;j=j.value;m=a[0].value;a=new JU.Lst;
h=this.vwr.ms.at;for(c=j.nextSetBit(0);0<=c;c=j.nextSetBit(c+1)){b=0;g=h[c].bonds;for(l=g.length;0<=--l;)m.get(g[l].getOtherAtom(h[c]).i)&&b++;a.addLast(Integer.$valueOf(b))}return e.addXList(a)}for(c=0;c<a.length;c++){var t=a[c];switch(t.tok){case 10:if((l=y(t.value,JM.BondSet))&&null!=j)return!1;if(null==j)j=t.value;else if(null==m)m=t.value;else return!1;break;case 4:b=JS.SV.sValue(t);k=b.equalsIgnoreCase("hbond")?30720:JS.ScriptParam.getBondOrderFromString(b);if(131071==k)return!1;break;case 3:r=
!0;default:b=t.asInt();t=t.asFloat();if(2147483647!=f)return!1;-2147483648==d?(d=Math.max(b,0),h=t):(f=b,g=t)}}-2147483648==d?(d=1,f=100,h=0.1,g=1E8):2147483647==f&&(f=d,g=h,h=0.1);null==j&&(j=this.vwr.getAllAtoms());r&&null==m&&(m=j);return null!=m?(a=new JU.BS,this.vwr.makeConnections(h,g,k,1086324745,j,m,a,l,!1,0),e.addX(JS.SV.newV(10,JM.BondSet.newBS(a,this.vwr.ms.getAtomIndices(this.vwr.ms.getAtoms(1677721602,a)))))):e.addXBs(this.vwr.ms.getAtomsConnected(d,f,k,j))},"JS.ScriptMathProcessor,~A,~N,~N");
p(c$,"evaluateContact",function(e,a){if(1>a.length||3<a.length)return!1;var b=0,c=100;switch(a[0].tok){case 3:case 2:c=JS.SV.fValue(a[b++]);break;case 10:break;default:return!1}if(b==a.length||!y(a[b].value,JU.BS))return!1;var d=JU.BSUtil.copy(a[b++].value),b=b<a.length?JU.BSUtil.copy(a[b].value):null,c=new J.atomdata.RadiusData(null,10<c?c/100:c,10<c?J.atomdata.RadiusData.EnumType.FACTOR:J.atomdata.RadiusData.EnumType.OFFSET,J.c.VDW.AUTO),b=this.setContactBitSets(d,b,!0,NaN,c,!1);b.or(d);return e.addXBs(b)},
"JS.ScriptMathProcessor,~A");p(c$,"evaluateData",function(e,a){var b=0==a.length?"":JS.SV.sValue(a[0]);switch(a.length){case 0:case 1:break;case 2:case 3:if(10==a[0].tok)return e.addXStr(this.vwr.getModelFileData(b,JS.SV.sValue(a[1]),3==a.length&&JS.SV.bValue(a[2])));break;case 4:var b=a[1].asInt(),c=a[2].asInt(),d=a[3].asInt(),b=JU.Parser.parseFloatArrayFromMatchAndField(JS.SV.sValue(a[0]),null,0,0,null,b,c,null,d);return e.addXStr(JU.Escape.escapeFloatA(b,!1));default:return!1}if(0==b.indexOf("data2d_"))return b=
this.vwr.getDataObj(b,null,2),null==b?e.addXStr(""):2==a.length&&2==a[1].tok?(c=a[1].intValue,0>c&&(c+=b.length),0<=c&&c<b.length?e.addXStr(JU.Escape.escapeFloatA(b[c],!1)):e.addXStr("")):e.addXStr(JU.Escape.escapeFloatAA(b,!1));if(b.endsWith("*"))return e.addXList(this.vwr.getDataObj(b,null,0));if(0==b.indexOf("property_"))return b=this.vwr.getDataObj(b,null,1),null==b?e.addXStr(""):e.addXStr(JU.Escape.escapeFloatA(b,!1));b=this.vwr.getDataObj(b,null,-1);return e.addXStr(null==b||2>b.length?"":""+
b[1])},"JS.ScriptMathProcessor,~A");p(c$,"evaluateDotDist",function(e,a,b,c){var d=1275069443==b,f,h,g=null;switch(a.length){case 2:if(2147483647==c){f=a[0];h=a[1];break}g=a[1];case 1:f=e.getX();h=a[0];break;case 0:if(d){f=e.getX();h=JS.SV.getVariable(new JU.P3);break}default:return!1}a=NaN;try{if(1275069442==b){var k=JU.P3.newP(e.ptValue(f,null));k.cross(k,e.ptValue(h,null));return e.addXPt(k)}var j=7==h.tok?null:e.ptValue(h,null),m=this.e.planeValue(h);if(d){b=-2147483648==c?0:c&480;var k=32==b||
64==b,r=480==b;switch(f.tok){case 7:case 10:var l=10==f.tok,t=10==h.tok,q=8==h.tok,n=l?f.value:null,p=t?h.value:null,u=l?null:f.getList(),y=t?null:h.getList(),C=k&&null!=g&&g.asBoolean();switch(h.tok){case 10:case 7:case 8:var z=this.vwr.ms.at;if(C){var A=NaN,D=2147483647;if(l){for(var v=n.nextSetBit(0);0<=v;v=n.nextSetBit(v+1)){var F=q?z[v].distanceSquared(j):this.e.getBitsetProperty(p,y,c,z[v],m,f.value,null,!1,f.index,!1).floatValue();if(!(32==b?F>=A:F<=A))A=F,D=v}return e.addXBs(2147483647==D?
new JU.BS:JU.BSUtil.newAndSetBit(D))}for(v=u.size();0<=--v;){var P=JS.SV.ptValue(u.get(v)),F=q?P.distanceSquared(j):this.e.getBitsetProperty(p,y,c,P,m,f.value,null,!1,2147483647,!1).floatValue();if(!(32==b?F>=A:F<=A))A=F,D=v}return e.addXInt(D)}if(r){if(null==p){for(var s=B(n.cardinality(),0),A=0,v=n.nextSetBit(0);0<=v;v=n.nextSetBit(v+1),A++)s[A]=z[v].distance(j);return e.addXAF(s)}D=B(n.cardinality(),p.cardinality(),0);A=0;for(v=n.nextSetBit(0);0<=v;v=n.nextSetBit(v+1),A++){c=0;for(var x=p.nextSetBit(0);0<=
x;x=p.nextSetBit(x+1),c++)D[A][c]=z[v].distance(z[x])}return e.addXAFF(D)}if(k){s=B(l?n.cardinality():u.size(),0);if(l){v=n.nextSetBit(0);for(A=0;0<=v;v=n.nextSetBit(v+1))s[A++]=this.e.getBitsetProperty(p,y,c,z[v],m,f.value,null,!1,f.index,!1).floatValue();return e.addXAF(s)}for(v=s.length;0<=--v;)s[v]=this.e.getBitsetProperty(p,y,c,JS.SV.ptValue(u.get(v)),m,null,null,!1,2147483647,!1).floatValue();return e.addXAF(s)}return e.addXObj(this.e.getBitsetProperty(n,u,c,j,m,f.value,null,!1,f.index,!1))}}}var O=
e.ptValue(f,null),E=this.e.planeValue(f);d?a=null!=m&&null!=g?JU.Measure.directedDistanceToPlane(O,m,JS.SV.ptValue(g)):null==E?null==m?j.distance(O):JU.Measure.distanceToPlane(m,O):JU.Measure.distanceToPlane(E,j):null!=E&&null!=m?a=E.x*m.x+E.y*m.y+E.z*m.z+E.w*m.w:(null!=E?O=JU.P3.new3(E.x,E.y,E.z):null!=m&&(j=JU.P3.new3(m.x,m.y,m.z)),a=O.dot(j))}catch(K){if(!L(K,Exception))throw K;}return e.addXFloat(a)},"JS.ScriptMathProcessor,~A,~N,~N");p(c$,"evaluateHelix",function(e,a){if(1>a.length||5<a.length)return!1;
var b=2<a.length?3:1,c=b>=a.length?"array":JS.SV.sValue(a[b]),b=JS.T.getTokFromName(c);if(2<a.length){var d=e.ptValue(a[0],null),f=e.ptValue(a[1],null);if(0==b||9!=a[2].tok||null==d||null==f)return!1;var h=JU.Quat.newP4(a[2].value),h=JU.Measure.computeHelicalAxis(d,f,h);return null==h?!1:e.addXObj(JU.Escape.escapeHelical(c,b,d,f,h))}c=y(a[0].value,JU.BS)?a[0].value:this.vwr.ms.getAtoms(1094715412,new Integer(a[0].asInt()));switch(b){case 134217751:case 1073741854:case 1665140738:return e.addXObj(this.getHelixData(c,
b));case 134217729:return e.addXFloat(this.getHelixData(c,134217729).floatValue());case 135176:case 1745489939:return e.addXObj(this.getHelixData(c,b));case 1275068418:h=this.getHelixData(c,1073742001);if(null==h)break;return e.addXAS(h)}return!1},"JS.ScriptMathProcessor,~A");p(c$,"getHelixData",function(e,a){var b=e.nextSetBit(0);return 0>b?"null":this.vwr.ms.at[b].group.getHelixData(a,this.vwr.getQuaternionFrame(),this.vwr.getInt(553648142))},"JU.BS,~N");p(c$,"evaluateInChI",function(e,a){var b=
e.getX(),c=0<a.length?JS.SV.sValue(a[0]):"fixedh?";c.toLowerCase().equals("standard")&&(c="");var d=JS.SV.getBitSet(b,!0),f=null;null==d&&(f=JS.SV.sValue(b));return e.addXStr(this.vwr.getInchi(d,f,c))},"JS.ScriptMathProcessor,~A");p(c$,"evaluateFind",function(e,a){var b=e.getX(),c=7==b.tok,d=10==b.tok,f=0==a.length,h=0==a.length?0:a[0].tok,g=f||4!=h?"":JS.SV.sValue(a[0]),k=1<a.length&&1073742334==a[1].tok,j=0==h?0:a[a.length-1].tok,m=0==j?JS.SV.vF:a[a.length-1],r=!c&&1073742335==j,l=1<a.length&&1073742335!=
a[1].tok&&1073742334!=a[1].tok&&10!=a[1].tok?JS.SV.sValue(a[1]):"",j=!c&&!k&&g.equalsIgnoreCase("SEQUENCE"),t=!c&&!k&&g.equalsIgnoreCase("SEQ");if(g.toUpperCase().startsWith("SMILES/")){g.endsWith("/")||(g+="/");var q=g.substring(6)+"//";JV.JC.isSmilesCanonical(q)?(l="SMILES",g="CHEMICAL"):(g="SMILES",l=q+l)}else g.toUpperCase().startsWith("SMARTS/")&&(g.endsWith("/")||(g+="/"),l=g.substring(6)+(0==l.length?"//":l),g="SMARTS");var n=null,q=!1;if(4==b.tok)switch(a.length){case 1:if(b.value.startsWith("InChI=")&&
g.equals("SMILES"))return e.addXStr(this.vwr.getInchi(null,b.value,"SMILES"));q=!0;break;case 2:k||r?q=!0:b.value.startsWith("InChI=")?g.equals("SMARTS")?n=this.vwr.getInchi(null,b.value,"SMILES"):q=!0:3>=l.length&&0==l.$replace("m"," ").$replace("i"," ").$replace("v"," ").trim().length&&(q=!0)}var p=!c&&!q&&g.equalsIgnoreCase("SMILES"),u=!c&&!q&&g.equalsIgnoreCase("SMARTS"),y=!c&&!q&&g.equalsIgnoreCase("CHEMICAL"),B=!c&&!q&&g.equalsIgnoreCase("MF"),z=!c&&!q&&g.equalsIgnoreCase("CELLFORMULA"),A=d&&
!c&&g.equalsIgnoreCase("INCHI"),D=d&&!c&&g.equalsIgnoreCase("INCHIKEY"),v=!p&&!u&&10==h&&0<=l.toLowerCase().indexOf("map"),q=(10==b.tok||8==b.tok||7==b.tok)&&g.toLowerCase().startsWith("equivalent");try{if(q)switch(b.tok){case 10:return e.addXBs(this.vwr.ms.getSymmetryEquivAtoms(b.value));case 8:return e.addXList(this.vwr.getSymmetryEquivPoints(b.value,g+l));case 7:for(var F=new JU.Lst,V=b.getList(),s=0,x=V.size();s<x;s++){var O=JS.SV.ptValue(V.get(s));if(null==O)return!1;F.addLast(O)}return e.addXList(this.vwr.getSymmetryEquivPointList(F,
g+l))}else if(A||D)return D&&(l+=" key"),e.addXStr(this.vwr.getInchi(JS.SV.getBitSet(b,!0),null,l));if(y){var E=d?b.value:null,K=null==E?JS.SV.sValue(b):this.vwr.getOpenSmiles(E),K=(0==K.length?"":this.vwr.getChemicalInfo(K,l.toLowerCase(),E)).trim();K.startsWith("InChI")&&(K=JU.PT.rep(JU.PT.rep(K,"InChI=",""),"InChIKey=",""));return e.addXStr(K)}if(p||u||d){var d=v?0:p||u?2:1,I=d<a.length&&10==a[d].tok?a[d++].value:null,U="bonds".equalsIgnoreCase(JS.SV.sValue(m)),F=U||r,d=null;switch(b.tok){case 4:null==
n&&(n=JS.SV.sValue(b));if((p||u)&&1==a.length||null!=I)return!1;if(l.equalsIgnoreCase("mf"))d=this.vwr.getSmilesMatcher().getMolecularFormula(n,u);else{var I=l,w=!0,s=!1;switch(a.length){case 4:w=JS.SV.bValue(a[3]);case 3:s=JS.SV.bValue(a[2])}var Q=I.equals("chirality"),x=!s&&(!w||!u&&!Q);try{d=this.e.getSmilesExt().getSmilesMatches(I,n,null,null,u?2:1,!s,!w)}catch(W){if(L(W,Exception))return System.out.println(W.getMessage()),e.addXInt(-1);throw W;}var M=Q?1:(JU.AU.isAI(d),d.length);0==M&&("MF_FAILED"!==
this.vwr.getSmilesMatcher().getLastException()&&0>n.toLowerCase().indexOf("noaromatic")&&0>n.toLowerCase().indexOf("strict"))&&(d=this.e.getSmilesExt().getSmilesMatches(I,n,null,null,16|(u?2:1),!s,!w));if(x)return e.addXInt(!w&&0<M?1:M)}break;case 10:w=b.value;if(g.equalsIgnoreCase("spacegroup"))return e.addXObj(this.vwr.findSpaceGroup(w,null,!1));if(g.equalsIgnoreCase("crystalClass"))return x=w.nextSetBit(0),w=null,2!=a.length&&(w=new JU.BS,w.set(x)),e.addXList(this.vwr.ms.generateCrystalClass(x,
null!=w?this.vwr.ms.getAtomSetCenter(w):10==m.tok?this.vwr.ms.getAtomSetCenter(m.value):JS.SV.ptValue(m)));if(B&&0!=l.length)return e.addXBs(JU.JmolMolecule.getBitSetForMF(this.vwr.ms.at,w,l));if(B||z)return e.addXStr(JU.JmolMolecule.getMolecularFormulaAtoms(this.vwr.ms.at,w,B?null:this.vwr.ms.getCellWeights(w),r));if(j||t){var Y=m.asString().equalsIgnoreCase("H"),F=(new Boolean(F|Y)).valueOf();return e.addXStr(this.vwr.getSmilesOpt(w,-1,-1,(F?7340032|(Y?9437184:0):0)|(t?34603008:1048576),null))}if(v){var G=
null,M=Q=x=null,N=3==a.length?JS.SV.sValue(m):null,R=null==N||N.equals("%i")||N.equals("number")?"i":N.equals("%a")||N.equals("name")?"a":N.equals("%D")||N.equals("index")?"D":"?";null==N&&(N="number");m=null;l=l.$replace("map","").trim();g=this.vwr.getSmilesOpt(w,0,0,0,l);if(w.cardinality()!=I.cardinality())m="atom sets are not the same size";else try{0<l.length&&(g="/"+l+"/"+g);var x=this.vwr.getSmilesMatcher().getCorrelationMaps(g,this.vwr.ms.at,this.vwr.ms.ac,w,137)[0],X=this.vwr.getSmilesMatcher().getCorrelationMaps(g,
this.vwr.ms.at,this.vwr.ms.ac,I,137);if(0<X.length){G=P(w.length(),0);for(s=G.length;0<=--s;)G[s]=-1;Q=X[0];for(s=x.length;0<=--s;)G[x[s]]=Q[s];var M=C(x.length,2,null),aa=JU.BS.copy(w);aa.or(I);var S="?"==R?Array(aa.length()):null;null!=S&&(S=this.e.getCmdExt().getBitsetIdentFull(aa,N,null,!1,2147483647,!1,S));for(var H=this.vwr.ms.at,X=0,s=w.nextSetBit(0);0<=s;s=w.nextSetBit(s+1)){var Z=G[s];if(-1!=Z){var $;switch(R){case "a":$=C(-1,[H[s].getAtomName(),H[Z].getAtomName()]);break;case "i":$=C(-1,
[Integer.$valueOf(H[s].getAtomNumber()),Integer.$valueOf(H[Z].getAtomNumber())]);break;case "D":$=C(-1,[Integer.$valueOf(s),Integer.$valueOf(Z)]);break;default:$=C(-1,[S[s],S[Z]])}M[X++]=$}}}}catch(ba){if(L(ba,Exception))m=ba.getMessage();else throw ba;}var T=new java.util.HashMap;T.put("BS1",w);T.put("BS2",I);T.put("SMILES",g);null==m?(T.put("SMILEStoBS1",x),T.put("SMILEStoBS2",Q),T.put("BS1toBS2",G),T.put("MAP1to2",M),T.put("key",N)):T.put("error",m);return e.addXMap(T)}if(p||u)g=1<a.length&&10==
a[1].tok?this.vwr.getSmilesOpt(a[1].value,0,0,0,l):l;l=l.toUpperCase();if(U)G=this.vwr.getSmilesMatcher().getCorrelationMaps(g,this.vwr.ms.at,this.vwr.ms.ac,w,(p?1:2)|8),d=0<G.length?this.vwr.ms.getDihedralMap(G[0]):P(0,0);else if(l.equalsIgnoreCase("map"))d=G=this.vwr.getSmilesMatcher().getCorrelationMaps(g,this.vwr.ms.at,this.vwr.ms.ac,w,(p?1:2)|144);else{var fa=(p?0<=l.indexOf("OPEN")?5:1:2)|(r&&0==g.length?22020096:0);if(0<=l.indexOf("/MOLECULE/")){for(var ca=this.vwr.ms.getMolecules(),ga=new JU.Lst,
s=0;s<ca.length;s++)if(ca[s].atomList.intersects(w)){var ha=this.e.getSmilesExt().getSmilesMatches(g,null,ca[s].atomList,I,fa,!r,!1);ha.isEmpty()||ga.addLast(ha)}d=ga}else d=this.e.getSmilesExt().getSmilesMatches(g,null,w,I,fa,!r,!1)}}null==d&&this.e.invArg();return e.addXObj(d)}}catch(da){if(L(da,Exception))this.e.evalError(da.getMessage(),null);else throw da;}w=new JU.BS;G=c?b.getList():null;if(c&&4!=h&&0!=h){b=a[0];s=0;for(x=G.size();s<x;s++)JS.SV.areEqual(G.get(s),b)&&w.set(s);d=P(w.cardinality(),
0);X=0;for(s=w.nextSetBit(0);0<=s;s=w.nextSetBit(s+1))d[X++]=s+1;return e.addXAI(d)}h=0<=l.indexOf("v");s=0<=l.indexOf("i")||k;k=0<=l.indexOf("m");l=0==g.length;q=!l&&!q&&2==a.length;if(c||q){j=q?this.getPatternMatcher():null;I=null;if(q)try{I=j.compile(g,s)}catch(ea){if(L(ea,Exception))this.e.evalError(ea.toString(),null);else throw ea;}j=l?null:JS.SV.strListValue(b);N=l?G.size():j.length;JU.Logger.debugging&&JU.Logger.debug("finding "+g);x=0;R=null;b=k?new JU.Lst:null;S="";for(s=0;s<N;s++){if(l)switch(H=
G.get(s),H.tok){case 6:H=H.getMap().isEmpty()!=f;break;case 7:H=0==H.getList().size()!=f;break;case 4:H=0==H.asString().length!=f;break;default:H=!0}else q?(S=j[s],R=I.matcher(S),H=R.find()):H=0<=JS.SV.sValue(G.get(s)).indexOf(g);if(k&&H||!k&&H==!h)x++,w.set(s),k&&b.addLast(h?S.substring(0,R.start())+S.substring(R.end()):R.group())}if(!c)return k?e.addXStr(1==b.size()?b.get(0):""):h?e.addXBool(1==x):k?e.addXStr(0==x?"":R.group()):e.addXInt(0==x?0:R.start()+1);if(k){c=Array(x);if(0<x)for(s=j.length;0<=
--s;)w.get(s)&&(--x,c[x]=k?b.get(x):j[s]);return e.addXAS(c)}c=new JU.Lst;for(s=w.nextSetBit(0);0<=s;s=w.nextSetBit(s+1))c.addLast(G.get(s));return e.addXList(c)}return j?e.addXStr(this.vwr.getJBR().toStdAmino3(JS.SV.sValue(b))):e.addXInt(JS.SV.sValue(b).indexOf(g)+1)},"JS.ScriptMathProcessor,~A");p(c$,"evaluateGetProperty",function(e,a,b,c){var d=a.length,f=c&&1275082245==b,h=c&&1275068725==b,g=1275068446==b,k=0,j=0==d?0:a[0].tok;if(2==d&&(7==j||6==j||14==j))return e.addXObj(this.vwr.extractProperty(a[0].value,
a[1].value.toString(),-1));var m=c&&1==d&&10==a[0].tok?a[0].value:null,r=null==m&&0<d?JS.SV.sValue(a[k++]):"",j=r,l=j.toLowerCase();!f&&0>l.indexOf("[select ")&&(j=l);var t=!1;j.equals("json")&&d>k&&(t=!0,j=JS.SV.sValue(a[k++]));var q=null;if(c){q=e.getX();switch(q.tok){case 10:break;case 4:var n=q.value,d=Array(3);n.startsWith("$")?(n=n.substring(1),a=this.vwr.shm.getShapeIdFromObjectName(n),0<=a&&(d[0]=n,this.vwr.shm.getShapePropertyData(a,"index",d),null!=d[1]&&!r.equals("index")&&(n=d[1].intValue(),
d[1]=this.vwr.shm.getShapePropertyIndex(a,r.intern(),n)))):(a=JV.JC.shapeTokenIndex(JS.T.getTokFromName(n)),0<=a&&(d[0]=r,d[1]=Integer.$valueOf(-1),this.vwr.shm.getShapePropertyData(a,r.intern(),d)));return null==d[1]?e.addXStr(""):e.addXObj(d[1]);case 7:if(h){g=q.getList();if(0==d)return e.addXObj(this.getMinMax(g,1275068725,!0));c=new java.util.Hashtable;j=1<d?JS.SV.sValue(a[d-1]):null;null!=j&&d--;l=Array(d);for(n=0;n<d;n++)l[n]=JS.SV.sValue(a[n]);n=0;for(t=g.size();n<t;n++)if(k=g.get(n),6==k.tok){r=
k.getMap();a="";for(q=0;q<d;q++)m=r.get(l[q]),a+=(0==q?"":j)+JS.SV.sValue(m);r=c.get(a);null==r&&c.put(a,r=JS.SV.newV(7,new JU.Lst));r.getList().addLast(k)}return e.addXMap(c)}if(null!=m){d=q.getList();a=new JU.Lst;for(n=m.nextSetBit(0);0<=n;n=m.nextSetBit(n+1))a.addLast(d.get(n));return e.addXList(a)}default:if(1275068725==b&&6==q.tok){c=new java.util.Hashtable;for(d=q.getMap().entrySet().iterator();d.hasNext()&&((n=d.next())||1);)a=n.getKey(),k=n.getValue().asString(),g=c.get(k),null==g&&c.put(k,
g=new JU.Lst),g.addLast(a);if("count".equals(l))for(d=c.entrySet().iterator();d.hasNext()&&((n=d.next())||1);)n.setValue(Integer.$valueOf(n.getValue().size()));return e.addXMap(c)}f&&(j="[SELECT "+j+"]");return e.addXObj(this.vwr.extractProperty(q,j,-1))}!l.startsWith("bondinfo")&&(!l.startsWith("atominfo")&&!l.startsWith("modelkitinfo"))&&(j="atomInfo."+j)}n="";if(j.equalsIgnoreCase("fileContents")&&2<=d){k=JS.SV.sValue(a[1]);for(n=2;n<d;n++)k+="|"+JS.SV.sValue(a[n]);n=k;k=d}else if(d>k)switch(a[k].tok){case 10:n=
a[k++].value;j.equalsIgnoreCase("bondInfo")&&(d>k&&10==a[k].tok)&&(n=C(-1,[n,a[k].value]));break;case 6:case 4:this.vwr.checkPropertyParameter(j)&&(n=a[k++].value)}if(c&&(n=q.value,0>n.nextSetBit(0)))return e.addXStr("");g&&!c&&(j="auxiliaryInfo.models."+j);j=JU.PT.rep(j,".[","[");n=this.vwr.getProperty(null,j,n);k<d&&(n=this.vwr.extractProperty(n,a,k));return e.addXObj(t?JS.SV.safeJSON("value",n):JS.SV.isVariableType(n)?n:JU.Escape.toReadable(j,n))},"JS.ScriptMathProcessor,~A,~N,~B");p(c$,"evaluateFormat",
function(e,a,b,c){var d=2>b.length||1287653388==a?e.getX():null,f=0==b.length?"%U":7==b[0].tok?null:JS.SV.sValue(b[0]);if(!c&&0<b.length&&null!=d&&10!=d.tok&&null!=f){if(2==b.length){var d=d.getList(),h=b[1].getList();if(null==d||null==h)return!1;d=JS.SV.getVariableList(this.getSublist(d,h))}b=C(-1,[b[0],d]);d=null}if(null==d){a=c?-1:JS.SV.getFormatType(f);if(0<=a&&2!=b.length)return!1;if(0<=a||2>b.length||7!=b[1].tok)return b=JS.SV.format(b,a),f.equalsIgnoreCase("json")?e.addXStr(b):e.addXObj(b);
f=b[1].getList();b=C(-1,[b[0],null]);c=Array(f.size());for(d=c.length;0<=--d;)b[1]=f.get(d),c[d]=JS.SV.format(b,a).toString();return e.addXAS(c)}if(7==d.tok&&null==f)return d=d.getList(),h=b[0].getList(),f=this.getSublist(d,h),e.addXList(f);b=10==d.tok?d.value:null;a=JS.T.tokAttr(a,480);return e.addXObj(null==f?"":null==b?JS.SV.sprintf(JU.PT.formatCheck(f),d):this.e.getCmdExt().getBitsetIdent(b,f,d.value,!0,d.index,a))},"JS.ScriptMathProcessor,~N,~A,~B");p(c$,"getSublist",function(e,a){for(var b=
new JU.Lst,c,d,f,h=0,g=e.size();h<g;h++)switch(d=e.get(h),d.tok){case 6:c=d.getMap();f=new JU.Lst;for(var k=0,j=a.size();k<j;k++)d=c.get(JS.SV.sValue(a.get(k))),f.addLast(null==d?JS.SV.newS(""):d);b.addLast(JS.SV.getVariableList(f));break;case 7:c=new java.util.Hashtable;f=d.getList();k=0;for(j=Math.min(f.size(),a.size());k<j;k++)c.put(JS.SV.sValue(a.get(k)),f.get(k));b.addLast(JS.SV.getVariable(c))}return b},"JU.Lst,JU.Lst");p(c$,"evaluateList",function(e,a,b){var c=b.length,d=e.getX(),f=7==d.tok,
h;switch(a){case 1275335685:return 2==c&&e.addX(d.pushPop(b[0],b[1]))||1==c&&e.addX(d.pushPop(null,b[0]));case 1275334681:return 1==c&&e.addX(d.pushPop(b[0],null))||0==c&&e.addX(d.pushPop(null,null));case 1275069441:if(1!=c&&2!=c)return!1;break;case 1275069447:case 1275069446:break;default:if(1!=c)return!1}var g=null,k=null,j=null;if(2==c){var m=JS.SV.sValue(b[0]);h=b[1];if(1275069441==a){g=f?JS.SV.strListValue(d):JU.PT.split(JS.SV.sValue(d),"\n");k=7==h.tok?JS.SV.strListValue(h):JU.PT.split(JS.SV.sValue(h),
"\n");j=Array(c=Math.max(g.length,k.length));for(d=0;d<c;d++)j[d]=(d>=g.length?"":g[d])+m+(d>=k.length?"":k[d]);return e.addXAS(j)}if(1073742335!=h.tok)return!1;j=d.getList();(c=0==m.length)&&(m=",");if(1275069446==a){k=Array(j.size());for(d=j.size();0<=--d;)if(b=j.get(d).getList(),null==b)k[d]=j.get(d);else{a=new JU.SB;f=0;for(g=b.size();f<g;f++)0<f&&a.append(m),h=b.get(f),a.append(c&&4==h.tok?'"'+JU.PT.rep(h.value,'"','""')+'"':""+h.asString());k[d]=JS.SV.newS(a.toString())}return e.addXAV(k)}a=
new JU.Lst;c&&(m="\x00");k=P(2,0);d=0;for(h=j.size();d<h;d++){f=j.get(d).asString();if(c){k[1]=0;for(g=k[0]=0;;){b=JU.PT.getCSVString(f,k);if(null==b){if(-1==k[1]){f+=++d<h?"\n"+j.get(d).asString():'"';k[1]=g;continue}f=f.substring(0,g)+f.substring(g).$replace(",","\x00");break}f=f.substring(0,g)+f.substring(g,k[0]).$replace(",","\x00")+b+f.substring(k[1]);k[1]=g=k[0]+b.length}}for(var r=f.$plit(m),l=new JU.Lst,f=0,g=r.length;f<g;f++){b=r[f];if(0>b.indexOf("."))try{l.addLast(JS.SV.newI(Integer.parseInt(b)));
continue}catch(t){if(!L(t,Exception))throw t;}else try{l.addLast(JS.SV.getVariable(Float.$valueOf(Float.parseFloat(b))));continue}catch(q){if(!L(q,Exception))throw q;}l.addLast(JS.SV.newS(b))}a.addLast(JS.SV.getVariableList(l))}return e.addXObj(JS.SV.getVariableList(a))}h=0==c?JS.SV.newV(1073742327,"all"):b[0];j=1073742327==h.tok;if(!f&&4!=d.tok)return e.binaryOp(this.opTokenFor(a),d,h);var r=JS.SV.isScalar(d),n=JS.SV.isScalar(h),p=l=null,m=d.getList(),u=h.getList();f?c=m.size():r?c=2147483647:(g=
JU.PT.split(JS.SV.sValue(d),"\n"),l=B(c=g.length,0),JU.PT.parseFloatArrayData(g,l));if(j&&1275069446!=a){j=0;if(f)for(d=c;0<=--d;)j+=JS.SV.fValue(m.get(d));else if(!r)for(d=c;0<=--d;)j+=l[d];return e.addXFloat(j)}if(1275069446==a&&4==h.tok){a=new JU.SB;if(r)a.append(JS.SV.sValue(d));else{b=j?"":h.value.toString();for(d=0;d<c;d++)a.append(0<d?b:"").append(JS.SV.sValue(m.get(d)))}return e.addXStr(a.toString())}var y=null;n?y=h:7==h.tok?c=Math.min(c,u.size()):(k=JU.PT.split(JS.SV.sValue(h),"\n"),p=B(k.length,
0),JU.PT.parseFloatArrayData(k,p),c=Math.min(c,p.length));var C=this.opTokenFor(a);if(f&&j)return j=new JU.Lst,e.addXList(this.addAllLists(d.getList(),j));b=r?d:null;var z,A=2147483647==c;A&&(c=1);for(var D=Array(c),d=0;d<c;d++){z=n?y:7==h.tok?u.get(d):Float.isNaN(p[d])?JS.SV.getVariable(JS.SV.unescapePointOrBitsetAsVariable(k[d])):JS.SV.newF(p[d]);r||(b=f?m.get(d):Float.isNaN(l[d])?JS.SV.getVariable(JS.SV.unescapePointOrBitsetAsVariable(g[d])):JS.SV.newF(l[d]));1275069446==a&&7!=b.tok&&(j=new JU.Lst,
j.addLast(b),b=JS.SV.getVariableList(j));if(!e.binaryOp(C,b,z))return!1;D[d]=e.getX()}return A?e.addXObj(D[0]):e.addXAV(D)},"JS.ScriptMathProcessor,~N,~A");p(c$,"addAllLists",function(e,a){for(var b=e.size(),c=0;c<b;c++){var d=e.get(c);7==d.tok?this.addAllLists(d.getList(),a):a.addLast(d)}return a},"JU.Lst,JU.Lst");p(c$,"evaluateLoad",function(e,a,b){if(1>a.length||3<a.length)return!1;var c=JV.FileManager.fixDOSName(JS.SV.sValue(a[0])),d=1<a.length&&1073742335==a[1].tok,f=this.vwr.async||2<a.length&&
1073742335==a[a.length-1].tok,h=1<a.length&&2==a[1].tok?a[1].asInt():-1;a=1<a.length&&a[1].asString().equalsIgnoreCase("JSON");if(d)return e.addXMap(this.vwr.fm.getFileAsMap(c,null));d=c.startsWith("?");if(JV.Viewer.isJS&&(d||f)){if(b&&d)return e.addXStr("");c=this.e.loadFileAsync("load()_",c,e.oPt,!0)}b=b?this.vwr.fm.getFilePath(c,!1,!1):this.vwr.getFileAsString4(c,h,!1,!1,!0,"script");try{return a?e.addXObj(this.vwr.parseJSON(b)):e.addXStr(b)}catch(g){if(L(g,Exception))return!1;throw g;}},"JS.ScriptMathProcessor,~A,~B");
p(c$,"evaluateMath",function(e,a,b){a=JS.SV.fValue(a[0]);switch(b){case 134218246:a=Math.sqrt(a);break;case 134218244:a=Math.sin(3.141592653589793*a/180);break;case 134218245:a=Math.cos(3.141592653589793*a/180);break;case 134218242:a=180*Math.acos(a)/3.141592653589793}return e.addXFloat(a)},"JS.ScriptMathProcessor,~A,~N");p(c$,"evaluateMeasure",function(e,a,b){var c=0;switch(b){case 1745489939:b=null;for(var d=new JU.Lst,f=B(-1,[3.4028235E38,3.4028235E38]),h=null,g=null,k=!1,j=!1,m=0,r=!1,l=null,
p=0,q=3.4028235E38,n=!1,y=!1,l=0;l<a.length;l++)switch(a[l].tok){case 10:var u=a[l].value;0==u.length()&&(r=!0);d.addLast(u);c++;p++;break;case 8:u=new JU.Point3fi;u.setT(a[l].value);d.addLast(u);c++;break;case 2:case 3:f[m++%2]=JS.SV.fValue(a[l]);break;case 4:u=JS.SV.sValue(a[l]);if(u.startsWith("property_")){b=u;break}u.equalsIgnoreCase("vdw")||u.equalsIgnoreCase("vanderwaals")?q=(l+1<a.length&&2==a[l+1].tok?a[++l].asInt():100)/100:u.equalsIgnoreCase("notConnected")?j=!0:u.equalsIgnoreCase("connected")?
k=!0:u.equalsIgnoreCase("minArray")?n=1<=p:u.equalsIgnoreCase("asArray")||0==u.length?y=1<=p:JM.Measurement.isUnits(u)?g=u.toLowerCase():h=c+":"+u;break;default:return!1}if(2>c||4<c||2<m||j&&k)return!1;if(r||3.4028235E38!=q&&(2!=p||2!=c))return e.addXStr("");l=3.4028235E38==q?new J.atomdata.RadiusData(f,0,null,null):new J.atomdata.RadiusData(null,q,J.atomdata.RadiusData.EnumType.FACTOR,J.c.VDW.AUTO);a=this.vwr.newMeasurementData(null,d).set(0,null,l,b,h,g,null,k,j,null,!0,0,0,null,NaN).getMeasurements(y,
n);return e.addXObj(a);case 134217729:if(3!=(c=a.length)&&4!=c)return!1;break;default:if(2!=(c=a.length))return!1}b=Array(c);for(l=0;l<c;l++)if(null==(b[l]=e.ptValue(a[l],null)))return!1;switch(c){case 2:return e.addXFloat(b[0].distance(b[1]));case 3:return e.addXFloat(JU.Measure.computeAngleABC(b[0],b[1],b[2],!0));case 4:return e.addXFloat(JU.Measure.computeTorsion(b[0],b[1],b[2],b[3],!0))}return!1},"JS.ScriptMathProcessor,~A,~N");p(c$,"evaluateModulation",function(e,a){var b="",c=NaN,d=null;switch(a.length){case 0:break;
case 1:switch(a[0].tok){case 8:d=a[0].value;break;case 4:b=a[0].asString();break;default:c=JS.SV.fValue(a[0])}break;case 2:b=JS.SV.sValue(a[0]);c=JS.SV.fValue(a[1]);break;default:return!1}null==d&&1E6>c&&(d=JU.P3.new3(c,c,c));c=e.getX();c=10==c.tok?c.value:new JU.BS;return e.addXList(this.vwr.ms.getModulationList(c,(b+"D").toUpperCase().charAt(0),d))},"JS.ScriptMathProcessor,~A");p(c$,"evaluatePlane",function(e,a,b){if(134219265==b&&3!=a.length||134217763==b&&2!=a.length&&3!=a.length&&4!=a.length||
0==a.length||4<a.length)return!1;var c,d,f=this.e.planeValue(a[0]),h,g;switch(a.length){case 1:return 10==a[0].tok&&(a=a[0].value,3==a.cardinality())?(a=this.vwr.ms.getAtomPointVector(a),e.addXPt4(JU.Measure.getPlaneThroughPoints(a.get(0),a.get(1),a.get(2),new JU.V3,new JU.V3,new JU.P4))):null!=f&&e.addXPt4(f);case 2:if(134217763==b){c=this.e.planeValue(a[1]);if(null==c)return!1;b=new JU.P3;h=new JU.V3;g=new JU.V3;if(null!=f)return a=JU.Measure.getIntersectionPP(f,c),null==a?e.addXStr(""):e.addXList(a);
d=e.ptValue(a[0],null);return null==d?e.addXStr(""):e.addXPt(JU.Measure.getIntersection(d,null,c,b,h,g))}case 3:case 4:switch(b){case 134219265:return e.addXPt4(this.e.getHklPlane(JU.P3.new3(JS.SV.fValue(a[0]),JS.SV.fValue(a[1]),JS.SV.fValue(a[2])),NaN,null));case 134217763:c=e.ptValue(a[0],null);d=e.ptValue(a[1],null);if(null==c||null==d)return e.addXStr("");d=JU.V3.newV(d);d.normalize();f=this.e.planeValue(a[2]);if(null!=f)return b=new JU.P3,h=new JU.V3,g=new JU.V3,c=JU.Measure.getIntersection(c,
d,f,b,h,g),null==c?e.addXStr(""):e.addXPt(c);b=e.ptValue(a[2],null);if(null==b)return e.addXStr("");h=new JU.V3;b=JU.P3.newP(b);if(3==a.length)return JU.Measure.projectOntoAxis(b,c,d,h),e.addXPt(b);f=JS.SV.fValue(a[3]);a=JU.P3.newP(b);JU.Measure.projectOntoAxis(b,c,d,h);a=a.distance(b);c=new JU.Lst;a==f?c.addLast(b):a<f&&(a=Math.sqrt(f*f-a*a),h.scaleAdd2(a,d,b),c.addLast(JU.P3.newP(h)),h.scaleAdd2(-a,d,b),c.addLast(JU.P3.newP(h)));return e.addXList(c)}switch(a[0].tok){case 2:case 3:if(3==a.length)return f=
JS.SV.fValue(a[0]),b=JS.SV.fValue(a[1]),a=JS.SV.fValue(a[2]),h=JU.V3.new3(0,0,1),d=JU.P3.new3(0,1,0),a=JU.Quat.newVA(d,a),a.getMatrix().rotate(h),d.set(0,0,1),a=JU.Quat.newVA(d,b),a.getMatrix().rotate(h),d.setT(h),d.scale(f),f=new JU.P4,JU.Measure.getPlaneThroughPoint(d,h,f),e.addXPt4(f);break;case 10:case 8:c=e.ptValue(a[0],null);d=e.ptValue(a[1],null);if(null==d)return!1;b=2<a.length&&(10==a[2].tok||8==a[2].tok)?e.ptValue(a[2],null):null;h=JU.V3.newV(d);if(null==b)return f=new JU.P4,2==a.length||
2!=a[2].tok&&3!=a[2].tok&&!a[2].asBoolean()?(b=JU.P3.newP(c),b.add(d),b.scale(0.5),h.sub(c),h.normalize()):1073742335==a[2].tok?b=c:(h.sub(c),b=new JU.P3,b.scaleAdd2(a[2].asFloat(),h,c)),JU.Measure.getPlaneThroughPoint(b,h,f),e.addXPt4(f);f=new JU.V3;a=4==a.length?e.ptValue(a[3],null):null;a=JU.Measure.getDirectedNormalThroughPoints(c,d,b,a,h,f);return e.addXPt4(JU.P4.new4(h.x,h.y,h.z,a))}}if(4!=a.length)return!1;b=JS.SV.fValue(a[0]);h=JS.SV.fValue(a[1]);c=JS.SV.fValue(a[2]);a=JS.SV.fValue(a[3]);
return e.addXPt4(JU.P4.new4(b,h,c,a))},"JS.ScriptMathProcessor,~A,~N");p(c$,"evaluatePoint",function(e,a){switch(a.length){default:return!1;case 1:if(3==a[0].tok||2==a[0].tok)return e.addXInt(a[0].asInt());var b=null;if(7==a[0].tok){var c=a[0].getList(),d=c.size();if(0==d)return!1;switch(c.get(0).tok){case 4:b=c.get(0).value;if(!b.startsWith("{")||y(JU.Escape.uP(b),String))break;for(var b=new JU.Lst,f=0;f<d;f++)b.addLast(JS.SV.getVariable(JU.Escape.uP(JS.SV.sValue(c.get(f)))));return e.addXList(b)}b=
"{"+JS.SV.sValue(a[0])+"}"}null==b&&(b=JS.SV.sValue(a[0]));c=JU.Escape.uP(b);return y(c,JU.P3)?e.addXPt(c):e.addXStr(""+c);case 2:switch(a[1].tok){case 1073742334:case 1073742335:switch(a[0].tok){case 8:c=JU.P3.newP(a[0].value);break;case 10:c=this.vwr.ms.getAtomSetCenter(a[0].value);break;default:return!1}1073742335==a[1].tok?(this.vwr.tm.transformPt3f(c,c),c.y=this.vwr.tm.height-c.y,this.vwr.antialiased&&c.scale(0.5)):(this.vwr.antialiased&&c.scale(2),c.y=this.vwr.tm.height-c.y,this.vwr.tm.unTransformPoint(c,
c));break;case 8:d=a[0].getList();if(null==d||4!=d.size())return!1;b=JS.SV.ptValue(a[1]);c=JU.P3.newP(JS.SV.ptValue(d.get(0)));c.scaleAdd2(b.x,JS.SV.ptValue(d.get(1)),c);c.scaleAdd2(b.y,JS.SV.ptValue(d.get(2)),c);c.scaleAdd2(b.z,JS.SV.ptValue(d.get(3)),c);break;default:return!1}return e.addXPt(c);case 3:return e.addXPt(JU.P3.new3(a[0].asFloat(),a[1].asFloat(),a[2].asFloat()));case 4:return e.addXPt4(JU.P4.new4(a[0].asFloat(),a[1].asFloat(),a[2].asFloat(),a[3].asFloat()))}},"JS.ScriptMathProcessor,~A");
p(c$,"evaluatePrompt",function(e,a){if(1!=a.length&&2!=a.length&&3!=a.length)return!1;var b=JS.SV.sValue(a[0]),c=1<a.length&&7==a[1].tok?JS.SV.strListValue(a[1]):null,d=null!=c||1==a.length||3==a.length&&a[2].asBoolean(),f=null!=c?null:2<=a.length?JS.SV.sValue(a[1]):"OK",b=""+this.vwr.prompt(b,f,c,d);return d&&null!=c?e.addXInt(Integer.parseInt(b)+1):e.addXStr(b)},"JS.ScriptMathProcessor,~A");p(c$,"evaluateQuaternion",function(e,a,b){var c=null,d=a.length,f=2147483647,h=!1;134221850==b&&(1<d&&(4==
a[d-1].tok&&a[d-1].value.equalsIgnoreCase("relative"))&&(d--,h=!0),1<d&&(2==a[d-1].tok&&10==a[0].tok)&&(f=a[d-1].asInt(),0>=f&&(f=2147483646),d--));switch(d){case 0:case 1:case 4:break;case 2:if(134221850==b){if(7==a[0].tok&&(7==a[1].tok||1073742335==a[1].tok))break;if(10==a[0].tok&&(2==a[1].tok||10==a[1].tok))break}if(null==(c=e.ptValue(a[0],null))||134221850!=b&&8==a[1].tok)return!1;break;case 3:if(134221850!=b)return!1;if(9==a[0].tok){if(8!=a[2].tok&&10!=a[2].tok)return!1;break}for(var g=0;3>g;g++)if(8!=
a[g].tok&&10!=a[g].tok)return!1;break;default:return!1}var k=g=null,j=null;switch(d){case 0:return e.addXPt4(this.vwr.tm.getRotationQ().toPoint4f());default:if(134221850==b&&7==a[0].tok){b=this.e.getQuaternionArray(a[0].getList(),1073742001);a=JU.Quat.sphereMean(b,null,1E-4);g=y(a,JU.Quat)?a:null;break}else if(134221850==b&&10==a[0].tok)k=this.vwr.getAtomGroupQuaternions(a[0].value,f);else if(11==a[0].tok)g=JU.Quat.newM(a[0].value);else if(9==a[0].tok)j=a[0].value;else if(j=JS.SV.sValue(a[0]),j=JU.Escape.uP(j.equalsIgnoreCase("best")?
this.vwr.getOrientation(1073741864,"best",null).toString():j),!y(j,JU.P4))return!1;134217731==b&&(g=JU.Quat.newVA(JU.P3.new3(j.x,j.y,j.z),j.w));break;case 2:if(134221850==b){if(7==a[0].tok&&7==a[1].tok){b=this.e.getQuaternionArray(a[0].getList(),1073742001);k=this.e.getQuaternionArray(a[1].getList(),1073742001);k=JU.Quat.div(k,b,f,h);break}if(7==a[0].tok&&1073742335==a[1].tok)return b=this.e.getQuaternionArray(a[0].getList(),1073742001),f=B(1,0),JU.Quat.sphereMean(b,f,1E-4),e.addXFloat(f[0]);if(10==
a[0].tok&&10==a[1].tok){b=this.vwr.getAtomGroupQuaternions(a[0].value,2147483647);k=this.vwr.getAtomGroupQuaternions(a[1].value,2147483647);k=JU.Quat.div(k,b,f,h);break}}g=e.ptValue(a[1],null);j=this.e.planeValue(a[0]);g=null!=g?JU.Quat.getQuaternionFrame(JU.P3.new3(0,0,0),c,g):JU.Quat.newVA(c,JS.SV.fValue(a[1]));break;case 3:if(9==a[0].tok)return f=8==a[2].tok?a[2].value:this.vwr.ms.getAtomSetCenter(a[2].value),e.addXStr(JU.Escape.drawQuat(JU.Quat.newP4(a[0].value),"q",JS.SV.sValue(a[1]),f,1));b=
Array(3);for(g=0;3>g;g++)b[g]=8==a[g].tok?a[g].value:this.vwr.ms.getAtomSetCenter(a[g].value);g=JU.Quat.getQuaternionFrame(b[0],b[1],b[2]);break;case 4:134221850==b?j=JU.P4.new4(JS.SV.fValue(a[1]),JS.SV.fValue(a[2]),JS.SV.fValue(a[3]),JS.SV.fValue(a[0])):g=JU.Quat.newVA(JU.P3.new3(JS.SV.fValue(a[0]),JS.SV.fValue(a[1]),JS.SV.fValue(a[2])),JS.SV.fValue(a[3]))}if(null!=k){if(2147483647!=f){f=new JU.Lst;for(g=0;g<k.length;g++)f.addLast(k[g].toPoint4f());return e.addXList(f)}g=0<k.length?k[0]:null}return e.addXPt4((null==
g?JU.Quat.newP4(j):g).toPoint4f())},"JS.ScriptMathProcessor,~A,~N");p(c$,"evaluateRandom",function(e,a){if(3<a.length)return!1;null==this.rand&&(this.rand=new java.util.Random);var b=0,c=1;switch(a.length){case 3:this.rand.setSeed(Y(JS.SV.fValue(a[2])));case 2:c=JS.SV.fValue(a[1]);case 1:b=JS.SV.fValue(a[0]);case 0:break;default:return!1}return e.addXFloat(this.rand.nextFloat()*(c-b)+b)},"JS.ScriptMathProcessor,~A");p(c$,"evaluateRowCol",function(e,a,b){if(1!=a.length)return!1;a=a[0].asInt()-1;var c=
e.getX();switch(c.tok){case 11:if(0>a||2<a)break;c=c.value;switch(b){case 1275068935:return b=B(3,0),c.getRow(a,b),e.addXAF(b);default:return b=B(3,0),c.getColumn(a,b),e.addXAF(b)}case 12:if(0>a||2<a)break;c=c.value;switch(b){case 1275068935:return b=B(4,0),c.getRow(a,b),e.addXAF(b);default:return b=B(4,0),c.getColumn(a,b),e.addXAF(b)}case 7:b=c.getList();for(var c=new JU.Lst,d=0,f=b.size();d<f;d++){var h=b.get(d).getList();if(null==h)return e.addXStr("");c.addLast(a<h.size()?h.get(a):JS.SV.newS(""))}return e.addXList(c)}return!1},
"JS.ScriptMathProcessor,~A,~N");p(c$,"evaluateIn",function(e,a){var b=e.getX();switch(a.length){case 1:var c=a[0].getList();if(null!=c)for(var d=0,f=c.size();d<f;d++)if(JS.SV.areEqual(b,c.get(d)))return e.addXInt(d+1);break;default:for(d=0;d<a.length;d++)if(JS.SV.areEqual(b,a[d]))return e.addXInt(d+1)}return e.addXInt(0)},"JS.ScriptMathProcessor,~A");p(c$,"evaluateReplace",function(e,a){var b=!1,c,d;switch(a.length){case 0:b=!0;c=d=null;break;case 3:b=JS.SV.bValue(a[2]);case 2:c=JS.SV.sValue(a[0]);
d=JS.SV.sValue(a[1]);break;default:return!1}var f=e.getX();if(7==f.tok){for(var f=JS.SV.strListValue(f),h=Array(f.length),g=f.length;0<=--g;)h[g]=null==c?JU.PT.clean(f[g]):b?JU.PT.replaceAllCharacters(f[g],c,d):JU.PT.rep(f[g],c,d);return e.addXAS(h)}f=JS.SV.sValue(f);return e.addXStr(null==c?JU.PT.clean(f):b?JU.PT.replaceAllCharacters(f,c,d):JU.PT.rep(f,c,d))},"JS.ScriptMathProcessor,~A");p(c$,"evaluateScript",function(e,a,b){if((134222350==b||134238732==b)&&1!=a.length||0==a.length)return!1;var c=
JS.SV.sValue(a[0]),d=new JU.SB;switch(b){case 134218759:return 2==a.length?c.equalsIgnoreCase("JSON")&&e.addXObj(this.vwr.parseJSON(JS.SV.sValue(a[1]))):e.addXObj(this.vwr.evaluateExpressionAsVariable(c));case 134222850:a=2==a.length?JS.SV.sValue(a[1]):".";a.equals(".")||d.append(this.vwr.jsEval(a+"\u0001"+c));(a.equals(".")||a.equals("*"))&&this.e.runScriptBuffer(c,d,!0);break;case 134222350:this.e.runScriptBuffer("show "+c,d,!0);break;case 134238732:return e.addX(this.vwr.jsEvalSV(c))}var c=d.toString(),
f;return Float.isNaN(f=JU.PT.parseFloatStrict(c))?e.addXStr(c):0<=c.indexOf(".")?e.addXFloat(f):e.addXInt(JU.PT.parseInt(c))},"JS.ScriptMathProcessor,~A,~N");p(c$,"evaluateSort",function(e,a,b){if(1<a.length)return!1;if(1275068444==b){if(1==a.length&&4==a[0].tok)return e.addX(e.getX().sortMapArray(a[0].asString()));var c=0==a.length?0:a[0].asInt();return e.addX(e.getX().sortOrReverse(c))}b=e.getX();a=0==a.length?null:a[0];if(4==b.tok){var c=0,d=JS.SV.sValue(b);if(null==a)return e.addXInt(0);a=JS.SV.sValue(a);
for(b=0;b<d.length;b++){b=d.indexOf(a,b);if(0>b)break;c++}return e.addXInt(c)}var c=new JU.Lst,f=d=null,h=JS.SV.getVariable(b.value).sortOrReverse(0).getList();if(null==h)return null==a?e.addXStr(""):e.addXInt(0);b=0;for(var g=h.size();b<=g;b++){var k=b==g?null:h.get(b);if(!(null!=a&&null!=k&&!JS.SV.areEqual(k,a)))if(JS.SV.areEqual(k,d))f.intValue++;else{if(null!=d){var j=new JU.Lst;j.addLast(d);j.addLast(f);c.addLast(JS.SV.getVariableList(j))}f=JS.SV.newI(1);d=k}}return null==a?e.addX(JS.SV.getVariableList(c)):
c.isEmpty()?e.addXInt(0):e.addX(c.get(0).getList().get(1))},"JS.ScriptMathProcessor,~A,~N");p(c$,"evaluateString",function(e,a,b){var c=e.getX(),d=0<b.length?JS.SV.sValue(b[0]):1275068932==a?"":"\n";switch(b.length){case 0:break;case 1:if(1073742335==b[0].tok)return e.addX(JS.SV.getVariable(JU.PT.getTokens(c.asString())));break;case 2:if(7==c.tok)break;if(1275069447==a){c=JS.SV.getVariable(JU.PT.split(JU.PT.rep(c.value,"\n\r","\n").$replace("\r","\n"),"\n"));break}default:return!1}if(7==c.tok&&1275068932!=
a&&(1275069447!=a||2==b.length))return e.addX(c),this.evaluateList(e,a,b);b=1275069447==a&&10==c.tok||1275068932==a&&7==c.tok?null:JS.SV.sValue(c);switch(a){case 1275069447:if(10==c.tok){d=c.value;c=this.vwr.ms.mc;b=new JU.Lst;for(a=0;a<c;a++){var f=this.vwr.getModelUndeletedAtomsBitSet(a);f.and(d);b.addLast(JS.SV.getVariable(f))}return e.addXList(b)}return e.addXAS(JU.PT.split(b,d));case 1275069446:return 0<b.length&&"\n"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)),e.addXStr(JU.PT.rep(b,
"\n",d));case 1275068932:if(null!=b)return e.addXStr(JU.PT.trim(b,d));c=JS.SV.strListValue(c);for(a=c.length;0<=--a;)c[a]=JU.PT.trim(c[a],d);return e.addXAS(c)}return e.addXStr("")},"JS.ScriptMathProcessor,~N,~A");p(c$,"evaluateSubstructure",function(e,a,b,c){if(0==a.length||c&&1<a.length)return!1;var d=new JU.BS,f=JS.SV.sValue(a[0]);if(0<f.length)try{var h=c?e.getX().value:2==a.length&&10==a[1].tok?a[1].value:this.vwr.getModelUndeletedAtomsBitSet(-1),d=this.vwr.getSmilesMatcher().getSubstructureSet(f,
this.vwr.ms.at,this.vwr.ms.ac,h,134218757==b?1:2)}catch(g){if(L(g,Exception))this.e.evalError(g.getMessage(),null);else throw g;}return e.addXBs(d)},"JS.ScriptMathProcessor,~A,~N,~B");p(c$,"evaluateSymop",function(e,a,b){var c=b?e.getX():null,d=!1;if(null!=c&&10!=c.tok&&!(d=8==c.tok))return!1;var f=null==c||d?null:c.value,c=d?JS.SV.ptValue(c):null;!d&&null==f&&(f=this.vwr.getThisModelAtoms());if(null!=f&&f.isEmpty())return!1;var h=a.length;if(0==h){for(var c=JU.PT.split(JU.PT.trim(this.vwr.getSymTemp().getSpaceGroupInfo(this.vwr.ms,
null,this.vwr.ms.at[f.nextSetBit(0)].mi,!1,null).get("symmetryInfo"),"\n"),"\n"),d=new JU.Lst,g=0,k=c.length;g<k;g++)d.addLast(JU.PT.split(c[g],"\t"));return e.addXList(d)}var j=null,m=!1,d=-2147483648,r=0,l=null;switch(a[0].tok){case 4:j=JS.SV.sValue(a[0]);r++;break;case 12:j=a[0].escape();r++;break;case 2:d=a[0].asInt(),r++}if((m=null!=j&&j.equalsIgnoreCase("invariant"))&&-2147483648==d)return g=null,null!=c?(g=this.vwr.getCurrentUnitCell(),g=null==g?P(0,0):g.getInvariantSymops(c,null)):null!=f&&
(g=this.vwr.ms.getSymmetryInvariant(f.nextSetBit(0))),null!=g&&e.addXAI(g);null==f&&(r<h&&10==a[r].tok&&(f=new JU.BS).or(a[r].value),r+1<h&&10==a[r+1].tok&&(null==f?f=new JU.BS:f).or(a[r+1].value));var p=null;if(h>r&&7==a[r].tok){m=a[r++].getList();if(3!=m.size())return!1;p=JU.P3.new3(JS.SV.fValue(m.get(0)),JS.SV.fValue(m.get(1)),JS.SV.fValue(m.get(2)))}else h>r&&2==a[r].tok&&JU.SimpleUnitCell.ijkToPoint3f(JS.SV.iValue(a[r++]),p=new JU.P3,0,0);null==c&&null!=(c=h>r?e.ptValue(a[r],f):null)&&r++;null!=
(l=h>r?e.ptValue(a[r],f):null)&&r++;m=null!=l&&a.length>r&&-2147483648==d&&2==a[r].tok?a[r].intValue:-1;0<=m&&r++;-2147483648==d&&(d=0);var q=null;null!=j&&(r==h?q=this.vwr.ms.getPointGroupInfo(null):6==a[r].tok&&(q=a[r].getMap()));if(null!=q){a=j.indexOf(".");b=j.indexOf("^");0<b?m=JU.PT.parseInt(j.substring(b+1)):(b=j.length,m=1);0<a&&b>a+1?(d=JU.PT.parseInt(j.substring(a+1,b)),1>d&&(d=1),b=a):d=1;j=j.substring(0,b);a=q.get(j+"_m");if(null==a)return a=q.get(j),null==a?e.addXStr(""):e.addXObj(a);
var n;try{if(y(a,JS.SV))if(n=q.get("center").value,j=a,11==j.tok)k=j.value;else if(7==j.tok)k=j.getList().get(d-1).value;else return!1;else n=q.get("center"),k=y(a,JU.M3)?a:a.get(d-1);d=k;k=JU.M3.newM3(k);if(1<m)for(g=1;g<m;g++)k.mul(d);if(null==c)return e.addXObj(k);c=JU.P3.newP(c);c.sub(n);k.rotate(c);c.add(n);return e.addXPt(c)}catch(B){if(L(B,Exception))return!1;throw B;}}g=h==r?null!=l?"all":null!=c?"point":"matrix":JS.SV.sValue(a[r++]).toLowerCase();n=(k=null!=f&&!f.isEmpty())?f.nextSetBit(0):
-1;g.equals("invariant")&&b&&(k&&null==c&&(c=this.vwr.ms.at[n]),k=null!=c,0>n&&(n=this.vwr.getThisModelAtoms().nextSetBit(0)));return k&&r==a.length&&e.addXObj(this.vwr.getSymmetryInfo(n,j,d,p,c,l,1275068418,g,0,m,0))},"JS.ScriptMathProcessor,~A,~B");p(c$,"evaluateTensor",function(e,a){var b=2==a.length&&1275068445==a[1].tok,c=b?null:e.getX();if(2<a.length||!b&&10!=c.tok)return!1;var c=c.value,d=b||0==a.length?null:JS.SV.sValue(a[0]).toLowerCase(),f=this.vwr.getNMRCalculation();if("unique".equals(d))return e.addXBs(f.getUniqueTensorSet(c));
var h=2>a.length?null:JS.SV.sValue(a[1]).toLowerCase();return b?e.addXObj(a[0].value.getInfo(h)):e.addXList(f.getTensorInfo(d,h,c))},"JS.ScriptMathProcessor,~A");p(c$,"evaluateUserFunction",function(e,a,b,c,d){var f=null;if(d)switch(f=e.getX(),f.tok){case 10:break;case 6:if(0<b.length)return!1;f=f.getMap().get(a);return null==f?e.addXStr(""):e.addX(f);default:return!1}a=a.toLowerCase();e.wasX=!1;for(var h=new JU.Lst,g=0;g<b.length;g++)h.addLast(b[g]);if(d)return e.addXObj(this.e.getBitsetProperty(f.value,
null,c,null,null,f.value,C(-1,[a,h]),!1,f.index,!1));a=this.e.getUserFunctionResult(a,h,null);return null==a?!1:e.addX(a)},"JS.ScriptMathProcessor,~S,~A,~N,~B");p(c$,"evaluateWithin",function(e,a){var b=a.length;if(1>b||5<b)return!1;if(1==b&&10==a[0].tok)return e.addX(a[0]);var c=0,d=a[0].value,f=""+d,h=this.vwr.ms,g=!1,k=!1,j=!1,m=!1,p=null,l=a[0].tok;switch(4==l?l=JS.T.getTokFromName(f):l){case 1648363544:g=!0,d=null;case 3:case 2:m=!0;if(2>b||3==b&&7==a[1].tok&&7!=a[2].tok)return!1;c=g?100:JS.SV.fValue(a[0]);
switch(l=a[1].tok){case 1073742335:case 1073742334:k=a[1].asBoolean();2<b&&JS.SV.sValue(a[2]).equalsIgnoreCase("unitcell")&&(l=1814695966);b=0;break;case 4:l=JS.SV.sValue(a[1]);if(l.startsWith("$"))return e.addXBs(this.getAtomsNearSurface(c,l.substring(1)));if(l.equalsIgnoreCase("group"))j=!0,l=1086324742;else if(l.equalsIgnoreCase("vanderwaals")||l.equalsIgnoreCase("vdw"))d=null,g=!0,l=1648363544;else if(l.equalsIgnoreCase("unitcell"))l=1814695966;else if(l.equalsIgnoreCase("coord"))l=1073742329;
else return!1}break;case 7:1==b&&(d=a[0].asString(),l=0);break;case 1073742328:return 3==b&&y(a[1].value,JU.BS)&&y(a[2].value,JU.BS)&&e.addXBs(this.vwr.getBranchBitSet(a[2].value.nextSetBit(0),a[1].value.nextSetBit(0),!0));case 134218757:case 1237320707:case 134218756:c=null;d=!0;switch(b){case 2:break;case 3:if(d=10==a[2].tok)c=a[2].value;break;default:d=!1}d||this.e.invArg();return e.addXObj(this.e.getSmilesExt().getSmilesMatches(JS.SV.sValue(a[1]),null,c,null,134218756==l?2:1,e.asBitSet,!1))}if(y(d,
String)){if(0==l){l=1073742362;if(2<b)return!1;b=2}}else if(!m)return!1;switch(b){case 1:switch(l){case 136314895:case 2097184:case 1678381065:case 1814695966:return e.addXBs(h.getAtoms(l,null));case 1073741863:return e.addXBs(h.getAtoms(l,""));case 1073742362:return e.addXBs(h.getAtoms(1086324744,f))}return!1;case 2:switch(l){case 1073742362:l=1086324744;break;case 1073741824:case 1086326786:case 1086326785:case 1073741863:case 1086324744:case 1111490587:case 1073742128:case 1073741925:case 1073742189:return e.addXBs(this.vwr.ms.getAtoms(l,
JS.SV.sValue(a[1])));case 1094713349:case 1094713350:return e.addXBs(this.vwr.ms.getAtoms(l,JS.SV.ptValue(a[1])));case 1814695966:c=a[1].getList();if(null==c)return!1;b=b=null;if(4!=c.size())return!1;b=Array(4);for(f=0;4>f;f++)if(null==(b[f]=JS.SV.ptValue(c.get(f))))return!1;b=this.vwr.getSymTemp().getUnitCell(b,!1,null);return e.addXBs(this.vwr.ms.getAtoms(l,b))}break;case 3:switch(l){case 1073742335:case 1073742334:case 1086324742:case 1648363544:case 1814695966:case 134217750:case 134219265:case 1073742329:case 8:case 7:break;
case 1086324744:f=JS.SV.sValue(a[2]);break;default:return!1}}var t=null,d=b=null,q=a.length-1;switch(a[q].tok){case 9:t=a[q].value;break;case 8:b=a[q].value;JS.SV.sValue(a[1]).equalsIgnoreCase("hkl")&&(t=this.e.getHklPlane(b,NaN,null));break;case 7:d=2==q&&7==a[1].tok?a[1].getList():null,b=2==q?JS.SV.ptValue(a[1]):1==q?JU.P3.new3(NaN,0,0):null}if(null!=t)return e.addXBs(h.getAtomsNearPlane(c,t));h=10==a[q].tok?a[q].value:null;if(0<q&&null==b&&null==d&&null==h)return!1;if(1814695966==l)return(null!=
h||null!=b)&&e.addXObj(this.vwr.ms.getUnitCellPointsWithin(c,h,b,k));if(null!=b||null!=d){if(7==a[q].tok){g=a[q].getList();l=Array(g.size());for(f=l.length;0<=--f;)l[f]=JS.SV.ptValue(g.get(f));g=null;if(null!=d){g=Array(d.size());for(f=g.length;0<=--f;)g[f]=JS.SV.ptValue(d.get(f))}d=Array(1);switch(J.bspt.PointIterator.withinDistPoints(c,b,l,g,d)){case 134217751:return e.addXPt(d[0]);case 1073742001:return e.addXList(d[0]);case 1275068418:return e.addXAI(d[0]);case 4:return e.addXStr(d[0]);default:return!1}}return e.addXBs(this.vwr.getAtomsNearPt(c,
b,null))}if(1086324744==l)return e.addXBs(this.vwr.ms.getSequenceBits(f,h,new JU.BS));null==h&&(h=new JU.BS);if(!m)try{return e.addXBs(this.vwr.ms.getAtoms(l,h))}catch(n){if(L(n,Exception))return!1;throw n;}if(j)return e.addXBs(this.vwr.getGroupsWithin(Y(c),h));g&&(p=new J.atomdata.RadiusData(null,10<c?c/100:c,10<c?J.atomdata.RadiusData.EnumType.FACTOR:J.atomdata.RadiusData.EnumType.OFFSET,J.c.VDW.AUTO),0>c&&(c=0));return e.addXBs(this.vwr.ms.getAtomsWithinRadius(c,h,k,p))},"JS.ScriptMathProcessor,~A");
p(c$,"evaluateWrite",function(e,a){switch(a.length){case 0:return!1;case 1:var b=a[0].asString().toUpperCase();if(b.equals("PNGJ"))return e.addXMap(this.vwr.fm.getFileAsMap(null,"PNGJ"));if(JU.PT.isOneOf(b,";ZIP;ZIPALL;JMOL;")){var c=new java.util.Hashtable,d=new JU.OC;c.put("outputChannel",d);this.vwr.createZip(null,b,c);b=JU.Rdr.getBIS(d.toByteArray());c=new java.util.Hashtable;this.vwr.readFileAsMap(b,c,null);return e.addXMap(c)}}return e.addXStr(this.e.getCmdExt().dispatch(134221856,!0,a))},"JS.ScriptMathProcessor,~A");
p(c$,"getAtomsNearSurface",function(e,a){var b=C(-1,[a,null,null]);if(this.e.getShapePropertyData(24,"getVertices",b))return this.getAtomsNearPts(e,b[1],b[2]);b[1]=Integer.$valueOf(0);b[2]=Integer.$valueOf(-1);if(this.e.getShapePropertyData(22,"getCenter",b))return this.vwr.getAtomsNearPt(e,b[2],null);b[1]=Float.$valueOf(e);return this.e.getShapePropertyData(21,"getAtomsWithin",b)?b[2]:new JU.BS},"~N,~S");p(c$,"getAtomsNearPts",function(e,a,b){var c=new JU.BS;if(0==a.length||null!=b&&b.isEmpty())return c;
null==b&&(b=JU.BSUtil.setAll(a.length));for(var d=this.vwr.ms.at,f=this.vwr.ms.ac;0<=--f;){var h=d[f];if(null!=h)for(var g=b.nextSetBit(0);0<=g;g=b.nextSetBit(g+1))if(h.distance(a[g])<e){c.set(f);break}}return c},"~N,~A,JU.BS");p(c$,"getMinMax",function(e,a,b){for(var c=null,d=null,f=0,h=null;;){if(JU.AU.isAF(e)){if(1275068725==a)break;c=e;f=c.length;if(0==f)break}else if(y(e,JU.Lst))if(d=e,f=d.size(),0==f){if(1275068725!=a)break}else{if(1275068725!=a){e=d.get(0);if(8==e.tok)return this.getMinMaxPoint(d,
a);if(4==e.tok&&e.value.startsWith("{")){b=JS.SV.ptValue(e);if(y(b,JU.P3))return this.getMinMaxPoint(d,a);if(y(b,JU.P4))return this.getMinMaxQuaternion(d,a);break}}}else break;var g,k=!1;switch(a){case 1275068725:h=new java.util.Hashtable;e=g=0;break;case 32:k=!0;e=3.4028235E38;g=2147483647;break;case 64:e=-3.4028235E38;g=-2147483647;break;default:e=g=0}for(var j=0,m=0,p=!0,l=1275068725==a;0<=--f;){var t=null==d?null:d.get(f),q=!b?null:null==t?JS.SV.vF:t,n=l?1:null==c?JS.SV.fValue(q):c[f];if(!Float.isNaN(n))switch(m++,
a){case 160:case 192:j+=n*n;case 128:case 96:e+=n;break;case 1275068725:t=null==q?t.toString():q.asString();q=h.get(t);h.put(t,null==q?new Integer(1):new Integer(q.intValue()+1));break;case 32:case 64:p=(new Boolean(p&2==q.tok)).valueOf(),k==n<e&&(e=n,p&&(g=q.intValue))}}if(1275068725==a)return h;if(0==m)break;switch(a){case 96:e/=m;break;case 192:if(1==m)break;e=Math.sqrt((j-e*e/m)/(m-1));break;case 32:case 64:if(p)return Integer.$valueOf(g);break;case 160:e=j}return Float.$valueOf(e)}return"NaN"},
"~O,~N,~B");p(c$,"getMinMaxPoint",function(e,a){var b=null,c=null,d=0;y(e,Array)?(b=e,d=b.length):y(e,JU.Lst)&&(c=e,d=c.size());if(null==c&&null==b)return"NaN";for(var f=new JU.P3,h=B(d,0),g=0;3>g;g++){for(var k=0;k<d;k++){var j=null==b?JS.SV.ptValue(c.get(k)):b[k];if(null==j)return"NaN";switch(g){case 0:h[k]=j.x;break;case 1:h[k]=j.y;break;case 2:h[k]=j.z}}k=this.getMinMax(h,a,!0);if(!y(k,Number))return"NaN";k=k.floatValue();switch(g){case 0:f.x=k;break;case 1:f.y=k;break;case 2:f.z=k}}return f},
"~O,~N");p(c$,"getMinMaxQuaternion",function(e,a){var b;switch(a){case 32:case 64:case 128:case 160:return"NaN"}for(;;){b=this.e.getQuaternionArray(e,1073742001);if(null==b)break;var c=B(1,0);b=JU.Quat.sphereMean(b,c,1E-4);switch(a){case 96:return b;case 192:return Float.$valueOf(c[0])}break}return"NaN"},"JU.Lst,~N");p(c$,"getPatternMatcher",function(){return null==this.pm?this.pm=J.api.Interface.getUtil("PatternMatcher",this.e.vwr,"script"):this.pm});p(c$,"opTokenFor",function(e){switch(e){case 1275069441:case 1275069446:return JS.T.tokenPlus;
case 1275068931:return JS.T.tokenMinus;case 1275068929:return JS.T.tokenTimes;case 1275068930:return JS.T.tokenMul3;case 1275068928:return JS.T.tokenDivide}return null},"~N");p(c$,"setContactBitSets",function(e,a,b,c,d,f){var h,g;null==a?(a=JU.BSUtil.setAll(this.vwr.ms.ac),JU.BSUtil.andNot(a,this.vwr.slm.bsDeleted),a.andNot(e),h=!1):(g=JU.BSUtil.copy(e),g.or(a),g=this.vwr.ms.getModelBS(g,!1).cardinality(),h=1<g,f&&(1<g&&!this.e.tQuiet)&&this.e.showString(J.i18n.GT.$("Note: More than one model is involved in this contact!")));
if(!e.equals(a)){if(f=!b||e.cardinality()<a.cardinality())g=this.vwr.ms.getAtomsWithinRadius(c,e,h,Float.isNaN(c)?d:null),a.and(g);b&&(g=this.vwr.ms.getAtomsWithinRadius(c,a,h,Float.isNaN(c)?d:null),e.and(g),f||(g=this.vwr.ms.getAtomsWithinRadius(c,e,h,Float.isNaN(c)?d:null),a.and(g)),g=JU.BSUtil.copy(a),g.and(e),g.equals(e)?a.andNot(e):g.equals(a)&&e.andNot(a))}return a},"JU.BS,JU.BS,~B,~N,J.atomdata.RadiusData,~B");c$.t0=c$.prototype.t0=System.currentTimeMillis()})})(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.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.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);
