(function(c,m){"object"===typeof module&&"object"===typeof module.exports?module.exports=c.document?m(c,!0):function(c){if(!c.document)throw Error("jQuery requires a window with a document");return m(c)}:m(c)})("undefined"!==typeof window?window:this,function(c,m){function h(a){var e=a.length,k=d.type(a);return"function"===k||d.isWindow(a)?!1:1===a.nodeType&&e?!0:"array"===k||0===e||"number"===typeof e&&0<e&&e-1 in a}function j(a,e,k){if(d.isFunction(e))return d.grep(a,function(a,d){return!!e.call(a,
d,a)!==k});if(e.nodeType)return d.grep(a,function(a){return a===e!==k});if("string"===typeof e){if(Uc.test(e))return d.filter(e,a,k);e=d.filter(e,a)}return d.grep(a,function(a){return 0<=d.inArray(a,e)!==k})}function l(a,e){do a=a[e];while(a&&1!==a.nodeType);return a}function r(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",p,!1),c.removeEventListener("load",p,!1)):(u.detachEvent("onreadystatechange",p),c.detachEvent("onload",p))}function p(){if(u.addEventListener||"load"===event.type||
"complete"===u.readyState)r(),d.ready()}function v(a,e,k){if(void 0===k&&1===a.nodeType)if(k="data-"+e.replace(Vc,"-$1").toLowerCase(),k=a.getAttribute(k),"string"===typeof k){try{k="true"===k?!0:"false"===k?!1:"null"===k?null:+k+""===k?+k:Wc.test(k)?d.parseJSON(k):k}catch(q){}d.data(a,e,k)}else k=void 0;return k}function w(a){for(var e in a)if(!("data"===e&&d.isEmptyObject(a[e]))&&"toJSON"!==e)return!1;return!0}function b(a,e,k,q){if(d.acceptData(a)){var b=d.expando,c=a.nodeType,g=c?d.cache:a,f=
c?a[b]:a[b]&&b;if(f&&g[f]&&(q||g[f].data)||!(void 0===k&&"string"===typeof e)){f||(f=c?a[b]=V.pop()||d.guid++:b);g[f]||(g[f]=c?{}:{toJSON:d.noop});if("object"===typeof e||"function"===typeof e)q?g[f]=d.extend(g[f],e):g[f].data=d.extend(g[f].data,e);a=g[f];q||(a.data||(a.data={}),a=a.data);void 0!==k&&(a[d.camelCase(e)]=k);"string"===typeof e?(k=a[e],null==k&&(k=a[d.camelCase(e)])):k=a;return k}}}function g(a,e,k){if(d.acceptData(a)){var q,b,c=a.nodeType,g=c?d.cache:a,f=c?a[d.expando]:d.expando;if(g[f]){if(e&&
(q=k?g[f]:g[f].data)){d.isArray(e)?e=e.concat(d.map(e,d.camelCase)):e in q?e=[e]:(e=d.camelCase(e),e=e in q?[e]:e.split(" "));for(b=e.length;b--;)delete q[e[b]];if(k?!w(q):!d.isEmptyObject(q))return}if(!k&&(delete g[f].data,!w(g[f])))return;c?d.cleanData([a],!0):s.deleteExpando||g!=g.window?delete g[f]:g[f]=null}}}function f(){return!0}function n(){return!1}function t(){try{return u.activeElement}catch(a){}}function B(a){var e=Rb.split("|");a=a.createDocumentFragment();if(a.createElement)for(;e.length;)a.createElement(e.pop());
return a}function E(a,e){var k,q,b=0,c=typeof a.getElementsByTagName!==N?a.getElementsByTagName(e||"*"):typeof a.querySelectorAll!==N?a.querySelectorAll(e||"*"):void 0;if(!c){c=[];for(k=a.childNodes||a;null!=(q=k[b]);b++)!e||d.nodeName(q,e)?c.push(q):d.merge(c,E(q,e))}return void 0===e||e&&d.nodeName(a,e)?d.merge([a],c):c}function Xc(a){ib.test(a.type)&&(a.defaultChecked=a.checked)}function Sb(a,e){return d.nodeName(a,"table")&&d.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||
a.appendChild(a.ownerDocument.createElement("tbody")):a}function jb(a){a.type=(null!==d.find.attr(a,"type"))+"/"+a.type;return a}function xa(a){var e=Yc.exec(a.type);e?a.type=e[1]:a.removeAttribute("type");return a}function F(a,e){for(var k,q=0;null!=(k=a[q]);q++)d._data(k,"globalEval",!e||d._data(e[q],"globalEval"))}function Tb(a,e){if(1===e.nodeType&&d.hasData(a)){var k,q,b;q=d._data(a);var c=d._data(e,q),g=q.events;if(g)for(k in delete c.handle,c.events={},g){q=0;for(b=g[k].length;q<b;q++)d.event.add(e,
k,g[k][q])}c.data&&(c.data=d.extend({},c.data))}}function Ub(a,e){var k=d(e.createElement(a)).appendTo(e.body),q=c.getDefaultComputedStyle?c.getDefaultComputedStyle(k[0]).display:d.css(k[0],"display");k.detach();return q}function Vb(a){var e=u,k=Wb[a];if(!k){k=Ub(a,e);if("none"===k||!k)ya=(ya||d("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(ya[0].contentWindow||ya[0].contentDocument).document,e.write(),e.close(),k=Ub(a,e),ya.detach();Wb[a]=k}return k}function Xb(a,
e){return{get:function(){var k=a();if(null!=k)if(k)delete this.get;else return(this.get=e).apply(this,arguments)}}}function Yb(a,e){if(e in a)return e;for(var k=e.charAt(0).toUpperCase()+e.slice(1),q=e,d=Zb.length;d--;)if(e=Zb[d]+k,e in a)return e;return q}function $b(a,e){for(var k,q,b,c=[],g=0,f=a.length;g<f;g++)if(q=a[g],q.style)if(c[g]=d._data(q,"olddisplay"),k=q.style.display,e)!c[g]&&"none"===k&&(q.style.display=""),""===q.style.display&&za(q)&&(c[g]=d._data(q,"olddisplay",Vb(q.nodeName)));
else if(!c[g]&&(b=za(q),k&&"none"!==k||!b))d._data(q,"olddisplay",b?k:d.css(q,"display"));for(g=0;g<f;g++)if(q=a[g],q.style&&(!e||"none"===q.style.display||""===q.style.display))q.style.display=e?c[g]||"":"none";return a}function ac(a,e,k){return(a=Zc.exec(e))?Math.max(0,a[1]-(k||0))+(a[2]||"px"):e}function bc(a,e,k,q,b){e=k===(q?"border":"content")?4:"width"===e?1:0;for(var c=0;4>e;e+=2)"margin"===k&&(c+=d.css(a,k+ga[e],!0,b)),q?("content"===k&&(c-=d.css(a,"padding"+ga[e],!0,b)),"margin"!==k&&(c-=
d.css(a,"border"+ga[e]+"Width",!0,b))):(c+=d.css(a,"padding"+ga[e],!0,b),"padding"!==k&&(c+=d.css(a,"border"+ga[e]+"Width",!0,b)));return c}function cc(a,e,k){var q=!0,b="width"===e?a.offsetWidth:a.offsetHeight,c=ha(a),g=s.boxSizing()&&"border-box"===d.css(a,"boxSizing",!1,c);if(0>=b||null==b){b=ia(a,e,c);if(0>b||null==b)b=a.style[e];if(Ia.test(b))return b;q=g&&(s.boxSizingReliable()||b===a.style[e]);b=parseFloat(b)||0}return b+bc(a,e,k||(g?"border":"content"),q,c)+"px"}function G(a,e,k,q,b){return new G.prototype.init(a,
e,k,q,b)}function dc(){setTimeout(function(){pa=void 0});return pa=d.now()}function Ja(a,e){var k,q={height:a},b=0;for(e=e?1:0;4>b;b+=2-e)k=ga[b],q["margin"+k]=q["padding"+k]=a;e&&(q.opacity=q.width=a);return q}function ec(a,e,k){for(var q,b=(Aa[e]||[]).concat(Aa["*"]),d=0,c=b.length;d<c;d++)if(q=b[d].call(k,e,a))return q}function fc(a,e,k){var q,b,c=0,g=Ka.length,f=d.Deferred().always(function(){delete h.elem}),h=function(){if(b)return!1;for(var e=pa||dc(),e=Math.max(0,n.startTime+n.duration-e),
k=1-(e/n.duration||0),q=0,d=n.tweens.length;q<d;q++)n.tweens[q].run(k);f.notifyWith(a,[n,k,e]);if(1>k&&d)return e;f.resolveWith(a,[n]);return!1},n=f.promise({elem:a,props:d.extend({},e),opts:d.extend(!0,{specialEasing:{}},k),originalProperties:e,originalOptions:k,startTime:pa||dc(),duration:k.duration,tweens:[],createTween:function(e,k){var q=d.Tween(a,n.opts,e,k,n.opts.specialEasing[e]||n.opts.easing);n.tweens.push(q);return q},stop:function(e){var k=0,q=e?n.tweens.length:0;if(b)return this;for(b=
!0;k<q;k++)n.tweens[k].run(1);e?f.resolveWith(a,[n,e]):f.rejectWith(a,[n,e]);return this}});e=n.props;k=n.opts.specialEasing;var j,La,l,t;for(q in e)if(j=d.camelCase(q),La=k[j],l=e[q],d.isArray(l)&&(La=l[1],l=e[q]=l[0]),q!==j&&(e[j]=l,delete e[q]),(t=d.cssHooks[j])&&"expand"in t)for(q in l=t.expand(l),delete e[j],l)q in e||(e[q]=l[q],k[q]=La);else k[j]=La;for(;c<g;c++)if(q=Ka[c].call(n,a,e,n.opts))return q;d.map(e,ec,n);d.isFunction(n.opts.start)&&n.opts.start.call(a,n);d.fx.timer(d.extend(h,{elem:a,
anim:n,queue:n.opts.queue}));return n.progress(n.opts.progress).done(n.opts.done,n.opts.complete).fail(n.opts.fail).always(n.opts.always)}function gc(a){return function(e,k){"string"!==typeof e&&(k=e,e="*");var q,b=0,c=e.toLowerCase().match(T)||[];if(d.isFunction(k))for(;q=c[b++];)"+"===q.charAt(0)?(q=q.slice(1)||"*",(a[q]=a[q]||[]).unshift(k)):(a[q]=a[q]||[]).push(k)}}function hc(a,e,k,q){function b(f){var h;c[f]=!0;d.each(a[f]||[],function(a,d){var f=d(e,k,q);if("string"===typeof f&&!g&&!c[f])return e.dataTypes.unshift(f),
b(f),!1;if(g)return!(h=f)});return h}var c={},g=a===kb;return b(e.dataTypes[0])||!c["*"]&&b("*")}function lb(a,e){var k,q,b=d.ajaxSettings.flatOptions||{};for(q in e)void 0!==e[q]&&((b[q]?a:k||(k={}))[q]=e[q]);k&&d.extend(!0,a,k);return a}function mb(a,e,k,q){var b;if(d.isArray(e))d.each(e,function(e,b){k||ad.test(a)?q(a,b):mb(a+"["+("object"===typeof b?e:"")+"]",b,k,q)});else if(!k&&"object"===d.type(e))for(b in e)mb(a+"["+b+"]",e[b],k,q);else q(a,e)}function nb(a){try{return a?new c.ActiveXObject("Microsoft.XMLHTTP"):
new c.XMLHttpRequest}catch(e){}}function ic(){try{return new c.XMLHttpRequest}catch(a){}}function jc(a){return d.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var V=[],W=V.slice,kc=V.concat,ob=V.push,lc=V.indexOf,Ma={},bd=Ma.toString,qa=Ma.hasOwnProperty,pb="".trim,s={},d=function(a,e){return new d.fn.init(a,e)},cd=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,dd=/^-ms-/,ed=/-([\da-z])/gi,fd=function(a,e){return e.toUpperCase()};d.fn=d.prototype={jquery:"1.11.0",constructor:d,selector:"",length:0,
toArray:function(){return W.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:W.call(this)},pushStack:function(a){a=d.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;return a},each:function(a,e){return d.each(this,a,e)},map:function(a){return this.pushStack(d.map(this,function(e,k){return a.call(e,k,e)}))},slice:function(){return this.pushStack(W.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var e=
this.length;a=+a+(0>a?e:0);return this.pushStack(0<=a&&a<e?[this[a]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ob,sort:V.sort,splice:V.splice};d.extend=d.fn.extend=function(){var a,e,k,q,b,c=arguments[0]||{},g=1,f=arguments.length,h=!1;"boolean"===typeof c&&(h=c,c=arguments[g]||{},g++);"object"!==typeof c&&!d.isFunction(c)&&(c={});g===f&&(c=this,g--);for(;g<f;g++)if(null!=(b=arguments[g]))for(q in b)a=c[q],k=b[q],c!==k&&(h&&k&&(d.isPlainObject(k)||(e=d.isArray(k)))?
(e?(e=!1,a=a&&d.isArray(a)?a:[]):a=a&&d.isPlainObject(a)?a:{},c[q]=d.extend(h,a,k)):void 0!==k&&(c[q]=k));return c};d.extend({expando:"jQuery"+("1.11.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw Error(a);},noop:function(){},isFunction:function(a){return"function"===d.type(a)},isArray:Array.isArray||function(a){return"array"===d.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return 0<=a-parseFloat(a)},isEmptyObject:function(a){for(var e in a)return!1;
return!0},isPlainObject:function(a){var e;if(!a||"object"!==d.type(a)||a.nodeType||d.isWindow(a))return!1;try{if(a.constructor&&!qa.call(a,"constructor")&&!qa.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(k){return!1}if(s.ownLast)for(e in a)return qa.call(a,e);for(e in a);return void 0===e||qa.call(a,e)},type:function(a){return null==a?a+"":"object"===typeof a||"function"===typeof a?Ma[bd.call(a)]||"object":typeof a},globalEval:function(a){a&&d.trim(a)&&(c.execScript||function(a){c.eval.call(c,
a)})(a)},camelCase:function(a){return a.replace(dd,"ms-").replace(ed,fd)},nodeName:function(a,e){return a.nodeName&&a.nodeName.toLowerCase()===e.toLowerCase()},each:function(a,e,k){var b,d=0,c=a.length;b=h(a);if(k)if(b)for(;d<c&&!(b=e.apply(a[d],k),!1===b);d++);else for(d in a){if(b=e.apply(a[d],k),!1===b)break}else if(b)for(;d<c&&!(b=e.call(a[d],d,a[d]),!1===b);d++);else for(d in a)if(b=e.call(a[d],d,a[d]),!1===b)break;return a},trim:pb&&!pb.call("\ufeff\u00a0")?function(a){return null==a?"":pb.call(a)}:
function(a){return null==a?"":(a+"").replace(cd,"")},makeArray:function(a,e){var k=e||[];null!=a&&(h(Object(a))?d.merge(k,"string"===typeof a?[a]:a):ob.call(k,a));return k},inArray:function(a,e,k){var b;if(e){if(lc)return lc.call(e,a,k);b=e.length;for(k=k?0>k?Math.max(0,b+k):k:0;k<b;k++)if(k in e&&e[k]===a)return k}return-1},merge:function(a,e){for(var k=+e.length,b=0,d=a.length;b<k;)a[d++]=e[b++];if(k!==k)for(;void 0!==e[b];)a[d++]=e[b++];a.length=d;return a},grep:function(a,e,k){for(var b=[],d=
0,c=a.length,g=!k;d<c;d++)k=!e(a[d],d),k!==g&&b.push(a[d]);return b},map:function(a,e,k){var b,d=0,c=a.length,g=[];if(h(a))for(;d<c;d++)b=e(a[d],d,k),null!=b&&g.push(b);else for(d in a)b=e(a[d],d,k),null!=b&&g.push(b);return kc.apply([],g)},guid:1,proxy:function(a,e){var k,b;"string"===typeof e&&(b=a[e],e=a,a=b);if(d.isFunction(a))return k=W.call(arguments,2),b=function(){return a.apply(e||this,k.concat(W.call(arguments)))},b.guid=a.guid=a.guid||d.guid++,b},now:function(){return+new Date},support:s});
d.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,e){Ma["[object "+e+"]"]=e.toLowerCase()});var qb=c,z=function(a,e,k,b){var d,c,g,f,h;(e?e.ownerDocument||e:O)!==H&&X(e);e=e||H;k=k||[];if(!a||"string"!==typeof a)return k;if(1!==(f=e.nodeType)&&9!==f)return[];if(S&&!b){if(d=gd.exec(a))if(g=d[1])if(9===f)if((c=e.getElementById(g))&&c.parentNode){if(c.id===g)return k.push(c),k}else return k;else{if(e.ownerDocument&&(c=e.ownerDocument.getElementById(g))&&Ba(e,
c)&&c.id===g)return k.push(c),k}else{if(d[2])return Y.apply(k,e.getElementsByTagName(a)),k;if((g=d[3])&&x.getElementsByClassName&&e.getElementsByClassName)return Y.apply(k,e.getElementsByClassName(g)),k}if(x.qsa&&(!I||!I.test(a))){c=d=C;g=e;h=9===f&&a;if(1===f&&"object"!==e.nodeName.toLowerCase()){f=Na(a);(d=e.getAttribute("id"))?c=d.replace(hd,"\\$&"):e.setAttribute("id",c);c="[id='"+c+"'] ";for(g=f.length;g--;)f[g]=c+Oa(f[g]);g=rb.test(a)&&sb(e.parentNode)||e;h=f.join(",")}if(h)try{return Y.apply(k,
g.querySelectorAll(h)),k}catch(n){}finally{d||e.removeAttribute("id")}}}var j;a:{a=a.replace(Pa,"$1");c=Na(a);if(!b&&1===c.length){d=c[0]=c[0].slice(0);if(2<d.length&&"ID"===(j=d[0]).type&&x.getById&&9===e.nodeType&&S&&y.relative[d[1].type]){e=(y.find.ID(j.matches[0].replace(Z,aa),e)||[])[0];if(!e){j=k;break a}a=a.slice(d.shift().value.length)}for(f=Qa.needsContext.test(a)?0:d.length;f--;){j=d[f];if(y.relative[g=j.type])break;if(g=y.find[g])if(b=g(j.matches[0].replace(Z,aa),rb.test(d[0].type)&&sb(e.parentNode)||
e)){d.splice(f,1);a=b.length&&Oa(d);if(!a){Y.apply(k,b);j=k;break a}break}}}tb(a,c)(b,e,!S,k,rb.test(a)&&sb(e.parentNode)||e);j=k}return j},ub=function(){function a(k,b){e.push(k+" ")>y.cacheLength&&delete a[e.shift()];return a[k+" "]=b}var e=[];return a},P=function(a){a[C]=!0;return a},Q=function(a){var e=H.createElement("div");try{return!!a(e)}catch(k){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}},vb=function(a,e){for(var k=a.split("|"),b=a.length;b--;)y.attrHandle[k[b]]=e},nc=function(a,
e){var k=e&&a,b=k&&1===a.nodeType&&1===e.nodeType&&(~e.sourceIndex||mc)-(~a.sourceIndex||mc);if(b)return b;if(k)for(;k=k.nextSibling;)if(k===e)return-1;return a?1:-1},id=function(a){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===a}},jd=function(a){return function(e){var k=e.nodeName.toLowerCase();return("input"===k||"button"===k)&&e.type===a}},ja=function(a){return P(function(e){e=+e;return P(function(k,b){for(var d,c=a([],k.length,e),g=c.length;g--;)if(k[d=c[g]])k[d]=!(b[d]=
k[d])})})},sb=function(a){return a&&typeof a.getElementsByTagName!==ra&&a},oc=function(){},Na=function(a,e){var k,b,d,c,g,f,h;if(g=pc[a+" "])return e?0:g.slice(0);g=a;f=[];for(h=y.preFilter;g;){if(!k||(b=kd.exec(g)))b&&(g=g.slice(b[0].length)||g),f.push(d=[]);k=!1;if(b=ld.exec(g))k=b.shift(),d.push({value:k,type:b[0].replace(Pa," ")}),g=g.slice(k.length);for(c in y.filter)if((b=Qa[c].exec(g))&&(!h[c]||(b=h[c](b))))k=b.shift(),d.push({value:k,type:c,matches:b}),g=g.slice(k.length);if(!k)break}return e?
g.length:g?z.error(a):pc(a,f).slice(0)},Oa=function(a){for(var e=0,k=a.length,b="";e<k;e++)b+=a[e].value;return b},wb=function(a,e,k){var b=e.dir,d=k&&"parentNode"===b,c=md++;return e.first?function(e,k,c){for(;e=e[b];)if(1===e.nodeType||d)return a(e,k,c)}:function(e,k,g){var f,h,n=[R,c];if(g)for(;e=e[b];){if((1===e.nodeType||d)&&a(e,k,g))return!0}else for(;e=e[b];)if(1===e.nodeType||d){h=e[C]||(e[C]={});if((f=h[b])&&f[0]===R&&f[1]===c)return n[2]=f[2];h[b]=n;if(n[2]=a(e,k,g))return!0}}},xb=function(a){return 1<
a.length?function(e,k,b){for(var d=a.length;d--;)if(!a[d](e,k,b))return!1;return!0}:a[0]},Ra=function(a,e,k,b,d){for(var c,g=[],f=0,h=a.length,n=null!=e;f<h;f++)if(c=a[f])if(!k||k(c,b,d))g.push(c),n&&e.push(f);return g},yb=function(a,e,k,b,d,c){b&&!b[C]&&(b=yb(b));d&&!d[C]&&(d=yb(d,c));return P(function(c,g,f,M){var h,n,j=[],l=[],t=g.length,r;if(!(r=c)){r=e||"*";for(var m=f.nodeType?[f]:f,p=[],B=0,s=m.length;B<s;B++)z(r,m[B],p);r=p}r=a&&(c||!e)?Ra(r,j,a,f,M):r;m=k?d||(c?a:t||b)?[]:g:r;k&&k(r,m,f,
M);if(b){h=Ra(m,l);b(h,[],f,M);for(f=h.length;f--;)if(n=h[f])m[l[f]]=!(r[l[f]]=n)}if(c){if(d||a){if(d){h=[];for(f=m.length;f--;)if(n=m[f])h.push(r[f]=n);d(null,m=[],h,M)}for(f=m.length;f--;)if((n=m[f])&&-1<(h=d?ka.call(c,n):j[f]))c[h]=!(g[h]=n)}}else m=Ra(m===g?m.splice(t,m.length):m),d?d(null,g,m,M):Y.apply(g,m)})},zb=function(a){var e,k,b,d=a.length,c=y.relative[a[0].type];k=c||y.relative[" "];for(var g=c?1:0,f=wb(function(a){return a===e},k,!0),h=wb(function(a){return-1<ka.call(e,a)},k,!0),n=[function(a,
k,b){return!c&&(b||k!==Sa)||((e=k).nodeType?f(a,k,b):h(a,k,b))}];g<d;g++)if(k=y.relative[a[g].type])n=[wb(xb(n),k)];else{k=y.filter[a[g].type].apply(null,a[g].matches);if(k[C]){for(b=++g;b<d&&!y.relative[a[b].type];b++);return yb(1<g&&xb(n),1<g&&Oa(a.slice(0,g-1).concat({value:" "===a[g-2].type?"*":""})).replace(Pa,"$1"),k,g<b&&zb(a.slice(g,b)),b<d&&zb(a=a.slice(b)),b<d&&Oa(a))}n.push(k)}return xb(n)},sa,x,y,Ta,qc,tb,Sa,ba,ta,X,H,U,S,I,la,Ua,Ba,C="sizzle"+-new Date,O=qb.document,R=0,md=0,rc=ub(),
pc=ub(),sc=ub(),Ab=function(a,e){a===e&&(ta=!0);return 0},ra="undefined",mc=-2147483648,nd={}.hasOwnProperty,ca=[],od=ca.pop,pd=ca.push,Y=ca.push,tc=ca.slice,ka=ca.indexOf||function(a){for(var e=0,k=this.length;e<k;e++)if(this[e]===a)return e;return-1},uc="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),vc="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+uc+")|)|)[\\x20\\t\\r\\n\\f]*\\]",Bb=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+
vc.replace(3,8)+")*)|.*)\\)|)",Pa=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),kd=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,ld=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,qd=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),rd=RegExp(Bb),sd=RegExp("^"+uc+"$"),Qa={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+vc),
PSEUDO:RegExp("^"+Bb),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")},td=/^(?:input|select|textarea|button)$/i,ud=/^h\d$/i,Ca=/^[^{]+\{\s*\[native \w/,gd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rb=/[+~]/,hd=/'|\\/g,Z=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),aa=function(a,e,k){a="0x"+e-65536;return a!==a||k?e:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)};try{Y.apply(ca=tc.call(O.childNodes),O.childNodes),ca[O.childNodes.length].nodeType}catch(ae){Y={apply:ca.length?function(a,e){pd.apply(a,tc.call(e))}:
function(a,e){for(var k=a.length,b=0;a[k++]=e[b++];);a.length=k-1}}}x=z.support={};qc=z.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};X=z.setDocument=function(a){var e=a?a.ownerDocument||a:O;a=e.defaultView;if(e===H||9!==e.nodeType||!e.documentElement)return H;H=e;U=e.documentElement;S=!qc(e);a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",function(){X()},!1):a.attachEvent&&a.attachEvent("onunload",function(){X()}));x.attributes=Q(function(a){a.className=
"i";return!a.getAttribute("className")});x.getElementsByTagName=Q(function(a){a.appendChild(e.createComment(""));return!a.getElementsByTagName("*").length});x.getElementsByClassName=Ca.test(e.getElementsByClassName)&&Q(function(a){a.innerHTML="<div class='a'></div><div class='a i'></div>";a.firstChild.className="i";return 2===a.getElementsByClassName("i").length});x.getById=Q(function(a){U.appendChild(a).id=C;return!e.getElementsByName||!e.getElementsByName(C).length});x.getById?(y.find.ID=function(a,
e){if(typeof e.getElementById!==ra&&S){var b=e.getElementById(a);return b&&b.parentNode?[b]:[]}},y.filter.ID=function(a){var e=a.replace(Z,aa);return function(a){return a.getAttribute("id")===e}}):(delete y.find.ID,y.filter.ID=function(a){var e=a.replace(Z,aa);return function(a){return(a=typeof a.getAttributeNode!==ra&&a.getAttributeNode("id"))&&a.value===e}});y.find.TAG=x.getElementsByTagName?function(a,e){if(typeof e.getElementsByTagName!==ra)return e.getElementsByTagName(a)}:function(a,e){var b,
d=[],c=0,g=e.getElementsByTagName(a);if("*"===a){for(;b=g[c++];)1===b.nodeType&&d.push(b);return d}return g};y.find.CLASS=x.getElementsByClassName&&function(a,e){if(typeof e.getElementsByClassName!==ra&&S)return e.getElementsByClassName(a)};la=[];I=[];if(x.qsa=Ca.test(e.querySelectorAll))Q(function(a){a.innerHTML="<select t=''><option selected=''></option></select>";a.querySelectorAll("[t^='']").length&&I.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||I.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");
a.querySelectorAll(":checked").length||I.push(":checked")}),Q(function(a){var b=e.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name=d]").length&&I.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");a.querySelectorAll(":enabled").length||I.push(":enabled",":disabled");a.querySelectorAll("*,:x");I.push(",.*:")});(x.matchesSelector=Ca.test(Ua=U.webkitMatchesSelector||U.mozMatchesSelector||U.oMatchesSelector||U.msMatchesSelector))&&Q(function(a){x.disconnectedMatch=
Ua.call(a,"div");Ua.call(a,"[s!='']:x");la.push("!=",Bb)});I=I.length&&RegExp(I.join("|"));la=la.length&&RegExp(la.join("|"));Ba=(a=Ca.test(U.compareDocumentPosition))||Ca.test(U.contains)?function(a,e){var b=9===a.nodeType?a.documentElement:a,d=e&&e.parentNode;return a===d||!(!d||!(1===d.nodeType&&(b.contains?b.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16)))}:function(a,e){if(e)for(;e=e.parentNode;)if(e===a)return!0;return!1};Ab=a?function(a,b){if(a===b)return ta=!0,0;var d=
!a.compareDocumentPosition-!b.compareDocumentPosition;if(d)return d;d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return d&1||!x.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===O&&Ba(O,a)?-1:b===e||b.ownerDocument===O&&Ba(O,b)?1:ba?ka.call(ba,a)-ka.call(ba,b):0:d&4?-1:1}:function(a,b){if(a===b)return ta=!0,0;var d,c=0;d=a.parentNode;var g=b.parentNode,f=[a],h=[b];if(!d||!g)return a===e?-1:b===e?1:d?-1:g?1:ba?ka.call(ba,a)-ka.call(ba,b):0;if(d===
g)return nc(a,b);for(d=a;d=d.parentNode;)f.unshift(d);for(d=b;d=d.parentNode;)h.unshift(d);for(;f[c]===h[c];)c++;return c?nc(f[c],h[c]):f[c]===O?-1:h[c]===O?1:0};return e};z.matches=function(a,e){return z(a,null,null,e)};z.matchesSelector=function(a,e){(a.ownerDocument||a)!==H&&X(a);e=e.replace(qd,"='$1']");if(x.matchesSelector&&S&&(!la||!la.test(e))&&(!I||!I.test(e)))try{var k=Ua.call(a,e);if(k||x.disconnectedMatch||a.document&&11!==a.document.nodeType)return k}catch(b){}return 0<z(e,H,null,[a]).length};
z.contains=function(a,e){(a.ownerDocument||a)!==H&&X(a);return Ba(a,e)};z.attr=function(a,e){(a.ownerDocument||a)!==H&&X(a);var k=y.attrHandle[e.toLowerCase()],k=k&&nd.call(y.attrHandle,e.toLowerCase())?k(a,e,!S):void 0;return void 0!==k?k:x.attributes||!S?a.getAttribute(e):(k=a.getAttributeNode(e))&&k.specified?k.value:null};z.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};z.uniqueSort=function(a){var e,k=[],b=0,d=0;ta=!x.detectDuplicates;ba=!x.sortStable&&a.slice(0);
a.sort(Ab);if(ta){for(;e=a[d++];)e===a[d]&&(b=k.push(d));for(;b--;)a.splice(k[b],1)}ba=null;return a};Ta=z.getText=function(a){var e,k="",b=0;if(e=a.nodeType)if(1===e||9===e||11===e){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)k+=Ta(a)}else{if(3===e||4===e)return a.nodeValue}else for(;e=a[b++];)k+=Ta(e);return k};y=z.selectors={cacheLength:50,createPseudo:P,match:Qa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},
"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(Z,aa);a[3]=(a[4]||a[5]||"").replace(Z,aa);"~="===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||z.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&z.error(a[0]);return a},PSEUDO:function(a){var e,k=!a[5]&&a[2];if(Qa.CHILD.test(a[0]))return null;if(a[3]&&
void 0!==a[4])a[2]=a[4];else if(k&&rd.test(k)&&(e=Na(k,!0))&&(e=k.indexOf(")",k.length-e)-k.length))a[0]=a[0].slice(0,e),a[2]=k.slice(0,e);return a.slice(0,3)}},filter:{TAG:function(a){var e=a.replace(Z,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===e}},CLASS:function(a){var e=rc[a+" "];return e||(e=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"))&&rc(a,function(a){return e.test("string"===typeof a.className&&a.className||
typeof a.getAttribute!==ra&&a.getAttribute("class")||"")})},ATTR:function(a,e,k){return function(b){b=z.attr(b,a);if(null==b)return"!="===e;if(!e)return!0;b+="";return"="===e?b===k:"!="===e?b!==k:"^="===e?k&&0===b.indexOf(k):"*="===e?k&&-1<b.indexOf(k):"$="===e?k&&b.slice(-k.length)===k:"~="===e?-1<(" "+b+" ").indexOf(k):"|="===e?b===k||b.slice(0,k.length+1)===k+"-":!1}},CHILD:function(a,e,k,b,d){var c="nth"!==a.slice(0,3),g="last"!==a.slice(-4),f="of-type"===e;return 1===b&&0===d?function(a){return!!a.parentNode}:
function(e,k,h){var n,j,l,t,r;k=c!==g?"nextSibling":"previousSibling";var m=e.parentNode,p=f&&e.nodeName.toLowerCase();h=!h&&!f;if(m){if(c){for(;k;){for(j=e;j=j[k];)if(f?j.nodeName.toLowerCase()===p:1===j.nodeType)return!1;r=k="only"===a&&!r&&"nextSibling"}return!0}r=[g?m.firstChild:m.lastChild];if(g&&h){h=m[C]||(m[C]={});n=h[a]||[];t=n[0]===R&&n[1];l=n[0]===R&&n[2];for(j=t&&m.childNodes[t];j=++t&&j&&j[k]||(l=t=0)||r.pop();)if(1===j.nodeType&&++l&&j===e){h[a]=[R,t,l];break}}else if(h&&(n=(e[C]||(e[C]=
{}))[a])&&n[0]===R)l=n[1];else for(;j=++t&&j&&j[k]||(l=t=0)||r.pop();)if((f?j.nodeName.toLowerCase()===p:1===j.nodeType)&&++l)if(h&&((j[C]||(j[C]={}))[a]=[R,l]),j===e)break;l-=d;return l===b||0===l%b&&0<=l/b}}},PSEUDO:function(a,e){var k,b=y.pseudos[a]||y.setFilters[a.toLowerCase()]||z.error("unsupported pseudo: "+a);return b[C]?b(e):1<b.length?(k=[a,a,"",e],y.setFilters.hasOwnProperty(a.toLowerCase())?P(function(a,k){for(var d,c=b(a,e),g=c.length;g--;)d=ka.call(a,c[g]),a[d]=!(k[d]=c[g])}):function(a){return b(a,
0,k)}):b}},pseudos:{not:P(function(a){var e=[],k=[],b=tb(a.replace(Pa,"$1"));return b[C]?P(function(a,e,k,d){d=b(a,null,d,[]);for(var c=a.length;c--;)if(k=d[c])a[c]=!(e[c]=k)}):function(a,d,c){e[0]=a;b(e,null,c,k);return!k.pop()}}),has:P(function(a){return function(e){return 0<z(a,e).length}}),contains:P(function(a){return function(e){return-1<(e.textContent||e.innerText||Ta(e)).indexOf(a)}}),lang:P(function(a){sd.test(a||"")||z.error("unsupported lang: "+a);a=a.replace(Z,aa).toLowerCase();return function(e){var k;
do if(k=S?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return k=k.toLowerCase(),k===a||0===k.indexOf(a+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(a){var e=qb.location&&qb.location.hash;return e&&e.slice(1)===a.id},root:function(a){return a===U},focus:function(a){return a===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!(!a.type&&!a.href&&!~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var e=
a.nodeName.toLowerCase();return"input"===e&&!!a.checked||"option"===e&&!!a.selected},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(6>a.nodeType)return!1;return!0},parent:function(a){return!y.pseudos.empty(a)},header:function(a){return ud.test(a.nodeName)},input:function(a){return td.test(a.nodeName)},button:function(a){var e=a.nodeName.toLowerCase();return"input"===e&&"button"===a.type||"button"===e},
text:function(a){var e;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(e=a.getAttribute("type"))||"text"===e.toLowerCase())},first:ja(function(){return[0]}),last:ja(function(a,e){return[e-1]}),eq:ja(function(a,e,k){return[0>k?k+e:k]}),even:ja(function(a,e){for(var k=0;k<e;k+=2)a.push(k);return a}),odd:ja(function(a,e){for(var k=1;k<e;k+=2)a.push(k);return a}),lt:ja(function(a,e,k){for(e=0>k?k+e:k;0<=--e;)a.push(e);return a}),gt:ja(function(a,e,k){for(k=0>k?k+e:k;++k<e;)a.push(k);
return a})}};y.pseudos.nth=y.pseudos.eq;for(sa in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})y.pseudos[sa]=id(sa);for(sa in{submit:!0,reset:!0})y.pseudos[sa]=jd(sa);oc.prototype=y.filters=y.pseudos;y.setFilters=new oc;tb=z.compile=function(a,e){var k,b=[],d=[],c=sc[a+" "];if(!c){e||(e=Na(a));for(k=e.length;k--;)c=zb(e[k]),c[C]?b.push(c):d.push(c);var g=0<b.length,f=0<d.length;k=function(a,e,k,c,M){var h,n,j,l=0,t="0",r=a&&[],m=[],p=Sa,B=a||f&&y.find.TAG("*",M),s=R+=null==p?1:Math.random()||
0.1,E=B.length;for(M&&(Sa=e!==H&&e);t!==E&&null!=(h=B[t]);t++){if(f&&h){for(n=0;j=d[n++];)if(j(h,e,k)){c.push(h);break}M&&(R=s)}g&&((h=!j&&h)&&l--,a&&r.push(h))}l+=t;if(g&&t!==l){for(n=0;j=b[n++];)j(r,m,e,k);if(a){if(0<l)for(;t--;)!r[t]&&!m[t]&&(m[t]=od.call(c));m=Ra(m)}Y.apply(c,m);M&&(!a&&0<m.length&&1<l+b.length)&&z.uniqueSort(c)}M&&(R=s,Sa=p);return r};k=g?P(k):k;c=sc(a,k)}return c};x.sortStable=C.split("").sort(Ab).join("")===C;x.detectDuplicates=!!ta;X();x.sortDetached=Q(function(a){return a.compareDocumentPosition(H.createElement("div"))&
1});Q(function(a){a.innerHTML="<a href='#'></a>";return"#"===a.firstChild.getAttribute("href")})||vb("type|href|height|width",function(a,e,k){if(!k)return a.getAttribute(e,"type"===e.toLowerCase()?1:2)});(!x.attributes||!Q(function(a){a.innerHTML="<input/>";a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")}))&&vb("value",function(a,e,k){if(!k&&"input"===a.nodeName.toLowerCase())return a.defaultValue});Q(function(a){return null==a.getAttribute("disabled")})||vb("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
function(a,e,k){var b;if(!k)return!0===a[e]?e.toLowerCase():(b=a.getAttributeNode(e))&&b.specified?b.value:null});d.find=z;d.expr=z.selectors;d.expr[":"]=d.expr.pseudos;d.unique=z.uniqueSort;d.text=z.getText;d.isXMLDoc=z.isXML;d.contains=z.contains;var wc=d.expr.match.needsContext,xc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Uc=/^.[^:#\[\.,]*$/;d.filter=function(a,e,k){var b=e[0];k&&(a=":not("+a+")");return 1===e.length&&1===b.nodeType?d.find.matchesSelector(b,a)?[b]:[]:d.find.matches(a,d.grep(e,function(a){return 1===
a.nodeType}))};d.fn.extend({find:function(a){var e,k=[],b=this,c=b.length;if("string"!==typeof a)return this.pushStack(d(a).filter(function(){for(e=0;e<c;e++)if(d.contains(b[e],this))return!0}));for(e=0;e<c;e++)d.find(a,b[e],k);k=this.pushStack(1<c?d.unique(k):k);k.selector=this.selector?this.selector+" "+a:a;return k},filter:function(a){return this.pushStack(j(this,a||[],!1))},not:function(a){return this.pushStack(j(this,a||[],!0))},is:function(a){return!!j(this,"string"===typeof a&&wc.test(a)?d(a):
a||[],!1).length}});var Da,u=c.document,vd=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(d.fn.init=function(a,e){var k,b;if(!a)return this;if("string"===typeof a){if((k="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:vd.exec(a))&&(k[1]||!e)){if(k[1]){if(e=e instanceof d?e[0]:e,d.merge(this,d.parseHTML(k[1],e&&e.nodeType?e.ownerDocument||e:u,!0)),xc.test(k[1])&&d.isPlainObject(e))for(k in e)if(d.isFunction(this[k]))this[k](e[k]);else this.attr(k,e[k])}else{if((b=u.getElementById(k[2]))&&
b.parentNode){if(b.id!==k[2])return Da.find(a);this.length=1;this[0]=b}this.context=u;this.selector=a}return this}return!e||e.jquery?(e||Da).find(a):this.constructor(e).find(a)}if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(d.isFunction(a))return"undefined"!==typeof Da.ready?Da.ready(a):a(d);void 0!==a.selector&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)}).prototype=d.fn;Da=d(u);var wd=/^(?:parents|prev(?:Until|All))/,xd={children:!0,contents:!0,
next:!0,prev:!0};d.extend({dir:function(a,e,k){var b=[];for(a=a[e];a&&9!==a.nodeType&&(void 0===k||1!==a.nodeType||!d(a).is(k));)1===a.nodeType&&b.push(a),a=a[e];return b},sibling:function(a,e){for(var k=[];a;a=a.nextSibling)1===a.nodeType&&a!==e&&k.push(a);return k}});d.fn.extend({has:function(a){var e,k=d(a,this),b=k.length;return this.filter(function(){for(e=0;e<b;e++)if(d.contains(this,k[e]))return!0})},closest:function(a,e){for(var k,b=0,c=this.length,g=[],f=wc.test(a)||"string"!==typeof a?d(a,
e||this.context):0;b<c;b++)for(k=this[b];k&&k!==e;k=k.parentNode)if(11>k.nodeType&&(f?-1<f.index(k):1===k.nodeType&&d.find.matchesSelector(k,a))){g.push(k);break}return this.pushStack(1<g.length?d.unique(g):g)},index:function(a){return!a?this[0]&&this[0].parentNode?this.first().prevAll().length:-1:"string"===typeof a?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,e){return this.pushStack(d.unique(d.merge(this.get(),d(a,e))))},addBack:function(a){return this.add(null==a?this.prevObject:
this.prevObject.filter(a))}});d.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,e,k){return d.dir(a,"parentNode",k)},next:function(a){return l(a,"nextSibling")},prev:function(a){return l(a,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,e,k){return d.dir(a,"nextSibling",k)},prevUntil:function(a,e,k){return d.dir(a,
"previousSibling",k)},siblings:function(a){return d.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.merge([],a.childNodes)}},function(a,e){d.fn[a]=function(k,b){var c=d.map(this,e,k);"Until"!==a.slice(-5)&&(b=k);b&&"string"===typeof b&&(c=d.filter(b,c));1<this.length&&(xd[a]||(c=d.unique(c)),wd.test(a)&&(c=c.reverse()));return this.pushStack(c)}});var T=/\S+/g,
yc={};d.Callbacks=function(a){var e;if("string"===typeof a){if(!(e=yc[a])){e=a;var k=yc[e]={};d.each(e.match(T)||[],function(a,e){k[e]=!0});e=k}}else e=d.extend({},a);a=e;var b,c,g,f,h,n,j=[],l=!a.once&&[],t=function(e){c=a.memory&&e;g=!0;h=n||0;n=0;f=j.length;for(b=!0;j&&h<f;h++)if(!1===j[h].apply(e[0],e[1])&&a.stopOnFalse){c=!1;break}b=!1;j&&(l?l.length&&t(l.shift()):c?j=[]:m.disable())},m={add:function(){if(j){var e=j.length;(function $c(e){d.each(e,function(e,b){var k=d.type(b);"function"===k?
(!a.unique||!m.has(b))&&j.push(b):b&&(b.length&&"string"!==k)&&$c(b)})})(arguments);b?f=j.length:c&&(n=e,t(c))}return this},remove:function(){j&&d.each(arguments,function(a,e){for(var k;-1<(k=d.inArray(e,j,k));)j.splice(k,1),b&&(k<=f&&f--,k<=h&&h--)});return this},has:function(a){return a?-1<d.inArray(a,j):!(!j||!j.length)},empty:function(){j=[];f=0;return this},disable:function(){j=l=c=void 0;return this},disabled:function(){return!j},lock:function(){l=void 0;c||m.disable();return this},locked:function(){return!l},
fireWith:function(a,e){if(j&&(!g||l))e=e||[],e=[a,e.slice?e.slice():e],b?l.push(e):t(e);return this},fire:function(){m.fireWith(this,arguments);return this},fired:function(){return!!g}};return m};d.extend({Deferred:function(a){var e=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],k="pending",b={state:function(){return k},always:function(){c.done(arguments).fail(arguments);return this},then:function(){var a=
arguments;return d.Deferred(function(k){d.each(e,function(e,g){var f=d.isFunction(a[e])&&a[e];c[g[1]](function(){var a=f&&f.apply(this,arguments);if(a&&d.isFunction(a.promise))a.promise().done(k.resolve).fail(k.reject).progress(k.notify);else k[g[0]+"With"](this===b?k.promise():this,f?[a]:arguments)})});a=null}).promise()},promise:function(a){return null!=a?d.extend(a,b):b}},c={};b.pipe=b.then;d.each(e,function(a,d){var g=d[2],f=d[3];b[d[1]]=g.add;f&&g.add(function(){k=f},e[a^1][2].disable,e[2][2].lock);
c[d[0]]=function(){c[d[0]+"With"](this===c?b:this,arguments);return this};c[d[0]+"With"]=g.fireWith});b.promise(c);a&&a.call(c,c);return c},when:function(a){var e=0,b=W.call(arguments),c=b.length,g=1!==c||a&&d.isFunction(a.promise)?c:0,f=1===g?a:d.Deferred(),h=function(a,e,b){return function(k){e[a]=this;b[a]=1<arguments.length?W.call(arguments):k;b===n?f.notifyWith(e,b):--g||f.resolveWith(e,b)}},n,j,l;if(1<c){n=Array(c);j=Array(c);for(l=Array(c);e<c;e++)b[e]&&d.isFunction(b[e].promise)?b[e].promise().done(h(e,
l,b)).fail(f.reject).progress(h(e,j,n)):--g}g||f.resolveWith(l,b);return f.promise()}});var Va;d.fn.ready=function(a){d.ready.promise().done(a);return this};d.extend({isReady:!1,readyWait:1,holdReady:function(a){a?d.readyWait++:d.ready(!0)},ready:function(a){if(!(!0===a?--d.readyWait:d.isReady)){if(!u.body)return setTimeout(d.ready);d.isReady=!0;!0!==a&&0<--d.readyWait||(Va.resolveWith(u,[d]),d.fn.trigger&&d(u).trigger("ready").off("ready"))}}});d.ready.promise=function(a){if(!Va)if(Va=d.Deferred(),
"complete"===u.readyState)setTimeout(d.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",p,!1),c.addEventListener("load",p,!1);else{u.attachEvent("onreadystatechange",p);c.attachEvent("onload",p);var e=!1;try{e=null==c.frameElement&&u.documentElement}catch(b){}e&&e.doScroll&&function K(){if(!d.isReady){try{e.doScroll("left")}catch(a){return setTimeout(K,50)}r();d.ready()}}()}return Va.promise(a)};var N="undefined",zc;for(zc in d(s))break;s.ownLast="0"!==zc;s.inlineBlockNeedsLayout=
!1;d(function(){var a,e,b=u.getElementsByTagName("body")[0];if(b){a=u.createElement("div");a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";e=u.createElement("div");b.appendChild(a).appendChild(e);if(typeof e.style.zoom!==N&&(e.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",s.inlineBlockNeedsLayout=3===e.offsetWidth))b.style.zoom=1;b.removeChild(a)}});var yd=u.createElement("div");if(null==s.deleteExpando){s.deleteExpando=
!0;try{delete yd.test}catch(be){s.deleteExpando=!1}}d.acceptData=function(a){var e=d.noData[(a.nodeName+" ").toLowerCase()],b=+a.nodeType||1;return 1!==b&&9!==b?!1:!e||!0!==e&&a.getAttribute("classid")===e};var Wc=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Vc=/([A-Z])/g;d.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!w(a)},data:function(a,e,k){return b(a,e,k)},removeData:function(a,
e){return g(a,e)},_data:function(a,e,k){return b(a,e,k,!0)},_removeData:function(a,e){return g(a,e,!0)}});d.fn.extend({data:function(a,e){var b,c,g,f=this[0],h=f&&f.attributes;if(void 0===a){if(this.length&&(g=d.data(f),1===f.nodeType&&!d._data(f,"parsedAttrs"))){for(b=h.length;b--;)c=h[b].name,0===c.indexOf("data-")&&(c=d.camelCase(c.slice(5)),v(f,c,g[c]));d._data(f,"parsedAttrs",!0)}return g}return"object"===typeof a?this.each(function(){d.data(this,a)}):1<arguments.length?this.each(function(){d.data(this,
a,e)}):f?v(f,a,d.data(f,a)):void 0},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,e,b){var c;if(a)return e=(e||"fx")+"queue",c=d._data(a,e),b&&(!c||d.isArray(b)?c=d._data(a,e,d.makeArray(b)):c.push(b)),c||[]},dequeue:function(a,e){e=e||"fx";var b=d.queue(a,e),c=b.length,g=b.shift(),f=d._queueHooks(a,e),h=function(){d.dequeue(a,e)};"inprogress"===g&&(g=b.shift(),c--);g&&("fx"===e&&b.unshift("inprogress"),delete f.stop,g.call(a,h,f));!c&&f&&
f.empty.fire()},_queueHooks:function(a,e){var b=e+"queueHooks";return d._data(a,b)||d._data(a,b,{empty:d.Callbacks("once memory").add(function(){d._removeData(a,e+"queue");d._removeData(a,b)})})}});d.fn.extend({queue:function(a,e){var b=2;"string"!==typeof a&&(e=a,a="fx",b--);return arguments.length<b?d.queue(this[0],a):void 0===e?this:this.each(function(){var b=d.queue(this,a,e);d._queueHooks(this,a);"fx"===a&&"inprogress"!==b[0]&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,
a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,e){var b,c=1,g=d.Deferred(),f=this,h=this.length,n=function(){--c||g.resolveWith(f,[f])};"string"!==typeof a&&(e=a,a=void 0);for(a=a||"fx";h--;)if((b=d._data(f[h],a+"queueHooks"))&&b.empty)c++,b.empty.add(n);n();return g.promise(e)}});var Wa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ga=["Top","Right","Bottom","Left"],za=function(a,e){a=e||a;return"none"===d.css(a,"display")||!d.contains(a.ownerDocument,a)},ma=d.access=
function(a,e,b,c,g,f,h){var n=0,j=a.length,l=null==b;if("object"===d.type(b))for(n in g=!0,b)d.access(a,e,n,b[n],!0,f,h);else if(void 0!==c&&(g=!0,d.isFunction(c)||(h=!0),l&&(h?(e.call(a,c),e=null):(l=e,e=function(a,e,b){return l.call(d(a),b)})),e))for(;n<j;n++)e(a[n],b,h?c:c.call(a[n],n,e(a[n],b)));return g?a:l?e.call(a):j?e(a[0],b):f},ib=/^(?:checkbox|radio)$/i,Cb=u.createDocumentFragment(),D=u.createElement("div"),Ea=u.createElement("input");D.setAttribute("className","t");D.innerHTML="  <link/><table></table><a href='/a'>a</a>";
s.leadingWhitespace=3===D.firstChild.nodeType;s.tbody=!D.getElementsByTagName("tbody").length;s.htmlSerialize=!!D.getElementsByTagName("link").length;s.html5Clone="<:nav></:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML;Ea.type="checkbox";Ea.checked=!0;Cb.appendChild(Ea);s.appendChecked=Ea.checked;D.innerHTML="<textarea>x</textarea>";s.noCloneChecked=!!D.cloneNode(!0).lastChild.defaultValue;Cb.appendChild(D);D.innerHTML="<input type='radio' checked='checked' name='t'/>";s.checkClone=D.cloneNode(!0).cloneNode(!0).lastChild.checked;
s.noCloneEvent=!0;D.attachEvent&&(D.attachEvent("onclick",function(){s.noCloneEvent=!1}),D.cloneNode(!0).click());if(null==s.deleteExpando){s.deleteExpando=!0;try{delete D.test}catch(ce){s.deleteExpando=!1}}var Cb=D=Ea=null,Xa,Ya,Ac=u.createElement("div");for(Xa in{submit:!0,change:!0,focusin:!0})if(Ya="on"+Xa,!(s[Xa+"Bubbles"]=Ya in c))Ac.setAttribute(Ya,"t"),s[Xa+"Bubbles"]=!1===Ac.attributes[Ya].expando;var Db=/^(?:input|select|textarea)$/i,zd=/^key/,Ad=/^(?:mouse|contextmenu)|click/,Bc=/^(?:focusinfocus|focusoutblur)$/,
Cc=/^([^.]*)(?:\.(.+)|)$/;d.event={global:{},add:function(a,e,b,c,g){var f,h,n,j,l,t,m,r,p;if(n=d._data(a)){b.handler&&(j=b,b=j.handler,g=j.selector);b.guid||(b.guid=d.guid++);if(!(h=n.events))h=n.events={};if(!(l=n.handle))l=n.handle=function(a){return typeof d!==N&&(!a||d.event.triggered!==a.type)?d.event.dispatch.apply(l.elem,arguments):void 0},l.elem=a;e=(e||"").match(T)||[""];for(n=e.length;n--;)if(f=Cc.exec(e[n])||[],r=t=f[1],p=(f[2]||"").split(".").sort(),r){f=d.event.special[r]||{};r=(g?f.delegateType:
f.bindType)||r;f=d.event.special[r]||{};t=d.extend({type:r,origType:t,data:c,handler:b,guid:b.guid,selector:g,needsContext:g&&d.expr.match.needsContext.test(g),namespace:p.join(".")},j);if(!(m=h[r]))if(m=h[r]=[],m.delegateCount=0,!f.setup||!1===f.setup.call(a,c,p,l))a.addEventListener?a.addEventListener(r,l,!1):a.attachEvent&&a.attachEvent("on"+r,l);f.add&&(f.add.call(a,t),t.handler.guid||(t.handler.guid=b.guid));g?m.splice(m.delegateCount++,0,t):m.push(t);d.event.global[r]=!0}a=null}},remove:function(a,
e,b,c,g){var f,h,n,j,l,t,m,r,p,B,s,E=d.hasData(a)&&d._data(a);if(E&&(t=E.events)){e=(e||"").match(T)||[""];for(l=e.length;l--;)if(n=Cc.exec(e[l])||[],p=s=n[1],B=(n[2]||"").split(".").sort(),p){m=d.event.special[p]||{};p=(c?m.delegateType:m.bindType)||p;r=t[p]||[];n=n[2]&&RegExp("(^|\\.)"+B.join("\\.(?:.*\\.|)")+"(\\.|$)");for(j=f=r.length;f--;)if(h=r[f],(g||s===h.origType)&&(!b||b.guid===h.guid)&&(!n||n.test(h.namespace))&&(!c||c===h.selector||"**"===c&&h.selector))r.splice(f,1),h.selector&&r.delegateCount--,
m.remove&&m.remove.call(a,h);j&&!r.length&&((!m.teardown||!1===m.teardown.call(a,B,E.handle))&&d.removeEvent(a,p,E.handle),delete t[p])}else for(p in t)d.event.remove(a,p+e[l],b,c,!0);d.isEmptyObject(t)&&(delete E.handle,d._removeData(a,"events"))}},trigger:function(a,e,b,g){var f,h,n,j,l,t,m=[b||u],r=qa.call(a,"type")?a.type:a;l=qa.call(a,"namespace")?a.namespace.split("."):[];n=f=b=b||u;if(!(3===b.nodeType||8===b.nodeType)&&!Bc.test(r+d.event.triggered))if(0<=r.indexOf(".")&&(l=r.split("."),r=l.shift(),
l.sort()),h=0>r.indexOf(":")&&"on"+r,a=a[d.expando]?a:new d.Event(r,"object"===typeof a&&a),a.isTrigger=g?2:3,a.namespace=l.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=b),e=null==e?[a]:d.makeArray(e,[a]),l=d.event.special[r]||{},g||!(l.trigger&&!1===l.trigger.apply(b,e))){if(!g&&!l.noBubble&&!d.isWindow(b)){j=l.delegateType||r;Bc.test(j+r)||(n=n.parentNode);for(;n;n=n.parentNode)m.push(n),f=n;if(f===(b.ownerDocument||
u))m.push(f.defaultView||f.parentWindow||c)}for(t=0;(n=m[t++])&&!a.isPropagationStopped();)if(a.type=1<t?j:l.bindType||r,(f=(d._data(n,"events")||{})[a.type]&&d._data(n,"handle"))&&f.apply(n,e),(f=h&&n[h])&&f.apply&&d.acceptData(n))a.result=f.apply(n,e),!1===a.result&&a.preventDefault();a.type=r;if(!g&&!a.isDefaultPrevented()&&(!l._default||!1===l._default.apply(m.pop(),e))&&d.acceptData(b)&&h&&b[r]&&!d.isWindow(b)){(f=b[h])&&(b[h]=null);d.event.triggered=r;try{b[r]()}catch(p){}d.event.triggered=
void 0;f&&(b[h]=f)}return a.result}},dispatch:function(a){a=d.event.fix(a);var e,b,c,g,f=[],h=W.call(arguments);e=(d._data(this,"events")||{})[a.type]||[];var n=d.event.special[a.type]||{};h[0]=a;a.delegateTarget=this;if(!(n.preDispatch&&!1===n.preDispatch.call(this,a))){f=d.event.handlers.call(this,a,e);for(e=0;(c=f[e++])&&!a.isPropagationStopped();){a.currentTarget=c.elem;for(g=0;(b=c.handlers[g++])&&!a.isImmediatePropagationStopped();)if(!a.namespace_re||a.namespace_re.test(b.namespace))if(a.handleObj=
b,a.data=b.data,b=((d.event.special[b.origType]||{}).handle||b.handler).apply(c.elem,h),void 0!==b&&!1===(a.result=b))a.preventDefault(),a.stopPropagation()}n.postDispatch&&n.postDispatch.call(this,a);return a.result}},handlers:function(a,e){var b,c,g,f,h=[],n=e.delegateCount,j=a.target;if(n&&j.nodeType&&(!a.button||"click"!==a.type))for(;j!=this;j=j.parentNode||this)if(1===j.nodeType&&(!0!==j.disabled||"click"!==a.type)){g=[];for(f=0;f<n;f++)c=e[f],b=c.selector+" ",void 0===g[b]&&(g[b]=c.needsContext?
0<=d(b,this).index(j):d.find(b,this,null,[j]).length),g[b]&&g.push(c);g.length&&h.push({elem:j,handlers:g})}n<e.length&&h.push({elem:this,handlers:e.slice(n)});return h},fix:function(a){if(a[d.expando])return a;var e,b,c;e=a.type;var g=a,f=this.fixHooks[e];f||(this.fixHooks[e]=f=Ad.test(e)?this.mouseHooks:zd.test(e)?this.keyHooks:{});c=f.props?this.props.concat(f.props):this.props;a=new d.Event(g);for(e=c.length;e--;)b=c[e],a[b]=g[b];a.target||(a.target=g.srcElement||u);3===a.target.nodeType&&(a.target=
a.target.parentNode);a.metaKey=!!a.metaKey;return f.filter?f.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,e){null==a.which&&(a.which=null!=e.charCode?e.charCode:e.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,
e){var b,d,c=e.button,g=e.fromElement;null==a.pageX&&null!=e.clientX&&(b=a.target.ownerDocument||u,d=b.documentElement,b=b.body,a.pageX=e.clientX+(d&&d.scrollLeft||b&&b.scrollLeft||0)-(d&&d.clientLeft||b&&b.clientLeft||0),a.pageY=e.clientY+(d&&d.scrollTop||b&&b.scrollTop||0)-(d&&d.clientTop||b&&b.clientTop||0));!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?e.toElement:g);!a.which&&void 0!==c&&(a.which=c&1?1:c&2?3:c&4?2:0);return a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==
t()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===t()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(d.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(a){return d.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,e,b,c){a=d.extend(new d.Event,b,{type:a,
isSimulated:!0,originalEvent:{}});c?d.event.trigger(a,null,e):d.event.dispatch.call(e,a);a.isDefaultPrevented()&&b.preventDefault()}};d.removeEvent=u.removeEventListener?function(a,e,b){a.removeEventListener&&a.removeEventListener(e,b,!1)}:function(a,e,b){e="on"+e;a.detachEvent&&(typeof a[e]===N&&(a[e]=null),a.detachEvent(e,b))};d.Event=function(a,e){if(!(this instanceof d.Event))return new d.Event(a,e);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===
a.defaultPrevented&&(!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault())?f:n):this.type=a;e&&d.extend(this,e);this.timeStamp=a&&a.timeStamp||d.now();this[d.expando]=!0};d.Event.prototype={isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=f;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=f;a&&(a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=f;this.stopPropagation()}};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,e){d.event.special[a]={delegateType:e,bindType:e,handle:function(a){var b,c=a.relatedTarget,g=a.handleObj;if(!c||c!==this&&!d.contains(this,c))a.type=g.origType,b=g.handler.apply(this,arguments),a.type=e;return b}}});s.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;
d.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=d.nodeName(a,"input")||d.nodeName(a,"button")?a.form:void 0)&&!d._data(a,"submitBubbles"))d.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),d._data(a,"submitBubbles",!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&d.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(d.nodeName(this,"form"))return!1;d.event.remove(this,"._submit")}});
s.changeBubbles||(d.event.special.change={setup:function(){if(Db.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)d.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),d.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1);d.event.simulate("change",this,a,!0)});return!1}d.event.add(this,"beforeactivate._change",function(a){a=a.target;Db.test(a.nodeName)&&!d._data(a,
"changeBubbles")&&(d.event.add(a,"change._change",function(a){this.parentNode&&(!a.isSimulated&&!a.isTrigger)&&d.event.simulate("change",this.parentNode,a,!0)}),d._data(a,"changeBubbles",!0))})},handle:function(a){var e=a.target;if(this!==e||a.isSimulated||a.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){d.event.remove(this,"._change");return!Db.test(this.nodeName)}});s.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},
function(a,e){var b=function(a){d.event.simulate(e,a.target,d.event.fix(a),!0)};d.event.special[e]={setup:function(){var c=this.ownerDocument||this,g=d._data(c,e);g||c.addEventListener(a,b,!0);d._data(c,e,(g||0)+1)},teardown:function(){var c=this.ownerDocument||this,g=d._data(c,e)-1;g?d._data(c,e,g):(c.removeEventListener(a,b,!0),d._removeData(c,e))}}});d.fn.extend({on:function(a,e,b,c,g){var f,h;if("object"===typeof a){"string"!==typeof e&&(b=b||e,e=void 0);for(f in a)this.on(f,e,b,a[f],g);return this}null==
b&&null==c?(c=e,b=e=void 0):null==c&&("string"===typeof e?(c=b,b=void 0):(c=b,b=e,e=void 0));if(!1===c)c=n;else if(!c)return this;1===g&&(h=c,c=function(a){d().off(a);return h.apply(this,arguments)},c.guid=h.guid||(h.guid=d.guid++));return this.each(function(){d.event.add(this,a,c,b,e)})},one:function(a,e,b,c){return this.on(a,e,b,c,1)},off:function(a,e,b){var c;if(a&&a.preventDefault&&a.handleObj)return c=a.handleObj,d(a.delegateTarget).off(c.namespace?c.origType+"."+c.namespace:c.origType,c.selector,
c.handler),this;if("object"===typeof a){for(c in a)this.off(c,e,a[c]);return this}if(!1===e||"function"===typeof e)b=e,e=void 0;!1===b&&(b=n);return this.each(function(){d.event.remove(this,a,b,e)})},trigger:function(a,e){return this.each(function(){d.event.trigger(a,e,this)})},triggerHandler:function(a,e){var b=this[0];if(b)return d.event.trigger(a,e,b,!0)}});var Rb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
Bd=/ jQuery\d+="(?:null|\d+)"/g,Dc=RegExp("<(?:"+Rb+")[\\s/>]","i"),Eb=/^\s+/,Ec=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fc=/<([\w:]+)/,Gc=/<tbody/i,Cd=/<|&#?\w+;/,Dd=/<(?:script|style|link)/i,Ed=/checked\s*(?:[^=]|=\s*.checked.)/i,Hc=/^$|\/(?:java|ecma)script/i,Yc=/^true\/(.*)/,Fd=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,L={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>",
"</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:s.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Fb=B(u).appendChild(u.createElement("div"));L.optgroup=L.option;L.tbody=L.tfoot=L.colgroup=L.caption=L.thead;L.th=L.td;d.extend({clone:function(a,e,b){var c,g,f,h,n,j=d.contains(a.ownerDocument,a);s.html5Clone||d.isXMLDoc(a)||!Dc.test("<"+
a.nodeName+">")?f=a.cloneNode(!0):(Fb.innerHTML=a.outerHTML,Fb.removeChild(f=Fb.firstChild));if((!s.noCloneEvent||!s.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!d.isXMLDoc(a)){c=E(f);n=E(a);for(h=0;null!=(g=n[h]);++h)if(c[h]){var l=c[h],t=void 0,r=void 0,m=void 0;if(1===l.nodeType){t=l.nodeName.toLowerCase();if(!s.noCloneEvent&&l[d.expando]){m=d._data(l);for(r in m.events)d.removeEvent(l,r,m.handle);l.removeAttribute(d.expando)}if("script"===t&&l.text!==g.text)jb(l).text=g.text,xa(l);else if("object"===
t)l.parentNode&&(l.outerHTML=g.outerHTML),s.html5Clone&&(g.innerHTML&&!d.trim(l.innerHTML))&&(l.innerHTML=g.innerHTML);else if("input"===t&&ib.test(g.type))l.defaultChecked=l.checked=g.checked,l.value!==g.value&&(l.value=g.value);else if("option"===t)l.defaultSelected=l.selected=g.defaultSelected;else if("input"===t||"textarea"===t)l.defaultValue=g.defaultValue}}}if(e)if(b){n=n||E(a);c=c||E(f);for(h=0;null!=(g=n[h]);h++)Tb(g,c[h])}else Tb(a,f);c=E(f,"script");0<c.length&&F(c,!j&&E(a,"script"));return f},
buildFragment:function(a,e,b,c){for(var g,f,h,n,j,l,t=a.length,r=B(e),m=[],p=0;p<t;p++)if((f=a[p])||0===f)if("object"===d.type(f))d.merge(m,f.nodeType?[f]:f);else if(Cd.test(f)){h=h||r.appendChild(e.createElement("div"));n=(Fc.exec(f)||["",""])[1].toLowerCase();l=L[n]||L._default;h.innerHTML=l[1]+f.replace(Ec,"<$1></$2>")+l[2];for(g=l[0];g--;)h=h.lastChild;!s.leadingWhitespace&&Eb.test(f)&&m.push(e.createTextNode(Eb.exec(f)[0]));if(!s.tbody)for(g=(f="table"===n&&!Gc.test(f)?h.firstChild:"<table>"===
l[1]&&!Gc.test(f)?h:0)&&f.childNodes.length;g--;)d.nodeName(j=f.childNodes[g],"tbody")&&!j.childNodes.length&&f.removeChild(j);d.merge(m,h.childNodes);for(h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=r.lastChild}else m.push(e.createTextNode(f));h&&r.removeChild(h);s.appendChecked||d.grep(E(m,"input"),Xc);for(p=0;f=m[p++];)if(!(c&&-1!==d.inArray(f,c))&&(a=d.contains(f.ownerDocument,f),h=E(r.appendChild(f),"script"),a&&F(h),b))for(g=0;f=h[g++];)Hc.test(f.type||"")&&b.push(f);return r},
cleanData:function(a,e){for(var b,c,g,f,h=0,n=d.expando,j=d.cache,l=s.deleteExpando,t=d.event.special;null!=(b=a[h]);h++)if(e||d.acceptData(b))if(f=(g=b[n])&&j[g]){if(f.events)for(c in f.events)t[c]?d.event.remove(b,c):d.removeEvent(b,c,f.handle);j[g]&&(delete j[g],l?delete b[n]:typeof b.removeAttribute!==N?b.removeAttribute(n):b[n]=null,V.push(g))}}});d.fn.extend({text:function(a){return ma(this,function(a){return void 0===a?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(a))},
null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&Sb(this,a).appendChild(a)})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Sb(this,a);e.insertBefore(a,e.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,e){for(var b,c=a?d.filter(a,this):this,g=0;null!=(b=c[g]);g++)!e&&1===b.nodeType&&d.cleanData(E(b)),b.parentNode&&(e&&d.contains(b.ownerDocument,b)&&F(E(b,"script")),b.parentNode.removeChild(b));return this},empty:function(){for(var a,e=0;null!=(a=this[e]);e++){for(1===a.nodeType&&d.cleanData(E(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&d.nodeName(a,"select")&&(a.options.length=0)}return this},
clone:function(a,e){a=null==a?!1:a;e=null==e?a:e;return this.map(function(){return d.clone(this,a,e)})},html:function(a){return ma(this,function(a){var b=this[0]||{},c=0,g=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(Bd,""):void 0;if("string"===typeof a&&!Dd.test(a)&&(s.htmlSerialize||!Dc.test(a))&&(s.leadingWhitespace||!Eb.test(a))&&!L[(Fc.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ec,"<$1></$2>");try{for(;c<g;c++)b=this[c]||{},1===b.nodeType&&(d.cleanData(E(b,!1)),b.innerHTML=
a);b=0}catch(f){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];this.domManip(arguments,function(e){a=this.parentNode;d.cleanData(E(this));a&&a.replaceChild(e,this)});return a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,e){a=kc.apply([],a);var b,c,g,f,h=0,n=this.length,j=this,l=n-1,t=a[0],r=d.isFunction(t);if(r||1<n&&"string"===typeof t&&!s.checkClone&&Ed.test(t))return this.each(function(b){var c=
j.eq(b);r&&(a[0]=t.call(this,b,c.html()));c.domManip(a,e)});if(n&&(f=d.buildFragment(a,this[0].ownerDocument,!1,this),b=f.firstChild,1===f.childNodes.length&&(f=b),b)){g=d.map(E(f,"script"),jb);for(c=g.length;h<n;h++)b=f,h!==l&&(b=d.clone(b,!0,!0),c&&d.merge(g,E(b,"script"))),e.call(this[h],b,h);if(c){f=g[g.length-1].ownerDocument;d.map(g,xa);for(h=0;h<c;h++)if(b=g[h],Hc.test(b.type||"")&&!d._data(b,"globalEval")&&d.contains(f,b))b.src?d._evalUrl&&d._evalUrl(b.src):d.globalEval((b.text||b.textContent||
b.innerHTML||"").replace(Fd,""))}f=b=null}return this}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,e){d.fn[a]=function(a){for(var b=0,c=[],g=d(a),f=g.length-1;b<=f;b++)a=b===f?this:this.clone(!0),d(g[b])[e](a),ob.apply(c,a.get());return this.pushStack(c)}});var ya,Wb={},Fa,Za,ua=u.createElement("div");ua.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";Fa=ua.getElementsByTagName("a")[0];
Fa.style.cssText="float:left;opacity:.5";s.opacity=/^0.5/.test(Fa.style.opacity);s.cssFloat=!!Fa.style.cssFloat;ua.style.backgroundClip="content-box";ua.cloneNode(!0).style.backgroundClip="";s.clearCloneStyle="content-box"===ua.style.backgroundClip;Fa=ua=null;s.shrinkWrapBlocks=function(){var a,e,b;if(null==Za){a=u.getElementsByTagName("body")[0];if(!a)return;e=u.createElement("div");b=u.createElement("div");a.appendChild(e).appendChild(b);Za=!1;typeof b.style.zoom!==N&&(b.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",
b.innerHTML="<div></div>",b.firstChild.style.width="5px",Za=3!==b.offsetWidth);a.removeChild(e)}return Za};var Ic=/^margin/,Ia=RegExp("^("+Wa+")(?!px)[a-z%]+$","i"),ha,ia,Gd=/^(top|right|bottom|left)$/;c.getComputedStyle?(ha=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},ia=function(a,e,b){var c,g,f=a.style;g=(b=b||ha(a))?b.getPropertyValue(e)||b[e]:void 0;b&&(""===g&&!d.contains(a.ownerDocument,a)&&(g=d.style(a,e)),Ia.test(g)&&Ic.test(e)&&(a=f.width,e=f.minWidth,c=f.maxWidth,
f.minWidth=f.maxWidth=f.width=g,g=b.width,f.width=a,f.minWidth=e,f.maxWidth=c));return void 0===g?g:g+""}):u.documentElement.currentStyle&&(ha=function(a){return a.currentStyle},ia=function(a,e,b){var c,d,g,f=a.style;g=(b=b||ha(a))?b[e]:void 0;null==g&&(f&&f[e])&&(g=f[e]);if(Ia.test(g)&&!Gd.test(e)){b=f.left;if(d=(c=a.runtimeStyle)&&c.left)c.left=a.currentStyle.left;f.left="fontSize"===e?"1em":g;g=f.pixelLeft+"px";f.left=b;d&&(c.left=d)}return void 0===g?g:g+""||"auto"});var Ib=function(){var a,b,
k=u.getElementsByTagName("body")[0];k&&(a=u.createElement("div"),b=u.createElement("div"),a.style.cssText=Gb,k.appendChild(a).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%",d.swap(k,null!=k.style.zoom?{zoom:1}:{},function(){Hb=4===b.offsetWidth}),$a=!0,ab=!1,bb=!0,c.getComputedStyle&&(ab="1%"!==(c.getComputedStyle(b,null)||{}).top,$a="4px"===(c.getComputedStyle(b,
null)||{width:"4px"}).width),k.removeChild(a),b=k=null)},Ga,cb,Hb,$a,ab,bb,va=u.createElement("div"),Gb="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";va.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";Ga=va.getElementsByTagName("a")[0];Ga.style.cssText="float:left;opacity:.5";s.opacity=/^0.5/.test(Ga.style.opacity);s.cssFloat=!!Ga.style.cssFloat;va.style.backgroundClip="content-box";va.cloneNode(!0).style.backgroundClip="";s.clearCloneStyle="content-box"===
va.style.backgroundClip;Ga=va=null;d.extend(s,{reliableHiddenOffsets:function(){if(null!=cb)return cb;var a,b,c;b=u.createElement("div");var d=u.getElementsByTagName("body")[0];if(d)return b.setAttribute("className","t"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=u.createElement("div"),a.style.cssText=Gb,d.appendChild(a).appendChild(b),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",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",cb=c&&0===b[0].offsetHeight,d.removeChild(a),cb},boxSizing:function(){null==Hb&&Ib();return Hb},boxSizingReliable:function(){null==$a&&Ib();return $a},pixelPosition:function(){null==ab&&Ib();return ab},reliableMarginRight:function(){var a,b,d,g;if(null==bb&&c.getComputedStyle){a=u.getElementsByTagName("body")[0];if(!a)return;b=u.createElement("div");d=u.createElement("div");b.style.cssText=Gb;a.appendChild(b).appendChild(d);g=
d.appendChild(u.createElement("div"));g.style.cssText=d.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";g.style.marginRight=g.style.width="0";d.style.width="1px";bb=!parseFloat((c.getComputedStyle(g,null)||{}).marginRight);a.removeChild(b)}return bb}});d.swap=function(a,b,c,d){var g,f={};for(g in b)f[g]=a.style[g],a.style[g]=b[g];c=c.apply(a,d||[]);for(g in b)a.style[g]=f[g];return c};var Jb=/alpha\([^)]*\)/i,
Hd=/opacity\s*=\s*([^)]*)/,Id=/^(none|table(?!-c[ea]).+)/,Zc=RegExp("^("+Wa+")(.*)$","i"),Jd=RegExp("^([+-])=("+Wa+")","i"),Kd={position:"absolute",visibility:"hidden",display:"block"},Jc={letterSpacing:0,fontWeight:400},Zb=["Webkit","O","Moz","ms"];d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ia(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":s.cssFloat?
"cssFloat":"styleFloat"},style:function(a,b,c,g){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var f,h,n,j=d.camelCase(b),l=a.style;b=d.cssProps[j]||(d.cssProps[j]=Yb(l,j));n=d.cssHooks[b]||d.cssHooks[j];if(void 0!==c){h=typeof c;if("string"===h&&(f=Jd.exec(c)))c=(f[1]+1)*f[2]+parseFloat(d.css(a,b)),h="number";if(!(null==c||c!==c))if("number"===h&&!d.cssNumber[j]&&(c+="px"),!s.clearCloneStyle&&(""===c&&0===b.indexOf("background"))&&(l[b]="inherit"),!n||!("set"in n)||void 0!==(c=n.set(a,c,g)))try{l[b]=
"",l[b]=c}catch(t){}}else return n&&"get"in n&&void 0!==(f=n.get(a,!1,g))?f:l[b]}},css:function(a,b,c,g){var f,h;h=d.camelCase(b);b=d.cssProps[h]||(d.cssProps[h]=Yb(a.style,h));(h=d.cssHooks[b]||d.cssHooks[h])&&"get"in h&&(f=h.get(a,!0,c));void 0===f&&(f=ia(a,b,g));"normal"===f&&b in Jc&&(f=Jc[b]);return""===c||c?(a=parseFloat(f),!0===c||d.isNumeric(a)?a||0:f):f}});d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,g){if(c)return 0===a.offsetWidth&&Id.test(d.css(a,"display"))?
d.swap(a,Kd,function(){return cc(a,b,g)}):cc(a,b,g)},set:function(a,c,g){var f=g&&ha(a);return ac(a,c,g?bc(a,b,g,s.boxSizing()&&"border-box"===d.css(a,"boxSizing",!1,f),f):0)}}});s.opacity||(d.cssHooks.opacity={get:function(a,b){return Hd.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,g=a.currentStyle,f=d.isNumeric(b)?"alpha(opacity="+100*b+")":"",h=g&&g.filter||c.filter||"";c.zoom=1;if((1<=b||""===b)&&""===
d.trim(h.replace(Jb,""))&&c.removeAttribute)if(c.removeAttribute("filter"),""===b||g&&!g.filter)return;c.filter=Jb.test(h)?h.replace(Jb,f):h+" "+f}});d.cssHooks.marginRight=Xb(s.reliableMarginRight,function(a,b){if(b)return d.swap(a,{display:"inline-block"},ia,[a,"marginRight"])});d.each({margin:"",padding:"",border:"Width"},function(a,b){d.cssHooks[a+b]={expand:function(c){var d=0,g={};for(c="string"===typeof c?c.split(" "):[c];4>d;d++)g[a+ga[d]+b]=c[d]||c[d-2]||c[0];return g}};Ic.test(a)||(d.cssHooks[a+
b].set=ac)});d.fn.extend({css:function(a,b){return ma(this,function(a,b,e){var c,g={},f=0;if(d.isArray(b)){e=ha(a);for(c=b.length;f<c;f++)g[b[f]]=d.css(a,b[f],!1,e);return g}return void 0!==e?d.style(a,b,e):d.css(a,b)},a,b,1<arguments.length)},show:function(){return $b(this,!0)},hide:function(){return $b(this)},toggle:function(a){return"boolean"===typeof a?a?this.show():this.hide():this.each(function(){za(this)?d(this).show():d(this).hide()})}});d.Tween=G;G.prototype={constructor:G,init:function(a,
b,c,g,f,h){this.elem=a;this.prop=c;this.easing=f||"swing";this.options=b;this.start=this.now=this.cur();this.end=g;this.unit=h||(d.cssNumber[c]?"":"px")},cur:function(){var a=G.propHooks[this.prop];return a&&a.get?a.get(this):G.propHooks._default.get(this)},run:function(a){var b,c=G.propHooks[this.prop];this.pos=this.options.duration?b=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,
this.now,this);c&&c.set?c.set(this):G.propHooks._default.set(this);return this}};G.prototype.init.prototype=G.prototype;G.propHooks={_default:{get:function(a){if(null!=a.elem[a.prop]&&(!a.elem.style||null==a.elem.style[a.prop]))return a.elem[a.prop];a=d.css(a.elem,a.prop,"");return!a||"auto"===a?0:a},set:function(a){if(d.fx.step[a.prop])d.fx.step[a.prop](a);else a.elem.style&&(null!=a.elem.style[d.cssProps[a.prop]]||d.cssHooks[a.prop])?d.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};G.propHooks.scrollTop=
G.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};d.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};d.fx=G.prototype.init;d.fx.step={};var pa,db,Ld=/^(?:toggle|show|hide)$/,Kc=RegExp("^(?:([+-])=|)("+Wa+")([a-z%]*)$","i"),Md=/queueHooks$/,Ka=[function(a,b,c){var g,f,h,n,j,l,t=this,r={},m=a.style,p=a.nodeType&&za(a),B=d._data(a,"fxshow");c.queue||(n=d._queueHooks(a,"fx"),null==n.unqueued&&(n.unqueued=0,j=n.empty.fire,
n.empty.fire=function(){n.unqueued||j()}),n.unqueued++,t.always(function(){t.always(function(){n.unqueued--;d.queue(a,"fx").length||n.empty.fire()})}));if(1===a.nodeType&&("height"in b||"width"in b))c.overflow=[m.overflow,m.overflowX,m.overflowY],f=d.css(a,"display"),l=Vb(a.nodeName),"none"===f&&(f=l),"inline"===f&&"none"===d.css(a,"float")&&(!s.inlineBlockNeedsLayout||"inline"===l?m.display="inline-block":m.zoom=1);c.overflow&&(m.overflow="hidden",s.shrinkWrapBlocks()||t.always(function(){m.overflow=
c.overflow[0];m.overflowX=c.overflow[1];m.overflowY=c.overflow[2]}));for(g in b)if(f=b[g],Ld.exec(f)){delete b[g];h=h||"toggle"===f;if(f===(p?"hide":"show"))if("show"===f&&B&&void 0!==B[g])p=!0;else continue;r[g]=B&&B[g]||d.style(a,g)}if(!d.isEmptyObject(r))for(g in B?"hidden"in B&&(p=B.hidden):B=d._data(a,"fxshow",{}),h&&(B.hidden=!p),p?d(a).show():t.done(function(){d(a).hide()}),t.done(function(){var b;d._removeData(a,"fxshow");for(b in r)d.style(a,b,r[b])}),r)b=ec(p?B[g]:0,g,t),g in B||(B[g]=b.start,
p&&(b.end=b.start,b.start="width"===g||"height"===g?1:0))}],Aa={"*":[function(a,b){var c=this.createTween(a,b),g=c.cur(),f=Kc.exec(b),h=f&&f[3]||(d.cssNumber[a]?"":"px"),n=(d.cssNumber[a]||"px"!==h&&+g)&&Kc.exec(d.css(c.elem,a)),j=1,l=20;if(n&&n[3]!==h){h=h||n[3];f=f||[];n=+g||1;do j=j||".5",n/=j,d.style(c.elem,a,n+h);while(j!==(j=c.cur()/g)&&1!==j&&--l)}f&&(n=c.start=+n||+g||0,c.unit=h,c.end=f[1]?n+(f[1]+1)*f[2]:+f[2]);return c}]};d.Animation=d.extend(fc,{tweener:function(a,b){d.isFunction(a)?(b=
a,a=["*"]):a=a.split(" ");for(var c,g=0,f=a.length;g<f;g++)c=a[g],Aa[c]=Aa[c]||[],Aa[c].unshift(b)},prefilter:function(a,b){b?Ka.unshift(a):Ka.push(a)}});d.speed=function(a,b,c){var g=a&&"object"===typeof a?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};g.duration=d.fx.off?0:"number"===typeof g.duration?g.duration:g.duration in d.fx.speeds?d.fx.speeds[g.duration]:d.fx.speeds._default;if(null==g.queue||!0===g.queue)g.queue="fx";g.old=g.complete;
g.complete=function(){d.isFunction(g.old)&&g.old.call(this);g.queue&&d.dequeue(this,g.queue)};return g};d.fn.extend({fadeTo:function(a,b,c,d){return this.filter(za).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,g){var f=d.isEmptyObject(a),h=d.speed(b,c,g);b=function(){var b=fc(this,d.extend({},a),h);(f||d._data(this,"finish"))&&b.stop(!0)};b.finish=b;return f||!1===h.queue?this.each(b):this.queue(h.queue,b)},stop:function(a,b,c){var g=function(a){var b=a.stop;delete a.stop;
b(c)};"string"!==typeof a&&(c=b,b=a,a=void 0);b&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=d.timers,h=d._data(this);if(e)h[e]&&h[e].stop&&g(h[e]);else for(e in h)h[e]&&(h[e].stop&&Md.test(e))&&g(h[e]);for(e=f.length;e--;)if(f[e].elem===this&&(null==a||f[e].queue===a))f[e].anim.stop(c),b=!1,f.splice(e,1);(b||!c)&&d.dequeue(this,a)})},finish:function(a){!1!==a&&(a=a||"fx");return this.each(function(){var b,c=d._data(this),g=c[a+"queue"];b=c[a+"queueHooks"];
var f=d.timers,h=g?g.length:0;c.finish=!0;d.queue(this,a,[]);b&&b.stop&&b.stop.call(this,!0);for(b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<h;b++)g[b]&&g[b].finish&&g[b].finish.call(this);delete c.finish})}});d.each(["toggle","show","hide"],function(a,b){var c=d.fn[b];d.fn[b]=function(a,d,g){return null==a||"boolean"===typeof a?c.apply(this,arguments):this.animate(Ja(b,!0),a,d,g)}});d.each({slideDown:Ja("show"),slideUp:Ja("hide"),slideToggle:Ja("toggle"),
fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});d.timers=[];d.fx.tick=function(){var a,b=d.timers,c=0;for(pa=d.now();c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||d.fx.stop();pa=void 0};d.fx.timer=function(a){d.timers.push(a);a()?d.fx.start():d.timers.pop()};d.fx.interval=13;d.fx.start=function(){db||(db=setInterval(d.fx.tick,d.fx.interval))};d.fx.stop=function(){clearInterval(db);
db=null};d.fx.speeds={slow:600,fast:200,_default:400};d.fn.delay=function(a,b){a=d.fx?d.fx.speeds[a]||a:a;return this.queue(b||"fx",function(b,e){var c=setTimeout(b,a);e.stop=function(){clearTimeout(c)}})};var eb,da,Kb,Lb,Ha=u.createElement("div");Ha.setAttribute("className","t");Ha.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";eb=Ha.getElementsByTagName("a")[0];Kb=u.createElement("select");Lb=Kb.appendChild(u.createElement("option"));da=Ha.getElementsByTagName("input")[0];
eb.style.cssText="top:1px";s.getSetAttribute="t"!==Ha.className;s.style=/top/.test(eb.getAttribute("style"));s.hrefNormalized="/a"===eb.getAttribute("href");s.checkOn=!!da.value;s.optSelected=Lb.selected;s.enctype=!!u.createElement("form").enctype;Kb.disabled=!0;s.optDisabled=!Lb.disabled;da=u.createElement("input");da.setAttribute("value","");s.input=""===da.getAttribute("value");da.value="t";da.setAttribute("type","radio");s.radioValue="t"===da.value;var Nd=/\r/g;d.fn.extend({val:function(a){var b,
c,g,f=this[0];if(arguments.length)return g=d.isFunction(a),this.each(function(c){if(1===this.nodeType&&(c=g?a.call(this,c,d(this).val()):a,null==c?c="":"number"===typeof c?c+="":d.isArray(c)&&(c=d.map(c,function(a){return null==a?"":a+""})),b=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],!b||!("set"in b)||void 0===b.set(this,c,"value")))this.value=c});if(f){if((b=d.valHooks[f.type]||d.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(f,"value")))return c;c=f.value;
return"string"===typeof c?c.replace(Nd,""):null==c?"":c}}});d.extend({valHooks:{option:{get:function(a){var b=d.find.attr(a,"value");return null!=b?b:d.text(a)}},select:{get:function(a){for(var b,c=a.options,g=a.selectedIndex,f=(a="select-one"===a.type||0>g)?null:[],h=a?g+1:c.length,n=0>g?h:a?g:0;n<h;n++)if(b=c[n],(b.selected||n===g)&&(s.optDisabled?!b.disabled:null===b.getAttribute("disabled"))&&(!b.parentNode.disabled||!d.nodeName(b.parentNode,"optgroup"))){b=d(b).val();if(a)return b;f.push(b)}return f},
set:function(a,b){for(var c,g,f=a.options,h=d.makeArray(b),n=f.length;n--;)if(g=f[n],0<=d.inArray(d.valHooks.option.get(g),h))try{g.selected=c=!0}catch(j){g.scrollHeight}else g.selected=!1;c||(a.selectedIndex=-1);return f}}}});d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(a,b){if(d.isArray(b))return a.checked=0<=d.inArray(d(a).val(),b)}};s.checkOn||(d.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var wa,Lc,ea=d.expr.attrHandle,Mb=/^(?:checked|selected)$/i,
na=s.getSetAttribute,fb=s.input;d.fn.extend({attr:function(a,b){return ma(this,d.attr,a,b,1<arguments.length)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})}});d.extend({attr:function(a,b,c){var g,f,h=a.nodeType;if(a&&!(3===h||8===h||2===h)){if(typeof a.getAttribute===N)return d.prop(a,b,c);if(1!==h||!d.isXMLDoc(a))b=b.toLowerCase(),g=d.attrHooks[b]||(d.expr.match.bool.test(b)?Lc:wa);if(void 0!==c)if(null===c)d.removeAttr(a,b);else{if(g&&"set"in g&&void 0!==(f=g.set(a,
c,b)))return f;a.setAttribute(b,c+"");return c}else{if(g&&"get"in g&&null!==(f=g.get(a,b)))return f;f=d.find.attr(a,b);return null==f?void 0:f}}},removeAttr:function(a,b){var c,g,f=0,h=b&&b.match(T);if(h&&1===a.nodeType)for(;c=h[f++];)g=d.propFix[c]||c,d.expr.match.bool.test(c)?fb&&na||!Mb.test(c)?a[g]=!1:a[d.camelCase("default-"+c)]=a[g]=!1:d.attr(a,c,""),a.removeAttribute(na?c:g)},attrHooks:{type:{set:function(a,b){if(!s.radioValue&&"radio"===b&&d.nodeName(a,"input")){var c=a.value;a.setAttribute("type",
b);c&&(a.value=c);return b}}}}});Lc={set:function(a,b,c){!1===b?d.removeAttr(a,c):fb&&na||!Mb.test(c)?a.setAttribute(!na&&d.propFix[c]||c,c):a[d.camelCase("default-"+c)]=a[c]=!0;return c}};d.each(d.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ea[b]||d.find.attr;ea[b]=fb&&na||!Mb.test(b)?function(a,b,e){var d,g;e||(g=ea[b],ea[b]=d,d=null!=c(a,b,e)?b.toLowerCase():null,ea[b]=g);return d}:function(a,b,c){if(!c)return a[d.camelCase("default-"+b)]?b.toLowerCase():null}});if(!fb||!na)d.attrHooks.value=
{set:function(a,b,c){if(d.nodeName(a,"input"))a.defaultValue=b;else return wa&&wa.set(a,b,c)}};na||(wa={set:function(a,b,c){var d=a.getAttributeNode(c);d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c));d.value=b+="";if("value"===c||b===a.getAttribute(c))return b}},ea.id=ea.name=ea.coords=function(a,b,c){var d;if(!c)return(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},d.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);if(c&&c.specified)return c.value},set:wa.set},d.attrHooks.contenteditable=
{set:function(a,b,c){wa.set(a,""===b?!1:b,c)}},d.each(["width","height"],function(a,b){d.attrHooks[b]={set:function(a,c){if(""===c)return a.setAttribute(b,"auto"),c}}}));s.style||(d.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var Od=/^(?:input|select|textarea|button|object)$/i,Pd=/^(?:a|area)$/i;d.fn.extend({prop:function(a,b){return ma(this,d.prop,a,b,1<arguments.length)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=
void 0,delete this[a]}catch(b){}})}});d.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var g,f,h;h=a.nodeType;if(a&&!(3===h||8===h||2===h)){if(h=1!==h||!d.isXMLDoc(a))b=d.propFix[b]||b,f=d.propHooks[b];return void 0!==c?f&&"set"in f&&void 0!==(g=f.set(a,c,b))?g:a[b]=c:f&&"get"in f&&null!==(g=f.get(a,b))?g:a[b]}},propHooks:{tabIndex:{get:function(a){var b=d.find.attr(a,"tabindex");return b?parseInt(b,10):Od.test(a.nodeName)||Pd.test(a.nodeName)&&a.href?0:-1}}}});s.hrefNormalized||
d.each(["href","src"],function(a,b){d.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}});s.optSelected||(d.propHooks.selected={get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null}});d.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){d.propFix[this.toLowerCase()]=this});s.enctype||(d.propFix.enctype="encoding");var Nb=/[\t\r\n\f]/g;d.fn.extend({addClass:function(a){var b,
c,g,f,h,n=0,j=this.length;b="string"===typeof a&&a;if(d.isFunction(a))return this.each(function(b){d(this).addClass(a.call(this,b,this.className))});if(b)for(b=(a||"").match(T)||[];n<j;n++)if(c=this[n],g=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Nb," "):" ")){for(h=0;f=b[h++];)0>g.indexOf(" "+f+" ")&&(g+=f+" ");g=d.trim(g);c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,g,f,h,n=0,j=this.length;b=0===arguments.length||"string"===typeof a&&a;if(d.isFunction(a))return this.each(function(b){d(this).removeClass(a.call(this,
b,this.className))});if(b)for(b=(a||"").match(T)||[];n<j;n++)if(c=this[n],g=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Nb," "):"")){for(h=0;f=b[h++];)for(;0<=g.indexOf(" "+f+" ");)g=g.replace(" "+f+" "," ");g=a?d.trim(g):"";c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"===typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):d.isFunction(a)?this.each(function(c){d(this).toggleClass(a.call(this,c,this.className,b),b)}):
this.each(function(){if("string"===c)for(var b,e=0,g=d(this),f=a.match(T)||[];b=f[e++];)g.hasClass(b)?g.removeClass(b):g.addClass(b);else if(c===N||"boolean"===c)this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===a?"":d._data(this,"__className__")||""})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(1===this[b].nodeType&&0<=(" "+this[b].className+" ").replace(Nb," ").indexOf(a))return!0;return!1}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,b){d.fn[b]=function(a,c){return 0<arguments.length?this.on(b,null,a,c):this.trigger(b)}});d.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var Ob=d.now(),Pb=/\?/,Qd=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
d.parseJSON=function(a){if(c.JSON&&c.JSON.parse)return c.JSON.parse(a+"");var b,g=null,f=d.trim(a+"");return f&&!d.trim(f.replace(Qd,function(a,c,d,f){b&&c&&(g=0);if(0===g)return a;b=d||c;g+=!f-!d;return""}))?Function("return "+f)():d.error("Invalid JSON: "+a)};d.parseXML=function(a){var b,g;if(!a||"string"!==typeof a)return null;try{c.DOMParser?(g=new DOMParser,b=g.parseFromString(a,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(f){b=void 0}(!b||!b.documentElement||
b.getElementsByTagName("parsererror").length)&&d.error("Invalid XML: "+a);return b};var oa,fa,Rd=/#.*$/,Mc=/([?&])_=[^&]*/,Sd=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Td=/^(?:GET|HEAD)$/,Ud=/^\/\//,Nc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Oc={},kb={},Pc="*/".concat("*");try{fa=location.href}catch(de){fa=u.createElement("a"),fa.href="",fa=fa.href}oa=Nc.exec(fa.toLowerCase())||[];d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fa,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(oa[1]),
global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?lb(lb(a,
d.ajaxSettings),b):lb(d.ajaxSettings,a)},ajaxPrefilter:gc(Oc),ajaxTransport:gc(kb),ajax:function(a,b){function c(a,b,e,g){var f,k,r,q;q=b;if(2!==y){y=2;j&&clearTimeout(j);t=void 0;n=g||"";A.readyState=0<a?4:0;g=200<=a&&300>a||304===a;if(e){r=m;for(var u=A,K,w,z,x,C=r.contents,F=r.dataTypes;"*"===F[0];)F.shift(),void 0===w&&(w=r.mimeType||u.getResponseHeader("Content-Type"));if(w)for(x in C)if(C[x]&&C[x].test(w)){F.unshift(x);break}if(F[0]in e)z=F[0];else{for(x in e){if(!F[0]||r.converters[x+" "+F[0]]){z=
x;break}K||(K=x)}z=z||K}z?(z!==F[0]&&F.unshift(z),r=e[z]):r=void 0}a:{e=m;K=r;w=A;z=g;var H,D,G,u={},C=e.dataTypes.slice();if(C[1])for(D in e.converters)u[D.toLowerCase()]=e.converters[D];for(x=C.shift();x;)if(e.responseFields[x]&&(w[e.responseFields[x]]=K),!G&&(z&&e.dataFilter)&&(K=e.dataFilter(K,e.dataType)),G=x,x=C.shift())if("*"===x)x=G;else if("*"!==G&&G!==x){D=u[G+" "+x]||u["* "+x];if(!D)for(H in u)if(r=H.split(" "),r[1]===x&&(D=u[G+" "+r[0]]||u["* "+r[0]])){!0===D?D=u[H]:!0!==u[H]&&(x=r[0],
C.unshift(r[1]));break}if(!0!==D)if(D&&e["throws"])K=D(K);else try{K=D(K)}catch(I){r={state:"parsererror",error:D?I:"No conversion from "+G+" to "+x};break a}}r={state:"success",data:K}}if(g)m.ifModified&&((q=A.getResponseHeader("Last-Modified"))&&(d.lastModified[h]=q),(q=A.getResponseHeader("etag"))&&(d.etag[h]=q)),204===a||"HEAD"===m.type?q="nocontent":304===a?q="notmodified":(q=r.state,f=r.data,k=r.error,g=!k);else if(k=q,a||!q)q="error",0>a&&(a=0);A.status=a;A.statusText=(b||q)+"";g?s.resolveWith(p,
[f,q,A]):s.rejectWith(p,[A,q,k]);A.statusCode(v);v=void 0;l&&B.trigger(g?"ajaxSuccess":"ajaxError",[A,m,g?f:k]);E.fireWith(p,[A,q]);l&&(B.trigger("ajaxComplete",[A,m]),--d.active||d.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var g,f,h,n,j,l,t,r,m=d.ajaxSetup({},b),p=m.context||m,B=m.context&&(p.nodeType||p.jquery)?d(p):d.event,s=d.Deferred(),E=d.Callbacks("once memory"),v=m.statusCode||{},u={},w={},y=0,z="canceled",A={readyState:0,getResponseHeader:function(a){var b;if(2===
y){if(!r)for(r={};b=Sd.exec(n);)r[b[1].toLowerCase()]=b[2];b=r[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===y?n:null},setRequestHeader:function(a,b){var c=a.toLowerCase();y||(a=w[c]=w[c]||a,u[a]=b);return this},overrideMimeType:function(a){y||(m.mimeType=a);return this},statusCode:function(a){var b;if(a)if(2>y)for(b in a)v[b]=[v[b],a[b]];else A.always(a[A.status]);return this},abort:function(a){a=a||z;t&&t.abort(a);c(0,a);return this}};s.promise(A).complete=
E.add;A.success=A.done;A.error=A.fail;m.url=((a||m.url||fa)+"").replace(Rd,"").replace(Ud,oa[1]+"//");m.type=b.method||b.type||m.method||m.type;m.dataTypes=d.trim(m.dataType||"*").toLowerCase().match(T)||[""];null==m.crossDomain&&(g=Nc.exec(m.url.toLowerCase()),m.crossDomain=!(!g||!(g[1]!==oa[1]||g[2]!==oa[2]||(g[3]||("http:"===g[1]?"80":"443"))!==(oa[3]||("http:"===oa[1]?"80":"443")))));m.data&&(m.processData&&"string"!==typeof m.data)&&(m.data=d.param(m.data,m.traditional));hc(Oc,m,b,A);if(2===
y)return A;(l=m.global)&&0===d.active++&&d.event.trigger("ajaxStart");m.type=m.type.toUpperCase();m.hasContent=!Td.test(m.type);h=m.url;m.hasContent||(m.data&&(h=m.url+=(Pb.test(h)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=Mc.test(h)?h.replace(Mc,"$1_="+Ob++):h+(Pb.test(h)?"&":"?")+"_="+Ob++));m.ifModified&&(d.lastModified[h]&&A.setRequestHeader("If-Modified-Since",d.lastModified[h]),d.etag[h]&&A.setRequestHeader("If-None-Match",d.etag[h]));(m.data&&m.hasContent&&!1!==m.contentType||b.contentType)&&
A.setRequestHeader("Content-Type",m.contentType);A.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Pc+"; q=0.01":""):m.accepts["*"]);for(f in m.headers)A.setRequestHeader(f,m.headers[f]);if(m.beforeSend&&(!1===m.beforeSend.call(p,A,m)||2===y))return A.abort();z="abort";for(f in{success:1,error:1,complete:1})A[f](m[f]);if(t=hc(kb,m,b,A)){A.readyState=1;l&&B.trigger("ajaxSend",[A,m]);m.async&&0<m.timeout&&(j=setTimeout(function(){A.abort("timeout")},
m.timeout));try{y=1,t.send(u,c)}catch(x){if(2>y)c(-1,x);else throw x;}}else c(-1,"No Transport");return A},getJSON:function(a,b,c){return d.get(a,b,c,"json")},getScript:function(a,b){return d.get(a,void 0,b,"script")}});d.each(["get","post"],function(a,b){d[b]=function(a,c,g,f){d.isFunction(c)&&(f=f||g,g=c,c=void 0);return d.ajax({url:a,type:b,dataType:f,data:c,success:g})}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.on(b,
a)}});d._evalUrl=function(a){return d.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};d.fn.extend({wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(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 d.isFunction(a)?
this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=d.isFunction(a);return this.each(function(c){d(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}});d.expr.filters.hidden=function(a){return 0>=a.offsetWidth&&0>=a.offsetHeight||!s.reliableHiddenOffsets()&&"none"===(a.style&&
a.style.display||d.css(a,"display"))};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)};var Vd=/%20/g,ad=/\[\]$/,Qc=/\r?\n/g,Wd=/^(?:submit|button|image|reset|file)$/i,Xd=/^(?:input|select|textarea|keygen)/i;d.param=function(a,b){var c,g=[],f=function(a,b){b=d.isFunction(b)?b():null==b?"":b;g[g.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};void 0===b&&(b=d.ajaxSettings&&d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,
this.value)});else for(c in a)mb(c,a[c],b,f);return g.join("&").replace(Vd,"+")};d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=d.prop(this,"elements");return a?d.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!d(this).is(":disabled")&&Xd.test(this.nodeName)&&!Wd.test(a)&&(this.checked||!ib.test(a))}).map(function(a,b){var c=d(this).val();return null==c?null:d.isArray(c)?d.map(c,function(a){return{name:b.name,
value:a.replace(Qc,"\r\n")}}):{name:b.name,value:c.replace(Qc,"\r\n")}}).get()}});d.ajaxSettings.xhr=void 0!==c.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&ic()))a:{try{a=new c.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:ic;d.ajaxSettings.xhr=void 0===c.ActiveXObject?nb:function(){return(this.url==u.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&
nb()||nb(1)};var Yd=0,gb={},hb=d.ajaxSettings.xhr();if(c.ActiveXObject)d(c).on("unload",function(){for(var a in gb)gb[a](void 0,!0)});s.cors=!!hb&&"withCredentials"in hb;(hb=s.ajax=!!hb)&&d.ajaxTransport(function(a){if(!a.crossDomain||s.cors){var b;return{send:function(c,g){var f,h=a.xhr(),n=++Yd;console.log("xhr.open async="+a.async+" url="+a.url);h.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(f in a.xhrFields)h[f]=a.xhrFields[f];a.mimeType&&h.overrideMimeType&&h.overrideMimeType(a.mimeType);
!a.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");for(f in c)void 0!==c[f]&&h.setRequestHeader(f,c[f]+"");h.send(a.hasContent&&a.data||null);b=function(c,f){var k,j,l;if(b&&(f||4===h.readyState))if(delete gb[n],b=void 0,h.onreadystatechange=d.noop,f)4!==h.readyState&&h.abort();else{l={};k=h.status;"string"===typeof h.responseText&&(l.text=h.responseText);try{j=h.statusText}catch(m){j=""}!k&&a.isLocal&&!a.crossDomain?k=l.text?200:404:1223===k&&(k=204)}l&&g(k,j,l,h.getAllResponseHeaders())};
a.async?4===h.readyState?setTimeout(b):h.onreadystatechange=gb[n]=b:b()},abort:function(){b&&b(void 0,!0)}}}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});d.ajaxTransport("script",function(a){if(a.crossDomain){var b,
c=u.head||d("head")[0]||u.documentElement;return{send:function(g,d){b=u.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||d(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(void 0,!0)}}}});var Rc=[],Qb=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",
jsonpCallback:function(){var a=Rc.pop()||d.expando+"_"+Ob++;this[a]=!0;return a}});d.ajaxPrefilter("json jsonp",function(a,b,g){var f,h,n,j=!1!==a.jsonp&&(Qb.test(a.url)?"url":"string"===typeof a.data&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qb.test(a.data)&&"data");if(j||"jsonp"===a.dataTypes[0])return f=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,j?a[j]=a[j].replace(Qb,"$1"+f):!1!==a.jsonp&&(a.url+=(Pb.test(a.url)?"&":"?")+a.jsonp+"="+
f),a.converters["script json"]=function(){n||d.error(f+" was not called");return n[0]},a.dataTypes[0]="json",h=c[f],c[f]=function(){n=arguments},g.always(function(){c[f]=h;a[f]&&(a.jsonpCallback=b.jsonpCallback,Rc.push(f));n&&d.isFunction(h)&&h(n[0]);n=h=void 0}),"script"});d.parseHTML=function(a,b,c){if(!a||"string"!==typeof a)return null;"boolean"===typeof b&&(c=b,b=!1);b=b||u;var g=xc.exec(a);c=!c&&[];if(g)return[b.createElement(g[1])];g=d.buildFragment([a],b,c);c&&c.length&&d(c).remove();return d.merge([],
g.childNodes)};var Sc=d.fn.load;d.fn.load=function(a,b,c){if("string"!==typeof a&&Sc)return Sc.apply(this,arguments);var g,f,h,n=this,j=a.indexOf(" ");0<=j&&(g=a.slice(j,a.length),a=a.slice(0,j));d.isFunction(b)?(c=b,b=void 0):b&&"object"===typeof b&&(h="POST");0<n.length&&d.ajax({url:a,type:h,dataType:"html",data:b}).done(function(a){f=arguments;n.html(g?d("<div>").append(d.parseHTML(a)).find(g):a)}).complete(c&&function(a,b){n.each(c,f||[a.responseText,b,a])});return this};d.expr.filters.animated=
function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};var Tc=c.document.documentElement;d.offset={setOffset:function(a,b,c){var g,f,h,n=d.css(a,"position"),j=d(a),l={};"static"===n&&(a.style.position="relative");h=j.offset();f=d.css(a,"top");g=d.css(a,"left");("absolute"===n||"fixed"===n)&&-1<d.inArray("auto",[f,g])?(g=j.position(),f=g.top,g=g.left):(f=parseFloat(f)||0,g=parseFloat(g)||0);d.isFunction(b)&&(b=b.call(a,c,h));null!=b.top&&(l.top=b.top-h.top+f);null!=b.left&&(l.left=
b.left-h.left+g);"using"in b?b.using.call(a,l):j.css(l)}};d.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){d.offset.setOffset(this,a,b)});var b,c,g={top:0,left:0},f=(c=this[0])&&c.ownerDocument;if(f){b=f.documentElement;if(!d.contains(b,c))return g;typeof c.getBoundingClientRect!==N&&(g=c.getBoundingClientRect());c=jc(f);return{top:g.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:g.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}}},position:function(){if(this[0]){var a,
b,c={top:0,left:0},g=this[0];"fixed"===d.css(g,"position")?b=g.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),d.nodeName(a[0],"html")||(c=a.offset()),c.top+=d.css(a[0],"borderTopWidth",!0),c.left+=d.css(a[0],"borderLeftWidth",!0));return{top:b.top-c.top-d.css(g,"marginTop",!0),left:b.left-c.left-d.css(g,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||Tc;a&&!d.nodeName(a,"html")&&"static"===d.css(a,"position");)a=a.offsetParent;return a||
Tc})}});d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);d.fn[a]=function(g){return ma(this,function(a,g,f){var h=jc(a);if(void 0===f)return h?b in h?h[b]:h.document.documentElement[g]:a[g];h?h.scrollTo(!c?f:d(h).scrollLeft(),c?f:d(h).scrollTop()):a[g]=f},a,g,arguments.length,null)}});d.each(["top","left"],function(a,b){d.cssHooks[b]=Xb(s.pixelPosition,function(a,c){if(c)return c=ia(a,b),Ia.test(c)?d(a).position()[b]+"px":c})});d.each({Height:"height",Width:"width"},
function(a,b){d.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,g){d.fn[g]=function(g,f){var h=arguments.length&&(c||"boolean"!==typeof g),n=c||(!0===g||!0===f?"margin":"border");return ma(this,function(b,c,g){return d.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(c=b.documentElement,Math.max(b.body["scroll"+a],c["scroll"+a],b.body["offset"+a],c["offset"+a],c["client"+a])):void 0===g?d.css(b,c,n):d.style(b,c,g,n)},b,h?g:void 0,h,null)}})});d.fn.size=function(){return this.length};
d.fn.andSelf=d.fn.addBack;"function"===typeof define&&define.amd&&define("jquery",[],function(){return d});var Zd=c.jQuery,$d=c.$;d.noConflict=function(a){c.$===d&&(c.$=$d);a&&c.jQuery===d&&(c.jQuery=Zd);return d};typeof m===N&&(c.jQuery=c.$=d);return d});
(function(c){function m(c){try{return c?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest}catch(j){}}c.ajaxSettings.xhr=void 0===window.ActiveXObject?m:function(){return(this.url==document.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&m()||m(1)};c.ajaxTransport("+script",function(c){var j,l=document.head||jQuery("head")[0]||document.documentElement;return{send:function(m,p){j=document.createElement("script");c.scriptCharset&&
(j.charset=c.scriptCharset);j.src=c.url;j.onload=j.onreadystatechange=function(c,h){if(h||!j.readyState||/loaded|complete/.test(j.readyState))j.onload=j.onreadystatechange=null,j.parentNode&&j.parentNode.removeChild(j),j=null,h||p(200,"success")};l.insertBefore(j,l.firstChild)},abort:function(){if(j)j.onload(void 0,!0)}}});c.extend(c.support,{iecors:!!window.XDomainRequest});c.support.iecors?c.ajaxTransport(function(c){return{send:function(j,l){var m=new window.XDomainRequest;m.onload=function(){l(200,
"OK",{text:m.responseText},{"Content-Type":m.contentType})};c.xhrFields&&(m.onerror=c.xhrFields.error,m.ontimeout=c.xhrFields.timeout);m.open(c.type,c.url);m.send(c.hasContent&&c.data||null)},abort:function(){xdr.abort()}}}):(c.ajaxSetup({accepts:{binary:"text/plain; charset=x-user-defined"},responseFields:{binary:"response"}}),c.ajaxTransport("binary",function(c){var j;return{send:function(l,m){var p=c.xhr();console.log("xhr.open binary async="+c.async+" url="+c.url);p.open(c.type,c.url,c.async);
var v=!1;try{p.hasOwnProperty("responseType")&&(p.responseType="arraybuffer",v=!0)}catch(w){}try{!v&&p.overrideMimeType&&p.overrideMimeType("text/plain; charset=x-user-defined")}catch(b){}!c.crossDomain&&!l["X-Requested-With"]&&(l["X-Requested-With"]="XMLHttpRequest");try{for(var g in l)p.setRequestHeader(g,l[g])}catch(f){}p.send(c.hasContent&&c.data||null);j=function(){var b=p.status,g="",f=p.getAllResponseHeaders(),l={};try{if(j&&4===p.readyState){j=void 0;try{l.text="string"===typeof p.responseText?
p.responseText:null}catch(v){}try{l.binary=p.response}catch(w){}try{g=p.statusText}catch(jb){g=""}!b&&c.isLocal&&!c.crossDomain?b=l.text?200:404:1223===b&&(b=204);m(b,g,l,f)}}catch(xa){alert(xa),m(-1,xa)}};c.async?4===p.readyState?setTimeout(j):p.onreadystatechange=j:j()},abort:function(){}}}))})(jQuery);
(function(c,m,h,j){function l(h,l){function v(b){c(w).each(function(){self.Jmol&&(0<=l.indexOf("mouseup")||0<=l.indexOf("touchend"))&&Jmol._setMouseOwner(null);var f=c(this);this!==b.target&&!f.has(b.target).length&&f.triggerHandler(l,[b.target,b])})}l=l||h+j;var w=c(),b=h+"."+l+"-special-event";c.event.special[l]={setup:function(){w=w.add(this);1===w.length&&c(m).bind(b,v)},teardown:function(){self.Jmol&&Jmol._setMouseOwner(null);w=w.not(this);0===w.length&&c(m).unbind(b)},add:function(b){var c=
b.handler;b.handler=function(b,g){b.target=g;c.apply(this,arguments)}}}}c.map(h.split(" "),function(c){l(c)});l("focusin","focus"+j);l("focusout","blur"+j)})(jQuery,document,"click mousemove mouseup touchmove touchend","outjsmol");"undefined"==typeof jQuery&&alert("Note -- JSmoljQuery is required for JSmol, but it's not defined.");self.Jmol||(Jmol={});
Jmol._version||(Jmol=function(c){var m=function(c){return{rear:c++,header:c++,main:c++,image:c++,front:c++,fileOpener:c++,coverImage:c++,dialog:c++,menu:c+9E4,console:c+91E3,consoleImage:c+91001,monitorZIndex:c+99999}},m={_version:"$Date: 2016-05-08 13:20:27 -0500 (Sun, 08 May 2016) $",_alertNoBinary:!0,_allowedJmolSize:[25,2048,300],_appletCssClass:"",_appletCssText:"",_fileCache:null,_jarFile:null,_j2sPath:null,_use:null,_j2sLoadMonitorOpacity:90,_applets:{},_asynchronous:!0,_ajaxQueue:[],_persistentMenu:!1,
_getZOrders:m,_z:m(Jmol.z||9E3),_debugCode:!0,db:{_databasePrefixes:"$=:",_fileLoadScript:";if (_loadScript = '' && defaultLoadScript == '' && _filetype == 'Pdb') { select protein or nucleic;cartoons Only;color structure; select * };",_nciLoadScript:";n = ({molecule=1}.length < {molecule=2}.length ? 2 : 1); select molecule=n;display selected;center selected;",_pubChemLoadScript:"",_DirectDatabaseCalls:{"cactus.nci.nih.gov":null,".x3dna.org":null,"rruff.geo.arizona.edu":null,".rcsb.org":null,"ftp.wwpdb.org":null,
"pdbe.org":null,"materialsproject.org":null,".ebi.ac.uk":null,"pubchem.ncbi.nlm.nih.gov":null,"http://www.nmrdb.org/tools/jmol/predict.php":null,$:"https://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf&get3d=True",$$:"https://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf","=":"http://files.rcsb.org/view/%FILE.pdb","*":"http://www.ebi.ac.uk/pdbe/entry-files/download/%FILE.cif","==":"http://www.rcsb.org/pdb/files/ligand/%FILE.cif",":":"https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/%FILE/SDF?record_type=3d"},
_restQueryUrl:"http://www.rcsb.org/pdb/rest/search",_restQueryXml:"<orgPdbQuery><queryType>org.pdb.query.simple.AdvancedKeywordQuery</queryType><description>Text Search</description><keywords>QUERY</keywords></orgPdbQuery>",_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:c,_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"http://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3),
_touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1};c=c.location.href.toLowerCase();m._httpProto=0==c.indexOf("https")?"https://":"http://";m._isFile=0==c.indexOf("file:");m._isFile&&$.ajaxSetup({mimeType:"text/plain"});m._ajaxTestSite=m._httpProto+"google.com";c=m._isFile||0==c.indexOf("http://localhost")||0==c.indexOf("http://127.");m._tracker="http://"==m._httpProto&&!c&&"http://chemapps.stolaf.edu/jmol/JmolTracker.htm?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 h in Jmol)m[h]=Jmol[h];return m}(document,Jmol));
(function(c,m){c.__$=m;m(document).ready(function(){c._document=null});c.$=function(b,c){null==b&&alert(c+arguments.callee.caller.toString());return m(c?"#"+b._id+"_"+c:b)};c._$=function(b){return"string"==typeof b?m("#"+b):b};c.$ajax=function(b){c._ajaxCall=b.url;b.cache="NO"!=b.cache;b.url=c._fixProtocol(b.url);return m.ajax(b)};c._fixProtocol=function(b){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://")&&(0==b.indexOf("http://pubchem")||0==b.indexOf("http://cactus")||0==b.indexOf("http://www.materialsproject"))?"https"+b.substring(4):b};c._getNCIInfo=function(b,g){return c._getFileData("https://cactus.nci.nih.gov/chemical/structure/"+b+"/"+("name"==g?"names":g))};c.$appEvent=function(b,g,f,h){b=c.$(b,g);b.off(f)&&h&&b.on(f,h)};c.$resize=function(b){return m(window).resize(b)};c.$after=function(b,c){return m(b).after(c)};c.$append=function(b,c){return m(b).append(c)};c.$bind=
function(b,c,f){return f?m(b).bind(c,f):m(b).unbind(c)};c.$closest=function(b,c){return m(b).closest(c)};c.$get=function(b,c){return m(b).get(c)};c.$documentOff=function(b,c){return m(document).off(b,"#"+c)};c.$documentOn=function(b,c,f){return m(document).on(b,"#"+c,f)};c.$getAncestorDiv=function(b,c){return m("div."+c+":has(#"+b+")")[0]};c.$supportsIECrossDomainScripting=function(){return m.support.iecors};c.$attr=function(b,g,f){return c._$(b).attr(g,f)};c.$css=function(b,g){return c._$(b).css(g)};
c.$find=function(b,g){return c._$(b).find(g)};c.$focus=function(b){return c._$(b).focus()};c.$html=function(b,g){return c._$(b).html(g)};c.$offset=function(b){return c._$(b).offset()};c.$windowOn=function(b,c){return m(window).on(b,c)};c.$prop=function(b,g,f){var h=c._$(b);return 3==arguments.length?h.prop(g,f):h.prop(g)};c.$remove=function(b){return c._$(b).remove()};c.$scrollTo=function(b,g){var f=c._$(b);return f.scrollTop(0>g?f[0].scrollHeight:g)};c.$setEnabled=function(b,g){return c._$(b).attr("disabled",
g?null:"disabled")};c.$getSize=function(b){b=c._$(b);return[b.width(),b.height()]};c.$setSize=function(b,g,f){return c._$(b).width(g).height(f)};c.$is=function(b,g){return c._$(b).is(g)};c.$setVisible=function(b,g){var f=c._$(b);return g?f.show():f.hide()};c.$submit=function(b){return c._$(b).submit()};c.$val=function(b,g){var f=c._$(b);return 1==arguments.length?f.val():f.val(g)};c._clearVars=function(){delete jQuery;delete m;delete c;delete SwingController;delete J;delete JM;delete JS;delete JSV;
delete JU;delete JV;delete java;delete javajs;delete Clazz;delete c$};var h=document,j=window,l={};l.ua=navigator.userAgent.toLowerCase();var r;a:{r=["linux","unix","mac","win"];for(var p=r.length;p--;)if(-1!=l.ua.indexOf(r[p])){r=r[p];break a}r="unknown"}l.os=r;l.browser=function(){for(var b=l.ua,c="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),f=0;f<c.length;f++)if(0<=b.indexOf(c[f]))return c[f];return"unknown"};l.browserName=l.browser();l.browserVersion=parseFloat(l.ua.substring(l.ua.indexOf(l.browserName)+
l.browserName.length+1));l.supportsXhr2=function(){return m.support.cors||m.support.iecors};l.allowDestroy="msie"!=l.browserName;l.allowHTML5="msie"!=l.browserName||0>navigator.appVersion.indexOf("MSIE 8");l.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};l._webGLtest=0;l.supportsWebGL=function(){if(!c.featureDetection._webGLtest){var b;c.featureDetection._webGLtest=j.WebGLRenderingContext&&((b=h.createElement("canvas")).getContext("webgl")||b.getContext("experimental-webgl"))?
1:-1}return 0<c.featureDetection._webGLtest};l.supportsLocalization=function(){for(var b=h.getElementsByTagName("meta"),c=b.length;0<=--c;)if(0<=b[c].outerHTML.toLowerCase().indexOf("utf-8"))return!0;return!1};l.supportsJava=function(){c.featureDetection._javaEnabled||(c.featureDetection._javaEnabled=c._isMsie?navigator.javaEnabled()?1:-1:navigator.javaEnabled()&&(!navigator.mimeTypes||navigator.mimeTypes["application/x-java-applet"])?1:-1);return 0<c.featureDetection._javaEnabled};l.compliantBrowser=
function(){var b=!!h.getElementById,c=l.os;if("opera"==l.browserName&&7.54>=l.browserVersion&&"mac"==c||"webkit"==l.browserName&&125.12>l.browserVersion||"msie"==l.browserName&&"mac"==c||"konqueror"==l.browserName&&3.3>=l.browserVersion)b=!1;return b};l.isFullyCompliant=function(){return l.compliantBrowser()&&l.supportsJava()};l.useIEObject="win"==l.os&&"msie"==l.browserName&&5.5<=l.browserVersion;l.useHtml4Object="mozilla"==l.browserName&&5<=l.browserVersion||"opera"==l.browserName&&8<=l.browserVersion||
"webkit"==l.browserName;l.hasFileReader=j.File&&j.FileReader;c.featureDetection=l;c._ajax=function(b){if(!b.async)return c.$ajax(b).responseText;c._ajaxQueue.push(b);1==c._ajaxQueue.length&&c._ajaxDone()};c._ajaxDone=function(){var b=c._ajaxQueue.shift();b&&c.$ajax(b)};c._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=","RCSB(macromolecules)"],["*","PDBe(macromolecules)"]];c._getGrabberOptions=function(b){if(0==c._grabberOptions.length)return"";var g='<input type="text" id="ID_query" onfocus="jQuery(this).select()" onkeypress="if(13==event.which){Jmol._applets[\'ID\']._search();return false}" size="32" value="" />',
f='<button id="ID_submit" onclick="Jmol._applets[\'ID\']._search()">Search</button></nobr>';1==c._grabberOptions.length?(g="<nobr>"+g+'<span style="display:none">',f="</span>"+f):g+="<br /><nobr>";for(var g=g+'<select id="ID_select">',h=0;h<c._grabberOptions.length;h++)var j=c._grabberOptions[h],g=g+('<option value="'+j[0]+'" '+(0==h?"selected":"")+">"+j[1]+"</option>");g=(g+"</select>"+f).replace(/ID/g,b._id);return"<br />"+g};c._getScriptForDatabase=function(b){return"$"==b?c.db._nciLoadScript:
":"==b?c.db._pubChemLoadScript:c.db._fileLoadScript};c._setInfo=function(b,c,f){var h=[],j="";if(0==f.indexOf("ERROR"))j=f;else switch(c){case "=":c=f.split("<dimStructure.structureId>");h=["<table>"];for(f=1;f<c.length;f++)h.push('<tr><td valign=top><a href="javascript:Jmol.search('+b._id+",'="+c[f].substring(0,4)+"')\">"+c[f].substring(0,4)+"</a></td>"),h.push("<td>"+c[f].split("Title>")[1].split("</")[0]+"</td></tr>");h.push("</table>");j=c.length-1+" matches";break;case "$":case ":":break;default:return}b._infoHeader=
j;b._info=h.join("");b._showInfo(!0)};c._loadSuccess=function(b,g){g&&(c._ajaxDone(),g(b))};c._loadError=function(b){c._ajaxDone();c.say("Error connecting to server: "+c._ajaxCall);null!=b&&b()};c._isDatabaseCall=function(b){return 0<=c.db._databasePrefixes.indexOf(b.substring(0,1))};c._getDirectDatabaseCall=function(b,g){if(g&&!c.featureDetection.supportsXhr2())return b;var f=2,h=b.substring(0,f),j=c.db._DirectDatabaseCalls[h]||c.db._DirectDatabaseCalls[h=b.substring(0,--f)];j&&(":"==h?(h=b.toLowerCase(),
isNaN(parseInt(b.substring(1)))?0==h.indexOf(":smiles:")?(j+="?POST?smiles="+b.substring(8),b="smiles"):0==h.indexOf(":cid:")?b="cid/"+b.substring(5):(0==h.indexOf(":name:")?b=b.substring(5):0==h.indexOf(":cas:")&&(b=b.substring(4)),b="name/"+encodeURIComponent(b.substring(f))):b="cid/"+b.substring(1)):b=encodeURIComponent(b.substring(f)),0<=b.indexOf(".mmtf")?b="http://mmtf.rcsb.org/full/"+b:0<=j.indexOf("FILENCI")?(b=b.replace(/\%2F/g,"/"),b=j.replace(/\%FILENCI/,b)):b=j.replace(/\%FILE/,b));return b};
c._getRawDataFromServer=function(b,g,f,h,j,l){b="?call=getRawDataFromDatabase&database="+b+(0<=g.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(g)+(j?"&encoding=base64":"")+(l?"":"&script="+encodeURIComponent(c._getScriptForDatabase(b)));return c._contactServer(b,f,h)};c._checkFileName=function(b,g,f){c._isDatabaseCall(g)&&(f&&c._setQueryTerm(b,g),g=c._getDirectDatabaseCall(g,!0),c._isDatabaseCall(g)&&(g=c._getDirectDatabaseCall(g,!1),f&&(f[0]=!0)));return g};c._checkCache=function(b,
g,f){if(b._cacheFiles&&c._fileCache&&!g.endsWith(".js")){if(b=c._fileCache[g])return System.out.println("using "+b.length+" bytes of cached data for "+g),f(b),null;f=function(b,g){f(c._fileCache[b]=g)}}return f};c._loadFileData=function(b,g,f,h){var j=[];g=c._checkFileName(b,g,j);f=c._checkCache(b,g,f);j[0]?c._getRawDataFromServer("_",g,f,h):(b={type:"GET",dataType:"text",url:g,async:c._asynchronous,success:function(b){c._loadSuccess(b,f)},error:function(){c._loadError(h)}},c._checkAjaxPost(b),c._ajax(b))};
c._getInfoFromDatabase=function(b,g,f){if("===="==g){var h=c.db._restQueryXml.replace(/QUERY/,f),h={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:c.db._restQueryUrl,data:encodeURIComponent(h)+"&req=browser",success:function(h){c._ajaxDone();c._extractInfoFromRCSB(b,g,f,h)},error:function(){c._loadError(null)},async:c._asynchronous};return c._ajax(h)}f="?call=getInfoFromDatabase&database="+g+"&query="+encodeURIComponent(f);return c._contactServer(f,function(f){c._setInfo(b,
g,f)})};c._extractInfoFromRCSB=function(b,g,f,h){var j=h.length/5;if(0!=j&&4==f.length&&1!=j){f=f.toUpperCase();var l=h.indexOf(f);0<l&&0<="123456789".indexOf(f.substring(0,1))&&(h=f+","+h.substring(0,l)+h.substring(l+5));50<j&&(h=h.substring(0,250));h=h.replace(/\n/g,",");h=c._restReportUrl.replace(/IDLIST/,h);c._loadFileData(b,h,function(f){c._setInfo(b,g,f)})}};c._checkAjaxPost=function(b){var c=b.url.indexOf("?POST?");0<c&&(b.data=b.url.substring(c+6),b.url=b.url.substring(0,c),b.type="POST",
b.contentType="application/x-www-form-urlencoded")};c._contactServer=function(b,g,f){b={dataType:"text",type:"GET",url:c._serverUrl+b,success:function(b){c._loadSuccess(b,g)},error:function(){c._loadError(f)},async:g?c._asynchronous:!1};c._checkAjaxPost(b);return c._ajax(b)};c._setQueryTerm=function(b,g){if(g&&b._hasOptions&&"http://"!=g.substring(0,7)){if(c._isDatabaseCall(g)){var f=g.substring(0,1);g=g.substring(1);g.substring(0,1)==f&&0<="=$".indexOf(f)&&(g=g.substring(1));var h=c._getElement(b,
"select");if(h&&h.options)for(var j=0;j<h.options.length;j++)h[j].value==f&&(h[j].selected=!0)}c.$val(c.$(b,"query"),g)}};c._search=function(b,g,f){1<arguments.length||(g=null);c._setQueryTerm(b,g);g||(g=c.$val(c.$(b,"query")));0==g.indexOf("!")?b._script(g.substring(1)):(g&&(g=g.replace(/\"/g,"")),b._showInfo(!1),c._searchMol(b,g,f,!0))};c._searchMol=function(b,g,f,h){var j;c._isDatabaseCall(g)?(j=g.substring(0,1),g=g.substring(1)):j=b._hasOptions?c.$val(c.$(b,"select")):"$";"="==j&&3==g.length&&
(g="="+g);var l=j+g;if(g&&!(0>l.indexOf("?")&&l==b._thisJmolModel)){b._thisJmolModel=l;var m;h&&null!=b._viewSet&&null!=(m=c.View.__findView(b._viewSet,{chemID:l}))?c.View.__setView(m,b,!1):("$"==j||":"==j?b._jmolFileType="MOL":"="==j&&(b._jmolFileType="PDB"),b._searchDatabase(g,j,f))}};c._searchDatabase=function(b,g,f,h){b._showInfo(!1);return 0<=g.indexOf("?")?(c._getInfoFromDatabase(b,f,g.split("?")[0]),!0):c.db._DirectDatabaseCalls[f]?(b._loadFile(f+g,h),!0):!1};c._syncBinaryOK="?";c._canSyncBinary=
function(b){if(c._isAsync)return!0;if(self.VBArray)return c._syncBinaryOK=!1;if("?"!=c._syncBinaryOK)return c._syncBinaryOK;c._syncBinaryOK=!0;try{var g=new window.XMLHttpRequest;g.open("text",c._ajaxTestSite,!1);g.hasOwnProperty("responseType")?g.responseType="arraybuffer":g.overrideMimeType&&g.overrideMimeType("text/plain; charset=x-user-defined")}catch(f){return System.out.println("JSmolCore.js: synchronous binary file transfer is requested but not available"),c._alertNoBinary&&!b&&alert("JSmolCore.js: synchronous binary file transfer is requested but not available"),
c._syncBinaryOK=!1}return!0};c._binaryTypes="mmtf .gz .jpg .gif .png .zip .jmol .bin .smol .spartan .mrc .map .ccp4 .dn6 .delphi .omap .pse .dcd".split(" ");c._isBinaryUrl=function(b){for(var g=c._binaryTypes.length;0<=--g;)if(0<=b.indexOf(c._binaryTypes[g]))return!0;return!1};c._getFileData=function(b,g,f){var h=c._isBinaryUrl(b),j=0<=b.indexOf(".gz")&&0<=b.indexOf("rcsb.org");j&&(b=b.replace(/\.gz/,""),h=!1);var j=h&&!g&&!c._canSyncBinary(j),l=0<=b.indexOf("?POST?");0==b.indexOf("file:/")&&0!=b.indexOf("file:///")&&
(b="file://"+b.substring(5));var m=0>b.indexOf("://")||0==b.indexOf(document.location.protocol)&&0<=b.indexOf(document.location.host),r="https://"==c._httpProto&&0==b.indexOf("http://"),p=c._isDirectCall(b);!p&&0<=b.indexOf("?ALLOWSORIGIN?")&&(p=!0,b=b.replace(/\?ALLOWSORIGIN\?/,""));var v=!m&&c.$supportsIECrossDomainScripting(),w=null;if(r||j||!m&&!p||!g&&v)w=c._getRawDataFromServer("_",b,g,g,j,!0);else{b=b.replace(/file:\/\/\/\//,"file://");var F={dataType:h?"binary":"text",async:!!g};l?(F.type=
"POST",F.url=b.split("?POST?")[0],F.data=b.split("?POST?")[1]):(F.type="GET",F.url=b);g&&(F.success=function(){g(c._xhrReturn(F.xhr))},F.error=function(){g(F.xhr.statusText)});F.xhr=c.$ajax(F);g||(w=c._xhrReturn(F.xhr))}if(!f)return w;null==w&&(w="",h=!1);h&&(h=c._canSyncBinary(!0));return h?c._strToBytes(w):JU.SB.newS(w)};c._xhrReturn=function(b){return!b.responseText||self.Clazz&&Clazz.instanceOf(b.response,self.ArrayBuffer)?b.response||b.statusText:b.responseText};c._isDirectCall=function(b){if(0<=
b.indexOf("?ALLOWSORIGIN?"))return!0;for(var g in c.db._DirectDatabaseCalls)if(0<=g.indexOf(".")&&0<=b.indexOf(g))return!0;return!1};c._cleanFileData=function(b){return 0<=b.indexOf("\r")&&0<=b.indexOf("\n")?b.replace(/\r\n/g,"\n"):0<=b.indexOf("\r")?b.replace(/\r/g,"\n"):b};c._getFileType=function(b){var c=b.substring(0,1);if("$"==c||":"==c)return"MOL";if("="==c)return"="==b.substring(1,2)?"LCIF":"PDB";b=b.split(".").pop().toUpperCase();return b.substring(0,Math.min(b.length,3))};c._getZ=function(b,
g){return b&&b._z&&b._z[g]||c._z[g]};c._incrZ=function(b,g){return b&&b._z&&++b._z[g]||++c._z[g]};c._hideLocalFileReader=function(b){b._localReader&&c.$setVisible(b._localReader,!1);b._readingLocal=!1;c._setCursor(b,0)};c.loadFileFromDialog=function(b){c._loadFileAsynchronously(null,b,null,null)};c._loadFileAsynchronously=function(b,g,f,h){if(f&&0!=f.indexOf("?")){var j=f;f=c._checkFileName(g,f);var l=function(l){c._setData(b,f,j,l,h,g)},l=c._checkCache(g,f,l);0<=f.indexOf("|")&&(f=f.split("|")[0]);
return null==l?null:c._getFileData(f,l)}if(!c.featureDetection.hasFileReader)return b?b.setData(msg,null,null,h,g):alert(msg);g._localReader||(l='<div id="ID" style="z-index:'+c._getZ(g,"fileOpener")+';position:absolute;background:#E0E0E0;left:10px;top:10px"><div style="margin:5px 5px 5px 5px;"><button id="ID_loadurl">URL</button><input type="file" id="ID_files" /><button id="ID_loadfile">load</button><button id="ID_cancel">cancel</button></div><div>',c.$after("#"+g._id+"_appletdiv",l.replace(/ID/g,
g._id+"_localReader")),g._localReader=c.$(g,"localReader"));c.$appEvent(g,"localReader_loadurl","click");c.$appEvent(g,"localReader_loadurl","click",function(){var b=prompt("Enter a URL");b&&(c._hideLocalFileReader(g,0),c._setData(null,b,b,null,h,g))});c.$appEvent(g,"localReader_loadfile","click");c.$appEvent(g,"localReader_loadfile","click",function(){var f=c.$(g,"localReader_files")[0].files[0],j=new FileReader;j.onloadend=function(j){j.target.readyState==FileReader.DONE&&(c._hideLocalFileReader(g,
0),c._setData(b,f.name,f.name,j.target.result,h,g))};try{j.readAsArrayBuffer(f)}catch(l){alert("You must select a file first.")}});c.$appEvent(g,"localReader_cancel","click");c.$appEvent(g,"localReader_cancel","click",function(){c._hideLocalFileReader(g);b&&b.setData("#CANCELED#",null,null,h,g)});c.$setVisible(g._localReader,!0);g._readingLocal=!0};c._setData=function(b,g,f,h,j,l){h&&(h=c._strToBytes(h));null!=h&&(null==b||0<=g.indexOf(".jdx"))&&c.Cache.put("cache://"+g,h);null==b?l._applet.openFileAsyncSpecial(null==
h?g:"cache://"+g,1):b.setData(g,f,h,j)};c._doAjax=function(b,g,f){b=b.toString();if(null!=f)return c._saveFile(b,f);g&&(b+="?POST?"+g);return c._getFileData(b,null,!0)};c._saveFile=function(b,g,f,h){if(c._localFileSaveFunction&&c._localFileSaveFunction(b,g))return"OK";b=b.substring(b.lastIndexOf("/")+1);f||(f=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 g;j||(g=(JU?JU:J.util).Base64.getBase64(g).toString());
h||(h=j?"":"base64");(j=c._serverUrl)&&0<=j.indexOf("your.server")&&(j="");c._useDataURI||!j?(h||(g=btoa(g)),h=document.createElement("a"),h.href="data:"+f+";base64,"+g,h.type=f||"text/plain",h.download=b,h.target="_blank",m("body").append(h),h.click(),h.remove()):(c._formdiv||(c.$after("body",'<div id="__jsmolformdiv__" style="display:none">\t\t\t\t\t\t<form id="__jsmolform__" method="post" target="_blank" action="">\t\t\t\t\t\t<input name="call" value="saveFile"/>\t\t\t\t\t\t<input id="__jsmolmimetype__" name="mimetype" value=""/>\t\t\t\t\t\t<input id="__jsmolencoding__" name="encoding" value=""/>\t\t\t\t\t\t<input id="__jsmolfilename__" name="filename" value=""/>\t\t\t\t\t\t<textarea id="__jsmoldata__" name="data"></textarea>\t\t\t\t\t\t</form>\t\t\t\t\t\t</div>'),
c._formdiv="__jsmolform__"),c.$attr(c._formdiv,"action",j+"?"+(new Date).getMilliseconds()),c.$val("__jsmoldata__",g),c.$val("__jsmolfilename__",b),c.$val("__jsmolmimetype__",f),c.$val("__jsmolencoding__",h),c.$submit("__jsmolform__"),c.$val("__jsmoldata__",""),c.$val("__jsmolfilename__",""));return"OK"};c._strToBytes=function(b){if(Clazz.instanceOf(b,self.ArrayBuffer))return Clazz.newByteArray(-1,b);for(var c=Clazz.newByteArray(b.length,0),f=b.length;0<=--f;)c[f]=b.charCodeAt(f)&255;return c};c._setConsoleDiv=
function(b){self.Clazz&&Clazz.setConsoleDiv(b)};c._registerApplet=function(b,g){return window[b]=c._applets[b]=c._applets[b+"__"+c._syncId+"__"]=g};c._readyCallback=function(b,g,f,h,j){b=b.split("_object")[0];var l=c._applets[b];if(f=f.booleanValue?f.booleanValue():f)l._appletPanel=j||h,l._applet=h;c._track(l._readyCallback(b,g,f))};c._getWrapper=function(b,g){var f;if(g){var h="";if(b._coverImage)var h=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+'"',j='<image id="ID_coverclickgo" src="'+
b._makeLiveImage+'" style="width:25px;height:25px;position:absolute;bottom:10px;left:10px;z-index:'+c._getZ(b,"coverImage")+';opacity:0.5;"'+h+" />",h='<div id="ID_coverdiv" style="background-color:red;z-index:'+c._getZ(b,"coverImage")+';width:100%;height:100%;display:inline;position:absolute;top:0px;left:0px"><image id="ID_coverimage" src="'+b._coverImage+'" style="width:100%;height:100%"'+h+"/>"+j+"</div>";j=b._isJava?"":'<image id="ID_waitimage" src="'+b._j2sPath+'/img/cursor_wait.gif" style="display:none;position:absolute;bottom:10px;left:10px;z-index:'+
c._getZ(b,"coverImage")+';" />';f=c._appletCssText.replace(/\'/g,'"');var l=b._getSpinner&&b._getSpinner();b._spinner=l=!l||"none"==l?"":"background-image:url("+l+"); background-repeat:no-repeat; background-position:center;";f=l+(0<=f.indexOf('style="')?f.split('style="')[1]:'" '+f);f='...<div id="ID_appletinfotablediv" style="width:Wpx;height:Hpx;position:relative;font-size:14px;text-align:left">IMG WAIT......<div id="ID_appletdiv" style="z-index:'+c._getZ(b,"header")+";width:100%;height:100%;position:absolute;top:0px;left:0px;"+
f+">";var l=b._height,m=b._width;if("string"!==typeof l||0>l.indexOf("%"))l+="px";if("string"!==typeof m||0>m.indexOf("%"))m+="px";f=f.replace(/IMG/,h).replace(/WAIT/,j).replace(/Hpx/g,l).replace(/Wpx/g,m)}else f='......</div>......<div id="ID_2dappletdiv" style="position:absolute;width:100%;height:100%;overflow:hidden;display:none"></div>......<div id="ID_infotablediv" style="width:100%;height:100%;position:absolute;top:0px;left:0px">.........<div id="ID_infoheaderdiv" style="height:20px;width:100%;background:yellow;display:none"><span id="ID_infoheaderspan"></span><span id="ID_infocheckboxspan" style="position:absolute;text-align:right;right:1px;"><a href="javascript:Jmol.showInfo(ID,false)">[x]</a></span></div>.........<div id="ID_infodiv" style="position:absolute;top:20px;bottom:0px;width:100%;height:100%;overflow:auto"></div>......</div>...</div>';
return f.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,b._id)};c._hideLoadingSpinner=function(b){b._spinner&&c.$css(c.$(b,"appletdiv"),{"background-image":""})};c._documentWrite=function(b){if(c._document){if(c._isXHTML&&!c._XhtmlElement){var g=document.getElementsByTagName("script");c._XhtmlElement=g.item(g.length-1);c._XhtmlAppendChild=!1}c._XhtmlElement?c._domWrite(b):c._document.write(b)}return b};c._domWrite=function(b){for(var g=[0];g[0]<b.length;){var f=c._getDomElement(b,g);if(!f)break;
c._XhtmlAppendChild?c._XhtmlElement.appendChild(f):c._XhtmlElement.parentNode.insertBefore(f,_jmol.XhtmlElement)}};c._getDomElement=function(b,c){var f=document.createElement("span");f.innerHTML=b;c[0]=b.length;return f};c._setObject=function(b,g,f){b._id=g;b.__Info={};f.z&&f.zIndexBase&&(c._z=c._getZOrders(f.zIndexBase));for(var h in f)b.__Info[h]=f[h];(b._z=f.z)||f.zIndexBase&&(b._z=b.__Info.z=c._getZOrders(f.zIndexBase));b._width=f.width;b._height=f.height;b._noscript=!b._isJava&&f.noscript;b._console=
f.console;b._cacheFiles=!!f.cacheFiles;b._viewSet=null==f.viewSet||b._isJava?null:"Set"+f.viewSet;null!=b._viewSet&&(c.View.__init(b),b._currentView=null);!c._fileCache&&b._cacheFiles&&(c._fileCache={});b._console||(b._console=b._id+"_infodiv");"none"==b._console&&(b._console=null);b._color=f.color?f.color.replace(/0x/,"#"):"#FFFFFF";b._disableInitialConsole=f.disableInitialConsole;b._noMonitor=f.disableJ2SLoadMonitor;c._j2sPath&&(f.j2sPath=c._j2sPath);b._j2sPath=f.j2sPath;b._coverImage=f.coverImage;
b._makeLiveImage=f.makeLiveImage||f.j2sPath+"/img/play_make_live.jpg";b._isCovered=!!b._coverImage;b._deferApplet=f.deferApplet||b._isCovered&&b._isJava;b._deferUncover=f.deferUncover&&!b._isJava;b._coverScript=f.coverScript;b._coverTitle=f.coverTitle;b._coverTitle||(b._coverTitle=b._deferApplet?"activate 3D model":"3D model is loading...");b._containerWidth=b._width+(b._width==parseFloat(b._width)?"px":"");b._containerHeight=b._height+(b._height==parseFloat(b._height)?"px":"");b._info="";b._infoHeader=
b._jmolType+' "'+b._id+'"';b._hasOptions=f.addSelectionOptions;b._defaultModel=f.defaultModel;b._readyScript=f.script?f.script:"";b._readyFunction=f.readyFunction;b._coverImage&&!b._deferApplet&&(b._readyScript+=";javascript "+g+"._displayCoverImage(false)");b._src=f.src};c._addDefaultInfo=function(b,g){for(var f in g)"undefined"==typeof b[f]&&(b[f]=g[f]);c._use&&(b.use=c._use);0<=b.use.indexOf("SIGNED")&&(0>b.jarFile.indexOf("Signed")&&(b.jarFile=b.jarFile.replace(/Applet/,"AppletSigned")),b.use=
b.use.replace(/SIGNED/,"JAVA"),b.isSigned=!0)};c._syncedApplets=[];c._syncedCommands=[];c._syncedReady=[];c._syncReady=!1;c._isJmolJSVSync=!1;c._setReady=function(b){c._syncedReady[b]=1;for(var g=0,f=0;f<c._syncedApplets.length;f++){if(c._syncedApplets[f]==b._id)c._syncedApplets[f]=b,c._syncedReady[f]=1;else if(!c._syncedReady[f])continue;g++}g==c._syncedApplets.length&&c._setSyncReady()};c._setDestroy=function(b){c.featureDetection.allowDestroy&&c.$windowOn("beforeunload",function(){c._destroy(b)})};
c._destroy=function(b){try{b._appletPanel&&b._appletPanel.destroy();b._applet=null;c._unsetMouse(b._canvas);b._canvas=null;for(var g=0,f=0;f<c._syncedApplets.length;f++)c._syncedApplets[f]==b&&(c._syncedApplets[f]=null),c._syncedApplets[f]&&g++;0<g||c._clearVars()}catch(h){}};c._setSyncReady=function(){c._syncReady=!0;for(var b="",g=0;g<c._syncedApplets.length;g++)c._syncedCommands[g]&&(b+="Jmol.script(Jmol._syncedApplets["+g+"], Jmol._syncedCommands["+g+"]);");setTimeout(b,50)};c._mySyncCallback=
function(b,g){app=c._applets[b];if(app._viewSet)c.View.updateFromSync(app,g);else{if(!c._syncReady||!c._isJmolJSVSync)return 1;for(var f=0;f<c._syncedApplets.length;f++)0<=g.indexOf(c._syncedApplets[f]._syncKeyword)&&c._syncedApplets[f]._syncScript(g);return 0}};c._getElement=function(b,c){return document.getElementById(b._id+"_"+c)||{}};c._evalJSON=function(b,c){b+="";if(!b)return[];if("{"!=b.charAt(0))return 0<=b.indexOf(" | ")&&(b=b.replace(/\ \|\ /g,"\n")),b;var f=(new Function("return "+b))();
return!f?null:c&&void 0!=f[c]?f[c]:f};c._sortMessages=function(b){function c(b,g){return b[0]<g[0]?1:b[0]>g[0]?-1:0}if(!b||"object"!=typeof b)return[];for(var f=[],h=b.length-1;0<=h;h--)for(var j=0,l=b[h].length;j<l;j++)f[f.length]=b[h][j];if(0!=f.length)return f=f.sort(c)};c._setMouseOwner=function(b,g){null==b||g?c._mouseOwner=b:c._mouseOwner==b&&(c._mouseOwner=null)};c._jsGetMouseModifiers=function(b){var c=0;switch(b.button){case 0:c=16;break;case 1:c=8;break;case 2:c=4}b.shiftKey&&(c+=1);b.altKey&&
(c+=8);b.ctrlKey&&(c+=2);return c};c._jsGetXY=function(b,g){if(!b.applet._ready||c._touching&&0>g.type.indexOf("touch"))return!1;var f=c.$offset(b.id),h,j=g.originalEvent;g.pageX||(g.pageX=j.pageX);g.pageY||(g.pageY=j.pageY);c._mousePageX=g.pageX;c._mousePageY=g.pageY;j.targetTouches&&j.targetTouches[0]?(h=j.targetTouches[0].pageX-f.left,f=j.targetTouches[0].pageY-f.top):j.changedTouches?(h=j.changedTouches[0].pageX-f.left,f=j.changedTouches[0].pageY-f.top):(h=g.pageX-f.left,f=g.pageY-f.top);return void 0==
h?null:[Math.round(h),Math.round(f),c._jsGetMouseModifiers(g)]};c._setCursor=function(b,g){if(!b._isJava&&!b._readingLocal){var f;switch(g){case 1:f="crosshair";break;case 3:f="wait";c.$setVisible(c.$(b,"waitimage"),!0);break;case 8:f="ns-resize";break;case 12:f="grab";break;case 13:f="move";break;default:c.$setVisible(c.$(b,"waitimage"),!1),f="default"}b._canvas.style.cursor=f}};c._gestureUpdate=function(b,g){g.stopPropagation();g.preventDefault();var f=g.originalEvent;switch(g.type){case "touchstart":c._touching=
!0;break;case "touchend":c._touching=!1}if(!f.touches||2!=f.touches.length)return!1;switch(g.type){case "touchstart":b._touches=[[],[]];break;case "touchmove":var h=c.$offset(b.id),j=b._touches[0],l=b._touches[1];j.push([f.touches[0].pageX-h.left,f.touches[0].pageY-h.top]);l.push([f.touches[1].pageX-h.left,f.touches[1].pageY-h.top]);f=j.length;3<f&&(j.shift(),l.shift());2<=f&&b.applet._processGesture(b._touches)}return!0};c._jsSetMouse=function(b){var g=function(b){return!b.target||0<=(""+b.target.className).indexOf("swingjs-ui")};
c.$bind(b,"mousedown touchstart",function(f){if(g(f))return!0;c._setMouseOwner(b,!0);f.stopPropagation();var h=f.target["data-UI"];(!h||!h.handleJSEvent(b,501,f))&&f.preventDefault();b.isDragging=!0;if("touchstart"==f.type&&c._gestureUpdate(b,f))return!!h;c._setConsoleDiv(b.applet._console);var j=c._jsGetXY(b,f);j&&(2!=f.button&&c.Swing.hideMenus(b.applet),b.applet._processEvent(501,j));return!!h});c.$bind(b,"mouseup touchend",function(f){if(g(f))return!0;c._setMouseOwner(null);f.stopPropagation();
var h=f.target["data-UI"];(!h||!h.handleJSEvent(b,502,f))&&f.preventDefault();b.isDragging=!1;if("touchend"==f.type&&c._gestureUpdate(b,f))return!!h;(f=c._jsGetXY(b,f))&&b.applet._processEvent(502,f);return!!h});c.$bind(b,"mousemove touchmove",function(f){if(g(f))return!0;if(c._mouseOwner&&c._mouseOwner!=b&&c._mouseOwner.isDragging){if(!c._mouseOwner.mouseMove)return!0;c._mouseOwner.mouseMove(f);return!1}return c._drag(b,f)});c._drag=function(b,g){g.stopPropagation();g.preventDefault();if("touchmove"==
g.type&&c._gestureUpdate(b,g))return!1;var h=c._jsGetXY(b,g);if(!h)return!1;b.isDragging||(h[2]=0);var j=g.target["data-UI"];b.isdragging&&(!j||j.handleJSEvent(b,506,g));b.applet._processEvent(b.isDragging?506:503,h);return!!j};c.$bind(b,"DOMMouseScroll mousewheel",function(f){if(g(f))return!0;f.stopPropagation();f.preventDefault();b.isDragging=!1;var h=f.originalEvent,h=h.detail?h.detail:("mac"==c.featureDetection.os?1:-1)*h.wheelDelta;f=c._jsGetMouseModifiers(f);b.applet._processEvent(-1,[0>h?-1:
1,0,f]);return!1});c.$bind(b,"contextmenu",function(){return!1});c.$bind(b,"mouseout",function(f){if(g(f))return!0;c._mouseOwner&&!c._mouseOwner.mouseMove&&c._setMouseOwner(null);b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!1);c._jsGetXY(b,f);return!1});c.$bind(b,"mouseenter",function(f){if(g(f))return!0;b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!0);if(0===f.buttons||0===f.which){b.isDragging=!1;f=c._jsGetXY(b,f);if(!f)return!1;b.applet._processEvent(504,f);
b.applet._processEvent(502,f);return!1}});c.$bind(b,"mousemoveoutjsmol",function(f,h,j){if(g(j))return!0;if(b==c._mouseOwner&&b.isDragging)return c._drag(b,j)});b.applet._is2D&&c.$resize(function(){b.applet&&b.applet._resize()});c.$bind("body","mouseup touchend",function(f){if(g(f))return!0;b.applet&&(b.isDragging=!1);c._setMouseOwner(null)})};c._jsUnsetMouse=function(b){b.applet=null;c.$bind(b,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter",
null);c._setMouseOwner(null)};c.Swing={count:0,menuInitialized:0,menuCounter:0,htDialogs:{}};var v=c.Swing;SwingController=v;v.setDraggable=function(b){b=b.prototype;b.setContainer||(b.setContainer=function(b){this.container=b;b.obj=this;this.ignoreMouse=this.isDragging=!1;var f=this;b.bind("mousedown touchstart",function(b){if(f.ignoreMouse)return f.ignoreMouse=!1,!0;c._setMouseOwner(f,!0);f.isDragging=!0;f.pageX=b.pageX;f.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(f.isDragging&&
c._mouseOwner==f)return f.mouseMove(b),!1});b.bind("mouseup touchend",function(b){f.mouseUp(b);c._setMouseOwner(null)})},b.mouseUp=function(b){if(this.isDragging&&c._mouseOwner==this)return this.pageX0+=b.pageX-this.pageX,this.pageY0+=b.pageY-this.pageY,this.isDragging=!1;c._setMouseOwner(null)},b.setPosition=function(){if(null===c._mousePageX){var b=c.$offset(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"));c._mousePageX=b.left;c._mousePageY=b.top}this.pageX0=c._mousePageX;this.pageY0=
c._mousePageY;this.container.css({top:c._mousePageY+"px",left:c._mousePageX+"px"})},b.mouseMove=function(b){if(this.isDragging&&c._mouseOwner==this){this.timestamp=System.currentTimeMillis();var f=this.pageX0+(b.pageX-this.pageX);b=this.pageY0+(b.pageY-this.pageY);c._mousePageX=f;c._mousePageY=b;this.container.css({top:b+"px",left:f+"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");c._setMouseOwner(null);if(b){var f=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(b,c,g){f.mouseMove(g)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(b,c,g){f.mouseUp(g)})}})};v.JSDialog=function(){};v.setDraggable(v.JSDialog);v.getScreenDimensions=function(b){b.width=m(window).width();b.height=m(window).height()};v.dispose=function(b){c.$remove(b.id+"_mover");delete v.htDialogs[b.id];b.container.obj.dragBind(!1)};
v.register=function(b,c){b.id=c+ ++v.count;v.htDialogs[b.id]=b};v.setDialog=function(b){c._setMouseOwner(null);c.$remove(b.id);var g=b.id+"_mover",f=c._$(g),h;f[0]?(f.html(b.html),h=f[0].jd):(c.$after("body","<div id='"+g+"' style='position:absolute;left:0px;top:0px;'>"+b.html+"</div>"),h=new v.JSDialog,f=c._$(g),b.container=f,h.applet=b.manager.vwr.html5Applet,h.setContainer(f),h.dialog=b,h.setPosition(),h.dragBind(!0),f[0].jd=h);c.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){h.ignoreMouse=
!0});c.$bind("#"+b.id+" .JComboBox","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JTextField","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){h.ignoreMouse=!0});c.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){h.ignoreMouse=
!0})};v.setSelected=function(b){c.$prop(b.id,"checked",!!b.selected)};v.setSelectedIndex=function(b){c.$prop(b.id,"selectedIndex",b.selectedIndex)};v.setText=function(b){c.$prop(b.id,"value",b.text)};v.setVisible=function(b){c.$setVisible(b.id,b.visible)};v.setEnabled=function(b){c.$setEnabled(b.id,b.enabled)};v.click=function(b,g){var f=v.htDialogs[b.id];if(f){var h=f.toString();if(0<=h.indexOf("JCheck"))f.selected=b.checked;else if(0<=h.indexOf("JCombo"))f.selectedIndex=b.selectedIndex;else if(null!=
f.text&&(f.text=b.value,g&&13!=(g.charCode||g.keyCode)))return}h=v.htDialogs[c.$getAncestorDiv(b.id,"JDialog").id];h.manager.actionPerformed(f?f.name:h.registryKey+"/"+b.id)};v.setFront=function(b){var g=b.manager.vwr.html5Applet;b.zIndex!=c._getZ(g,"dialog")&&(b.zIndex=c._incrZ(g,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};v.hideMenus=function(b){if(b=b._menus)for(var c in b)b[c].visible&&v.hideMenu(b[c])};v.windowClosing=function(b){b=v.htDialogs[c.$getAncestorDiv(b.id,
"JDialog").id];b.registryKey?b.manager.processWindowClosing(b.registryKey):b.dispose()};c._track=function(b){if(c._tracker){try{var g='<iframe style="display:none" width="0" height="0" frameborder="0" tabindex="-1" src="'+(c._tracker+"&applet="+b._jmolType+"&version="+c._version+"&appver="+c.___JmolVersion+"&url="+encodeURIComponent(document.location.href))+'"></iframe>';c.$after("body",g)}catch(f){}delete c._tracker}return b};var w;c.getProfile=function(b){if(self.Clazz&&self.JSON)return w||Clazz._startProfiling(w=
0==arguments.length||b),Clazz.getProfile()};c._getInChIKey=function(b,c){0<=c.indexOf("MOL=")&&c.split("MOL=")[1].split('"')};c._getAttr=function(b,c){var f=b.indexOf(c+"=");return 0<=f&&0<=(f=b.indexOf('"',f))?b.substring(f+1,b.indexOf('"',f+1)):null};c.User={viewUpdatedCallback:null};c.View={count:0,applets:{},sets:{}};(function(b){b.updateView=function(g,f){if(null!=g._viewSet){f.chemID||(g._searchQuery=null);f.data||(f.data="N/A");f.type=g._viewType;if(null==(g._currentView=b.__findView(g._viewSet,
f)))g._currentView=b.__createViewSet(g._viewSet,f.chemID,f.viewID||f.chemID);g._currentView[f.type].data=f.data;g._currentView[f.type].smiles=g._getSmiles();c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(g,"updateView");b.__setView(g._currentView,g,!1)}};b.updateFromSync=function(g,f){g._updateMsg=f;var h=c._getAttr(f,"sourceID")||c._getAttr(f,"file");if(h){var j=b.__findView(g._viewSet,{viewID:h});if(null==j)return c.updateView(g,f);j!=g._currentView&&b.__setView(j,g,!0);var l=(h=c._getAttr(f,
"atoms"))&&0<=f.indexOf("selectionhalos ON")?eval("["+h+"]"):[];setTimeout(function(){g._currentView==j&&b.updateAtomPick(g,l)},10);c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(g,"updateFromSync")}};b.updateAtomPick=function(b,f){var h=b._currentView;if(null!=h){for(var j in h)"info"!=j&&h[j].applet!=b&&h[j].applet._updateAtomPick(f);c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(c){var f=b.sets[c];if(f){var h="View set "+c+":\n";c=b.applets[c];
for(var j in c)h+="\napplet "+c[j]._id+" currentView="+(c[j]._currentView?c[j]._currentView.info.viewID:null);for(j=f.length;0<=--j;){c=f[j];var h=h+("\n\n<b>view="+j+" viewID="+c.info.viewID+" chemID="+c.info.chemID+"</b>\n"),l,m;for(m in c)"info"!=m&&(h+="\nview="+j+" type="+m+" applet="+((l=c[m]).applet?l.applet._id:null)+" SMILES="+l.smiles+"\n atomMap="+JSON.stringify(l.atomMap)+"\n data=\n"+l.data+"\n")}return h}};b.__init=function(c){var f=c._viewSet,h=b.applets;h[f]||(h[f]={});h[f][c._viewType]=
c};b.__findView=function(c,f){var h=b.sets[c];null==h&&(h=b.sets[c]=[]);for(var j=h.length;0<=--j;){var l=h[j];if(f.viewID){if(l.info.viewID==f.viewID)return l}else{if(null!=f.chemID&&f.chemID==l.info.chemID)return l;for(var m in l)if("info"!=m&&(null!=f.data&&null!=l[m].data?f.data==l[m].data:f.type==m))return l}}return null};b.__createViewSet=function(g,f,h){b.count++;f={info:{chemID:f,viewID:h||"model_"+b.count}};for(var j in c._applets)h=c._applets[j],h._viewSet==g&&(f[h._viewType]={applet:h,
data:null});b.sets[g].push(f);return f};b.__setView=function(b,c,h){for(var j in b)if("info"!=j){var l=b[j],m=l.applet,r=h||null!=m&&"<modified>"==m._molData;if(!(null==m||m==c&&!r)){var p=null==l.data,v=null!=m._currentView;m._currentView=b;if(!v||!(b[j].data==l.data&&!p&!r))if(m._loadModelFromView(b),p)break}}}})(c.View);c.Cache={fileCache:{}};c.Cache.get=function(b){return c.Cache.fileCache[b]};c.Cache.put=function(b,g){c.Cache.fileCache[b]=g};c.Cache.setDragDrop=function(b){c.$appEvent(b,"appletdiv",
"dragover",function(b){b=b.originalEvent;b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="copy"});c.$appEvent(b,"appletdiv","drop",function(g){var f=g.originalEvent;f.stopPropagation();f.preventDefault();var h=f.dataTransfer.files[0];if(null==h)try{h=""+f.dataTransfer.getData("text"),(0==h.indexOf("file:/")||0==h.indexOf("http:/"))&&b._scriptLoad(h)}catch(j){}else f=new FileReader,f.onloadend=function(f){if(f.target.readyState==FileReader.DONE){var j="cache://DROP_"+h.name;f=Clazz.newByteArray(-1,
f.target.result);j.endsWith(".spt")||b._appletPanel.cacheFileByName("cache://DROP_*",!1);"JSV"==b._viewType||j.endsWith(".jdx")?c.Cache.put(j,f):b._appletPanel.cachePut(j,f);(f=c._jsGetXY(b._canvas,g))&&(!b._appletPanel.setStatusDragDropped||b._appletPanel.setStatusDragDropped(0,f[0],f[1],j))&&b._appletPanel.openFileAsyncSpecial(j,1)}},f.readAsArrayBuffer(h)})}})(Jmol,jQuery);Jmol._debugCode=!1;Jmol._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"]];Jmol.say=function(c){alert(c)};
Jmol._TMApplet=function(c,m,h){this._uniqueId=(""+Math.random()).substring(3);this._id=c;this._is2D=!0;this._isJava=!1;this._ready=!0;this._mouseDown=!1;this._jmolType="Jmol._Canvas2D (TwirlyMol)";if(h)return this;this._createCanvas(c,m);return this};
Jmol._TMApplet._getApplet=function(c,m,h){if(!Jmol.featureDetection.allowHTML5)return null;h||(h=!1);m||(m={});Jmol._addDefaultInfo(m,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",readyFunction:null,use:"HTML5",bondWidth:5,shadeAtoms:!1,zoomScaling:1.5,pinchScaling:2,mouseDragFactor:0.5,touchDragFactor:0.15,multipleBondSpacing:4,spinRateX:0,spinRateY:0.5,spinFPS:20,spin:!1,noscript:!0,debug:!1});m=new Jmol._TMApplet(c,m,
h);return h?m:Jmol._registerApplet(c,m)};Jmol.getTMApplet=Jmol._TMApplet._getApplet;
(function(c){c._CPK="#FF1493 #FFFFFF #D9FFFF #CC80FF #C2FF00 #FFB5B5 #909090 #3050F8 #FF0D0D #90E050 #B3E3F5 #AB5CF2 #8AFF00 #BFA6A6 #F0C8A0 #FF8000 #FFFF30 #1FF01F #80D1E3 #8F40D4 #3DFF00 #E6E6E6 #BFC2C7 #A6A6AB #8A99C7 #9C7AC7 #E06633 #F090A0 #50D050 #C88033 #7D80B0 #C28F8F #668F8F #BD80E3 #FFA100 #A62929 #5CB8D1 #702EB0 #00FF00 #94FFFF #94E0E0 #73C2C9 #54B5B5 #3B9E9E #248F8F #0A7D8C #006985 #C0C0C0 #FFD98F #A67573 #668080 #9E63B5 #D47A00 #940094 #429EB0 #57178F #00C900".split(" ");c._elem="X H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe Cs Ba La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Ac Th Pa U Np Pu Am Cm Bk Cf Es".split(" ");
c._elemNo={};var m=c.prototype;m.spin=function(c){this.__Info.spin=c;this._spin(c)};m._spin=function(c){this._spinThread&&clearTimeout(this._spinThread);if(0==this.spinFPS||0==this.spinRateX&&0==this.spinRateY)c=!1;if(c){var j=this;c=1E3/this.spinFPS;this._mouseDown||(this._rotate(this.spinRateY,this.spinRateX),this._draw());this._spinThread=setTimeout(function(){j._spin(!0)},c)}};m._initParams=function(){this.zoom=this.__Info.defaultZoom||100;this.doSpin=this.__Info.spin||!1;this.center2D=[this._canvas.width/
2,this._canvas.height/2,0];this._getCenterAndRadius();this.rotation=new c.M3;this.shadeAtoms=!1;this._setParams()};m._setParams=function(){this.bondWidth=this.__Info.bondWidth||5;this.zoomScaling=this.__Info.zoomScaling||1.5;this.pinchScaling=this.__Info.pinchScaling||1;this.mouseDragFactor=this.__Info.mouseDragFactor||0.5;this.touchDragFactor=this.__Info.touchDragFactor||0.15;this.multipleBondSpacing=this.__Info.multipleBondSpacing||4;this.spinRateX=this.__Info.spinRateX||0;this.spinRateY=this.__Info.spinRateY||
0;this.spinFPS=this.__Info.spinFPS||0;var c=this.shadeAtoms;(this.shadeAtoms=this.__Info.shadeAtoms||!1)&&!c&&this._setAtomShades()};m._setAtomShades=function(){if(this.atoms)for(var c=this.atoms.length;0<=--c;)this.atoms[c].color50=this._getColor(this.atoms[c].color,0.5)};m._createCanvas=function(c,j){Jmol._setObject(this,c,j);this._color=this._color.replace(/0x/,"#");var l=Jmol._getWrapper(this,!0);Jmol._document?(Jmol._documentWrite(l),this._createCanvas2d(!1),l=""):l+='<script type="text/javascript">'+
c+"._createCanvas2d(false)\x3c/script>";l+=Jmol._getWrapper(this,!1);j.addSelectionOptions&&(l+=Jmol._getGrabberOptions(this,""));Jmol._debugAlert&&!Jmol._document&&alert(l);this._code=Jmol._documentWrite(l)};m._createCanvas2d=function(c){var j=document.createElement("canvas"),l=Jmol.$(this,"appletdiv");c&&(l[0].removeChild(this._canvas),Jmol._jsUnsetMouse(this._canvas));c=Math.round(l.width());var m=Math.round(l.height());j.applet=this;this._canvas=j;j.style.width="100%";j.style.height="100%";j.width=
c;j.height=m;j.id=this._id+"_canvas2d";l.append(j);setTimeout(this._id+"._start()",10)};m._start=function(){Jmol._jsSetMouse(this._canvas);this._defaultModel?Jmol._search(this,this._defaultModel,this._readyScript?this._readyScript:""):this._src&&this._loadFile(this._src);this._showInfo(!0);this._showInfo(!1)};m._search=function(c,j){Jmol._search(this,c,j)};m._searchDatabase=function(c,j,l){this._showInfo(!1);0<=c.indexOf("?")?Jmol._getInfoFromDatabase(this,j,c.split("?")[0]):this._loadFile(j+c,l)};
m.__loadModel=function(c){this._spin(!1);"''"==c&&(c=this._mol);c?(this._parse(c),this._initParams(),this._draw(),this._showInfo(!1),this.doSpin&&this._spin(!0)):alert("No model data.")};m._showInfo=function(c){Jmol.$html(Jmol.$(this,"infoheaderspan"),this._infoHeader);this._info&&Jmol.$html(Jmol.$(this,"infodiv"),this._info);!this._isInfoVisible!=!c&&(this._isInfoVisible=c,Jmol.$setVisible(Jmol.$(this,"infotablediv"),c),Jmol.$setVisible(Jmol.$(this,"infoheaderdiv"),c),this._show(!c))};m._show=function(c){Jmol.$setVisible(Jmol.$(this,
"appletdiv"),c);c&&this._draw()};m._resize=function(){var c="__resizeTimeout_"+this._id;Jmol[c]&&clearTimeout(Jmol[c]);var j=this;Jmol[c]=setTimeout(function(){j._draw();Jmol[c]=null},100)};m._canScript=function(){return!0};m._script=function(c){for(var j=c.split(";"),l=0;l<j.length;l++)c=j[l].trim(),"image"==c?window.open(this._canvas.toDataURL("image/png")):0==c.indexOf("load ")?this._loadFile(c.substring(5).trim()):0==c.indexOf("spin ")&&this.spin(0>c.toLowerCase().indexOf("off"))};m._loadFile=
function(c){this._showInfo(!1);this._thisJmolModel=c;var j=this;Jmol._loadFileData(this,c,function(c){j.__loadModel(c)})};m._processEvent=function(c,j){switch(c){case 502:case 503:this._mouseDown=!1;default:return;case 501:this._mouseX=j[0];this._mouseY=j[1];this._mouseDown=!0;return;case 506:var l=j[0]-this._mouseX,m=j[1]-this._mouseY,l=0>l?-1:0<l?1:0,m=0>m?-1:0<m?1:0;switch(j[2]){case 17:this._zoomBy(m);break;case 24:this.center2D[0]+=l;this.center2D[1]+=m;break;default:this._rotate(l,m)}this._mouseX=
j[0];this._mouseY=j[1];break;case -1:this._zoomBy(j[1])}this._draw()};m._processGesture=function(h){if(!(2>h[0].length)){var j=h[0],l=h[1],m=j[0],p=j[l.length-1];h=m[0];var v=p[0],m=m[1],p=p[1],w=[v-h,p-m,0],b=c._length(w),g=l[0],f=l[l.length-1],l=g[0],n=f[0],g=g[1],f=f[1],t=[n-l,f-g,0],B=c._length(t);3>b||3>B||(c._scale(w,1/b),c._scale(t,1/B),w=c._dot(w,t),0.8<w?(h=Math.round(v-j[j.length-2][0]),j=Math.round(p-j[j.length-2][1]),this.center2D[0]+=h,this.center2D[1]+=j):-0.8>w&&(w=[l-h,g-m,0],t=[n-
v,f-p,0],j=c._length(t)-c._length(w),this.zoom+=(0>j?-1:1)*this.pinchScaling),this._draw())}};m._zoomBy=function(c){this.zoom+=c*this.zoomScaling;5>this.zoom&&(this.zoom=5);500<this.zoom&&(this.zoom=500)};m._getRotationScaling=function(){return[1/Math.max(this._canvas.width,500)*this.mouseDragFactor*c.deg_per_radian,1/Math.max(this._canvas.height,500)*this.mouseDragFactor*c.deg_per_radian]};m._rotate=function(h,j){var l=this._getRotationScaling();j&&(c._m3.rotX(j*l[1]),this.rotation.mul(c._m3));h&&
(c._m3.rotY(h*l[0]),this.rotation.mul(c._m3))};m._getCenterAndRadius=function(){Math.min(this._canvas.width,this._canvas.height);for(var h=[999999,999999,999999],j=[-999999,-999999,-999999],l=this.atoms.length;0<=--l;)for(var m=3;0<=--m;){var p=this.atoms[l].xyz[m];p<h[m]&&(h[m]=p);p>j[m]&&(j[m]=p)}p=[0,0,0];for(m=3;0<=--m;)p[m]=(j[m]+h[m])/2;h=0;for(l=this.atoms.length;0<=--l;)j=this.atoms[l],j=c._distance(j.xyz,p)+(1==j.elemNo?1:1.5),j>h&&(h=j);this.center=p;this.modelRadius=0==h?10:h};m._setScreenCoords=
function(){for(var c=this.center,j=this.rotation,l=this.center2D,m=Math.min(this._canvas.width,this._canvas.height)/2/this.modelRadius*this.zoom/100,p=this.atoms.length;0<=--p;){var v=this.atoms[p];this._transform(v.xyz,v.sxyz,c,j,m,l);v.srad=m*v.radius}for(p=this.bonds.length;0<=--p;)v=this.bonds[p],this._transform(v.xyz,v.sxyz,c,j,m,l),this._transform(v.pts[0],v.spts[0],c,j,m,l),this._transform(v.pts[1],v.spts[1],c,j,m,l)};m._transform=function(h,j,l,m,p,v){for(var w=c._temp1,b=c._temp2,g=3;0<=
--g;)w[g]=(h[g]-l[g])*p;m.transform(w,b);b[1]=-b[1];b[2]=-b[2];for(g=3;0<=--g;)j[g]=b[g]+v[g]};m._parse=function(c){this._parseSDF(c)};m._parseSDF=function(h){this._mol=h;if(!c._elemNo.H)for(var j=c._elem.length;0<=--j;)c._elemNo[c._elem[j]]=j;h=h.split("\n");var l=3,m=h[l++];this.nAtoms=parseFloat(m.substring(0,3));this.nBonds=parseFloat(m.substring(3,6));this.atoms=Array(this.nAtoms);this.bonds=Array(this.nBonds);this.elements=Array(this.nAtoms+this.nBonds);for(var p=0,v,w,b,j=0;j<this.nAtoms;j++){m=
h[l++];v=parseFloat(m.substring(0,10));w=parseFloat(m.substring(10,20));b=parseFloat(m.substring(20,30));var m=m.substring(31,34).replace(/\s+/g,""),m=c._elemNo[m]||0,g=1==m?0.23:0.35,f=c._CPK[m]||c._CPK[0];this.elements[p++]=this.atoms[j]={type:0,elemNo:m,xyz:[v,w,b],sxyz:[0,0,0],radius:g,color:f,color50:f}}for(j=0;j<this.nBonds;j++){m=h[l++];v=this.atoms[parseFloat(m.substring(0,3))-1];w=this.atoms[parseFloat(m.substring(3,6))-1];b=Math.abs(parseFloat(m.substring(6,9)));switch(b){case 4:case 5:case 6:case 8:b=
1;break;case 7:b=2}m=c._getPointAlong(v.xyz,w.xyz,0.5);f=c._distance(v.xyz,m);g=v.radius<f?c._getPointAlong(v.xyz,m,v.radius/f):[0,0,99999];f=w.radius<f?c._getPointAlong(w.xyz,m,w.radius/f):[0,0,99999];this.elements[p++]=this.bonds[j]={type:1,atoms:[v,w],xyz:m,pts:[g,f],sxyz:[0,0,0],spts:[[0,0,0],[0,0,0]],order:b,color:0}}};m._getColor=function(c,j){"#FFFFFF"==c&&(c="#D0D0D0");var l=parseInt("0x"+c.substring(1),16),m=l>>16&255,p=l>>8&255,l=l&255;255!=m&&(m+=Math.floor((255-m)*j));255!=p&&(p+=Math.floor((255-
p)*j));255!=l&&(l+=Math.floor((255-l)*j));m="000000"+(m<<16|p<<8|l).toString(16);return"#"+m.substring(m.length-6,m.length)};m._draw=function(){if(this.atoms){this._setParams();this._setScreenCoords();var h=this.elements;h.sort(c._zorder);var j=this._canvas.getContext("2d");j.fillStyle=this._color;j.fillRect(0,0,this._canvas.width,this._canvas.height);for(var l=h.length;0<=--l;){var m=h[l];0==m.type?this._drawAtom(j,m):this._drawBond(j,m)}}};m._drawAtom=function(h,j){h.beginPath();if(this.shadeAtoms){var l=
j.srad/4,l=h.createRadialGradient(j.sxyz[0]-l,j.sxyz[1]-l,l,j.sxyz[0],j.sxyz[1],j.srad);l.addColorStop(0,j.color50);l.addColorStop(1,"#FFFFFF"==j.color?"#D0D0D0":j.color);h.fillStyle=l;h.arc(j.sxyz[0],j.sxyz[1],j.srad,0,c._pi2);h.fill()}else h.fillStyle=j.color,h.arc(j.sxyz[0],j.sxyz[1],j.srad,0,c._pi2),h.fill(),h.strokeStyle="#000000",h.lineWidth=1,h.stroke()};m._drawBond=function(c,j){99999!=j.pts[0][2]&&this._drawBondLines(c,j,j.spts[0],j.atoms[0].color);99999!=j.pts[1][2]&&this._drawBondLines(c,
j,j.spts[1],j.atoms[1].color)};m._drawBondLines=function(h,j,l,m){var p=c._temp;p.width=this.bondWidth;p.color=j.color?j.color:m;if(1==j.order)p.pt1=l,p.pt2=j.sxyz,this._drawLine(h,p);else{p.pt1=c._temp1;p.pt2=c._temp2;p.pta=l;p.ptb=j.sxyz;p.dx=p.ptb[0]-p.pta[0];p.dy=p.ptb[1]-p.pta[1];p.mag2d=Math.round(Math.sqrt(p.dx*p.dx+p.dy*p.dy));p.bondOrder=j.order;for(this._resetAxisCoordinates(p);0<p.bondOrder;)this._drawLine(h,p),p.bondOrder--,this._stepAxisCoordinates(p)}};m._drawLine=function(c,j){c.beginPath();
c.strokeStyle=j.color;c.moveTo(j.pt1[0],j.pt1[1]);c.lineTo(j.pt2[0],j.pt2[1]);c.lineWidth=j.width;c.stroke()};m._resetAxisCoordinates=function(c){var j=c.mag2d>>3;1!=this.multipleBondSpacing&&(j*=this.multipleBondSpacing);j=c.width+j;c.dxStep=Math.round(j*c.dy/c.mag2d);c.dyStep=Math.round(j*-c.dx/c.mag2d);c.pt1[0]=c.pta[0];c.pt1[1]=c.pta[1];c.pt2[0]=c.ptb[0];c.pt2[1]=c.ptb[1];j=c.bondOrder-1;c.pt1[0]-=Math.round(c.dxStep*j/2);c.pt1[1]-=Math.round(c.dyStep*j/2);c.pt2[0]-=Math.round(c.dxStep*j/2);c.pt2[1]-=
Math.round(c.dyStep*j/2)};m._stepAxisCoordinates=function(c){c.pt1[0]+=c.dxStep;c.pt1[1]+=c.dyStep;c.pt2[0]+=c.dxStep;c.pt2[1]+=c.dyStep};c._distance=function(c,j){for(var l=0,m=3;0<=--m;)var p=c[m]-j[m],l=l+p*p;return Math.sqrt(l)};c._dot=function(c,j){for(var l=0,m=3;0<=--m;)l+=c[m]*j[m];return l};c._setPt=function(c,j){for(var l=3;0<=--l;)j[l]=c[l];return j};c._scale=function(c,j){for(var l=3;0<=--l;)c[l]*=j};c._length=function(c){for(var j=0,l=3;0<=--l;)j+=c[l]*c[l];return Math.sqrt(j)};c._getPointAlong=
function(c,j,l){return[(j[0]-c[0])*l+c[0],(j[1]-c[1])*l+c[1],(j[2]-c[2])*l+c[2]]};c._zorder=function(c,j){var l=c.sxyz[2],m=j.sxyz[2];return l<m?-1:l>m?1:0};c.M3=function(){this.m00=1;this.m10=this.m02=this.m01=0;this.m11=1;this.m21=this.m20=this.m12=0;this.m22=1};c.M3.prototype.set=function(c,j,l,m,p,v,w,b,g){this.m00=c;this.m01=j;this.m02=l;this.m10=m;this.m11=p;this.m12=v;this.m20=w;this.m21=b;this.m22=g};c.M3.prototype.transform=function(c,j){j[0]=this.m00*c[0]+this.m01*c[1]+this.m02*c[2];j[1]=
this.m10*c[0]+this.m11*c[1]+this.m12*c[2];j[2]=this.m20*c[0]+this.m21*c[1]+this.m22*c[2]};c.M3.prototype.rotX=function(c){var j=Math.cos(c);c=Math.sin(c);this.m00=1;this.m10=this.m02=this.m01=0;this.m11=j;this.m12=-c;this.m20=0;this.m21=c;this.m22=j};c.M3.prototype.rotY=function(c){var j=Math.cos(c);c=Math.sin(c);this.m00=j;this.m01=0;this.m02=c;this.m10=0;this.m11=1;this.m12=0;this.m20=-c;this.m21=0;this.m22=j};c.M3.prototype.mul=function(c){this.set(c.m00*this.m00+c.m01*this.m10+c.m02*this.m20,
c.m00*this.m01+c.m01*this.m11+c.m02*this.m21,c.m00*this.m02+c.m01*this.m12+c.m02*this.m22,c.m10*this.m00+c.m11*this.m10+c.m12*this.m20,c.m10*this.m01+c.m11*this.m11+c.m12*this.m21,c.m10*this.m02+c.m11*this.m12+c.m12*this.m22,c.m20*this.m00+c.m21*this.m10+c.m22*this.m20,c.m20*this.m01+c.m21*this.m11+c.m22*this.m21,c.m20*this.m02+c.m21*this.m12+c.m22*this.m22)};c._pi2=2*Math.PI;c.deg_per_radian=180/Math.PI;c._z3=[0,0,0];c._temp1=[0,0,0];c._temp2=[0,0,0];c._temp={};c._m3=new c.M3})(Jmol._TMApplet);
