arguments.length&&(c=1);var e=this._savedOrientations[a];return!e||""==e?e.replace(/1\.0/,
c):this._scriptWait(e)};c._resizeApplet=function(b){function c(b,d){var e=""+b;return 0==e.length?d?"":a._allowedJmolSize[2]:e.indexOf("%")==e.length-1?e:1>=(b=parseFloat(b))&&0a._allowedJmolSize[1]?a._allowedJmolSize[1]:b)+(d?d:"")}var e;"object"==typeof b&&null!=b?(e=b[0]||b.width,b=b[1]||b.height):e=b;e=[c(e,"px"),c(b,"px")];b=a._getElement(this,"appletinfotablediv");b.style.width=e[0];b.style.height=
e[1];this._containerWidth=e[0];this._containerHeight=e[1];this._is2D&&a._repaint(this,!0)};c._search=function(b,c){a._search(this,b,c)};c._searchDatabase=function(b,c,e){if(this._2dapplet&&this._2dapplet._isEmbedded&&!a.$(this,"appletdiv:visible")[0])return this._2dapplet._searchDatabase(b,c,e);this._showInfo(!1);0<=b.indexOf("?")?a._getInfoFromDatabase(this,c,b.split("?")[0]):(e||(e=a._getScriptForDatabase(c)),b=c+b,this._currentView=null,this._searchQuery=b,this._loadFile(b,e,b))};c._loadFile=function(b,
c,e){this._showInfo(!1);c||(c="");this._thisJmolModel=""+Math.random();this._fileName=b;if(!this._scriptLoad(b,c)){var h=this;a._loadFileData(this,b,function(a){h.__loadModel(a,c,e)},function(){h.__loadModel(null)})}};c._scriptLoad=function(a,c){c||(c="");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+'";'+c):this._applet.openFile(a);this._checkDeferred("");return!0};
c.__loadModel=function(b,c,e){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:e,data:b}))};c._loadMolData=function(a,c,e){c||(c="");e=e?"append":"model";this._applet.scriptWait('load DATA "'+e+'"'+a+'\nEND "'+e+'" ;'+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._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 e=[c+1];a.View.updateAtomPick(this,e);this._updateAtomPick(e)}};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 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,c){var b=h._scripts.length;h._scripts[b]=[a,c];return b};h._getIdForControl=function(a,c){return"string"==typeof a?a:!c||!a._canScript||a._canScript(c)?a._id:null};h._radio=function(a,c,b,j,k,l,d,g){var f=h._getIdForControl(a,c);if(null==f)return null;++h._radioCount;void 0!=l&&null!=l||(l="jmolRadioGroup"+(h._radioGroupCount-1));if(!c)return"";void 0!=d&&null!=d||(d="jmolRadio"+(h._radioCount-1));void 0!=b&&null!=b||(b=c.substring(0,32));k||(k="");a="";h._actions[d]=
h._addScript(f,c);c='";0<=b.toLowerCase().indexOf("")&&(c+=a,a="");return c+('"+a+k)};h._scriptExecute=function(e,c){var b=a._applets[c[0]],j=c[1];if("object"==typeof j)j[0](e,j,
b);else"function"==typeof j?j(b):a.script(b,j)};h.__checkScript=function(a,c){var b=0<=c.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(c.value);c.style.color=b?"black":"red";return b};h.__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}};h._commandKeyPress=function(e,c,b){e=13==e?13:window.event?window.event.keyCode:e?e.keyCode||e.which:0;var j=document.getElementById(c),
k=a._applets[b];switch(e){case 13:return c=j.value,h._scriptExecute(j,[b,c]),j._cmds||(j._cmds=[],j._cmddir=0,j._cmdpt=-1,j._cmdadd=0),c&&0==j._cmdadd?(++j._cmdpt,j._cmds.splice(j._cmdpt,0,c),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,c){h._element=a;1==arguments.length&&(c=h._actions[a.id]);
h._scriptExecute(a,h._scripts[c])};h._menuSelected=function(a){var c=a.value;if(void 0!=c)h._scriptExecute(a,h._scripts[c]);else{c=a.length;if("number"==typeof c)for(var b=0;b";a._debugAlert&&
alert(c);return a._documentWrite(c)};h._getCheckbox=function(e,c,b,j,k,l,d){var g=h._getIdForControl(e,c);null!=g&&(g=h._getIdForControl(e,b));if(null==g)return"";void 0!=l&&null!=l||(l="jmolCheckbox"+h._checkboxCount);++h._checkboxCount;if(void 0==c||null==c||void 0==b||null==b)alert("jmolCheckbox requires two scripts");else if(void 0==j||null==j)alert("jmolCheckbox requires a label");else return h._actions[l]=[h._addScript(g,c),h._addScript(g,b)],e="",k='",0<=j.toLowerCase().indexOf("")&&(k+=e,e=""),k+='"+e,a._debugAlert&&alert(k),a._documentWrite(k)};h._getCommandInput=function(e,c,b,j,k,l){e=h._getIdForControl(e,"x");if(null==e)return"";void 0!=j&&null!=j||(j="jmolCmd"+h._cmdCount);
void 0!=c&&null!=c||(c="Execute");void 0!=b&&!isNaN(b)||(b=60);void 0!=l||(l="help");++h._cmdCount;c='";a._debugAlert&&alert(c);return a._documentWrite(c)};h._getLink=function(e,
c,b,j,k){e=h._getIdForControl(e,c);if(null==e)return"";void 0!=j&&null!=j||(j="jmolLink"+h._linkCount);void 0!=b&&null!=b||(b=c.substring(0,32));++h._linkCount;c=h._addScript(e,c);b='"+b+"";a._debugAlert&&alert(b);return a._documentWrite(b)};
h._getMenu=function(e,c,b,j,k){var l=h._getIdForControl(e,null);void 0!=j&&null!=j||(j="jmolMenu"+h._menuCount);++h._menuCount;l=typeof c;if(null!=l&&"object"==l&&c.length){var d=c.length;"number"!=typeof b||1==b?b=null:0>b&&(b=d);b='";a._debugAlert&&alert(b);return a._documentWrite(b)}};h._getRadio=function(e,c,b,j,k,l,d,g){0==h._radioGroupCount&&++h._radioGroupCount;l||(l="jmolRadioGroup"+(h._radioGroupCount-1));e=h._radio(e,c,b,j,k,l,d?d:l+"_"+h._radioCount,g?g:0);if(null==
e)return"";a._debugAlert&&alert(e);return a._documentWrite(e)};h._getRadioGroup=function(e,c,b,j,k,l){var d=typeof c;if("object"!=d||null==d||!c.length)alert("invalid arrayOfRadioButtons");else{void 0!=b&&null!=b||(b=" ");var g=c.length;++h._radioGroupCount;j||(j="jmolRadioGroup"+(h._radioGroupCount-1));for(var f="",n=0;n";a._debugAlert&&alert(f);return a._documentWrite(f)}}})(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(e,c,b){return a._Applet._get(e,c,b)};a.getJMEApplet=function(e,c,b,j){return a._JMEApplet._get(e,c,b,j)};a.getJSVApplet=function(e,c,b){return a._JSVApplet._get(e,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(e,c){if(c){var b=a._document;a._document=null;e=a.getApplet(e,c);a._document=b}return e._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(e,c,b,j,h){return a.controls._getButton(e,c,b,j,h)};a.jmolCheckbox=function(e,c,b,j,h,l,d){return a.controls._getCheckbox(e,c,b,j,h,l,d)};a.jmolCommandInput=function(e,c,b,j,h,l){return a.controls._getCommandInput(e,c,b,j,h,l)};a.jmolHtml=function(e){return a._documentWrite(e)};a.jmolLink=function(e,c,b,j,h){return a.controls._getLink(e,c,b,j,h)};a.jmolMenu=function(e,c,b,h,k){return a.controls._getMenu(e,c,b,h,k)};a.jmolRadio=function(e,c,b,h,k,l,d,g){return a.controls._getRadio(e,
c,b,h,k,l,d,g)};a.jmolRadioGroup=function(e,c,b,h,k,l){return a.controls._getRadioGroup(e,c,b,h,k,l)};a.setCheckboxGroup=function(e,c){a.controls._cbSetCheckboxGroup(e,c,arguments)};a.setDocument=function(e){a._document=e};a.setXHTML=function(e){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;e&&(a._XhtmlElement=document.getElementById(e),a._XhtmlAppendChild=!0)};a.setAppletCss=function(e,c){null!=e&&(a._appletCssClass=e);a._appletCssText=c?c+" ":e?'class="'+e+'" ':""};a.setButtonCss=function(e,
c){null!=e&&(a.controls._buttonCssClass=e);a.controls._buttonCssText=c?c+" ":e?'class="'+e+'" ':""};a.setCheckboxCss=function(e,c){null!=e&&(a.controls._checkboxCssClass=e);a.controls._checkboxCssText=c?c+" ":e?'class="'+e+'" ':""};a.setRadioCss=function(e,c){null!=e&&(a.controls._radioCssClass=e);a.controls._radioCssText=c?c+" ":e?'class="'+e+'" ':""};a.setLinkCss=function(e,c){null!=e&&(a.controls._linkCssClass=e);a.controls._linkCssText=c?c+" ":e?'class="'+e+'" ':""};a.setMenuCss=function(e,c){null!=
e&&(a.controls._menuCssClass=e);a.controls._menuCssText=c?c+" ":e?'class="'+e+'" ':""};a.setAppletSync=function(e,c,b){a._syncedApplets=e;a._syncedCommands=c;a._syncedReady={};a._isJmolJSVSync=b};a.setGrabberOptions=function(e){a._grabberOptions=e};a.setAppletHtml=function(e,c){e._code&&(a.$html(c,e._code),e._init&&!e._deferApplet&&e._init())};a.coverApplet=function(a,c){a._cover&&a._cover(c)};a.setFileCaching=function(e,c){e?e._cacheFiles=c:a.fileCache=c?{}:null};a.updateView=function(a,c,b){a._updateView(c,
b)};a.getChemicalInfo=function(e,c,b){c||(c="name");"string"!=typeof applet_or_Identifier&&(e=e._getSmiles());return a._getNCIInfo(e,c,b)};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(){c$=null;window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Clazz=function(){},function(a,h){var e=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(a,b){e.push(a);window[a]=b};a.getGlobals=function(){return e.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console=a)};var c=window["j2s.doProfile"]&&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;var b=a._O.prototype;b.equals=function(a){return this==a};b.hashCode=function(){try{return this.toString().hashCode()}catch(a){var b=":",c;for(c in this)b+=c+":";return b.hashCode()}};b.getClass=function(){return a.getClass(this)};b.clone=function(){return a.clone(this)};a.clone=
function(a){var b=new a.constructor,c;for(c in a)b[c]=a[c];return b};b.finalize=function(){};b.notify=function(){};b.notifyAll=function(){};b.wait=function(){};b.to$tring=Object.prototype.toString;b.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)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 j=function(b,c){for(var d=0;dd;){if(e.implementz)for(var f=e.implementz,g=0;g",b=b+(d+" "+(c.exName?(c.claxxOwner?c.claxxOwner.__CLASS_NAME__+".":"")+c.exName+e.replace(/function /,""):e)+"\n");if(c==c.caller){b+=
"\n";break}}return b};a.makeConstructor=function(b,c,d){a.defineMethod(b,"construct",c,d);b.con$truct&&(b.con$truct.index=b.con$truct.stacks.length)};a.overrideConstructor=function(b,c,d){a.overrideMethod(b,"construct",c,d);b.con$truct&&(b.con$truct.index=b.con$truct.stacks.length)};a.defineMethod=function(b,e,f,h){a.assureInnerClass&&a.assureInnerClass(b,f);f.exName=e;h=S(h);var j=b.prototype,k=j[e];a._Loader._checkLoad&&t(b,e,h);if(!k||k.claxxOwner===b&&k.funParams==h)return f.funParams=
h,f.claxxOwner=b,f.exClazz=b,j[e]=f;var l=null,m=k.stacks;m||(m=[],l=k,k.claxxOwner&&(m[0]=l.claxxOwner));if(!k.stacks||k.claxxReference!==b){var q=++ma,k=function(){var b;a:{var e=arguments.callee.claxxReference,F=arguments.callee.methodName;b=arguments;fx=this[F];var f=a.getParamsType(b);if(c){var G=q+" "+e.__CLASS_NAME__+" "+F+" "+JSON.stringify(f);c[G]||(c[G]=0);c[G]++}if(fx.lastParams==f.typeString&&fx.lastClaxxRef===e){if(f.hasCastedNull){e=[];for(F=0;Fn[B]){na=!1;break}na&&(n[k.length]=m,u.push(n))}if(0==u.length)u=null;else{T=u[0];for(m=1;mK(m,b)&&m.push(b);l&&(l.claxxOwner===b?(k[l.funParams]=l,l.claxxOwner=null,l.funParams=null):l.claxxOwner||(k["\\unknown"]=l));f.exClazz=b;k[h]=f;return k};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)1d.length)break;if(d.indexOf(h)==d.length-h.length){d=d.substring(0,d.length-h.length+1);break}}else d=a._Loader.getClasspathFor(e,!0);else(f=a.binaryFolders)&&f.length&&(d=f[0]);d||(d="j2s/");d=d.replace(/\\/g,"/");f=d.length;f=d.charAt(f-1);"/"!=f&&(d+="/");this.base?c.url=d+b:(f=e.lastIndexOf("."),
c.url=-1==f||this.base?d+b:d+e.substring(0,f).replace(/\./g,"/")+"/"+b)}return c},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 w=[];a.pu$h=function(a){a||(a=self.c$);a&&w.push(a)};a.p0p=function(){return w.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&&
a._Loader._checkLoad&&(a._Loader._classPending[j]&&(delete a._Loader._classPending[j],a._Loader._classCountOK++,a._Loader._classCountPending--),System.out.println("decorating class "+h+"."+d));(h=a.unloadedClasses[j])&&(b=h);L(b,c,d);g?a.inheritClass(b,e,g):e&&a.inheritClass(b,e);f&&a.implementOf(b,f);return b};var L=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;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;cd?f:Array(d),g=d;0<=--g;)b[g]=f;return b;default:for(var h=Array(e),g=0;gd)d=f.length;var g=0>f?Array(d):c?new Int32Array(d):new Float64Array(d);if(e)for(e=d;0<=--e;)g[e]=f[e];return g}for(f=Array(e);0<=--e;)f[e]=b[e+1];g=Array(d);for(e=0;e=m.STATUS_LOAD_COMPLETE))h?window.setTimeout(f,25):f()}else{var k=b.getClasspathFor(c);j=e[k];if(!j)for(h=z.length;0<=--h;)if(z[h].path==k||z[h].name==c){j=!0;break}if(j){if(f&&
(j=C(c)))if(j.onLoaded){if(f!=j.onLoaded){var l=j.onLoaded,s=f;j.onLoaded=function(){l();s()}}}else j.onLoaded=f}else{j=a.unloadedClasses[c]&&C(c)||new m;j.name=c;j.path=k;j.isPackage=k.lastIndexOf("package.js")==k.length-10;ba(k,c,j);j.onLoaded=f;j.status=m.STATUS_KNOWN;c=!1;for(h=z.length;0<=--h;)if(z[h].status!=m.STATUS_LOAD_COMPLETE){c=!0;break}if(j.isPackage){for(h=z.length;0<=--h&&!z[h].isPackage;)z[h+1]=z[h];z[++h]=j}else c&&z.push(j);if(!c){var n=!1;f&&(n=M,M=!0);g&&(f=null);W(d,j,!0);I(j,
j.path,j.requiredBy,!1,f?function(){M=n;f()}:null)}}}};var D=function(a){return null!=window[a+".registered"]&&!v["@"+a]};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=[classes]);x(b);for(var c=b.length;0<=--c;)v["#"+b[c]]=a;v["$"+a]=b};b.registerPackages=function(c,d){for(var e=b.getClasspathFor(c+".*",!0),f=0;f>");e[d]=!0;aa(z,d);b._checkLoad&&(ca=!0,da=!1,System.out.println("\t"+
d+(g?"\n -- required by "+g:"")+" ajax="+ca+" async="+da));b.onScriptLoading(d);if(ca&&!da){g=h._getFileData(d);try{K(d,g)}catch(l){alert(l+" 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.$ajax(c)},O=function(c,d,e){a.getStackTrace();return function(){q&&this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0p;p++)for(;k=j[p](m.STATUS_CONTENT_LOADED);)1==p&&r===k&&(k.status=m.STATUS_LOAD_COMPLETE),
updateNode(k),r=k;for(;!(P=[],!R(d,c)););for(p=0;2>p;p++)for(r=null;(k=j[p](m.STATUS_DECLARED))&&r!==k;)updateNode(r=k);r=[];for(p=0;2>p;p++)for(;k=j[p](m.STATUS_DECLARED);)r.push(k),k.status=m.STATUS_LOAD_COMPLETE;if(r.length){for(p=0;p=m.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==m.STATUS_DECLARED&&R(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=C(c);d?(a.push(d),System.out.println(S("","",d,"",0))):alert("No node for "+c)}return a};var S=function(a,b,c,d,e){b+="--"+c.name;a+=b+"\n";if(5=m.STATUS_LOAD_COMPLETE)Q(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.statusm.STATUS_KNOWN&&!a.declaration||U(a.musts,m.STATUS_LOAD_COMPLETE)&&U(a.optionals,m.STATUS_LOAD_COMPLETE)){c=m.STATUS_LOAD_COMPLETE;if(!Y(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;R!=c&&(R=c,x.style.bottom=R+4+"px");b&&P()}};var Z=function(a){if(a)for(var b=a.childNodes.length;0<=--b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&Z(c);try{a.removeChild(c)}catch(d){}}}},$=function(a){I&&a==A.DEFAULT_OPACITY&&(window.clearTimeout(I),I=null);N=a;navigator.userAgent.toLowerCase();x.style.filter="Alpha(Opacity="+
a+")";x.style.opacity=a/100},la=function(){A.hideMonitor()},Y=!1,P=function(){"none"!=x.style.display&&(N==A.DEFAULT_OPACITY?(I=window.setTimeout(function(){P()},750),N-=5):0<=N-10?($(N-10),I=window.setTimeout(function(){P()},40)):x.style.display="none")},q=a.Console,D=System;q.maxTotalLines=1E4;q.setMaxTotalLines=function(a){q.maxTotalLines=0q.maxTotalLines){for(var d=0;dc.childNodes.length)h=document.createElement("DIV"),c.appendChild(h),h.style.whiteSpace="nowrap",q.linesCount++;else try{h=c.childNodes[c.childNodes.length-
1]}catch(j){h=document.createElement("DIV"),c.appendChild(h),h.style.whiteSpace="nowrap",q.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=E);k.appendChild(document.createTextNode(h));q.pinning||(c.scrollTop+=100);q.metLineBreak=d!=g||e}d=c.parentNode.className;!q.pinning&&(d&&-1!=d.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);q.lastOutputTime=(new Date).getTime()};q.clear=function(){try{q.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]);q.linesCount=0}}catch(e){}};a.alert=function(a){q.consoleOutput(a+"\r\n")};D.out.print=function(a){q.consoleOutput(a)};D.out.println=function(a){q.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};D.out.write=function(a,b,c){D.out.print(String.instantialize(a).substring(b,b+c))};D.err.__CLASS_NAME__="java.io.PrintStream";D.err.print=function(a){q.consoleOutput(a,
"red")};D.err.println=function(a){q.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};D.err.write=function(a,b,c){D.err.print(String.instantialize(a).substring(b,b+c))}}(Clazz,Jmol))};Jmol.___JmolDate="$Date: 2015-04-09 10:39:43 -0500 (Thu, 09 Apr 2015) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.3.13_2015.04.09";
| |