a._allowedJmolSize[1]?a._allowedJmolSize[1]:d)+(b?b:"")}var e;"object"==typeof c&&null!=c?(e=c[0]||c.width,c=c[1]||c.height):e=c;e=[f(e,"px"),f(c,"px")];c=a._getElement(this,"appletinfotablediv");c.style.width=e[0];c.style.height=e[1];this._containerWidth=e[0];this._containerHeight=e[1];this._is2D&&a._repaint(this,!0)};e._search=function(c,f){a._search(this,c,f)};e._searchDatabase=function(c,f,e){if(this._2dapplet&&this._2dapplet._isEmbedded&&!a.$(this,"appletdiv:visible")[0])return this._2dapplet._searchDatabase(c,
f,e);this._showInfo(!1);0<=c.indexOf("?")?a._getInfoFromDatabase(this,f,c.split("?")[0]):(e||(e=a._getScriptForDatabase(f)),c=f+c,this._currentView=null,this._searchQuery=c,this._loadFile(c,e,c))};e._loadFile=function(c,f,e){this._showInfo(!1);f||(f="");this._thisJmolModel=""+Math.random();this._fileName=c;if(!this._scriptLoad(c,f)){var d=this;a._loadFileData(this,c,function(a){d.__loadModel(a,f,e)},function(){d.__loadModel(null)})}};e._scriptLoad=function(a,f){f||(f="");var e=this._isJava||!this._noscript;
e&&this._script("zap;set echo middle center;echo Retrieving data...");if(!this._isSigned||null!=this._viewSet)return!1;e?this._script('load async "'+a+'";'+f):this._applet.openFile(a);this._checkDeferred("");return!0};e.__loadModel=function(c,f,e){null!=c&&(null!=this._viewSet&&(f||(f=""),f+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),!f&&this._noscript?this._applet.loadInlineString(c,"",!1):this._loadMolData(c,
f,!1),null!=this._viewSet&&a.View.updateView(this,{chemID:e,data:c}))};e._loadMolData=function(a,f,e){f||(f="");e=e?"append":"model";this._applet.scriptWait('load DATA "'+e+'"'+a+'\nEND "'+e+'" ;'+f)};e._loadModelFromView=function(c){this._currentView=c;var f=c.Jmol;null!=f.data?this.__loadModel(f.data,null,c.info.chemID):null!=c.info.chemID?a._searchMol(this,c.info.chemID,null,!1):(f=c.JME)&&f.applet._show2d(!1,this)};e._updateView=function(){null!=this._viewSet&&this._applet&&(chemID=""+this._getPropertyAsJavaObject("variableInfo",
"script('show chemical inchiKey')"),chemID=36>chemID.length()?null:chemID.substring(36).split("\n")[0],a.View.updateView(this,{chemID:chemID,data:""+this._getPropertyAsJavaObject("evaluate","extractModel","{visible}")}))};e._atomPickedCallback=function(c,f){if(!(0>f)){var e=[f+1];a.View.updateAtomPick(this,e);this._updateAtomPick(e)}};e._updateAtomPick=function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};e._isDeferred=function(){return!this._canvas&&this._cover&&
this._isCovered&&this._deferApplet};e._checkDeferred=function(a){return this._isDeferred()?(this._coverScript=a,this._cover(!1),!0):!1};e._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};e._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};e._getMol2D=function(){return jmol._evaluate("script('select visible;show chemical sdf')")};a.jmolSmiles=function(a){return a._getSmiles()}})(Jmol,document);
(function(a){var h=a.controls={_hasResetForms:!1,_scripts:[""],_checkboxMasters:{},_checkboxItems:{},_actions:{},_buttonCount:0,_checkboxCount:0,_radioGroupCount:0,_radioCount:0,_linkCount:0,_cmdCount:0,_menuCount:0,_previousOnloadHandler:null,_control:null,_element:null,_appletCssClass:null,_appletCssText:"",_buttonCssClass:null,_buttonCssText:"",_checkboxCssClass:null,_checkboxCssText:"",_radioCssClass:null,_radioCssText:"",_linkCssClass:null,_linkCssText:"",_menuCssClass:null,_menuCssText:""};
h._addScript=function(a,e){var c=h._scripts.length;h._scripts[c]=[a,e];return c};h._getIdForControl=function(a,e){return"string"==typeof a?a:!e||!a._canScript||a._canScript(e)?a._id:null};h._radio=function(a,e,c,j,k,d,b,g){var m=h._getIdForControl(a,e);if(null==m)return null;++h._radioCount;void 0!=d&&null!=d||(d="jmolRadioGroup"+(h._radioGroupCount-1));if(!e)return"";void 0!=b&&null!=b||(b="jmolRadio"+(h._radioCount-1));void 0!=c&&null!=c||(c=e.substring(0,32));k||(k="");a="";h._actions[b]=
h._addScript(m,e);e='";0<=c.toLowerCase().indexOf("")&&(e+=a,a="");return e+('"+a+k)};h._scriptExecute=function(f,e){var c=a._applets[e[0]],h=e[1];if("object"==typeof h)h[0](f,h,
c);else"function"==typeof h?h(c):a.script(c,h)};h.__checkScript=function(a,e){var c=0<=e.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(e.value);e.style.color=c?"black":"red";return c};h.__getCmd=function(a,e){if(e._cmds&&e._cmds.length){var c=e._cmds[e._cmdpt=(e._cmdpt+e._cmds.length+a)%e._cmds.length];setTimeout(function(){e.value=c},10);e._cmdadd=1;e._cmddir=a}};h._commandKeyPress=function(f,e,c){f=13==f?13:window.event?window.event.keyCode:f?f.keyCode||f.which:0;var j=document.getElementById(e),
k=a._applets[c];switch(f){case 13:return e=j.value,h._scriptExecute(j,[c,e]),j._cmds||(j._cmds=[],j._cmddir=0,j._cmdpt=-1,j._cmdadd=0),e&&0==j._cmdadd?(++j._cmdpt,j._cmds.splice(j._cmdpt,0,e),j._cmdadd=0,j._cmddir=0):j._cmdadd=0,j.value="",!1;case 27:return setTimeout(function(){j.value=""},20),!1;case 38:h.__getCmd(-1,j);break;case 40:h.__getCmd(1,j);break;default:j._cmdadd=0}setTimeout(function(){h.__checkScript(k,j)},20);return!0};h._click=function(a,e){h._element=a;1==arguments.length&&(e=h._actions[a.id]);
h._scriptExecute(a,h._scripts[e])};h._menuSelected=function(a){var e=a.value;if(void 0!=e)h._scriptExecute(a,h._scripts[e]);else{e=a.length;if("number"==typeof e)for(var c=0;c";a._debugAlert&&
alert(e);return a._documentWrite(e)};h._getCheckbox=function(f,e,c,j,k,d,b){var g=h._getIdForControl(f,e);null!=g&&(g=h._getIdForControl(f,c));if(null==g)return"";void 0!=d&&null!=d||(d="jmolCheckbox"+h._checkboxCount);++h._checkboxCount;if(void 0==e||null==e||void 0==c||null==c)alert("jmolCheckbox requires two scripts");else if(void 0==j||null==j)alert("jmolCheckbox requires a label");else return h._actions[d]=[h._addScript(g,e),h._addScript(g,c)],f="",k='",0<=j.toLowerCase().indexOf("")&&(k+=f,f=""),k+='"+f,a._debugAlert&&alert(k),a._documentWrite(k)};h._getCommandInput=function(f,e,c,j,k,d){f=h._getIdForControl(f,"x");if(null==f)return"";void 0!=j&&null!=j||(j="jmolCmd"+h._cmdCount);
void 0!=e&&null!=e||(e="Execute");void 0!=c&&!isNaN(c)||(c=60);void 0!=d||(d="help");++h._cmdCount;e='";a._debugAlert&&alert(e);return a._documentWrite(e)};h._getLink=function(f,
e,c,j,k){f=h._getIdForControl(f,e);if(null==f)return"";void 0!=j&&null!=j||(j="jmolLink"+h._linkCount);void 0!=c&&null!=c||(c=e.substring(0,32));++h._linkCount;e=h._addScript(f,e);c='"+c+"";a._debugAlert&&alert(c);return a._documentWrite(c)};
h._getMenu=function(f,e,c,j,k){var d=h._getIdForControl(f,null);void 0!=j&&null!=j||(j="jmolMenu"+h._menuCount);++h._menuCount;d=typeof e;if(null!=d&&"object"==d&&e.length){var b=e.length;"number"!=typeof c||1==c?c=null:0>c&&(c=b);c='";a._debugAlert&&alert(c);return a._documentWrite(c)}};h._getRadio=function(f,e,c,j,k,d,b,g){0==h._radioGroupCount&&++h._radioGroupCount;d||(d="jmolRadioGroup"+(h._radioGroupCount-1));f=h._radio(f,e,c,j,k,d,b?b:d+"_"+h._radioCount,g?g:0);if(null==
f)return"";a._debugAlert&&alert(f);return a._documentWrite(f)};h._getRadioGroup=function(f,e,c,j,k,d){var b=typeof e;if("object"!=b||null==b||!e.length)alert("invalid arrayOfRadioButtons");else{void 0!=c&&null!=c||(c=" ");var g=e.length;++h._radioGroupCount;j||(j="jmolRadioGroup"+(h._radioGroupCount-1));for(var m="",n=0;n";a._debugAlert&&alert(m);return a._documentWrite(m)}}})(Jmol);
(function(a){var h=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=h("_J2S");a._jarFile=h("_JAR");a._use=h("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(f,e,c){return a._Applet._get(f,e,c)};a.getJMEApplet=function(f,e,c,h){return a._JMEApplet._get(f,e,c,h)};a.getJSVApplet=function(f,e,c){return a._JSVApplet._get(f,e,c)};a.loadFile=function(a,e,c){a._loadFile(e,c)};a.script=function(a,e){a._checkDeferred(e)||
a._script(e)};a.scriptCheck=function(a,e){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(e)};a.scriptWait=function(a,e){return a._scriptWait(e)};a.scriptEcho=function(a,e){return a._scriptEcho(e)};a.scriptMessage=function(a,e){return a._scriptMessage(e)};a.scriptWaitOutput=function(a,e){return a._scriptWait(e)};a.scriptWaitAsArray=function(a,e){return a._scriptWaitAsArray(e)};a.search=function(a,e,c){a._search(e,c)};a.evaluateVar=function(a,e){return a._evaluate(e)};a.evaluate=function(a,e){return a._evaluateDEPRECATED(e)};
a.getAppletHtml=function(f,e){if(e){var c=a._document;a._document=null;f=a.getApplet(f,e);a._document=c}return f._code};a.getPropertyAsArray=function(a,e,c){return a._getPropertyAsArray(e,c)};a.getPropertyAsJavaObject=function(a,e,c){return a._getPropertyAsJavaObject(e,c)};a.getPropertyAsJSON=function(a,e,c){return a._getPropertyAsJSON(e,c)};a.getPropertyAsString=function(a,e,c){return a._getPropertyAsString(e,c)};a.getStatus=function(a,e){return a._getStatus(e)};a.resizeApplet=function(a,e){return a._resizeApplet(e)};
a.restoreOrientation=function(a,e){return a._restoreOrientation(e)};a.restoreOrientationDelayed=function(a,e,c){return a._restoreOrientationDelayed(e,c)};a.saveOrientation=function(a,e){return a._saveOrientation(e)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,e,c){a._info=e;2")};
a.jmolButton=function(f,e,c,h,k){return a.controls._getButton(f,e,c,h,k)};a.jmolCheckbox=function(f,e,c,h,k,d,b){return a.controls._getCheckbox(f,e,c,h,k,d,b)};a.jmolCommandInput=function(f,e,c,h,k,d){return a.controls._getCommandInput(f,e,c,h,k,d)};a.jmolHtml=function(f){return a._documentWrite(f)};a.jmolLink=function(f,e,c,h,k){return a.controls._getLink(f,e,c,h,k)};a.jmolMenu=function(f,e,c,h,k){return a.controls._getMenu(f,e,c,h,k)};a.jmolRadio=function(f,e,c,h,k,d,b,g){return a.controls._getRadio(f,
e,c,h,k,d,b,g)};a.jmolRadioGroup=function(f,e,c,h,k,d){return a.controls._getRadioGroup(f,e,c,h,k,d)};a.setCheckboxGroup=function(f,e){a.controls._cbSetCheckboxGroup(f,e,arguments)};a.setDocument=function(f){a._document=f};a.setXHTML=function(f){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;f&&(a._XhtmlElement=document.getElementById(f),a._XhtmlAppendChild=!0)};a.setAppletCss=function(f,e){null!=f&&(a.controls._appletCssClass=f);a.controls._appletCssText=e?e+" ":f?'class="'+f+'" ':""};
a.setButtonCss=function(f,e){null!=f&&(a.controls._buttonCssClass=f);a.controls._buttonCssText=e?e+" ":f?'class="'+f+'" ':""};a.setCheckboxCss=function(f,e){null!=f&&(a.controls._checkboxCssClass=f);a.controls._checkboxCssText=e?e+" ":f?'class="'+f+'" ':""};a.setRadioCss=function(f,e){null!=f&&(a.controls._radioCssClass=f);a.controls._radioCssText=e?e+" ":f?'class="'+f+'" ':""};a.setLinkCss=function(f,e){null!=f&&(a.controls._linkCssClass=f);a.controls._linkCssText=e?e+" ":f?'class="'+f+'" ':""};
a.setMenuCss=function(f,e){null!=f&&(a.controls._menuCssClass=f);a.controls._menuCssText=e?e+" ":f?'class="'+f+'" ':""};a.setAppletSync=function(f,e,c){a._syncedApplets=f;a._syncedCommands=e;a._syncedReady={};a._isJmolJSVSync=c};a.setGrabberOptions=function(f){a._grabberOptions=f};a.setAppletHtml=function(f,e){f._code&&(a.$html(e,f._code),f._init&&!f._deferApplet&&f._init())};a.coverApplet=function(a,e){a._cover&&a._cover(e)};a.setFileCaching=function(f,e){f?f._cacheFiles=e:a.fileCache=e?{}:null};
a.updateView=function(a,e,c){a._updateView(e,c)};a.getChemicalInfo=function(f,e,c){e||(e="name");"string"!=typeof applet_or_Identifier&&(f=f._getSmiles());return a._getNCIInfo(f,e,c)};a.saveImage=function(a){switch(a._viewType){case "Jmol":a._script('write PNGJ "'+a._id+'.png"');break;case "JSV":a._script("write PDF");break;case "JME":a._script("print")}}})(Jmol);
LoadClazz=function(){window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Clazz=function(){},function(a){a.__debuggingBH=!1;a._globals=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(d,b){a._globals.push(d);window[d]=b};a.getGlobals=function(){return a._globals.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console=a)};a._profile=window["j2s.doProfile"]&&
self.JSON?{}:null;a.getProfile=function(){var d="";if(a._profile){var d=[],b;for(b in a._profile){var g=""+a._profile[b];d.push(" ".substring(g.length)+g+"\t"+b)}d=d.sort().reverse().join("\r\n");a._profile={}}return d};a.addProfile=function(d,b,g){d=d.__CLASS_NAME__+" "+b+" "+JSON.stringify(g);a._profile[d]||(a._profile[d]=0);a._profile[d]++};NullObject=function(){};a._supportsNativeObject=window["j2s.object.native"];a._supportsNativeObject?(a._O=function(){},a._O.__CLASS_NAME__="Object",
a._O.getClass=function(){return a._O}):a._O=Object;a.Console={};a.dateToString=Date.prototype.toString;a.getSignature=function(a,b,g,c){return c?a[b]=g:a[b]};a.addProto=function(d,b,g){a.getSignature(d,b,g,!0)};var h=a._O.prototype;a.addProto(h,"equals",function(a){return this==a});a.addProto(h,"hashCode",function(){try{return this.toString().hashCode()}catch(a){var b=":",g;for(g in this)b+=g+":";return b.hashCode()}});a.addProto(h,"getClass",function(){return a.getClass(this)});a.addProto(h,"clone",
function(){return a.clone(this)});a.clone=function(a){var b=new a.constructor,g;for(g in a)b[g]=a[g];return b};a.addProto(h,"finalize",function(){});a.addProto(h,"notify",function(){});a.addProto(h,"notifyAll",function(){});a.addProto(h,"wait",function(){});a.addProto(h,"to$tring",Object.prototype.toString);a.addProto(h,"toString",function(){return this.__CLASS_NAME__?"["+this.__CLASS_NAME__+" object]":this.to$tring.apply(this,arguments)});a._extendedObjectMethods="equals hashCode getClass clone finalize notify notifyAll wait to$tring toString".split(" ");
a.extendJO=function(d,b){b&&(d.__CLASS_NAME__=d.prototype.__CLASS_NAME__=b);if(a._supportsNativeObject)for(var g=0;gc)return"["==g.charAt(0)?a.extractClassName(g):g.replace(/[^a-zA-Z0-9]/g,"");var c=c+8,e=g.indexOf("(",c);if(0>e)return"Object";g=g.substring(c,e);if(0<=g.indexOf("Array"))return"Array";g=g.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==g||""==g?"Function":g;case "object":if(d.__CLASS_NAME__)return d.__CLASS_NAME__;
if(!d.constructor)return"Object";if(!d.constructor.__CLASS_NAME__){if(d instanceof Number)return"Number";if(d instanceof Boolean)return"Boolean";if(d instanceof Array)return"Array";g=d.toString();if("["==g.charAt(0))return a.extractClassName(g)}}return a.getClassName(d.constructor,!0)};a.getClass=function(d){if(!d)return a._O;if("function"==typeof d)return d;if(d instanceof a.CastedNull)d=d.clazzName;else switch(typeof d){case "string":return String;case "object":if(!d.__CLASS_NAME__)return d.constructor||
a._O;d=d.__CLASS_NAME__;break;default:return d.constructor}return a.evalType(d,!0)};a.extendsProperties=function(d,b){for(var g in b)"b$"!=g&&("prototype"!=g&&"superClazz"!=g&&"__CLASS_NAME__"!=g&&"implementz"!=g&&!a.checkInnerFunction(b,g))&&(d[g]=b[g])};a.checkInnerFunction=function(d,b){for(var g=0;gg;){if(c.implementz)for(var e=c.implementz,f=0;ff[j]){l=!1;break}l&&(f[b.length]=e,g.push(f))}if(0==g.length)return null;c=g[0];for(e=1;ea.findArrayItem(h,d)&&h.push(d);l&&(l.claxxOwner===d?(f[l.funParams]=l,l.claxxOwner=null,l.funParams=null):l.claxxOwner||(f["\\unknown"]=l));g.exClazz=d;f[c]=g;return f};a.makeConstructor=function(d,b,g){a.defineMethod(d,"construct",b,g);d.con$truct&&(d.con$truct.index=d.con$truct.stacks.length)};a.overrideConstructor=
function(d,b,g){a.overrideMethod(d,"construct",b,g);d.con$truct&&(d.con$truct.index=d.con$truct.stacks.length)};a.allPackage={};a.allClasses={};a.lastPackageName=null;a.lastPackage=null;a.unloadedClasses=[];a.declarePackage=function(d){if(a.lastPackageName==d)return a.lastPackage;if(d&&d.length){for(var b=d.split(/\./),g=a.allPackage,c=0;cg.length)break;if(g.indexOf(l)==g.length-l.length){g=g.substring(0,g.length-l.length+1);break}}else g=a._Loader.getClasspathFor(c,!0);else(e=a.binaryFolders)&&
e.length&&(g=e[0]);g||(g="j2s/");g=g.replace(/\\/g,"/");e=g.length;e=g.charAt(e-1);"/"!=e&&(g+="/");this.base?b.url=g+d:(e=c.lastIndexOf("."),b.url=-1==e||this.base?g+d:g+c.substring(0,e).replace(/\./g,"/")+"/"+d)}return b},defineMethod:function(d,b,g){a.defineMethod(this,d,b,g)},defineStaticMethod:function(d,b,g){a.defineMethod(this,d,b,g);this[d]=this.prototype[d]},makeConstructor:function(d,b){a.makeConstructor(this,d,b)}};a.decorateFunction=function(d,b,g){var c;b?b.__PKG_NAME__?(c=b.__PKG_NAME__+
"."+g,b[g]=d,b===java.lang&&a.setGlobal(g,d)):(c=b.__CLASS_NAME__+"."+g,b[g]=d):(c=g,a.setGlobal(g,d));a.extendJO(d,c);b=a.innerFunctionNames;for(g=0;g")+"\n",
g=g.caller;return b};Number.prototype._numberToString=Number.prototype.toString;a.declarePackage("java.io");a.declarePackage("java.lang.annotation");a.declarePackage("java.lang.instrument");a.declarePackage("java.lang.management");a.declarePackage("java.lang.reflect");a.declarePackage("java.lang.ref");java.lang.ref.reflect=java.lang.reflect;a.declarePackage("java.util");a.declareInterface(java.io,"Closeable");a.declareInterface(java.io,"DataInput");a.declareInterface(java.io,"DataOutput");a.declareInterface(java.io,
"Externalizable");a.declareInterface(java.io,"Flushable");a.declareInterface(java.io,"Serializable");a.declareInterface(java.lang,"Iterable");a.declareInterface(java.lang,"CharSequence");a.declareInterface(java.lang,"Cloneable");a.declareInterface(java.lang,"Appendable");a.declareInterface(java.lang,"Comparable");a.declareInterface(java.lang,"Runnable");a.declareInterface(java.util,"Comparator");java.lang.ClassLoader={__CLASS_NAME__:"ClassLoader"};if(window.Clazz&&!window.Clazz.unloadClass){a.MethodNotFoundException=
function(d,b,g,c){d="";c&&(d=c.substring(1).replace(/\\/g,","));this.message=(g&&"construct"!=g?"Method":"Constructor")+" "+a.getClassName(b,!0)+"."+g+"("+d+") is not found!";this.toString=function(){return"MethodNotFoundException:"+this.message}};a.prepareCallback=function(d,b){var g=b[0];if(d&&g&&g!==window){var c=a.getClassName(g,!0),e={};if(d.b$)for(var f in d.b$)e[f]=d.b$[f];d.b$=e;e[c]=g;for(c=a.getClass(g);c.superClazz;)c=c.superClazz,e[a.getClassName(c,!0)]=g;if(g=g.b$)for(f in g)e[f]=g[f]}for(e=
0;ea?Math.ceil(a):Math.floor(a)};a.floatToByte=a.floatToShort=a.floatToLong=a.floatToInt;a.doubleToByte=a.doubleToShort=a.doubleToLong=a.doubleToInt=a.floatToInt;a.floatToChar=function(a){return String.fromCharCode(0>a?Math.ceil(a):Math.floor(a))};a.doubleToChar=a.floatToChar;self.Int32Array&&self.Int32Array!=Array?(a.haveInt32=!0,Int32Array.prototype.sort||(Int32Array.prototype.sort=
Array.prototype.sort)):(Int32Array=function(a){a||(a=0);var b=Array(a);b.toString=function(){return"[object Int32Array]"};for(var c=0;c=d.length)return[];var c=d[0];"string"==typeof c&&(c=c.charCodeAt(0));var e=d.length-1,f=d[e];if(2==d.length){if(null==f)return Array(c);if(!0===b&&a.haveInt32)return new Int32Array(c);if(!1===b&&a.haveFloat64)return new Float64Array(c);
if(b==Array&&null==f)return Array(c);for(var d=!0===b?new Int32Array:!1===b?new Float64Array:Array(c),h=c;0<=--h;)d[h]=f;return d}for(var l=Array(e),h=0;hf)return Array(c);try{return b?new Int32Array(c):
new Float64Array(c)}catch(h){alert(c+" "+arguments.callee.caller.arguments.callee.caller+h)}}for(f=Array(e);0<=--e;)f[e]=d[e+1];for(var l=Array(c),e=0;e=c.STATUS_OPTIONALS_LOADED))j?window.setTimeout(f,25):f()}else{var k=b.getClasspathFor(e);p=b.loadedScripts[k];j=b.classQueue;if(!p)for(h=j.length;0<=--h;)if(j[h].path==k||j[h].name==e){p=!0;break}if(p){if(f&&(p=b.findClass(e)))if(p.onRequiredLoaded){if(f!=p.onRequiredLoaded){var m=p.onRequiredLoaded;p.onRequiredLoaded=function(){m();f()}}}else p.onRequiredLoaded=f}else{p=a.unloadedClasses[e]&&b.findClass(e)||
new c;p.name=e;p.path=k;p.isPackage=k.lastIndexOf("package.js")==k.length-10;b.mappingPathNameNode(k,e,p);p.onRequiredLoaded=f;p.status=c.STATUS_KNOWN;e=!1;for(h=j.length;0<=--h;)if(j[h].status!=c.STATUS_OPTIONALS_LOADED){e=!0;break}if(p.isPackage){for(h=j.length;0<=--h&&!j[h].isPackage;)j[h+1]=j[h];j[++h]=p}else e&&j.push(p);if(!e){var n=!1;f&&(n=b.isLoadingEntryClass,b.isLoadingEntryClass=!0);b.addChildClassNode(b.clazzTreeRoot,p,!0);b.loadScript(p.path,p.requiredBy,!1,f?function(){b.isLoadingEntryClass=
n;f()}:null)}}}};b.needPackage=function(a){return null!=window[a+".registered"]&&!b.classpathMap["@"+a]};b.loadPackage=function(a,d){d||(d=null);window[a+".registered"]=!1;b.loadPackageClasspath(a,b.J2SLibBase||(b.J2SLibBase=b.getJ2SLibBase()||"j2s/"),!0,d)};b.pkgRefCount=0;b.jarClasspath=function(a,d){d instanceof Array||(d=[classes]);b.unwrapArray(d);for(var c=d.length;0<=--c;)b.classpathMap["#"+d[c]]=a;b.classpathMap["$"+a]=d};b.registerPackages=function(c,e){for(var f=b.getClasspathFor(c+".*",
!0),g=0;gj;j++)for(;f=e[j](c.STATUS_CONTENT_LOADED);)1==j&&h===f&&(f.status=c.STATUS_OPTIONALS_LOADED),b.updateNode(f),h=f;for(;!(b.tracks=[],!b.checkCycle(b.clazzTreeRoot)););for(j=
0;2>j;j++)for(h=null;(f=e[j](c.STATUS_DECLARED))&&h!==f;)b.updateNode(h=f);h=[];for(j=0;2>j;j++)for(;f=e[j](c.STATUS_DECLARED);)h.push(f),f.status=c.STATUS_OPTIONALS_LOADED;if(h.length){for(j=0;j=c.STATUS_DECLARED););d.push(a);if(0<=f){for(;fh;h++)for(var j=a[h],f=j.length;0<=--f;)if(j[f].status==c.STATUS_DECLARED&&b.checkCycle(j[f]))return!0;d.length=e;return!1};b.updateNode=function(a){if(!a.name||a.status>=c.STATUS_OPTIONALS_LOADED)b.destroyClassNode(a);else{var d=!0;if(a.musts.length&&a.declaration)for(var e=
a.musts.length,f=e;0<=--f;){var h=a.musts[f];h.requiredBy=a;if(h.statusc.STATUS_KNOWN&&!a.declaration||b.checkStatusIs(a.musts,c.STATUS_OPTIONALS_LOADED)&&b.checkStatusIs(a.optionals,c.STATUS_OPTIONALS_LOADED)){d=c.STATUS_OPTIONALS_LOADED;if(!b.doneLoading(a,d))return!1;if(a.declaration&&a.declaration.clazzList){k=0;m=a.declaration.clazzList;for(n=m.length;k<
n;k++)if((q=b.findClass(m[k]))&&q.status!=d&&q!==a)if(q.declaration=null,!b.doneLoading(q,d))return!1}}b.updateParents(a,d)}}};b.checkStatusIs=function(a,b){for(var d=a.length;0<=--d;)if(a[d].status(h=c.indexOf(f))||0>(j=c.indexOf('"',h+f.length))))if(b=c.substring(h,j),a.unloadedClasses[b]&&0!=(h=c.indexOf("{",j)+1))if(!(0>(j=c.indexOf("("+b+",",h+3))||0>(j=c.lastIndexOf("}",j-1))))eval(c.substring(h,j)),a.unloadedClasses[b]=null}}};a.binaryFolders=b.binaryFolders=[b.getJ2SLibBase()]})(a,a._Loader,a._Node);a._LoaderProgressMonitor=function(){};
var c=a._LoaderProgressMonitor;c.fadeOutTimer=null;c.fadeAlpha=0;c.monitorEl=null;c.lastScrollTop=0;c.bindingParent=null;c.DEFAULT_OPACITY=self.Jmol&&Jmol._j2sLoadMonitorOpacity?Jmol._j2sLoadMonitorOpacity:55;c.clearChildren=function(a){if(a)for(var b=a.childNodes.length;0<=--b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&this.clearChildren(c);try{a.removeChild(c)}catch(e){}}}};c.setAlpha=function(a){this.fadeOutTimer&&a==this.DEFAULT_OPACITY&&(window.clearTimeout(this.fadeOutTimer),
this.fadeOutTimer=null);this.fadeAlpha=a;navigator.userAgent.toLowerCase();this.monitorEl.style.filter="Alpha(Opacity="+a+")";this.monitorEl.style.opacity=a/100};c.hiddingOnMouseOver=function(){this.style.display="none"};c.attached=!1;c.cleanup=function(){c.monitorEl=null;c.bindingParent=null;c.attached=!1};c.createHandle=function(){var a=document.createElement("DIV");a.id="clazzloader-status";a.style.cssText="position:absolute;bottom:4px;left:4px;padding:2px 8px;z-index:"+(window["j2s.lib"].monitorZIndex||
1E4)+";background-color:#8e0000;color:yellow;font-family:Arial, sans-serif;font-size:10pt;white-space:nowrap;";a.onmouseover=this.hiddingOnMouseOver;this.monitorEl=a;this.bindingParent?this.bindingParent.appendChild(a):document.body.appendChild(a);return a};c.fadeOut=function(){"none"!=this.monitorEl.style.display&&(this.fadeAlpha==this.DEFAULT_OPACITY?(this.fadeOutTimer=window.setTimeout(function(){c.fadeOut()},750),this.fadeAlpha-=5):0<=this.fadeAlpha-10?(this.setAlpha(this.fadeAlpha-10),this.fadeOutTimer=
window.setTimeout(function(){c.fadeOut()},40)):this.monitorEl.style.display="none")};c.getFixedOffsetTop=function(){if(this.bindingParent){var a=this.bindingParent;return a.scrollTop}var b=navigator.userAgent,a=document.body,c=a.parentNode,e=c.clientHeight,a=a.scrollTop+a.offsetTop,f=c.scrollTop+c.offsetTop;return 0>b.indexOf("Opera")&&document.all?0==e?a:f:0>b.indexOf("Gecko")?e==c.offsetHeight&&e==c.scrollHeight?a:f:a};c.showStatus=function(a,b){this.monitorEl||(this.createHandle(),this.attached||
(this.attached=!0));this.clearChildren(this.monitorEl);this.monitorEl.appendChild(document.createTextNode(""+a));"none"==this.monitorEl.style.display&&(this.monitorEl.style.display="");this.setAlpha(this.DEFAULT_OPACITY);var c=this.getFixedOffsetTop();this.lastScrollTop!=c&&(this.lastScrollTop=c,this.monitorEl.style.bottom=this.lastScrollTop+4+"px");b&&this.fadeOut()};window.ClazzLoader&&(ClazzLoader.onScriptLoading=function(a){c.showStatus("Loading "+a+"...")},ClazzLoader.onScriptLoaded=function(a){c.showStatus(a+
" loaded.",!0)},ClazzLoader.onGlobalLoaded=function(){c.showStatus("Application loaded.",!0)},ClazzLoader.onClassUnloaded=function(a){c.showStatus("Class "+a+" is unloaded.",!0)});var j=a.Console,k=System;j.maxTotalLines=1E4;j.setMaxTotalLines=function(a){j.maxTotalLines=0j.maxTotalLines){for(var e=0;ec.childNodes.length)r=document.createElement("DIV"),c.appendChild(r),r.style.whiteSpace="nowrap",j.linesCount++;else try{r=c.childNodes[c.childNodes.length-1]}catch(w){r=document.createElement("DIV"),c.appendChild(r),r.style.whiteSpace="nowrap",j.linesCount++}var u=
document.createElement("SPAN");r.appendChild(u);u.style.whiteSpace="nowrap";b&&(u.style.color=b);r=h[e];0==r.length&&(r=j.c160);u.appendChild(document.createTextNode(r));j.pinning||(c.scrollTop+=100);j.metLineBreak=e!=k||f}e=c.parentNode.className;!j.pinning&&(e&&-1!=e.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);j.lastOutputTime=(new Date).getTime()};j.clear=function(){try{j.metLineBreak=!0;var a=window["j2s.lib"],b=a&&a.console;if(b&&(b=document.getElementById(b))){for(var c=
b.childNodes,e=c.length;0<=--e;)b.removeChild(c[e]);j.linesCount=0}}catch(f){}};a.alert=function(a){j.consoleOutput(a+"\r\n")};j.c160=String.fromCharCode(160);j.c160+=j.c160+j.c160+j.c160;k.out.print=function(a){j.consoleOutput(a)};k.out.println=function(a){j.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};k.out.write=function(a,b,c){k.out.print(String.instantialize(a).substring(b,b+c))};k.err.__CLASS_NAME__="java.io.PrintStream";k.err.print=function(a){j.consoleOutput(a,
"red")};k.err.println=function(a){j.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};k.err.write=function(a,b,c){k.err.print(String.instantialize(a).substring(b,b+c))}}(Clazz))};Jmol.___JmolDate="$Date: 2014-10-13 17:59:38 -0500 (Mon, 13 Oct 2014) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.3.7_2014.10.13";
| |