(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(g){var v=g.length,a=f.type(g);return"function"===a||f.isWindow(g)?!1:1===g.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(g,a),eb.detach();nc[g]=p}return p}function fb(g, a){return{get:function(){var p=g();if(null!=p)if(p)delete this.get;else return(this.get=a).apply(this,arguments)}}}function gb(g,a){if(a in g)return a;for(var p=a.charAt(0).toUpperCase()+a.slice(1),b=a,f=oc.length;f--;)if(a=oc[f]+p,a in g)return a;return b}function va(g,a){for(var p,b,c,k=[],d=0,n=g.length;da;a+=2)"margin"===p&&(k+=f.css(g,p+Qa[a],!0,c)),b?("content"===p&&(k-=f.css(g,"padding"+Qa[a],!0,c)),"margin"!==p&&(k-= f.css(g,"border"+Qa[a]+"Width",!0,c))):(k+=f.css(g,"padding"+Qa[a],!0,c),"padding"!==p&&(k+=f.css(g,"border"+Qa[a]+"Width",!0,c)));return k}function aa(g,a,p){var b=!0,c="width"===a?g.offsetWidth:g.offsetHeight,k=Ra(g),d=w.boxSizing()&&"border-box"===f.css(g,"boxSizing",!1,k);if(0>=c||null==c){c=Sa(g,a,k);if(0>c||null==c)c=g.style[a];if(sb.test(c))return c;b=d&&(w.boxSizingReliable()||c===g.style[a]);c=parseFloat(c)||0}return c+x(g,a,p||(d?"border":"content"),b,k)+"px"}function L(g,a,p,b,f){return new L.prototype.init(g, a,p,b,f)}function ga(){setTimeout(function(){Za=void 0});return Za=f.now()}function O(g,a){var p,b={height:g},f=0;for(a=a?1:0;4>f;f+=2-a)p=Qa[f],b["margin"+p]=b["padding"+p]=g;a&&(b.opacity=b.width=g);return b}function wa(g,a,p){for(var b,f=(ib[a]||[]).concat(ib["*"]),c=0,k=f.length;cv&&b)return a;n.resolveWith(g,[r]);return!1},r=n.promise({elem:g,props:f.extend({},a),opts:f.extend(!0,{specialEasing:{}},p),originalProperties:a,originalOptions:p,startTime:Za||ga(),duration:p.duration,tweens:[],createTween:function(a,v){var p=f.Tween(g,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;vg?this[g+this.length]:this[g]:n.call(this)},pushStack:function(g){g=f.merge(this.constructor(),g);g.prevObject=this;g.context=this.context;return g},each:function(g,a){return f.each(this,g,a)},map:function(g){return this.pushStack(f.map(this,function(a,p){return g.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(g){var a= this.length;g=+g+(0>g?a:0);return this.pushStack(0<=g&&gp?Math.max(0,b+p):p:0;pG.cacheLength&&delete g[a.shift()];return g[p+" "]=b}var a=[];return g},pa=function(g){g[M]=!0;return g},qa=function(g){var a=R.createElement("div");try{return!!g(a)}catch(p){return!1}finally{a.parentNode&&a.parentNode.removeChild(a)}},Sb=function(g,a){for(var p=g.split("|"),b=g.length;b--;)G.attrHandle[p[b]]= a},pc=function(g,a){var p=a&&g,b=p&&1===g.nodeType&&1===a.nodeType&&(~a.sourceIndex||ia)-(~g.sourceIndex||ia);if(b)return b;if(p)for(;p=p.nextSibling;)if(p===a)return-1;return g?1:-1},id=function(g){return function(a){return"input"===a.nodeName.toLowerCase()&&a.type===g}},jd=function(g){return function(a){var p=a.nodeName.toLowerCase();return("input"===p||"button"===p)&&a.type===g}},ua=function(g){return pa(function(a){a=+a;return pa(function(p,b){for(var f,c=g([],p.length,a),k=c.length;k--;)if(p[f= c[k]])p[f]=!(b[f]=p[f])})})},ha=function(g){return g&&typeof g.getElementsByTagName!==T&&g},qc=function(){},ta=function(g,a){var p,b,f,c,k,d,n;if(k=Ja[g+" "])return a?0:k.slice(0);k=g;d=[];for(n=G.preFilter;k;){if(!p||(b=kd.exec(k)))b&&(k=k.slice(b[0].length)||k),d.push(f=[]);p=!1;if(b=ld.exec(k))p=b.shift(),f.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(),f.push({value:p,type:c,matches:b}),k=k.slice(p.length); if(!p)break}return a?k.length:k?D.error(g):Ja(g,d).slice(0)},vb=function(g){for(var a=0,p=g.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(g,a,p){g="0x"+a-65536;return g!==g||p?a:0>g?String.fromCharCode(g+65536):String.fromCharCode(g>>10|55296,g&1023|56320)};try{Ga.apply(N=tc.call(W.childNodes),W.childNodes),N[W.childNodes.length].nodeType}catch(Zd){Ga={apply:N.length?function(g,a){nd.apply(g,tc.call(a))}: function(g,a){for(var p=g.length,b=0;g[p++]=a[b++];);g.length=p-1}}}H=D.support={};rc=D.isXML=function(g){return(g=g&&(g.ownerDocument||g).documentElement)?"HTML"!==g.nodeName:!1};oa=D.setDocument=function(g){var a=g?g.ownerDocument||g:W;g=a.defaultView;if(a===R||9!==a.nodeType||!a.documentElement)return R;R=a;ja=a.documentElement;X=!rc(a);g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){oa()},!1):g.attachEvent&&g.attachEvent("onunload",function(){oa()}));H.attributes=qa(function(g){g.className= "i";return!g.getAttribute("className")});H.getElementsByTagName=qa(function(g){g.appendChild(a.createComment(""));return!g.getElementsByTagName("*").length});H.getElementsByClassName=lb.test(a.getElementsByClassName)&&qa(function(g){g.innerHTML="
";g.firstChild.className="i";return 2===g.getElementsByClassName("i").length});H.getById=qa(function(g){ja.appendChild(g).id=M;return!a.getElementsByName||!a.getElementsByName(M).length});H.getById?(G.find.ID=function(g, a){if(typeof a.getElementById!==T&&X){var b=a.getElementById(g);return b&&b.parentNode?[b]:[]}},G.filter.ID=function(g){var a=g.replace(Ha,Ia);return function(g){return g.getAttribute("id")===a}}):(delete G.find.ID,G.filter.ID=function(g){var a=g.replace(Ha,Ia);return function(g){return(g=typeof g.getAttributeNode!==T&&g.getAttributeNode("id"))&&g.value===a}});G.find.TAG=H.getElementsByTagName?function(g,a){if(typeof a.getElementsByTagName!==T)return a.getElementsByTagName(g)}:function(g,a){var b, v=[],f=0,c=a.getElementsByTagName(g);if("*"===g){for(;b=c[f++];)1===b.nodeType&&v.push(b);return v}return c};G.find.CLASS=H.getElementsByClassName&&function(g,a){if(typeof a.getElementsByClassName!==T&&X)return a.getElementsByClassName(g)};da=[];S=[];if(H.qsa=lb.test(a.querySelectorAll))qa(function(g){g.innerHTML="";g.querySelectorAll("[t^='']").length&&S.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");g.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)"); g.querySelectorAll(":checked").length||S.push(":checked")}),qa(function(g){var b=a.createElement("input");b.setAttribute("type","hidden");g.appendChild(b).setAttribute("name","D");g.querySelectorAll("[name=d]").length&&S.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");g.querySelectorAll(":enabled").length||S.push(":enabled",":disabled");g.querySelectorAll("*,:x");S.push(",.*:")});(H.matchesSelector=lb.test(La=ja.webkitMatchesSelector||ja.mozMatchesSelector||ja.oMatchesSelector||ja.msMatchesSelector))&& qa(function(g){H.disconnectedMatch=La.call(g,"div");La.call(g,"[s!='']:x");da.push("!=",Xb)});S=S.length&&RegExp(S.join("|"));da=da.length&&RegExp(da.join("|"));sa=(g=lb.test(ja.compareDocumentPosition))||lb.test(ja.contains)?function(g,a){var b=9===g.nodeType?g.documentElement:g,v=a&&a.parentNode;return g===v||!(!v||!(1===v.nodeType&&(b.contains?b.contains(v):g.compareDocumentPosition&&g.compareDocumentPosition(v)&16)))}:function(g,a){if(a)for(;a=a.parentNode;)if(a===g)return!0;return!1};A=g?function(g, b){if(g===b)return Ca=!0,0;var f=!g.compareDocumentPosition-!b.compareDocumentPosition;if(f)return f;f=(g.ownerDocument||g)===(b.ownerDocument||b)?g.compareDocumentPosition(b):1;return f&1||!H.sortDetached&&b.compareDocumentPosition(g)===f?g===a||g.ownerDocument===W&&sa(W,g)?-1:b===a||b.ownerDocument===W&&sa(W,b)?1:ra?Ua.call(ra,g)-Ua.call(ra,b):0:f&4?-1:1}:function(g,b){if(g===b)return Ca=!0,0;var f,c=0;f=g.parentNode;var k=b.parentNode,d=[g],n=[b];if(!f||!k)return g===a?-1:b===a?1:f?-1:k?1:ra?Ua.call(ra, g)-Ua.call(ra,b):0;if(f===k)return pc(g,b);for(f=g;f=f.parentNode;)d.unshift(f);for(f=b;f=f.parentNode;)n.unshift(f);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(g,a){return D(g,null,null,a)};D.matchesSelector=function(g,a){(g.ownerDocument||g)!==R&&oa(g);a=a.replace(od,"='$1']");if(H.matchesSelector&&X&&(!da||!da.test(a))&&(!S||!S.test(a)))try{var b=La.call(g,a);if(b||H.disconnectedMatch||g.document&&11!==g.document.nodeType)return b}catch(f){}return 0< D(a,R,null,[g]).length};D.contains=function(g,a){(g.ownerDocument||g)!==R&&oa(g);return sa(g,a)};D.attr=function(g,a){(g.ownerDocument||g)!==R&&oa(g);var b=G.attrHandle[a.toLowerCase()],b=b&&ea.call(G.attrHandle,a.toLowerCase())?b(g,a,!X):void 0;return void 0!==b?b:H.attributes||!X?g.getAttribute(a):(b=g.getAttributeNode(a))&&b.specified?b.value:null};D.error=function(g){throw Error("Syntax error, unrecognized expression: "+g);};D.uniqueSort=function(g){var a,b=[],f=0,c=0;Ca=!H.detectDuplicates;ra= !H.sortStable&&g.slice(0);g.sort(A);if(Ca){for(;a=g[c++];)a===g[c]&&(f=b.push(c));for(;f--;)g.splice(b[f],1)}ra=null;return g};Ka=D.getText=function(g){var a,b="",f=0;if(a=g.nodeType)if(1===a||9===a||11===a){if("string"===typeof g.textContent)return g.textContent;for(g=g.firstChild;g;g=g.nextSibling)b+=Ka(g)}else{if(3===a||4===a)return g.nodeValue}else for(;a=g[f++];)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(g){g[1]=g[1].replace(Ha,Ia);g[3]=(g[4]||g[5]||"").replace(Ha,Ia);"~="===g[2]&&(g[3]=" "+g[3]+" ");return g.slice(0,4)},CHILD:function(g){g[1]=g[1].toLowerCase();"nth"===g[1].slice(0,3)?(g[3]||D.error(g[0]),g[4]=+(g[4]?g[5]+(g[6]||1):2*("even"===g[3]||"odd"===g[3])),g[5]=+(g[7]+g[8]||"odd"===g[3])):g[3]&&D.error(g[0]);return g},PSEUDO:function(g){var a,b=!g[5]&&g[2];if(xb.CHILD.test(g[0]))return null; if(g[3]&&void 0!==g[4])g[2]=g[4];else if(b&&pd.test(b)&&(a=ta(b,!0))&&(a=b.indexOf(")",b.length-a)-b.length))g[0]=g[0].slice(0,a),g[2]=b.slice(0,a);return g.slice(0,3)}},filter:{TAG:function(g){var a=g.replace(Ha,Ia).toLowerCase();return"*"===g?function(){return!0}:function(g){return g.nodeName&&g.nodeName.toLowerCase()===a}},CLASS:function(g){var a=sc[g+" "];return a||(a=RegExp("(^|[\\x20\\t\\r\\n\\f])"+g+"([\\x20\\t\\r\\n\\f]|$)"))&&sc(g,function(g){return a.test("string"===typeof g.className&& g.className||typeof g.getAttribute!==T&&g.getAttribute("class")||"")})},ATTR:function(g,a,b){return function(f){f=D.attr(f,g);if(null==f)return"!="===a;if(!a)return!0;f+="";return"="===a?f===b:"!="===a?f!==b:"^="===a?b&&0===f.indexOf(b):"*="===a?b&&-1g.nodeType)return!1;return!0},parent:function(g){return!G.pseudos.empty(g)},header:function(g){return sd.test(g.nodeName)},input:function(g){return rd.test(g.nodeName)},button:function(g){var a=g.nodeName.toLowerCase();return"input"=== a&&"button"===g.type||"button"===a},text:function(g){var a;return"input"===g.nodeName.toLowerCase()&&"text"===g.type&&(null==(a=g.getAttribute("type"))||"text"===a.toLowerCase())},first:ua(function(){return[0]}),last:ua(function(g,a){return[a-1]}),eq:ua(function(g,a,b){return[0>b?b+a:b]}),even:ua(function(g,a){for(var b=0;bb?b+a:b;0<=--a;)g.push(a);return g}),gt:ua(function(g, a,b){for(b=0>b?b+a:b;++b";g.firstChild.setAttribute("value","");return""===g.firstChild.getAttribute("value")}))&&Sb("value",function(g,a,b){if(!b&&"input"===g.nodeName.toLowerCase())return g.defaultValue}); qa(function(g){return null==g.getAttribute("disabled")})||Sb("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(g,a,b){var f;if(!b)return!0===g[a]?a.toLowerCase():(f=g.getAttributeNode(a))&&f.specified?f.value:null});f.find=D;f.expr=D.selectors;f.expr[":"]=f.expr.pseudos;f.unique=D.uniqueSort;f.text=D.getText;f.isXMLDoc=D.isXML;f.contains=D.contains;var wc=f.expr.match.needsContext,xc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Vc= /^.[^:#\[\.,]*$/;f.filter=function(g,a,b){var c=a[0];b&&(g=":not("+g+")");return 1===a.length&&1===c.nodeType?f.find.matchesSelector(c,g)?[c]:[]:f.find.matches(g,f.grep(a,function(g){return 1===g.nodeType}))};f.fn.extend({find:function(g){var a,b=[],c=this,k=c.length;if("string"!==typeof g)return this.pushStack(f(g).filter(function(){for(a=0;a)[^>]*|#([\w-]*))$/;(f.fn.init=function(g,a){var b,c;if(!g)return this;if("string"===typeof g){if((b="<"===g.charAt(0)&&">"===g.charAt(g.length-1)&&3<=g.length?[null,g,null]:td.exec(g))&&(b[1]||!a)){if(b[1]){if(a=a instanceof f?a[0]:a,f.merge(this, f.parseHTML(b[1],a&&a.nodeType?a.ownerDocument||a:y,!0)),xc.test(b[1])&&f.isPlainObject(a))for(b in a)if(f.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(g);this.length=1;this[0]=c}this.context=y;this.selector=g}return this}return!a||a.jquery?(a||mb).find(g):this.constructor(a).find(g)}if(g.nodeType)return this.context=this[0]=g,this.length=1,this;if(f.isFunction(g))return"undefined"!==typeof mb.ready?mb.ready(g): g(f);void 0!==g.selector&&(this.selector=g.selector,this.context=g.context);return f.makeArray(g,this)}).prototype=f.fn;mb=f(y);var ud=/^(?:parents|prev(?:Until|All))/,vd={children:!0,contents:!0,next:!0,prev:!0};f.extend({dir:function(g,a,b){var c=[];for(g=g[a];g&&9!==g.nodeType&&(void 0===b||1!==g.nodeType||!f(g).is(b));)1===g.nodeType&&c.push(g),g=g[a];return c},sibling:function(g,a){for(var b=[];g;g=g.nextSibling)1===g.nodeType&&g!==a&&b.push(g);return b}});f.fn.extend({has:function(g){var a, b=f(g,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=/^([^.]*)(?:\.(.+)|)$/;f.event={global:{},add:function(a,b,c,k,d){var n,e,r,h,q,j,l,A,z;if(r=f._data(a)){c.handler&&(h=c,c=h.handler,d=h.selector);c.guid||(c.guid=f.guid++);if(!(e=r.events))e= r.events={};if(!(q=r.handle))q=r.handle=function(a){return typeof f!==la&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(q.elem,arguments):void 0},q.elem=a;b=(b||"").match(xa)||[""];for(r=b.length;r--;)if(n=Cc.exec(b[r])||[],A=j=n[1],z=(n[2]||"").split(".").sort(),A){n=f.event.special[A]||{};A=(d?n.delegateType:n.bindType)||A;n=f.event.special[A]||{};j=f.extend({type:A,origType:j,data:k,handler:c,guid:c.guid,selector:d,needsContext:d&&f.expr.match.needsContext.test(d),namespace:z.join(".")}, h);if(!(l=e[A]))if(l=e[A]=[],l.delegateCount=0,!n.setup||!1===n.setup.call(a,k,z,q))a.addEventListener?a.addEventListener(A,q,!1):a.attachEvent&&a.attachEvent("on"+A,q);n.add&&(n.add.call(a,j),j.handler.guid||(j.handler.guid=c.guid));d?l.splice(l.delegateCount++,0,j):l.push(j);f.event.global[A]=!0}a=null}},remove:function(a,b,c,k,d){var n,e,r,h,q,j,l,A,z,T,t,m=f.hasData(a)&&f._data(a);if(m&&(j=m.events)){b=(b||"").match(xa)||[""];for(q=b.length;q--;)if(r=Cc.exec(b[q])||[],z=t=r[1],T=(r[2]||"").split(".").sort(), z){l=f.event.special[z]||{};z=(k?l.delegateType:l.bindType)||z;A=j[z]||[];r=r[2]&&RegExp("(^|\\.)"+T.join("\\.(?:.*\\.|)")+"(\\.|$)");for(h=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);h&&!A.length&&((!l.teardown||!1===l.teardown.call(a,T,m.handle))&&f.removeEvent(a,z,m.handle),delete j[z])}else for(z in j)f.event.remove(a,z+b[q],c, k,!0);f.isEmptyObject(j)&&(delete m.handle,f._removeData(a,"events"))}},trigger:function(g,b,c,k){var d,n,e,r,h,q,j=[c||y],l=za.call(g,"type")?g.type:g;h=za.call(g,"namespace")?g.namespace.split("."):[];e=d=c=c||y;if(!(3===c.nodeType||8===c.nodeType)&&!Bc.test(l+f.event.triggered))if(0<=l.indexOf(".")&&(h=l.split("."),l=h.shift(),h.sort()),n=0>l.indexOf(":")&&"on"+l,g=g[f.expando]?g:new f.Event(l,"object"===typeof g&&g),g.isTrigger=k?2:3,g.namespace=h.join("."),g.namespace_re=g.namespace?RegExp("(^|\\.)"+ h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,g.result=void 0,g.target||(g.target=c),b=null==b?[g]:f.makeArray(b,[g]),h=f.event.special[l]||{},k||!(h.trigger&&!1===h.trigger.apply(c,b))){if(!k&&!h.noBubble&&!f.isWindow(c)){r=h.delegateType||l;Bc.test(r+l)||(e=e.parentNode);for(;e;e=e.parentNode)j.push(e),d=e;if(d===(c.ownerDocument||y))j.push(d.defaultView||d.parentWindow||a)}for(q=0;(e=j[q++])&&!g.isPropagationStopped();)if(g.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;f.extend({clone:function(a,b,c){var k,d,n,e,r,h=f.contains(a.ownerDocument,a);w.html5Clone||f.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)&&!f.isXMLDoc(a)){k=E(n);r=E(a);for(e=0;null!=(d=r[e]);++e)if(k[e]){var q=k[e],l=void 0,j= void 0,A=void 0;if(1===q.nodeType){l=q.nodeName.toLowerCase();if(!w.noCloneEvent&&q[f.expando]){A=f._data(q);for(j in A.events)f.removeEvent(q,j,A.handle);q.removeAttribute(f.expando)}if("script"===l&&q.text!==d.text)Ea(q).text=d.text,U(q);else if("object"===l)q.parentNode&&(q.outerHTML=d.outerHTML),w.html5Clone&&(d.innerHTML&&!f.trim(q.innerHTML))&&(q.innerHTML=d.innerHTML);else if("input"===l&&Mb.test(d.type))q.defaultChecked=q.checked=d.checked,q.value!==d.value&&(q.value=d.value);else if("option"=== l)q.defaultSelected=q.selected=d.defaultSelected;else if("input"===l||"textarea"===l)q.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")+q[2];for(d=q[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:""===q[1]&&!Gc.test(n)?e:0)&&n.childNodes.length;d--;)f.nodeName(h=n.childNodes[d],"tbody")&&!h.childNodes.length&&n.removeChild(h);f.merge(A,e.childNodes);for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);e=j.lastChild}else A.push(b.createTextNode(n)); e&&j.removeChild(e);w.appendChecked||f.grep(E(A,"input"),rb);for(z=0;n=A[z++];)if(!(k&&-1!==f.inArray(n,k))&&(a=f.contains(n.ownerDocument,n),e=E(j.appendChild(n),"script"),a&&Q(e),c))for(d=0;n=e[d++];)Hc.test(n.type||"")&&c.push(n);return j},cleanData:function(a,b){for(var c,d,n,e,r=0,h=f.expando,q=f.cache,l=w.deleteExpando,j=f.event.special;null!=(c=a[r]);r++)if(b||f.acceptData(c))if(e=(n=c[h])&&q[n]){if(e.events)for(d in e.events)j[d]?f.event.remove(c,d):f.removeEvent(c,d,e.handle);q[n]&&(delete q[n], l?delete c[h]:typeof c.removeAttribute!==la?c.removeAttribute(h):c[h]=null,k.push(n))}}});f.fn.extend({text:function(a){return Va(this,function(a){return void 0===a?f.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?f.filter(a,this):this,d=0;null!=(c=k[d]);d++)!b&&1===c.nodeType&&f.cleanData(E(c)),c.parentNode&&(b&&f.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&&f.cleanData(E(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&f.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 f.clone(this,a,b)})},html:function(a){return Va(this,function(a){var g=this[0]||{},b=0,c=this.length;if(void 0===a)return 1===g.nodeType?g.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&&!f.contains(a.ownerDocument,a)&&(d=f.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 f,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=(f=a.runtimeStyle)&&f.left)f.left=a.currentStyle.left;n.left="fontSize"===b?"1em":d;d=n.pixelLeft+"px";n.left=c;k&&(f.left=k)}return void 0===d?d:d+""||"auto"});var dc=function(){var g,b,c=y.getElementsByTagName("body")[0];c&&(g=y.createElement("div"),b=y.createElement("div"), g.style.cssText=bc,c.appendChild(g).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%",f.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(g),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;f.extend(w,{reliableHiddenOffsets:function(){if(null!= Gb)return Gb;var a,b,c;b=y.createElement("div");var f=y.getElementsByTagName("body")[0];if(f)return b.setAttribute("className","t"),b.innerHTML="
a",a=y.createElement("div"),a.style.cssText=bc,f.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,f.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 g,b,c,f;if(null==Fb&&a.getComputedStyle){g=y.getElementsByTagName("body")[0];if(!g)return;b=y.createElement("div");c=y.createElement("div");b.style.cssText=bc;g.appendChild(b).appendChild(c);f=c.appendChild(y.createElement("div"));f.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";f.style.marginRight=f.style.width="0";c.style.width="1px";Fb=!parseFloat((a.getComputedStyle(f,null)||{}).marginRight);g.removeChild(b)}return Fb}});f.swap=function(a,b,c,f){var k,d={};for(k in b)d[k]=a.style[k],a.style[k]=b[k];c=c.apply(a,f||[]);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"];f.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=f.camelCase(b),h=a.style;b=f.cssProps[r]||(f.cssProps[r]=gb(h,r));e=f.cssHooks[b]||f.cssHooks[r];if(void 0!==c){n=typeof c;if("string"===n&&(d=Hd.exec(c)))c=(d[1]+1)*d[2]+parseFloat(f.css(a,b)),n="number";if(!(null==c||c!==c))if("number"===n&&!f.cssNumber[r]&&(c+="px"),!w.clearCloneStyle&&(""===c&&0===b.indexOf("background"))&&(h[b]="inherit"),!e||!("set"in e)||void 0!==(c=e.set(a,c,k)))try{h[b]="",h[b]=c}catch(q){}}else return e&&"get"in e&&void 0!==(d=e.get(a, !1,k))?d:h[b]}},css:function(a,b,c,k){var d,n;n=f.camelCase(b);b=f.cssProps[n]||(f.cssProps[n]=gb(a.style,n));(n=f.cssHooks[b]||f.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||f.isNumeric(a)?a||0:d):d}});f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,g,c){if(g)return 0===a.offsetWidth&&Gd.test(f.css(a,"display"))?f.swap(a,Id,function(){return aa(a,b,c)}):aa(a,b,c)},set:function(a, g,c){var k=c&&Ra(a);return ma(a,g,c?x(a,b,c,w.boxSizing()&&"border-box"===f.css(a,"boxSizing",!1,k),k):0)}}});w.opacity||(f.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=f.isNumeric(b)?"alpha(opacity="+100*b+")":"",n=k&&k.filter||c.filter||"";c.zoom=1;if((1<=b||""===b)&&""===f.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}});f.cssHooks.marginRight=fb(w.reliableMarginRight,function(a,b){if(b)return f.swap(a,{display:"inline-block"},Sa,[a,"marginRight"])});f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var f=0,k={};for(c="string"===typeof c?c.split(" "):[c];4>f;f++)k[a+Qa[f]+b]=c[f]||c[f-2]||c[0];return k}};Ic.test(a)||(f.cssHooks[a+b].set=ma)});f.fn.extend({css:function(a,b){return Va(this,function(a, g,b){var c,k={},d=0;if(f.isArray(g)){b=Ra(a);for(c=g.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;f.fn.extend({val:function(a){var b,c,k,d=this[0];if(arguments.length)return k= f.isFunction(a),this.each(function(c){if(1===this.nodeType&&(c=k?a.call(this,c,f(this).val()):a,null==c?c="":"number"===typeof c?c+="":f.isArray(c)&&(c=f.map(c,function(a){return null==a?"":a+""})),b=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()],!b||!("set"in b)||void 0===b.set(this,c,"value")))this.value=c});if(d){if((b=f.valHooks[d.type]||f.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}}});f.extend({valHooks:{option:{get:function(a){var b=f.find.attr(a,"value");return null!=b?b:f.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=f.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(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this, b,this.className))});if(b)for(b=(a||"").match(xa)||[];ea||304===a;if(g){p=j;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 g)F=P[0];else{for(B in g){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=g[F]):p=void 0}a:{g=j;N=p;ia=s;F=k;var w,Y,u,v={},E=g.dataTypes.slice();if(E[1])for(Y in g.converters)v[Y.toLowerCase()]=g.converters[Y];for(B=E.shift();B;)if(g.responseFields[B]&&(ia[g.responseFields[B]]=N),!u&&(F&&g.dataFilter)&&(N=g.dataFilter(N,g.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&&g["throws"])N=Y(N);else try{N=Y(N)}catch(K){p={state:"parsererror",error:Y?K:"No conversion from "+u+" to "+B};break a}}p={state:"success",data:N}}if(k)j.ifModified&&((I=s.getResponseHeader("Last-Modified"))&&(f.lastModified[n]=I),(I=s.getResponseHeader("etag"))&&(f.etag[n]=I)),204===a||"HEAD"===j.type?I="nocontent":304===a?I="notmodified":(I=p.state,d=p.data,l=p.error,k=!l);else if(l=I,a||!I)I="error",0>a&&(a=0);s.status=a;s.statusText=(b||I)+ "";k?T.resolveWith(A,[d,I,s]):T.rejectWith(A,[s,I,l]);s.statusCode(m);m=void 0;h&&z.trigger(k?"ajaxSuccess":"ajaxError",[s,j,k?d:l]);t.fireWith(A,[s,I]);h&&(z.trigger("ajaxComplete",[s,j]),--f.active||f.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var k,d,n,e,r,h,q,l,j=f.ajaxSetup({},b),A=j.context||j,z=j.context&&(A.nodeType||A.jquery)?f(A):f.event,T=f.Deferred(),t=f.Callbacks("once memory"),m=j.statusCode||{},I={},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,I[a]=b);return this},overrideMimeType:function(a){ea||(j.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;q&&q.abort(a);c(0,a);return this}};T.promise(s).complete= t.add;s.success=s.done;s.error=s.fail;j.url=((a||j.url||Oa)+"").replace(Pd,"").replace(Sd,Xa[1]+"//");j.type=b.method||b.type||j.method||j.type;j.dataTypes=f.trim(j.dataType||"*").toLowerCase().match(xa)||[""];null==j.crossDomain&&(k=Nc.exec(j.url.toLowerCase()),j.crossDomain=!(!k||!(k[1]!==Xa[1]||k[2]!==Xa[2]||(k[3]||("http:"===k[1]?"80":"443"))!==(Xa[3]||("http:"===Xa[1]?"80":"443")))));j.data&&(j.processData&&"string"!==typeof j.data)&&(j.data=f.param(j.data,j.traditional));ub(Oc,j,b,s);if(2=== ea)return s;(h=j.global)&&0===f.active++&&f.event.trigger("ajaxStart");j.type=j.type.toUpperCase();j.hasContent=!Rd.test(j.type);n=j.url;j.hasContent||(j.data&&(n=j.url+=(kc.test(n)?"&":"?")+j.data,delete j.data),!1===j.cache&&(j.url=Mc.test(n)?n.replace(Mc,"$1_="+jc++):n+(kc.test(n)?"&":"?")+"_="+jc++));j.ifModified&&(f.lastModified[n]&&s.setRequestHeader("If-Modified-Since",f.lastModified[n]),f.etag[n]&&s.setRequestHeader("If-None-Match",f.etag[n]));(j.data&&j.hasContent&&!1!==j.contentType||b.contentType)&& s.setRequestHeader("Content-Type",j.contentType);s.setRequestHeader("Accept",j.dataTypes[0]&&j.accepts[j.dataTypes[0]]?j.accepts[j.dataTypes[0]]+("*"!==j.dataTypes[0]?", "+Pc+"; q=0.01":""):j.accepts["*"]);for(d in j.headers)s.setRequestHeader(d,j.headers[d]);if(j.beforeSend&&(!1===j.beforeSend.call(A,s,j)||2===ea))return s.abort();ia="abort";for(d in{success:1,error:1,complete:1})s[d](j[d]);if(q=ub(Nb,j,b,s)){s.readyState=1;h&&z.trigger("ajaxSend",[s,j]);j.async&&0ea)c(-1,F);else throw F;}}else c(-1,"No Transport");return s},getJSON:function(a,b,c){return f.get(a,b,c,"json")},getScript:function(a,b){return f.get(a,void 0,b,"script")}});f.each(["get","post"],function(a,b){f[b]=function(a,c,g,k){f.isFunction(c)&&(k=k||g,g=c,c=void 0);return f.ajax({url:a,type:b,dataType:k,data:c,success:g})}});f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b, a)}});f._evalUrl=function(a){return f.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};f.fn.extend({wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(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 f.isFunction(a)? this.each(function(b){f(this).wrapInner(a.call(this,b))}):this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()}});f.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!w.reliableHiddenOffsets()&&"none"===(a.style&& a.style.display||f.css(a,"display"))};f.expr.filters.visible=function(a){return!f.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;f.param=function(a,b){var c,k=[],d=function(a,b){b=f.isFunction(b)?b():null==b?"":b;k[k.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};void 0===b&&(b=f.ajaxSettings&&f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){d(this.name, this.value)});else for(c in a)na(c,a[c],b,d);return k.join("&").replace(Td,"+")};f.fn.extend({serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=f.prop(this,"elements");return a?f.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!f(this).is(":disabled")&&Vd.test(this.nodeName)&&!Ud.test(a)&&(this.checked||!Mb.test(a))}).map(function(a,b){var c=f(this).val();return null==c?null:f.isArray(c)?f.map(c,function(a){return{name:b.name, value:a.replace(Qc,"\r\n")}}):{name:b.name,value:c.replace(Qc,"\r\n")}}).get()}});f.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;f.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=f.ajaxSettings.xhr();if(a.ActiveXObject)f(a).on("unload",function(){for(var a in Kb)Kb[a](void 0,!0)});w.cors=!!Lb&&"withCredentials"in Lb;(Lb=w.ajax=!!Lb)&&f.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,j,h;if(b&&(d||4===n.readyState))if(delete Kb[e],b=void 0,n.onreadystatechange=f.noop,d)4!==n.readyState&&n.abort();else{h={};r=n.status;"string"===typeof n.responseText&&(h.text=n.responseText);try{j=n.statusText}catch(q){j=""}!r&&a.isLocal&&!a.crossDomain?r=h.text?200:404:1223===r&&(r=204)}h&&k(r,j,h,n.getAllResponseHeaders())}; a.async?4===n.readyState?setTimeout(b):n.onreadystatechange=Kb[e]=b:b()},abort:function(){b&&b(void 0,!0)}}}});f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){f.globalEval(a);return a}}});f.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});f.ajaxTransport("script",function(a){if(a.crossDomain){var b, c=y.head||f("head")[0]||y.documentElement;return{send:function(k,f){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||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(void 0,!0)}}}});var Rc=[],lc=/(=)\?(?=&|$)|\?\?/;f.ajaxSetup({jsonp:"callback", jsonpCallback:function(){var a=Rc.pop()||f.expando+"_"+jc++;this[a]=!0;return a}});f.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=f.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||f.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&&f.isFunction(n)&&n(e[0]);e=n=void 0}),"script"});f.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=f.buildFragment([a],b,c);c&&c.length&&f(c).remove();return f.merge([], k.childNodes)};var Sc=f.fn.load;f.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));f.isFunction(b)?(c=b,b=void 0):b&&"object"===typeof b&&(n="POST");0").append(f.parseHTML(a)).find(k):a)}).complete(c&&function(a,b){e.each(c,d||[a.responseText,b,a])});return this};f.expr.filters.animated= function(a){return f.grep(f.timers,function(b){return a===b.elem}).length};var Tc=a.document.documentElement;f.offset={setOffset:function(a,b,c){var k,d,n,e=f.css(a,"position"),r=f(a),j={};"static"===e&&(a.style.position="relative");n=r.offset();d=f.css(a,"top");k=f.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(){jQuery = null;m = null;a = null;SwingController = null; J = null;JM = null;JS = null;JSV = null;JU = null;JV = null;java = null;javajs = null;Clazz = null;c$ = null};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(d){if(0!=b.indexOf("http://")&&0!=b.indexOf("https://"))return a._saveFile(b,d);b={async:!1,url:b,type:"POST",data:"string"==typeof data?d:";base64,"+(JU||J.util).Base64.getBase64(d).toString(),processData:!1};return a.$ajax(b).responseText}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":"");var j="string"==typeof c;c=j&&0<=c.indexOf(";base64,")?c.split(";base64,")[1]:(JU||J.util).Base64.getBase64(j?c.getBytes("UTF-8"):c).toString();e||(e="base64");(j=a._serverUrl)&&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.master=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);e = null;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("/")}b._j2sFullPath=e.substring(0,e.length-1);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.applyFunc=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,j){var h=this._evaluate("{*}.count");if(0!=h){this._loadMolData(a,"atommap = compare({1.1} {2.1} 'MAP' "+(j?"":"'H'")+"); zap 2.1",!0);for(var l=this._evaluate("atommap"),m=[],b=[],c=0;carguments.length&&(h=1);var l=this._savedOrientations[a];return!l||""==l?l.replace(/1\.0/,h):this._scriptWait(l)};h._resizeApplet=function(e){function h(e,j){var b=""+e;return 0==b.length?j?"":a._allowedJmolSize[2]:b.indexOf("%")==b.length-1?b:1>=(e=parseFloat(e))&&0a._allowedJmolSize[1]?a._allowedJmolSize[1]:e)+(j?j:"")}var l;"object"==typeof e&&null!=e?(l=e[0]||e.width,e=e[1]||e.height):l=e;l=[h(l,"px"),h(e,"px")];e=a._getElement(this,"appletinfotablediv");e.style.width=l[0];e.style.height=l[1];this._containerWidth=l[0];this._containerHeight=l[1];this._is2D&&a.repaint(this,!0)};h._search=function(e,h){a._search(this,e,h)};h._searchDatabase=function(e,h,l){if(this._2dapplet&&this._2dapplet._isEmbedded&&!a.$(this, "appletdiv:visible")[0])return this._2dapplet._searchDatabase(e,h,l);this._showInfo(!1);0<=e.indexOf("?")?a._getInfoFromDatabase(this,h,e.split("?")[0]):(l||(l=a._getScriptForDatabase(h)),e=h+e,this._currentView=null,this._searchQuery=e,this._loadFile(e,l,e))};h._loadFile=function(e,h,l){this._showInfo(!1);h||(h="");this._thisJmolModel=""+Math.random();this._fileName=e;if(!this._scriptLoad(e,h)){var m=this;a._loadFileData(this,e,function(a){m.__loadModel(a,h,l)},function(){m.__loadModel(null)})}}; h._scriptLoad=function(a,h){h||(h="");var l=this._isJava||!this._noscript;l&&this._script("zap;set echo middle center;echo Retrieving data...");if(!this._isSigned||null!=this._viewSet)return!1;l?this._script('load async "'+a+'";'+h):this._applet.openFile(a);this._checkDeferred("");return!0};h.__loadModel=function(e,h,l){null!=e&&(null!=this._viewSet&&(h||(h=""),h+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"), !h&&this._noscript?this._applet.loadInlineString(e,"",!1):this._loadMolData(e,h,!1),null!=this._viewSet&&a.View.updateView(this,{chemID:l,data:e}))};h._loadMolData=function(a,h,l){h||(h="");l=l?"append":"model";this._applet.scriptWait('load DATA "'+l+'"'+a+'\nEND "'+l+'" ;'+h)};h._loadModelFromView=function(e){this._currentView=e;var h=e.Jmol;null!=h.data?this.__loadModel(h.data,null,e.info.chemID):null!=e.info.chemID?a._searchMol(this,e.info.chemID,null,!1):(h=e.JME)&&h.applet._show2d(!1,this)}; h._reset=function(){this._scriptWait("zap",!0)};h._updateView=function(){null!=this._viewSet&&this._applet&&(chemID=""+this._getPropertyAsJavaObject("variableInfo","script('show chemical inchiKey')"),chemID=36>chemID.length?null:chemID.substring(36).split("\n")[0],a.View.updateView(this,{chemID:chemID,data:""+this._getPropertyAsJavaObject("evaluate","extractModel","{visible}")}))};h._atomPickedCallback=function(e,h){if(!(0>h)){var l=[h+1];a.View.updateAtomPick(this,l);this._updateAtomPick(l)}};h._updateAtomPick= function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};h._isDeferred=function(){return!this._canvas&&this._cover&&this._isCovered&&this._deferApplet};h._checkDeferred=function(a){return this._isDeferred()?(this._coverScript=a,this._cover(!1),!0):!1};h._cover=function(e){e||!this._deferApplet?this._displayCoverImage(e):(e=this._coverScript?this._coverScript:"",this._coverScript="",this._deferUncover&&(e+=";refresh;javascript "+this._id+"._displayCoverImage(false)"), this._script(e,!0),this._deferUncover&&"activate 3D model"==this._coverTitle&&(a._getElement(this,"coverimage").title="3D model is loading..."),this._isJava||this._newCanvas(!1),this._defaultModel&&a._search(this,this._defaultModel),this._showInfo(!1),this._deferUncover||this._displayCoverImage(!1),this._isJava&&a.$html(a.$(this,"appletdiv"),this._javaCode),this._init&&this._init())};h._displayCoverImage=function(e){this._coverImage&&this._isCovered!=e&&(this._isCovered=e,a._getElement(this,"coverdiv").style.display= e?"block":"none")};h._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};h._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};h._getMol2D=function(){return this._evaluate("script('select visible;show chemical sdf')")};a.jmolSmiles=function(a){return a._getSmiles()}})(Jmol,document); (function(a){var m=a.controls={_hasResetForms:!1,_scripts:[""],_checkboxMasters:{},_checkboxItems:{},_actions:{},_buttonCount:0,_checkboxCount:0,_radioGroupCount:0,_radioCount:0,_linkCount:0,_cmdCount:0,_menuCount:0,_previousOnloadHandler:null,_control:null,_element:null,_appletCssClass:null,_appletCssText:"",_buttonCssClass:null,_buttonCssText:"",_checkboxCssClass:null,_checkboxCssText:"",_radioCssClass:null,_radioCssText:"",_linkCssClass:null,_linkCssText:"",_menuCssClass:null,_menuCssText:""}; m._addScript=function(a,h){var e=m._scripts.length;m._scripts[e]=[a,h];return e};m._getIdForControl=function(a,h){return"string"==typeof a?a:!h||!a._canScript||a._canScript(h)?a._id:null};m._radio=function(a,h,e,j,t,s,u,b){var c=m._getIdForControl(a,h);if(null==c)return null;++m._radioCount;void 0!=s&&null!=s||(s="jmolRadioGroup"+(m._radioGroupCount-1));if(!h)return"";void 0!=u&&null!=u||(u="jmolRadio"+(m._radioCount-1));void 0!=e&&null!=e||(e=h.substring(0,32));t||(t="");a="";m._actions[u]= m._addScript(c,h);h='";0<=e.toLowerCase().indexOf("")&&(h+=a,a="");return h+('"+a+t)};m._scriptExecute=function(l,h){var e=a._applets[h[0]],j=h[1];if("object"==typeof j)j[0](l,j, e);else"function"==typeof j?j(e):a.script(e,j)};m.__checkScript=function(a,h){var e=0<=h.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(h.value);h.style.color=e?"black":"red";return e};m.__getCmd=function(a,h){if(h._cmds&&h._cmds.length){var e=h._cmds[h._cmdpt=(h._cmdpt+h._cmds.length+a)%h._cmds.length];setTimeout(function(){h.value=e},10);h._cmdadd=1;h._cmddir=a}};m._commandKeyPress=function(l,h,e){l=13==l?13:window.event?window.event.keyCode:l?l.keyCode||l.which:0;var j=document.getElementById(h), t=a._applets[e];switch(l){case 13:return h=j.value,m._scriptExecute(j,[e,h]),j._cmds||(j._cmds=[],j._cmddir=0,j._cmdpt=-1,j._cmdadd=0),h&&0==j._cmdadd?(++j._cmdpt,j._cmds.splice(j._cmdpt,0,h),j._cmdadd=0,j._cmddir=0):j._cmdadd=0,j.value="",!1;case 27:return setTimeout(function(){j.value=""},20),!1;case 38:m.__getCmd(-1,j);break;case 40:m.__getCmd(1,j);break;default:j._cmdadd=0}setTimeout(function(){m.__checkScript(t,j)},20);return!0};m._click=function(a,h){m._element=a;1==arguments.length&&(h=m._actions[a.id]); m._scriptExecute(a,m._scripts[h])};m._menuSelected=function(a){var h=a.value;if(void 0!=h)m._scriptExecute(a,m._scripts[h]);else{h=a.length;if("number"==typeof h)for(var e=0;e";a._debugAlert&&alert(h);return a._documentWrite(h)};m._getCheckbox=function(l,h,e,j,t,s,u){var b=m._getIdForControl(l,h);null!=b&&(b=m._getIdForControl(l,e));if(null==b)return"";void 0!=s&&null!=s||(s="jmolCheckbox"+m._checkboxCount);++m._checkboxCount;if(void 0==h||null==h||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==j||null==j)alert("jmolCheckbox requires a label");else return m._actions[s]=[m._addScript(b,h),m._addScript(b,e)],l="", t='",0<=j.toLowerCase().indexOf("")&&(t+=l,l=""),t+='"+l,a._debugAlert&&alert(t),a._documentWrite(t)};m._getCommandInput=function(l,h,e,j,t,s){l=m._getIdForControl(l,"x");if(null==l)return""; void 0!=j&&null!=j||(j="jmolCmd"+m._cmdCount);void 0!=h&&null!=h||(h="Execute");void 0!=e&&!isNaN(e)||(e=60);void 0!=s||(s="help");++m._cmdCount;h='";a._debugAlert&&alert(h);return a._documentWrite(h)}; m._getLink=function(l,h,e,j,t){l=m._getIdForControl(l,h);if(null==l)return"";void 0!=j&&null!=j||(j="jmolLink"+m._linkCount);void 0!=e&&null!=e||(e=h.substring(0,32));++m._linkCount;h=m._addScript(l,h);e='"+e+"";a._debugAlert&&alert(e);return a._documentWrite(e)}; m._getMenu=function(l,h,e,j,t){var s=m._getIdForControl(l,null);void 0!=j&&null!=j||(j="jmolMenu"+m._menuCount);++m._menuCount;s=typeof h;if(null!=s&&"object"==s&&h.length){var u=h.length;"number"!=typeof e||1==e?e=null:0>e&&(e=u);e='";a._debugAlert&&alert(e);return a._documentWrite(e)}};m._getRadio=function(l,h,e,j,t,s,u,b){0==m._radioGroupCount&&++m._radioGroupCount;s||(s="jmolRadioGroup"+(m._radioGroupCount-1));l=m._radio(l,h,e,j,t,s,u?u:s+"_"+m._radioCount,b?b:0);if(null== l)return"";a._debugAlert&&alert(l);return a._documentWrite(l)};m._getRadioGroup=function(l,h,e,j,t,s){var u=typeof h;if("object"!=u||null==u||!h.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e="  ");var b=h.length;++m._radioGroupCount;j||(j="jmolRadioGroup"+(m._radioGroupCount-1));for(var c="",d=0;d";a._debugAlert&&alert(c);return a._documentWrite(c)}}})(Jmol); (function(a){var m=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=m("_J2S");a._jarFile=m("_JAR");a._use=m("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(l,h,e){return a._Applet._get(l,h,e)};a.getJMEApplet=function(l,h,e,j){return a._JMEApplet._get(l,h,e,j)};a.getJSVApplet=function(l,h,e){return a._JSVApplet._get(l,h,e)};a.loadFile=function(a,h,e){a._loadFile(h,e)};a.script=function(a,h){a._checkDeferred(h)|| a._script(h)};a.scriptCheck=function(a,h){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(h)};a.scriptWait=function(a,h){return a._scriptWait(h)};a.scriptEcho=function(a,h){return a._scriptEcho(h)};a.scriptMessage=function(a,h){return a._scriptMessage(h)};a.scriptWaitOutput=function(a,h){return a._scriptWait(h)};a.scriptWaitAsArray=function(a,h){return a._scriptWaitAsArray(h)};a.search=function(a,h,e){a._search(h,e)};a.evaluateVar=function(a,h){return a._evaluate(h)};a.evaluate=function(a,h){return a._evaluateDEPRECATED(h)}; a.getAppletHtml=function(l,h){if(h){var e=a._document;a._document=null;l=a.getApplet(l,h);a._document=e}return l._code};a.getPropertyAsArray=function(a,h,e){return a._getPropertyAsArray(h,e)};a.getPropertyAsJavaObject=function(a,h,e){return a._getPropertyAsJavaObject(h,e)};a.getPropertyAsJSON=function(a,h,e){return a._getPropertyAsJSON(h,e)};a.getPropertyAsString=function(a,h,e){return a._getPropertyAsString(h,e)};a.getStatus=function(a,h){return a._getStatus(h)};a.resizeApplet=function(a,h){return a._resizeApplet(h)}; a.restoreOrientation=function(a,h){return a._restoreOrientation(h)};a.restoreOrientationDelayed=function(a,h,e){return a._restoreOrientationDelayed(h,e)};a.saveOrientation=function(a,h){return a._saveOrientation(h)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,h,e){a._info=h;2")}; a.jmolButton=function(l,h,e,j,m){return a.controls._getButton(l,h,e,j,m)};a.jmolCheckbox=function(l,h,e,j,m,s,u){return a.controls._getCheckbox(l,h,e,j,m,s,u)};a.jmolCommandInput=function(l,h,e,j,m,s){return a.controls._getCommandInput(l,h,e,j,m,s)};a.jmolHtml=function(l){return a._documentWrite(l)};a.jmolLink=function(l,h,e,j,m){return a.controls._getLink(l,h,e,j,m)};a.jmolMenu=function(l,h,e,j,m){return a.controls._getMenu(l,h,e,j,m)};a.jmolRadio=function(l,h,e,j,m,s,u,b){return a.controls._getRadio(l, h,e,j,m,s,u,b)};a.jmolRadioGroup=function(l,h,e,j,m,s){return a.controls._getRadioGroup(l,h,e,j,m,s)};a.setCheckboxGroup=function(l,h){a.controls._cbSetCheckboxGroup(l,h,arguments)};a.setDocument=function(l){a._document=l};a.setXHTML=function(l){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;l&&(a._XhtmlElement=document.getElementById(l),a._XhtmlAppendChild=!0)};a.setAppletCss=function(l,h){null!=l&&(a._appletCssClass=l);a._appletCssText=h?h+" ":l?'class="'+l+'" ':""};a.setButtonCss=function(l, h){null!=l&&(a.controls._buttonCssClass=l);a.controls._buttonCssText=h?h+" ":l?'class="'+l+'" ':""};a.setCheckboxCss=function(l,h){null!=l&&(a.controls._checkboxCssClass=l);a.controls._checkboxCssText=h?h+" ":l?'class="'+l+'" ':""};a.setRadioCss=function(l,h){null!=l&&(a.controls._radioCssClass=l);a.controls._radioCssText=h?h+" ":l?'class="'+l+'" ':""};a.setLinkCss=function(l,h){null!=l&&(a.controls._linkCssClass=l);a.controls._linkCssText=h?h+" ":l?'class="'+l+'" ':""};a.setMenuCss=function(l,h){null!= l&&(a.controls._menuCssClass=l);a.controls._menuCssText=h?h+" ":l?'class="'+l+'" ':""};a.setAppletSync=function(l,h,e){a._syncedApplets=l;a._syncedCommands=h;a._syncedReady={};a._isJmolJSVSync=e};a.setGrabberOptions=function(l){a._grabberOptions=l};a.setAppletHtml=function(l,h){l._code&&(a.$html(h,l._code),l._init&&!l._deferApplet&&l._init())};a.coverApplet=function(a,h){a._cover&&a._cover(h)};a.setFileCaching=function(l,h){l?l._cacheFiles=h:a.fileCache=h?{}:null};a.resetView=function(l,h){a.View.resetView(l, h)};a.updateView=function(a,h,e){a._updateView(h,e)};a.getChemicalInfo=function(l,h,e){h||(h="name");"string"!=typeof l&&(l=l._getSmiles());return a._getNCIInfo(l,h,e)};a.saveImage=function(l,h,e){h=(h||"png").toLowerCase();e||(e=l.id+"."+h.toLowerCase());0>e.indexOf(".")&&(e+="."+h);switch(l._viewType){case "Jmol":return l._script('write PNGJ "'+e+'"');case "JSV":if("PDF"==h)return l._script("write PDF");break;case "JME":return l._script("print")}a._saveFile(e,l._canvas.toDataURL("image/png"))}})(Jmol); LoadClazz=function(){c$=null;window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Clazz={_isQuiet:!1,_debugging:!1},function(a,m){try{a._debugging=0<=document.location.href.indexOf("j2sdebug")}catch(l){}var h=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(a,b){h.push(a);window[a]=b};a.getGlobals=function(){return h.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console= a)};var e=null;a._startProfiling=function(a){e=a&&self.JSON?{}:null};NullObject=function(){};a._supportsNativeObject=window["j2s.object.native"];a._supportsNativeObject?(a._O=function(){},a._O.__CLASS_NAME__="Object",a._O.getClass=function(){return a._O}):a._O=Object;a.Console={};a.dateToString=Date.prototype.toString;a._hashCode=0;var j=a._O.prototype;j.equals=function(a){return this==a};j.hashCode=function(){return this._$hashcode||(this._$hashcode=++a._hashCode)};j.getClass=function(){return a.getClass(this)}; j.clone=function(){return a.clone(this)};a.clone=function(a){var b=a instanceof Array?Array(a.length):new a.constructor,c;for(c in a)b[c]=a[c];return b};j.finalize=function(){};j.notify=function(){};j.notifyAll=function(){};j.wait=function(){};j.to$tring=Object.prototype.toString;j.toString=function(){return this.__CLASS_NAME__?"["+this.__CLASS_NAME__+" object]":this.to$tring.apply(this,arguments)};a._extendedObjectMethods="equals hashCode getClass clone finalize notify notifyAll wait to$tring toString".split(" "); a.extendJO=function(b,c){c&&(b.__CLASS_NAME__=b.prototype.__CLASS_NAME__=c);if(a._supportsNativeObject)for(var d=0;de)return"["==d.charAt(0)?a.extractClassName(d):d.replace(/[^a-zA-Z0-9]/g,"");var e=e+8,h=d.indexOf("(",e);if(0>h)break;d=d.substring(e,h);if(0<=d.indexOf("Array"))return"Array";d=d.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==d||""==d?"Function":d;case "object":if(b.__CLASS_NAME__)return b.__CLASS_NAME__;if(!b.constructor)break; if(!b.constructor.__CLASS_NAME__){if(b instanceof Number)return"Number";if(b instanceof Boolean)return"Boolean";if(b instanceof Array||b.BYTES_PER_ELEMENT)return"Array";d=b.toString();if("["==d.charAt(0))return a.extractClassName(d)}return a.getClassName(b.constructor,!0)}return"Object"};a.getClass=function(b){if(!b)return a._O;if("function"==typeof b)return b;if(b instanceof a.CastedNull)b=b.clazzName;else switch(typeof b){case "string":return String;case "object":if(!b.__CLASS_NAME__)return b.constructor|| a._O;b=b.__CLASS_NAME__;break;default:return b.constructor}return a.evalType(b,!0)};var t=function(b,c){for(var d=0;dd;){if(e.implementz)for(var h=e.implementz,j=0;j(""+b).indexOf("Error"))return!1;System.out.println(a.getStackTrace());return!0}return d==Exception||d==Throwable||d==NullPointerException&&c(b)};a.getStackTrace=function(a){a|| (a=25);var b="\n",c=arguments.callee,d=0>a;d&&(a=-a);try{for(var e=0;e",b=b+(e+" "+(c.exName?(c.claxxOwner?c.claxxOwner.__CLASS_NAME__+".":"")+c.exName+h.replace(/function /,""):h)+"\n");if(c==c.caller){b+="\n";break}if(d)for(var j=c.arguments,l=0;lU.indexOf(j)&&(U+=j+"\n");e[j]||(e[j]=0);e[j]++}if(fx.lastParams==h.typeString&&fx.lastClaxxRef===d){if(h.hasCastedNull){d=[];for(k=0;kx[B]){za=!1;break}za&&(x[z.length]=u,F.push(x))}if(0==F.length)F=null;else{P=F[0];for(u=1;urb(q,c)&&q.push(c);s&&(s.claxxOwner===c?(m[s.funParams]=s,s.claxxOwner=null,s.funParams=null):s.claxxOwner||(m["\\unknown"]=s));h.exClazz=c;m[j]=h;return m};duplicatedMethods={};var E=function(b,c,d){var e=b.prototype[c];if(e&&(e.claxxOwner||e.claxxReference)===b)key=b.__CLASS_NAME__+"."+c+d, (b=duplicatedMethods[key])?(c="Warning! Duplicate method found for "+key,System.out.println(c),a.alert(c),duplicatedMethods[key]=b+1):duplicatedMethods[key]=1};a.showDuplicates=function(a){var b="",c=duplicatedMethods,d=0,e;for(e in c)1c.length)break;if(c.indexOf(j)==c.length-j.length){c=c.substring(0,c.length-j.length+1);break}}else c=a._Loader.getClasspathFor(d,!0);else(e=a.binaryFolders)&&e.length&&(c=e[0]);c||(c="j2s/");c=c.replace(/\\/g,"/");e=c.length;e=c.charAt(e-1);"/"!=e&&(c+="/");this.base?d=c+b:(e=d.lastIndexOf("."),d=-1==e||this.base?c+b:c+d.substring(0,e).replace(/\./g,"/")+"/"+b)}c=null;try{if(0>d.indexOf(":/")){var q= document.location.href.split("?")[0].split("/");q[q.length-1]=d;d=q.join("/")}c=new java.net.URL(d)}catch(s){}q=null==c?null:m._getFileData(d.toString());if(!q||"error"==q||0==q.indexOf("[Exception"))return null;q=(new java.lang.String(q)).getBytes();q=new java.io.BufferedInputStream(new java.io.ByteArrayInputStream(q));q.url=c;return q},defineMethod:function(b,c,d){a.defineMethod(this,b,c,d)},defineStaticMethod:function(b,c,d){a.defineMethod(this,b,c,d);this[b]=this.prototype[b]},makeConstructor:function(b, c){a.makeConstructor(this,b,c)}};var Pa=[];a.pu$h=function(a){a||(a=self.c$);a&&Pa.push(a)};a.p0p=function(){return Pa.pop()};a.decorateAsClass=function(b,c,d,e,h,j){var l=null;c&&(l=c.__PKG_NAME__,l||(l=c.__CLASS_NAME__));var m=(l?l+".":"")+d;a._Loader._classPending[m]&&(delete a._Loader._classPending[m],a._Loader._classCountOK++,a._Loader._classCountPending--);a._Loader&&a._Loader._checkLoad&&System.out.println("decorating class "+l+"."+d);(l=a.unloadedClasses[m])&&(b=l);db(b,c,d);j?a.inheritClass(b, e,j):e&&a.inheritClass(b,e);h&&a.implementOf(b,h);return b};var db=function(b,c,d){var e;c?c.__PKG_NAME__?(e=c.__PKG_NAME__+"."+d,c[d]=b,c===java.lang&&a.setGlobal(d,b)):(e=c.__CLASS_NAME__+"."+d,c[d]=b):(e=d,a.setGlobal(d,b));a.extendJO(b,e);c=a.innerFunctionNames;for(d=0;da?Math.ceil(a):Math.floor(a)};a.floatToByte=a.floatToShort=a.floatToLong=a.floatToInt;a.doubleToByte=a.doubleToShort=a.doubleToLong=a.doubleToInt=a.floatToInt;a.floatToChar=function(a){return String.fromCharCode(0>a?Math.ceil(a):Math.floor(a))};a.doubleToChar=a.floatToChar;var gb=function(a,b){a||(a=0);if("object"==typeof a)var c=a;else for(var c=Array(a),d=0;d>3;c._fake=!0;return c},va=function(a,b){a||(a=0);b||(b=this.length);if(this._fake){var c=new this.constructor(b-a);System.arraycopy(this,a,c,0,b-a);return c}return new this.constructor(this.buffer.slice(a*this.BYTES_PER_ELEMENT,b*this.BYTES_PER_ELEMENT))};!0==(a.haveInt32=!!(self.Int32Array&&self.Int32Array!=Array))?Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort):(Int32Array=function(a){return gb(a,32)},Int32Array.prototype.sort=Array.prototype.sort, Int32Array.prototype.toString=function(){return"[object Int32Array]"});Int32Array.prototype.slice||(Int32Array.prototype.slice=function(){return va.apply(this,arguments)});Int32Array.prototype.clone=function(){var a=this.slice();a.BYTES_PER_ELEMENT=4;return a};!0==(a.haveFloat64=!!(self.Float64Array&&self.Float64Array!=Array))?Float64Array.prototype.sort||(Float64Array.prototype.sort=Array.prototype.sort):(Float64Array=function(a){return gb(a,64)},Float64Array.prototype.sort=Array.prototype.sort, Float64Array.prototype.toString=function(){return"[object Float64Array]"});Float64Array.prototype.slice||(Float64Array.prototype.slice=function(){return va.apply(this,arguments)});Float64Array.prototype.clone=function(){return this.slice()};a.newArray=function(a,b,c,d){if(-1!=a||2==arguments.length)return ma(arguments,0);a=b.slice(c,d);a.BYTES_PER_ELEMENT=b.BYTES_PER_ELEMENT;return a};var ma=function(a,b){var c=a[0];"string"==typeof c&&(c=c.charCodeAt(0));var d=a.length-1,e=a[d];if(1c&&(c=e);switch(b){case 8:return d=new Int8Array(c),d.BYTES_PER_ELEMENT=1,d;case 32:return d=new Int32Array(c),d.BYTES_PER_ELEMENT=4,d;case 64:return d=new Float64Array(c),d.BYTES_PER_ELEMENT=8,d;default:d=0>c?e:Array(c);d.BYTES_PER_ELEMENT=0;if(0d)for(;0<=--e;)c[d++]=a[b++];else{d+=e;for(b+=e;0<=--e;)a[--d]=a[--b]}},currentTimeMillis:function(){return(new Date).getTime()},gc:function(){},getProperties:function(){return System.props},getProperty:function(a,b){if(System.props)return System.props.getProperty(a,b);var c=System.$props[a]; if("undefined"!=typeof c)return c;if(0=x.STATUS_LOAD_COMPLETE))j?window.setTimeout(f,25):f()}else{var m=b.getClasspathFor(c);l=e[m];if(!l)for(j=E.length;0<=--j;)if(E[j].path==m||E[j].name==c){l=!0;break}if(l){if(f&&(l=H(c)))if(l.onLoaded){if(f!=l.onLoaded){var r=l.onLoaded,q=f;l.onLoaded=function(){r();q()}}}else l.onLoaded=f}else{l=a.unloadedClasses[c]&&H(c)||new x;l.name=c;l.path=m;l.isPackage=m.lastIndexOf("package.js")==m.length-10;X(m,c,l);l.onLoaded=f;l.status= x.STATUS_KNOWN;c=!1;for(j=E.length;0<=--j;)if(E[j].status!=x.STATUS_LOAD_COMPLETE){c=!0;break}if(l.isPackage){for(j=E.length;0<=--j&&!E[j].isPackage;)E[j+1]=E[j];E[++j]=l}else c&&E.push(l);if(!c){var s=!1;f&&(s=ha,ha=!0);h&&(f=null);Ja(d,l,!0);V(l,l.path,l.requiredBy,!1,f?function(){ha=s;f()}:null)}}}};b.loadPackage=function(a,c){c||(c=null);window[a+".registered"]=!1;b.loadPackageClasspath(a,b.J2SLibBase||(b.J2SLibBase=b.getJ2SLibBase()||"j2s/"),!0,c)};b.jarClasspath=function(a,b){b instanceof Array|| (b=[b]);C(b);m._debugCore&&(a=a.replace(/\.z\./,"."));for(var c=b.length;0<=--c;)D["#"+b[c]]=a;D["$"+a]=b};b.registerPackages=function(c,d){for(var e=b.getClasspathFor(c+".*",!0),f=0;f>");j=e[d];e[d]=!0;Ya(E,d);M=!0;sa=!1;b._checkLoad&&System.out.println("\t"+d+(f?"\n -- required by "+f:"")+" ajax="+M+" async="+sa);f=d;a._debugging&&(d=d.replace(/\.z\.js/,".js"));j||System.out.println("loadScript "+d);b.onScriptLoading(d);if(M&&!sa){var r=m._getFileData(d); try{U(d,f,r,j)}catch(q){alert(q+" loading file "+d+" "+c.name+" "+a.getStackTrace())}l&&l()}else c={dataType:"script",async:!0,type:"GET",url:d,success:ua(d,!1,l),error:ua(d,!0,l)},h++,j?setTimeout(c.success,0):m.$ajax(c)},ua=function(c,d,e){a.getStackTrace();return function(){f&&this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0q;q++)for(;m=l[q](x.STATUS_CONTENT_LOADED);)1==q&&r===m&&(m.status=x.STATUS_LOAD_COMPLETE),updateNode(m),r=m;for(;!(ma=[],!na(d,c)););for(q=0;2>q;q++)for(r=null;(m= l[q](x.STATUS_DECLARED))&&r!==m;)updateNode(r=m);r=[];for(q=0;2>q;q++)for(;m=l[q](x.STATUS_DECLARED);)r.push(m),m.status=x.STATUS_LOAD_COMPLETE;if(r.length){for(q=0;q=x.STATUS_DECLARED););if(0<=f){if(b._checkLoad){var h;System.out.println("cycle found loading "+c+" for "+a)}for(;fh;h++){k=j[h];for(f=k.length;0<=--f;)if(k[f].status==x.STATUS_DECLARED&&na(k[f],c))return!0}d.length=e;return!1};b._classCountPending=0;b._classCountOK=0;b._classPending={};b.showPending=function(){var a=[],c;for(c in b._classPending){var d=H(c);d?(a.push(d),System.out.println(va("","",d,"",0))):alert("No node for "+c)}return a};var va=function(a,b,c,d,e){b+="--"+c.name;a+=b+"\n";if(5=x.STATUS_LOAD_COMPLETE)Da(a);else{var c=!0;if(a.musts.length&&a.declaration)for(var d=a.musts.length,e=d;0<=--e;){var f=a.musts[e];f.requiredBy=a;if(f.statusx.STATUS_KNOWN&&!a.declaration||Ta(a.musts,x.STATUS_LOAD_COMPLETE)&&Ta(a.optionals,x.STATUS_LOAD_COMPLETE)){c=x.STATUS_LOAD_COMPLETE;if(!wa(a,c))return!1;if(a.declaration&&a.declaration.clazzList){j=0;k=a.declaration.clazzList;for(l=k.length;jc.indexOf("Opera")&&document.all?0==h?d:j:0>c.indexOf("Gecko")?h==e.offsetHeight&&h==e.scrollHeight?d:j:d;wa!=c&&(wa=c,O.style.bottom=wa+4+"px");b&&na()}};var jb=function(a){if(a)for(var b= a.childNodes.length;0<=--b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&jb(c);try{a.removeChild(c)}catch(d){}}}},kb=function(a){L&&a==aa.DEFAULT_OPACITY&&(window.clearTimeout(L),L=null);ga=a;navigator.userAgent.toLowerCase();O.style.filter="Alpha(Opacity="+a+")";O.style.opacity=a/100},ub=function(){aa.hideMonitor()},ya=!1,na=function(){"none"!=O.style.display&&(ga==aa.DEFAULT_OPACITY?(L=window.setTimeout(function(){na()},750),ga-=5):0<=ga-10?(kb(ga-10),L=window.setTimeout(function(){na()}, 40)):O.style.display="none")},C=a.Console,ba=System;C.maxTotalLines=1E4;C.setMaxTotalLines=function(a){C.maxTotalLines=0C.maxTotalLines){for(var d=0;dc.childNodes.length)l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",C.linesCount++;else try{l=c.childNodes[c.childNodes.length-1]}catch(m){l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",C.linesCount++}var q=document.createElement("SPAN");l.appendChild(q);q.style.whiteSpace="nowrap";b&&(q.style.color= b);l=h[d];0==l.length&&(l=V);q.appendChild(document.createTextNode(l));C.pinning||(c.scrollTop+=100);C.metLineBreak=d!=j||e}d=c.parentNode.className;!C.pinning&&(d&&-1!=d.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);C.lastOutputTime=(new Date).getTime()};C.clear=function(){try{C.metLineBreak=!0;var a=window["j2s.lib"],b=a&&a.console;if(b&&(b=document.getElementById(b))){for(var c=b.childNodes,d=c.length;0<=--d;)b.removeChild(c[d]);C.linesCount=0}}catch(e){}};a.alert=function(a){C.consoleOutput(a+ "\r\n")};ba.out.print=function(a){C.consoleOutput(a)};ba.out.println=function(a){C.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};ba.out.write=function(a,b,c){ba.out.print(String.instantialize(a).substring(b,b+c))};ba.err.__CLASS_NAME__="java.io.PrintStream";ba.err.print=function(a){C.consoleOutput(a,"red")};ba.err.println=function(a){C.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};ba.err.write=function(a,b,c){ba.err.print(String.instantialize(a).substring(b, b+c))}}(Clazz,Jmol))};Jmol.___JmolDate="$Date: 2020-12-16 21:21:17 -0600 (Wed, 16 Dec 2020) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.31.20";