$wnd.jsme.runAsyncCallback2('var r8="OK";function s8(a){a=a.nd.b.c++;return Oi+a}x(509,510,c1);_.bg=function(){return s8(this)};_.mg=function(){this.xd=new t8((MJ(),m),this)};_.sg=function(){return(null==this.ud&&(this.ud=s8(this)),this.ud)+Ub+this.xd.kg()+Ub+this.xd.lg()+Ub+this.Cd+qm+this.rd+(this.Bd?m:",hidden")+",title="+this.r+(this.q?",resizable":m)+(this.xd.c.B?",modal":m)};\nfunction u8(a,b,c){I4.call(this);this.xd&&this.xd.$g(!1);n4(this,!1);$J(this,new v4(0));a=new x4(a,1);R3(this,a,null);a=new eK;R3(a,this.j,null);R3(this,a,null);b&&(this.k=AJ(b),m4(this),G4(this.k,~~(LF(b.hd)/2)-~~(this.Cd/2),~~(KF(b.hd)/2)-~~(this.rd/2)));c&&N3(this,c)}x(717,718,c1,u8);_.Lj=function(){return r8};\nfunction v8(a){var b,c,d;c=new h4(r8);b=new h4("Cancel");this.a=new TL(nd,4);this.b=a;new p4;this.c=new w8(this,c);this.c.xd.c.cb=!0;$J(this.c,new fK);R3(this.c,new w4("New atom "+a.Nj()),null);R3(this.c,c,null);R3(this.c,b,null);$J(this.c,new e4(2));d=new eK;R3(d,new x4("new atom "+a.Nj(),1),null);R3(d,this.a,null);R3(this.c,d,U0);d=new eK;R3(d,c,null);R3(d,b,null);R3(this.c,d,T0);sK(this.c.s,new x8(this))}x(720,1,{},v8);_.a=null;_.b=null;_.c=null;\nfunction w8(a,b){this.a=a;this.b=b;o4.call(this);this.r=m;this.xd&&this.xd._g(m);this.xd.c.cb=!1;n4(this,!0)}x(721,509,c1,w8);_.ag=function(a){var b;l4(this);if(zD(a.f)===zD(this.b)){a=rs(NI(this.a.a.xd.a));try{b=ps(a,10),this.a.b.Rj(b)}catch(c){if(c=ap(c),E(c,109))this.a.b.Qj("invalid atom "+this.a.b.Nj()+Ld+a);else throw c;}}this.a.b.Oj();return!0};_.a=null;_.b=null;function x8(a){this.a=a}x(722,555,f1,x8);_.Sg=function(){l4(this.a.c)};_.a=null;x(725,1,{});_.c=null;x(742,644,Dn);\n_.me=function(){var a;a=null;this.b.a==(pO(),gf)||this.b.a==hf?(a=this.b.a==gf?Vj:"mark",a=new y8(this,a)):this.b.a==ff&&(a=new z8(this));if(a){a.c=SU(this.a.d,this.a.a);a=new v8(a);IT(this.a.c,this.a.e,this.a.a);var b=this.a,c;if(0<b.a){c="Change "+a.b.Nj()+" of atom  "+a.b.c+" #"+b.a;var d=a.c;d.r=c;d.xd&&d.xd._g(c);RL(a.a,m+a.b.Pj());m4(a.c);a.c.xd.Zg(new zL(b.f+30,b.i));a=a.c;!wJ(a)&&V3(a);P3(a)}}};function y8(a,b){this.a=a;this.b=b}x(743,725,{},y8);_.Nj=function(){return this.b};_.Oj=Un;\n_.Pj=function(){return VU(this.a.a.d,this.a.a.a)};_.Qj=dV;_.Rj=function(a){var b=this.a.a;if(0<=a){var c=b.c,d=b.a,b=b.d.b[d];0>=a?DN(b):!c._b.e?b.j=a:b.B=a;tP(c,"changeAtomMap",tt(c.ac,c.r),d,0,!0);JS(c)}else A4(b.c,"Atom map or mark should be positive")};_.a=null;_.b=null;function z8(a){this.a=a}x(744,725,{},z8);_.Nj=function(){return"charge"};_.Oj=Un;_.Pj=function(){var a=this.a.a.d,b=this.a.a.a,c;c=0;0<b&&b<=a.q&&(a=a.b[b],c=a.p);return c};_.Qj=dV;\n_.Rj=function(a){var b=this.a.a,c=b.c,d=b.a;b.d.b[d].p=a;tP(c,yi,tt(c.ac,c.r),d,0,!0);JS(c)};_.a=null;x(755,644,Dn);_.me=function(){H4(new u8(this.b,this.a,this.a.L))};function t8(a,b){J_();r4.call(this,a,b)}x(870,871,{},t8);Z(717);Z(725);Z(720);Z(743);Z(744);Z(509);Z(721);Z(722);Z(870);M(a1)(2);function Un(){IT(this.a.a.c,this.a.a.e,0);this.a.a.c.xd.Yg().ob.focus({preventScroll:!0})}function dV(a){A4(this.a.a.c,a)};\n//# sourceURL=2.js\n')
