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