/*
 * 
 *  Shi Nai Jun (Mark Sea) CONFIDENTIAL
 * __________________
 * 
 *  Shi Nai Jun (Mark Sea)
 *  All Rights Reserved.
 * 
 * NOTICE:  All information and all copyrights contained herein are, 
 * and remain the property of Shi Nai Jun, if any.
 * The intellectual and technical concepts contained herein are 
 * proprietary to Shi Nai Jun and may be covered by patents, patents 
 * in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Shi Nai Jun.
 *
 */
self.importScripts("lang/en.js")
self.importScripts("brokers.js")
var f6o={};var f6=f6o;
f6.V={ayI:dict.m1,aFD:dict.m2,aNv:dict.m3,Kg:dict.m4,tw:dict.m5,aek:dict.m6,axm:dict.m7,aQd:dict.m8,aAz:dict.m9,beL:dict.m10,aPL:dict.m11,bfD:dict.m12,bdW:dict.m13,aPN:dict.m14,azi:dict.m15,aOJ:dict.m16,bfa:dict.m17,bea:dict.m18,aOV:dict.m19,aOA:dict.m20,DV:dict.m21,axK:dict.m22,aNh:dict.m23,bgz:dict.m24,bfK:dict.m25,Mb:dict.m26,Mg:dict.m27,Wn:dict.m28,beA:dict.m29,app:dict.m30,axZ:dict.m31,aPZ:dict.m32,aOd:dict.m33,bfh:dict.m34,aNO:dict.m35,aJa:dict.m36,bfv:dict.m37,aXB:dict.m38,aPv:dict.m39,ayo:dict.m40,ht:dict.m41,avS:dict.m42,bdY:dict.m43,aQw:dict.m44,aOF:dict.m45,baz:dict.m46,Rm:dict.m47,aBo:dict.m48,axk:dict.m49,ayd:dict.m50,axO:dict.m51,axV:dict.m52,axg:dict.m53,XK:dict.m54,qL:dict.m55,ayR:dict.m56,aiU:dict.m57,aNP:dict.m58,axB:dict.m59,aNx:dict.m60,QH:dict.m61,hX:dict.m62,uj:dict.m63,bfz:dict.m64,ME:dict.m65,bjB:dict.m66,aEw:dict.m67,yh:dict.m68,aAH:dict.m69,aGj:dict.m70,Oi:dict.m71,bjb:dict.m72,Tz:dict.m73,apS:dict.m74,bgs:dict.m75,ava:dict.m76,wZ:dict.m77,LZ:dict.m78,aqv:dict.m79,asa:dict.m80,ass:dict.m81,auF:dict.m82,Rw:dict.m83,Sv:dict.m84,vI:dict.m85,qY:dict.m86,bfN:dict.m87,baC:dict.m88,aqo:dict.m89,apv:dict.m90,aCe:dict.m91,ams:dict.m92,NA:dict.m93,aEi:dict.m94,aua:dict.m95,aVE:dict.m96,Yy:dict.m97,ain:dict.m98,qH:dict.m99,aVg:dict.m100,aUC:dict.m101,bfx:dict.m102,rH:dict.m103,aqQ:dict.m104,baw:dict.m105,bfQ:dict.m106,bec:dict.m107,ZY:dict.m108,aKo:dict.m109,HI:dict.m110,axM:dict.m111,yv:dict.m112,aut:dict.m113,ayO:dict.m114,Zi:dict.m115,VP:dict.m116,aOp:dict.m117,aCp:dict.m118,aCN:dict.m119,aWr:dict.m120,Vh:dict.m121,Ve:dict.m122,fN:dict.m123,jn:dict.m124,hc:dict.m125,rA:dict.m126,Xe:dict.m127,aBM:dict.m128,JI:dict.m129,aGd:dict.m130,aGZ:dict.m131,aGN:dict.m132,aIx:dict.m133,anx:dict.m134,pE:dict.m135,IT:dict.m136,asg:dict.m137,art:dict.m138,aEf:dict.m139,asN:dict.m140,aCl:dict.m141,bed:dict.m142,ach:dict.m143,yG:dict.m144,xG:dict.m145,bbe:dict.m146,biR:dict.m147,aXN:dict.m148,bhR:dict.m149,bir:dict.m150,bgn:dict.m151,WE:dict.m152,acT:dict.m153,aTn:dict.m154,jO:dict.m155,aCc:dict.m156,aAb:dict.m157,av:dict.m158,ip:dict.m159,Ox:dict.m160,azp:dict.m161,arT:dict.m162,azr:dict.m163,azo:dict.m164,aza:dict.m165,awu:dict.m166,azC:dict.m167,awq:dict.m168,jy:dict.m169,aqa:dict.m170,pw:dict.m171,abU:dict.m172,nd:dict.m173,hs:dict.m174,ia:dict.m175,nI:dict.m176,Oa:dict.m177,aqm:dict.m178,Gn:dict.m179,QV:dict.m180,Jw:dict.m181,Mw:dict.m182,yg:dict.m183,uD:dict.m184,baZ:dict.m185,aFG:dict.m186,aYl:dict.m187,aWS:dict.m188,aqZ:dict.m189,aqJ:dict.m190,Ut:dict.m191,VV:dict.m192,amP:dict.m193,VE:dict.m194,abc:dict.m195,abh:dict.m196,abK:dict.m197,Xi:dict.m198,AB:dict.m199,aSU:dict.m200,agc:dict.m201,CR:dict.m202,Rr:dict.m203,Sa:dict.m204,axy:dict.m205,QK:dict.m206,XM:dict.m207,azw:dict.m208,beC:dict.m209,bfn:dict.m210,beD:dict.m211,bdX:dict.m212,aHr:dict.m213,aIF:dict.m214,axW:dict.m215,avh:dict.m216,auK:dict.m217,aHq:dict.m218,aGY:dict.m219,pF:dict.m220,DJ:dict.m221,nS:dict.m222,aSM:dict.m223,aGn:dict.m224,aW:dict.m225,bfo:dict.m226,bgb:dict.m227,aJl:dict.m228,WM:dict.m229,aIr:dict.m230,aXQ:dict.m231,aTa:dict.m232,RW:dict.m233,pv:dict.m234,Qu:dict.m235,vH:dict.m236,DN:dict.m237,Et:dict.m238,aBT:dict.m239,aCI:dict.m240,aaC:dict.m241,bhO:dict.m242,afn:dict.m243,aKC:dict.m244,aWQ:dict.m245,Xt:dict.m246,awE:dict.m247,aDT:dict.m248,aYi:dict.m249,ays:dict.m250,aJN:dict.m251,azA:dict.m252,aAr:dict.m253,aJJ:dict.m254,aLD:dict.m255,aoM:dict.m256,JT:dict.m257,aOy:dict.m258,aPw:dict.m259,aIQ:dict.m260,aIU:dict.m261,aOO:dict.m262,aNJ:dict.m263,azE:dict.m264,aDt:dict.m265,auG:dict.m266,WO:dict.m267,ayn:dict.m268,ayv:dict.m269,Xq:dict.m270,ayw:dict.m271,aTE:dict.m272,aJA:dict.m273,aKz:dict.m274,aDf:dict.m275,aDa:dict.m276,aBA:dict.m277,aCD:dict.m278,aWK:dict.m279,aby:dict.m280,aYD:dict.m281,IY:dict.m282,aNz:dict.m283,bfg:dict.m284,bfJ:dict.m285,aiy:dict.m286,acb:dict.m287,sZ:dict.m288,afR:dict.m289,aHM:dict.m290,YA:dict.m291,ayL:dict.m292,aFn:dict.m293,anG:dict.m294,abV:dict.m295,aYT:dict.m296,aZM:dict.m297,aZc:dict.m298,Yp:dict.m299,aUV:dict.m300,azG:dict.m301,alq:dict.m302,zD:dict.m303,aON:dict.m304,beb:dict.m305};f6.aN=function(aP){var nN=new Date(Date.now()).toString()+" "+f6.V.ayI+aP;console.error(nN)};f6.dm=function(aP){var nN=new Date(Date.now()).toString()+" "+aP;console.log(nN)};f6.gm=function(aP){var nN=new Date(Date.now()).toString()+" "+aP;console.log(nN)};f6.ij={Hw:"cc_s_m",GK:"cc_e_m",Fo:"cc_w_m",bhi:"cc_s_m_b",bfL:"cc_e_m_b",bfZ:"cc_w_m_b",bim:".header",GC:".p",aWX:".message .close",ayS:".message",IK:"transition",Kh:"hidden",aPg:"fade",afd:"<br>",aeD:"padding-left",Oz:"5em",aIl:'<div class="ui overlay success message transition hidden" style="position:fixed!important;overflow-y:scroll" id="cc_s_m">'+'<i class="close icon" style="font-size:1.5rem" id="cc_s_m_b"></i>'+'<div class="header">'+'Success Message'+'</div>'+'<p class="p"></p>'+'</div>',aPU:'<div class="ui overlay error message transition hidden" style="position:fixed!important;overflow-y:scroll" id="cc_e_m">'+'<i class="close icon" style="font-size:1.5rem" id="cc_e_m_b"></i>'+'<div class="header">'+'Error Message'+'</div>'+'<p class="p"></p>'+'</div>',aFx:'<div class="ui overlay warning message transition hidden" style="position:fixed!important;overflow-y:scroll" id="cc_w_m">'+'<i class="close icon" style="font-size:1.5rem" id="cc_w_m_b"></i>'+'<div class="header">'+'Warning Message'+'</div>'+'<p class="p"></p>'+'</div>',FZ:true,alM:true,acu:"",aiR:function(aP){if(this.alM){$(document).attr(f6.J.lw,this.acu)}else{$(document).attr(f6.J.lw,aP)}},jv:function(FZ,IE,Hf,FU){if (typeof FZ!=f6.K.eU) {
 return;
}if (typeof IE!=f6.K.bU) {
 return;
}if (typeof Hf!=f6.K.bU) {
 return;
}if (typeof FU!=f6.K.bU) {
 return;
}this.FZ=FZ;this.aqb(IE,Hf,FU,this.Oz);this.acu=$(document).attr(f6.J.lw);var T=this;window.addEventListener(f6.dr.bgF,function(){T.alM=true});window.addEventListener(f6.dr.aQC,function(){T.alM=false})},aqb:function(IE,Hf,FU,Oz){if (this.ac) {
 return;
}$("#"+IE).append(this.aIl);$("#"+Hf).append(this.aPU);$("#"+FU).append(this.aFx);$("#"+this.Hw).css(this.aeD,Oz);$("#"+this.GK).css(this.aeD,Oz);$("#"+this.Fo).css(this.aeD,Oz);var T=this;$(this.aWX).on(f6.dr.es,function(){$(this).closest(T.ayS).transition(T.aPg);$(this).closest(T.ayS).find(T.GC).html("");$(document).attr(f6.J.lw,T.acu)})},ajv:function(){if (this.ac) {
 return;
}$("#"+this.Hw).addClass(this.IK);$("#"+this.Hw).addClass(this.Kh);$("#"+this.Hw).find(this.GC).html("");$("#"+this.GK).addClass(this.IK);$("#"+this.GK).addClass(this.Kh);$("#"+this.GK).find(this.GC).html("");$("#"+this.Fo).addClass(this.IK);$("#"+this.Fo).addClass(this.Kh);$("#"+this.Fo).find(this.GC).html("")},ac:false};f6.hn=function(aP){if (f6.ij.ac) {
 return;
}if(f6.ij.FZ){$("#"+f6.ij.Hw+" > "+f6.ij.GC).append(aP+f6.ij.afd);$("#"+f6.ij.Hw).removeClass(f6.ij.IK);$("#"+f6.ij.Hw).removeClass(f6.ij.Kh);f6.ij.aiR(aP)}};f6.aE=function(aP){if (f6.ij.ac) {
 return;
}if(f6.ij.FZ){$("#"+f6.ij.GK+" > "+f6.ij.GC).append(aP+f6.ij.afd);$("#"+f6.ij.GK).removeClass(f6.ij.IK);$("#"+f6.ij.GK).removeClass(f6.ij.Kh);f6.ij.aiR(aP)}};f6.dj=function(aP){if (f6.ij.ac) {
 return;
}if(f6.ij.FZ){$("#"+f6.ij.Fo+" > "+f6.ij.GC).append(aP+f6.ij.afd);$("#"+f6.ij.Fo).removeClass(f6.ij.IK);$("#"+f6.ij.Fo).removeClass(f6.ij.Kh);f6.ij.aiR(aP)}};f6.cF={oJ:"e",Vl:"i_s",aBQ:"k_s",azH:"s_s",aic:"q_s",agk:"q_bt_s",ahO:"uq_s",aes:"as_s",apV:"o_s",ayX:"mo_s",atn:"co_s",awj:"mt_s",aqN:"ct_s",aga:"t_s",aiD:"ut_s",agr:"tm_s",akc:"um_s",azW:"a_s",axx:"m_s",Tf:"tk_s",asU:"y_s",Sx:"rtk_s",Wg:"ss_s",aCk:"gt_s",LX:"r_c",asS:"r_bt_c",awy:"k_c",avA:"q_c",avq:"q_bt_c",Yg:"s_c",avJ:"t_c",avU:"tm_c",axc:"a_c",awD:"m_c",aao:"ts_c",ED:"tf_c",YI:"rts_c",Eg:"rtf_c"};f6.iu=function(adP,RU){this.gV=adP;this.bQ=RU};f6.gQ=function(RU){postMessage(new f6.iu(f6.cF.oJ,f6.V.ayI+RU))};f6.oh=function(adP,RU){postMessage(new f6.iu(adP,RU))};f6.OY={Wn:"i_i_ok",bfh:"g_o_b_g_ok",aJa:"s_o_b_ok",aXB:"l_o_b_ok",bdY:"g_h_q_ok",aQw:"d_o_p_ok",aOF:"d_o_a_ok",baz:"r_s_d",aCf:"o_i_ok"};var fintechee={};var fisdk=fintechee;f6.fI={fL:"t",je:"b"};f6.fC=f6.fI.fL;f6.aZE=false;f6.xa=false;f6.kr={ki:1,aZA:2};f6.lB=f6.kr.ki;f6.gD=true;f6.Cc=false;f6.aW=10000;f6.fO=true;f6.zo={EC:"r",acm:"m"};f6.ot={pg:"p",aO:"t",acL:"m"};f6.xH={CA:"1",awn:"2"};f6.fl={rN:"m",ak:"b",bm:"a",qU:"ba"};f6.K={bP:"undefined",aXU:"[object Function]",bU:"string",hw:"index",aU:"key",eU:"boolean",cO:"object",aRY:"_blank",hJ:"true",kO:"false",SR:"null",Jx:"_",azB:Number.MIN_SAFE_INTEGER,BU:Number.MAX_SAFE_INTEGER,axT: -Number.MAX_VALUE,bfT:Number.MAX_VALUE,ara: -9999999999,bhr:9999999999};f6.J={WY:"svg",G:"id",Qw:"div",dq:"class",fR:"g",ES:"url",aja:"clipPath",ahT:"clip-path",hK:"rect",eZ:"line",sO:"circle",ec:"x",eR:"y",oi:"dx",ny:"dy",eS:"x1",cl:"x2",eA:"y1",dQ:"y2",gq:"cx",gI:"cy",kN:"r",ea:"width",fq:"height",eB:"opacity",db:"fill",cI:"stroke",kF:"stroke-width",BZ:"stroke-dasharray",eg:"transform",fr:"translate",bgw:"rotate",hM:"text",fH:"font-size",oa:"text-anchor",gH:"start",bfV:"middle",lv:"end",nB:"drag",qu:"path",uG:"round",bQ:"d",aAQ:"stroke-linejoin",azy:"stroke-linecap",wY:"none",bhl:"svg-container",bgq:"svg-content-responsive",bgK:"viewBox",bhG:"preserveAspectRatio",bgM:"xMinYMin",bfO:"meet",GO:"active",bM:"cursor",ya:"pointer",jX:"background-color",oU:"color",Sm:"border",vT:"display",Uq:"block",IV:"important",yK:"style",GG:"src",biB:"margin",lw:"title",anC:"cssText"};f6.bhD={bhS:"b",bis:"d"};f6.fX={lf:"p",zw:"f",WZ:"f_o",XL:"f_c",xv:"t",uy:"c",xi:"r",qn:"m_c",sJ:"m_r",uW:"b_c",rE:"m_n",sx:"a"};f6.ta=function(aTH,oe,aTp){if (oe) {
 return null;
}return aTH.encode(aTp)};f6.lQ={fA:"o",qo:"c",xl:"c_w_t",vs:"t",sx:"a"};f6.ct={aL:"o",dI:"h",aa:"p",cs:"s",oA:"c",si:"m",xR:"t",Sp:"b",pU:"a",qj:"r",Xc:"i",EP:"q",Gr:"y",ke:"w",Sn:"n",Ss:"u",TQ:"g",Tj:"j",SO:"c1",SQ:"d1",TK:"e1",SP:"f1",zy:"a1",KG:"b1",SD:"f",SH:"l",sH:"k",aAL:"d",xM:"z",fe:"e",yT:"x",ts:"v"};f6.AL={oA:"Cancelled",si:"Rejected",bjd:"Unknown",fe:"Expired",aa:"Order Pending",aL:"Open Trade",dI:"Trade Closed",cs:"Swap Done"};f6.aqL="(S)";f6.dr={nN:"message",oJ:"error",fA:"open",rq:"resize",es:"click",bje:"submit",awN:"mousedown",awm:"mousemove",HB:"mouseup",bih:"orientationchange",aUK:"change",aMu:"customevent",Jj:"touchstart",bgF:"focus",aQC:"blur",UO:"classadded"};f6.bD={pD:11,nF:0,VS:1,Wa:2,Oq:3,ND:4,VG:5,UR:6,NP:7,Nj:8,Vd:9,alO:10,oy:7,ns:0,Cq:1,CI:2,Cl:3,CP:4,CB:5,LE:6};f6.oH={KO:0,aEp:1,asZ:2,anP:3,apO:4,RA:5};f6.zX=function(akW){if (typeof akW!=f6.K.bU||akW=="") {
 return false;
}var aeh=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return aeh.test(akW)};f6.qN=function(WN){if (typeof WN==f6.K.bP||WN==null) {
 return false;
}var ym={};return WN&&ym.toString.call(WN)===f6.K.aXU;};f6.aB=function(rk){if (typeof rk==f6.K.bP||rk==null) {
 return false;
}return!isNaN(parseFloat(rk))&&isFinite(rk);};f6.eK=function(rk){if (typeof rk==f6.K.bP||rk==null||typeof rk==f6.K.bU) {
 return false;
}return!isNaN(parseFloat(rk))&&isFinite(rk);};f6.cu=function(rk){return!isNaN(rk)&&parseInt(Number(rk), 10)==rk&& !isNaN(parseInt(rk,10))};f6.dv=function(rk){return Number.isInteger(rk)};f6.de=function(ani){if (typeof ani==f6.K.bP||ani==null) {
 return false;
}return ani.constructor===Array};f6.ug=function(Hb){
 if (typeof Hb!=f6.K.bU) {
  return false;
 }if(Hb===""){return false}if(Hb==="inherit"){return false}if(Hb==="transparent"){return false}var LJ=document.createElement("img");LJ.style.color="rgb(0, 0, 0)";LJ.style.color=Hb;if(LJ.style.color!=="rgb(0, 0, 0)"){return true}LJ.style.color="rgb(255, 255, 255)";LJ.style.color=Hb;return LJ.style.color!=="rgb(255, 255, 255)";
};f6.axf=function(aIw){return!isNaN(new Date(aIw).getTime())};f6.Sh=function(aEu){var OG=[];for(var aU in aEu){OG.push(encodeURIComponent(aU)+"="+encodeURIComponent(aEu[aU]))}return OG.join("&")};f6.Tl=function(ay){var fZ=[];for(var i in ay){if(({}).hasOwnProperty.call(ay,i)){if(typeof ay[i]==f6.K.bU){fZ.push(i+': "'+ay[i]+'"')}else if(f6.de(ay[i])){var SG=JSON.parse(JSON.stringify(ay[i]));for(var j in SG){if(SG[j]==null){SG[j]="null"}}fZ.push(i+': ['+SG.join(', ')+']')}else{fZ.push(i+": "+ay[i])}}}return fZ};f6.ap={mb:"s1",lW:"s2",nk:"s3",mT:"s4",mO:"m1",mt:"m2",ma:"m3",mH:"m4",oS:"m5",ml:"m6",mf:"m7",lE:"h1",nx:"h2",mA:"h3",nr:"h4",mn:"h5",mk:"h6",nv:"h7",ks:"d",na:"w",lM:"m"};f6.cA={mb:"S5",lW:"S10",nk:"S15",mT:"S30",mO:"M1",mt:"M2",ma:"M4",mH:"M5",oS:"M10",ml:"M15",mf:"M30",lE:"H1",nx:"H2",mA:"H3",nr:"H4",mn:"H6",mk:"H8",nv:"H12",ks:"D",na:"W",lM:"M"};f6.kl=function(bV){if(bV==f6.ap.mb){return 5}else if(bV==f6.ap.lW){return 10}else if(bV==f6.ap.nk){return 15}else if(bV==f6.ap.mT){return 30}else if(bV==f6.ap.mO){return 60}else if(bV==f6.ap.mt){return 120}else if(bV==f6.ap.ma){return 240}else if(bV==f6.ap.mH){return 300}else if(bV==f6.ap.oS){return 600}else if(bV==f6.ap.ml){return 900}else if(bV==f6.ap.mf){return 1800}else if(bV==f6.ap.lE){return 3600}else if(bV==f6.ap.nx){return 7200}else if(bV==f6.ap.mA){return 10800}else if(bV==f6.ap.nr){return 14400}else if(bV==f6.ap.mn){return 21600}else if(bV==f6.ap.mk){return 28800}else if(bV==f6.ap.nv){return 43200}else if(bV==f6.ap.ks){return 86400}else{return null}};f6.wF=function(bV){if(bV==f6.ap.mb){return f6.cA.mb}else if(bV==f6.ap.lW){return f6.cA.lW}else if(bV==f6.ap.nk){return f6.cA.nk}else if(bV==f6.ap.mT){return f6.cA.mT}else if(bV==f6.ap.mO){return f6.cA.mO}else if(bV==f6.ap.mt){return f6.cA.mt}else if(bV==f6.ap.ma){return f6.cA.ma}else if(bV==f6.ap.mH){return f6.cA.mH}else if(bV==f6.ap.oS){return f6.cA.oS}else if(bV==f6.ap.ml){return f6.cA.ml}else if(bV==f6.ap.mf){return f6.cA.mf}else if(bV==f6.ap.lE){return f6.cA.lE}else if(bV==f6.ap.nx){return f6.cA.nx}else if(bV==f6.ap.mA){return f6.cA.mA}else if(bV==f6.ap.nr){return f6.cA.nr}else if(bV==f6.ap.mn){return f6.cA.mn}else if(bV==f6.ap.mk){return f6.cA.mk}else if(bV==f6.ap.nv){return f6.cA.nv}else if(bV==f6.ap.ks){return f6.cA.ks}else if(bV==f6.ap.na){return f6.cA.na}else if(bV==f6.ap.lM){return f6.cA.lM}else{return null}};f6.Sy=function(fo){if(fo==f6.cA.mb){return f6.ap.mb}else if(fo==f6.cA.lW){return f6.ap.lW}else if(fo==f6.cA.nk){return f6.ap.nk}else if(fo==f6.cA.mT){return f6.ap.mT}else if(fo==f6.cA.mO){return f6.ap.mO}else if(fo==f6.cA.mt){return f6.ap.mt}else if(fo==f6.cA.ma){return f6.ap.ma}else if(fo==f6.cA.mH){return f6.ap.mH}else if(fo==f6.cA.oS){return f6.ap.oS}else if(fo==f6.cA.ml){return f6.ap.ml}else if(fo==f6.cA.mf){return f6.ap.mf}else if(fo==f6.cA.lE){return f6.ap.lE}else if(fo==f6.cA.nx){return f6.ap.nx}else if(fo==f6.cA.mA){return f6.ap.mA}else if(fo==f6.cA.nr){return f6.ap.nr}else if(fo==f6.cA.mn){return f6.ap.mn}else if(fo==f6.cA.mk){return f6.ap.mk}else if(fo==f6.cA.nv){return f6.ap.nv}else if(fo==f6.cA.ks){return f6.ap.ks}else if(fo==f6.cA.na){return f6.ap.na}else if(fo==f6.cA.lM){return f6.ap.lM}else{return null}};f6.sy=function(oe,amw){if (oe) {
 return null;
}return amw.replace(/\r?\n|\r/g,"").trim()};f6.Tp=function(bV){if(bV==f6.ap.na||bV==f6.ap.lM){return true}else{return false}};f6.aXp=function(bV){if(bV==f6.ap.na){return true}else{return false}};f6.bgQ=function(bV){if(bV==f6.ap.lM){return true}else{return false}};f6.FI=function(bV){if(bV!=f6.ap.na&&bV!=f6.ap.lM&&bV!=f6.ap.mb&&bV!=f6.ap.lW&&bV!=f6.ap.nk&&bV!=f6.ap.mT){return true}else{return false}};f6.aee=function(bV){if(bV==f6.ap.mb){return true}else if(bV==f6.ap.lW){return true}else if(bV==f6.ap.nk){return true}else if(bV==f6.ap.mT){return true}else if(bV==f6.ap.mO){return true}else if(bV==f6.ap.mt){return true}else if(bV==f6.ap.ma){return true}else if(bV==f6.ap.mH){return true}else if(bV==f6.ap.oS){return true}else if(bV==f6.ap.ml){return true}else if(bV==f6.ap.mf){return true}else if(bV==f6.ap.lE){return true}else if(bV==f6.ap.nx){return true}else if(bV==f6.ap.mA){return true}else if(bV==f6.ap.nr){return true}else if(bV==f6.ap.mn){return true}else if(bV==f6.ap.mk){return true}else if(bV==f6.ap.nv){return true}else if(bV==f6.ap.ks){return true}else if(bV==f6.ap.na){return true}else if(bV==f6.ap.lM){return true}else{return false}};f6.hz={tk:"%m-%d %H:%M",zi:"%y-%m-%d",mW:"%y-%m-%d %H:%M"};f6.bhg=function(bV){if(bV==f6.ap.mb){return f6.hz.tk}else if(bV==f6.ap.lW){return f6.hz.tk}else if(bV==f6.ap.nk){return f6.hz.tk}else if(bV==f6.ap.mT){return f6.hz.tk}else if(bV==f6.ap.mO){return f6.hz.tk}else if(bV==f6.ap.mt){return f6.hz.tk}else if(bV==f6.ap.ma){return f6.hz.tk}else if(bV==f6.ap.mH){return f6.hz.tk}else if(bV==f6.ap.oS){return f6.hz.tk}else if(bV==f6.ap.ml){return f6.hz.tk}else if(bV==f6.ap.mf){return f6.hz.tk}else if(bV==f6.ap.lE){return f6.hz.tk}else if(bV==f6.ap.nx){return f6.hz.tk}else if(bV==f6.ap.mA){return f6.hz.zi}else if(bV==f6.ap.nr){return f6.hz.zi}else if(bV==f6.ap.mn){return f6.hz.zi}else if(bV==f6.ap.mk){return f6.hz.zi}else if(bV==f6.ap.nv){return f6.hz.zi}else if(bV==f6.ap.ks){return f6.hz.zi}else{return f6.hz.zi}};f6.bx={NC:"Authorization",CW:"Bearer",apw:"Content-Type",aTP:"Accept-Datetime-Format",aIX:"UNIX",auX:"application/json",gj:"application/json; charset=utf-8",hg:"POST",EA:"PUT",gL:"GET",hf:"json",aW:"timeout"};f6.bp={cY:1,gh:2,iU:3,iX:4,hG:5,jl:6,Jp:7,Hl:8,Ka:9,It:10};f6.kQ={cY:"BUY",gh:"SELL",iU:"BUY LIMIT",iX:"SELL LIMIT",hG:"BUY STOP",jl:"SELL STOP"};f6.Kq={cY:"B",gh:"S",iU:"B L",iX:"S L",hG:"B S",jl:"S S"};f6.sp=function(amw,oe,aTy){if (oe) {
 return null;
}return amw.charCodeAt(aTy)};f6.bdp=function(){return[f6.bp.cY,f6.bp.gh,f6.bp.iU,f6.bp.iX,f6.bp.hG,f6.bp.jl]};f6.qf=function(bb){if(bb==f6.bp.cY){return f6.kQ.cY}else if(bb==f6.bp.gh){return f6.kQ.gh}else if(bb==f6.bp.iU){return f6.kQ.iU}else if(bb==f6.bp.iX){return f6.kQ.iX}else if(bb==f6.bp.hG){return f6.kQ.hG}else if(bb==f6.bp.jl){return f6.kQ.jl}else{return ""}};f6.zL=function(bb){if(bb==f6.bp.cY){return f6.Kq.cY}else if(bb==f6.bp.gh){return f6.Kq.gh}else if(bb==f6.bp.iU){return f6.Kq.iU}else if(bb==f6.bp.iX){return f6.Kq.iX}else if(bb==f6.bp.hG){return f6.Kq.hG}else if(bb==f6.bp.jl){return f6.Kq.jl}else{return ""}};f6.ayJ=function(eG){if(eG==f6.kQ.cY){return f6.bp.cY}else if(eG==f6.kQ.gh){return f6.bp.gh}else if(eG==f6.kQ.iU){return f6.bp.iU}else if(eG==f6.kQ.iX){return f6.bp.iX}else if(eG==f6.kQ.hG){return f6.bp.hG}else if(eG==f6.kQ.jl){return f6.bp.jl}else{return null}};f6.aEs={wz:"L",Ew:"S"};f6.bgG={wz:"Limit",Ew:"Stop"};f6.Sj={aeC:"L",zb:"H"};f6.pj={HU:0,avT:1,auu:2,aEh:3,aCx:4,azK:5,Om:6};f6.bdL=function(xn){if(xn==f6.pj.HU){return "Sunday"}else if(xn==f6.pj.avT){return "Monday"}else if(xn==f6.pj.auu){return "Tuesday"}else if(xn==f6.pj.aEh){return "Wednesday"}else if(xn==f6.pj.aCx){return "Thursday"}else if(xn==f6.pj.azK){return "Friday"}else if(xn==f6.pj.Om){return "Saturday"}else{return ""}};f6.PR={aaG:1,apD:2};f6.bw=function(ami,aNp){var aVF=ami.callee.name;var atY=[];for(var i=0;i<ami.length;i += 1){atY.push(ami[i])}return f6.V.aFD+aVF+"("+atY.join(", ")+")"+", "+f6.V.aNv+aNp};f6.jf={ub:"n",eU:"b",bU:"s",so:"i"};f6.vj={ub:"Number",eU:"Boolean",bU:"String",so:"Integer"};f6.atO=function(jw){if(jw==f6.jf.ub){return f6.vj.ub}else if(jw==f6.jf.eU){return f6.vj.eU}else if(jw==f6.jf.bU){return f6.vj.bU}else if(jw==f6.jf.so){return f6.vj.so}else{return null}};f6.aud=function(TL){if(TL==f6.vj.ub){return f6.jf.ub}else if(TL==f6.vj.eU){return f6.jf.eU}else if(TL==f6.vj.bU){return f6.jf.bU}else if(TL==f6.vj.so){return f6.jf.so}else{return null}};f6.Bb={kX:"shift"};f6.CO={hv:"A",Uc:"B"};f6.Jo={lf:0,Nd:1,zy:2};f6.alo={lf:"Pending",Nd:"Approved",zy:"Privileged"};f6.bcq=function(afW){if(afW==f6.Jo.lf){return f6.alo.lf}else if(afW==f6.Jo.Nd){return f6.alo.Nd}else if(afW==f6.Jo.zy){return f6.alo.zy}else{return ""}};f6.YR={aq:0,kW:1};f6.ZC={aq:"Lots",kW:"Multiplier"};f6.bdC=function(gw){if(gw==f6.YR.aq){return f6.ZC.aq}else if(gw==f6.YR.kW){return f6.ZC.kW}else{return ""}};f6.bfu=function(uV){if(uV==f6.ZC.aq){return f6.YR.aq}else if(uV==f6.ZC.kW){return f6.YR.kW}else{return null}};f6.Zz={gk:1,gU:2};f6.Yd={gk:"Copy Trading",gU:"Copy Traded"};f6.bbX=function(eN){if(eN==f6.Zz.gk){return f6.Yd.gk}else if(eN==f6.Zz.gU){return f6.Yd.gU}else{return ""}};f6.TP=function(We){if(We==f6.Yd.gk){return f6.Zz.gk}else if(We==f6.Yd.gU){return f6.Zz.gU}else{return null}};f6.qF={Qh:function(context){},QX:function(context){},NN:function(context){},aev:function(context){}};f6.Jc={au:"fintechee.cloud",jp:"fintechee.cloud",iT:"fintechee.cloud"};f6.Je={au:"",jp:"",iT:""};f6.Fg={au:"https://",jp:"https://",iT:"https://"};f6.aDM={bhp:"Channel-Sea",aus:"Chart-Coaster"};f6.ZQ={ZF:"0"};f6.ar={YT:"signing_up_done",uh:"failed_to_sign_up",agZ:"verification_code_required",aaY:"resending_verification_code_done",Ek:"failed_to_resend_verification_code",acf:"sending_reset_pw_email_done",El:"failed_to_send_reset_pw_email",abq:"resetting_password_done",DS:"failed_to_reset_password",adC:"enabling_or_disabling_mfa_done",Ei:"failed_to_enable_or_disable_mfa",ahW:"triggering_mfa_done",CF:"failed_to_trigger_mfa",abu:"signing_in_done",pS:"failed_to_sign_in",agR:"verification_mfa_required",Lz:"failed_to_verify_mfa",ajB:"changing_password_done",Ec:"failed_to_change_password"};f6.aJb=function(dg,aj){if (typeof dg!=f6.K.bU) {
 return;
}if(dg==f6.ar.YT||dg==f6.ar.uh||dg==f6.ar.agZ||dg==f6.ar.aaY||dg==f6.ar.Ek||dg==f6.ar.acf||dg==f6.ar.El||dg==f6.ar.abq||dg==f6.ar.DS||dg==f6.ar.adC||dg==f6.ar.Ei||dg==f6.ar.ahW||dg==f6.ar.CF||dg==f6.ar.abu||dg==f6.ar.pS||dg==f6.ar.agR||dg==f6.ar.Lz||dg==f6.ar.ajB||dg==f6.ar.Ec){f6.bY.PS(dg,aj)}};f6.aDj=function(){return[f6.ap.mO,f6.ap.mH,f6.ap.ml,f6.ap.mf,f6.ap.lE,f6.ap.nr,f6.ap.ks,f6.ap.na,f6.ap.lM]};f6.aAt=function(){return f6.ap.mO};f6.baE=function(){return[500,1000,2000,5000,10000,20000,50000,100000,1000000]};f6.ahV={au:"channel-sea.cc",jp:"channel-sea.cc",iT:"channel-sea.cc"};f6.aM={au:"fe",jp:"od",iT:"ol"};f6.ajl={au:"Fintechee Demo",jp:"O Demo (Browser must be Firefox)",iT:"O Live (Browser must be Firefox)"};f6.RQ={au:"Fintechee Demo",jp:"O Demo",iT:"O Live"};f6.pK={au:"c",BD:"o"};f6.HA=[];f6.HA[f6.aM.au]=f6.pK.au;f6.HA[f6.aM.jp]=f6.pK.BD;f6.HA[f6.aM.iT]=f6.pK.BD;f6.bC=[];f6.bC[f6.aM.au]={al:[],TZ:false,L:f6.aM.au,aoh:f6.Fg.au+f6.Jc.au+f6.Je.au,amt:f6.Fg.au+f6.Jc.au+f6.Je.au,aaz:f6.Fg.au+f6.Jc.au+f6.Je.au,aaF:f6.Fg.au+f6.Jc.au+f6.Je.au,acV:f6.Fg.au+f6.ahV.au,adH:"/images/logo.png",mr:["EUR/USD"],gz:"Technology Service Provider",rs:22,mI:22,rI:100,rd:true,bB:"USD",ee:100000,aD:100,sj:50,tf:0.01,qs:false,wc:null,wf:null,ei: -1,pV:false,pI:false,hY:false,qZ:false,oG:0,SL:"/getSS",QE:"/signinByTradeToken",Wh:"/signinToTrade",Wz:"/signinToWatch",Ue:"/quickRegister",Yj:"/register",Yo:"/changePassword",Uy:"/sendResetPwMail",WR:"/resetPassword",YQ:"/getDefaultAccForInvestor",Xg:"/setWatchable",RX:"/setNotWatchable",YB:"/acceptOneClick",SV:"/rejectOneClick",XH:"/triggerMfa",US:"/setMfaEnabled",SK:"/setMfaDisabled",Su:"/verifyMfa",VL:"/resubscribe",Ws:"/unsubscribe",Zq:"/rRA"};f6.nA={fL:"TRADE",uc:"INVESTOR"};f6.asB=[];f6.aIp=function(bi){f6.asB=bi};f6.OZ=function(){return f6.asB};f6.CL=function(L,C){if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null&&f6.de(f6.bC[L].al)){var cn=null;for(var i in f6.bC[L].al){if(f6.bC[L].al[i].C==C){if(typeof f6.bC[L].al[i].aO==f6.K.bU){return f6.nA.fL}else if(typeof f6.bC[L].al[i].dp==f6.K.bU){return f6.nA.uc}else{return f6.nA.uc}}}return f6.nA.uc}else{return f6.nA.uc}};f6.kT=function(L,C){if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null&&f6.de(f6.bC[L].al)){var cn=null;for(var i in f6.bC[L].al){if(f6.bC[L].al[i].C==C){cn={aO:f6.bC[L].al[i].aO,dp:f6.bC[L].al[i].dp,hk:f6.bC[L].al[i].hk};break}}return cn}else{return null}};f6.pp=function(L,C){if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null&&f6.de(f6.bC[L].al)){var F=null;for(var i in f6.bC[L].al){if(f6.bC[L].al[i].C==C){F=f6.bC[L].al[i].F;break}}return F}else{return null}};f6.awY=function(L,C,F){if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null&&f6.de(f6.bC[L].al)){for(var i in f6.bC[L].al){if(f6.bC[L].al[i].C==C){f6.bC[L].al[i].F=F;return true}}}return false};f6.kc=function(L,C){if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null&&f6.de(f6.bC[L].al)){var O=null;for(var i in f6.bC[L].al){if(f6.bC[L].al[i].C==C){O={aO:f6.bC[L].al[i].aO,dp:f6.bC[L].al[i].dp};break}}if(O!=null){if(O.aO!=null){return f6.nA.fL+" "+O.aO}else if(O.dp!=null){return f6.nA.uc+" "+O.dp}else{return f6.nA.uc}}else{return f6.nA.uc}}else{return f6.nA.uc}};f6.beQ=function(){var al=[];for(var i in f6.bC){for(var j in f6.bC[i].al){al.push({L:f6.bC[i].al[j].L,C:f6.bC[i].al[j].C})}}return al};f6.LP=function(L,C,aO,dp,hk,F){if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null&&f6.de(f6.bC[L].al)){for(var i in f6.bC[L].al){if(f6.bC[L].al[i].C==C){f6.bC[L].al[i]={L:L,C:C,aO:aO,dp:dp,hk:hk,F:F};return f6.bC[L].al[i]}}f6.bC[L].al.push({L:L,C:C,aO:aO,dp:dp,hk:hk,F:F});return true}return false};f6.II=function(L,C){if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null&&f6.de(f6.bC[L].al)){for(var i in f6.bC[L].al){if(f6.bC[L].al[i].C==C){f6.bC[L].al.splice(parseInt(i, 10),1);return true}}}return false};f6.oT=function(L){if(typeof f6.HA[L]!=f6.K.bP){return f6.HA[L]}else{return f6.pK.au}};f6.aAF=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].aoh}else{return f6.bC[f6.aM.au].aoh}};f6.ahw=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].amt}else{return f6.bC[f6.aM.au].amt}};f6.VI=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].aaz}else{return f6.bC[f6.aM.au].aaz}};f6.fG=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].aaF}else{return f6.bC[f6.aM.au].aaF}};f6.bcF=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].acV}else{return f6.bC[f6.aM.au].acV}};f6.Cy=function(){var hF=[];for(var i in f6.bC){hF.push(f6.bC[i].L)}return hF};f6.fd=function(L){for(var i in f6.aM){if(L==f6.aM[i]){return f6.RQ[i]}}return null};f6.UE=function(L){for(var i in f6.aM){if(L==f6.aM[i]){return f6.ajl[i]}}return null};f6.iO=function(ao){for(var i in f6.RQ){if(ao==f6.RQ[i]){return f6.aM[i]}}return null};f6.ZB=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].adH}else{return f6.bC[f6.aM.au].adH}};f6.bdA=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].mr}else{return f6.bC[f6.aM.au].mr}};f6.bcv=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].gz}else{return f6.bC[f6.aM.au].gz}};f6.bge=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].rs}else{return f6.bC[f6.aM.au].rs}};f6.bfR=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].mI}else{return f6.bC[f6.aM.au].mI}};f6.bcB=function(){var Mh=[];for(var i in f6.bC){for(var j in f6.bC[i].al){Mh.push({L:f6.bC[i].al[j].L,C:f6.bC[i].al[j].C,mI:f6.bC[i].mI})}}return Mh};f6.bcs=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].rI}else{return f6.bC[f6.aM.au].rI}};f6.aXF=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].rd}else{return f6.bC[f6.aM.au].rd}};f6.NV=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].bB}else{return f6.bC[f6.aM.au].bB}};f6.FS=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].ee}else{return f6.bC[f6.aM.au].ee}};f6.yd=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].aD}else{return f6.bC[f6.aM.au].aD}};f6.bep=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].sj}else{return f6.bC[f6.aM.au].sj}};f6.Vz=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].tf}else{return f6.bC[f6.aM.au].tf}};f6.aDd=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].qs}else{return f6.bC[f6.aM.au].qs}};f6.bdF=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].wc}else{return f6.bC[f6.aM.au].wc}};f6.bds=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].wf}else{return f6.bC[f6.aM.au].wf}};f6.Ly=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].ei}else{return f6.bC[f6.aM.au].ei}};f6.oX=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].pV}else{return f6.bC[f6.aM.au].pV}};f6.adX=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].pI}else{return f6.bC[f6.aM.au].pI}};f6.bhh=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].hY}else{return f6.bC[f6.aM.au].hY}};f6.wH=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].qZ}else{return f6.bC[f6.aM.au].qZ}};f6.QR=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].oG}else{return f6.bC[f6.aM.au].oG}};f6.bcb=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].QE}else{return f6.bC[f6.aM.au].QE}};f6.bdh=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Wh}else{return f6.bC[f6.aM.au].Wh}};f6.bcZ=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Wz}else{return f6.bC[f6.aM.au].Wz}};f6.bae=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Ue}else{return f6.bC[f6.aM.au].Ue}};f6.bcr=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Yj}else{return f6.bC[f6.aM.au].Yj}};f6.bcx=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Yo}else{return f6.bC[f6.aM.au].Yo}};f6.aEG=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Uy}else{return f6.bC[f6.aM.au].Uy}};f6.ayD=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].WR}else{return f6.bC[f6.aM.au].WR}};f6.bcX=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].YQ}else{return f6.bC[f6.aM.au].YQ}};f6.bch=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Xg}else{return f6.bC[f6.aM.au].Xg}};f6.bdy=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].RX}else{return f6.bC[f6.aM.au].RX}};f6.bfC=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].YB}else{return f6.bC[f6.aM.au].YB}};f6.bbF=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].SV}else{return f6.bC[f6.aM.au].SV}};f6.bet=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].XH}else{return f6.bC[f6.aM.au].XH}};f6.bcc=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].US}else{return f6.bC[f6.aM.au].US}};f6.bcm=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].SK}else{return f6.bC[f6.aM.au].SK}};f6.beF=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Su}else{return f6.bC[f6.aM.au].Su}};f6.bjs=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].VL}else{return f6.bC[f6.aM.au].VL}};f6.bgp=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Ws}else{return f6.bC[f6.aM.au].Ws}};f6.bcT=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].Zq}else{return f6.bC[f6.aM.au].Zq}};f6.bdb=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].TZ}else{return f6.bC[f6.aM.au].TZ}};f6.Hj=function(L,cd){if(typeof f6.bC[L]!=f6.K.bP){f6.bC[L].TZ=cd}};f6.bcN=function(L){if(typeof f6.bC[L]!=f6.K.bP){return f6.bC[L].SL}else{return f6.bC[f6.aM.au].SL}};f6.aln=function(L){var T=this;return new Promise(function(cj,ab){var ao=f6.fd(L);var aj=function(bE){var aP=null;if(typeof bE.brokerName==f6.K.bU&&bE.brokerName==L&&typeof bE.defaultSymbolNames==f6.K.bU&&typeof bE.desc==f6.K.bU&&typeof bE.startEndHour==f6.K.bU&&typeof bE.swapCalcHour==f6.K.bU&&typeof bE.pendingOdrsOpenTrdsNumLimit==f6.K.bU&&typeof bE.demoMode==f6.K.bU&&typeof bE.currency==f6.K.bU&&typeof bE.lotsUnit==f6.K.bU&&typeof bE.toFixed==f6.K.bU&&typeof bE.commentLengthLimit==f6.K.bU&&typeof bE.lotsPerOrder==f6.K.bU&&typeof bE.externalData==f6.K.bU&&typeof bE.externalURL==f6.K.bU&&typeof bE.externalTk==f6.K.bU&&typeof bE.externalMode==f6.K.bU&&typeof bE.spreadBetting==f6.K.bU&&typeof bE.brokerless==f6.K.bU&&typeof bE.creditsOnboard==f6.K.bU&&typeof bE.localHostMode==f6.K.bU){try{
 var mr=JSON.parse(bE.defaultSymbolNames);if(f6.de(mr)){for(var i in mr){if(typeof mr[i]!=f6.K.bU){throw new Error(f6.V.pF+"(defaultSymbolNames, "+ao+", "+bE.defaultSymbolNames+")")}}}else{throw new Error(f6.V.pF+"(defaultSymbolNames, "+ao+", "+bE.defaultSymbolNames+")")}var rs=null;if(f6.cu(bE.startEndHour)){rs=parseInt(bE.startEndHour, 10)}else{throw new Error(f6.V.pF+"(startEndHour, "+ao+", "+bE.startEndHour+")")}var mI=null;if(f6.cu(bE.swapCalcHour)){mI=parseInt(bE.swapCalcHour, 10)}else{throw new Error(f6.V.pF+"(swapCalcHour, "+ao+", "+bE.swapCalcHour+")")}var rI=null;if(f6.cu(bE.pendingOdrsOpenTrdsNumLimit)){rI=parseInt(bE.pendingOdrsOpenTrdsNumLimit, 10)}else{throw new Error(f6.V.pF+"(pendingOdrsOpenTrdsNumLimit, "+ao+", "+bE.pendingOdrsOpenTrdsNumLimit+")")}var rd=null;if(bE.demoMode==f6.K.hJ){rd=true}else if(bE.demoMode==f6.K.kO){rd=false}else{throw new Error(f6.V.pF+"(demoMode, "+ao+", "+bE.demoMode+")")}var ee=null;if(f6.aB(bE.lotsUnit)){ee=parseFloat(bE.lotsUnit)}else{throw new Error(f6.V.pF+"(lotsUnit, "+ao+", "+bE.lotsUnit+")")}var aD=null;if(f6.cu(bE.toFixed)){aD=parseInt(bE.toFixed, 10)}else{throw new Error(f6.V.pF+"(toFixed, "+ao+", "+bE.toFixed+")")}var sj=null;if(f6.cu(bE.commentLengthLimit)){sj=parseInt(bE.commentLengthLimit, 10)}else{throw new Error(f6.V.pF+"(commentLengthLimit, "+ao+", "+bE.commentLengthLimit+")")}var tf=null;if(f6.aB(bE.lotsPerOrder)){tf=parseFloat(bE.lotsPerOrder)}else{throw new Error(f6.V.pF+"(lotsPerOrder, "+ao+", "+bE.lotsPerOrder+")")}var qs=null;if(bE.externalData==f6.K.hJ){qs=true}else if(bE.externalData==f6.K.kO){qs=false}else{throw new Error(f6.V.pF+"(externalData, "+ao+", "+bE.externalData+")")}var ei=null;if(f6.cu(bE.externalMode)){ei=parseInt(bE.externalMode, 10)}else{throw new Error(f6.V.pF+"(toFixed, "+ao+", "+bE.externalMode+")")}var pV=null;if(bE.spreadBetting==f6.K.hJ){pV=true}else if(bE.spreadBetting==f6.K.kO){pV=false}else{throw new Error(f6.V.pF+"(spreadBetting, "+ao+", "+bE.spreadBetting+")")}var pI=null;if(bE.brokerless==f6.K.hJ){pI=true}else if(bE.brokerless==f6.K.kO){pI=false}else{throw new Error(f6.V.pF+"(brokerless, "+ao+", "+bE.brokerless+")")}var hY=null;if(bE.creditsOnboard==f6.K.hJ){hY=true}else if(bE.creditsOnboard==f6.K.kO){hY=false}else{throw new Error(f6.V.pF+"(creditsOnboard, "+ao+", "+bE.creditsOnboard+")")}var qZ=null;if(bE.localHostMode==f6.K.hJ){qZ=true}else if(bE.localHostMode==f6.K.kO){qZ=false}else{throw new Error(f6.V.pF+"(localHostMode, "+ao+", "+bE.localHostMode+")")}var oG=0;if(f6.cu(bE.customMode)){oG=parseInt(bE.customMode, 10)}f6.bC[L].mr=mr;f6.bC[L].gz=bE.desc;f6.bC[L].rs=rs;f6.bC[L].mI=mI;f6.bC[L].rI=rI;f6.bC[L].rd=rd;f6.bC[L].bB=bE.currency;f6.bC[L].ee=ee;f6.bC[L].aD=aD;f6.bC[L].sj=sj;f6.bC[L].tf=tf;f6.bC[L].qs=qs;f6.bC[L].wc=bE.externalURL;f6.bC[L].wf=bE.externalTk;f6.bC[L].ei=ei;f6.bC[L].pV=pV;f6.bC[L].pI=pI;f6.bC[L].hY=hY;f6.bC[L].qZ=qZ;f6.bC[L].oG=oG;f6.Hj(L,true);cj();
}catch(e){f6.Hj(L,true);f6.aE(e.message);f6.aN(e.message);ab()}}else{f6.Hj(L,true);aP=f6.V.pF+"("+ao+")";f6.aE(aP);f6.aN(aP);ab()}};$.ajax({url:f6.fG(L)+f6.bcN(L),type:f6.bx.hg,data:JSON.stringify({brokerName:L}),contentType:f6.bx.gj,dataType:f6.bx.hf,timeout:f6.aW,success:aj,error:function(dA,cd,aP){if(cd===f6.bx.aW){f6.Hj(L,true);f6.aE(f6.V.aW+"("+ao+")");f6.aN(f6.V.aW+"("+ao+")")}else{f6.Hj(L,true);f6.aE(aP+"("+ao+")");f6.aN(aP+"("+ao+")")}ab()}})})};f6.bbV=function(){var kn=[];for(var i in f6.bC){kn.push({L:f6.bC[i].L,mr:f6.bC[i].mr,gz:f6.bC[i].gz,rs:f6.bC[i].rs,mI:f6.bC[i].mI,rI:f6.bC[i].rI,rd:f6.bC[i].rd,bB:f6.bC[i].bB,ee:f6.bC[i].ee,aD:f6.bC[i].aD,sj:f6.bC[i].sj,tf:f6.bC[i].tf,qs:f6.bC[i].qs,wc:f6.bC[i].wc,wf:f6.bC[i].wf,ei:f6.bC[i].ei,pV:f6.bC[i].pV,pI:f6.bC[i].pI,hY:f6.bC[i].hY,qZ:f6.bC[i].qZ,oG:f6.bC[i].oG})}return kn};f6.aJt=function(kn){for(var i in kn){var L=kn[i].L;if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null){f6.bC[L].mr=kn[i].mr;f6.bC[L].gz=kn[i].gz;f6.bC[L].rs=kn[i].rs;f6.bC[L].mI=kn[i].mI;f6.bC[L].rI=kn[i].rI;f6.bC[L].rd=kn[i].rd;f6.bC[L].bB=kn[i].bB;f6.bC[L].ee=kn[i].ee;f6.bC[L].aD=kn[i].aD;f6.bC[L].sj=kn[i].sj;f6.bC[L].tf=kn[i].tf;f6.bC[L].qs=kn[i].qs;f6.bC[L].wc=kn[i].wc;f6.bC[L].wf=kn[i].wf;f6.bC[L].ei=kn[i].ei;f6.bC[L].pV=kn[i].pV;f6.bC[L].pI=kn[i].pI;f6.bC[L].hY=kn[i].hY;f6.bC[L].qZ=kn[i].qZ;f6.bC[L].oG=kn[i].oG;f6.Hj(L,true)}}};f6.Jm=function(L){var ed=null;for(var i in f6.bC){if(L==f6.bC[i].L){ed={mr:f6.bC[L].mr,gz:f6.bC[L].gz,rs:f6.bC[L].rs,mI:f6.bC[L].mI,rI:f6.bC[L].rI,rd:f6.bC[L].rd,bB:f6.bC[L].bB,ee:f6.bC[L].ee,aD:f6.bC[L].aD,sj:f6.bC[L].sj,tf:f6.bC[L].tf,qs:f6.bC[L].qs,wc:f6.bC[L].wc,wf:f6.bC[L].wf,ei:f6.bC[L].ei,pV:f6.bC[L].pV,pI:f6.bC[L].pI,hY:f6.bC[L].hY,qZ:f6.bC[L].qZ,oG:f6.bC[L].oG};break}}return ed};f6.WU=function(L,ed){if(typeof f6.bC[L]!=f6.K.bP&&f6.bC[L]!=null){f6.bC[L].mr=ed.mr;f6.bC[L].gz=ed.gz;f6.bC[L].rs=ed.rs;f6.bC[L].mI=ed.mI;f6.bC[L].rI=ed.rI;f6.bC[L].rd=ed.rd;f6.bC[L].bB=ed.bB;f6.bC[L].ee=ed.ee;f6.bC[L].aD=ed.aD;f6.bC[L].sj=ed.sj;f6.bC[L].tf=ed.tf;f6.bC[L].qs=ed.qs;f6.bC[L].wc=ed.wc;f6.bC[L].wf=ed.wf;f6.bC[L].ei=ed.ei;f6.bC[L].pV=ed.pV;f6.bC[L].pI=ed.pI;f6.bC[L].hY=ed.hY;f6.bC[L].qZ=ed.qZ;f6.bC[L].oG=ed.oG}};f6.bgg=function(){var oW=0;for(var i in f6.bC){oW += 1}return oW};f6.bdG=function(){if(f6.JM){return f6.aM.au}else{var hF=f6.Cy();for(var i in hF){if(hF[i]!=f6.aM.au){return hF[i]}}return f6.aM.au}};f6.Ik=function(){try{if(typeof brokerDomain!=f6.K.bP){for(var i in brokerDomain){if(typeof f6.Jc[i]==f6.K.bP){f6.Jc[i]=brokerDomain[i]}else{throw new Error(f6.V.DJ+"(brokerDomain."+i+")")}}}if(typeof brokerPort!=f6.K.bP){for(var i in brokerPort){if(typeof f6.Je[i]==f6.K.bP){f6.Je[i]=brokerPort[i]}else{throw new Error(f6.V.DJ+"(brokerPort."+i+")")}}}if(typeof brokerProtocol!=f6.K.bP){for(var i in brokerProtocol){if(typeof f6.Fg[i]==f6.K.bP){f6.Fg[i]=brokerProtocol[i]}else{throw new Error(f6.V.DJ+"(brokerProtocol."+i+")")}}}if(typeof shopDomain!=f6.K.bP){for(var i in shopDomain){if(typeof f6.ahV[i]==f6.K.bP){f6.ahV[i]=shopDomain[i]}else{throw new Error(f6.V.DJ+"(shopDomain."+i+")")}}}if(typeof brokerName!=f6.K.bP){for(var i in brokerName){if(typeof f6.aM[i]==f6.K.bP){f6.aM[i]=brokerName[i]}else{throw new Error(f6.V.DJ+"(brokerName."+i+")")}}}if(typeof signInShownBrokerName!=f6.K.bP){for(var i in signInShownBrokerName){if(typeof f6.ajl[i]==f6.K.bP){f6.ajl[i]=signInShownBrokerName[i]}else{throw new Error(f6.V.DJ+"(signInShownBrokerName."+i+")")}}}if(typeof shownBrokerName!=f6.K.bP){for(var i in shownBrokerName){if(typeof f6.RQ[i]==f6.K.bP){f6.RQ[i]=shownBrokerName[i]}else{throw new Error(f6.V.DJ+"(shownBrokerName."+i+")")}}}if(typeof brokerCtx!=f6.K.bP){for(var i in brokerCtx){if(typeof f6.bC[i]==f6.K.bP){f6.bC[i]={al:[],TZ:false,L:brokerCtx[i].brokerName,aoh:brokerCtx[i].dataStreamURL,amt:brokerCtx[i].dataBaseURL,aaz:brokerCtx[i].orderStreamURL,aaF:brokerCtx[i].orderBaseURL,acV:brokerCtx[i].shopURL,adH:brokerCtx[i].logoURL,mr:brokerCtx[i].defaultSymbolNames,gz:brokerCtx[i].desc,rs:brokerCtx[i].startEndHour,mI:brokerCtx[i].swapCalcHour,rI:brokerCtx[i].pendingOdrsOpenTrdsNumLimit,rd:brokerCtx[i].demoMode,bB:brokerCtx[i].currency,ee:brokerCtx[i].lotsUnit,aD:brokerCtx[i].toFixed,sj:brokerCtx[i].commentLengthLimit,tf:brokerCtx[i].lotsPerOrder,qs:brokerCtx[i].externalData,wc:brokerCtx[i].externalURL,wf:brokerCtx[i].externalTk,ei:brokerCtx[i].externalMode,pV:brokerCtx[i].pV,pI:brokerCtx[i].pI,hY:brokerCtx[i].hY,qZ:brokerCtx[i].qZ,oG:brokerCtx[i].oG,SL:f6.bC[f6.aM.au].SL,QE:f6.bC[f6.aM.au].QE,Wh:f6.bC[f6.aM.au].Wh,Wz:f6.bC[f6.aM.au].Wz,Ue:f6.bC[f6.aM.au].Ue,Yj:f6.bC[f6.aM.au].Yj,Yo:f6.bC[f6.aM.au].Yo,Uy:f6.bC[f6.aM.au].Uy,WR:f6.bC[f6.aM.au].WR,YQ:f6.bC[f6.aM.au].YQ,Xg:f6.bC[f6.aM.au].Xg,RX:f6.bC[f6.aM.au].RX,YB:f6.bC[f6.aM.au].YB,SV:f6.bC[f6.aM.au].SV,XH:f6.bC[f6.aM.au].XH,US:f6.bC[f6.aM.au].US,SK:f6.bC[f6.aM.au].SK,Su:f6.bC[f6.aM.au].Su,VL:f6.bC[f6.aM.au].VL,Ws:f6.bC[f6.aM.au].Ws,Zq:f6.bC[f6.aM.au].Zq};f6.HA[i]=f6.pK.au}else{throw new Error(f6.V.DJ+"(brokerCtx."+i+")")}}}return true}catch(e){f6.aE(e.message);f6.aN(e.message);return false}};f6.CV="FINTECHEE";self.addEventListener(f6.dr.oJ,function(cz){});self.addEventListener(f6.dr.nN,function(cz){if(cz.data.gV==f6.cF.Vl){f6.Ik();f6.fC=cz.data.bQ.gw;f6o.lL[f6.pK.au].aeL(f6o.eY);f6o.lL[f6.pK.au].aeR(f6o.gO);if(typeof AY!=f6.K.bP&&AY!=null){f6o.lL[f6.pK.BD].aeL(AY)}f6o.lL[f6.pK.BD].aeR(f6o.gO);f6o.gO.aJK(f6o.lL);f6.oh(f6.cF.LX,f6.OY.aCf)}else if(cz.data.gV==f6.cF.aga){f6o.gO.BH(cz.data.bQ)}else if(cz.data.gV==f6.cF.aiD){f6o.gO.yR(cz.data.bQ)}else if(cz.data.gV==f6.cF.agr){f6o.gO.GF(cz.data.bQ)}else if(cz.data.gV==f6.cF.akc){f6o.gO.Dk(cz.data.bQ)}else if(cz.data.gV==f6.cF.aCk){f6o.gO.alK(cz.data.bQ)}else if(cz.data.gV==f6.cF.apV){f6o.gO.Dx(cz.data.bQ)}else if(cz.data.gV==f6.cF.ayX){f6o.gO.HX(cz.data.bQ)}else if(cz.data.gV==f6.cF.atn){f6o.gO.GE(cz.data.bQ)}else if(cz.data.gV==f6.cF.awj){f6o.gO.HE(cz.data.bQ)}else if(cz.data.gV==f6.cF.aqN){f6o.gO.zt(cz.data.bQ)}else if(cz.data.gV==f6.cF.aes){f6o.gO.vD(cz.data.bQ)}else if(cz.data.gV==f6.cF.azW){f6o.gO.ZX(cz.data.bQ)}else if(cz.data.gV==f6.cF.axx){f6o.gO.Fw(cz.data.bQ)}else if(cz.data.gV==f6.cF.Tf){var eh=cz.data.bQ;var aK=f6.LP(eh.L,eh.C,eh.aO,eh.dp,eh.hk,eh.F);if(typeof aK==f6.K.cO||aK){if(eh.L==f6.aM.jp||eh.L==f6.aM.iT){var afs=eh.aO!=null?eh.aO:eh.dp;if(typeof AY!=f6.K.bP&&AY!=null){AY.yO(eh.L,eh.C,afs)}}f6.WU(eh.L,eh.ed);f6.oh(f6.cF.aao,{L:eh.L,C:eh.C,aO:eh.aO,dp:eh.dp,hk:eh.hk,F:eh.F,ed:eh.ed})}else{f6.oh(f6.cF.ED,{L:eh.L,C:eh.C})}}else if(cz.data.gV==f6.cF.Sx){var eh=cz.data.bQ;if(f6.II(eh.L,eh.C)){if(eh.L==f6.aM.jp||eh.L==f6.aM.iT){if(typeof AY!=f6.K.bP&&AY!=null){AY.xy(eh.L,eh.C)}}f6.oh(f6.cF.YI,{L:eh.L,C:eh.C})}else{f6.oh(f6.cF.Eg,{L:eh.L,C:eh.C})}}else if(cz.data.gV==f6.cF.Wg){var ed=cz.data.bQ;f6.WU(ed.L,ed.ed)}},false);f6o.gO={lL:null,aJK:function(lL){this.lL=lL},aVq:[],ae:function(L,C){return L+":::"+C},BH:function(lC){var L=lC.L,C=lC.C;if(f6.fC==f6.fI.fL){this.lL[f6.oT(L)].BH(L,C)}else{var aU=this.ae(L,C);this.aVq[aU]={L:L,C:C}}},yR:function(lC){var L=lC.L,C=lC.C;this.lL[f6.oT(L)].yR(L,C)},vX:function(H){f6.oh(f6.cF.avJ,H)},vD:function(wk){var L=wk.L,C=wk.C;this.lL[f6.oT(L)].vD(L,C).then(function(ag){f6.oh(f6.cF.Yg,{L:L,C:C,bB:ag.bB,ag:ag.ag})}).catch(function(){})},alK:function(vR){this.lL[f6.oT(vR.L)].alK(vR).then(function(){}).catch(function(){})},ZX:function(wk){var L=wk.L,C=wk.C;this.lL[f6.oT(L)].ZX(L,C).then(function(aC){f6.oh(f6.cF.axc,{L:L,C:C,aC:aC})}).catch(function(){})},Dx:function(cL){this.lL[f6.oT(cL.L)].Dx(cL).then(function(Xb){}).catch(function(){})},HX:function(cL){this.lL[f6.oT(cL.L)].HX(cL).then(function(Xb){}).catch(function(){})},GE:function(cL){this.lL[f6.oT(cL.L)].GE(cL).then(function(Xb){}).catch(function(){})},HE:function(cL){this.lL[f6.oT(cL.L)].HE(cL).then(function(Xb){}).catch(function(){})},zt:function(cL){this.lL[f6.oT(cL.L)].zt(cL).then(function(Xb){}).catch(function(){})},GF:function(lC){var L=lC.L,C=lC.C;this.lL[f6.oT(L)].GF(L,C)},Dk:function(lC){var L=lC.L,C=lC.C;this.lL[f6.oT(L)].Dk(L,C)},aeT:function(H){f6.oh(f6.cF.avU,H)},Fw:function(wk){var L=wk.L,C=wk.C,mC=wk.mC;this.lL[f6.oT(L)].Fw(L,C,mC).then(function(bf){f6.oh(f6.cF.awD,{L:mC,C:C,bf:bf})}).catch(function(){})}};f6o.lL=[];f6o.lL[f6.pK.au]={
 jU:null,
 aeL:function(jU){this.jU=jU},
 gO:null,
 aeR:function(gO){this.gO=gO},
 aZP:[],
 ae:function(L,C,gP){return L+":::"+C+":::"+gP},
 eO:{ts:"HEARTBEAT",zn:"MARKET_ORDER",tX:"LIMIT_ORDER",LH:"STOP_ORDER",LQ:"TAKE_PROFIT_ORDER",LO:"STOP_LOSS_ORDER",VF:"ORDER_TRIGGERED",Io:"ORDER_FILL",oA:"ORDER_CANCEL",anb:"DAILY_FINANCING",qn:"MARGIN_NOT_ENOUGH_REJECTED",sJ:"MARKET_REJECTED",uW:"BALANCE_NOT_ENOUGH_TO_WITHDRAW",rE:"MARGIN_NOT_ENOUGH_TO_WITHDRAW",xR:"TRANSFER_FUNDS",Sp:"SYNC_BALANCE",pU:"ACCOUNT_CREATED",qj:"ACCOUNT_REMOVED",Xc:"ACCOUNT_BOUND",EP:"MARGIN_CALL",Gr:"PAYMENT_SETTLED",ke:"TRADING_APPROVED",Sn:"COPYTRADING_ENABLED",Ss:"COPYTRADING_DISABLED",TQ:"COPYTRADED_ENABLED",Tj:"COPYTRADED_DISABLED",SO:"COPYTRADING_PENDING",SQ:"COPYTRADING_REMOVED",TK:"COPYTRADED_APPROVED",SP:"COPYTRADED_REMOVED",SD:"100016",SH:"100017",zy:"100027",KG:"100028",sH:"ORDERBOOK",aLg:"DAILY_FINANCING_DONE",yT:"x"},
 qr:{aUM:"CLIENT_ORDER",zn:"MARKET_ORDER",Xs:"MARKET_ORDER_TRADE_CLOSE",tX:"LIMIT_ORDER",LH:"STOP_ORDER",LQ:"TAKE_PROFIT_ORDER",LO:"STOP_LOSS_ORDER",VF:"ORDER_TRIGGERED",aVS:"CLOSEOUT",aGM:"SHOP_ORDER",ajJ:"DASHBOARD_ORDER",ajF:"CLIENT_REQUEST",fe:"EXPIRATION",ds:"COPY_TRADE"},
 he:{lf:"PENDING",zw:"FILLED",xv:"TRIGGERED",uy:"CANCELLED",xi:"REPLACED",qn:"MARGIN_NOT_ENOUGH_REJECTED",sJ:"MARKET_REJECTED",uW:"BALANCE_NOT_ENOUGH_TO_WITHDRAW",rE:"MARGIN_NOT_ENOUGH_TO_WITHDRAW",sx:"ALL"},
 nX:{fA:"OPEN",qo:"CLOSED",xl:"CLOSE_WHEN_TRADEABLE",vs:"TRANSFERRED",sx:"ALL"},
 YG:{sx:"ALL"},
 aMz:{cY:"B",gh:"S"},
 jG:{Jd:"MARKET",wz:"LIMIT",Ew:"STOP",ck:"TAKE_PROFIT",eH:"STOP_LOSS"},
 ayU:{ayF: -1},
 aWy:500,
 aGJ:500,
 aoY:function(R){if(typeof R.state==f6.K.bU){if(R.state==this.he.lf){return f6.fX.lf}else if(R.state==this.he.zw&&typeof R.tradeOpenedID!=f6.K.bP){return f6.fX.WZ}else if(R.state==this.he.zw&&typeof R.tradeClosedIDs!=f6.K.bP){return f6.fX.XL}else if(R.state==this.he.xv){return f6.fX.xv}else if(R.state==this.he.uy){return f6.fX.uy}else if(R.state==this.he.xi){return f6.fX.xi}else if(R.state==this.he.qn){return f6.fX.qn}else if(R.state==this.he.sJ){return f6.fX.sJ}else if(R.state==this.he.uW){return f6.fX.uW}else if(R.state==this.he.rE){return f6.fX.rE}else{return R.state+""}}else{return null}},
 Uo:function(R){if(typeof R.state==f6.K.bU){if(R.state==this.nX.fA){return f6.lQ.fA}else if(R.state==this.nX.qo){return f6.lQ.qo}else if(R.state==this.nX.xl){return f6.lQ.xl}else if(R.state==this.nX.vs){return f6.lQ.vs}else{return R.state+""}}else{return null}},
 bbZ:function(kJ){if(kJ==f6.fX.lf){return this.he.lf}else if(kJ==f6.fX.zw){return this.he.zw}else if(kJ==f6.fX.xv){return this.he.xv}else if(kJ==f6.fX.uy){return this.he.uy}else if(kJ==f6.fX.xi){return this.he.xi}else if(kJ==f6.fX.qn){return this.he.qn}else if(kJ==f6.fX.sJ){return this.he.sJ}else if(kJ==f6.fX.uW){return this.he.uW}else if(kJ==f6.fX.rE){return this.he.rE}else{return this.he.sx}},
 bfc:function(kJ){if(kJ==f6.lQ.fA){return this.nX.fA}else if(kJ==f6.lQ.qo){return this.nX.qo}else if(kJ==f6.lQ.xl){return this.nX.xl}else if(kJ==f6.lQ.vs){return this.nX.vs}else{return this.nX.sx}},
 aon:function(L,R){var dc=this.aoY(R);var dO=0.0;var cr=0.0;if(typeof R.takeProfitOnFill!=f6.K.bP&&R.takeProfitOnFill!=null){dO=f6.aB(R.takeProfitOnFill.price)?parseFloat(R.takeProfitOnFill.price):0.0}if(typeof R.stopLossOnFill!=f6.K.bP&&R.stopLossOnFill!=null){cr=f6.aB(R.stopLossOnFill.price)?parseFloat(R.stopLossOnFill.price):0.0}if(dc==f6.fX.lf){return{xg:(typeof R.id==f6.K.bU?R.id:null),oK:(f6.aB(R.createTime)?parseFloat(R.createTime):null),If:null,wD:null,od:null,aY:(typeof R.instrument==f6.K.bU?R.instrument:null),aq:(f6.aB(R.units)?parseFloat(R.units):null),dc:dc,bX:(typeof R.type==f6.K.bU?R.type:null),HK:(typeof R.positionFill==f6.K.bU?R.positionFill:null),Fd:(typeof R.timeInForce==f6.K.bU?R.timeInForce:null),GH:null,ai:(f6.aB(R.price)?parseFloat(R.price):null),un:null,dO:dO,cr:cr,an:(typeof R.comment==f6.K.bU?R.comment:null),ce:(f6.cu(R.magicNumber)?parseInt(R.magicNumber, 10):null),fe:(f6.cu(R.expiration)?parseInt(R.expiration, 10):null)}}else if(dc==f6.fX.WZ){return{xg:(typeof R.id==f6.K.bU?R.id:null),oK:(f6.aB(R.createTime)?parseFloat(R.createTime):null),If:(typeof R.fillingTransactionID==f6.K.bU?R.fillingTransactionID:null),wD:(f6.aB(R.filledTime)?parseFloat(R.filledTime):null),od:null,aY:(typeof R.instrument==f6.K.bU?R.instrument:null),aq:(f6.aB(R.units)?parseFloat(R.units):null),dc:dc,bX:(typeof R.type==f6.K.bU?R.type:null),HK:(typeof R.positionFill==f6.K.bU?R.positionFill:null),Fd:(typeof R.timeInForce==f6.K.bU?R.timeInForce:null),GH:(typeof R.apo==f6.K.bU?R.apo:null),un:(f6.aB(R.donePrice)?parseFloat(R.donePrice):null),an:(typeof R.comment==f6.K.bU?R.comment:null),ce:(f6.cu(R.magicNumber)?parseInt(R.magicNumber, 10):null),fe:(f6.cu(R.expiration)?parseInt(R.expiration, 10):null)}}else if(dc==f6.fX.XL){return{xg:(typeof R.id==f6.K.bU?R.id:null),oK:(f6.aB(R.createTime)?parseFloat(R.createTime):null),If:(typeof R.fillingTransactionID==f6.K.bU?R.fillingTransactionID:null),wD:(f6.aB(R.filledTime)?parseFloat(R.filledTime):null),od:(f6.de(R.tradeClosedIDs)?R.tradeClosedIDs:[]),aY:(typeof R.instrument==f6.K.bU?R.instrument:null),aq:(f6.aB(R.units)?parseFloat(R.units):null),dc:dc,bX:(typeof R.type==f6.K.bU?R.type:null),HK:(typeof R.positionFill==f6.K.bU?R.positionFill:null),Fd:(typeof R.timeInForce==f6.K.bU?R.timeInForce:null),GH:null,un:(f6.aB(R.donePrice)?parseFloat(R.donePrice):null)}}else if(dc==f6.fX.uy||dc==f6.fX.qn){var ii=null;if(typeof R.reason==f6.K.bU){if(R.reason==this.qr.ajF){ii=f6.ct.oA}else if(R.reason==this.qr.fe){ii=f6.ct.fe}}if(dc==f6.fX.qn){ii=f6.ct.si}return{xg:(typeof R.id==f6.K.bU?R.id:null),oK:(f6.aB(R.createTime)?parseFloat(R.createTime):null),If:(typeof R.cancellingTransactionID==f6.K.bU?R.cancellingTransactionID:null),wD:(f6.aB(R.cancelledTime)?parseFloat(R.cancelledTime):null),od:(f6.de(R.tradeClosedIDs)?R.tradeClosedIDs:[]),aY:(typeof R.instrument==f6.K.bU?R.instrument:null),aq:(f6.aB(R.units)?parseFloat(R.units):null),dc:dc,bX:(typeof R.type==f6.K.bU?R.type:null),HK:(typeof R.positionFill==f6.K.bU?R.positionFill:null),Fd:(typeof R.timeInForce==f6.K.bU?R.timeInForce:null),GH:null,ai:(f6.aB(R.price)?parseFloat(R.price):null),un:(f6.aB(R.donePrice)?parseFloat(R.donePrice):null),dO:dO,cr:cr,ii:ii,an:(typeof R.comment==f6.K.bU?R.comment:null),ce:(f6.cu(R.magicNumber)?parseInt(R.magicNumber, 10):null),fe:(f6.cu(R.expiration)?parseInt(R.expiration, 10):null)}}},
 Ob:function(L,R){var dO=0.0;var cr=0.0;if(typeof R.takeProfit!=f6.K.bP&&R.takeProfit!=null){dO=f6.aB(R.takeProfit.price)?parseFloat(R.takeProfit.price):0.0}if(typeof R.stopLoss!=f6.K.bP&&R.stopLoss!=null){cr=f6.aB(R.stopLoss.price)?parseFloat(R.stopLoss.price):0.0}return{G:(typeof R.id==f6.K.bU?R.id:null),dc:this.Uo(R),aY:(typeof R.instrument==f6.K.bU?R.instrument:null),ft:(f6.aB(R.openTime)?parseFloat(R.openTime):null),ai:(f6.aB(R.price)?parseFloat(R.price):null),kw:(f6.aB(R.currentUnits)?parseFloat(R.currentUnits):null),jc:(f6.aB(R.initialUnits)?parseFloat(R.initialUnits):null),cs:(f6.aB(R.financing)?parseFloat(R.financing):null),fQ:(f6.aB(R.realizedPL)?parseFloat(R.realizedPL):null),ir:0.0,cf:(f6.aB(R.commission)?parseFloat(R.commission):null),od:(f6.de(R.tradeClosedIDs)?R.tradeClosedIDs:[]),dO:dO,cr:cr,an:(typeof R.comment==f6.K.bU?R.comment:null),ce:(f6.cu(R.magicNumber)?parseInt(R.magicNumber, 10):null)}},
 anh:function(R){var od=f6.de(R.tradeClosedIDs)?R.tradeClosedIDs[0]:null;return{C:typeof R.accountID==f6.K.bU?R.accountID:null,G:typeof R.id==f6.K.bU?R.id:null,ih:typeof R.clOrderID==f6.K.bU?R.clOrderID:null,dc:this.Uo(R),bG:f6.aB(R.openTime)?parseFloat(R.openTime):null,hm:f6.aB(R.initialUnits)?parseFloat(R.initialUnits):null,cf:f6.aB(R.commission)?parseFloat(R.commission):null,an:typeof R.comment==f6.K.bU?R.comment:null,vU:typeof od==f6.K.bU?od:null}},
 alB:function(L,R){return{C:typeof R.accountId==f6.K.bU?R.accountId:null,aY:typeof R.instrument==f6.K.bU?R.instrument:null,CT:f6.aB(R.averagePrice)?parseFloat(R.averagePrice):null,cf:f6.aB(R.commission)?parseFloat(R.commission):null,aq:f6.aB(R.units)?parseFloat(R.units):null,fB:f6.aB(R.pl)?parseFloat(R.pl):null,JL:f6.aB(R.resettablePL)?parseFloat(R.resettablePL):null,ir:f6.aB(R.unrealizedPL)?parseFloat(R.unrealizedPL):null,cs:f6.aB(R.financing)?parseFloat(R.financing):null}},
 bdM:function(R){return{En:typeof R.lN==f6.K.bU?R.lN:null,GA:f6.cu(R.sendingTime)?parseInt(R.sendingTime, 10):null,QB:typeof R.cOID==f6.K.bU?R.cOID:null,Yl:typeof R.orderID==f6.K.bU?R.orderID:null,WX:typeof R.eID==f6.K.bU?R.eID:null,aJ:typeof R.symbol==f6.K.bU?R.symbol:null,OJ:typeof R.side==f6.K.bU?R.side:null,PO:f6.aB(R.px)?parseFloat(R.px):null,RC:f6.aB(R.qty)?parseFloat(R.qty):null,hv:typeof R.a==f6.K.eU?R.a:null,L:typeof R.brokerName==f6.K.bU?R.brokerName:null}},
 bco:function(R){return{L:typeof R.brokerName==f6.K.bU?R.brokerName:null,Ed:f6.aB(R.brokerBalance)?parseFloat(R.brokerBalance):null,dN:f6.aB(R.balance)?parseFloat(R.balance):null,fB:f6.aB(R.brokerBalance)?parseFloat(R.brokerBalance):null,nP:f6.aB(R.aPl)?parseFloat(R.aPl):null,oZ:f6.aB(R.bPl)?parseFloat(R.bPl):null,yx:f6.cu(R.statsTime)?parseInt(R.statsTime, 10):null}},
 age:function(R){return{L:typeof R.brokerName==f6.K.bU?R.brokerName:null,ao:typeof R.shownBrokerName==f6.K.bU?R.shownBrokerName:null,gz:typeof R.brokerDesc==f6.K.bU?R.brokerDesc:null,cD:typeof R.email==f6.K.bU?R.email:null,bB:typeof R.currency==f6.K.bU?R.currency:null,aD:f6.aB(R.toFixed)?parseFloat(R.toFixed):null,dN:f6.aB(R.balance)?parseFloat(R.balance):null}},
 bfq:function(R){return{L:typeof R.brokerName==f6.K.bU?R.brokerName:null,gk:typeof R.copyTrading==f6.K.bU?R.copyTrading:null,gU:typeof R.copyTraded==f6.K.bU?R.copyTraded:null,kU:typeof R.bReverse==f6.K.eU?R.bReverse:null,gw:f6.dv(R.mode)?R.mode:null,kW:f6.eK(R.multiplier)?R.multiplier:null,an:typeof R.comment==f6.K.bU?R.comment:null,dc:f6.dv(R.state)?R.state:null,bG:f6.aB(R.time)?parseFloat(R.time):null}},
 TP:function(R){return{L:typeof R.brokerName==f6.K.bU?R.brokerName:null,C:typeof R.accountId==f6.K.bU?R.accountId:null,eN:f6.dv(R.priv)?R.priv:null}},
 TY:function(L,R){return{fv:f6.aB(R.nav)?parseFloat(R.nav):null,aTr:typeof R.alias==f6.K.bU?R.alias:null,dN:f6.aB(R.balance)?parseFloat(R.balance):null,cf:f6.aB(R.commission)?parseFloat(R.commission):null,aLq:f6.cu(R.createdByUserID)?parseInt(R.createdByUserID, 10):null,aLS:f6.aB(R.createdTime)?parseFloat(R.createdTime):null,bB:typeof R.currency==f6.K.bU?R.currency:f6.NV(L),tL:typeof R.hedgingEnabled==f6.K.eU?R.hedgingEnabled:null,G:typeof R.id==f6.K.bU?R.id:null,gP:typeof R.lastTransactionID==f6.K.bU?R.lastTransactionID:null,jb:f6.aB(R.marginAvailable)?parseFloat(R.marginAvailable):null,aZf:f6.aB(R.marginCallMarginUsed)?parseFloat(R.marginCallMarginUsed):null,aZO:f6.aB(R.marginCallPercent)?parseFloat(R.marginCallPercent):null,aYO:f6.aB(R.marginCloseoutMarginUsed)?parseFloat(R.marginCloseoutMarginUsed):null,aYe:f6.aB(R.marginCloseoutNAV)?parseFloat(R.marginCloseoutNAV):null,aYa:f6.aB(R.marginCloseoutPercent)?parseFloat(R.marginCloseoutPercent):null,aYK:f6.aB(R.marginCloseoutPositionValue)?parseFloat(R.marginCloseoutPositionValue):null,aZk:f6.aB(R.marginCloseoutUnrealizedPL)?parseFloat(R.marginCloseoutUnrealizedPL):null,aYj:f6.aB(R.marginRate)?parseFloat(R.marginRate):null,hC:f6.aB(R.marginUsed)?parseFloat(R.marginUsed):null,aWo:f6.dv(R.openPositionCount)?R.openPositionCount:null,aWx:f6.dv(R.openTradeCount)?R.openTradeCount:null,bbi:f6.dv(R.pendingOrderCount)?R.pendingOrderCount:null,fB:f6.aB(R.pl)?parseFloat(R.pl):null,aZX:f6.aB(R.positionValue)?parseFloat(R.positionValue):null,JL:f6.aB(R.resettablePL)?parseFloat(R.resettablePL):null,ir:f6.aB(R.unrealizedPL)?parseFloat(R.unrealizedPL):null,amD:f6.aB(R.withdrawalLimit)?parseFloat(R.withdrawalLimit):null,aD:f6.aB(R.toFixed)?parseFloat(R.toFixed):f6.yd(L),mP:f6.aB(R.marginCallLevel)?parseFloat(R.marginCallLevel):null,ra:f6.aB(R.marginCloseoutLevel)?parseFloat(R.marginCloseoutLevel):null,C:typeof R.accountId==f6.K.bU?R.accountId:null,cD:typeof R.email==f6.K.bU?R.email:null,ev:typeof R.bWatchable==f6.K.eU?R.bWatchable:null,eF:typeof R.bOneClickAccepted==f6.K.eU?R.bOneClickAccepted:null,eD:typeof R.bMfaEnabled==f6.K.eU?R.bMfaEnabled:null,hL:typeof R.identifier==f6.K.bU?R.identifier:null,hv:typeof R.bt==f6.K.eU?R.bt:null,gM:f6.cu(R.level)?parseInt(R.level, 10):null,lY:f6.aB(R.buyOpnCmmssn)?parseFloat(R.buyOpnCmmssn):null,mi:f6.aB(R.buyClsdCmmssn)?parseFloat(R.buyClsdCmmssn):null,mu:f6.aB(R.sellOpnCmmssn)?parseFloat(R.sellOpnCmmssn):null,nl:f6.aB(R.sellClsdCmmssn)?parseFloat(R.sellClsdCmmssn):null,ak:f6.aB(R.bid)?parseFloat(R.bid):null,bm:f6.aB(R.ask)?parseFloat(R.ask):null,kI:typeof R.x==f6.K.bU?R.x:null,nP:f6.aB(R.y)?parseFloat(R.y):null,oZ:f6.aB(R.z)?parseFloat(R.z):null,ke:typeof R.tradingApproved==f6.K.eU?R.tradingApproved:null,nY:typeof R.bUnsubscribed==f6.K.eU?R.bUnsubscribed:null,jN:f6.aB(R.latestUpdatedDate)?parseFloat(R.latestUpdatedDate):null}},
 kG:function(L,R){var dO=0.0;var cr=0.0;if(typeof R.takeProfitOnFill!=f6.K.bP&&R.takeProfitOnFill!=null){dO=f6.aB(R.takeProfitOnFill.price)?parseFloat(R.takeProfitOnFill.price):0.0}if(typeof R.stopLossOnFill!=f6.K.bP&&R.stopLossOnFill!=null){cr=f6.aB(R.stopLossOnFill.price)?parseFloat(R.stopLossOnFill.price):0.0}return{yQ:f6.aB(R.accountBalance)?parseFloat(R.accountBalance):null,C:typeof R.accountID==f6.K.bU?R.accountID:null,aRe:typeof R.batchID==f6.K.bU?R.batchID:null,cf:f6.aB(R.commission)?parseFloat(R.commission):null,cs:f6.aB(R.financing)?parseFloat(R.financing):null,bgl:null,G:typeof R.id==f6.K.bU?R.id:null,ja:f6.cu(R.syncTransStep)?parseInt(R.syncTransStep, 10):0,aY:typeof R.instrument==f6.K.bU?R.instrument:null,fJ:typeof R.orderID==f6.K.bU?R.orderID:null,fB:f6.aB(R.pl)?parseFloat(R.pl):null,ai:f6.aB(R.price)?parseFloat(R.price):null,ii:typeof R.reason==f6.K.bU?R.reason:null,mg:typeof R.requestID==f6.K.bU?R.requestID:null,bG:f6.aB(R.time)?parseFloat(R.time):null,bX:typeof R.type==f6.K.bU?R.type:null,oz:f6.aB(R.units)?parseFloat(R.units):null,aq:f6.aB(R.units)?parseFloat(R.units):null,NJ:f6.cu(R.userID)?parseInt(R.userID, 10):null,dO:dO,cr:cr,ih:typeof R.clOrderID==f6.K.bU?R.clOrderID:null,an:typeof R.comment==f6.K.bU?R.comment:null,ce:f6.cu(R.magicNumber)?parseInt(R.magicNumber, 10):null,fw:f6.cu(R.slippage)?parseInt(R.slippage, 10):null,fe:f6.cu(R.expiration)?parseInt(R.expiration, 10):null,L:typeof R.brokerName==f6.K.bU?R.brokerName:null}},

 An:function(R){
  var pm={jh:typeof R.id==f6.K.bU?R.id:null,ja:f6.cu(R.syncTransStep)?parseInt(R.syncTransStep, 10):0,L:typeof R.brokerName==f6.K.bU?R.brokerName:null,C:typeof R.accountID==f6.K.bU?R.accountID:null,bG:f6.aB(R.time)?parseFloat(R.time):null};if(pm.jh==null||pm.bG==null){throw new Error(f6.V.hX)}var jh=f6.cu(pm.jh)?parseInt(pm.jh, 10):null;jh=(jh!=null&&jh==this.ayU.ayF)?null:jh;return{jh:jh,ja:pm.ja,L:pm.L,C:pm.C,bG:pm.bG}
 },

 Vm:function(sH){var aEx=[];if(f6.de(sH)){for(var i in sH){var Js=sH[i];var ai=null;var aq=null;var HH=null;var Xn=null;ai=f6.aB(Js.price)?parseFloat(Js.price):null;aq=f6.aB(Js.units)?parseFloat(Js.units):null;HH=typeof Js.type==f6.K.bU?Js.type:null;if(HH!=f6.aEs.wz&&HH!=f6.aEs.Ew){HH=null}Xn=aq>0?f6.bp.cY:f6.bp.gh;aq=Math.abs(aq);if(ai!=null&&aq!=null&&HH!=null&&Xn!=null){aEx.push({HH:HH,Xn:Xn,ai:ai,aq:aq})}}}return aEx},

 axS:function(L,R){
  var pm={
   jh:typeof R.id==f6.K.bU?R.id:null,
   ja:f6.cu(R.syncTransStep)?parseInt(R.syncTransStep, 10):0,
   L:typeof R.brokerName==f6.K.bU?R.brokerName:null,
   bG:f6.aB(R.time)?parseFloat(R.time):null,
   aS:typeof R.instrument==f6.K.bU?R.instrument:null
  };var GQ=this.Vm(R.orderBookBuyLimit);var Gx=this.Vm(R.orderBookSellLimit);var IC=this.Vm(R.orderBookBuyStop);var ER=this.Vm(R.orderBookSellStop);if(pm.jh==null||pm.L==null||pm.bG==null||pm.aS==null){throw new Error(f6.V.hX)}var wh=null;if(GQ.length>0){GQ.sort(function(a,b){return a.ai-b.ai});wh=0;for(var i=GQ.length-1;i>=0;i -= 1){GQ[i].aq+=wh;wh=GQ[i].aq}}if(Gx.length>0){Gx.sort(function(a,b){return a.ai-b.ai});wh=0;for(var i=Gx.length-1;i>=0;i -= 1){Gx[i].aq+=wh;wh=Gx[i].aq}}if(IC.length>0){IC.sort(function(a,b){return a.ai-b.ai});wh=0;for(var i=IC.length-1;i>=0;i -= 1){IC[i].aq+=wh;wh=IC[i].aq}}if(ER.length>0){ER.sort(function(a,b){return a.ai-b.ai});wh=0;for(var i=ER.length-1;i>=0;i -= 1){ER[i].aq+=wh;wh=ER[i].aq}}var jh=f6.cu(pm.jh)?parseInt(pm.jh, 10):null;jh=(jh!=null&&jh==this.ayU.ayF)?null:jh;return{jh:jh,ja:pm.ja,L:pm.L,bG:pm.bG,aS:pm.aS,GQ:GQ,Gx:Gx,IC:IC,ER:ER}
 },

 ant:function(R){var pf={L:typeof R.brokerName==f6.K.bU?R.brokerName:null,C:typeof R.accountID==f6.K.bU?R.accountID:null,G:typeof R.id==f6.K.bU?R.id:null,ja:f6.cu(R.syncTransStep)?parseInt(R.syncTransStep, 10):0,fJ:typeof R.orderID==f6.K.bU?R.orderID:null,bG:f6.aB(R.time)?parseFloat(R.time):null};if(pf.G==null||pf.L==null||pf.C==null||pf.fJ==null||pf.bG==null){throw new Error(f6.V.hX)}return{jh:f6.cu(pf.G)?parseInt(pf.G, 10):null,ja:pf.ja,G:pf.fJ,bG:pf.bG,jZ:pf.G==pf.fJ,L:pf.L,C:pf.C}},
 aBx:function(L,R){var aa=this.kG(L,R);if(aa.L==null||aa.C==null||aa.G==null||aa.fJ==null||aa.aY==null||aa.bG==null||aa.ai==null||aa.aq==null){throw new Error(f6.V.hX)}return{jh:f6.cu(aa.G)?parseInt(aa.G, 10):null,ja:aa.ja,G:aa.fJ,aY:aa.aY,bb:aa.aq>0?(aa.bX==this.eO.tX?f6.bp.iU:f6.bp.hG):(aa.bX==this.eO.tX?f6.bp.iX:f6.bp.jl),bG:aa.bG,ai:aa.ai,aq:Math.abs(aa.aq),dO:aa.dO,cr:aa.cr,jZ:aa.G==aa.fJ,L:aa.L,C:aa.C,an:aa.an,ce:aa.ce,fe:aa.fe}},
 beT:function(L,R){var qb=this.kG(L,R);if(qb.L==null||qb.C==null||qb.G==null||qb.fJ==null||qb.bG==null||qb.ai==null||qb.ii==null){throw new Error(f6.V.hX)}return{jh:f6.cu(qb.G)?parseInt(qb.G, 10):null,ja:qb.ja,G:qb.fJ,BO:qb.bG,un:qb.ai,ii:qb.ii==this.qr.ajF?f6.ct.oA:(qb.ii==this.eO.fe?f6.ct.fe:null),jZ:false,L:qb.L,C:qb.C}},
 bfW:function(L,R){var gs=this.kG(L,R);if(gs.L==null||gs.C==null||gs.G==null||gs.fJ==null||gs.aY==null||gs.bG==null||gs.ai==null||gs.aq==null){throw new Error(f6.V.hX)}return{jh:f6.cu(gs.G)?parseInt(gs.G, 10):null,ja:gs.ja,G:gs.fJ,aY:gs.aY,bb:gs.aq>0?(gs.bX==this.eO.zn?f6.bp.cY:(gs.bX==this.eO.tX?f6.bp.iU:f6.bp.hG)):(gs.bX==this.eO.zn?f6.bp.gh:(gs.bX==this.eO.tX?f6.bp.iX:f6.bp.jl)),BO:gs.bG,ai:gs.ai,un:gs.ai,aq:Math.abs(gs.aq),dO:gs.dO,cr:gs.cr,ii:f6.ct.si,jZ:gs.G==gs.fJ,L:gs.L,C:gs.C}},
 aBR:function(L,R){var rj=this.kG(L,R);rj.apu=null;rj.ek=null;if(f6.de(R.tradesClosed)&&R.tradesClosed.length>0){if(typeof R.tradesClosed[0].tradeID==f6.K.bU){rj.ek=R.tradesClosed[0].tradeID}}if(rj.L==null||rj.C==null||rj.G==null||rj.ek==null||rj.bG==null){throw new Error(f6.V.hX)}return{jh:f6.cu(rj.G)?parseInt(rj.G, 10):null,ja:rj.ja,G:rj.ek,bG:rj.bG,dO:rj.dO,cr:rj.cr,jZ:false,L:rj.L,C:rj.C}},
 Wb:function(L,R){var cX=this.kG(L,R);cX.aFf=null;if(cX.L==null||cX.C==null||cX.G==null||cX.aY==null||cX.bG==null||cX.ai==null||cX.aq==null||cX.fB==null||cX.cf==null||cX.fJ==null){throw new Error(f6.V.hX)}return{jh:f6.cu(cX.G)?parseInt(cX.G, 10):null,ja:cX.ja,G:cX.G,aY:cX.aY,bb:cX.aq>0?f6.bp.cY:f6.bp.gh,ft:cX.bG,fs:cX.ai,kw:Math.abs(cX.aq),dO:cX.dO,cr:cX.cr,cs:0.0,cf:cX.cf,ir:0.0,fJ:cX.fJ,jZ:true,L:cX.L,C:cX.C,an:cX.an,ce:cX.ce}},
 TJ:function(L,R){var cX=this.kG(L,R);cX.apu=null;cX.ek=null;if(f6.de(R.tradesClosed)&&R.tradesClosed.length>0){if(typeof R.tradesClosed[0].tradeID==f6.K.bU){cX.ek=R.tradesClosed[0].tradeID}}if(cX.L==null||cX.C==null||cX.G==null||cX.aY==null||cX.bG==null||cX.ai==null||cX.aq==null||cX.fB==null||cX.ek==null||cX.cf==null||cX.cs==null){throw new Error(f6.V.hX)}return{jh:f6.cu(cX.G)?parseInt(cX.G, 10):null,ja:cX.ja,G:cX.ek,aY:cX.aY,bb:cX.aq<0?f6.bp.cY:f6.bp.gh,ft:null,fs:null,kq:cX.bG,kb:cX.ai,jc:Math.abs(cX.aq),cs:cX.cs,fQ:cX.fB,cf:cX.cf,aqd:cX.G,jZ:true,L:cX.L,C:cX.C,an:cX.an,ce:cX.ce}},
 Vt:function(R){var pu={L:typeof R.brokerName==f6.K.bU?R.brokerName:null,C:typeof R.accountID==f6.K.bU?R.accountID:null,G:typeof R.id==f6.K.bU?R.id:null,ja:f6.cu(R.syncTransStep)?parseInt(R.syncTransStep, 10):0,bG:f6.aB(R.time)?parseFloat(R.time):null};if(pu.L==null||pu.C==null||pu.G==null||pu.bG==null){throw new Error(f6.V.hX)}return{jh:f6.cu(pu.G)?parseInt(pu.G, 10):null,ja:pu.ja,G:pu.G,bG:pu.bG,jZ:true,L:pu.L,C:pu.C}},
 aBD:function(L,R){var nz=this.kG(L,R);if(nz.L==null||nz.C==null||nz.G==null||nz.bG==null||nz.oz==null||nz.cf==null){throw new Error(f6.V.hX)}return{jh:f6.cu(nz.G)?parseInt(nz.G, 10):null,ja:nz.ja,L:nz.L,C:nz.C,G:nz.G,ih:nz.ih,bG:nz.bG,hm:nz.oz,cf:nz.cf,jZ:true,an:nz.an,vU:nz.mg}},
 aCo:function(L,R){var sN=this.kG(L,R);if(sN.L==null||sN.C==null||sN.G==null||sN.bG==null||sN.ih==null||sN.ih==""){throw new Error(f6.V.hX)}return{jh:f6.cu(sN.G)?parseInt(sN.G, 10):null,ja:sN.ja,L:sN.L,C:sN.C,G:sN.G,ih:sN.ih,bG:sN.bG,jZ:false}},
 aCw:function(L,R){var ys=this.kG(L,R);if(ys.L==null||ys.C==null||ys.G==null||ys.bG==null){throw new Error(f6.V.hX)}return{jh:f6.cu(ys.G)?parseInt(ys.G, 10):null,ja:ys.ja,L:ys.L,C:ys.C,G:ys.G,bG:ys.bG}},
 aBy:function(L,R){var yX=this.kG(L,R);if(yX.L==null||yX.C==null||yX.G==null||yX.bG==null){throw new Error(f6.V.hX)}return{jh:f6.cu(yX.G)?parseInt(yX.G, 10):null,ja:yX.ja,L:yX.L,C:yX.C,G:yX.G,bG:yX.bG}},
 adk:function(L,C,R){var H=null;var dP=null;try{if(typeof R.type!=f6.K.bP&&R.type){if(R.type==this.eO.ts){H=this.An(R);H.C=C;dP=f6.ct.ts}else if(R.type==this.eO.zn){H=this.ant(R);dP=f6.ct.xM}else if(R.type==this.eO.VF){H=this.An(R);dP=f6.ct.xM}else if(R.type==this.eO.tX){H=this.aBx(L,R);dP=f6.ct.aa}else if(R.type==this.eO.LH){H=this.aBx(L,R);dP=f6.ct.aa}else if(R.type==this.eO.LQ){H=this.aBR(L,R);dP=f6.ct.aL}else if(R.type==this.eO.LO){H=this.aBR(L,R);dP=f6.ct.aL}else if(R.type==this.eO.oA){H=this.beT(L,R);dP=f6.ct.oA}else if(R.type==this.eO.qn){H=this.bfW(L,R);dP=f6.ct.si}else if(R.type==this.eO.sJ){H=this.An(R);dP=f6.ct.xM;throw new Error(f6.V.azp+"("+f6.fd(L)+", "+C+")")}else if(R.type==this.eO.Io&&typeof R.reason!=f6.K.bP&&(R.reason==this.qr.zn||R.reason==this.qr.tX||R.reason==this.qr.LH)){H=this.Wb(L,R);dP=f6.ct.aL}else if(R.type==this.eO.Io&&typeof R.reason!=f6.K.bP&&(R.reason==this.qr.Xs||R.reason==this.qr.LQ||R.reason==this.qr.LO)){H=this.TJ(L,R);dP=f6.ct.dI}else if(R.type==this.eO.anb){H=this.Vt(R);dP=f6.ct.cs}else if(R.type==this.eO.rE){H=this.An(R);dP=f6.ct.xM;throw new Error(f6.V.azr+"("+f6.fd(L)+", "+C+")")}else if(R.type==this.eO.uW){H=this.An(R);dP=f6.ct.xM;throw new Error(f6.V.arT+"("+f6.fd(L)+", "+C+")")}else if(R.type==this.eO.xR){H=this.aBD(L,R);dP=f6.ct.xR}else if(R.type==this.eO.Gr){H=this.aCo(L,R);dP=f6.ct.Gr}else if(R.type==this.eO.ke){H=this.aCw(L,R);dP=f6.ct.ke}else if(R.type==this.eO.EP){H=this.aBy(L,R);dP=f6.ct.EP}else if(R.type==this.eO.Sp){H=this.An(R);dP=f6.ct.xM}else if(R.type==this.eO.qj){H=this.An(R);dP=f6.ct.xM;throw new Error(f6.V.aSM+"("+f6.fd(L)+", "+C+")")}else if(R.type==this.eO.sH){H=this.axS(L,R);dP=f6.ct.sH}else if(R.type==this.eO.yT){H={};dP=f6.ct.yT}else{H=this.An(R);dP=f6.ct.xM}}}catch(e){f6.aN(JSON.stringify(R)+" "+e.message);f6.gQ(e.message)}if(H!=null){this.gO.vX({L:L,C:C,dP:dP,H:H})}},
 BH:function(L,C){var aG=this;this.jU.Al.vk(L,C,{},function(R){aG.adk(L,C,R)})},
 alK:function(vR){var L=vR.L,C=vR.C,KB=vR.KB;var aG=this;return new Promise(function(cj,ab){aG.jU.Al.aBm(L,C,{id:KB+""}).then(function(bE){if(f6.de(bE.transactions)){for(var i in bE.transactions){aG.adk(L,C,bE.transactions[i])}cj()}else{f6.aN(f6.V.QH);f6.gQ(f6.V.QH);ab()}}).catch(function(){ab()})})},
 yR:function(L,C){this.jU.Al.vr(L,C)},

 Dx:function(cL){
  var L=cL.L,C=cL.C,aY=cL.aY,oz=null,bX=null,ai=cL.ai,fw=cL.fw,bH=cL.bH,ck=cL.ck,eH=cL.eH,an=cL.an,ce=cL.ce,fe=cL.fe;if(cL.bb==f6.bp.cY){bX=this.jG.Jd;oz=bH}else if(cL.bb==f6.bp.gh){bX=this.jG.Jd;oz= -bH}else if(cL.bb==f6.bp.iU){bX=this.jG.wz;oz=bH}else if(cL.bb==f6.bp.iX){bX=this.jG.wz;oz= -bH}else if(cL.bb==f6.bp.hG){bX=this.jG.Ew;oz=bH}else if(cL.bb==f6.bp.jl){bX=this.jG.Ew;oz= -bH}var aG=this;return new Promise(function(cj,ab){
   var Sl=null;var Np=null;if(ck>0.0){Sl={price:ck}}if(eH>0.0){Np={price:eH}}var Sg={instrument:aY,units:oz,clientExtensions:{id:"",tag:"",comment:an,magicNumber:ce,slippage:fw,expiration:fe},price:ai,type:bX,takeProfitOnFill:Sl,stopLossOnFill:Np};aG.jU.yH.aCd(L,C,Sg).then(function(bE){if(typeof bE.id!=f6.K.bP){cj(bE.id+"")}else{f6.aN(f6.V.axk);f6.gQ(f6.V.axk);ab()}}).catch(function(){ab()});
  });
 },

 HX:function(cL){
  var L=cL.L,C=cL.C,fJ=cL.fJ,aY=cL.aY,oz=null,bX=null,ai=cL.ai,fw=cL.fw,bH=cL.bH,ck=cL.ck,eH=cL.eH,an=cL.an,ce=cL.ce,fe=cL.fe;if(cL.bb==f6.bp.cY){bX=this.jG.Jd;oz=bH}else if(cL.bb==f6.bp.gh){bX=this.jG.Jd;oz= -bH}else if(cL.bb==f6.bp.iU){bX=this.jG.wz;oz=bH}else if(cL.bb==f6.bp.iX){bX=this.jG.wz;oz= -bH}else if(cL.bb==f6.bp.hG){bX=this.jG.Ew;oz=bH}else if(cL.bb==f6.bp.jl){bX=this.jG.Ew;oz= -bH}var aG=this;return new Promise(function(cj,ab){
   var Sl=null;var Np=null;if(ck>0.0){Sl={price:ck}}if(eH>0.0){Np={price:eH}}var Sg={instrument:aY,units:oz,clientExtensions:{id:"",tag:"",comment:an,magicNumber:ce,slippage:fw,expiration:fe},price:ai,type:bX,takeProfitOnFill:Sl,stopLossOnFill:Np};aG.jU.yH.EC(L,C,fJ,Sg).then(function(bE){if(typeof bE.id!=f6.K.bP){cj(bE.id+"")}else{f6.aN(f6.V.ayd);f6.gQ(f6.V.ayd);ab()}}).catch(function(){ab()});
  });
 },

 GE:function(cL){var L=cL.L,C=cL.C,fJ=cL.fJ;var aG=this;return new Promise(function(cj,ab){aG.jU.yH.aWc(L,C,fJ).then(function(bE){if(typeof bE.id!=f6.K.bP){cj(bE.id+"")}else{f6.aN(f6.V.axO);f6.gQ(f6.V.axO);ab()}}).catch(function(){ab()})})},

 HE:function(cL){var L=cL.L,C=cL.C,ek=cL.ek,ck=cL.ck,eH=cL.eH,QC=this.YG.sx;var aG=this;return new Promise(function(cj,ab){
  var aCh=null;var azl=null;if(ck>0.0){aCh={price:ck}}if(eH>0.0){azl={price:eH}}var Sg={takeProfit:aCh,stopLoss:azl};aG.jU.vG.aXi(L,C,ek,Sg).then(function(bE){if(typeof bE.id!=f6.K.bP){cj(bE.id+"")}else{f6.aN(f6.V.axg);f6.gQ(f6.V.axg);ab()}}).catch(function(){ab()});
 })},

 zt:function(cL){var L=cL.L,C=cL.C,ek=cL.ek,QC=this.YG.sx,ai=cL.ai,fw=cL.fw;var aG=this;return new Promise(function(cj,ab){aG.jU.vG.fF(L,C,ek,{units:QC,price:ai,slippage:fw}).then(function(bE){if(typeof bE.id!=f6.K.bP){cj(bE.id+"")}else{f6.aN(f6.V.axV);f6.gQ(f6.V.axV);ab()}}).catch(function(){ab()})})},
 Jl:function(fu){var bz={C:fu.C,cD:fu.cD,dN:fu.dN,bB:fu.bB,aD:fu.aD,cf:fu.cf,tL:fu.tL,fB:fu.fB,mP:fu.mP,ra:fu.ra,fv:fu.fv,hC:fu.hC,Te:parseInt(fu.gP, 10),ev:fu.ev,eF:fu.eF,eD:fu.eD,ke:fu.ke,nY:fu.nY};if(bz.fv!=null&&bz.hC!=null){bz.jb=Math.round(fu.aD*(bz.fv-bz.hC))/fu.aD}else{bz.jb=null}return bz},
 aPP:function(L,fu){var bz={L:L,C:fu.C,cD:fu.cD,dN:fu.dN,fB:fu.fB,fv:fu.fv,hC:fu.hC,bB:fu.bB,hL:fu.hL,hv:fu.hv,gM:fu.gM,lY:fu.lY,mi:fu.mi,mu:fu.mu,nl:fu.nl,ak:fu.ak,bm:fu.bm,aD:fu.aD,kI:fu.kI,nP:fu.nP,oZ:fu.oZ,ke:fu.ke,jN:fu.jN};if(bz.fv!=null&&bz.hC!=null){bz.jb=Math.round(fu.aD*(bz.fv-bz.hC))/fu.aD}else{bz.jb=null}return bz},
 Ih:function(VZ){var dh=[];for(var i in VZ){var aa=VZ[i];if(aa.dc==f6.fX.lf&&aa.aq!=null&&aa.aq!=0&&aa.xg!=null&&aa.aY!=null&&aa.oK!=null&&aa.ai!=null&&aa.bX!=null){dh.push({G:aa.xg,aY:aa.aY,bb:aa.aq>0?(aa.bX==this.jG.wz?f6.bp.iU:f6.bp.hG):(aa.bX==this.jG.wz?f6.bp.iX:f6.bp.jl),bG:aa.oK,ai:aa.ai,aq:Math.abs(aa.aq),dO:aa.dO,cr:aa.cr,an:aa.an,ce:aa.ce,fe:aa.fe})}}dh.sort(function(a,b){return a.bG-b.bG});return dh},
 XI:function(aux){var fK=[];for(var i in aux){var cG=aux[i];if(cG.dc==f6.fX.uy&&cG.aq!=null&&cG.aq!=0&&cG.xg!=null&&cG.aY!=null&&cG.oK!=null&&cG.wD!=null&&cG.ai!=null&&cG.un!=null&&cG.bX!=null&&cG.ii!=null){fK.push({G:cG.xg,aY:cG.aY,bb:cG.aq>0?(cG.bX==this.jG.wz?f6.bp.iU:f6.bp.hG):(cG.bX==this.jG.wz?f6.bp.iX:f6.bp.jl),oK:cG.oK,BO:cG.wD,ai:cG.ai,aq:Math.abs(cG.aq),dO:cG.dO,cr:cG.cr,un:cG.un,ii:cG.ii,an:cG.an,ce:cG.ce,fe:cG.fe})}}fK.sort(function(a,b){return a.oK-b.oK});return fK},
 HW:function(nV){var dK=[];for(var i in nV){var aL=nV[i];if(aL.dc==f6.lQ.fA&&aL.jc!=null&&aL.jc!=0&&aL.G!=null&&aL.aY!=null&&aL.ft!=null&&aL.ai!=null&&aL.kw!=null&&aL.cs!=null&&aL.cf!=null){dK.push({G:aL.G,aY:aL.aY,bb:aL.jc>0?f6.bp.cY:f6.bp.gh,ft:aL.ft,fs:aL.ai,kw:Math.abs(aL.kw),dO:aL.dO,cr:aL.cr,cs:aL.cs,cf:aL.cf,ir:0.0,an:aL.an,ce:aL.ce})}}dK.sort(function(a,b){return a.ft-b.ft});return dK},
 Ic:function(ga){var cT=[];for(var i in ga){var fD=ga[i];if(fD.dc==f6.lQ.qo&&fD.jc!=null&&fD.jc!=0){var kq=null;var kb=null;var yE=null;var fQ=null;for(var j in ga){var rJ=ga[j];if(rJ.dc==f6.lQ.qo&&rJ.od.length>0&&rJ.od[0]+""===fD.G){kq=rJ.ft;kb=rJ.ai;yE=rJ.cf;fQ=rJ.fQ;break}}if(fD.G!=null&&fD.aY!=null&&fD.ft!=null&&fD.ai!=null&&kq!=null&&kb!=null&&yE!=null&&fD.cs!=null&&fQ!=null&&fD.cf!=null){cT.push({G:fD.G,aY:fD.aY,bb:fD.jc>0?f6.bp.cY:f6.bp.gh,ft:fD.ft,fs:fD.ai,kq:kq,kb:kb,jc:Math.abs(fD.jc),cs:fD.cs,fQ:fQ,cf:fD.cf+yE,dO:fD.dO,cr:fD.cr,an:fD.an,ce:fD.ce})}}}cT.sort(function(a,b){return a.ft-b.ft});return cT},
 EJ:function(xI){var bZ=[];for(var i in xI){var rS=xI[i];if(rS.dc==f6.lQ.vs&&rS.C!=null&&rS.G!=null&&rS.bG!=null&&rS.hm!=null&&rS.cf!=null){bZ.push({C:rS.C,G:rS.G,ih:rS.ih,bG:rS.bG,hm:rS.hm,cf:rS.cf,an:rS.an,vU:rS.vU})}}bZ.sort(function(a,b){return a.bG-b.bG});return bZ},
 Zs:function(eb){var FF=[];for(var i in eb){var fb=eb[i];if(fb.C!=null&&fb.aY!=null&&fb.CT!=null&&fb.cf!=null&&fb.aq!=null&&fb.aq!=0&&fb.ir!=null&&fb.cs!=null){FF.push({C:fb.C,aY:fb.aY,CT:fb.CT,cf:fb.cf,aq:Math.abs(fb.aq),fB:fb.fB,JL:fb.JL,ir:fb.ir,cs:fb.cs,vK:fb.aq>0?f6.bp.cY:f6.bp.gh})}}FF.sort(function(a,b){return b.aq-a.aq});return FF},
 Xa:function(eb){var FF=[];for(var i in eb){var fb=eb[i];if(fb.aY!=null&&fb.aq!=null&&fb.aq!=0){FF.push({aY:fb.aY,aq:fb.aq})}}FF.sort(function(a,b){return b.aq-a.aq});return FF},
 IA:function(NI){var hh=[];for(var i in NI){var oD=NI[i];if(oD.En!=null&&oD.GA!=null&&oD.QB!=null&&oD.aJ!=null&&oD.OJ!=null&&oD.PO!=0&&oD.RC!=null){hh.push({En:oD.En,GA:oD.GA,QB:oD.QB,Yl:oD.Yl,WX:oD.WX,aJ:oD.aJ,OJ:oD.OJ,PO:oD.PO,RC:oD.RC,hv:oD.hv,L:oD.L})}}hh.sort(function(a,b){return a.GA-b.GA});return hh},
 aiL:function(LN){var lO=[];var Lg=[];for(var i in LN){var km=LN[i];if(km.L!=null&&km.Ed!=null&&km.dN!=null&&km.fB!=null&&km.nP!=null&&km.oZ!=null&&km.yx!=null){if(typeof Lg[km.L]==f6.K.bP){Lg[km.L]={L:km.L,km:[]};Lg[km.L].km.push({Ed:km.Ed,dN:km.dN,fB:km.fB,nP:km.nP,oZ:km.oZ,yx:km.yx})}}}for(var i in Lg){Lg[i].km.sort(function(a,b){return a.yx-b.yx});lO.push(Lg[i])}return lO},
 JU:function(eT){var Oc=[];for(var i in eT){var cc=eT[i];if(cc.L!=null&&cc.ao!=null&&cc.gz!=null&&cc.cD!=null&&cc.bB!=null&&cc.aD!=null&&cc.dN!=null){Oc.push({L:cc.L,ao:cc.ao,gz:cc.gz,cD:cc.cD,bB:cc.bB,aD:cc.aD,dN:cc.dN})}}return Oc},
 Pk:function(eJ){var QJ=[];for(var i in eJ){var ds=eJ[i];if(ds.L!=null&&ds.gk!=null&&ds.gU!=null&&ds.kU!=null&&ds.gw!=null&&ds.kW!=null&&ds.dc!=null&&ds.bG!=null){QJ.push({L:ds.L,gk:ds.gk,gU:ds.gU,kU:ds.kU,gw:ds.gw,kW:ds.kW,an:ds.an,dc:ds.dc,bG:ds.bG})}}return QJ},
 YV:function(iW){var Mn=[];for(var i in iW){var eN=iW[i];if(eN.L!=null&&eN.C!=null&&eN.eN!=null){Mn.push({L:eN.L,C:eN.C,eN:eN.eN})}}return Mn},
 VO:function(L,R){if(f6.de(R)){var Pn=[];for(var i in R){Pn.push(this.aon(L,R[i]))}return Pn}else{throw new Error(f6.V.ayR)}},
 VC:function(L,R){if(f6.de(R)){var ga=[];for(var i in R){ga.push(this.Ob(L,R[i]))}return ga}else{throw new Error(f6.V.aiU)}},
 Mq:function(R){if(f6.de(R)){var ga=[];for(var i in R){ga.push(this.anh(R[i]))}return ga}else{throw new Error(f6.V.aNP)}},
 ako:function(L,R){if(f6.de(R)){var pe=[];for(var i in R){pe.push(this.alB(L,R[i]))}return pe}else{throw new Error(f6.V.axB)}},
 agi:function(R){if(f6.de(R)){var hh=[];for(var i in R){hh.push(this.bdM(R[i]))}return hh}else{throw new Error(f6.V.axt)}},
 bck:function(R){if(f6.de(R)){var lO=[];for(var i in R){lO.push(this.bco(R[i]))}return lO}else{throw new Error(f6.V.axt)}},
 baD:function(R){if(f6.de(R)){var eT=[];for(var i in R){eT.push(this.age(R[i]))}return eT}else{throw new Error(f6.V.aNH)}},
 bcj:function(R){if(f6.de(R)){var eJ=[];for(var i in R){eJ.push(this.bfq(R[i]))}return eJ}else{throw new Error(f6.V.aNf)}},
 bdr:function(R){if(f6.de(R)){var iW=[];for(var i in R){iW.push(this.TP(R[i]))}return iW}else{throw new Error(f6.V.aNi)}},
 JX:function(L,R){if(f6.de(R)){var cw=[];for(var i in R){cw.push(this.aPP(L,this.TY(L,R[i])))}return cw}else{throw new Error(f6.V.aNx)}},
 ZX:function(L,C){var aG=this;var aC={bz:null,dh:null,fK:null,dK:null,cT:null,bZ:null};return new Promise(function(Gk,FY){aG.jU.al.gL(L,C).then(function(bE){return new Promise(function(cj,ab){try{if(typeof bE.account!=f6.K.bP){aC.bz=aG.Jl(aG.TY(L,bE.account));aC.dh=aG.Ih(aG.VO(L,bE.account.pendingOrders));aC.fK=aG.XI(aG.VO(L,bE.account.cancelledOrders));aC.cT=aG.Ic(aG.VC(L,bE.account.closedTrades));aC.dK=aG.HW(aG.VC(L,bE.account.openTrades));aC.bZ=aG.EJ(aG.Mq(bE.account.transferFundRecs));cj()}else{f6.aN(f6.V.XK);f6.gQ(f6.V.XK);ab()}}catch(e){f6.aN(e.message);f6.gQ(e.message);ab()}})}).then(function(){Gk(aC)}).catch(function(){FY()})})},
 Ck:function(R){if(f6.de(R)){var ag=[];for(var i in R){var ay=R[i];if(typeof ay.displayName==f6.K.bU&&typeof ay.symbolName==f6.K.bU&&typeof ay.basicCurrency==f6.K.bU&&typeof ay.tradableSymbol==f6.K.bU&&f6.eK(ay.toFixed)&&f6.eK(ay.cyBuySwap)&&f6.eK(ay.cySellSwap)&&f6.eK(ay.trdBuySwap)&&f6.eK(ay.trdSellSwap)&&f6.eK(ay.leverage)&&f6.eK(ay.lotsLimit)&&f6.eK(ay.cyBuyOpnCmmssn)&&f6.eK(ay.cyBuyClsdCmmssn)&&f6.eK(ay.cySellOpnCmmssn)&&f6.eK(ay.cySellClsdCmmssn)&&f6.eK(ay.cyBuyOpnCmmssn2)&&f6.eK(ay.cyBuyClsdCmmssn2)&&f6.eK(ay.cySellOpnCmmssn2)&&f6.eK(ay.cySellClsdCmmssn2)&&f6.eK(ay.bid)&&f6.eK(ay.ask)&&f6.eK(ay.bid2)&&f6.eK(ay.ask2)&&f6.eK(ay.trdBuyOpnCmmssn)&&f6.eK(ay.trdBuyClsdCmmssn)&&f6.eK(ay.trdSellOpnCmmssn)&&f6.eK(ay.trdSellClsdCmmssn)&&f6.eK(ay.lotsMinLimit)&&f6.eK(ay.lotsStep)&&f6.eK(ay.limitStopMin)&&f6.eK(ay.spread)&&f6.eK(ay.lotsUnit)){if(typeof ay.bSpecialDay==f6.K.eU){if(ay.bSpecialDay){if(!f6.dv(ay.specialDay)||ay.specialDay<f6.pj.HU||ay.specialDay>f6.pj.Om){throw new Error(f6.V.qL)}}else{ay.specialDay=null}}else{throw new Error(f6.V.qL)}ag.push({aY:ay.symbolName,aS:ay.displayName,dS:ay.basicCurrency,iz:ay.tradableSymbol,aD:ay.toFixed,PE:ay.cyBuySwap,Rd:ay.cySellSwap,abT:ay.trdBuySwap,Zh:ay.trdSellSwap,IR:ay.bSpecialDay,CQ:ay.specialDay,ox:ay.leverage,ye:ay.lotsLimit,Qp:ay.cyBuyOpnCmmssn,OI:ay.cyBuyClsdCmmssn,OC:ay.cySellOpnCmmssn,PU:ay.cySellClsdCmmssn,aMx:ay.cyBuyOpnCmmssn2,aKY:ay.cyBuyClsdCmmssn2,aMl:ay.cySellOpnCmmssn2,aLK:ay.cySellClsdCmmssn2,ak:ay.bid,bm:ay.ask,aRM:ay.bid2,aTt:ay.ask2,alk:ay.trdBuyOpnCmmssn,ajK:ay.trdBuyClsdCmmssn,alu:ay.trdSellOpnCmmssn,alr:ay.trdSellClsdCmmssn,vL:ay.lotsMinLimit,wS:ay.lotsStep,sY:ay.limitStopMin,fc:ay.spread,ee:ay.lotsUnit})}else{throw new Error(f6.V.qL)}}return ag}else{throw new Error(f6.V.qL)}},
 vD:function(L,C){var aG=this;return new Promise(function(cj,ab){aG.jU.al.AX(L,C,{}).then(function(bE){try{var bB=typeof bE.currency==f6.K.bU?bE.currency:f6.NV(L);var ag=aG.Ck(bE.instruments);cj({bB:bB,ag:ag})}catch(e){f6.aN(e.message);f6.gQ(e.message);ab()}}).catch(function(){ab()})})},
 Fw:function(L,C,mC){var aG=this;var bf={jz:null,cw:null,eb:null,iy:null,bZ:null,ag:null,eT:null};return new Promise(function(Gk,FY){aG.jU.Jr.gL(L,C,mC).then(function(bE){return new Promise(function(cj,ab){try{bf.jz=aG.JX(mC,bE.managers);bf.cw=aG.JX(mC,bE.accounts);bf.eb=aG.Zs(aG.ako(mC,bE.positions));bf.iy=aG.Xa(aG.ako(mC,bE.groupedPositions));bf.ag=aG.Ck(bE.instruments);bf.bZ=aG.EJ(aG.Mq(bE.transferFundRecs));bf.hh=aG.IA(aG.agi(bE.ers));bf.lO=aG.aiL(aG.bck(bE.stats));bf.eT=aG.JU(aG.baD(bE.brokers));bf.eJ=aG.Pk(aG.bcj(bE.copyTrades));bf.iW=aG.YV(aG.bdr(bE.accPrivileges));cj()}catch(e){f6.aN(e.message);f6.gQ(e.message);ab()}})}).then(function(){Gk(bf)}).catch(function(){FY()})})},
 beJ:function(L,R){var pG=this.kG(L,R);if(pG.G==null||pG.L==null||pG.C==null||pG.mg==null||pG.yQ==null||pG.NJ==null||pG.bG==null||pG.an==null||(pG.an!=f6.K.hJ&&pG.an!=f6.K.kO)){throw new Error(f6.V.hX)}return{G:pG.G,L:pG.L,C:pG.C,cD:pG.mg,dN:pG.yQ,fB:0.0,hL:null,hv:false,gM:pG.NJ,lY:0.0,mi:0.0,mu:0.0,nl:0.0,ak:0.0,bm:0.0,kI:"",nP:0.0,oZ:0.0,ke:(pG.an==f6.K.hJ?true:false),jN:pG.bG*1000}},
 beg:function(L,R){var Ix=this.kG(L,R);if(Ix.G==null||Ix.L==null||Ix.C==null){throw new Error(f6.V.hX)}return{G:Ix.G,L:Ix.L,C:Ix.C,hm:Ix.oz}},
 bfk:function(L,R){var xo=this.kG(L,R);var hL=null;if(xo.mg!=null){var arZ=xo.mg.split(":::");if(arZ.length==2){hL=arZ[1]}}if(xo.G==null||xo.L==null||xo.C==null||hL==null||xo.bG==null){throw new Error(f6.V.hX)}return{G:xo.G,L:xo.L,C:xo.C,hL:hL,jN:xo.bG*1000}},

 bfm:function(L,R){
  var uo=this.kG(L,R);var fZ=null;if(uo.an!=null){fZ=uo.an.split(":::")}var kU=null;var gw=null;var kW=null;var an=null;var dc=null;for(var i=0;i<fZ.length;i += 1){if(i==0){if(fZ[i]==f6.K.hJ){kU=true;continue}else if(fZ[i]==f6.K.kO){kU=false;continue}}else if(i==1){if(f6.cu(fZ[i])){gw=parseInt(fZ[i], 10);continue}}else if(i==2){if(f6.aB(fZ[i])){kW=parseFloat(fZ[i]);continue}}else if(i==3){if(fZ[i]==f6.K.SR){an=null}else{an=fZ[i]}continue}else if(i==4){if(f6.cu(fZ[i])){dc=parseInt(fZ[i], 10);continue}}else{throw new Error(f6.V.hX)}throw new Error(f6.V.hX)}if(uo.G==null||uo.L==null||uo.C==null||uo.mg==null||uo.bG==null||kU==null||gw==null||kW==null||dc==null){throw new Error(f6.V.hX)}return{G:uo.G,L:uo.L,C:uo.C,gU:uo.mg,gk:uo.C,kU:kU,gw:gw,kW:kW,an:an,dc:dc,bG:uo.bG}
 },

 beZ:function(L,R){var wr=this.kG(L,R);if(wr.G==null||wr.L==null||wr.C==null||wr.mg==null||wr.bG==null){throw new Error(f6.V.hX)}return{G:wr.G,L:wr.L,C:wr.C,gU:wr.mg,gk:wr.C,an:wr.an,bG:wr.bG}},
 bez:function(L,R){var wn=this.kG(L,R);if(wn.G==null||wn.L==null||wn.C==null||wn.mg==null||wn.bG==null){throw new Error(f6.V.hX)}return{G:wn.G,L:wn.L,C:wn.C,gU:wn.C,gk:wn.mg,an:wn.an,dc:f6.Jo.Nd,bG:wn.bG}},
 beB:function(L,R){var wA=this.kG(L,R);if(wA.G==null||wA.L==null||wA.C==null||wA.mg==null||wA.bG==null){throw new Error(f6.V.hX)}return{G:wA.G,L:wA.L,C:wA.C,gU:wA.C,gk:wA.mg,an:wA.an,bG:wA.bG}},

 beU:function(L,R){
  var tE=this.kG(L,R);var fZ=null;if(tE.an!=null){fZ=tE.an.split(":::")}var kU=null;var gw=null;var kW=null;var an=null;for(var i=0;i<fZ.length;i += 1){if(i==0){if(fZ[i]==f6.K.hJ){kU=true;continue}else if(fZ[i]==f6.K.kO){kU=false;continue}}else if(i==1){if(f6.cu(fZ[i])){gw=parseInt(fZ[i], 10);continue}}else if(i==2){if(f6.aB(fZ[i])){kW=parseFloat(fZ[i]);continue}}else if(i==3){if(fZ[i]==f6.K.SR){an=null}else{an=fZ[i]}continue}else{throw new Error(f6.V.hX)}throw new Error(f6.V.hX)}if(tE.G==null||tE.L==null||tE.C==null||tE.mg==null||tE.bG==null||kU==null||gw==null||kW==null){throw new Error(f6.V.hX)}return{G:tE.G,L:tE.L,C:tE.C,gU:tE.C,gk:tE.mg,kU:kU,gw:gw,kW:kW,an:an,dc:f6.Jo.lf,bG:tE.bG}
 },

 bfH:function(L,R){var vi=this.kG(L,R);if(vi.G==null||vi.L==null||vi.C==null||vi.mg==null||vi.bG==null){throw new Error(f6.V.hX)}return{G:vi.G,L:vi.L,C:vi.C,gU:vi.C,gk:vi.mg,an:vi.an,bG:vi.bG}},
 bfd:function(L,R){var ww=this.kG(L,R);if(ww.G==null||ww.L==null||ww.C==null||ww.mg==null||ww.bG==null){throw new Error(f6.V.hX)}return{G:ww.G,L:ww.L,C:ww.C,gU:ww.mg,gk:ww.C,an:ww.an,dc:f6.Jo.Nd,bG:ww.bG}},
 bfw:function(L,R){var wB=this.kG(L,R);if(wB.G==null||wB.L==null||wB.C==null||wB.mg==null||wB.bG==null){throw new Error(f6.V.hX)}return{G:wB.G,L:wB.L,C:wB.C,gU:wB.mg,gk:wB.C,an:wB.an,bG:wB.bG}},
 bfY:function(L,R){var wI=this.kG(L,R);var eN=null;if(f6.cu(wI.an)){eN=parseInt(wI.an, 10)}if(wI.G==null||wI.L==null||wI.C==null||wI.bG==null||eN==null){throw new Error(f6.V.hX)}return{G:wI.G,L:wI.L,C:wI.C,eN:eN,bG:wI.bG}},
 bes:function(L,R){var Du=this.kG(L,R);var eN=null;if(f6.cu(wI.an)){eN=parseInt(wI.an, 10)}if(Du.G==null||Du.L==null||Du.C==null||Du.bG==null||eN==null){throw new Error(f6.V.hX)}return{G:Du.G,L:Du.L,C:Du.C,eN:eN,bG:Du.bG}},
 bfs:function(L,R){var Ap=this.kG(L,R);var hv=null;if(Ap.an==f6.K.hJ){hv=true}else if(Ap.an==f6.K.kO){hv=false}if(Ap.G==null||Ap.L==null||Ap.C==null||hv==null||Ap.bG==null){throw new Error(f6.V.hX)}return{G:Ap.G,L:Ap.L,C:Ap.C,hv:hv,jN:Ap.bG*1000}},

 bfP:function(L,R){
  var vC=this.kG(L,R);var fZ=null;if(vC.an!=null){fZ=vC.an.split(":::")}var lY=null;var mi=null;var mu=null;var nl=null;var ak=null;var bm=null;for(var i=0;i<fZ.length;i += 1){if(f6.aB(fZ[i])){if(i==0){lY=parseFloat(fZ[i])}else if(i==1){mi=parseFloat(fZ[i])}else if(i==2){mu=parseFloat(fZ[i])}else if(i==3){nl=parseFloat(fZ[i])}else if(i==4){ak=parseFloat(fZ[i])}else if(i==5){bm=parseFloat(fZ[i])}else{throw new Error(f6.V.hX)}}else{throw new Error(f6.V.hX)}}if(vC.G==null||vC.L==null||vC.C==null||vC.NJ==null||lY==null||mi==null||mu==null||nl==null||ak==null||bm==null||vC.bG==null){throw new Error(f6.V.hX)}return{G:vC.G,L:vC.L,C:vC.C,gM:vC.NJ,lY:lY,mi:mi,mu:mu,nl:nl,ak:ak,bm:bm,jN:vC.bG*1000}
 },

 bhw:function(vR){var L=vR.L,C=vR.C,KB=vR.KB;var aG=this;return new Promise(function(cj,ab){aG.jU.Al.aBm(L,C,{id:KB+""}).then(function(bE){if(f6.de(bE.transactions)){for(var i in bE.transactions){aG.adk(L,C,bE.transactions[i])}cj()}else{f6.aN(f6.V.QH);f6.gQ(f6.V.QH);ab()}}).catch(function(){ab()})})},
 GF:function(L,C){var aG=this;this.jU.Jr.vk(L,C,{},function(R){var H=null;var dP=null;try{if(typeof R.type!=f6.K.bP&&R.type){if(R.type==aG.eO.ts){H={};dP=f6.ct.ts}else if(R.type==aG.eO.Io&&typeof R.reason!=f6.K.bP&&(R.reason==aG.qr.zn||R.reason==aG.qr.tX||R.reason==aG.qr.LH)){H=aG.Wb(L,R);if(typeof R.er==f6.K.cO){var hh=aG.IA(aG.agi([R.er]));H.ji=hh.length==1?hh[0]:null}dP=f6.ct.aL}else if(R.type==aG.eO.Io&&typeof R.reason!=f6.K.bP&&(R.reason==aG.qr.Xs||R.reason==aG.qr.LQ||R.reason==aG.qr.LO)){H=aG.TJ(L,R);if(typeof R.er==f6.K.cO){var hh=aG.IA(aG.agi([R.er]));H.ji=hh.length==1?hh[0]:null}dP=f6.ct.dI}else if(R.type==aG.eO.rE){H=aG.An(R);dP=f6.ct.xM;throw new Error(f6.V.azr+"("+L+", "+H.C+")")}else if(R.type==aG.eO.uW){H=aG.An(R);dP=f6.ct.xM;throw new Error(f6.V.arT+"("+L+", "+H.C+")")}else if(R.type==aG.eO.xR){H=aG.aBD(L,R);dP=f6.ct.xR}else if(R.type==aG.eO.Gr){H=aG.aCo(L,R);dP=f6.ct.Gr}else if(R.type==aG.eO.ke){H=aG.aCw(L,R);dP=f6.ct.ke}else if(R.type==aG.eO.Sn){H=aG.bfm(L,R);dP=f6.ct.Sn}else if(R.type==aG.eO.Ss){H=aG.beZ(L,R);dP=f6.ct.Ss}else if(R.type==aG.eO.TQ){H=aG.bez(L,R);dP=f6.ct.TQ}else if(R.type==aG.eO.Tj){H=aG.beB(L,R);dP=f6.ct.Tj}else if(R.type==aG.eO.SO){H=aG.beU(L,R);dP=f6.ct.SO}else if(R.type==aG.eO.SQ){H=aG.bfH(L,R);dP=f6.ct.SQ}else if(R.type==aG.eO.TK){H=aG.bfd(L,R);dP=f6.ct.TK}else if(R.type==aG.eO.SP){H=aG.bfw(L,R);dP=f6.ct.SP}else if(R.type==aG.eO.EP){H=aG.aBy(L,R);dP=f6.ct.EP}else if(R.type==aG.eO.SD){H=aG.bfs(L,R);dP=f6.ct.SD}else if(R.type==aG.eO.SH){H=aG.bfP(L,R);dP=f6.ct.SH}else if(R.type==aG.eO.zy){H=aG.bfY(L,R);dP=f6.ct.zy}else if(R.type==aG.eO.KG){H=aG.bes(L,R);dP=f6.ct.KG}else if(R.type==aG.eO.pU){H=aG.beJ(L,R);dP=f6.ct.pU}else if(R.type==aG.eO.qj){H=aG.beg(L,R);dP=f6.ct.qj}else if(R.type==aG.eO.Xc){H=aG.bfk(L,R);dP=f6.ct.Xc}else if(R.type==aG.eO.sH){H=aG.axS(L,R);dP=f6.ct.sH}else if(R.type==aG.eO.aLg){H=aG.Vt(R);dP=f6.ct.aAL}else if(R.type==aG.eO.yT){H={};dP=f6.ct.yT}}}catch(e){f6.aN(JSON.stringify(R)+" "+e.message);f6.gQ(e.message)}if(H!=null){aG.gO.aeT({L:L,C:C,dP:dP,H:H})}})},
 Dk:function(L,C){this.jU.Jr.vr(L,C)}
};f6o.lL[f6.pK.BD]={
 jU:null,
 aeL:function(jU){this.jU=jU},
 gO:null,
 aeR:function(gO){this.gO=gO},
 aZP:[],
 ae:function(L,C,gP){return L+":::"+C+":::"+gP},
 eO:{ts:"HEARTBEAT",zn:"MARKET_ORDER",tX:"LIMIT_ORDER",LH:"STOP_ORDER",LQ:"TAKE_PROFIT_ORDER",LO:"STOP_LOSS_ORDER",VF:"ORDER_TRIGGERED",Io:"ORDER_FILL",oA:"ORDER_CANCEL",anb:"DAILY_FINANCING",qn:"MARGIN_NOT_ENOUGH_REJECTED",sJ:"MARKET_REJECTED",uW:"BALANCE_NOT_ENOUGH_TO_WITHDRAW",rE:"MARGIN_NOT_ENOUGH_TO_WITHDRAW",xR:"TRANSFER_FUNDS",Sp:"SYNC_BALANCE",pU:"ACCOUNT_CREATED",qj:"ACCOUNT_REMOVED"},
 qr:{aUM:"CLIENT_ORDER",zn:"MARKET_ORDER",Xs:"MARKET_ORDER_TRADE_CLOSE",tX:"LIMIT_ORDER",LH:"STOP_ORDER",LQ:"TAKE_PROFIT_ORDER",LO:"STOP_LOSS_ORDER",VF:"ORDER_TRIGGERED",aVS:"CLOSEOUT",aGM:"SHOP_ORDER",ajJ:"DASHBOARD_ORDER",ajF:"CLIENT_REQUEST"},
 he:{lf:"PENDING",zw:"FILLED",xv:"TRIGGERED",uy:"CANCELLED",xi:"REPLACED",qn:"MARGIN_NOT_ENOUGH_REJECTED",sJ:"MARKET_REJECTED",uW:"BALANCE_NOT_ENOUGH_TO_WITHDRAW",rE:"MARGIN_NOT_ENOUGH_TO_WITHDRAW",sx:"ALL"},
 nX:{fA:"OPEN",qo:"CLOSED",xl:"CLOSE_WHEN_TRADEABLE",vs:"TRANSFERRED",sx:"ALL"},
 YG:{sx:"ALL"},
 aMz:{cY:"B",gh:"S"},
 jG:{Jd:"MARKET",wz:"LIMIT",Ew:"STOP",ck:"TAKE_PROFIT",eH:"STOP_LOSS"},
 aWy:500,
 aGJ:500,
 aoY:function(R){if(typeof R.state==f6.K.bU){if(R.state==this.he.lf){return f6.fX.lf}else if(R.state==this.he.zw&&typeof R.tradeOpenedID!=f6.K.bP){return f6.fX.WZ}else if(R.state==this.he.zw&&typeof R.tradeClosedIDs!=f6.K.bP){return f6.fX.XL}else if(R.state==this.he.xv){return f6.fX.xv}else if(R.state==this.he.uy){return f6.fX.uy}else if(R.state==this.he.xi){return f6.fX.xi}else if(R.state==this.he.qn){return f6.fX.qn}else if(R.state==this.he.sJ){return f6.fX.sJ}else if(R.state==this.he.uW){return f6.fX.uW}else if(R.state==this.he.rE){return f6.fX.rE}else{return R.state+""}}else{return null}},
 Uo:function(R){if(typeof R.state==f6.K.bU){if(R.state==this.nX.fA){return f6.lQ.fA}else if(R.state==this.nX.qo){return f6.lQ.qo}else if(R.state==this.nX.xl){return f6.lQ.xl}else if(R.state==this.nX.vs){return f6.lQ.vs}else{return R.state+""}}else{return null}},
 bbZ:function(kJ){if(kJ==f6.fX.lf){return this.he.lf}else if(kJ==f6.fX.zw){return this.he.zw}else if(kJ==f6.fX.xv){return this.he.xv}else if(kJ==f6.fX.uy){return this.he.uy}else if(kJ==f6.fX.xi){return this.he.xi}else if(kJ==f6.fX.qn){return this.he.qn}else if(kJ==f6.fX.sJ){return this.he.sJ}else if(kJ==f6.fX.uW){return this.he.uW}else if(kJ==f6.fX.rE){return this.he.rE}else{return this.he.sx}},
 bfc:function(kJ){if(kJ==f6.lQ.fA){return this.nX.fA}else if(kJ==f6.lQ.qo){return this.nX.qo}else if(kJ==f6.lQ.xl){return this.nX.xl}else if(kJ==f6.lQ.vs){return this.nX.vs}else{return this.nX.sx}},
 aon:function(L,R){var ee=f6.FS(L);var dc=this.aoY(R);if(dc==f6.fX.lf){return{xg:typeof R.id==f6.K.bU?R.id:null,oK:f6.aB(R.createTime)?parseFloat(R.createTime):null,If:null,wD:null,od:null,aY:typeof R.instrument==f6.K.bU?R.instrument:null,aq:f6.aB(R.units)?Math.abs((parseFloat(R.units)/ee)):null,dc:dc,bX:typeof R.type==f6.K.bU?R.type:null,HK:typeof R.positionFill==f6.K.bU?R.positionFill:null,Fd:typeof R.timeInForce==f6.K.bU?R.timeInForce:null,GH:null}}else if(dc==f6.fX.WZ){return{xg:typeof R.id==f6.K.bU?R.id:null,oK:f6.aB(R.createTime)?parseFloat(R.createTime):null,If:typeof R.fillingTransactionID==f6.K.bU?R.fillingTransactionID:null,wD:f6.aB(R.filledTime)?parseFloat(R.filledTime):null,od:null,aY:typeof R.instrument==f6.K.bU?R.instrument:null,aq:f6.aB(R.units)?(parseFloat(R.units)/ee):null,dc:dc,bX:typeof R.type==f6.K.bU?R.type:null,HK:typeof R.positionFill==f6.K.bU?R.positionFill:null,Fd:typeof R.timeInForce==f6.K.bU?R.timeInForce:null,GH:typeof R.apo==f6.K.bU?R.apo:null}}else if(dc==f6.fX.XL){return{xg:typeof R.id==f6.K.bU?R.id:null,oK:f6.aB(R.createTime)?parseFloat(R.createTime):null,If:typeof R.fillingTransactionID==f6.K.bU?R.fillingTransactionID:null,wD:f6.aB(R.filledTime)?parseFloat(R.filledTime):null,od:f6.de(R.tradeClosedIDs)?R.tradeClosedIDs:[],aY:typeof R.instrument==f6.K.bU?R.instrument:null,aq:f6.aB(R.units)?(parseFloat(R.units)/ee):null,dc:dc,bX:typeof R.type==f6.K.bU?R.type:null,HK:typeof R.positionFill==f6.K.bU?R.positionFill:null,Fd:typeof R.timeInForce==f6.K.bU?R.timeInForce:null,GH:null}}else if(dc==f6.fX.uy){return{xg:typeof R.id==f6.K.bU?R.id:null,oK:f6.aB(R.createTime)?parseFloat(R.createTime):null,If:typeof R.cancellingTransactionID==f6.K.bU?R.cancellingTransactionID:null,wD:f6.aB(R.cancelledTime)?parseFloat(R.cancelledTime):null,od:null,aY:typeof R.instrument==f6.K.bU?R.instrument:null,aq:f6.aB(R.units)?(parseFloat(R.units)/ee):null,dc:dc,bX:typeof R.type==f6.K.bU?R.type:null,HK:typeof R.positionFill==f6.K.bU?R.positionFill:null,Fd:typeof R.timeInForce==f6.K.bU?R.timeInForce:null,GH:null}}},
 Ob:function(L,R){var ee=f6.FS(L);return{G:typeof R.id==f6.K.bU?R.id:null,dc:this.Uo(R),aY:typeof R.instrument==f6.K.bU?R.instrument:null,ft:f6.aB(R.openTime)?parseFloat(R.openTime):null,ai:f6.aB(R.price)?parseFloat(R.price):null,kw:f6.aB(R.currentUnits)?(parseFloat(R.currentUnits)/ee):null,jc:f6.aB(R.initialUnits)?(parseFloat(R.initialUnits)/ee):null,cs:f6.aB(R.financing)?parseFloat(R.financing):null,fQ:f6.aB(R.realizedPL)?parseFloat(R.realizedPL):null,ir:0.0,cf:f6.aB(R.commission)?parseFloat(R.commission):null,od:f6.de(R.tradeClosedIDs)?R.tradeClosedIDs:[]}},

 alB:function(L,R){
  var ee=f6.FS(L);var Nh,aaW,acO,aaI,NK,NT;if(typeof R.long!=f6.K.bP){Nh=f6.aB(R.long.averagePrice)?parseFloat(R.long.averagePrice):null;aaW=f6.aB(R.long.pl)?parseFloat(R.long.pl):null;acO=f6.aB(R.long.resettablePL)?parseFloat(R.long.resettablePL):null;aaI=f6.de(R.long.tradeIDs)?R.long.tradeIDs.join(","):null;NK=f6.aB(R.long.units)?(parseFloat(R.long.units)/ee):null;NT=f6.aB(R.long.unrealizedPL)?parseFloat(R.long.unrealizedPL):null}var My,abI,abp,abe,NB,Pm;if(typeof R.short!=f6.K.bP){My=f6.aB(R.short.averagePrice)?parseFloat(R.short.averagePrice):null;abI=f6.aB(R.short.pl)?parseFloat(R.short.pl):null;abp=f6.aB(R.short.resettablePL)?parseFloat(R.short.resettablePL):null;abe=f6.de(R.short.tradeIDs)?R.short.tradeIDs.join(","):null;NB=f6.aB(R.short.units)?(parseFloat(R.short.units)/ee):null;Pm=f6.aB(R.short.unrealizedPL)?parseFloat(R.short.unrealizedPL):null}return{aY:typeof R.instrument==f6.K.bU?R.instrument:null,cf:f6.aB(R.commission)?parseFloat(R.commission):null,fB:f6.aB(R.pl)?parseFloat(R.pl):null,JL:f6.aB(R.resettablePL)?parseFloat(R.resettablePL):null,ir:f6.aB(R.unrealizedPL)?parseFloat(R.unrealizedPL):null,Nh:Nh,aaW:aaW,acO:acO,aaI:aaI,NK:NK,NT:NT,My:My,abI:abI,abp:abp,abe:abe,NB: -NB,Pm:Pm}
 },

 TY:function(L,R){return{fv:f6.aB(R.NAV)?parseFloat(R.NAV):null,aTr:typeof R.alias==f6.K.bU?R.alias:null,dN:f6.aB(R.balance)?parseFloat(R.balance):null,cf:f6.aB(R.commission)?parseFloat(R.commission):null,aLq:f6.cu(R.createdByUserID)?parseInt(R.createdByUserID, 10):null,aLS:f6.aB(R.createdTime)?parseFloat(R.createdTime):null,bB:typeof R.currency==f6.K.bU?R.currency:f6.NV(L),tL:typeof R.hedgingEnabled==f6.K.eU?R.hedgingEnabled:null,G:typeof R.id==f6.K.bU?R.id:null,gP:typeof R.lastTransactionID==f6.K.bU?R.lastTransactionID:null,jb:f6.aB(R.marginAvailable)?parseFloat(R.marginAvailable):null,aZf:f6.aB(R.marginCallMarginUsed)?parseFloat(R.marginCallMarginUsed):null,aZO:f6.aB(R.marginCallPercent)?parseFloat(R.marginCallPercent):null,aYO:f6.aB(R.marginCloseoutMarginUsed)?parseFloat(R.marginCloseoutMarginUsed):null,aYe:f6.aB(R.marginCloseoutNAV)?parseFloat(R.marginCloseoutNAV):null,aYa:f6.aB(R.marginCloseoutPercent)?parseFloat(R.marginCloseoutPercent):null,aYK:f6.aB(R.marginCloseoutPositionValue)?parseFloat(R.marginCloseoutPositionValue):null,aZk:f6.aB(R.marginCloseoutUnrealizedPL)?parseFloat(R.marginCloseoutUnrealizedPL):null,aYj:f6.aB(R.marginRate)?parseFloat(R.marginRate):null,hC:f6.aB(R.marginUsed)?parseFloat(R.marginUsed):null,aWo:f6.dv(R.openPositionCount)?R.openPositionCount:null,aWx:f6.dv(R.openTradeCount)?R.openTradeCount:null,bbi:f6.dv(R.pendingOrderCount)?R.pendingOrderCount:null,fB:f6.aB(R.pl)?parseFloat(R.pl):null,aZX:f6.aB(R.positionValue)?parseFloat(R.positionValue):null,JL:f6.aB(R.resettablePL)?parseFloat(R.resettablePL):null,ir:f6.aB(R.unrealizedPL)?parseFloat(R.unrealizedPL):null,amD:f6.aB(R.withdrawalLimit)?parseFloat(R.withdrawalLimit):null,aD:f6.aB(R.toFixed)?parseFloat(R.toFixed):f6.yd(L),mP:f6.aB(R.marginCallLevel)?parseFloat(R.marginCallLevel):null,ra:f6.aB(R.marginCloseoutLevel)?parseFloat(R.marginCloseoutLevel):null}},
 ant:function(R){var pf={G:typeof R.id==f6.K.bU?R.id:null,bG:f6.aB(R.time)?parseFloat(R.time):null};if(pf.G==null||pf.bG==null){throw new Error(f6.V.hX)}return{G:pf.G,bG:pf.bG}},
 kG:function(L,R){return{yQ:f6.aB(R.accountBalance)?parseFloat(R.accountBalance):null,C:typeof R.accountID==f6.K.bU?R.accountID:null,aRe:typeof R.batchID==f6.K.bU?R.batchID:null,cf:f6.aB(R.commission)?parseFloat(R.commission):null,cs:f6.aB(R.financing)?parseFloat(R.financing):null,bgl:null,G:typeof R.id==f6.K.bU?R.id:null,aY:typeof R.instrument==f6.K.bU?R.instrument:null,fJ:typeof R.orderID==f6.K.bU?R.orderID:null,fB:f6.aB(R.pl)?parseFloat(R.pl):null,ai:f6.aB(R.price)?parseFloat(R.price):null,ii:typeof R.reason==f6.K.bU?R.reason:null,mg:typeof R.requestID==f6.K.bU?R.requestID:null,bG:f6.aB(R.time)?parseFloat(R.time):null,bX:typeof R.type==f6.K.bU?R.type:null,oz:f6.aB(R.units)?parseFloat(R.units):null,aq:f6.aB(R.units)?(parseFloat(R.units)/f6.FS(L)):null,NJ:f6.cu(R.userID)?parseInt(R.userID, 10):null}},
 Wb:function(L,R){var cX=this.kG(L,R);cX.aFf=null;if(cX.G==null||cX.aY==null||cX.bG==null||cX.ai==null||cX.aq==null||cX.fB==null||cX.cf==null){throw new Error(f6.V.hX)}return{G:cX.G,aY:cX.aY,bb:cX.aq>0?f6.bp.cY:f6.bp.gh,ft:cX.bG,fs:cX.ai,kw:Math.abs(cX.aq),dO:null,cr:null,cs:0.0,cf:cX.cf,ir:0.0}},
 TJ:function(L,R){var cX=this.kG(L,R);cX.apu=null;cX.ek=null;if(f6.de(R.tradesClosed)&&R.tradesClosed.length>0){if(typeof R.tradesClosed[0].tradeID==f6.K.bU){cX.ek=R.tradesClosed[0].tradeID}}if(cX.G==null||cX.aY==null||cX.bG==null||cX.ai==null||cX.aq==null||cX.fB==null||cX.ek==null||cX.cf==null){throw new Error(f6.V.hX)}return{G:cX.ek,aY:cX.aY,bb:cX.aq<0?f6.bp.cY:f6.bp.gh,ft:null,fs:null,kq:cX.bG,kb:cX.ai,jc:Math.abs(cX.aq),cs:0.0,fQ:cX.fB,cf:cX.cf,aqd:cX.G}},
 Vt:function(R){var pu={G:typeof R.id==f6.K.bU?R.id:null,bG:f6.aB(R.time)?parseFloat(R.time):null};if(pu.G==null||pu.bG==null){throw new Error(f6.V.hX)}return{G:pu.G,bG:pu.bG,cs:pu.cs}},
 BH:function(L,C){var aG=this;this.jU.Al.vk(L,C,function(R){var H=null;var dP=null;try{if(typeof R.type!=f6.K.bP&&R.type){if(R.type==aG.eO.ts){}else if(R.type==aG.eO.zn){H=aG.ant(R);dP=f6.ct.aa;return}else if(R.type==aG.eO.qn){throw new Error(f6.V.Ox)}else if(R.type==aG.eO.sJ){throw new Error(f6.V.azp)}else if(R.type==aG.eO.Io&&typeof R.reason!=f6.K.bP&&R.reason==aG.qr.zn){H=aG.Wb(L,R);dP=f6.ct.aL}else if(R.type==aG.eO.Io&&typeof R.reason!=f6.K.bP&&R.reason==aG.qr.Xs){H=aG.TJ(L,R);dP=f6.ct.dI}else if(R.type==aG.eO.anb){H=aG.Vt(R);dP=f6.ct.cs}}}catch(e){f6.aN(JSON.stringify(R)+" "+e.message);f6.gQ(e.message)}if(H!=null){aG.gO.vX({L:L,C:C,dP:dP,H:H})}})},
 yR:function(L,C){},

 Dx:function(cL){var L=cL.L,C=cL.C,aY=cL.aY,bb=cL.bb,ai=cL.ai,fw=cL.fw,bH=cL.bH,ck=cL.ck,eH=cL.eH,an=cL.an;var aG=this;return new Promise(function(cj,ab){if(true){var ee=f6.FS(L);var aZp={
  instrument:aY,
  units:bb==f6.bp.cY?(bH*ee): -(bH*ee),

  clientExtensions:{
   id:"",
   tag:"",
   comment:an
  },

  type:aG.jG.Jd
 };aG.jU.yH.aCd(L,C,aZp).then(function(bE){cj("")}).catch(function(){ab()})}})},

 zt:function(cL){var L=cL.L,C=cL.C,ek=cL.ek,ai=0,QC=this.YG.sx;var aG=this;return new Promise(function(cj,ab){aG.jU.vG.fF(L,C,ek,{units:QC}).then(function(bE){cj("")}).catch(function(){ab()})})},
 Jl:function(fu){var bz={dN:fu.dN,bB:fu.bB,aD:fu.aD,cf:fu.cf,tL:fu.tL,fB:fu.fB,mP:fu.mP,ra:fu.ra,fv:fu.fv,hC:fu.hC};if(bz.fv!=null&&bz.hC!=null){bz.jb=Math.round(fu.aD*(bz.fv-bz.hC))/fu.aD}else{bz.jb=null}return bz},
 HW:function(nV){var dK=[];for(var i in nV){if(nV[i].dc==f6.lQ.fA&&nV[i].jc!=null&&nV[i].jc!=0&&nV[i].G!=null&&nV[i].aY!=null&&nV[i].ft!=null&&nV[i].ai!=null&&nV[i].kw!=null){dK.push({G:nV[i].G,aY:nV[i].aY,bb:nV[i].jc>0?f6.bp.cY:f6.bp.gh,ft:nV[i].ft,fs:nV[i].ai,kw:Math.abs(nV[i].kw),dO:null,cr:null,cs:nV[i].cs,cf:nV[i].cf,ir:0.0})}}dK.sort(function(a,b){return a.ft-b.ft});return dK},
 Ic:function(ga){var cT=[];for(var i in ga){if(ga[i].dc==f6.lQ.qo&&ga[i].jc!=null&&ga[i].jc!=0){var kq=null;var kb=null;var yE=null;var fQ=null;for(var j in ga){if(ga[j].dc==f6.lQ.qo&&ga[j].od.length>0&&ga[j].od[0]+""===ga[i].G){kq=ga[j].ft;kb=ga[j].ai;yE=ga[j].cf;fQ=ga[j].fQ;break}}if(ga[i].G!=null&&ga[i].aY!=null&&ga[i].ft!=null&&ga[i].ai!=null&&kq!=null&&kb!=null&&yE!=null&&ga[i].cs!=null&&fQ!=null&&ga[i].cf!=null){cT.push({G:ga[i].G,aY:ga[i].aY,bb:ga[i].jc>0?f6.bp.cY:f6.bp.gh,ft:ga[i].ft,fs:ga[i].ai,kq:kq,kb:kb,jc:Math.abs(ga[i].jc),cs:ga[i].cs,fQ:fQ,cf:ga[i].cf+yE})}}}cT.sort(function(a,b){return a.ft-b.ft});return cT},
 Ih:function(VZ){return VZ},
 VO:function(L,R){if(f6.de(R)){var Pn=[];for(var i in R){Pn.push(this.aon(L,R[i]))}return Pn}else{throw new Error(f6.V.ayR)}},
 VC:function(L,R){if(f6.de(R)){var ga=[];for(var i in R){ga.push(this.Ob(L,R[i]))}return ga}else{throw new Error(f6.V.aiU)}},
 ako:function(L,R){if(f6.de(R)){var pe=[];for(var i in R){pe.push(this.alB(L,R[i]))}return pe}else{throw new Error(f6.V.axB)}},
 ZX:function(L,C){var aG=this;var aC={bz:null,dh:null,dK:null,cT:null};return new Promise(function(Gk,FY){aG.jU.al.gL(L,C).then(function(bE){return new Promise(function(cj,ab){try{if(typeof bE.account!=f6.K.bP){aC.bz=aG.Jl(aG.TY(L,bE.account));aC.dh=aG.Ih(aG.VO(L,bE.account.orders));aC.cT=[];aC.dK=aG.HW(aG.VC(L,bE.account.trades));cj()}else{f6.aN(f6.V.XK);f6.gQ(f6.V.XK);ab()}}catch(e){f6.aN(e.message);f6.gQ(e.message);ab()}})}).then(function(){Gk(aC)}).catch(function(){FY()})})},
 Ck:function(L,R){if(f6.de(R)){var ag=[];var ee=f6.FS(L);for(var i in R){if(typeof R[i].displayName==f6.K.bU&&typeof R[i].name==f6.K.bU&&f6.aB(R[i].displayPrecision)&&typeof R[i].displayPrecision!=f6.K.bU&&f6.aB(R[i].marginRate)&&typeof R[i].marginRate==f6.K.bU&&f6.aB(R[i].maximumOrderUnits)&&typeof R[i].maximumOrderUnits==f6.K.bU){var aX=R[i].name.split("_");if(aX.length!=2){throw new Error(f6.V.qL)}ag.push({aY:R[i].name,aS:R[i].displayName,dS:aX[1],iz:aX[0],aD:Math.pow(10,R[i].displayPrecision),PE:0.0,Rd:0.0,abT:0.0,Zh:0.0,IR:true,CQ:3,ox:1.0/parseFloat(R[i].marginRate),ye:parseFloat(R[i].maximumOrderUnits)/ee,Qp:0.0,OI:0.0,OC:0.0,PU:0.0,alk:0.0,ajK:0.0,alu:0.0,alr:0.0,vL:parseFloat(R[i].minimumTradeSize)/ee,wS:parseFloat(R[i].minimumTradeSize)/ee,sY:0.0})}else{throw new Error(f6.V.qL)}}return ag}else{throw new Error(f6.V.qL)}},
 vD:function(L,C){var aG=this;return new Promise(function(cj,ab){aG.jU.al.AX(L,C,{}).then(function(bE){try{cj(aG.Ck(L,bE.instruments))}catch(e){f6.aN(e.message);f6.gQ(e.message);ab()}}).catch(function(){ab()})})}
};f6o.eY={};f6o.eY.jK=function(uf,hW,nL,vt,cn){return new Promise(function(cj,ab){try{var dA=new XMLHttpRequest();if(nL===f6.bx.hg||nL===f6.bx.EA){dA.open(nL,uf+hW,true);dA.setRequestHeader(f6.bx.apw,f6.bx.auX);dA.setRequestHeader(f6.bx.NC,f6.bx.CW+" "+cn);dA.send(JSON.stringify(vt))}else if(nL===f6.bx.gL){dA.open(nL,uf+hW+"?"+f6.Sh(vt),true);dA.setRequestHeader(f6.bx.NC,f6.bx.CW+" "+cn);dA.send(null)}else{throw new Error(f6.V.Mg)}dA.onreadystatechange=function(){if(dA.readyState==4){if(dA.status==200||dA.status==0){try{if(dA.responseText!=""){cj(JSON.parse(dA.responseText))}else{cj(dA.responseText)}}catch(e){f6.aN(e.message);f6.gQ(e.message);ab()}}else{f6.aN(dA.status+" "+dA.responseText);f6.gQ(dA.status+" "+dA.responseText);ab()}}};dA.onerror=function(){f6.aN(f6.V.Mb);ab()}}catch(e){f6.aN(e.message);f6.gQ(e.message);ab()}})};f6o.eY.sQ=[];f6o.eY.vk=function(rV,hW,nL,vt,aj){try{if(nL===f6.bx.gL){if(f6.qN(self.EventSource)){this.vr(rV,hW);this.sQ[rV+hW]=new self.EventSource(rV+hW+"?"+f6.Sh(vt),{withCredentials:true});this.sQ[rV+hW].addEventListener(f6.dr.nN,function(e){try{aj(JSON.parse(e.data))}catch(e){f6.aN(e.message);f6.gQ(e.message)}},false);this.sQ[rV+hW].addEventListener(f6.dr.fA,function(e){},false);this.sQ[rV+hW].addEventListener(f6.dr.oJ,function(e){if(e.readyState==self.EventSource.CLOSED){}f6.aN(f6.V.Mb+" ("+rV+hW+")");aj({type:f6.ct.yT})},false)}else{}}else{throw new Error(f6.V.Mg)}}catch(e){f6.aN(e.message);f6.gQ(e.message)}};f6o.eY.vr=function(uf,hW){if(typeof this.sQ[uf+hW]!=f6.K.bP){this.sQ[uf+hW].close();delete this.sQ[uf+hW]}};f6o.eY.al={};f6o.eY.al.AX=function(L,C,Lb){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/instruments",f6.bx.gL,Lb,f6.kc(L,C))};f6o.eY.al.gL=function(L,C){return f6o.eY.jK(f6.fG(L),"/accounts/"+C,f6.bx.gL,{},f6.kc(L,C))};f6o.eY.Al={};f6o.eY.Al.aed=function(L,C,kB){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/transactions",f6.bx.gL,kB,f6.kc(L,C))};f6o.eY.Al.aBm=function(L,C,kB){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/transactions/sinceid",f6.bx.gL,kB,f6.kc(L,C))};f6o.eY.Al.gL=function(L,C,aFp){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/transactions/"+aFp,f6.bx.gL,{},f6.kc(L,C))};f6o.eY.Al.vk=function(L,C,kB,aj){f6o.eY.vk(f6.VI(L),"/accounts/"+C+"/transactions/stream",f6.bx.gL,{aH:f6.bx.CW+" "+f6.kc(L,C)},aj)};f6o.eY.Al.vr=function(L,C){f6o.eY.vr(f6.VI(L),"/accounts/"+C+"/transactions/stream")};f6o.eY.vG={};f6o.eY.vG.aed=function(L,C,kB){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/trades",f6.bx.gL,kB,f6.kc(L,C))};f6o.eY.vG.aXY=function(L,C){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/openTrades",f6.bx.gL,{},f6.kc(L,C))};f6o.eY.vG.gL=function(L,C,PP){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/trades/"+PP,f6.bx.gL,{},f6.kc(L,C))};f6o.eY.vG.fF=function(L,C,PP,akt){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/trades/"+PP+"/close",f6.bx.EA,akt,f6.kc(L,C))};f6o.eY.vG.aXi=function(L,C,PP,RR){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/trades/"+PP+"/orders",f6.bx.EA,RR,f6.kc(L,C))};f6o.eY.yH={};f6o.eY.yH.aed=function(L,C,kB){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/orders",f6.bx.gL,kB,f6.kc(L,C))};f6o.eY.yH.bhq=function(L,C){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/pendingOrders",f6.bx.gL,{},f6.kc(L,C))};f6o.eY.yH.gL=function(L,C,OO){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/orders/"+OO,f6.bx.gL,{},f6.kc(L,C))};f6o.eY.yH.aCd=function(L,C,RR){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/orders",f6.bx.hg,RR,f6.kc(L,C))};f6o.eY.yH.aWc=function(L,C,OO){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/orders/"+OO+"/cancel",f6.bx.EA,{},f6.kc(L,C))};f6o.eY.yH.EC=function(L,C,OO,RR){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/orders/"+OO,f6.bx.EA,RR,f6.kc(L,C))};f6o.eY.WG={};f6o.eY.WG.aed=function(L,C){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/positions",f6.bx.gL,{},f6.kc(L,C))};f6o.eY.WG.aXY=function(L,C){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/openPositions",f6.bx.gL,{},f6.kc(L,C))};f6o.eY.WG.gL=function(L,C,aaA){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/positions/"+aaA,f6.bx.gL,{},f6.kc(L,C))};f6o.eY.WG.fF=function(L,C,aaA,akt){return f6o.eY.jK(f6.fG(L),"/accounts/"+C+"/positions/"+aaA+"/close",f6.bx.EA,akt,f6.kc(L,C))};