a._allowedJmolSize[1]?a._allowedJmolSize[1]:e)+(j?j:"")}var l;"object"==typeof e&&null!=e?(l=e[0]||e.width,e=e[1]||e.height):l=e;l=[h(l,"px"),h(e,"px")];e=a._getElement(this,"appletinfotablediv");e.style.width=l[0];e.style.height=l[1];this._containerWidth=l[0];this._containerHeight=l[1];this._is2D&&a.repaint(this,!0)};h._search=function(e,h){a._search(this,e,h)};h._searchDatabase=function(e,h,l){if(this._2dapplet&&this._2dapplet._isEmbedded&&!a.$(this,
"appletdiv:visible")[0])return this._2dapplet._searchDatabase(e,h,l);this._showInfo(!1);0<=e.indexOf("?")?a._getInfoFromDatabase(this,h,e.split("?")[0]):(l||(l=a._getScriptForDatabase(h)),e=h+e,this._currentView=null,this._searchQuery=e,this._loadFile(e,l,e))};h._loadFile=function(e,h,l){this._showInfo(!1);h||(h="");this._thisJmolModel=""+Math.random();this._fileName=e;if(!this._scriptLoad(e,h)){var m=this;a._loadFileData(this,e,function(a){m.__loadModel(a,h,l)},function(){m.__loadModel(null)})}};
h._scriptLoad=function(a,h){h||(h="");var l=this._isJava||!this._noscript;l&&this._script("zap;set echo middle center;echo Retrieving data...");if(!this._isSigned||null!=this._viewSet)return!1;l?this._script('load async "'+a+'";'+h):this._applet.openFile(a);this._checkDeferred("");return!0};h.__loadModel=function(e,h,l){null!=e&&(null!=this._viewSet&&(h||(h=""),h+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),
!h&&this._noscript?this._applet.loadInlineString(e,"",!1):this._loadMolData(e,h,!1),null!=this._viewSet&&a.View.updateView(this,{chemID:l,data:e}))};h._loadMolData=function(a,h,l){h||(h="");l=l?"append":"model";this._applet.scriptWait('load DATA "'+l+'"'+a+'\nEND "'+l+'" ;'+h)};h._loadModelFromView=function(e){this._currentView=e;var h=e.Jmol;null!=h.data?this.__loadModel(h.data,null,e.info.chemID):null!=e.info.chemID?a._searchMol(this,e.info.chemID,null,!1):(h=e.JME)&&h.applet._show2d(!1,this)};
h._reset=function(){this._scriptWait("zap",!0)};h._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}")}))};h._atomPickedCallback=function(e,h){if(!(0>h)){var l=[h+1];a.View.updateAtomPick(this,l);this._updateAtomPick(l)}};h._updateAtomPick=
function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};h._isDeferred=function(){return!this._canvas&&this._cover&&this._isCovered&&this._deferApplet};h._checkDeferred=function(a){return this._isDeferred()?(this._coverScript=a,this._cover(!1),!0):!1};h._cover=function(e){e||!this._deferApplet?this._displayCoverImage(e):(e=this._coverScript?this._coverScript:"",this._coverScript="",this._deferUncover&&(e+=";refresh;javascript "+this._id+"._displayCoverImage(false)"),
this._script(e,!0),this._deferUncover&&"activate 3D model"==this._coverTitle&&(a._getElement(this,"coverimage").title="3D model is loading..."),this._isJava||this._newCanvas(!1),this._defaultModel&&a._search(this,this._defaultModel),this._showInfo(!1),this._deferUncover||this._displayCoverImage(!1),this._isJava&&a.$html(a.$(this,"appletdiv"),this._javaCode),this._init&&this._init())};h._displayCoverImage=function(e){this._coverImage&&this._isCovered!=e&&(this._isCovered=e,a._getElement(this,"coverdiv").style.display=
e?"block":"none")};h._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};h._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};h._getMol2D=function(){return this._evaluate("script('select visible;show chemical sdf')")};a.jmolSmiles=function(a){return a._getSmiles()}})(Jmol,document);
(function(a){var m=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:""};
m._addScript=function(a,h){var e=m._scripts.length;m._scripts[e]=[a,h];return e};m._getIdForControl=function(a,h){return"string"==typeof a?a:!h||!a._canScript||a._canScript(h)?a._id:null};m._radio=function(a,h,e,j,t,s,u,b){var c=m._getIdForControl(a,h);if(null==c)return null;++m._radioCount;void 0!=s&&null!=s||(s="jmolRadioGroup"+(m._radioGroupCount-1));if(!h)return"";void 0!=u&&null!=u||(u="jmolRadio"+(m._radioCount-1));void 0!=e&&null!=e||(e=h.substring(0,32));t||(t="");a="";m._actions[u]=
m._addScript(c,h);h='";0<=e.toLowerCase().indexOf("")&&(h+=a,a="");return h+('"+a+t)};m._scriptExecute=function(l,h){var e=a._applets[h[0]],j=h[1];if("object"==typeof j)j[0](l,j,
e);else"function"==typeof j?j(e):a.script(e,j)};m.__checkScript=function(a,h){var e=0<=h.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(h.value);h.style.color=e?"black":"red";return e};m.__getCmd=function(a,h){if(h._cmds&&h._cmds.length){var e=h._cmds[h._cmdpt=(h._cmdpt+h._cmds.length+a)%h._cmds.length];setTimeout(function(){h.value=e},10);h._cmdadd=1;h._cmddir=a}};m._commandKeyPress=function(l,h,e){l=13==l?13:window.event?window.event.keyCode:l?l.keyCode||l.which:0;var j=document.getElementById(h),
t=a._applets[e];switch(l){case 13:return h=j.value,m._scriptExecute(j,[e,h]),j._cmds||(j._cmds=[],j._cmddir=0,j._cmdpt=-1,j._cmdadd=0),h&&0==j._cmdadd?(++j._cmdpt,j._cmds.splice(j._cmdpt,0,h),j._cmdadd=0,j._cmddir=0):j._cmdadd=0,j.value="",!1;case 27:return setTimeout(function(){j.value=""},20),!1;case 38:m.__getCmd(-1,j);break;case 40:m.__getCmd(1,j);break;default:j._cmdadd=0}setTimeout(function(){m.__checkScript(t,j)},20);return!0};m._click=function(a,h){m._element=a;1==arguments.length&&(h=m._actions[a.id]);
m._scriptExecute(a,m._scripts[h])};m._menuSelected=function(a){var h=a.value;if(void 0!=h)m._scriptExecute(a,m._scripts[h]);else{h=a.length;if("number"==typeof h)for(var e=0;e";a._debugAlert&&alert(h);return a._documentWrite(h)};m._getCheckbox=function(l,h,e,j,t,s,u){var b=m._getIdForControl(l,h);null!=b&&(b=m._getIdForControl(l,e));if(null==b)return"";void 0!=s&&null!=s||(s="jmolCheckbox"+m._checkboxCount);++m._checkboxCount;if(void 0==h||null==h||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==j||null==j)alert("jmolCheckbox requires a label");else return m._actions[s]=[m._addScript(b,h),m._addScript(b,e)],l="",
t='",0<=j.toLowerCase().indexOf("")&&(t+=l,l=""),t+='"+l,a._debugAlert&&alert(t),a._documentWrite(t)};m._getCommandInput=function(l,h,e,j,t,s){l=m._getIdForControl(l,"x");if(null==l)return"";
void 0!=j&&null!=j||(j="jmolCmd"+m._cmdCount);void 0!=h&&null!=h||(h="Execute");void 0!=e&&!isNaN(e)||(e=60);void 0!=s||(s="help");++m._cmdCount;h='";a._debugAlert&&alert(h);return a._documentWrite(h)};
m._getLink=function(l,h,e,j,t){l=m._getIdForControl(l,h);if(null==l)return"";void 0!=j&&null!=j||(j="jmolLink"+m._linkCount);void 0!=e&&null!=e||(e=h.substring(0,32));++m._linkCount;h=m._addScript(l,h);e='"+e+"";a._debugAlert&&alert(e);return a._documentWrite(e)};
m._getMenu=function(l,h,e,j,t){var s=m._getIdForControl(l,null);void 0!=j&&null!=j||(j="jmolMenu"+m._menuCount);++m._menuCount;s=typeof h;if(null!=s&&"object"==s&&h.length){var u=h.length;"number"!=typeof e||1==e?e=null:0>e&&(e=u);e='";a._debugAlert&&alert(e);return a._documentWrite(e)}};m._getRadio=function(l,h,e,j,t,s,u,b){0==m._radioGroupCount&&++m._radioGroupCount;s||(s="jmolRadioGroup"+(m._radioGroupCount-1));l=m._radio(l,h,e,j,t,s,u?u:s+"_"+m._radioCount,b?b:0);if(null==
l)return"";a._debugAlert&&alert(l);return a._documentWrite(l)};m._getRadioGroup=function(l,h,e,j,t,s){var u=typeof h;if("object"!=u||null==u||!h.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e=" ");var b=h.length;++m._radioGroupCount;j||(j="jmolRadioGroup"+(m._radioGroupCount-1));for(var c="",d=0;d";a._debugAlert&&alert(c);return a._documentWrite(c)}}})(Jmol);
(function(a){var m=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=m("_J2S");a._jarFile=m("_JAR");a._use=m("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(l,h,e){return a._Applet._get(l,h,e)};a.getJMEApplet=function(l,h,e,j){return a._JMEApplet._get(l,h,e,j)};a.getJSVApplet=function(l,h,e){return a._JSVApplet._get(l,h,e)};a.loadFile=function(a,h,e){a._loadFile(h,e)};a.script=function(a,h){a._checkDeferred(h)||
a._script(h)};a.scriptCheck=function(a,h){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(h)};a.scriptWait=function(a,h){return a._scriptWait(h)};a.scriptEcho=function(a,h){return a._scriptEcho(h)};a.scriptMessage=function(a,h){return a._scriptMessage(h)};a.scriptWaitOutput=function(a,h){return a._scriptWait(h)};a.scriptWaitAsArray=function(a,h){return a._scriptWaitAsArray(h)};a.search=function(a,h,e){a._search(h,e)};a.evaluateVar=function(a,h){return a._evaluate(h)};a.evaluate=function(a,h){return a._evaluateDEPRECATED(h)};
a.getAppletHtml=function(l,h){if(h){var e=a._document;a._document=null;l=a.getApplet(l,h);a._document=e}return l._code};a.getPropertyAsArray=function(a,h,e){return a._getPropertyAsArray(h,e)};a.getPropertyAsJavaObject=function(a,h,e){return a._getPropertyAsJavaObject(h,e)};a.getPropertyAsJSON=function(a,h,e){return a._getPropertyAsJSON(h,e)};a.getPropertyAsString=function(a,h,e){return a._getPropertyAsString(h,e)};a.getStatus=function(a,h){return a._getStatus(h)};a.resizeApplet=function(a,h){return a._resizeApplet(h)};
a.restoreOrientation=function(a,h){return a._restoreOrientation(h)};a.restoreOrientationDelayed=function(a,h,e){return a._restoreOrientationDelayed(h,e)};a.saveOrientation=function(a,h){return a._saveOrientation(h)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,h,e){a._info=h;2")};
a.jmolButton=function(l,h,e,j,m){return a.controls._getButton(l,h,e,j,m)};a.jmolCheckbox=function(l,h,e,j,m,s,u){return a.controls._getCheckbox(l,h,e,j,m,s,u)};a.jmolCommandInput=function(l,h,e,j,m,s){return a.controls._getCommandInput(l,h,e,j,m,s)};a.jmolHtml=function(l){return a._documentWrite(l)};a.jmolLink=function(l,h,e,j,m){return a.controls._getLink(l,h,e,j,m)};a.jmolMenu=function(l,h,e,j,m){return a.controls._getMenu(l,h,e,j,m)};a.jmolRadio=function(l,h,e,j,m,s,u,b){return a.controls._getRadio(l,
h,e,j,m,s,u,b)};a.jmolRadioGroup=function(l,h,e,j,m,s){return a.controls._getRadioGroup(l,h,e,j,m,s)};a.setCheckboxGroup=function(l,h){a.controls._cbSetCheckboxGroup(l,h,arguments)};a.setDocument=function(l){a._document=l};a.setXHTML=function(l){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;l&&(a._XhtmlElement=document.getElementById(l),a._XhtmlAppendChild=!0)};a.setAppletCss=function(l,h){null!=l&&(a._appletCssClass=l);a._appletCssText=h?h+" ":l?'class="'+l+'" ':""};a.setButtonCss=function(l,
h){null!=l&&(a.controls._buttonCssClass=l);a.controls._buttonCssText=h?h+" ":l?'class="'+l+'" ':""};a.setCheckboxCss=function(l,h){null!=l&&(a.controls._checkboxCssClass=l);a.controls._checkboxCssText=h?h+" ":l?'class="'+l+'" ':""};a.setRadioCss=function(l,h){null!=l&&(a.controls._radioCssClass=l);a.controls._radioCssText=h?h+" ":l?'class="'+l+'" ':""};a.setLinkCss=function(l,h){null!=l&&(a.controls._linkCssClass=l);a.controls._linkCssText=h?h+" ":l?'class="'+l+'" ':""};a.setMenuCss=function(l,h){null!=
l&&(a.controls._menuCssClass=l);a.controls._menuCssText=h?h+" ":l?'class="'+l+'" ':""};a.setAppletSync=function(l,h,e){a._syncedApplets=l;a._syncedCommands=h;a._syncedReady={};a._isJmolJSVSync=e};a.setGrabberOptions=function(l){a._grabberOptions=l};a.setAppletHtml=function(l,h){l._code&&(a.$html(h,l._code),l._init&&!l._deferApplet&&l._init())};a.coverApplet=function(a,h){a._cover&&a._cover(h)};a.setFileCaching=function(l,h){l?l._cacheFiles=h:a.fileCache=h?{}:null};a.resetView=function(l,h){a.View.resetView(l,
h)};a.updateView=function(a,h,e){a._updateView(h,e)};a.getChemicalInfo=function(l,h,e){h||(h="name");"string"!=typeof l&&(l=l._getSmiles());return a._getNCIInfo(l,h,e)};a.saveImage=function(l,h,e){h=(h||"png").toLowerCase();e||(e=l.id+"."+h.toLowerCase());0>e.indexOf(".")&&(e+="."+h);switch(l._viewType){case "Jmol":return l._script('write PNGJ "'+e+'"');case "JSV":if("PDF"==h)return l._script("write PDF");break;case "JME":return l._script("print")}a._saveFile(e,l._canvas.toDataURL("image/png"))}})(Jmol);
LoadClazz=function(){c$=null;window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Clazz={_isQuiet:!1,_debugging:!1},function(a,m){try{a._debugging=0<=document.location.href.indexOf("j2sdebug")}catch(l){}var h=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(a,b){h.push(a);window[a]=b};a.getGlobals=function(){return h.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console=
a)};var e=null;a._startProfiling=function(a){e=a&&self.JSON?{}:null};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._hashCode=0;var j=a._O.prototype;j.equals=function(a){return this==a};j.hashCode=function(){return this._$hashcode||(this._$hashcode=++a._hashCode)};j.getClass=function(){return a.getClass(this)};
j.clone=function(){return a.clone(this)};a.clone=function(a){var b=a instanceof Array?Array(a.length):new a.constructor,c;for(c in a)b[c]=a[c];return b};j.finalize=function(){};j.notify=function(){};j.notifyAll=function(){};j.wait=function(){};j.to$tring=Object.prototype.toString;j.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(b,c){c&&(b.__CLASS_NAME__=b.prototype.__CLASS_NAME__=c);if(a._supportsNativeObject)for(var d=0;de)return"["==d.charAt(0)?a.extractClassName(d):d.replace(/[^a-zA-Z0-9]/g,"");var e=e+8,h=d.indexOf("(",e);if(0>h)break;d=d.substring(e,h);if(0<=d.indexOf("Array"))return"Array";d=d.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==d||""==d?"Function":d;case "object":if(b.__CLASS_NAME__)return b.__CLASS_NAME__;if(!b.constructor)break;
if(!b.constructor.__CLASS_NAME__){if(b instanceof Number)return"Number";if(b instanceof Boolean)return"Boolean";if(b instanceof Array||b.BYTES_PER_ELEMENT)return"Array";d=b.toString();if("["==d.charAt(0))return a.extractClassName(d)}return a.getClassName(b.constructor,!0)}return"Object"};a.getClass=function(b){if(!b)return a._O;if("function"==typeof b)return b;if(b instanceof a.CastedNull)b=b.clazzName;else switch(typeof b){case "string":return String;case "object":if(!b.__CLASS_NAME__)return b.constructor||
a._O;b=b.__CLASS_NAME__;break;default:return b.constructor}return a.evalType(b,!0)};var t=function(b,c){for(var d=0;dd;){if(e.implementz)for(var h=e.implementz,j=0;j(""+b).indexOf("Error"))return!1;System.out.println(a.getStackTrace());return!0}return d==Exception||d==Throwable||d==NullPointerException&&c(b)};a.getStackTrace=function(a){a||
(a=25);var b="\n",c=arguments.callee,d=0>a;d&&(a=-a);try{for(var e=0;e",b=b+(e+" "+(c.exName?(c.claxxOwner?c.claxxOwner.__CLASS_NAME__+".":"")+c.exName+h.replace(/function /,""):h)+"\n");if(c==c.caller){b+="\n";break}if(d)for(var j=c.arguments,l=0;lU.indexOf(j)&&(U+=j+"\n");e[j]||(e[j]=0);e[j]++}if(fx.lastParams==h.typeString&&fx.lastClaxxRef===d){if(h.hasCastedNull){d=[];for(k=0;kx[B]){za=!1;break}za&&(x[z.length]=u,F.push(x))}if(0==F.length)F=null;else{P=F[0];for(u=1;urb(q,c)&&q.push(c);s&&(s.claxxOwner===c?(m[s.funParams]=s,s.claxxOwner=null,s.funParams=null):s.claxxOwner||(m["\\unknown"]=s));h.exClazz=c;m[j]=h;return m};duplicatedMethods={};var E=function(b,c,d){var e=b.prototype[c];if(e&&(e.claxxOwner||e.claxxReference)===b)key=b.__CLASS_NAME__+"."+c+d,
(b=duplicatedMethods[key])?(c="Warning! Duplicate method found for "+key,System.out.println(c),a.alert(c),duplicatedMethods[key]=b+1):duplicatedMethods[key]=1};a.showDuplicates=function(a){var b="",c=duplicatedMethods,d=0,e;for(e in c)1c.length)break;if(c.indexOf(j)==c.length-j.length){c=c.substring(0,c.length-j.length+1);break}}else c=a._Loader.getClasspathFor(d,!0);else(e=a.binaryFolders)&&e.length&&(c=e[0]);c||(c="j2s/");c=c.replace(/\\/g,"/");e=c.length;e=c.charAt(e-1);"/"!=e&&(c+="/");this.base?d=c+b:(e=d.lastIndexOf("."),d=-1==e||this.base?c+b:c+d.substring(0,e).replace(/\./g,"/")+"/"+b)}c=null;try{if(0>d.indexOf(":/")){var q=
document.location.href.split("?")[0].split("/");q[q.length-1]=d;d=q.join("/")}c=new java.net.URL(d)}catch(s){}q=null==c?null:m._getFileData(d.toString());if(!q||"error"==q||0==q.indexOf("[Exception"))return null;q=(new java.lang.String(q)).getBytes();q=new java.io.BufferedInputStream(new java.io.ByteArrayInputStream(q));q.url=c;return q},defineMethod:function(b,c,d){a.defineMethod(this,b,c,d)},defineStaticMethod:function(b,c,d){a.defineMethod(this,b,c,d);this[b]=this.prototype[b]},makeConstructor:function(b,
c){a.makeConstructor(this,b,c)}};var Pa=[];a.pu$h=function(a){a||(a=self.c$);a&&Pa.push(a)};a.p0p=function(){return Pa.pop()};a.decorateAsClass=function(b,c,d,e,h,j){var l=null;c&&(l=c.__PKG_NAME__,l||(l=c.__CLASS_NAME__));var m=(l?l+".":"")+d;a._Loader._classPending[m]&&(delete a._Loader._classPending[m],a._Loader._classCountOK++,a._Loader._classCountPending--);a._Loader&&a._Loader._checkLoad&&System.out.println("decorating class "+l+"."+d);(l=a.unloadedClasses[m])&&(b=l);db(b,c,d);j?a.inheritClass(b,
e,j):e&&a.inheritClass(b,e);h&&a.implementOf(b,h);return b};var db=function(b,c,d){var e;c?c.__PKG_NAME__?(e=c.__PKG_NAME__+"."+d,c[d]=b,c===java.lang&&a.setGlobal(d,b)):(e=c.__CLASS_NAME__+"."+d,c[d]=b):(e=d,a.setGlobal(d,b));a.extendJO(b,e);c=a.innerFunctionNames;for(d=0;da?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;var gb=function(a,b){a||(a=0);if("object"==typeof a)var c=a;else for(var c=Array(a),d=0;d>3;c._fake=!0;return c},va=function(a,b){a||(a=0);b||(b=this.length);if(this._fake){var c=new this.constructor(b-a);System.arraycopy(this,a,c,0,b-a);return c}return new this.constructor(this.buffer.slice(a*this.BYTES_PER_ELEMENT,b*this.BYTES_PER_ELEMENT))};!0==(a.haveInt32=!!(self.Int32Array&&self.Int32Array!=Array))?Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort):(Int32Array=function(a){return gb(a,32)},Int32Array.prototype.sort=Array.prototype.sort,
Int32Array.prototype.toString=function(){return"[object Int32Array]"});Int32Array.prototype.slice||(Int32Array.prototype.slice=function(){return va.apply(this,arguments)});Int32Array.prototype.clone=function(){var a=this.slice();a.BYTES_PER_ELEMENT=4;return a};!0==(a.haveFloat64=!!(self.Float64Array&&self.Float64Array!=Array))?Float64Array.prototype.sort||(Float64Array.prototype.sort=Array.prototype.sort):(Float64Array=function(a){return gb(a,64)},Float64Array.prototype.sort=Array.prototype.sort,
Float64Array.prototype.toString=function(){return"[object Float64Array]"});Float64Array.prototype.slice||(Float64Array.prototype.slice=function(){return va.apply(this,arguments)});Float64Array.prototype.clone=function(){return this.slice()};a.newArray=function(a,b,c,d){if(-1!=a||2==arguments.length)return ma(arguments,0);a=b.slice(c,d);a.BYTES_PER_ELEMENT=b.BYTES_PER_ELEMENT;return a};var ma=function(a,b){var c=a[0];"string"==typeof c&&(c=c.charCodeAt(0));var d=a.length-1,e=a[d];if(1c&&(c=e);switch(b){case 8:return d=new Int8Array(c),d.BYTES_PER_ELEMENT=1,d;case 32:return d=new Int32Array(c),d.BYTES_PER_ELEMENT=4,d;case 64:return d=new Float64Array(c),d.BYTES_PER_ELEMENT=8,d;default:d=0>c?e:Array(c);d.BYTES_PER_ELEMENT=0;if(0d)for(;0<=--e;)c[d++]=a[b++];else{d+=e;for(b+=e;0<=--e;)a[--d]=a[--b]}},currentTimeMillis:function(){return(new Date).getTime()},gc:function(){},getProperties:function(){return System.props},getProperty:function(a,b){if(System.props)return System.props.getProperty(a,b);var c=System.$props[a];
if("undefined"!=typeof c)return c;if(0=x.STATUS_LOAD_COMPLETE))j?window.setTimeout(f,25):f()}else{var m=
b.getClasspathFor(c);l=e[m];if(!l)for(j=E.length;0<=--j;)if(E[j].path==m||E[j].name==c){l=!0;break}if(l){if(f&&(l=H(c)))if(l.onLoaded){if(f!=l.onLoaded){var r=l.onLoaded,q=f;l.onLoaded=function(){r();q()}}}else l.onLoaded=f}else{l=a.unloadedClasses[c]&&H(c)||new x;l.name=c;l.path=m;l.isPackage=m.lastIndexOf("package.js")==m.length-10;X(m,c,l);l.onLoaded=f;l.status=x.STATUS_KNOWN;c=!1;for(j=E.length;0<=--j;)if(E[j].status!=x.STATUS_LOAD_COMPLETE){c=!0;break}if(l.isPackage){for(j=E.length;0<=--j&&!E[j].isPackage;)E[j+
1]=E[j];E[++j]=l}else c&&E.push(l);if(!c){var s=!1;f&&(s=ha,ha=!0);h&&(f=null);Ja(d,l,!0);V(l,l.path,l.requiredBy,!1,f?function(){ha=s;f()}:null)}}}};b.loadPackage=function(a,c){c||(c=null);window[a+".registered"]=!1;b.loadPackageClasspath(a,b.J2SLibBase||(b.J2SLibBase=b.getJ2SLibBase()||"j2s/"),!0,c)};b.jarClasspath=function(a,b){b instanceof Array||(b=[b]);C(b);m._debugCore&&(a=a.replace(/\.z\./,"."));for(var c=b.length;0<=--c;)D["#"+b[c]]=a;D["$"+a]=b};b.registerPackages=function(c,d){for(var e=
b.getClasspathFor(c+".*",!0),f=0;f>");j=e[d];e[d]=!0;Ya(E,d);M=!0;sa=!1;b._checkLoad&&System.out.println("\t"+d+(f?"\n -- required by "+f:"")+" ajax="+M+" async="+sa);f=d;a._debugging&&(d=d.replace(/\.z\.js/,".js"));j||System.out.println("loadScript "+d);b.onScriptLoading(d);if(M&&!sa){var r=m._getFileData(d);try{U(d,f,r,j)}catch(q){alert(q+" loading file "+d+" "+c.name+" "+a.getStackTrace())}l&&l()}else c={dataType:"script",async:!0,type:"GET",url:d,success:ua(d,!1,l),error:ua(d,!0,l)},h++,
j?setTimeout(c.success,0):m.$ajax(c)},ua=function(c,d,e){a.getStackTrace();return function(){f&&this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0q;q++)for(;m=l[q](x.STATUS_CONTENT_LOADED);)1==q&&r===m&&(m.status=x.STATUS_LOAD_COMPLETE),updateNode(m),r=m;for(;!(ma=[],!na(d,c)););for(q=0;2>q;q++)for(r=null;(m=l[q](x.STATUS_DECLARED))&&r!==m;)updateNode(r=m);r=[];for(q=0;2>q;q++)for(;m=l[q](x.STATUS_DECLARED);)r.push(m),m.status=x.STATUS_LOAD_COMPLETE;if(r.length){for(q=0;q=x.STATUS_DECLARED););if(0<=f){if(b._checkLoad){var h;System.out.println("cycle found loading "+
c+" for "+a)}for(;fh;h++){k=j[h];for(f=k.length;0<=--f;)if(k[f].status==x.STATUS_DECLARED&&na(k[f],c))return!0}d.length=e;return!1};b._classCountPending=0;b._classCountOK=
0;b._classPending={};b.showPending=function(){var a=[],c;for(c in b._classPending){var d=H(c);d?(a.push(d),System.out.println(va("","",d,"",0))):alert("No node for "+c)}return a};var va=function(a,b,c,d,e){b+="--"+c.name;a+=b+"\n";if(5=x.STATUS_LOAD_COMPLETE)Da(a);else{var c=!0;if(a.musts.length&&a.declaration)for(var d=a.musts.length,e=d;0<=--e;){var f=a.musts[e];f.requiredBy=a;if(f.statusx.STATUS_KNOWN&&!a.declaration||Ta(a.musts,x.STATUS_LOAD_COMPLETE)&&Ta(a.optionals,x.STATUS_LOAD_COMPLETE)){c=x.STATUS_LOAD_COMPLETE;if(!wa(a,c))return!1;if(a.declaration&&a.declaration.clazzList){j=0;k=a.declaration.clazzList;for(l=k.length;jc.indexOf("Opera")&&document.all?0==h?d:j:0>c.indexOf("Gecko")?h==e.offsetHeight&&h==e.scrollHeight?d:j:d;wa!=c&&(wa=c,O.style.bottom=wa+4+"px");b&&na()}};var jb=function(a){if(a)for(var b=a.childNodes.length;0<=--b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&jb(c);try{a.removeChild(c)}catch(d){}}}},kb=function(a){L&&a==aa.DEFAULT_OPACITY&&(window.clearTimeout(L),L=null);ga=a;navigator.userAgent.toLowerCase();O.style.filter="Alpha(Opacity="+a+")";O.style.opacity=a/100},ub=
function(){aa.hideMonitor()},ya=!1,na=function(){"none"!=O.style.display&&(ga==aa.DEFAULT_OPACITY?(L=window.setTimeout(function(){na()},750),ga-=5):0<=ga-10?(kb(ga-10),L=window.setTimeout(function(){na()},40)):O.style.display="none")},C=a.Console,ba=System;C.maxTotalLines=1E4;C.setMaxTotalLines=function(a){C.maxTotalLines=0C.maxTotalLines){for(var d=0;dc.childNodes.length)l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",C.linesCount++;else try{l=c.childNodes[c.childNodes.length-
1]}catch(m){l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",C.linesCount++}var q=document.createElement("SPAN");l.appendChild(q);q.style.whiteSpace="nowrap";b&&(q.style.color=b);l=h[d];0==l.length&&(l=V);q.appendChild(document.createTextNode(l));C.pinning||(c.scrollTop+=100);C.metLineBreak=d!=j||e}d=c.parentNode.className;!C.pinning&&(d&&-1!=d.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);C.lastOutputTime=(new Date).getTime()};C.clear=function(){try{C.metLineBreak=
!0;var a=window["j2s.lib"],b=a&&a.console;if(b&&(b=document.getElementById(b))){for(var c=b.childNodes,d=c.length;0<=--d;)b.removeChild(c[d]);C.linesCount=0}}catch(e){}};a.alert=function(a){C.consoleOutput(a+"\r\n")};ba.out.print=function(a){C.consoleOutput(a)};ba.out.flush=function(){};ba.out.println=function(a){C.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};ba.out.write=function(a,b,c){ba.out.print(String.instantialize(a).substring(b,b+c))};ba.err.__CLASS_NAME__="java.io.PrintStream";ba.err.print=
function(a){C.consoleOutput(a,"red")};ba.err.println=function(a){C.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};ba.err.write=function(a,b,c){ba.err.print(String.instantialize(a).substring(b,b+c))}}(Clazz,Jmol))};Jmol.___JmolDate="$Date: 2020-09-22 08:42:29 -0500 (Tue, 22 Sep 2020) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.31.7";
| |