/*
 * 
 *  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 f6d={};var f6=f6d;
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.indexedDB=self.indexedDB||self.mozIndexedDB||self.webkitIndexedDB||self.msIndexedDB;self.IDBTransaction=self.IDBTransaction||self.webkitIDBTransaction||self.msIDBTransaction||{READ_WRITE:"readwrite"};self.IDBKeyRange=self.IDBKeyRange||self.webkitIDBKeyRange||self.msIDBKeyRange;self.addEventListener(f6.dr.oJ,function(cz){});self.addEventListener(f6.dr.nN,function(cz){if(cz.data.gV==f6.cF.Vl){(function(){f6.Ik();f6.fC=cz.data.bQ.gw;f6d.ro[f6.pK.au].aaq(f6d.om);f6d.ro[f6.pK.au].abQ(f6d.iq);if(typeof Cb!=f6.K.bP&&Cb!=null){f6d.ro[f6.pK.BD].aaq(Cb)}f6d.ro[f6.pK.BD].abQ(f6d.iq);f6d.iq.aIE(f6d.ro);return f6d.iq.bfr()})().then(function(aBX){f6.oh(aBX.oD,aBX.aP)}).catch(function(){})}else if(cz.data.gV==f6.cF.aBQ){f6d.iq.Vw(cz.data.bQ)}else if(cz.data.gV==f6.cF.azH){f6d.iq.Bm(cz.data.bQ)}else if(cz.data.gV==f6.cF.aes){f6d.iq.vD(cz.data.bQ)}else if(cz.data.gV==f6.cF.aic){f6d.iq.nj(cz.data.bQ)}else if(cz.data.gV==f6.cF.asU){f6d.iq.AQ(cz.data.bQ)}else if(cz.data.gV==f6.cF.agk){f6d.iq.Nb(cz.data.bQ)}else if(cz.data.gV==f6.cF.ahO){f6d.iq.mR(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 Cb!=f6.K.bP&&Cb!=null){Cb.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 Cb!=f6.K.bP&&Cb!=null){Cb.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);f6d.nK={Gp:"k_o",JN:6,Fx:7};f6d.iH=Object.keys({L:null,C:null,aY:null,dH:null,eC:null,bV:null,bI:null,aI:null});f6d.ajd={auc:"readonly",baQ:"readwrite"};f6d.iq={ro:null,aIE:function(ro){this.ro=ro},EF:null,aOC:1,jW:{mb:1200,lW:1200,nk:1200,mT:1200,mO:3500,mt:3500,ma:1200,mH:1200,ml:500,mf:500,lE:500,nx:500,mA:500,nr:500,mn:500,mk:500,nv:500,ks:500,na:0,lM:0},aWJ:{mb:null,lW:null,nk:null,mT:null,mO:500,mt:null,ma:null,mH:500,ml:500,mf:500,lE:500,nx:null,mA:null,nr:500,mn:null,mk:null,nv:null,ks:500,na:0,lM:null},bcK:function(ei,bV){var jW=null;if(ei==0||ei==1||ei== -1){jW=this.jW}else if(ei==2){jW=this.aWJ}else{return null}if(bV==f6.ap.mb){return jW.mb}else if(bV==f6.ap.lW){return jW.lW}else if(bV==f6.ap.nk){return jW.nk}else if(bV==f6.ap.mT){return jW.mT}else if(bV==f6.ap.mO){return jW.mO}else if(bV==f6.ap.mt){return jW.mt}else if(bV==f6.ap.ma){return jW.ma}else if(bV==f6.ap.mH){return jW.mH}else if(bV==f6.ap.oS){return jW.oS}else if(bV==f6.ap.ml){return jW.ml}else if(bV==f6.ap.mf){return jW.mf}else if(bV==f6.ap.lE){return jW.lE}else if(bV==f6.ap.nx){return jW.nx}else if(bV==f6.ap.mA){return jW.mA}else if(bV==f6.ap.nr){return jW.nr}else if(bV==f6.ap.mn){return jW.mn}else if(bV==f6.ap.mk){return jW.mk}else if(bV==f6.ap.nv){return jW.nv}else if(bV==f6.ap.ks){return jW.ks}else if(bV==f6.ap.na){return jW.na}else if(bV==f6.ap.lM){return jW.lM}else{return null}},bfr:function(){var ey=this;return new Promise(function(cj,ab){var VM=indexedDB.open(f6.aDM.aus,ey.aOC);VM.onblocked=function(cz){f6.aN(f6.V.app);f6.gQ(f6.V.app);ab()};VM.onupgradeneeded=function(cz){ey.EF=cz.target.result;var FP=ey.EF.createObjectStore(f6d.nK.Gp,{autoIncrement:true});FP.createIndex(f6d.iH[0]+","+f6d.iH[1]+","+f6d.iH[2]+","+f6d.iH[3]+","+f6d.iH[4]+","+f6d.iH[5]+","+f6d.iH[6]+","+f6d.iH[7],[f6d.iH[0],f6d.iH[1],f6d.iH[2],f6d.iH[3],f6d.iH[4],f6d.iH[5],f6d.iH[6],f6d.iH[7]],{unique:true});cj({oD:f6.cF.LX,aP:f6.OY.Wn})};VM.onsuccess=function(cz){ey.EF=cz.target.result;ey.EF.onversionchange=function(cz){f6.aN(f6.V.axZ);f6.gQ(f6.V.axZ);ey.EF.close()};cj({oD:f6.cF.LX,aP:f6.OY.Wn})};VM.onerror=function(cz){f6.aN(cz.target.errorCode);f6.gQ(f6.V.aPZ);ab()}})},bcp:function(bi){var L=bi.L,C=bi.C,aY=bi.aY,dH=bi.dH,eC=bi.eC,bV=bi.bV,bI=bi.bI,aI=bi.aI,aD=bi.aD,fc=bi.fc;var ey=this;return new Promise(function(cj,ab){var gW=[];var qz=[];var qM=[];var yI=ey.EF.transaction([f6d.nK.Gp],f6d.ajd.auc);var FP=yI.objectStore(f6d.nK.Gp);var qw=IDBKeyRange.bound([L,C,aY,dH,eC,bV,f6.K.azB,f6.K.azB],[L,C,aY,dH,eC,bV,f6.K.BU,f6.K.BU],false,false);var hw=FP.index(f6d.iH[0]+","+f6d.iH[1]+","+f6d.iH[2]+","+f6d.iH[3]+","+f6d.iH[4]+","+f6d.iH[5]+","+f6d.iH[6]+","+f6d.iH[7]);hw.openKeyCursor(qw).onsuccess=function(cz){var bM=cz.target.result;if(bM){if(aI!=null){if((bM.key[f6d.nK.JN]>=bI&&aI>bM.key[f6d.nK.JN])||(bM.key[f6d.nK.Fx]>bI&&aI>=bM.key[f6d.nK.Fx])||(bM.key[f6d.nK.JN]>=bI&&aI>=bM.key[f6d.nK.Fx])||(bM.key[f6d.nK.JN]<=bI&&aI<=bM.key[f6d.nK.Fx])){gW.push({bI:bM.key[f6d.nK.JN],aI:bM.key[f6d.nK.Fx]})}}else{if(bM.key[f6d.nK.Fx]>bI){gW.push({bI:bM.key[f6d.nK.JN],aI:bM.key[f6d.nK.Fx]})}}bM.continue()}};yI.oncomplete=function(cz){
 if(gW.length>1){gW.sort(function(KX,Qm){return KX.bI-Qm.bI})}if(gW.length>=2){for(var i=0;i<(gW.length-1);i += 1){if(gW[i].aI<gW[i+1].bI){qz.push({bI:gW[i].aI,aI:gW[i+1].bI})}}}if(gW.length>=1){if(bI<gW[0].bI){qz.splice(0,0,{bI:bI,aI:gW[0].bI})}if(aI!=null){if(aI>gW[gW.length-1].aI){qz.push({bI:gW[gW.length-1].aI,aI:aI})}}else{qz.push({bI:gW[gW.length-1].aI,aI:aI})}}else{qz.push({bI:bI,aI:aI})}if(!f6.Tp(bV)){var hx=f6.kl(bV);if(hx!=null){var Cn=ey.ro[f6.oT(L)].ahD(f6.Ly(L))*hx;for(var i in qz){if(qz[i].aI!=null){if((qz[i].aI-qz[i].bI)>Cn){var sq=qz[i].bI;while(sq<qz[i].aI){if((sq+Cn)>=qz[i].aI){qM.push({bI:sq,aI:qz[i].aI})}else{qM.push({bI:sq,aI:sq+Cn})}sq+=Cn}}else{qM.push(qz[i])}}else{var Pq=hx*Math.round((Date.now()/1000)/hx);if((Pq-qz[i].bI)>=Cn){var sq=qz[i].bI;while(sq<=Pq){if((sq+Cn)==Pq){qM.push({bI:sq,aI:Pq})}else if((sq+Cn)>Pq){qM.push({bI:sq,aI:null})}else{qM.push({bI:sq,aI:sq+Cn})}sq+=Cn}}else{qM.push(qz[i])}}}}}else{qM=qz}var dY={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,bI:bI,aI:aI,gW:gW,qM:qM,aD:aD,fc:fc};cj(dY);
};yI.onerror=function(cz){f6.aN(cz.target.error);f6.gQ(f6.V.aNO);ab()}})},aKb:function(bi){var L=bi.L,C=bi.C,aY=bi.aY,dH=bi.dH,eC=bi.eC,bV=bi.bV,bI=bi.bI,aI=bi.aI,az=bi.az,pN=bi.pN;var ey=this;return new Promise(function(cj,ab){
 if(az.length==0){if(pN){var dY={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,bI:bI,aI:null,az:[],hu:[]};cj(dY);return}}var yI=ey.EF.transaction([f6d.nK.Gp],f6d.ajd.baQ);var FP=yI.objectStore(f6d.nK.Gp);var hu=[];if(pN){if(dH==f6.fl.qU){for(var i=0;i<f6.bD.pD;i += 1){hu.push(az[az.length-(f6.bD.pD-i)])}if(aI==null){aI=az[az.length-(f6.bD.pD-f6.bD.nF)]}az.splice(az.length-f6.bD.pD,f6.bD.pD)}else{for(var i=0;i<f6.bD.oy;i += 1){hu.push(az[az.length-(f6.bD.oy-i)])}if(aI==null){aI=az[az.length-(f6.bD.oy-f6.bD.ns)]}az.splice(az.length-f6.bD.oy,f6.bD.oy)}}else{if(!f6.Tp(bV)){var hx=f6.kl(bV);if(hx!=null){if(az.length>0){if(dH==f6.fl.qU){if(aI==null){aI=az[az.length-(f6.bD.pD-f6.bD.nF)]+hx}}else{if(aI==null){aI=az[az.length-(f6.bD.oy-f6.bD.ns)]+hx}}}}}else{if(az.length>0){if(dH==f6.fl.qU){for(var i=0;i<f6.bD.pD;i += 1){hu.push(az[az.length-(f6.bD.pD-i)])}if(aI==null){aI=az[az.length-(f6.bD.pD-f6.bD.nF)]}az.splice(az.length-f6.bD.pD,f6.bD.pD)}else{for(var i=0;i<f6.bD.oy;i += 1){hu.push(az[az.length-(f6.bD.oy-i)])}if(aI==null){aI=az[az.length-(f6.bD.oy-f6.bD.ns)]}az.splice(az.length-f6.bD.oy,f6.bD.oy)}}pN=true}}if(az.length==0){if(pN){var dY={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,bI:bI,aI:null,az:[],hu:hu};cj(dY);return}}var aQS={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,bI:bI,aI:aI,az:az};var baL=FP.put(aQS);baL.onsuccess=function(cz){};yI.oncomplete=function(cz){var dY={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,bI:bI,aI:aI,az:az,hu:hu};cj(dY)};yI.onerror=function(cz){f6.aN(cz.target.error);f6.gQ(f6.V.bfv);ab()}
})},azn:function(bi){var L=bi.L,C=bi.C,aY=bi.aY,dH=bi.dH,eC=bi.eC,bV=bi.bV,gW=bi.gW,aD=bi.aD,fc=bi.fc;var ey=this;return new Promise(function(cj,ab){
 if(gW.length==0){f6.aN(f6.V.ayo+"("+aY+", "+f6.wF(bV)+")");f6.gQ(f6.V.ayo+"("+aY+", "+f6.wF(bV)+")");var dY={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,bI:0,aI:null,az:[],aD:aD,fc:fc};cj(dY);return}var vy=[];var yI=ey.EF.transaction([f6d.nK.Gp],f6d.ajd.auc);var FP=yI.objectStore(f6d.nK.Gp);var qw=IDBKeyRange.bound([L,C,aY,dH,eC,bV,gW[0].bI,gW[0].aI],[L,C,aY,dH,eC,bV,gW[gW.length-1].bI,gW[gW.length-1].aI],false,false);var hw=FP.index(f6d.iH[0]+","+f6d.iH[1]+","+f6d.iH[2]+","+f6d.iH[3]+","+f6d.iH[4]+","+f6d.iH[5]+","+f6d.iH[6]+","+f6d.iH[7]);hw.openCursor(qw).onsuccess=function(cz){var bM=cz.target.result;if(bM){vy.push({bI:bM.value.bI,aI:bM.value.aI,az:bM.value.az});bM.continue()}};yI.oncomplete=function(cz){
  if(vy.length>1){vy.sort(function(KX,Qm){return KX.bI-Qm.bI})}var az=[];for(var i in vy){for(var j in vy[i].az){az.push(vy[i].az[j])}}var dY={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,bI:vy.length>0?vy[0].bI:null,aI:vy.length>0?vy[vy.length-1].aI:null,az:az,aD:aD,fc:fc};cj(dY);
 };yI.onerror=function(cz){f6.aN(cz.target.error);f6.gQ(f6.V.aPv);ab()}
})},Bp:[],aAe:function(xb){return xb.L+":::"+xb.C+":::"+xb.aY+":::"+xb.dH+":::"+xb.eC+":::"+xb.bV+":::"+xb.bI+":::"+xb.aI},aZD:function(qh){
 var aU=this.aAe(qh);if(typeof this.Bp[aU]!=f6.K.bP){this.Bp[aU].ate=true}var Ud=0;var oW=0;for(var i in this.Bp){if(this.Bp[i].L==qh.L&&this.Bp[i].C==qh.C&&this.Bp[i].aY==qh.aY&&this.Bp[i].bV==qh.bV){if(this.Bp[i].ate){Ud += 1}oW += 1}}var jQ={L:qh.L,C:qh.C,aY:qh.aY,bV:qh.bV,Ud:Ud,oW:oW};f6.oh(f6.cF.asS,jQ);
},aFQ:null,ahe:function(mV){var L=mV.L,C=mV.C,aY=mV.aY,dH=mV.dH,eC=mV.eC,bV=mV.bV,bI=mV.bI,aI=mV.aI,aD=mV.aD,fc=mV.fc;var ey=this;var gW=[];var hu=[];return new Promise(function(Gk,FY){ey.bcp(mV).then(function(mQ){for(var i in mQ.gW){gW.push(mQ.gW[i])}if(mQ.qM.length>0){for(var i in mQ.qM){if(mQ.qM[i].aI!=null){var xb={L:mQ.L,C:mQ.C,aY:mQ.aY,dH:mQ.dH,eC:mQ.eC,bV:mQ.bV,bI:mQ.qM[i].bI,aI:mQ.qM[i].aI,ate:false};if(f6.fC==f6.fI.je){ey.Bp[ey.aAe(xb)]=xb}}}return new Promise(function(cj,ab){
 var bM=0;function ast(bM){var axQ={L:mQ.L,C:mQ.C,aY:mQ.aY,dH:mQ.dH,eC:mQ.eC,bV:mQ.bV,bI:mQ.qM[bM].bI,aI:mQ.qM[bM].aI,aD:mQ.aD,fc:mQ.fc};ey.ro[f6.oT(axQ.L)].Bm(axQ).then(function(qh){return ey.aKb(qh)}).then(function(qh){if(qh.aI!=null){gW.push({bI:qh.bI,aI:qh.aI});if(f6.fC==f6.fI.je){ey.aZD(qh)}}if(bM<(mQ.qM.length-1)){bM += 1;ast(bM)}else{if(gW.length>1){gW.sort(function(KX,Qm){return KX.bI-Qm.bI})}hu=qh.hu;cj()}}).catch(function(){ab()})}ast(bM);
})}}).then(function(){var dY={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,gW:gW,hu:hu,aD:aD,fc:fc};Gk(dY)}).catch(function(){FY()})})},Vw:function(mV){var ei=f6.Ly(mV.L);if (!this.ahP(ei,mV.dH)) {
 return;
}this.ahe(mV).then(function(oP){}).catch(function(){})},Bm:function(yU){
 var bc=yU.bc,G=yU.G,L=yU.L,C=yU.C,aY=yU.aY,dH=yU.dH,eC=yU.eC,bV=yU.bV,aI=yU.aI,aD=yU.aD,fc=yU.fc;var ei=f6.Ly(L);if (!this.ahP(ei,dH)) {
  return;
 }var hx=f6.kl(bV);var bI=null;if(!f6.Tp(bV)){var jW=this.bcK(ei,bV);if (jW==null) {
  return;
 }var aok=null;if(aI==null){aok=Date.now()/1000}else{aok=aI}bI=hx*Math.round((aok-jW*hx)/hx)}else{bI=1200000000;aI=null}var mV={L:L,C:C,aY:aY,dH:dH,eC:eC,bV:bV,bI:bI,aI:aI,aD:aD,fc:fc};var ey=this;var hu=[];ey.ahe(mV).then(function(oP){hu=oP.hu;var aeQ={L:oP.L,C:oP.C,aY:oP.aY,dH:oP.dH,eC:oP.eC,bV:oP.bV,gW:oP.gW,aD:oP.aD,fc:oP.fc};return ey.azn(aeQ)}).then(function(du){var az=[];if(du.dH==f6.fl.rN){for(var i=0;i<du.az.length;i+=f6.bD.oy){if(bI<=du.az[i+f6.bD.ns]&&(aI==null||du.az[i+f6.bD.ns]<aI)&&(i==0||(i>0&&du.az[i+f6.bD.ns]>du.az[i+f6.bD.ns-f6.bD.oy]))){az.push(du.az[i+f6.bD.ns]);az.push(du.az[i+f6.bD.Cq]);az.push(du.az[i+f6.bD.CI]);az.push(du.az[i+f6.bD.Cl]);az.push(du.az[i+f6.bD.CP]);az.push(du.az[i+f6.bD.CB]);az.push(du.az[i+f6.bD.LE])}}}else if(du.dH==f6.fl.ak){for(var i=0;i<du.az.length;i+=f6.bD.oy){if(bI<=du.az[i+f6.bD.ns]&&(aI==null||du.az[i+f6.bD.ns]<aI)&&(i==0||(i>0&&du.az[i+f6.bD.ns]>du.az[i+f6.bD.ns-f6.bD.oy]))){az.push(du.az[i+f6.bD.ns]);az.push(du.az[i+f6.bD.Cq]);az.push(du.az[i+f6.bD.CI]);az.push(du.az[i+f6.bD.Cl]);az.push(du.az[i+f6.bD.CP]);az.push(du.az[i+f6.bD.CB]);az.push(du.az[i+f6.bD.LE])}}}else if(du.dH==f6.fl.bm){for(var i=0;i<du.az.length;i+=f6.bD.oy){if(bI<=du.az[i+f6.bD.ns]&&(aI==null||du.az[i+f6.bD.ns]<aI)&&(i==0||(i>0&&du.az[i+f6.bD.ns]>du.az[i+f6.bD.ns-f6.bD.oy]))){az.push(du.az[i+f6.bD.ns]);az.push(du.az[i+f6.bD.Cq]);az.push(du.az[i+f6.bD.CI]);az.push(du.az[i+f6.bD.Cl]);az.push(du.az[i+f6.bD.CP]);az.push(du.az[i+f6.bD.CB]);az.push(du.az[i+f6.bD.LE])}}}else if(du.dH==f6.fl.qU){for(var i=0;i<du.az.length;i+=f6.bD.pD){if(bI<=du.az[i+f6.bD.nF]&&(aI==null||du.az[i+f6.bD.nF]<aI)&&(i==0||(i>0&&du.az[i+f6.bD.nF]>du.az[i+f6.bD.nF-f6.bD.pD]))){az.push(du.az[i+f6.bD.nF]);az.push(du.az[i+f6.bD.VS]);az.push(du.az[i+f6.bD.Wa]);az.push(du.az[i+f6.bD.Oq]);az.push(du.az[i+f6.bD.ND]);az.push(du.az[i+f6.bD.VG]);az.push(du.az[i+f6.bD.UR]);az.push(du.az[i+f6.bD.NP]);az.push(du.az[i+f6.bD.Nj]);az.push(du.az[i+f6.bD.Vd]);az.push(du.az[i+f6.bD.alO])}}}if(hu.length>0){if(du.dH==f6.fl.rN){az.push(hu[f6.bD.ns]);az.push(hu[f6.bD.Cq]);az.push(hu[f6.bD.CI]);az.push(hu[f6.bD.Cl]);az.push(hu[f6.bD.CP]);az.push(hu[f6.bD.CB]);az.push(hu[f6.bD.LE])}else if(du.dH==f6.fl.ak){az.push(hu[f6.bD.ns]);az.push(hu[f6.bD.Cq]);az.push(hu[f6.bD.CI]);az.push(hu[f6.bD.Cl]);az.push(hu[f6.bD.CP]);az.push(hu[f6.bD.CB]);az.push(hu[f6.bD.LE])}else if(du.dH==f6.fl.bm){az.push(hu[f6.bD.ns]);az.push(hu[f6.bD.Cq]);az.push(hu[f6.bD.CI]);az.push(hu[f6.bD.Cl]);az.push(hu[f6.bD.CP]);az.push(hu[f6.bD.CB]);az.push(hu[f6.bD.LE])}else if(du.dH==f6.fl.qU){az.push(hu[f6.bD.nF]);az.push(hu[f6.bD.VS]);az.push(hu[f6.bD.Wa]);az.push(hu[f6.bD.Oq]);az.push(hu[f6.bD.ND]);az.push(hu[f6.bD.VG]);az.push(hu[f6.bD.UR]);az.push(hu[f6.bD.NP]);az.push(hu[f6.bD.Nj]);az.push(hu[f6.bD.Vd]);az.push(hu[f6.bD.alO])}}f6.oh(f6.cF.awy,{bc:bc,G:G,az:az})}).catch(function(){});
},vD:function(wk){var L=wk.L,C=wk.C;this.ro[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(){})},kt:[],ae:function(L,C,aY){return L+":::"+C+":::"+aY},nj:function(lC){var L=lC.L,C=lC.C,ah=lC.ah,RI=lC.RI;if(f6.fC==f6.fI.fL){this.ro[f6.oT(L)].nj(L,C,ah);this.ro[f6.oT(L)].bdq(L,C,ah)}else{this.kt=[];for(var i in RI){var aJ=RI[i];var aU=this.ae(L,C,aJ.aY);this.kt[aU]={L:L,C:C,aY:aJ.aY,aD:aJ.aD,fc:aJ.fc}}}},AQ:function(arJ){if(f6.cu(arJ.bG)){this.aFQ=arJ.bG}},Nb:function(lC){var qg=f6.kl(lC.jo);if (qg==null) {
 return;
}qg=Math.round(qg/4);var bI=lC.bI;var aI=lC.aI;for(var a in this.kt){this.kt[a].az=null;var mV={L:this.kt[a].L,C:this.kt[a].C,aY:this.kt[a].aY,dH:f6.fl.qU,eC:f6.ZQ.ZF,bV:lC.jo,bI:bI,aI:aI,aD:this.kt[a].aD,fc:this.kt[a].fc};var ei=f6.Ly(mV.L);if (!this.ahP(ei,mV.dH)) {
 return;
}var ey=this;ey.ahe(mV).then(function(oP){var aeQ={L:oP.L,C:oP.C,aY:oP.aY,dH:oP.dH,eC:oP.eC,bV:oP.bV,gW:oP.gW,aD:oP.aD,fc:oP.fc};return ey.azn(aeQ)}).then(function(du){
 var az=[];for(var i=0;i<du.az.length;i+=f6.bD.pD){if(bI<=du.az[i+f6.bD.nF]&&du.az[i+f6.bD.nF]<aI&&(i==0||(i>0&&du.az[i+f6.bD.nF]>du.az[i+f6.bD.nF-f6.bD.pD]))){var bH=du.az[i+f6.bD.VS]/4.0;az.push(du.az[i+f6.bD.nF]);az.push(bH);az.push(du.az[i+f6.bD.Wa]);az.push(du.az[i+f6.bD.UR]);if(du.az[i+f6.bD.alO]==f6.Sj.aeC){az.push(du.az[i+f6.bD.nF]+qg);az.push(bH);az.push(du.az[i+f6.bD.ND]);az.push(du.az[i+f6.bD.Nj]);az.push(du.az[i+f6.bD.nF]+qg*2);az.push(bH);az.push(du.az[i+f6.bD.Oq]);az.push(du.az[i+f6.bD.NP])}else{az.push(du.az[i+f6.bD.nF]+qg);az.push(bH);az.push(du.az[i+f6.bD.Oq]);az.push(du.az[i+f6.bD.NP]);az.push(du.az[i+f6.bD.nF]+qg*2);az.push(bH);az.push(du.az[i+f6.bD.ND]);az.push(du.az[i+f6.bD.Nj])}az.push(du.az[i+f6.bD.nF]+qg*3);az.push(bH);az.push(du.az[i+f6.bD.VG]);az.push(du.az[i+f6.bD.Vd])}}var aU=ey.ae(du.L,du.C,du.aY);ey.kt[aU].az=az;f6.oh(f6.cF.avq,{L:du.L,C:du.C,aY:du.aY,az:az});
}).catch(function(){})}},mR:function(lC){var L=lC.L,C=lC.C;if(f6.fC==f6.fI.fL){this.ro[f6.oT(L)].mR(L,C)}else{this.kt=[]}},np:function(rn){f6.oh(f6.cF.avA,{az:rn})},ahP:function(ei,dH){if(ei== -1||ei==0){}else if(ei==1||ei==2){if(dH==f6.fl.qU){}else{return false}}else{return false}return true}};f6d.ro=[];f6d.ro[f6.pK.au]={sk:null,aaq:function(sk){this.sk=sk},iq:null,abQ:function(iq){this.iq=iq},UC:5000,aQU:500,ahD:function(ei){if(ei==2){return this.aQU}else{return this.UC}},eO:{ts:"HEARTBEAT",ai:"PRICE",aRd:"BLOCKED",yT:"x"},aKq:[f6.ap.mb,f6.ap.lW,f6.ap.nk,f6.ap.mT,f6.ap.mO,f6.ap.mt,f6.ap.ma,f6.ap.mH,f6.ap.ml,f6.ap.mf,f6.ap.lE,f6.ap.nx,f6.ap.mA,f6.ap.nr,f6.ap.mn,f6.ap.mk,f6.ap.nv,f6.ap.ks,f6.ap.na,f6.ap.lM],anl: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}},amR:function(bV){if(bV==f6.cA.mb){return f6.ap.mb}else if(bV==f6.cA.lW){return f6.ap.lW}else if(bV==f6.cA.nk){return f6.ap.nk}else if(bV==f6.cA.mT){return f6.ap.mT}else if(bV==f6.cA.mO){return f6.ap.mO}else if(bV==f6.cA.mt){return f6.ap.mt}else if(bV==f6.cA.ma){return f6.ap.ma}else if(bV==f6.cA.mH){return f6.ap.mH}else if(bV==f6.cA.oS){return f6.ap.oS}else if(bV==f6.cA.ml){return f6.ap.ml}else if(bV==f6.cA.mf){return f6.ap.mf}else if(bV==f6.cA.lE){return f6.ap.lE}else if(bV==f6.cA.nx){return f6.ap.nx}else if(bV==f6.cA.mA){return f6.ap.mA}else if(bV==f6.cA.nr){return f6.ap.nr}else if(bV==f6.cA.mn){return f6.ap.mn}else if(bV==f6.cA.mk){return f6.ap.mk}else if(bV==f6.cA.nv){return f6.ap.nv}else if(bV==f6.cA.ks){return f6.ap.ks}else if(bV==f6.cA.na){return f6.ap.na}else if(bV==f6.cA.lM){return f6.ap.lM}else{return null}},anz:function(dH){if(dH==f6.fl.rN){return "M"}else if(dH==f6.fl.ak){return "B"}else if(dH==f6.fl.bm){return "A"}else if(dH==f6.fl.qU){return "BA"}else{return null}},aia:function(cE){if(typeof cE.complete!=f6.K.bP&&cE.complete!=null){if(cE.complete!=true&&cE.complete!=false){throw new Error(f6.V.ht)}return!cE.complete}else{throw new Error(f6.V.ht)}},Iy:function(R,hx){if(f6.aB(R.time)){if(hx!=null){return Math.floor(parseFloat(R.time)/hx)*hx}else{return Math.floor(parseFloat(R.time))}}else{throw new Error(f6.V.ht)}},beE:function(R,hx){if(f6.aB(R.t)){if(hx!=null){return Math.floor(parseFloat(R.t)/1000.0/hx)*hx}else{return Math.floor(parseFloat(R.t)/1000.0)}}else{throw new Error(f6.V.ht)}},anp:function(cE){if(f6.aB(cE.volume)){return parseFloat(cE.volume)}else{throw new Error(f6.V.ht)}},bdQ:function(cE){if(f6.aB(cE.v)){return parseFloat(cE.v)}else{throw new Error(f6.V.ht)}},vM:function(cE){if(f6.aB(cE.o)){return parseFloat(cE.o)}else{throw new Error(f6.V.ht)}},wj:function(cE){if(f6.aB(cE.h)){return parseFloat(cE.h)}else{throw new Error(f6.V.ht)}},vB:function(cE){if(f6.aB(cE.l)){return parseFloat(cE.l)}else{throw new Error(f6.V.ht)}},vx:function(cE){if(f6.aB(cE.c)){return parseFloat(cE.c)}else{throw new Error(f6.V.ht)}},sf:function(R){if(typeof R.instrument==f6.K.bU){return R.instrument}else{throw new Error(f6.V.ht)}},ZO:function(R){if(f6.de(R.bids)){var ni=[];for(var i in R.bids){var ak=R.bids[i];if(f6.aB(ak.price)&&f6.aB(ak.liquidity)){var ai=parseFloat(ak.price);if(ai>0.0){ni.push({ai:ai,Ok:parseFloat(ak.liquidity)})}}}return ni}else{throw new Error(f6.V.ht)}},YS:function(R){if(f6.de(R.asks)){var mK=[];for(var i in R.asks){var bm=R.asks[i];if(f6.aB(bm.price)&&f6.aB(bm.liquidity)){var ai=parseFloat(bm.price);if(ai>0.0){mK.push({ai:ai,Ok:parseFloat(bm.liquidity)})}}}return mK}else{throw new Error(f6.V.ht)}},bdT:function(R){if(f6.aB(R.closeoutBid)){return parseFloat(R.closeoutBid)}else{throw new Error(f6.V.ht)}},bcf:function(R){if(f6.aB(R.closeoutAsk)){return parseFloat(R.closeoutAsk)}else{throw new Error(f6.V.ht)}},bcP:function(R){if(typeof R.status==f6.K.bU){return R.status}else{throw new Error(f6.V.ht)}},beh:function(R){if(typeof R.tradeable==f6.K.eU){return R.tradeable}else{throw new Error(f6.V.ht)}},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.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,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)}},Bm:function(bi){var L=bi.L,C=bi.C,aY=bi.aY,dH=bi.dH,eC=bi.eC,bV=bi.bV,bI=bi.bI,aI=bi.aI,aD=bi.aD,fc=bi.fc;var aG=this;return new Promise(function(cj,ab){var Nx=function(){
 var kB={price:aG.anz(dH),granularity:aG.anl(bV),from:bI};if(aI!=null){kB.to=aI}else{if(f6.aDd(L)){var ei=f6.Ly(L);kB.count=aG.ahD(ei)}}var Xp=function(){var qt=f6.pp(L,C);if(qt!=null){var bG=Math.floor(new Date().getTime()/1000);if((bG-qt.ayN)>=qt.Ff){qt.EK=false;f6.awY(L,C,qt)}else{setTimeout(Xp,Math.ceil(qt.ayN+qt.Ff-bG))}}};aG.sk.AX.uI(L,C,aY,kB).then(function(R){try{var ei=f6.Ly(L);if((ei==0&&typeof R.instrument!=f6.K.bP&&R.instrument&&typeof R.granularity!=f6.K.bP&&R.granularity&&typeof R.candles!=f6.K.bP&&R.candles&&(aY==R.instrument||aY==R.instrument.replace("_","/"))&&bV==aG.amR(R.granularity))||(ei==1&&typeof R.ticker!=f6.K.bP&&R.ticker&&typeof R.results!=f6.K.bP&&R.results&&(aY==R.ticker||"C:"+aY.replace("/","")==R.ticker))||(ei==2&&typeof R.data!=f6.K.bP&&R.data)){var dY={L:L,C:C,aY:aY,bV:bV,eC:eC,dH:null,bI:null,aI:null,az:[],pN:false};var uI=null;if(ei==0){uI=R.candles}else if(ei==1){uI=R.results}else if(ei==2){uI=[];if(Array.isArray(R.data)){for(var i in R.data){var cE=R.data[i];uI.push({t:cE.period,v:parseFloat(cE.volume),o:parseFloat(cE.open),h:parseFloat(cE.high),l:parseFloat(cE.low),c:parseFloat(cE.close)})}}}if(!f6.de(uI)){throw new Error(f6.V.ht+" A")}if(uI.length>0){
  var oc="";var Jz=uI[0];if(ei==0){if(typeof Jz.mid!=f6.K.bP&&Jz.mid!=null){oc+=f6.fl.rN}else{if(typeof Jz.bid!=f6.K.bP&&Jz.bid!=null){oc+=f6.fl.ak}if(typeof Jz.ask!=f6.K.bP&&Jz.ask!=null){oc+=f6.fl.bm}}if(oc===""||oc!=dH){throw new Error(f6.V.ht+" T")}}else if(ei==1||ei==2){oc+=f6.fl.rN}var He=f6.K.ara;var hx=f6.kl(bV);if(ei==0){dY.pN=aG.aia(uI[uI.length-1])}else if(ei==1||ei==2){dY.pN=true}for(var i=0;i<uI.length;i += 1){
   var gX=uI[i];var sb=null;if(ei==0){sb=aG.Iy(gX,hx)}else if(ei==1||ei==2){sb=aG.beE(gX,hx)}if(He>sb){throw new Error(f6.V.avS)}else if(He==sb){continue}if(sb<bI){continue}if(aI!=null){if(sb>=aI){continue}}dY.az.push(sb);He=sb;if(ei==0){dY.az.push(aG.anp(gX))}else if(ei==1||ei==2){dY.az.push(aG.bdQ(gX))}if(oc==f6.fl.rN){if(ei==0){if(typeof gX.mid!=f6.K.bP&&gX.mid!=null){dY.az.push(aG.vM(gX.mid));dY.az.push(aG.wj(gX.mid));dY.az.push(aG.vB(gX.mid));dY.az.push(aG.vx(gX.mid))}else{throw new Error(f6.V.ht+" "+f6.fl.rN+" "+JSON.stringify(gX))}}else if(ei==1||ei==2){var Ce=fc/aD/2.0;var fA=aG.vM(gX);var fV=aG.wj(gX);var gR=aG.vB(gX);var fF=aG.vx(gX);dY.az.push(Math.round((fA-Ce)*aD)/aD);dY.az.push(Math.round((fV-Ce)*aD)/aD);dY.az.push(Math.round((gR-Ce)*aD)/aD);dY.az.push(Math.round((fF-Ce)*aD)/aD);dY.az.push(Math.round((fA+Ce)*aD)/aD);dY.az.push(Math.round((fV+Ce)*aD)/aD);dY.az.push(Math.round((gR+Ce)*aD)/aD);dY.az.push(Math.round((fF+Ce)*aD)/aD)}}else if(oc==f6.fl.ak){if(typeof gX.bid!=f6.K.bP&&gX.bid!=null){dY.az.push(aG.vM(gX.bid));dY.az.push(aG.wj(gX.bid));dY.az.push(aG.vB(gX.bid));dY.az.push(aG.vx(gX.bid))}else{throw new Error(f6.V.ht+" "+f6.fl.ak+" "+JSON.stringify(gX))}}else if(oc==f6.fl.bm){if(typeof gX.ask!=f6.K.bP&&gX.ask!=null){dY.az.push(aG.vM(gX.ask));dY.az.push(aG.wj(gX.ask));dY.az.push(aG.vB(gX.ask));dY.az.push(aG.vx(gX.ask))}else{throw new Error(f6.V.ht+" "+f6.fl.bm+" "+JSON.stringify(gX))}}else if(oc==f6.fl.qU){if(typeof gX.bid!=f6.K.bP&&gX.bid!=null){dY.az.push(aG.vM(gX.bid));dY.az.push(aG.wj(gX.bid));dY.az.push(aG.vB(gX.bid));dY.az.push(aG.vx(gX.bid))}else{throw new Error(f6.V.ht+" "+f6.fl.qU+" "+JSON.stringify(gX))}if(typeof gX.ask!=f6.K.bP&&gX.ask!=null){dY.az.push(aG.vM(gX.ask));dY.az.push(aG.wj(gX.ask));dY.az.push(aG.vB(gX.ask));dY.az.push(aG.vx(gX.ask))}else{throw new Error(f6.V.ht+" "+f6.fl.qU+" "+JSON.stringify(gX))}}var AW=null;if(typeof gX.lhOrHl==f6.K.bP||gX.lhOrHl==null){if(Math.random()>0.5){AW=f6.Sj.aeC}else{AW=f6.Sj.zb}}else{AW=gX.lhOrHl}dY.az.push(AW);
  }if(dY.az.length==0){if(aI!=null){dY.pN=false}else{dY.pN=true}}
 }else{if(aI!=null){dY.pN=false}else{dY.pN=true}}dY.dH=dH;dY.bI=bI;dY.aI=aI;cj(dY);if(aI!=null){Xp()}}else{throw new Error(f6.V.ht+" "+JSON.stringify(R))}}catch(e){f6.aN(JSON.stringify(bi)+" "+e.message);f6.gQ(e.message);ab();if(aI!=null){Xp()}}}).catch(function(){ab();if(aI!=null){Xp()}});
};var aAv=function(){var F=f6.pp(L,C);if(F!=null){var Ff=F.Ff;var EK=F.EK;if(EK){setTimeout(aAv,1000)}else{F.EK=true;F.ayN=Math.floor(new Date().getTime()/1000);if(f6.awY(L,C,F)){Nx()}else{ab()}}}else{ab()}};if(aI!=null){aAv()}else{Nx()}})},vD:function(L,C){var aG=this;return new Promise(function(cj,ab){aG.sk.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()})})},nj:function(L,C,ah){var aG=this;this.sk.Hg.vk(L,C,{instruments:ah.join(",")},function(R){var bO=null;try{if(typeof R.type!=f6.K.bP&&R.type){if(R.type==aG.eO.ts){bO={L:L,C:C,aY:null,bG:aG.Iy(R)}}else if(R.type==aG.eO.ai){bO={L:L,C:C,aY:aG.sf(R),bG:aG.Iy(R),bH:null,ni:aG.ZO(R),mK:aG.YS(R)}}else if(R.type==aG.eO.aRd){var ao=f6.fd(L);f6.aN(ao+": "+f6.V.azE);f6.gQ(ao+": "+f6.V.azE)}else if(R.type==aG.eO.yT){bO={L:L,C:C,aY:null,bG:null}}}}catch(e){f6.aN(JSON.stringify(R)+" "+e.message)}if(bO!=null){aG.iq.np(bO)}})},mR:function(L,C){this.sk.Hg.vr(L,C)},bdq:function(L,C,ah){var aG=this;this.sk.Hg.aFb(L,C,{instruments:ah.join(",")}).then(function(Sz){if(f6.de(Sz)){for(var i in Sz){var R=Sz[i];var bO=null;try{if(typeof R.type!=f6.K.bP&&R.type){if(R.type==aG.eO.ts){}else if(R.type==aG.eO.ai){bO={L:L,C:C,aY:aG.sf(R),bG:aG.Iy(R),bH:null,ni:aG.ZO(R),mK:aG.YS(R)}}}}catch(e){f6.aN(JSON.stringify(R)+" "+e.message)}if(bO!=null){aG.iq.np(bO)}}}else{f6.aN(JSON.stringify(Sz)+" "+e.message)}}).catch(function(){})}};f6d.ro[f6.pK.BD]={sk:null,aaq:function(sk){this.sk=sk},iq:null,abQ:function(iq){this.iq=iq},UC:5000,ahD:function(ei){return this.UC},eO:{ts:"HEARTBEAT",ai:"PRICE"},aKq:[f6.ap.mb,f6.ap.lW,f6.ap.nk,f6.ap.mT,f6.ap.mO,f6.ap.mt,f6.ap.ma,f6.ap.mH,f6.ap.ml,f6.ap.mf,f6.ap.lE,f6.ap.nx,f6.ap.mA,f6.ap.nr,f6.ap.mn,f6.ap.mk,f6.ap.nv,f6.ap.ks,f6.ap.na,f6.ap.lM],anl: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}},amR:function(bV){if(bV==f6.cA.mb){return f6.ap.mb}else if(bV==f6.cA.lW){return f6.ap.lW}else if(bV==f6.cA.nk){return f6.ap.nk}else if(bV==f6.cA.mT){return f6.ap.mT}else if(bV==f6.cA.mO){return f6.ap.mO}else if(bV==f6.cA.mt){return f6.ap.mt}else if(bV==f6.cA.ma){return f6.ap.ma}else if(bV==f6.cA.mH){return f6.ap.mH}else if(bV==f6.cA.oS){return f6.ap.oS}else if(bV==f6.cA.ml){return f6.ap.ml}else if(bV==f6.cA.mf){return f6.ap.mf}else if(bV==f6.cA.lE){return f6.ap.lE}else if(bV==f6.cA.nx){return f6.ap.nx}else if(bV==f6.cA.mA){return f6.ap.mA}else if(bV==f6.cA.nr){return f6.ap.nr}else if(bV==f6.cA.mn){return f6.ap.mn}else if(bV==f6.cA.mk){return f6.ap.mk}else if(bV==f6.cA.nv){return f6.ap.nv}else if(bV==f6.cA.ks){return f6.ap.ks}else if(bV==f6.cA.na){return f6.ap.na}else if(bV==f6.cA.lM){return f6.ap.lM}else{return null}},anz:function(dH){if(dH==f6.fl.rN){return "M"}else if(dH==f6.fl.ak){return "B"}else if(dH==f6.fl.bm){return "A"}else if(dH==f6.fl.qU){return "BA"}else{return null}},aia:function(cE){if(typeof cE.complete!=f6.K.bP&&cE.complete!=null){if(cE.complete!=true&&cE.complete!=false){throw new Error(f6.V.ht)}return!cE.complete}else{throw new Error(f6.V.ht)}},Iy:function(R,hx){if(f6.aB(R.time)){if(hx!=null){return Math.floor(parseFloat(R.time)/hx)*hx}else{return Math.floor(parseFloat(R.time))}}else{throw new Error(f6.V.ht)}},anp:function(cE){if(f6.aB(cE.volume)){return parseFloat(cE.volume)}else{throw new Error(f6.V.ht)}},vM:function(cE){if(f6.aB(cE.o)){return parseFloat(cE.o)}else{throw new Error(f6.V.ht)}},wj:function(cE){if(f6.aB(cE.h)){return parseFloat(cE.h)}else{throw new Error(f6.V.ht)}},vB:function(cE){if(f6.aB(cE.l)){return parseFloat(cE.l)}else{throw new Error(f6.V.ht)}},vx:function(cE){if(f6.aB(cE.c)){return parseFloat(cE.c)}else{throw new Error(f6.V.ht)}},sf:function(R){if(typeof R.instrument==f6.K.bU){return R.instrument}else{throw new Error(f6.V.ht)}},ZO:function(R){if(f6.de(R.bids)){var ni=[];for(var i in R.bids){if(f6.aB(R.bids[i].price)&&f6.aB(R.bids[i].liquidity)){var ai=parseFloat(R.bids[i].price);if(ai>0.0){ni.push({ai:ai,Ok:parseFloat(R.bids[i].liquidity)})}}}return ni}else{throw new Error(f6.V.ht)}},YS:function(R){if(f6.de(R.asks)){var mK=[];for(var i in R.asks){if(f6.aB(R.asks[i].price)&&f6.aB(R.asks[i].liquidity)){var ai=parseFloat(R.asks[i].price);if(ai>0.0){mK.push({ai:ai,Ok:parseFloat(R.asks[i].liquidity)})}}}return mK}else{throw new Error(f6.V.ht)}},bdT:function(R){if(f6.aB(R.closeoutBid)){return parseFloat(R.closeoutBid)}else{throw new Error(f6.V.ht)}},bcf:function(R){if(f6.aB(R.closeoutAsk)){return parseFloat(R.closeoutAsk)}else{throw new Error(f6.V.ht)}},bcP:function(R){if(typeof R.status==f6.K.bU){return R.status}else{throw new Error(f6.V.ht)}},beh:function(R){if(typeof R.tradeable==f6.K.eU){return R.tradeable}else{throw new Error(f6.V.ht)}},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)}},Bm:function(bi){var L=bi.L,C=bi.C,aY=bi.aY,dH=bi.dH,eC=bi.eC,bV=bi.bV,bI=bi.bI,aI=bi.aI;var aG=this;return new Promise(function(cj,ab){var kB={price:aG.anz(dH),granularity:aG.anl(bV),from:bI};if(aI!=null){kB.to=aI}else{kB.count=aG.UC}aG.sk.AX.uI(L,C,aY,kB).then(function(R){try{if(typeof R.instrument!=f6.K.bP&&R.instrument&&typeof R.granularity!=f6.K.bP&&R.granularity&&typeof R.candles!=f6.K.bP&&R.candles&&aY==R.instrument&&bV==aG.amR(R.granularity)){var dY={L:L,C:C,aY:R.instrument,bV:bV,eC:eC,dH:null,bI:null,aI:null,az:[],pN:false};if(!f6.de(R.candles)){throw new Error(f6.V.ht)}if(R.candles.length>0){
 var oc="";if(typeof R.candles[0].mid!=f6.K.bP&&R.candles[0].mid!=null){oc+=f6.fl.rN}else{if(typeof R.candles[0].bid!=f6.K.bP&&R.candles[0].bid!=null){oc+=f6.fl.ak}if(typeof R.candles[0].ask!=f6.K.bP&&R.candles[0].ask!=null){oc+=f6.fl.bm}}if(oc===""||oc!=dH){throw new Error(f6.V.ht)}var He=f6.K.ara;var hx=f6.kl(bV);dY.pN=aG.aia(R.candles[R.candles.length-1]);for(var i=0;i<R.candles.length;i += 1){
  var sb=aG.Iy(R.candles[i],hx);if(He>=sb){throw new Error(f6.V.avS)}else if(He==sb){continue}if(sb<bI){continue}if(aI!=null){if(sb>=aI){continue}}dY.az.push(sb);He=sb;dY.az.push(aG.anp(R.candles[i]));if(oc==f6.fl.rN){if(typeof R.candles[i].mid!=f6.K.bP&&R.candles[i].mid!=null){dY.az.push(aG.vM(R.candles[i].mid));dY.az.push(aG.wj(R.candles[i].mid));dY.az.push(aG.vB(R.candles[i].mid));dY.az.push(aG.vx(R.candles[i].mid))}else{throw new Error(f6.V.ht)}}else if(oc==f6.fl.ak){if(typeof R.candles[i].bid!=f6.K.bP&&R.candles[i].bid!=null){dY.az.push(aG.vM(R.candles[i].bid));dY.az.push(aG.wj(R.candles[i].bid));dY.az.push(aG.vB(R.candles[i].bid));dY.az.push(aG.vx(R.candles[i].bid))}else{throw new Error(f6.V.ht)}}else if(oc==f6.fl.bm){if(typeof R.candles[i].ask!=f6.K.bP&&R.candles[i].ask!=null){dY.az.push(aG.vM(R.candles[i].ask));dY.az.push(aG.wj(R.candles[i].ask));dY.az.push(aG.vB(R.candles[i].ask));dY.az.push(aG.vx(R.candles[i].ask))}else{throw new Error(f6.V.ht)}}else if(oc==f6.fl.qU){if(typeof R.candles[i].bid!=f6.K.bP&&R.candles[i].bid!=null){dY.az.push(aG.vM(R.candles[i].bid));dY.az.push(aG.wj(R.candles[i].bid));dY.az.push(aG.vB(R.candles[i].bid));dY.az.push(aG.vx(R.candles[i].bid))}else{throw new Error(f6.V.ht)}if(typeof R.candles[i].ask!=f6.K.bP&&R.candles[i].ask!=null){dY.az.push(aG.vM(R.candles[i].ask));dY.az.push(aG.wj(R.candles[i].ask));dY.az.push(aG.vB(R.candles[i].ask));dY.az.push(aG.vx(R.candles[i].ask))}else{throw new Error(f6.V.ht)}}var AW=null;if(typeof R.candles[i].lhOrHl==f6.K.bP||R.candles[i].lhOrHl==null){if(Math.random()>0.5){AW=f6.Sj.aeC}else{AW=f6.Sj.zb}}else{AW=R.candles[i].lhOrHl}dY.az.push(AW);
 }
}else{if(aI!=null){dY.pN=false}else{dY.pN=true}}dY.dH=dH;dY.bI=bI;dY.aI=aI;cj(dY)}else{throw new Error(f6.V.ht)}}catch(e){f6.aN(JSON.stringify(bi)+" "+e.message);f6.gQ(e.message);ab()}}).catch(function(){ab()})})},vD:function(L,C){var aG=this;return new Promise(function(cj,ab){aG.sk.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()})})},nj:function(L,C,ah){var aG=this;this.sk.Hg.vk(L,C,{instruments:ah.join(","),snapshot:false},function(R){var bO=null;try{if(typeof R.type!=f6.K.bP&&R.type){if(R.type==aG.eO.ts){}else if(R.type==aG.eO.ai){bO={L:L,C:C,aY:aG.sf(R),bG:aG.Iy(R),ni:aG.ZO(R),mK:aG.YS(R)}}}}catch(e){f6.aN(JSON.stringify(R)+" "+e.message)}if(bO!=null){aG.iq.np(bO)}})},mR:function(L,C){}};f6d.om={};f6d.om.aQb=function(hW,nL,vt,Hc){return new Promise(function(cj,ab){try{var dA=new XMLHttpRequest();if(nL===f6.bx.hg||nL===f6.bx.EA){dA.open(nL,hW,true);for(var i in Hc){dA.setRequestHeader(Hc[i].ayP,Hc[i].awX)}dA.send(JSON.stringify(vt))}else if(nL===f6.bx.gL){dA.open(nL,hW+"?"+f6.Sh(vt),true);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()}})};f6d.om.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()}})};f6d.om.sQ=[];f6d.om.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)}};f6d.om.vr=function(uf,hW){if(typeof this.sQ[uf+hW]!=f6.K.bP){this.sQ[uf+hW].close();delete this.sQ[uf+hW]}};f6d.om.al={};f6d.om.al.AX=function(L,C,Lb){return f6d.om.jK(f6.ahw(L),"/accounts/"+C+"/instruments",f6.bx.gL,Lb,f6.kc(L,C))};f6d.om.AX={};f6d.om.AX.uI=function(L,C,aY,kB){if(f6.aDd(L)){var Hc=[];Hc.push({ayP:f6.bx.NC,awX:f6.bx.CW+" "+f6.bds(L)});Hc.push({ayP:f6.bx.aTP,awX:f6.bx.aIX});return f6d.om.aQb(f6.bdF(L).replace("symbolnames",aY.replace("/","_")),f6.bx.gL,kB,Hc)}else{return f6d.om.jK(f6.ahw(L),"/accounts/"+C+"/instruments/"+aY.replace("/","_")+"/candles",f6.bx.gL,kB,f6.kc(L,C))}};f6d.om.Hg={};f6d.om.Hg.vk=function(L,C,Lb,aj){var kB=Lb;kB.aH=f6.bx.CW+" "+f6.kc(L,C);f6d.om.vk(f6.aAF(L),"/accounts/"+C+"/pricing/stream",f6.bx.gL,kB,aj)};f6d.om.Hg.vr=function(L,C){f6d.om.vr(f6.aAF(L),"/accounts/"+C+"/pricing/stream")};f6d.om.Hg.aFb=function(L,C,kB){return f6d.om.jK(f6.ahw(L),"/accounts/"+C+"/pricing/snapshots",f6.bx.gL,kB,f6.kc(L,C))};