(function(a,m){"object"===typeof module&&"object"===typeof module.exports?module.exports=a.document?m(a,!0):function(a){if(!a.document)throw Error("jQuery requires a window with a document");return m(a)}:m(a)})("undefined"!==typeof window?window:this,function(a,m){function l(f){var v=f.length,a=g.type(f);return"function"===a||g.isWindow(f)?!1:1===f.nodeType&&v?!0:"array"===a||0===v||"number"===typeof v&&0")).appendTo(a.documentElement),a=(eb[0].contentWindow||eb[0].contentDocument).document,a.write(),a.close(),p=Pa(f,a),eb.detach();nc[f]=p}return p}function fb(f, a){return{get:function(){var p=f();if(null!=p)if(p)delete this.get;else return(this.get=a).apply(this,arguments)}}}function gb(f,a){if(a in f)return a;for(var p=a.charAt(0).toUpperCase()+a.slice(1),I=a,b=oc.length;b--;)if(a=oc[b]+p,a in f)return a;return I}function va(f,a){for(var p,b,c,k=[],d=0,n=f.length;da;a+=2)"margin"===p&&(k+=g.css(f,p+Qa[a],!0,c)),b?("content"===p&&(k-=g.css(f,"padding"+Qa[a],!0,c)),"margin"!==p&&(k-= g.css(f,"border"+Qa[a]+"Width",!0,c))):(k+=g.css(f,"padding"+Qa[a],!0,c),"padding"!==p&&(k+=g.css(f,"border"+Qa[a]+"Width",!0,c)));return k}function aa(f,a,p){var b=!0,c="width"===a?f.offsetWidth:f.offsetHeight,k=Ra(f),d=w.boxSizing()&&"border-box"===g.css(f,"boxSizing",!1,k);if(0>=c||null==c){c=Sa(f,a,k);if(0>c||null==c)c=f.style[a];if(sb.test(c))return c;b=d&&(w.boxSizingReliable()||c===f.style[a]);c=parseFloat(c)||0}return c+x(f,a,p||(d?"border":"content"),b,k)+"px"}function L(f,a,p,b,g){return new L.prototype.init(f, a,p,b,g)}function ga(){setTimeout(function(){Za=void 0});return Za=g.now()}function O(f,a){var p,b={height:f},g=0;for(a=a?1:0;4>g;g+=2-a)p=Qa[g],b["margin"+p]=b["padding"+p]=f;a&&(b.opacity=b.width=f);return b}function wa(f,a,p){for(var b,g=(ib[a]||[]).concat(ib["*"]),c=0,k=g.length;cv&&b)return a;n.resolveWith(f,[r]);return!1},r=n.promise({elem:f,props:g.extend({},a),opts:g.extend(!0,{specialEasing:{}},p),originalProperties:a,originalOptions:p,startTime:Za||ga(),duration:p.duration,tweens:[],createTween:function(a,v){var p=g.Tween(f,r.opts,a,v,r.opts.specialEasing[a]||r.opts.easing);r.tweens.push(p);return p},stop:function(a){var v=0,p=a?r.tweens.length:0;if(c)return this;for(c= !0;vf?this[f+this.length]:this[f]:n.call(this)},pushStack:function(f){f=g.merge(this.constructor(),f);f.prevObject=this;f.context=this.context;return f},each:function(f,a){return g.each(this,f,a)},map:function(f){return this.pushStack(g.map(this,function(a,p){return f.call(a,p,a)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(f){var a= this.length;f=+f+(0>f?a:0);return this.pushStack(0<=f&&fp?Math.max(0,b+p):p:0;pG.cacheLength&&delete f[a.shift()];return f[p+" "]=b}var a=[];return f},pa=function(f){f[M]=!0;return f},qa=function(f){var a=R.createElement("div");try{return!!f(a)}catch(p){return!1}finally{a.parentNode&&a.parentNode.removeChild(a)}},Sb=function(f,a){for(var p=f.split("|"),b=f.length;b--;)G.attrHandle[p[b]]= a},pc=function(f,a){var p=a&&f,b=p&&1===f.nodeType&&1===a.nodeType&&(~a.sourceIndex||ia)-(~f.sourceIndex||ia);if(b)return b;if(p)for(;p=p.nextSibling;)if(p===a)return-1;return f?1:-1},id=function(f){return function(a){return"input"===a.nodeName.toLowerCase()&&a.type===f}},jd=function(f){return function(a){var p=a.nodeName.toLowerCase();return("input"===p||"button"===p)&&a.type===f}},ua=function(f){return pa(function(a){a=+a;return pa(function(p,b){for(var g,c=f([],p.length,a),k=c.length;k--;)if(p[g= c[k]])p[g]=!(b[g]=p[g])})})},ha=function(f){return f&&typeof f.getElementsByTagName!==T&&f},qc=function(){},ta=function(f,a){var p,b,g,c,k,d,n;if(k=Ja[f+" "])return a?0:k.slice(0);k=f;d=[];for(n=G.preFilter;k;){if(!p||(b=kd.exec(k)))b&&(k=k.slice(b[0].length)||k),d.push(g=[]);p=!1;if(b=ld.exec(k))p=b.shift(),g.push({value:p,type:b[0].replace(wb," ")}),k=k.slice(p.length);for(c in G.filter)if((b=xb[c].exec(k))&&(!n[c]||(b=n[c](b))))p=b.shift(),g.push({value:p,type:c,matches:b}),k=k.slice(p.length); if(!p)break}return a?k.length:k?D.error(f):Ja(f,d).slice(0)},vb=function(f){for(var a=0,p=f.length,b="";a+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,od=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),pd=RegExp(Xb),qd=RegExp("^"+uc+"$"),xb={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/, TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+vc),PSEUDO:RegExp("^"+Xb),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)", "i")},rd=/^(?:input|select|textarea|button)$/i,sd=/^h\d$/i,lb=/^[^{]+\{\s*\[native \w/,gd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Qb=/[+~]/,hd=/'|\\/g,Ha=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),Ia=function(f,a,p){f="0x"+a-65536;return f!==f||p?a:0>f?String.fromCharCode(f+65536):String.fromCharCode(f>>10|55296,f&1023|56320)};try{Ga.apply(N=tc.call(W.childNodes),W.childNodes),N[W.childNodes.length].nodeType}catch(Zd){Ga={apply:N.length?function(f,a){nd.apply(f,tc.call(a))}: function(f,a){for(var p=f.length,b=0;f[p++]=a[b++];);f.length=p-1}}}H=D.support={};rc=D.isXML=function(f){return(f=f&&(f.ownerDocument||f).documentElement)?"HTML"!==f.nodeName:!1};oa=D.setDocument=function(f){var a=f?f.ownerDocument||f:W;f=a.defaultView;if(a===R||9!==a.nodeType||!a.documentElement)return R;R=a;ja=a.documentElement;X=!rc(a);f&&f!==f.top&&(f.addEventListener?f.addEventListener("unload",function(){oa()},!1):f.attachEvent&&f.attachEvent("onunload",function(){oa()}));H.attributes=qa(function(f){f.className= "i";return!f.getAttribute("className")});H.getElementsByTagName=qa(function(f){f.appendChild(a.createComment(""));return!f.getElementsByTagName("*").length});H.getElementsByClassName=lb.test(a.getElementsByClassName)&&qa(function(f){f.innerHTML="
";f.firstChild.className="i";return 2===f.getElementsByClassName("i").length});H.getById=qa(function(f){ja.appendChild(f).id=M;return!a.getElementsByName||!a.getElementsByName(M).length});H.getById?(G.find.ID=function(f, a){if(typeof a.getElementById!==T&&X){var b=a.getElementById(f);return b&&b.parentNode?[b]:[]}},G.filter.ID=function(f){var a=f.replace(Ha,Ia);return function(f){return f.getAttribute("id")===a}}):(delete G.find.ID,G.filter.ID=function(f){var a=f.replace(Ha,Ia);return function(f){return(f=typeof f.getAttributeNode!==T&&f.getAttributeNode("id"))&&f.value===a}});G.find.TAG=H.getElementsByTagName?function(f,a){if(typeof a.getElementsByTagName!==T)return a.getElementsByTagName(f)}:function(f,a){var b, v=[],g=0,c=a.getElementsByTagName(f);if("*"===f){for(;b=c[g++];)1===b.nodeType&&v.push(b);return v}return c};G.find.CLASS=H.getElementsByClassName&&function(f,a){if(typeof a.getElementsByClassName!==T&&X)return a.getElementsByClassName(f)};da=[];S=[];if(H.qsa=lb.test(a.querySelectorAll))qa(function(f){f.innerHTML="";f.querySelectorAll("[t^='']").length&&S.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");f.querySelectorAll("[selected]").length||S.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)"); f.querySelectorAll(":checked").length||S.push(":checked")}),qa(function(f){var b=a.createElement("input");b.setAttribute("type","hidden");f.appendChild(b).setAttribute("name","D");f.querySelectorAll("[name=d]").length&&S.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");f.querySelectorAll(":enabled").length||S.push(":enabled",":disabled");f.querySelectorAll("*,:x");S.push(",.*:")});(H.matchesSelector=lb.test(La=ja.webkitMatchesSelector||ja.mozMatchesSelector||ja.oMatchesSelector||ja.msMatchesSelector))&& qa(function(f){H.disconnectedMatch=La.call(f,"div");La.call(f,"[s!='']:x");da.push("!=",Xb)});S=S.length&&RegExp(S.join("|"));da=da.length&&RegExp(da.join("|"));sa=(f=lb.test(ja.compareDocumentPosition))||lb.test(ja.contains)?function(f,a){var b=9===f.nodeType?f.documentElement:f,v=a&&a.parentNode;return f===v||!(!v||!(1===v.nodeType&&(b.contains?b.contains(v):f.compareDocumentPosition&&f.compareDocumentPosition(v)&16)))}:function(f,a){if(a)for(;a=a.parentNode;)if(a===f)return!0;return!1};A=f?function(f, b){if(f===b)return Ca=!0,0;var g=!f.compareDocumentPosition-!b.compareDocumentPosition;if(g)return g;g=(f.ownerDocument||f)===(b.ownerDocument||b)?f.compareDocumentPosition(b):1;return g&1||!H.sortDetached&&b.compareDocumentPosition(f)===g?f===a||f.ownerDocument===W&&sa(W,f)?-1:b===a||b.ownerDocument===W&&sa(W,b)?1:ra?Ua.call(ra,f)-Ua.call(ra,b):0:g&4?-1:1}:function(f,b){if(f===b)return Ca=!0,0;var g,c=0;g=f.parentNode;var k=b.parentNode,d=[f],n=[b];if(!g||!k)return f===a?-1:b===a?1:g?-1:k?1:ra?Ua.call(ra, f)-Ua.call(ra,b):0;if(g===k)return pc(f,b);for(g=f;g=g.parentNode;)d.unshift(g);for(g=b;g=g.parentNode;)n.unshift(g);for(;d[c]===n[c];)c++;return c?pc(d[c],n[c]):d[c]===W?-1:n[c]===W?1:0};return a};D.matches=function(f,a){return D(f,null,null,a)};D.matchesSelector=function(f,a){(f.ownerDocument||f)!==R&&oa(f);a=a.replace(od,"='$1']");if(H.matchesSelector&&X&&(!da||!da.test(a))&&(!S||!S.test(a)))try{var b=La.call(f,a);if(b||H.disconnectedMatch||f.document&&11!==f.document.nodeType)return b}catch(g){}return 0< D(a,R,null,[f]).length};D.contains=function(f,a){(f.ownerDocument||f)!==R&&oa(f);return sa(f,a)};D.attr=function(f,a){(f.ownerDocument||f)!==R&&oa(f);var b=G.attrHandle[a.toLowerCase()],b=b&&ea.call(G.attrHandle,a.toLowerCase())?b(f,a,!X):void 0;return void 0!==b?b:H.attributes||!X?f.getAttribute(a):(b=f.getAttributeNode(a))&&b.specified?b.value:null};D.error=function(f){throw Error("Syntax error, unrecognized expression: "+f);};D.uniqueSort=function(f){var a,b=[],g=0,c=0;Ca=!H.detectDuplicates;ra= !H.sortStable&&f.slice(0);f.sort(A);if(Ca){for(;a=f[c++];)a===f[c]&&(g=b.push(c));for(;g--;)f.splice(b[g],1)}ra=null;return f};Ka=D.getText=function(f){var a,b="",g=0;if(a=f.nodeType)if(1===a||9===a||11===a){if("string"===typeof f.textContent)return f.textContent;for(f=f.firstChild;f;f=f.nextSibling)b+=Ka(f)}else{if(3===a||4===a)return f.nodeValue}else for(;a=f[g++];)b+=Ka(a);return b};G=D.selectors={cacheLength:50,createPseudo:pa,match:xb,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}, " ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(f){f[1]=f[1].replace(Ha,Ia);f[3]=(f[4]||f[5]||"").replace(Ha,Ia);"~="===f[2]&&(f[3]=" "+f[3]+" ");return f.slice(0,4)},CHILD:function(f){f[1]=f[1].toLowerCase();"nth"===f[1].slice(0,3)?(f[3]||D.error(f[0]),f[4]=+(f[4]?f[5]+(f[6]||1):2*("even"===f[3]||"odd"===f[3])),f[5]=+(f[7]+f[8]||"odd"===f[3])):f[3]&&D.error(f[0]);return f},PSEUDO:function(f){var a,b=!f[5]&&f[2];if(xb.CHILD.test(f[0]))return null; if(f[3]&&void 0!==f[4])f[2]=f[4];else if(b&&pd.test(b)&&(a=ta(b,!0))&&(a=b.indexOf(")",b.length-a)-b.length))f[0]=f[0].slice(0,a),f[2]=b.slice(0,a);return f.slice(0,3)}},filter:{TAG:function(f){var a=f.replace(Ha,Ia).toLowerCase();return"*"===f?function(){return!0}:function(f){return f.nodeName&&f.nodeName.toLowerCase()===a}},CLASS:function(f){var a=sc[f+" "];return a||(a=RegExp("(^|[\\x20\\t\\r\\n\\f])"+f+"([\\x20\\t\\r\\n\\f]|$)"))&&sc(f,function(f){return a.test("string"===typeof f.className&& f.className||typeof f.getAttribute!==T&&f.getAttribute("class")||"")})},ATTR:function(f,a,b){return function(g){g=D.attr(g,f);if(null==g)return"!="===a;if(!a)return!0;g+="";return"="===a?g===b:"!="===a?g!==b:"^="===a?b&&0===g.indexOf(b):"*="===a?b&&-1f.nodeType)return!1;return!0},parent:function(f){return!G.pseudos.empty(f)},header:function(f){return sd.test(f.nodeName)},input:function(f){return rd.test(f.nodeName)},button:function(f){var a=f.nodeName.toLowerCase();return"input"=== a&&"button"===f.type||"button"===a},text:function(f){var a;return"input"===f.nodeName.toLowerCase()&&"text"===f.type&&(null==(a=f.getAttribute("type"))||"text"===a.toLowerCase())},first:ua(function(){return[0]}),last:ua(function(f,a){return[a-1]}),eq:ua(function(f,a,b){return[0>b?b+a:b]}),even:ua(function(f,a){for(var b=0;bb?b+a:b;0<=--a;)f.push(a);return f}),gt:ua(function(f, a,b){for(b=0>b?b+a:b;++b";f.firstChild.setAttribute("value","");return""===f.firstChild.getAttribute("value")}))&&Sb("value",function(f,a,b){if(!b&&"input"===f.nodeName.toLowerCase())return f.defaultValue}); qa(function(f){return null==f.getAttribute("disabled")})||Sb("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(f,a,b){var g;if(!b)return!0===f[a]?a.toLowerCase():(g=f.getAttributeNode(a))&&g.specified?g.value:null});g.find=D;g.expr=D.selectors;g.expr[":"]=g.expr.pseudos;g.unique=D.uniqueSort;g.text=D.getText;g.isXMLDoc=D.isXML;g.contains=D.contains;var wc=g.expr.match.needsContext,xc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Vc= /^.[^:#\[\.,]*$/;g.filter=function(f,a,b){var c=a[0];b&&(f=":not("+f+")");return 1===a.length&&1===c.nodeType?g.find.matchesSelector(c,f)?[c]:[]:g.find.matches(f,g.grep(a,function(f){return 1===f.nodeType}))};g.fn.extend({find:function(f){var a,b=[],c=this,k=c.length;if("string"!==typeof f)return this.pushStack(g(f).filter(function(){for(a=0;a)[^>]*|#([\w-]*))$/;(g.fn.init=function(f,a){var b,c;if(!f)return this;if("string"===typeof f){if((b="<"===f.charAt(0)&&">"===f.charAt(f.length-1)&&3<=f.length?[null,f,null]:td.exec(f))&&(b[1]||!a)){if(b[1]){if(a=a instanceof g?a[0]:a,g.merge(this, g.parseHTML(b[1],a&&a.nodeType?a.ownerDocument||a:y,!0)),xc.test(b[1])&&g.isPlainObject(a))for(b in a)if(g.isFunction(this[b]))this[b](a[b]);else this.attr(b,a[b])}else{if((c=y.getElementById(b[2]))&&c.parentNode){if(c.id!==b[2])return mb.find(f);this.length=1;this[0]=c}this.context=y;this.selector=f}return this}return!a||a.jquery?(a||mb).find(f):this.constructor(a).find(f)}if(f.nodeType)return this.context=this[0]=f,this.length=1,this;if(g.isFunction(f))return"undefined"!==typeof mb.ready?mb.ready(f): f(g);void 0!==f.selector&&(this.selector=f.selector,this.context=f.context);return g.makeArray(f,this)}).prototype=g.fn;mb=g(y);var ud=/^(?:parents|prev(?:Until|All))/,vd={children:!0,contents:!0,next:!0,prev:!0};g.extend({dir:function(f,a,b){var c=[];for(f=f[a];f&&9!==f.nodeType&&(void 0===b||1!==f.nodeType||!g(f).is(b));)1===f.nodeType&&c.push(f),f=f[a];return c},sibling:function(f,a){for(var b=[];f;f=f.nextSibling)1===f.nodeType&&f!==a&&b.push(f);return b}});g.fn.extend({has:function(f){var a, b=g(f,this),c=b.length;return this.filter(function(){for(a=0;ab.nodeType&&(n?-1
a";w.leadingWhitespace=3===Z.firstChild.nodeType;w.tbody=!Z.getElementsByTagName("tbody").length;w.htmlSerialize=!!Z.getElementsByTagName("link").length;w.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML;nb.type="checkbox";nb.checked= !0;Yb.appendChild(nb);w.appendChecked=nb.checked;Z.innerHTML="";w.noCloneChecked=!!Z.cloneNode(!0).lastChild.defaultValue;Yb.appendChild(Z);Z.innerHTML="";w.checkClone=Z.cloneNode(!0).cloneNode(!0).lastChild.checked;w.noCloneEvent=!0;Z.attachEvent&&(Z.attachEvent("onclick",function(){w.noCloneEvent=!1}),Z.cloneNode(!0).click());if(null==w.deleteExpando){w.deleteExpando=!0;try{delete Z.test}catch(ae){w.deleteExpando=!1}}var Yb=Z= nb=null,Ab,Bb,Ac=y.createElement("div");for(Ab in{submit:!0,change:!0,focusin:!0})if(Bb="on"+Ab,!(w[Ab+"Bubbles"]=Bb in a))Ac.setAttribute(Bb,"t"),w[Ab+"Bubbles"]=!1===Ac.attributes[Bb].expando;var Zb=/^(?:input|select|textarea)$/i,xd=/^key/,yd=/^(?:mouse|contextmenu)|click/,Bc=/^(?:focusinfocus|focusoutblur)$/,Cc=/^([^.]*)(?:\.(.+)|)$/;g.event={global:{},add:function(a,b,c,k,d){var n,e,r,j,h,q,l,A,z;if(r=g._data(a)){c.handler&&(j=c,c=j.handler,d=j.selector);c.guid||(c.guid=g.guid++);if(!(e=r.events))e= r.events={};if(!(h=r.handle))h=r.handle=function(a){return typeof g!==la&&(!a||g.event.triggered!==a.type)?g.event.dispatch.apply(h.elem,arguments):void 0},h.elem=a;b=(b||"").match(xa)||[""];for(r=b.length;r--;)if(n=Cc.exec(b[r])||[],A=q=n[1],z=(n[2]||"").split(".").sort(),A){n=g.event.special[A]||{};A=(d?n.delegateType:n.bindType)||A;n=g.event.special[A]||{};q=g.extend({type:A,origType:q,data:k,handler:c,guid:c.guid,selector:d,needsContext:d&&g.expr.match.needsContext.test(d),namespace:z.join(".")}, j);if(!(l=e[A]))if(l=e[A]=[],l.delegateCount=0,!n.setup||!1===n.setup.call(a,k,z,h))a.addEventListener?a.addEventListener(A,h,!1):a.attachEvent&&a.attachEvent("on"+A,h);n.add&&(n.add.call(a,q),q.handler.guid||(q.handler.guid=c.guid));d?l.splice(l.delegateCount++,0,q):l.push(q);g.event.global[A]=!0}a=null}},remove:function(a,b,c,k,d){var n,e,r,j,h,q,l,A,z,T,t,m=g.hasData(a)&&g._data(a);if(m&&(q=m.events)){b=(b||"").match(xa)||[""];for(h=b.length;h--;)if(r=Cc.exec(b[h])||[],z=t=r[1],T=(r[2]||"").split(".").sort(), z){l=g.event.special[z]||{};z=(k?l.delegateType:l.bindType)||z;A=q[z]||[];r=r[2]&&RegExp("(^|\\.)"+T.join("\\.(?:.*\\.|)")+"(\\.|$)");for(j=n=A.length;n--;)if(e=A[n],(d||t===e.origType)&&(!c||c.guid===e.guid)&&(!r||r.test(e.namespace))&&(!k||k===e.selector||"**"===k&&e.selector))A.splice(n,1),e.selector&&A.delegateCount--,l.remove&&l.remove.call(a,e);j&&!A.length&&((!l.teardown||!1===l.teardown.call(a,T,m.handle))&&g.removeEvent(a,z,m.handle),delete q[z])}else for(z in q)g.event.remove(a,z+b[h],c, k,!0);g.isEmptyObject(q)&&(delete m.handle,g._removeData(a,"events"))}},trigger:function(f,b,c,k){var d,n,e,r,j,h,q=[c||y],l=za.call(f,"type")?f.type:f;j=za.call(f,"namespace")?f.namespace.split("."):[];e=d=c=c||y;if(!(3===c.nodeType||8===c.nodeType)&&!Bc.test(l+g.event.triggered))if(0<=l.indexOf(".")&&(j=l.split("."),l=j.shift(),j.sort()),n=0>l.indexOf(":")&&"on"+l,f=f[g.expando]?f:new g.Event(l,"object"===typeof f&&f),f.isTrigger=k?2:3,f.namespace=j.join("."),f.namespace_re=f.namespace?RegExp("(^|\\.)"+ j.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f.result=void 0,f.target||(f.target=c),b=null==b?[f]:g.makeArray(b,[f]),j=g.event.special[l]||{},k||!(j.trigger&&!1===j.trigger.apply(c,b))){if(!k&&!j.noBubble&&!g.isWindow(c)){r=j.delegateType||l;Bc.test(r+l)||(e=e.parentNode);for(;e;e=e.parentNode)q.push(e),d=e;if(d===(c.ownerDocument||y))q.push(d.defaultView||d.parentWindow||a)}for(h=0;(e=q[h++])&&!f.isPropagationStopped();)if(f.type=1]","i"),$b=/^\s+/,Ec=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fc=/<([\w:]+)/,Gc=/\s*$/g,ka={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:w.htmlSerialize?[0,"",""]:[1,"X
","
"]},ac= B(y).appendChild(y.createElement("div"));ka.optgroup=ka.option;ka.tbody=ka.tfoot=ka.colgroup=ka.caption=ka.thead;ka.th=ka.td;g.extend({clone:function(a,b,c){var k,d,n,e,r,j=g.contains(a.ownerDocument,a);w.html5Clone||g.isXMLDoc(a)||!Dc.test("<"+a.nodeName+">")?n=a.cloneNode(!0):(ac.innerHTML=a.outerHTML,ac.removeChild(n=ac.firstChild));if((!w.noCloneEvent||!w.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!g.isXMLDoc(a)){k=E(n);r=E(a);for(e=0;null!=(d=r[e]);++e)if(k[e]){var h=k[e],l=void 0,q= void 0,A=void 0;if(1===h.nodeType){l=h.nodeName.toLowerCase();if(!w.noCloneEvent&&h[g.expando]){A=g._data(h);for(q in A.events)g.removeEvent(h,q,A.handle);h.removeAttribute(g.expando)}if("script"===l&&h.text!==d.text)Ea(h).text=d.text,U(h);else if("object"===l)h.parentNode&&(h.outerHTML=d.outerHTML),w.html5Clone&&(d.innerHTML&&!g.trim(h.innerHTML))&&(h.innerHTML=d.innerHTML);else if("input"===l&&Mb.test(d.type))h.defaultChecked=h.checked=d.checked,h.value!==d.value&&(h.value=d.value);else if("option"=== l)h.defaultSelected=h.selected=d.defaultSelected;else if("input"===l||"textarea"===l)h.defaultValue=d.defaultValue}}}if(b)if(c){r=r||E(a);k=k||E(n);for(e=0;null!=(d=r[e]);e++)Fa(d,k[e])}else Fa(a,n);k=E(n,"script");0")+h[2];for(d=h[0];d--;)e=e.lastChild;!w.leadingWhitespace&&$b.test(n)&&A.push(b.createTextNode($b.exec(n)[0]));if(!w.tbody)for(d=(n="table"===r&&!Gc.test(n)?e.firstChild:""===h[1]&&!Gc.test(n)?e:0)&&n.childNodes.length;d--;)g.nodeName(j=n.childNodes[d],"tbody")&&!j.childNodes.length&&n.removeChild(j);g.merge(A,e.childNodes);for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);e=q.lastChild}else A.push(b.createTextNode(n)); e&&q.removeChild(e);w.appendChecked||g.grep(E(A,"input"),rb);for(z=0;n=A[z++];)if(!(k&&-1!==g.inArray(n,k))&&(a=g.contains(n.ownerDocument,n),e=E(q.appendChild(n),"script"),a&&Q(e),c))for(d=0;n=e[d++];)Hc.test(n.type||"")&&c.push(n);return q},cleanData:function(a,b){for(var c,d,n,e,r=0,j=g.expando,h=g.cache,l=w.deleteExpando,q=g.event.special;null!=(c=a[r]);r++)if(b||g.acceptData(c))if(e=(n=c[j])&&h[n]){if(e.events)for(d in e.events)q[d]?g.event.remove(c,d):g.removeEvent(c,d,e.handle);h[n]&&(delete h[n], l?delete c[j]:typeof c.removeAttribute!==la?c.removeAttribute(j):c[j]=null,k.push(n))}}});g.fn.extend({text:function(a){return Va(this,function(a){return void 0===a?g.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&Ya(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType|| 11===this.nodeType||9===this.nodeType){var b=Ya(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,k=a?g.filter(a,this):this,d=0;null!=(c=k[d]);d++)!b&&1===c.nodeType&&g.cleanData(E(c)),c.parentNode&&(b&&g.contains(c.ownerDocument, c)&&Q(E(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){for(1===a.nodeType&&g.cleanData(E(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&g.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return g.clone(this,a,b)})},html:function(a){return Va(this,function(a){var f=this[0]||{},b=0,c=this.length;if(void 0===a)return 1===f.nodeType?f.innerHTML.replace(zd, ""):void 0;if("string"===typeof a&&!Bd.test(a)&&(w.htmlSerialize||!Dc.test(a))&&(w.leadingWhitespace||!$b.test(a))&&!ka[(Fc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ec,"<$1>");try{for(;b
a";ob=ab.getElementsByTagName("a")[0];ob.style.cssText="float:left;opacity:.5";w.opacity=/^0.5/.test(ob.style.opacity);w.cssFloat=!!ob.style.cssFloat;ab.style.backgroundClip="content-box";ab.cloneNode(!0).style.backgroundClip="";w.clearCloneStyle="content-box"=== ab.style.backgroundClip;ob=ab=null;w.shrinkWrapBlocks=function(){var a,b,c;if(null==Cb){a=y.getElementsByTagName("body")[0];if(!a)return;b=y.createElement("div");c=y.createElement("div");a.appendChild(b).appendChild(c);Cb=!1;typeof c.style.zoom!==la&&(c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0;width:1px;padding:1px;zoom:1",c.innerHTML="
",c.firstChild.style.width="5px",Cb=3!==c.offsetWidth); a.removeChild(b)}return Cb};var Ic=/^margin/,sb=RegExp("^("+zb+")(?!px)[a-z%]+$","i"),Ra,Sa,Ed=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Sa=function(a,b,c){var k,d,n=a.style;d=(c=c||Ra(a))?c.getPropertyValue(b)||c[b]:void 0;c&&(""===d&&!g.contains(a.ownerDocument,a)&&(d=g.style(a,b)),sb.test(d)&&Ic.test(b)&&(a=n.width,b=n.minWidth,k=n.maxWidth,n.minWidth=n.maxWidth=n.width=d,d=c.width,n.width=a,n.minWidth=b,n.maxWidth= k));return void 0===d?d:d+""}):y.documentElement.currentStyle&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,c){var g,k,d,n=a.style;d=(c=c||Ra(a))?c[b]:void 0;null==d&&(n&&n[b])&&(d=n[b]);if(sb.test(d)&&!Ed.test(b)){c=n.left;if(k=(g=a.runtimeStyle)&&g.left)g.left=a.currentStyle.left;n.left="fontSize"===b?"1em":d;d=n.pixelLeft+"px";n.left=c;k&&(g.left=k)}return void 0===d?d:d+""||"auto"});var dc=function(){var f,b,c=y.getElementsByTagName("body")[0];c&&(f=y.createElement("div"),b=y.createElement("div"), f.style.cssText=bc,c.appendChild(f).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",g.swap(c,null!=c.style.zoom?{zoom:1}:{},function(){cc=4===b.offsetWidth}),Db=!0,Eb=!1,Fb=!0,a.getComputedStyle&&(Eb="1%"!==(a.getComputedStyle(b,null)||{}).top,Db="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width),c.removeChild(f),b=c=null)},pb,Gb,cc,Db,Eb,Fb, bb=y.createElement("div"),bc="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";bb.innerHTML="
a";pb=bb.getElementsByTagName("a")[0];pb.style.cssText="float:left;opacity:.5";w.opacity=/^0.5/.test(pb.style.opacity);w.cssFloat=!!pb.style.cssFloat;bb.style.backgroundClip="content-box";bb.cloneNode(!0).style.backgroundClip="";w.clearCloneStyle="content-box"===bb.style.backgroundClip;pb=bb=null;g.extend(w,{reliableHiddenOffsets:function(){if(null!= Gb)return Gb;var a,b,c;b=y.createElement("div");var g=y.getElementsByTagName("body")[0];if(g)return b.setAttribute("className","t"),b.innerHTML="
a",a=y.createElement("div"),a.style.cssText=bc,g.appendChild(a).appendChild(b),b.innerHTML="
t
",b=b.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display= "none",Gb=c&&0===b[0].offsetHeight,g.removeChild(a),Gb},boxSizing:function(){null==cc&&dc();return cc},boxSizingReliable:function(){null==Db&&dc();return Db},pixelPosition:function(){null==Eb&&dc();return Eb},reliableMarginRight:function(){var f,b,c,g;if(null==Fb&&a.getComputedStyle){f=y.getElementsByTagName("body")[0];if(!f)return;b=y.createElement("div");c=y.createElement("div");b.style.cssText=bc;f.appendChild(b).appendChild(c);g=c.appendChild(y.createElement("div"));g.style.cssText=c.style.cssText= "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";g.style.marginRight=g.style.width="0";c.style.width="1px";Fb=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight);f.removeChild(b)}return Fb}});g.swap=function(a,b,c,g){var k,d={};for(k in b)d[k]=a.style[k],a.style[k]=b[k];c=c.apply(a,g||[]);for(k in b)a.style[k]=d[k];return c};var ec=/alpha\([^)]*\)/i,Fd=/opacity\s*=\s*([^)]*)/,Gd=/^(none|table(?!-c[ea]).+)/,Zc=RegExp("^("+ zb+")(.*)$","i"),Hd=RegExp("^([+-])=("+zb+")","i"),Id={position:"absolute",visibility:"hidden",display:"block"},Jc={letterSpacing:0,fontWeight:400},oc=["Webkit","O","Moz","ms"];g.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Sa(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":w.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,k){if(a&&!(3===a.nodeType|| 8===a.nodeType||!a.style)){var d,n,e,r=g.camelCase(b),j=a.style;b=g.cssProps[r]||(g.cssProps[r]=gb(j,r));e=g.cssHooks[b]||g.cssHooks[r];if(void 0!==c){n=typeof c;if("string"===n&&(d=Hd.exec(c)))c=(d[1]+1)*d[2]+parseFloat(g.css(a,b)),n="number";if(!(null==c||c!==c))if("number"===n&&!g.cssNumber[r]&&(c+="px"),!w.clearCloneStyle&&(""===c&&0===b.indexOf("background"))&&(j[b]="inherit"),!e||!("set"in e)||void 0!==(c=e.set(a,c,k)))try{j[b]="",j[b]=c}catch(h){}}else return e&&"get"in e&&void 0!==(d=e.get(a, !1,k))?d:j[b]}},css:function(a,b,c,k){var d,n;n=g.camelCase(b);b=g.cssProps[n]||(g.cssProps[n]=gb(a.style,n));(n=g.cssHooks[b]||g.cssHooks[n])&&"get"in n&&(d=n.get(a,!0,c));void 0===d&&(d=Sa(a,b,k));"normal"===d&&b in Jc&&(d=Jc[b]);return""===c||c?(a=parseFloat(d),!0===c||g.isNumeric(a)?a||0:d):d}});g.each(["height","width"],function(a,b){g.cssHooks[b]={get:function(a,f,c){if(f)return 0===a.offsetWidth&&Gd.test(g.css(a,"display"))?g.swap(a,Id,function(){return aa(a,b,c)}):aa(a,b,c)},set:function(a, f,c){var k=c&&Ra(a);return ma(a,f,c?x(a,b,c,w.boxSizing()&&"border-box"===g.css(a,"boxSizing",!1,k),k):0)}}});w.opacity||(g.cssHooks.opacity={get:function(a,b){return Fd.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,k=a.currentStyle,d=g.isNumeric(b)?"alpha(opacity="+100*b+")":"",n=k&&k.filter||c.filter||"";c.zoom=1;if((1<=b||""===b)&&""===g.trim(n.replace(ec,""))&&c.removeAttribute)if(c.removeAttribute("filter"), ""===b||k&&!k.filter)return;c.filter=ec.test(n)?n.replace(ec,d):n+" "+d}});g.cssHooks.marginRight=fb(w.reliableMarginRight,function(a,b){if(b)return g.swap(a,{display:"inline-block"},Sa,[a,"marginRight"])});g.each({margin:"",padding:"",border:"Width"},function(a,b){g.cssHooks[a+b]={expand:function(c){var g=0,k={};for(c="string"===typeof c?c.split(" "):[c];4>g;g++)k[a+Qa[g]+b]=c[g]||c[g-2]||c[0];return k}};Ic.test(a)||(g.cssHooks[a+b].set=ma)});g.fn.extend({css:function(a,b){return Va(this,function(a, f,b){var c,k={},d=0;if(g.isArray(f)){b=Ra(a);for(c=f.length;d
a";Ib=qb.getElementsByTagName("a")[0];fc=y.createElement("select");gc=fc.appendChild(y.createElement("option"));Ma=qb.getElementsByTagName("input")[0];Ib.style.cssText="top:1px";w.getSetAttribute= "t"!==qb.className;w.style=/top/.test(Ib.getAttribute("style"));w.hrefNormalized="/a"===Ib.getAttribute("href");w.checkOn=!!Ma.value;w.optSelected=gc.selected;w.enctype=!!y.createElement("form").enctype;fc.disabled=!0;w.optDisabled=!gc.disabled;Ma=y.createElement("input");Ma.setAttribute("value","");w.input=""===Ma.getAttribute("value");Ma.value="t";Ma.setAttribute("type","radio");w.radioValue="t"===Ma.value;var Ld=/\r/g;g.fn.extend({val:function(a){var b,c,k,d=this[0];if(arguments.length)return k= g.isFunction(a),this.each(function(c){if(1===this.nodeType&&(c=k?a.call(this,c,g(this).val()):a,null==c?c="":"number"===typeof c?c+="":g.isArray(c)&&(c=g.map(c,function(a){return null==a?"":a+""})),b=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],!b||!("set"in b)||void 0===b.set(this,c,"value")))this.value=c});if(d){if((b=g.valHooks[d.type]||g.valHooks[d.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(d,"value")))return c;c=d.value;return"string"===typeof c?c.replace(Ld,""): null==c?"":c}}});g.extend({valHooks:{option:{get:function(a){var b=g.find.attr(a,"value");return null!=b?b:g.text(a)}},select:{get:function(a){for(var b,c=a.options,k=a.selectedIndex,d=(a="select-one"===a.type||0>k)?null:[],n=a?k+1:c.length,e=0>k?n:a?k:0;ek.indexOf(" "+d+" ")&&(k+=d+" ");k=g.trim(k);c.className!==k&&(c.className=k)}return this},removeClass:function(a){var b,c,k,d,n,e=0,r=this.length;b=0===arguments.length||"string"===typeof a&&a;if(g.isFunction(a))return this.each(function(b){g(this).removeClass(a.call(this, b,this.className))});if(b)for(b=(a||"").match(xa)||[];ea||304===a;if(f){p=q;for(var v=s,N,ia,F,B,E=p.contents,P=p.dataTypes;"*"===P[0];)P.shift(),void 0===ia&&(ia=p.mimeType||v.getResponseHeader("Content-Type"));if(ia)for(B in E)if(E[B]&&E[B].test(ia)){P.unshift(B);break}if(P[0]in f)F=P[0];else{for(B in f){if(!P[0]||p.converters[B+ " "+P[0]]){F=B;break}N||(N=B)}F=F||N}F?(F!==P[0]&&P.unshift(F),p=f[F]):p=void 0}a:{f=q;N=p;ia=s;F=k;var w,Y,u,v={},E=f.dataTypes.slice();if(E[1])for(Y in f.converters)v[Y.toLowerCase()]=f.converters[Y];for(B=E.shift();B;)if(f.responseFields[B]&&(ia[f.responseFields[B]]=N),!u&&(F&&f.dataFilter)&&(N=f.dataFilter(N,f.dataType)),u=B,B=E.shift())if("*"===B)B=u;else if("*"!==u&&u!==B){Y=v[u+" "+B]||v["* "+B];if(!Y)for(w in v)if(p=w.split(" "),p[1]===B&&(Y=v[u+" "+p[0]]||v["* "+p[0]])){!0===Y?Y=v[w]:!0!== v[w]&&(B=p[0],E.unshift(p[1]));break}if(!0!==Y)if(Y&&f["throws"])N=Y(N);else try{N=Y(N)}catch(I){p={state:"parsererror",error:Y?I:"No conversion from "+u+" to "+B};break a}}p={state:"success",data:N}}if(k)q.ifModified&&((K=s.getResponseHeader("Last-Modified"))&&(g.lastModified[n]=K),(K=s.getResponseHeader("etag"))&&(g.etag[n]=K)),204===a||"HEAD"===q.type?K="nocontent":304===a?K="notmodified":(K=p.state,d=p.data,l=p.error,k=!l);else if(l=K,a||!K)K="error",0>a&&(a=0);s.status=a;s.statusText=(b||K)+ "";k?T.resolveWith(A,[d,K,s]):T.rejectWith(A,[s,K,l]);s.statusCode(m);m=void 0;j&&z.trigger(k?"ajaxSuccess":"ajaxError",[s,q,k?d:l]);t.fireWith(A,[s,K]);j&&(z.trigger("ajaxComplete",[s,q]),--g.active||g.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var k,d,n,e,r,j,h,l,q=g.ajaxSetup({},b),A=q.context||q,z=q.context&&(A.nodeType||A.jquery)?g(A):g.event,T=g.Deferred(),t=g.Callbacks("once memory"),m=q.statusCode||{},K={},N={},ea=0,ia="canceled",s={readyState:0,getResponseHeader:function(a){var b; if(2===ea){if(!l)for(l={};b=Qd.exec(e);)l[b[1].toLowerCase()]=b[2];b=l[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===ea?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();ea||(a=N[c]=N[c]||a,K[a]=b);return this},overrideMimeType:function(a){ea||(q.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>ea)for(b in a)m[b]=[m[b],a[b]];else s.always(a[s.status]);return this},abort:function(a){a=a||ia;h&&h.abort(a);c(0,a);return this}};T.promise(s).complete= t.add;s.success=s.done;s.error=s.fail;q.url=((a||q.url||Oa)+"").replace(Pd,"").replace(Sd,Xa[1]+"//");q.type=b.method||b.type||q.method||q.type;q.dataTypes=g.trim(q.dataType||"*").toLowerCase().match(xa)||[""];null==q.crossDomain&&(k=Nc.exec(q.url.toLowerCase()),q.crossDomain=!(!k||!(k[1]!==Xa[1]||k[2]!==Xa[2]||(k[3]||("http:"===k[1]?"80":"443"))!==(Xa[3]||("http:"===Xa[1]?"80":"443")))));q.data&&(q.processData&&"string"!==typeof q.data)&&(q.data=g.param(q.data,q.traditional));ub(Oc,q,b,s);if(2=== ea)return s;(j=q.global)&&0===g.active++&&g.event.trigger("ajaxStart");q.type=q.type.toUpperCase();q.hasContent=!Rd.test(q.type);n=q.url;q.hasContent||(q.data&&(n=q.url+=(kc.test(n)?"&":"?")+q.data,delete q.data),!1===q.cache&&(q.url=Mc.test(n)?n.replace(Mc,"$1_="+jc++):n+(kc.test(n)?"&":"?")+"_="+jc++));q.ifModified&&(g.lastModified[n]&&s.setRequestHeader("If-Modified-Since",g.lastModified[n]),g.etag[n]&&s.setRequestHeader("If-None-Match",g.etag[n]));(q.data&&q.hasContent&&!1!==q.contentType||b.contentType)&& s.setRequestHeader("Content-Type",q.contentType);s.setRequestHeader("Accept",q.dataTypes[0]&&q.accepts[q.dataTypes[0]]?q.accepts[q.dataTypes[0]]+("*"!==q.dataTypes[0]?", "+Pc+"; q=0.01":""):q.accepts["*"]);for(d in q.headers)s.setRequestHeader(d,q.headers[d]);if(q.beforeSend&&(!1===q.beforeSend.call(A,s,q)||2===ea))return s.abort();ia="abort";for(d in{success:1,error:1,complete:1})s[d](q[d]);if(h=ub(Nb,q,b,s)){s.readyState=1;j&&z.trigger("ajaxSend",[s,q]);q.async&&0ea)c(-1,F);else throw F;}}else c(-1,"No Transport");return s},getJSON:function(a,b,c){return g.get(a,b,c,"json")},getScript:function(a,b){return g.get(a,void 0,b,"script")}});g.each(["get","post"],function(a,b){g[b]=function(a,c,f,k){g.isFunction(c)&&(k=k||f,f=c,c=void 0);return g.ajax({url:a,type:b,dataType:k,data:c,success:f})}});g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){g.fn[b]=function(a){return this.on(b, a)}});g._evalUrl=function(a){return g.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};g.fn.extend({wrapAll:function(a){if(g.isFunction(a))return this.each(function(b){g(this).wrapAll(a.call(this,b))});if(this[0]){var b=g(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return g.isFunction(a)? this.each(function(b){g(this).wrapInner(a.call(this,b))}):this.each(function(){var b=g(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=g.isFunction(a);return this.each(function(c){g(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()}});g.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!w.reliableHiddenOffsets()&&"none"===(a.style&& a.style.display||g.css(a,"display"))};g.expr.filters.visible=function(a){return!g.expr.filters.hidden(a)};var Td=/%20/g,ad=/\[\]$/,Qc=/\r?\n/g,Ud=/^(?:submit|button|image|reset|file)$/i,Vd=/^(?:input|select|textarea|keygen)/i;g.param=function(a,b){var c,k=[],d=function(a,b){b=g.isFunction(b)?b():null==b?"":b;k[k.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};void 0===b&&(b=g.ajaxSettings&&g.ajaxSettings.traditional);if(g.isArray(a)||a.jquery&&!g.isPlainObject(a))g.each(a,function(){d(this.name, this.value)});else for(c in a)na(c,a[c],b,d);return k.join("&").replace(Td,"+")};g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=g.prop(this,"elements");return a?g.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!g(this).is(":disabled")&&Vd.test(this.nodeName)&&!Ud.test(a)&&(this.checked||!Mb.test(a))}).map(function(a,b){var c=g(this).val();return null==c?null:g.isArray(c)?g.map(c,function(a){return{name:b.name, value:a.replace(Qc,"\r\n")}}):{name:b.name,value:c.replace(Qc,"\r\n")}}).get()}});g.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&ba()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}b=void 0}return b}:ba;g.ajaxSettings.xhr=void 0===a.ActiveXObject?C:function(){return(this.url==y.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&& C()||C(1)};var Wd=0,Kb={},Lb=g.ajaxSettings.xhr();if(a.ActiveXObject)g(a).on("unload",function(){for(var a in Kb)Kb[a](void 0,!0)});w.cors=!!Lb&&"withCredentials"in Lb;(Lb=w.ajax=!!Lb)&&g.ajaxTransport(function(a){if(!a.crossDomain||w.cors){var b;return{send:function(c,k){var d,n=a.xhr(),e=++Wd;console.log("xhr.open async="+a.async+" url="+a.url);n.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(d in a.xhrFields)n[d]=a.xhrFields[d];a.mimeType&&n.overrideMimeType&&n.overrideMimeType(a.mimeType); !a.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");for(d in c)void 0!==c[d]&&n.setRequestHeader(d,c[d]+"");n.send(a.hasContent&&a.data||null);b=function(c,d){var r,q,j;if(b&&(d||4===n.readyState))if(delete Kb[e],b=void 0,n.onreadystatechange=g.noop,d)4!==n.readyState&&n.abort();else{j={};r=n.status;"string"===typeof n.responseText&&(j.text=n.responseText);try{q=n.statusText}catch(h){q=""}!r&&a.isLocal&&!a.crossDomain?r=j.text?200:404:1223===r&&(r=204)}j&&k(r,q,j,n.getAllResponseHeaders())}; a.async?4===n.readyState?setTimeout(b):n.onreadystatechange=Kb[e]=b:b()},abort:function(){b&&b(void 0,!0)}}}});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){g.globalEval(a);return a}}});g.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});g.ajaxTransport("script",function(a){if(a.crossDomain){var b, c=y.head||g("head")[0]||y.documentElement;return{send:function(k,g){b=y.createElement("script");b.async=!0;a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,c){if(c||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||g(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(void 0,!0)}}}});var Rc=[],lc=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback", jsonpCallback:function(){var a=Rc.pop()||g.expando+"_"+jc++;this[a]=!0;return a}});g.ajaxPrefilter("json jsonp",function(b,c,k){var d,n,e,r=!1!==b.jsonp&&(lc.test(b.url)?"url":"string"===typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&lc.test(b.data)&&"data");if(r||"jsonp"===b.dataTypes[0])return d=b.jsonpCallback=g.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,r?b[r]=b[r].replace(lc,"$1"+d):!1!==b.jsonp&&(b.url+=(kc.test(b.url)?"&":"?")+b.jsonp+"="+ d),b.converters["script json"]=function(){e||g.error(d+" was not called");return e[0]},b.dataTypes[0]="json",n=a[d],a[d]=function(){e=arguments},k.always(function(){a[d]=n;b[d]&&(b.jsonpCallback=c.jsonpCallback,Rc.push(d));e&&g.isFunction(n)&&n(e[0]);e=n=void 0}),"script"});g.parseHTML=function(a,b,c){if(!a||"string"!==typeof a)return null;"boolean"===typeof b&&(c=b,b=!1);b=b||y;var k=xc.exec(a);c=!c&&[];if(k)return[b.createElement(k[1])];k=g.buildFragment([a],b,c);c&&c.length&&g(c).remove();return g.merge([], k.childNodes)};var Sc=g.fn.load;g.fn.load=function(a,b,c){if("string"!==typeof a&&Sc)return Sc.apply(this,arguments);var k,d,n,e=this,r=a.indexOf(" ");0<=r&&(k=a.slice(r,a.length),a=a.slice(0,r));g.isFunction(b)?(c=b,b=void 0):b&&"object"===typeof b&&(n="POST");0").append(g.parseHTML(a)).find(k):a)}).complete(c&&function(a,b){e.each(c,d||[a.responseText,b,a])});return this};g.expr.filters.animated= function(a){return g.grep(g.timers,function(b){return a===b.elem}).length};var Tc=a.document.documentElement;g.offset={setOffset:function(a,b,c){var k,d,n,e=g.css(a,"position"),r=g(a),q={};"static"===e&&(a.style.position="relative");n=r.offset();d=g.css(a,"top");k=g.css(a,"left");("absolute"===e||"fixed"===e)&&-1org.pdb.query.simple.AdvancedKeywordQueryText SearchQUERY",_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:a,_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"https://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3), _touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1};a=a.location.href.toLowerCase();m._debugCore=0<=a.indexOf("j2sdebugcore");m._httpProto=0==a.indexOf("https")?"https://":"http://";m._isFile=0==a.indexOf("file:");m._isFile&&$.ajaxSetup({mimeType:"text/plain"});m._ajaxTestSite=m._httpProto+"google.com";a=m._isFile||0==a.indexOf("http://localhost")||0==a.indexOf("http://127.");m._tracker=!a&&"https://chemapps.stolaf.edu/jmol/JmolTracker.php?id=UA-45940799-1";m._isChrome=0<=navigator.userAgent.toLowerCase().indexOf("chrome"); m._isSafari=!m._isChrome&&0<=navigator.userAgent.toLowerCase().indexOf("safari");m._isMsie=void 0!==window.ActiveXObject;m._isEdge=0<=navigator.userAgent.indexOf("Edge/");m._useDataURI=!m._isSafari&&!m._isMsie&&!m._isEdge;window.requestAnimationFrame||(window.requestAnimationFrame=window.setTimeout);for(var l in Jmol)m[l]=Jmol[l];return m}(document,Jmol)); (function(a,m){a.__$=m;m(document).ready(function(){a._document=null});a.$=function(a,c){null==a&&alert(c+arguments.callee.caller.toString());return m(c?"#"+a._id+"_"+c:a)};a._$=function(a){return"string"==typeof a?m("#"+a):a};a.$ajax=function(b){a._ajaxCall=b.url;b.cache="NO"!=b.cache;b.url=a._fixProtocol(b.url);return m.ajax(b)};a._fixProtocol=function(b){0<=b.indexOf("get3d=True")&&(b=b.replace(/get3d\=True/,"get3d=true"));return 0==b.indexOf("http://www.rcsb.org/pdb/files/")&&0>b.indexOf("/ligand/")? "http://files.rcsb.org/view/"+b.substring(30).replace(/\.gz/,""):0==b.indexOf("http://")&&("https://"==a._httpProto||0c?d[0].scrollHeight:c)}; a.$setEnabled=function(b,c){return a._$(b).attr("disabled",c?null:"disabled")};a.$getSize=function(b){b=a._$(b);return[b.width(),b.height()]};a.$setSize=function(b,c,d){return a._$(b).width(c).height(d)};a.$is=function(b,c){return a._$(b).is(c)};a.$setVisible=function(b,c){var d=a._$(b);return c?d.show():d.hide()};a.$submit=function(b){return a._$(b).submit()};a.$val=function(b,c){var d=a._$(b);return 1==arguments.length?d.val():d.val(c)};a._clearVars=function(){delete jQuery;delete m;delete a;delete SwingController; delete J;delete JM;delete JS;delete JSV;delete JU;delete JV;delete java;delete javajs;delete Clazz;delete c$};var l=document,h=window,e={};e.ua=navigator.userAgent.toLowerCase();var j;a:{j=["linux","unix","mac","win"];for(var t=j.length;t--;)if(-1!=e.ua.indexOf(j[t])){j=j[t];break a}j="unknown"}e.os=j;e.browser=function(){for(var a=e.ua,c="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),d=0;dnavigator.appVersion.indexOf("MSIE 8");e.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};e._webGLtest=0;e.supportsWebGL=function(){if(!a.featureDetection._webGLtest){var b;a.featureDetection._webGLtest=h.WebGLRenderingContext&& ((b=l.createElement("canvas")).getContext("webgl")||b.getContext("experimental-webgl"))?1:-1}return 0=e.browserVersion&&"mac"==c||"webkit"==e.browserName&&125.12>e.browserVersion||"msie"==e.browserName&&"mac"==c||"konqueror"==e.browserName&&3.3>=e.browserVersion)a=!1;return a};e.isFullyCompliant=function(){return e.compliantBrowser()&&e.supportsJava()};e.useIEObject="win"==e.os&&"msie"==e.browserName&&5.5<=e.browserVersion;e.useHtml4Object="mozilla"==e.browserName&& 5<=e.browserVersion||"opera"==e.browserName&&8<=e.browserVersion||"webkit"==e.browserName;e.hasFileReader=h.File&&h.FileReader;a.featureDetection=e;a._ajax=function(b){if(!b.async)return a.$ajax(b).responseText;a._ajaxQueue.push(b);1==a._ajaxQueue.length&&a._ajaxDone()};a._ajaxDone=function(){var b=a._ajaxQueue.shift();b&&a.$ajax(b)};a._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=","RCSB(macromolecules)"],["*","PDBe(macromolecules)"]];a._getGrabberOptions=function(b){if(0== a._grabberOptions.length)return"";var c='',d='';1==a._grabberOptions.length?(c=""+c+'',d=""+d):c+="
";for(var c=c+'"+d).replace(/ID/g,b._id);return"
"+c};a._getScriptForDatabase=function(b){return"$"==b?a.db._nciLoadScript:":"==b?a.db._pubChemLoadScript:a.db._fileLoadScript};a._setInfo=function(a,c,d){var e=[],j="";if(0==d.indexOf("ERROR"))j=d;else switch(c){case "=":c=d.split("");e=[""];for(d=1;d"),e.push("");e.push("
"+c[d].substring(0,4)+""+c[d].split("Title>")[1].split("
");j=c.length-1+" matches";break;case "$":case ":":break;default:return}a._infoHeader=j;a._info=e.join("");a._showInfo(!0)};a._loadSuccess=function(b,c){c&&(a._ajaxDone(),c(b))};a._loadError=function(b){a._ajaxDone();a.say("Error connecting to server: "+a._ajaxCall);null!=b&&b()};a._isDatabaseCall=function(b){return 0<=a.db._databasePrefixes.indexOf(b.substring(0, 1))};a._getDirectDatabaseCall=function(b,c){if(c&&!a.featureDetection.supportsXhr2())return b;var d=2,e=b.substring(0,d),j=a.db._DirectDatabaseCalls[e]||a.db._DirectDatabaseCalls[e=b.substring(0,--d)];j&&(":"==e?(e=b.toLowerCase(),isNaN(parseInt(b.substring(1)))?0==e.indexOf(":smiles:")?(j+="?POST?smiles="+b.substring(8),b="smiles"):0==e.indexOf(":cid:")?b="cid/"+b.substring(5):(0==e.indexOf(":name:")?b=b.substring(5):0==e.indexOf(":cas:")&&(b=b.substring(4)),b="name/"+encodeURIComponent(b.substring(d))): b="cid/"+b.substring(1)):b=encodeURIComponent(b.substring(d)),0<=b.indexOf(".mmtf")?b="https://mmtf.rcsb.org/v1.0/full/"+b.replace(/\.mmtf/,""):0<=j.indexOf("FILENCI")?(b=b.replace(/\%2F/g,"/"),b=j.replace(/\%FILENCI/,b)):b=j.replace(/\%FILE/,b));return b};a._getRawDataFromServer=function(b,c,d,e,j,h){b="?call=getRawDataFromDatabase&database="+b+(0<=c.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(c)+(j?"&encoding=base64":"")+(h?"":"&script="+encodeURIComponent(a._getScriptForDatabase(b))); return a._contactServer(b,d,e)};a._checkFileName=function(b,c,d){a._isDatabaseCall(c)&&(d&&a._setQueryTerm(b,c),c=a._getDirectDatabaseCall(c,!0),a._isDatabaseCall(c)&&(c=a._getDirectDatabaseCall(c,!1),d&&(d[0]=!0)));return c};a._checkCache=function(b,c,d){if(b._cacheFiles&&a._fileCache&&!c.endsWith(".js")){if(b=a._fileCache[c])return System.out.println("using "+b.length+" bytes of cached data for "+c),d(b),null;d=function(b,c){d(a._fileCache[b]=c)}}return d};a.playAudio=function(b){a._playAudio(null, b)};a._playAudio=function(a,c){var d=c.get?function(a){return c.get(a)}:null,e=c.put?function(a,b){return c.put(a,b)}:null,j=d?d("audioFile"):c,h=d&&d("audioPlayer"),l=document.createElement("audio");e&&e("audioElement",l);var t=null;h&&(t=function(a){h.processUpdate(a)},h.myClip={open:function(){t("open")},start:function(){l.play();t("start")},loop:function(a){l.loop=0!=a},stop:function(){l.pause()},close:function(){t("close")},setMicrosecondPosition:function(a){l.currentTime=a/1E6}});l.controls= "true";l.src=j;d&&d("loop")&&(l.loop="true");t&&(l.addEventListener("pause",function(){t("pause")}),l.addEventListener("play",function(){t("play")}),l.addEventListener("playing",function(){t("playing")}),l.addEventListener("ended",function(){t("ended")}),t("open"))};a._loadFileData=function(b,c,d,e){var j=[];c=a._checkFileName(b,c,j);d=a._checkCache(b,c,d);j[0]?a._getRawDataFromServer("_",c,d,e):(b={type:"GET",dataType:"text",url:c,async:a._asynchronous,success:function(b){a._loadSuccess(b,d)},error:function(){a._loadError(e)}}, a._checkAjaxPost(b),a._ajax(b))};a._getInfoFromDatabase=function(b,c,d){if("===="==c){var e=a.db._restQueryXml.replace(/QUERY/,d),e={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:a.db._restQueryUrl,data:encodeURIComponent(e)+"&req=browser",success:function(e){a._ajaxDone();a._extractInfoFromRCSB(b,c,d,e)},error:function(){a._loadError(null)},async:a._asynchronous};return a._ajax(e)}d="?call=getInfoFromDatabase&database="+c+"&query="+encodeURIComponent(d);return a._contactServer(d, function(d){a._setInfo(b,c,d)})};a._extractInfoFromRCSB=function(b,c,d,e){var j=e.length/5;if(0!=j&&4==d.length&&1!=j){d=d.toUpperCase();var h=e.indexOf(d);0h.indexOf("?")&&h==b._thisJmolModel)){b._thisJmolModel=h;var l;e&&null!=b._viewSet&&null!=(l=a.View.__findView(b._viewSet,{chemID:h}))?a.View.__setView(l,b,!1):("$"==j||":"==j?b._jmolFileType="MOL":"="==j&&(b._jmolFileType="PDB"),b._searchDatabase(c,j,d))}};a._searchDatabase=function(b,c,d,e){b._showInfo(!1);return 0<=c.indexOf("?")?(a._getInfoFromDatabase(b,d,c.split("?")[0]),!0):a.db._DirectDatabaseCalls[d]?(b._loadFile(d+c,e),!0):!1};a._syncBinaryOK= "?";a._canSyncBinary=function(b){if(a._isAsync)return!0;if(self.VBArray)return a._syncBinaryOK=!1;if("?"!=a._syncBinaryOK)return a._syncBinaryOK;a._syncBinaryOK=!0;try{var c=new window.XMLHttpRequest;c.open("text",a._ajaxTestSite,!1);c.hasOwnProperty("responseType")?c.responseType="arraybuffer":c.overrideMimeType&&c.overrideMimeType("text/plain; charset=x-user-defined")}catch(d){return System.out.println("JSmolCore.js: synchronous binary file transfer is requested but not available"),a._alertNoBinary&& !b&&alert("JSmolCore.js: synchronous binary file transfer is requested but not available"),a._syncBinaryOK=!1}return!0};a._binaryTypes="mmtf .gz .bz2 .jpg .gif .png .zip .jmol .bin .smol .spartan .pmb .mrc .map .ccp4 .dn6 .delphi .omap .pse .dcd .uk/pdbe/densities/".split(" ");a._isBinaryUrl=function(b){for(var c=a._binaryTypes.length;0<=--c;)if(0<=b.indexOf(a._binaryTypes[c]))return!0;return!1};a._getFileData=function(b,c,d){var e=a._isBinaryUrl(b),j=0<=b.indexOf(".gz")&&0<=b.indexOf("rcsb.org"); j&&(b=b.replace(/\.gz/,""),e=!1);var j=e&&!c&&!a._canSyncBinary(j),h=0<=b.indexOf("?POST?");0==b.indexOf("file:/")&&0!=b.indexOf("file:///")&&(b="file://"+b.substring(5));var l=0>b.indexOf("://")||0==b.indexOf(document.location.protocol)&&0<=b.indexOf(document.location.host),t="https://"==a._httpProto&&0==b.indexOf("http://"),m=a._isDirectCall(b);!m&&0<=b.indexOf("?ALLOWSORIGIN?")&&(m=!0,b=b.replace(/\?ALLOWSORIGIN\?/,""));var s=!l&&a.$supportsIECrossDomainScripting(),u=null;if(t||j||!l&&!m||!c&& s)u=a._getRawDataFromServer("_",b,c,c,j,!0);else{b=b.replace(/file:\/\/\/\//,"file://");var Q={dataType:e?"binary":"text",async:!!c};h?(Q.type="POST",Q.url=b.split("?POST?")[0],Q.data=b.split("?POST?")[1]):(Q.type="GET",Q.url=b);c&&(Q.success=function(){c(a._xhrReturn(Q.xhr))},Q.error=function(){c(Q.xhr.statusText)});Q.xhr=a.$ajax(Q);c||(u=a._xhrReturn(Q.xhr))}if(!d)return u;null==u&&(u="",e=!1);e&&(e=a._canSyncBinary(!0));return e?a._strToBytes(u):JU.SB.newS(u)};a._xhrReturn=function(a){return!a.responseText|| self.Clazz&&Clazz.instanceOf(a.response,self.ArrayBuffer)?a.response||a.statusText:a.responseText};a._isDirectCall=function(b){if(0<=b.indexOf("?ALLOWSORIGIN?"))return!0;for(var c in a.db._DirectDatabaseCalls)if(0<=c.indexOf(".")&&0<=b.indexOf(c))return!0;return!1};a._cleanFileData=function(a){return 0<=a.indexOf("\r")&&0<=a.indexOf("\n")?a.replace(/\r\n/g,"\n"):0<=a.indexOf("\r")?a.replace(/\r/g,"\n"):a};a._getFileType=function(a){var c=a.substring(0,1);if("$"==c||":"==c)return"MOL";if("="==c)return"="== a.substring(1,2)?"LCIF":"PDB";a=a.split(".").pop().toUpperCase();return a.substring(0,Math.min(a.length,3))};a._getZ=function(b,c){return b&&b._z&&b._z[c]||a._z[c]};a._incrZ=function(b,c){return b&&b._z&&++b._z[c]||++a._z[c]};a._hideLocalFileReader=function(b){b._localReader&&a.$setVisible(b._localReader,!1);b._readingLocal=!1;a._setCursor(b,0)};a.loadFileFromDialog=function(b){a._loadFileAsynchronously(null,b,null,null)};a._loadFileAsynchronously=function(b,c,d,e){if(d&&0!=d.indexOf("?")){var j= d;d=a._checkFileName(c,d);var h=function(h){a._setData(b,d,j,h,e,c)},h=a._checkCache(c,d,h);0<=d.indexOf("|")&&(d=d.split("|")[0]);return null==h?null:a._getFileData(d,h)}if(!a.featureDetection.hasFileReader)return b?b.setData("Local file reading is not enabled in your browser",null,null,e,c):alert("Local file reading is not enabled in your browser");c._localReader||(h='
', a.$after("#"+c._id+"_appletdiv",h.replace(/ID/g,c._id+"_localReader")),c._localReader=a.$(c,"localReader"));a.$appEvent(c,"localReader_loadurl","click");a.$appEvent(c,"localReader_loadurl","click",function(){var b=prompt("Enter a URL");b&&(a._hideLocalFileReader(c,0),a._setData(null,b,b,null,e,c))});a.$appEvent(c,"localReader_loadfile","click");a.$appEvent(c,"localReader_loadfile","click",function(){var d=a.$(c,"localReader_files")[0].files[0],j=new FileReader;j.onloadend=function(j){j.target.readyState== FileReader.DONE&&(a._hideLocalFileReader(c,0),a._setData(b,d.name,d.name,j.target.result,e,c))};try{j.readAsArrayBuffer(d)}catch(h){alert("You must select a file first.")}});a.$appEvent(c,"localReader_cancel","click");a.$appEvent(c,"localReader_cancel","click",function(){a._hideLocalFileReader(c);b&&b.setData("#CANCELED#",null,null,e,c)});a.$setVisible(c._localReader,!0);c._readingLocal=!0};a._setData=function(b,c,d,e,j,h){e&&(e=a._strToBytes(e));null!=e&&(null==b||0<=c.indexOf(".jdx"))&&a.Cache.put("cache://"+ c,e);null==b?h._applet.openFileAsyncSpecial(null==e?c:"cache://"+c,1):b.setData(c,d,e,j)};a._doAjax=function(b,c,d){b=b.toString();if(null!=d)return a._saveFile(b,d);c&&(b+="?POST?"+c);return a._getFileData(b,null,!0)};a._saveFile=function(b,c,d,e){if(a._localFileSaveFunction&&a._localFileSaveFunction(b,c))return"OK";b=b.substring(b.lastIndexOf("/")+1);d||(d=0<=b.indexOf(".pdf")?"application/pdf":0<=b.indexOf(".png")?"image/png":0<=b.indexOf(".gif")?"image/gif":0<=b.indexOf(".jpg")?"image/jpg":""); c=(JU?JU:J.util).Base64.getBase64("string"==typeof c?c.getBytes("UTF-8"):c).toString();e||(e="base64");var j=a._serverUrl;j&&0<=j.indexOf("your.server")&&(j="");a._useDataURI||!j?(e=document.createElement("a"),e.href="data:"+d+";base64,"+c,e.type=d||"text/plain;charset=utf-8",e.download=b,e.target="_blank",m("body").append(e),e.click(),e.remove()):(a._formdiv||(a.$after("body",''), a._formdiv="__jsmolform__"),a.$attr(a._formdiv,"action",j+"?"+(new Date).getMilliseconds()),a.$val("__jsmoldata__",c),a.$val("__jsmolfilename__",b),a.$val("__jsmolmimetype__",d),a.$val("__jsmolencoding__",e),a.$submit("__jsmolform__"),a.$val("__jsmoldata__",""),a.$val("__jsmolfilename__",""));return"OK"};a._strToBytes=function(a){if(Clazz.instanceOf(a,self.ArrayBuffer))return Clazz.newByteArray(-1,a);for(var c=Clazz.newByteArray(a.length,0),d=a.length;0<=--d;)c[d]=a.charCodeAt(d)&255;return c};a._setConsoleDiv= function(a){self.Clazz&&Clazz.setConsoleDiv(a)};a._registerApplet=function(b,c){return window[b]=a._applets[b]=a._applets[b+"__"+a._syncId+"__"]=c};a._readyCallback=function(b,c,d,e,j){b=b.split("_object")[0];var h=a._applets[b];if(d=d.booleanValue?d.booleanValue():d)h._appletPanel=j||e,h._applet=e;a._track(h)._readyCallback(b,c,d)};a._getWrapper=function(b,c){var d;if(c){var e="";if(b._coverImage)var e=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+'"',j='",e='
"+j+"
";j=b._isJava?"":'';d=a._appletCssText.replace(/\'/g,'"');var h=b._getSpinner&&b._getSpinner();b._spinner=h=!h||"none"==h?"":"background-image:url("+h+"); background-repeat:no-repeat; background-position:center;";d=h+(0<=d.indexOf('style="')?d.split('style="')[1]:'" '+d);d='...
IMG WAIT......
";var h=b._height,l=b._width;if("string"!==typeof h||0>h.indexOf("%"))h+="px";if("string"!==typeof l||0>l.indexOf("%"))l+="px";d=d.replace(/IMG/,e).replace(/WAIT/,j).replace(/Hpx/g,h).replace(/Wpx/g,l)}else d='......
............
..................
......
...
'; return d.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,b._id)};a._hideLoadingSpinner=function(b){b._spinner&&a.$css(a.$(b,"appletdiv"),{"background-image":""})};a._documentWrite=function(b){if(a._document){if(a._isXHTML&&!a._XhtmlElement){var c=document.getElementsByTagName("script");a._XhtmlElement=c.item(c.length-1);a._XhtmlAppendChild=!1}a._XhtmlElement?a._domWrite(b):a._document.write(b)}return b};a._domWrite=function(b){for(var c=[0];c[0]b.jarFile.indexOf("Signed")&&(b.jarFile=b.jarFile.replace(/Applet/,"AppletSigned")),b.use= b.use.replace(/SIGNED/,"JAVA"),b.isSigned=!0)};a._syncedApplets=[];a._syncedCommands=[];a._syncedReady=[];a._syncReady=!1;a._isJmolJSVSync=!1;a._setReady=function(b){a._syncedReady[b]=1;for(var c=0,d=0;db[0]?-1:0}if(!a||"object"!=typeof a)return[];for(var d=[],e=a.length-1;0<=e;e--)for(var j=0,h=a[e].length;jc.type.indexOf("touch"))return!1;var d=a.$offset(b.id),e,j=c.originalEvent;c.pageX||(c.pageX=j.pageX);c.pageY||(c.pageY=j.pageY);a._mousePageX=c.pageX;a._mousePageY=c.pageY;j.targetTouches&&j.targetTouches[0]?(e=j.targetTouches[0].pageX-d.left,d=j.targetTouches[0].pageY-d.top):j.changedTouches?(e=j.changedTouches[0].pageX-d.left,d=j.changedTouches[0].pageY-d.top):(e=c.pageX-d.left,d=c.pageY-d.top);return void 0== e?null:[Math.round(e),Math.round(d),a._jsGetMouseModifiers(c)]};a._setCursor=function(b,c){if(!b._isJava&&!b._readingLocal){var d;switch(c){case 1:d="crosshair";break;case 3:d="wait";a.$setVisible(a.$(b,"waitimage"),!0);break;case 8:d="ns-resize";break;case 12:d="grab";break;case 13:d="move";break;default:a.$setVisible(a.$(b,"waitimage"),!1),d="default"}b._canvas.style.cursor=d}};a._gestureUpdate=function(b,c){c.stopPropagation();c.preventDefault();var d=c.originalEvent;switch(c.type){case "touchstart":a._touching= !0;break;case "touchend":a._touching=!1}if(!d.touches||2!=d.touches.length)return!1;switch(c.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var e=a.$offset(b.id),j=b._touches[0],h=b._touches[1];j.push([d.touches[0].pageX-e.left,d.touches[0].pageY-e.top]);h.push([d.touches[1].pageX-e.left,d.touches[1].pageY-e.top]);d=j.length;3e? -1:1,0,d]);return!1});a.$bind(b,"contextmenu",function(){return!1});a.$bind(b,"mouseout",function(d){if(c(d))return!0;a._mouseOwner&&!a._mouseOwner.mouseMove&&a._setMouseOwner(null);b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!1);a._jsGetXY(b,d);return!1});a.$bind(b,"mouseenter",function(d){if(c(d))return!0;b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!0);if(0===d.buttons||0===d.which){b.isDragging=!1;d=a._jsGetXY(b,d);if(!d)return!1;b.applet._processEvent(504, d);b.applet._processEvent(502,d);return!1}});a.$bind(b,"mousemoveoutjsmol",function(d,e,j){if(c(j))return!0;if(b==a._mouseOwner&&b.isDragging)return a._drag(b,j)});b.applet._is2D&&a.$resize(function(){b.applet&&b.applet._resize()});a.$bind("body","mouseup touchend",function(d){if(c(d))return!0;b.applet&&(b.isDragging=!1);a._setMouseOwner(null)})};a._jsUnsetMouse=function(b){b.applet=null;a.$bind(b,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter", null);a._setMouseOwner(null)};a.Swing={count:0,menuInitialized:0,menuCounter:0,htDialogs:{}};var s=a.Swing;SwingController=s;s.setDraggable=function(b){b=b.prototype;b.setContainer||(b.setContainer=function(b){this.container=b;b.obj=this;this.ignoreMouse=this.isDragging=!1;var d=this;b.bind("mousedown touchstart",function(b){if(d.ignoreMouse)return d.ignoreMouse=!1,!0;a._setMouseOwner(d,!0);d.isDragging=!0;d.pageX=b.pageX;d.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(d.isDragging&& a._mouseOwner==d)return d.mouseMove(b),!1});b.bind("mouseup touchend",function(b){d.mouseUp(b);a._setMouseOwner(null)})},b.mouseUp=function(b){if(this.isDragging&&a._mouseOwner==this)return this.pageX0+=b.pageX-this.pageX,this.pageY0+=b.pageY-this.pageY,this.isDragging=!1;a._setMouseOwner(null)},b.setPosition=function(){if(null===a._mousePageX){var b=a.$offset(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"));a._mousePageX=b.left;a._mousePageY=b.top}this.pageX0=a._mousePageX;this.pageY0= a._mousePageY;this.container.css({top:a._mousePageY+"px",left:a._mousePageX+"px"})},b.mouseMove=function(b){if(this.isDragging&&a._mouseOwner==this){this.timestamp=System.currentTimeMillis();var d=this.pageX0+(b.pageX-this.pageX);b=this.pageY0+(b.pageY-this.pageY);a._mousePageX=d;a._mousePageY=b;this.container.css({top:b+"px",left:d+"px"})}},b.dragBind=function(b){this.applet._ignoreMouse=!b;this.container.unbind("mousemoveoutjsmol");this.container.unbind("touchmoveoutjsmol");this.container.unbind("mouseupoutjsmol"); this.container.unbind("touchendoutjsmol");a._setMouseOwner(null);if(b){var d=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(a,b,c){d.mouseMove(c)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(a,b,c){d.mouseUp(c)})}})};s.JSDialog=function(){};s.setDraggable(s.JSDialog);s.getScreenDimensions=function(a){a.width=m(window).width();a.height=m(window).height()};s.dispose=function(b){a.$remove(b.id+"_mover");delete s.htDialogs[b.id];b.container.obj.dragBind(!1)}; s.register=function(a,c){a.id=c+ ++s.count;s.htDialogs[a.id]=a};s.setDialog=function(b){a._setMouseOwner(null);a.$remove(b.id);var c=b.id+"_mover",d=a._$(c),e;d[0]?(d.html(b.html),e=d[0].jd):(a.$after("body","
"+b.html+"
"),e=new s.JSDialog,d=a._$(c),b.container=d,e.applet=b.manager.vwr.html5Applet,e.setContainer(d),e.dialog=b,e.setPosition(),e.dragBind(!0),d[0].jd=e);a.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){e.ignoreMouse= !0});a.$bind("#"+b.id+" .JComboBox","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JTextField","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){e.ignoreMouse=!0});a.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){e.ignoreMouse= !0})};s.setSelected=function(b){a.$prop(b.id,"checked",!!b.selected)};s.setSelectedIndex=function(b){a.$prop(b.id,"selectedIndex",b.selectedIndex)};s.setText=function(b){a.$prop(b.id,"value",b.text)};s.setVisible=function(b){a.$setVisible(b.id,b._visible)};s.setEnabled=function(b){a.$setEnabled(b.id,b.enabled)};s.click=function(b,c){var d=s.htDialogs[b.id];if(d){var e=d.toString();if(0<=e.indexOf("JCheck"))d.selected=b.checked;else if(0<=e.indexOf("JCombo"))d.selectedIndex=b.selectedIndex;else if(null!= d.text&&(d.text=b.value,c&&13!=(c.charCode||c.keyCode)))return}e=s.htDialogs[a.$getAncestorDiv(b.id,"JDialog").id];e.manager.actionPerformed(d?d.name:e.registryKey+"/"+b.id)};s.setFront=function(b){var c=b.manager.vwr.html5Applet;b.zIndex!=a._getZ(c,"dialog")&&(b.zIndex=a._incrZ(c,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};s.hideMenus=function(a){if(a=a._menus)for(var c in a)a[c]._visible&&s.hideMenu(a[c])};s.windowClosing=function(b){b=s.htDialogs[a.$getAncestorDiv(b.id, "JDialog").id];b.registryKey?b.manager.processWindowClosing(b.registryKey):b.dispose()};a._track=function(b){if(a._tracker){try{var c='';a.$after("body",c)}catch(d){}delete a._tracker}return b};var u;a.getProfile=function(a){if(self.Clazz&&self.JSON)return u||Clazz._startProfiling(u= 0==arguments.length||a),Clazz.getProfile()};a._getInChIKey=function(a,c){0<=c.indexOf("MOL=")&&c.split("MOL=")[1].split('"')};a._getAttr=function(a,c){var d=a.indexOf(c+"=");return 0<=d&&0<=(d=a.indexOf('"',d))?a.substring(d+1,a.indexOf('"',d+1)):null};a.User={viewUpdatedCallback:null};a.View={count:0,applets:{},sets:{}};(function(b){b.resetView=function(b,d){debugger;if(d){if(d._viewSet){var e=a.View.applets[d._viewSet];for(b in e)b!=d&&a.View.resetView(b)}}else b&&(b._reset(),a.View.updateView(b))}; b.updateView=function(c,d){if(null!=c._viewSet){d||(d={});d.chemID||(c._searchQuery=null);d.data||(d.data="N/A");d.type=c._viewType;if(null==(c._currentView=b.__findView(c._viewSet,d)))c._currentView=b.__createViewSet(c._viewSet,d.chemID,d.viewID||d.chemID);c._currentView[d.type].data=d.data;c._currentView[d.type].smiles=c._getSmiles();a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(c,"updateView");b.__setView(c._currentView,c,!1)}};b.updateFromSync=function(c,d){c._updateMsg=d;var e=a._getAttr(d, "sourceID")||a._getAttr(d,"file");if(e){var j=b.__findView(c._viewSet,{viewID:e});if(null==j)return a.updateView(c,d);j!=c._currentView&&b.__setView(j,c,!0);var h=(e=a._getAttr(d,"atoms"))&&0<=d.indexOf("selectionhalos ON")?eval("["+e+"]"):[];setTimeout(function(){c._currentView==j&&b.updateAtomPick(c,h)},10);a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(c,"updateFromSync")}};b.updateAtomPick=function(b,d){var e=b._currentView;if(null!=e){for(var j in e)"info"!=j&&e[j].applet!=b&&e[j].applet._updateAtomPick(d); a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(a){var d=b.sets[a];if(d){var e="View set "+a+":\n";a=b.applets[a];for(var j in a)e+="\napplet "+a[j]._id+" currentView="+(a[j]._currentView?a[j]._currentView.info.viewID:null);for(j=d.length;0<=--j;){a=d[j];var e=e+("\n\nview="+j+" viewID="+a.info.viewID+" chemID="+a.info.chemID+"\n"),h,l;for(l in a)"info"!=l&&(e+="\nview="+j+" type="+l+" applet="+((h=a[l]).applet?h.applet._id:null)+" SMILES="+ h.smiles+"\n atomMap="+JSON.stringify(h.atomMap)+"\n data=\n"+h.data+"\n")}return e}};b.__init=function(a){var d=a._viewSet,e=b.applets;e[d]||(e[d]={});e[d][a._viewType]=a};b.__findView=function(a,d){var e=b.sets[a];null==e&&(e=b.sets[a]=[]);for(var j=e.length;0<=--j;){var h=e[j];if(d.viewID){if(h.info.viewID==d.viewID)return h}else{if(null!=d.chemID&&d.chemID==h.info.chemID)return h;for(var l in h)if("info"!=l&&(null!=d.data&&null!=h[l].data?d.data==h[l].data:d.type==l))return h}}return null};b.__createViewSet= function(c,d,e){b.count++;d={info:{chemID:d,viewID:e||"model_"+b.count}};for(var j in a._applets)e=a._applets[j],e._viewSet==c&&(d[e._viewType]={applet:e,data:null});b.sets[c].push(d);return d};b.__setView=function(a,b,e){for(var j in a)if("info"!=j){var h=a[j],l=h.applet,t=e||null!=l&&""==l._molData;if(!(null==l||l==b&&!t)){var m=null==h.data,s=null!=l._currentView;l._currentView=a;if(!s||!(a[j].data==h.data&&!m&!t))if(l._loadModelFromView(a),m)break}}}})(a.View);a.Cache={fileCache:{}}; a.Cache.get=function(b){return a.Cache.fileCache[b]};a.Cache.put=function(b,c){a.Cache.fileCache[b]=c};a.Cache.setDragDrop=function(b){a.$appEvent(b,"appletdiv","dragover",function(a){a=a.originalEvent;a.stopPropagation();a.preventDefault();a.dataTransfer.dropEffect="copy"});a.$appEvent(b,"appletdiv","drop",function(c){var d=c.originalEvent;d.stopPropagation();d.preventDefault();var e=d.dataTransfer.files[0];if(null==e)try{e=""+d.dataTransfer.getData("text"),(0==e.indexOf("file:/")||0==e.indexOf("http:/")|| 0==e.indexOf("https:/"))&&b._scriptLoad(e)}catch(j){}else d=new FileReader,d.onloadend=function(d){if(d.target.readyState==FileReader.DONE){var j="cache://DROP_"+e.name;d=Clazz.newByteArray(-1,d.target.result);j.endsWith(".spt")||b._appletPanel.cacheFileByName("cache://DROP_*",!1);"JSV"==b._viewType||j.endsWith(".jdx")?a.Cache.put(j,d):b._appletPanel.cachePut(j,d);(d=a._jsGetXY(b._canvas,c))&&(!b._appletPanel.setStatusDragDropped||b._appletPanel.setStatusDragDropped(0,d[0],d[1],j))&&b._appletPanel.openFileAsyncSpecial(j, 1)}},d.readAsArrayBuffer(e)})}})(Jmol,jQuery);Jmol._debugCode=!1; (function(a){a._isAsync=!1;a._asyncCallbacks={};a._coreFiles=[];var m=!1,l=[],h=[],e=0,j=[],t=[],s=function(b){arguments.length||(b=!0);delete e;for(var d;0t.join("").indexOf(e[b])&&t.push(d+"/core/core"+e[b]+".z.js");for(b=0;b'+b+"._cover(false)\x3c/script>"));e+=a._getWrapper(this,!1);c.addSelectionOptions&&(e+= a._getGrabberOptions(this));a._debugAlert&&!a._document&&alert(e);this._code=a._documentWrite(e)};b._newCanvas=function(a){this._is2D?this._createCanvas2d(a):this._GLmol.create()};b._getHtml5Canvas=function(){return this._canvas};b._getWidth=function(){return this._canvas.width};b._getHeight=function(){return this._canvas.height};b._getContentLayer=function(){return a.$(this,"contentLayer")[0]};b._repaintNow=function(){a._repaint(this,!1)};b._createCanvas2d=function(){var b=a.$(this,"appletdiv"); try{b[0].removeChild(this._canvas),this._canvas.frontLayer&&b[0].removeChild(this._canvas.frontLayer),this._canvas.rearLayer&&b[0].removeChild(this._canvas.rearLayer),this._canvas.contentLayer&&b[0].removeChild(this._canvas.contentLayer),a._jsUnsetMouse(this._mouseInterface)}catch(c){}var e=Math.round(b.width()),j=Math.round(b.height()),h=document.createElement("canvas");h.applet=this;this._canvas=h;h.style.width="100%";h.style.height="100%";h.width=e;h.height=j;h.id=this._id+"_canvas2d";b.append(h); a._$(h.id).css({"z-index":a._getZ(this,"main")});if(this._isLayered){var l=document.createElement("div");h.contentLayer=l;l.id=this._id+"_contentLayer";b.append(l);a._$(l.id).css({zIndex:a._getZ(this,"image"),position:"absolute",left:"0px",top:"0px",width:(this._isSwing?e:0)+"px",height:(this._isSwing?j:0)+"px",overflow:"hidden"});this._isSwing?(b=document.createElement("div"),b.id=this._id+"_swingdiv",a._$(this._id+"_appletinfotablediv").append(b),a._$(b.id).css({zIndex:a._getZ(this,"rear"),position:"absolute", left:"0px",top:"0px",width:e+"px",height:j+"px",overflow:"hidden"}),this._mouseInterface=h.contentLayer,h.contentLayer.applet=this):this._mouseInterface=this._getLayer("front",b,e,j,!1)}else this._mouseInterface=h;a._jsSetMouse(this._mouseInterface)};b._getLayer=function(b,c,e,j,h){var l=document.createElement("canvas");this._canvas[b+"Layer"]=l;l.style.width="100%";l.style.height="100%";l.id=this._id+"_"+b+"Layer";l.width=e;l.height=j;c.append(l);l.applet=this;a._$(l.id).css({background:h?"rgb(0,0,0,1)": "rgb(0,0,0,0.001)","z-index":a._getZ(this,b),position:"absolute",left:"0px",top:"0px",overflow:"hidden"});return l};b._setupJS=function(){window["j2s.lib"]={base:this._j2sPath+"/",alias:".",console:this._console,monitorZIndex:a._getZ(this,"monitorZIndex")};0==h.length&&a._addExec([this,u,null,"loadClazz"]);this._addCoreFiles();a._addExec([this,this.__startAppletJS,null,"start applet"]);this._isSigned=!0;this._ready=!1;this._applet=null;this._canScript=function(){return!0};this._savedOrientations= [];e&&clearTimeout(e);e=setTimeout(s,100)};b.__startAppletJS=function(b){0==a._version.indexOf("$Date: ")&&(a._version=(a._version.substring(7)+" -").split(" -")[0]+" (JSmol/j2s)");var c=Clazz._4Name("java.util.Hashtable").newInstance();a._setAppletParams(b._availableParams,c,b.__Info,!0);c.put("appletReadyCallback","Jmol._readyCallback");c.put("applet",!0);c.put("name",b._id);c.put("syncId",a._syncId);a._isAsync&&c.put("async",!0);b._color&&c.put("bgcolor",b._color);b._startupScript&&c.put("script", b._startupScript);a._syncedApplets.length&&c.put("synccallback","Jmol._mySyncCallback");c.put("signedApplet","true");c.put("platform",b._platform);b._is2D&&c.put("display",b._id+"_canvas2d");c.put("documentBase",document.location.href);var e=b._j2sPath+"/";if(0>e.indexOf("://")){var j=document.location.href.split("#")[0].split("?")[0].split("/");0==e.indexOf("/")?j=[j[0],e.substring(1)]:j[j.length-1]=e;e=j.join("/")}c.put("codePath",e);a._registerApplet(b._id,b);try{b._newApplet(c)}catch(h){System.out.println((a._isAsync? "normal async abort from ":"")+h);return}b._jsSetScreenDimensions();s()};b._restoreState||(b._restoreState=function(){});b._jsSetScreenDimensions=function(){if(this._appletPanel){var b=a._getElement(this,this._is2D?"canvas2d":"canvas");this._appletPanel.setScreenDimension(b.width,b.height)}};b._show=function(b){a.$setVisible(a.$(this,"appletdiv"),b);b&&a._repaint(this,!0)};b._canScript=function(){return!0};b.equals=function(a){return this==a};b.clone=function(){return this};b.hashCode=function(){return parseInt(this._uniqueId)}; b._processGesture=function(a){return this._appletPanel.processTwoPointGesture(a)};b._processEvent=function(a,b){this._appletPanel.processMouseEvent(a,b[0],b[1],b[2],System.currentTimeMillis())};b._resize=function(){var b="__resizeTimeout_"+this._id;a[b]&&clearTimeout(a[b]);var c=this;a[b]=setTimeout(function(){a._repaint(c,!0);a[b]=null},100)};return b};a._repaint=function(b,e){if(b&&b._appletPanel){var j=a.$(b,"appletdiv"),h=Math.round(j.width()),j=Math.round(j.height());if(b._is2D&&(b._canvas.width!= h||b._canvas.height!=j))b._newCanvas(!0),b._appletPanel.setDisplay(b._canvas);b._appletPanel.setScreenDimension(h,j);h=function(){b._appletPanel.paint?b._appletPanel.paint(null):b._appletPanel.update(null)};e?requestAnimationFrame(h):h()}};a._loadImage=function(b,e,j,h,l,t){var m="echo_"+e+j+(h?"_"+h.length:""),s=a._getHiddenCanvas(b.vwr.html5Applet,m,0,0,!1,!0);if(null==s){if(null==t){t=new Image;if(null==h)return t.onload=function(){a._loadImage(b,e,j,null,l,t)},t.src=j,null;System.out.println("Jsmol.js Jmol._loadImage using data URI for "+ m);t.src="string"==typeof h?h:"data:"+JU.Rdr.guessMimeTypeForBytes(h)+";base64,"+JU.Base64.getBase64(h)}var u=t.width,U=t.height;"webgl"==e&&(u/=2,U/=2);s=a._getHiddenCanvas(b.vwr.html5Applet,m,u,U,!0,!1);s.imageWidth=u;s.imageHeight=U;s.id=m;s.image=t;a._setCanvasImage(s,u,U)}else System.out.println("Jsmol.js Jmol._loadImage reading cached image for "+m);return null==h?l(s,j):s};a._canvasCache={};a._getHiddenCanvas=function(b,e,j,h,l,t){e=b._id+"_"+e;b=a._canvasCache[e];if(t)return b;if(l||!b||b.width!= j||b.height!=h)b=document.createElement("canvas"),b.width=b.style.width=j,b.height=b.style.height=h,b.id=e,a._canvasCache[e]=b;return b};a._setCanvasImage=function(a,b,e){a.buf32=null;a.width=b;a.height=e;a.getContext("2d").drawImage(a.image,0,0,a.image.width,a.image.height,0,0,b,e)};a._apply=function(a,b){return a(b)}})(Jmol); (function(a,m){a._Applet=function(e,j,h){window[e]=this;this._jmolType="Jmol._Applet"+(j.isSigned?" (signed)":"");this._viewType="Jmol";this._isJava=!0;this._syncKeyword="Select:";this._availableParams=";progressbar;progresscolor;boxbgcolor;boxfgcolor;allowjavascript;boxmessage;\t\t\t\t\t\t\t\t\t;messagecallback;pickcallback;animframecallback;appletreadycallback;atommovedcallback;\t\t\t\t\t\t\t\t\t;echocallback;evalcallback;hovercallback;language;loadstructcallback;measurecallback;\t\t\t\t\t\t\t\t\t;minimizationcallback;resizecallback;scriptcallback;statusform;statustext;statustextarea;\t\t\t\t\t\t\t\t\t;synccallback;usecommandthread;syncid;appletid;startupscript;menufile;"; if(h)return this;this._isSigned=j.isSigned;this._readyFunction=j.readyFunction;this._ready=!1;this._isJava=!0;this._isInfoVisible=!1;this._applet=null;this._memoryLimit=j.memoryLimit||512;this._canScript=function(){return!0};this._savedOrientations=[];this._initialize=function(e,h){var b=!1;a._jarFile&&(h=a._jarFile);if(this._jarFile){var c=this._jarFile;0<=c.indexOf("/")?(alert("This web page URL is requesting that the applet used be "+c+". This is a possible security risk, particularly if the applet is signed, because signed applets can read and write files on your local machine or network."), "yes"==prompt("Do you want to use applet "+c+"? ","yes or no")?(e=c.substring(0,c.lastIndexOf("/")),h=c.substring(c.lastIndexOf("/")+1)):b=!0):h=c;this_isSigned=j.isSigned=0<=h.indexOf("Signed")}this._jarPath=j.jarPath=e||".";this._jarFile=j.jarFile="string"==typeof h?h:(h?"JmolAppletSigned":"JmolApplet")+"0.jar";b&&alert("The web page URL was ignored. Continuing using "+this._jarFile+' in directory "'+this._jarPath+'"');void 0==a.controls||a.controls._onloadResetForms()};this._create(e,j);return this}; var l=a._Applet,h=a._Applet.prototype;l._get=function(e,j,h){h||(h=!1);j||(j={});a._addDefaultInfo(j,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",script:null,src:null,readyFunction:null,use:"HTML5",jarPath:"java",jarFile:"JmolApplet0.jar",isSigned:!1,j2sPath:"j2s",coverImage:null,makeLiveImage:null,coverTitle:"",coverCommand:"",deferApplet:!1,deferUncover:!1,disableJ2SLoadMonitor:!1,disableInitialConsole:!0,debug:!1});a._debugAlert= j.debug;j.serverURL&&(a._serverUrl=j.serverURL);for(var m=!1,u=null,b=j.use.toUpperCase().split("#")[0].split(" "),c=0;ch.codePath.indexOf("://")){var c=m.location.href.split("#")[0].split("?")[0].split("/");c[c.length-1]=h.codePath;h.codePath=c.join("/")}h.archive=s;h.mayscript="true";h.java_arguments="-Xmx"+Math.round(j.memoryLimit||e._memoryLimit)+"m";h.permissions=e._isSigned?"all-permissions":"sandbox";h.documentLocation=m.location.href;h.documentBase=m.location.href.split("#")[0].split("?")[0];h.jarPath=j.jarPath;a._syncedApplets.length&&(h.synccallback="Jmol._mySyncCallback"); e._startupScript&&(h.script=e._startupScript);var c="\n",d;for(d in h)h[d]&&(c+=" \n");c=a.featureDetection.useIEObject||a.featureDetection.useHtml4Object?"":" type='application/x-java-applet'>")+c+"

\n"+ l._noJavaMsg+"

\n":"\n"+c+"
\n"+l._noJavaMsg+"
\n";e._deferApplet&&(e._javaCode=c,c="");c=a._getWrapper(e,!0)+c+a._getWrapper(e,!1)+(j.addSelectionOptions?a._getGrabberOptions(e):"");a._debugAlert&&alert(c);e._code=a._documentWrite(c)};h._newApplet=function(a){this._is2D||a.put("script",(a.get("script")|| "")+";set multipleBondSpacing 0.35;");this._viewerOptions=a;return new J.appletjs.Jmol(a)};h._addCoreFiles=function(){a._addCoreFile("jmol",this._j2sPath,this.__Info.preloadCore);this._is2D||a._addExec([this,null,"J.export.JSExporter","load JSExporter"]);a._debugCode&&a._addExec([this,null,"J.appletjs.Jmol","load Jmol"])};h._create=function(e,j){a._setObject(this,e,j);var h={syncId:a._syncId,progressbar:"true",progresscolor:"blue",boxbgcolor:this._color||"black",boxfgcolor:"white",boxmessage:"Downloading JmolApplet ...", script:this._color?'background "'+this._color+'"':"",code:"JmolApplet.class"};a._setAppletParams(this._availableParams,h,j);var m;j.inlineModel?(m=j.inlineModel,m=m.replace(/\r|\n|\r\n/g,0<=m.indexOf("|")?"\\/n":"|").replace(/'/g,"'"),a._debugAlert&&alert("inline model:\n"+m)):m="";h.loadInline=m;h.appletReadyCallback="Jmol._readyCallback";a._syncedApplets.length&&(h.synccallback="Jmol._mySyncCallback");h.java_arguments="-Xmx"+Math.round(j.memoryLimit||this._memoryLimit)+"m";this._initialize(j.jarPath, j.jarFile);l._createApplet(this,j,h)};h._restoreState=function(e,j){System.out.println("\n\nasynchronous restore state for "+e+" "+j);var h=this,l=h._applet&&h._applet.viewer;switch(j){case "setOptions":return function(){h.__startAppletJS(h)};case "render":return function(){setTimeout(function(){l.refresh(2)},10)};default:switch(e){case "J.shape.Balls":case "J.shape.Sticks":case "J.shape.Frank":return null}if(l&&l.isScriptExecuting&&l.isScriptExecuting()){if(a._asyncCallbacks[e])return System.out.println("...ignored"), 1;var m=l.getEvalContextAndHoldQueue(l.eval),b=m.pc-1;m.asyncID=e;a._asyncCallbacks[e]=function(a){m.pc=a;System.out.println("sc.asyncID="+m.asyncID+" sc.pc = "+m.pc);l.eval.resumeEval(m)};l.eval.pc=l.eval.pcEnd;System.out.println("setting resume for pc="+m.pc+" "+e+" to "+a._asyncCallbacks[e]+"//");return function(){System.out.println("resuming "+e+" "+a._asyncCallbacks[e]);a._asyncCallbacks[e](b)}}System.out.println(e+"?????????????????????"+j);return function(){setTimeout(function(){l.refresh(2)}, 10)}}};h._notifyAudioEnded=function(a){this._applet.notifyAudioEnded(a)};h._readyCallback=function(e,j,h){if(h){a._setDestroy(this);this._ready=!0;e=this._readyScript;this._defaultModel?a._search(this,this._defaultModel,e?";"+e:""):e?this._script(e):this._src&&this._script('load "'+this._src+'"');this._showInfo(!0);this._showInfo(!1);a.Cache.setDragDrop(this);this._readyFunction&&this._readyFunction(this);a._setReady(this);if((e=this._2dapplet)&&e._isEmbedded&&e._ready&&e.__Info.visible)this._show2d(!0), this._show2d(!1),this._show2d(!0);a._hideLoadingSpinner(this)}};h._showInfo=function(e){e&&this._2dapplet&&this._2dapplet._show(!1);a.$html(a.$(this,"infoheaderspan"),this._infoHeader);this._info&&a.$html(a.$(this,"infodiv"),this._info);if(!this._isInfoVisible!=!e){this._isInfoVisible=e;if(this._isJava){var j=e?2:"100%";a.$setSize(a.$(this,"appletdiv"),j,j)}a.$setVisible(a.$(this,"infotablediv"),e);a.$setVisible(a.$(this,"infoheaderdiv"),e);this._show(!e)}};h._show2d=function(a){this._2dapplet._show2d(a); this._2dapplet._isEmbedded&&(this._showInfo(!1),this._show(!a),this._2dapplet.__showContainer(!0,!0))};h._getSpinner=function(){return this.__Info.appletLoadingImage||this._j2sPath+"/img/JSmol_spinner.gif"};h._getAtomCorrelation=function(a){this._loadMolData(a,"atommap = compare({1.1} {2.1} 'MAP' 'H'); zap 2.1",!0);a=this._evaluate("atommap");for(var j=this._evaluate("{*}.count"),h=[],l=[],m=0;marguments.length&&(j=1);var h=this._savedOrientations[a];return!h||""==h?h.replace(/1\.0/,j):this._scriptWait(h)};h._resizeApplet=function(e){function j(e,h){var b=""+e;return 0==b.length?h?"":a._allowedJmolSize[2]:b.indexOf("%")==b.length-1?b:1>=(e=parseFloat(e))&&0a._allowedJmolSize[1]?a._allowedJmolSize[1]:e)+(h?h:"")}var h;"object"==typeof e&&null!=e?(h=e[0]||e.width,e=e[1]||e.height):h=e;h=[j(h,"px"),j(e,"px")];e=a._getElement(this,"appletinfotablediv");e.style.width=h[0];e.style.height=h[1];this._containerWidth=h[0];this._containerHeight=h[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(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={_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);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 h=c.arguments,j=0;jU.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(s,c)&&s.push(c);q&&(q.claxxOwner===c?(m[q.funParams]=q,q.claxxOwner=null,q.funParams=null):q.claxxOwner||(m["\\unknown"]=q));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(g,25):g()}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(g&&(l=H(c)))if(l.onLoaded){if(g!=l.onLoaded){var r=l.onLoaded,q=g;l.onLoaded=function(){r();q()}}}else l.onLoaded=g}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=g;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;g&&(s=ha,ha=!0);h&&(g=null);Ja(d,l,!0);V(l,l.path,l.requiredBy,!1,g?function(){ha=s;g()}: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),g=0;g>");j=e[d];e[d]=!0;Ya(E,d);M=!0;sa=!1;b._checkLoad&&System.out.println("\t"+d+(g?"\n -- required by "+g:"")+" ajax="+M+" async="+sa);g=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,g,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(){g&&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<=g){if(b._checkLoad){var h;System.out.println("cycle found loading "+ c+" for "+a)}for(;gh;h++){k=j[h];for(g=k.length;0<=--g;)if(k[g].status==x.STATUS_DECLARED&&na(k[g],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 g=a.musts[e];g.requiredBy=a;if(g.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.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: 2018-02-07 23:40:37 -0600 (Wed, 07 Feb 2018) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.29.4";