!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.SignaturePad=t()}(this,function(){"use strict";function e(e,t,a){this.x=e,this.y=t,this.time=a||(new Date).getTime()}function t(e,t,a,n){this.startPoint=e,this.control1=t,this.control2=a,this.endPoint=n}function a(e,t,a){var n,o,i,r=null,s=0;a||(a={});var l=function(){s=a.leading===!1?0:Date.now(),r=null,i=e.apply(n,o),r||(n=o=null)};return function(){var c=Date.now();s||a.leading!==!1||(s=c);var d=t-(c-s);return n=this,o=arguments,d<=0||d>t?(r&&(clearTimeout(r),r=null),s=c,i=e.apply(n,o),r||(n=o=null)):r||a.trailing===!1||(r=setTimeout(l,d)),i}}function n(e,t){var o=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.throttle?this._strokeMoveUpdate=a(n.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=n.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(o._mouseButtonDown=!0,o._strokeBegin(e))},this._handleMouseMove=function(e){o._mouseButtonDown&&o._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&o._mouseButtonDown&&(o._mouseButtonDown=!1,o._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];o._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];o._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){var t=e.target===o._canvas;t&&(e.preventDefault(),o._strokeEnd(e))},this.on()}return e.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},e.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},t.prototype.length=function(){for(var e=10,t=0,a=void 0,n=void 0,o=0;o<=e;o+=1){var i=o/e,r=this._point(i,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(i,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){var l=r-a,c=s-n;t+=Math.sqrt(l*l+c*c)}a=r,n=s}return t},t.prototype._point=function(e,t,a,n,o){return t*(1-e)*(1-e)*(1-e)+3*a*(1-e)*(1-e)*e+3*n*(1-e)*e*e+o*e*e*e},n.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},n.prototype.fromDataURL=function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Image,o=a.ratio||window.devicePixelRatio||1,i=a.width||this._canvas.width/o,r=a.height||this._canvas.height/o;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,i,r)},this._isEmpty=!1},n.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var a=arguments.length,n=Array(a>1?a-1:0),o=1;o2,a=this.points[0];!t&&a&&this._drawDot(a),"function"==typeof this.onEnd&&this.onEnd(e)},n.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},n.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},n.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},n.prototype._createPoint=function(t,a,n){var o=this._canvas.getBoundingClientRect();return new e(t-o.left,a-o.top,n||(new Date).getTime())},n.prototype._addPoint=function(e){var a=this.points,n=void 0;if(a.push(e),a.length>2){3===a.length&&a.unshift(a[0]),n=this._calculateCurveControlPoints(a[0],a[1],a[2]);var o=n.c2;n=this._calculateCurveControlPoints(a[1],a[2],a[3]);var i=n.c1,r=new t(a[1],o,i,a[2]),s=this._calculateCurveWidths(r);return a.shift(),{curve:r,widths:s}}return{}},n.prototype._calculateCurveControlPoints=function(t,a,n){var o=t.x-a.x,i=t.y-a.y,r=a.x-n.x,s=a.y-n.y,l={x:(t.x+a.x)/2,y:(t.y+a.y)/2},c={x:(a.x+n.x)/2,y:(a.y+n.y)/2},d=Math.sqrt(o*o+i*i),u=Math.sqrt(r*r+s*s),p=l.x-c.x,m=l.y-c.y,f=u/(d+u),g={x:c.x+p*f,y:c.y+m*f},h=a.x-g.x,y=a.y-g.y;return{c1:new e(l.x+h,l.y+y),c2:new e(c.x+h,c.y+y)}},n.prototype._calculateCurveWidths=function(e){var t=e.startPoint,a=e.endPoint,n={start:null,end:null},o=this.velocityFilterWeight*a.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return n.start=this._lastWidth,n.end=i,this._lastVelocity=o,this._lastWidth=i,n},n.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},n.prototype._drawPoint=function(e,t,a){var n=this._ctx;n.moveTo(e,t),n.arc(e,t,a,0,2*Math.PI,!1),this._isEmpty=!1},n.prototype._drawCurve=function(e,t,a){var n=this._ctx,o=a-t,i=Math.floor(e.length());n.beginPath();for(var r=0;r1)for(var r=0;r",u=l.innerHTML;if(void 0===u){var p=document.createElement("dummy"),m=l.childNodes;p.innerHTML="";for(var f=0;f'+c+'
'+d+"
"),p.HideAllToast(),t.$broadcast("user:update",{})}else{var u=p.runCascade(n);if(u)return!0;var m=Lang.get("orange.pay_fail");p.displayAlert("Card",''+m+""),p.HideAllToast()}return!1}if("transaction.succeeded"==e.data.event){var f="orange";_.isUndefined(e.data.data.transaction.description)||"ORANGEPAY SERVICES, BAKU AZ"==e.data.data.transaction.description&&(f="orange_not_3d");var c=Lang.get("cascade_card.founded"),d=Lang.get("cascade_card.msg."+f);"alert"==p.alt.type&&(p.displayAlert("Card",'
'+c+'
'+d+"
"),p.HideAllToast()),t.$broadcast("user:update",{})}else{var m=Lang.get("orange.pay_fail"),g=e.data.data.transaction.failure_message?e.data.data.transaction.failure_message:"error";if(p.IsAllowCascade())if($.inArray(g,p.config.orange_no_cascade)!=-1)console.log(g,"allow PFS",!p.countryAllowPFS());else{var u=p.runCascade(n);if(u)return!0}"alert"==p.alt.type&&(m=Lang.get("cascade_card.failed"),m='

'+m+"

",p.displayAlert("Card",''+m+""),p.HideAllToast())}}else r||a(p.ListenCallbackOrange,p.IteratorTimeout)})},p.ListenCallbackPFS=function(){var n="PFS",o=p.alt.uid,i=p.alt.id,r=p.alt.stop;e.post("/api/card/listen/pfs",{uid:o,id:i}).success(function(e,o,i,s){if(1==e["return"])if("0000"==e.data.R1){var l=Lang.get("cascade_card.founded"),c=Lang.get("cascade_card.msg.pfs");"alert"==p.alt.type&&(p.displayAlert("Card",'
'+l+"
"+c+"
"),p.HideAllToast()),t.$broadcast("user:update",{})}else{var d="";if(d+=_.isUndefined(e.data.R2)?"":e.data.R2,d+=_.isUndefined(e.data.R4)?"":"
"+e.data.R4,p.IsAllowCascade()){var u=p.runCascade(n);if(u)return!0}"alert"==p.alt.type&&(p.displayAlert("Card",''+d+""),p.HideAllToast())}else r||a(p.ListenCallbackPFS,p.IteratorTimeout)}).error(function(e){r||a(p.ListenCallbackPFS,p.IteratorTimeout)})},p.ListenCallbackConcept=function(){var t="CONCEPT",n=p.alt.uid,o=p.alt.id,i=p.alt.stop;e.post("/api/payconcept/listen",{transaction_id:n,id:o}).success(function(e,n,o,r){if(1==e["return"])if("APPROVED"==e.data.response){alertify.set("notifier","position","bottom-left");var s=Lang.get("pfs.fast.founded"),l=Lang.get("cascade_card.msg.concept");"alert"==p.alt.type?alertify.alert("Card",'

'+s+'

'+l+"

"):alertify.success(s),p.updateUserDepositTmp()}else{var c=Lang.get("orange.pay_fail");e.data.comment?e.data.comment:"error";if(p.IsAllowCascade()&&p.config.concept_redirect){var d=p.runCascade(t);if(d)return!0}"alert"==p.alt.type?(c='

'+c,c+="

",alertify.alert("Card",c)):alertify.error(c,0)}else i||a(p.ListenCallbackConcept,p.IteratorTimeout)})},p.ListenCallbackSkrill=function(){var t=p.alt.uid,n=p.alt.id,o=p.alt.stop;e.post("/api/card/listen/skrill",{transaction_id:t,id:n}).success(function(e,t,n,i){if(1==e["return"]){var r=p.getPath(e.data,"status");if("2"==r){var s=Lang.get("cascade_card.founded"),l=Lang.get("cascade_card.msg.skrill");p.displayAlert("Skrill",'
'+s+"
"+l+"
"),p.HideAllToast()}else{var c="Error";p.showErrorPayment(c)}}else o||a(p.ListenCallbackSkrill,p.IteratorTimeout)})},p.ListenCallbackAgni=function(){var t=p.alt.uid,n=p.alt.id,o="AGNI",i=p.alt.stop;e.post("/api/fm/agni/listen",{transaction_id:t,id:n}).success(function(e,t,n,r){if(e["return"]===!0){var s=p.getPath(e.data,"status");if("success"===s||"capturesuccess"===s){var l=Lang.get("cascade_card.founded"),c='This transaction will be titled as "IFX*+442031298737" in your bank\'s statement.';p.displayAlert("Card",'
'+l+"
"+c+"

")}else if("N"===s||"C"===s){var d=p.runCascade(o);if(d)return!0;var u=(p.getPath(e.data,"resultCode"),p.getPath(e.data,"resultDescription"));p.showErrorPayment(u)}p.HideAllToast()}else i||a(p.ListenCallbackAgni,p.IteratorTimeout)})},p.showErrorPayment=function(e){p.displayAlert("Card",'
'+e+"

")},p.ListenCardCallback=function(e,t,a){switch(p.alt.uid=a,p.alt.id=t,p.alt.type="alert",p.alt.stop=!1,e){case"pfs":p.ListenToastDisplay(),p.ListenCallbackPFS();break;case"orange":p.ListenToastDisplay(),p.ListenCallbackOrange();break;case"skrill":p.ListenToastDisplay(),p.ListenCallbackSkrill();break;case"ezpay":p.ListenToastDisplay(),p.ListenCallbackEzpay();break;case"agni":p.ListenToastDisplay(),p.ListenCallbackAgni();break;default:console.log("bad prcessor")}},p.ListenToastDisplay=function(){p.displayToastNew("success","We expect a response from the processor",16,!0,!0,!1)},p.ListenCallbackEzpay=function(){var t="EZPAY",n=p.alt.uid,o=p.alt.id,i=p.alt.stop;p.WorkerTrigger(),e.post("/api/card/listen/ezpay",{transaction_id:n,id:o}).success(function(e,n,o,r){if(e["return"]===!0){var s=p.getPath(e.data,"status");if("APPROVED"===s){var l=Lang.get("cascade_card.founded"),c=p.getPath(e.data,"gateway_descriptor"),d=Lang.get("cascade_card.msg.ezpay").format(c);p.displayAlert("Card",'
'+l+"
"+d+"
"),p.HideAllToast()}else{var u=localStorage.getItem("ezpay_fixed");if(u&&"0"===u){var m=p.runCascade(t);if(m)return!0}var f=p.getPath(e.data,"reason"),g=f?f:s;g=Lang.get("cascade_card.failed"),p.showErrorPayment(g),p.HideAllToast()}}else i||a(p.ListenCallbackEzpay,p.IteratorTimeout)})},p.HideAllToast=function(){n.hide(),$.amaran.close()},p.WorkerNull=function(){alert("Not isset processors!")},p.displayToast=function(e,t,a){a||(a=5e3),n.show(n.simple().textContent(t).theme(e+"-toast").position("bottom left").hideDelay(a))},p.displayToastNew=function(e,t,a,n,o,i){a=a?a:5e3,n=!!n&&n,o=!!o&&o,i=!i||i;var r="";switch(e){case"success":r="#27ae60";break;case"error":r="#c0392b";break;default:r="#1B1E24"}$.amaran({theme:"colorful",delay:a,closeOnClick:i,closeButton:o,sticky:n,content:{bgcolor:r,color:"#fff",message:t},position:"bottom left",outEffect:"slideBottom"})},p.displayAlert=function(e,t,a){o.showAlert(e,t,a,{theme:"small black"})},p.getPath=function(e,t){return t.split(".").reduce(function(e,t){return"undefined"==typeof e||null===e?e:e[t]},e)},p.WorkerPFS=function(){var a="PFS";if(!p.WorkerTrigger(a)){var n=p.getLastPayment(),o=n.bonus,i=n.fixed,r=n.amount;p.IsNeedWipeItems(),p.setItemCascade(a),t.$broadcast("cascade:wait",!0),e.post("/api/card/fast/pfs",{amount:r,fixed:i,bonus:o}).success(function(e,n,o,i){if(p.alt.uid=e.transaction_id,p.alt.id=e.type,p.alt.type="alert",p.alt.stop=!1,"0000"!=e.data.R1)if("0008"==e.data.R1)p.ListenCallbackPFS();else{var r=p.runCascade(a);if(r)return!0;p.displayAlert("Card",''+e.data.R2+"")}else p.secure3dRedirectPFS(e.data);t.$broadcast("cascade:wait",!1)}).error(function(e,a,n,o){p.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1)})}},p.WorkerOrange=function(){var a=p.getLastPayment(),n="ORANGE";if(!p.WorkerTrigger(n)){var o=a.bonus,i=a.fixed,r=a.amount;p.IsNeedWipeItems(),p.setItemCascade(n),t.$broadcast("cascade:wait",!0),e.post("/api/card/fast/orange",{amount:r,fixed:i,bonus:o}).success(function(e,a,o,i){var r=p.getPath(e,"data.links.redirect_uri");if(r)return location.href=r,!1;var s=p.getPath(e,"data.charge.attributes.status");if(s&&"failed"==s){var l=p.runCascade(n);if(l)return!0;var c="Error",d=p.getPath(e,"data.charge.attributes.failure.message");return d&&(c=d),c=Lang.get("cascade_card.failed"),p.displayAlert("Card",''+c+""),t.$broadcast("cascade:wait",!1),!1}if(s&&"successful"==s){var u=p.getPath(e,"data.charge.id");return p.initAlt(u,""),p.ListenCallbackOrange(),void t.$broadcast("cascade:wait",!1)}if("success"==e.status){if(e.data.hashed_id){var u=e.data.hashed_id;return p.initAlt(u,""),p.ListenCallbackOrange(),void t.$broadcast("cascade:wait",!1)}e.data.redirect_url?location.href=e.data.redirect_url:p.ListenCallbackOrange()}else{var l=p.runCascade(n);if(l)return!0;var c="Error";e.message&&(c=e.message),c=Lang.get("cascade_card.failed"),p.displayAlert("Card",''+c+"")}t.$broadcast("cascade:wait",!1)}).error(function(e,a,n,o){p.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1)})}},p.WorkerOrangeNot3d=function(){var a=p.getLastPayment(),n="ORANGE_NOT3D";if(!p.WorkerTrigger(n)){var o=a.bonus,i=a.fixed,r=a.amount;p.IsNeedWipeItems(),p.setItemCascade(n),t.$broadcast("cascade:wait",!0),setTimeout(function(){e.post("/api/card/fast/orange",{amount:r,fixed:i,bonus:o}).success(function(e,a,o,i){if("success"==e.status){if(e.data.hashed_id){var r=e.data.hashed_id;return p.initAlt(r,""),p.ListenCallbackOrange(),void t.$broadcast("cascade:wait",!1)}e.data.redirect_url?location.href=e.data.redirect_url:p.ListenCallbackOrange()}else{var s=p.runCascade(n);if(s)return!0;var l="Error";e.message&&(l=e.message),p.displayAlert("Card",''+l+"")}t.$broadcast("cascade:wait",!1)}).error(function(e,a,n,o){p.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1)})},6e3)}},p.WorkerConcept=function(a){var n=p.getLastPayment(),o="CONCEPT";if(!p.WorkerTrigger(o)){var i=n.bonus,r=n.fixed,s=n.amount;a&&(p.config.concept_redirect=!1),p.IsNeedWipeItems(),p.setItemCascade(o),t.$broadcast("cascade:wait",!0),e.post("/api/payconcept/pay",{amount:s,fixed:r,bonus:i}).success(function(e,a,n,o){if(e.txid&&p.initAlt(e.txid,"-1"),"OK"==e.status)""!=e.redirect.html?location.href=e.redirect.html:p.ListenCallbackConcept();else{alertify.set("notifier","position","bottom-left");var i="Error";e.error.msg&&(i="Your transaction was declined due to blacklisting, [customer requested] please contact merchant support."==e.error.msg||"003"==e.error.code?"Your transaction was declined. Please contact merchant support.":e.error.msg),alertify.alert("Card",'

'+i+"

")}t.$broadcast("cascade:wait",!1)}).error(function(e,a,n,o){t.$broadcast("cascade:wait",!1),alertify.set("notifier","position","bottom-left"),alertify.error("Response error, try again",0)})}},p.WorkerZoom=function(){var e=p.getLastPayment(),t="ZOOM";if(!p.WorkerTrigger(t)){var a=e.bonus,n=e.fixed,o=e.amount;p.IsNeedWipeItems(),p.setItemCascade(t),c.fast(o,n,a,p)}},p.WorkerEzpay=function(e,t,a){if(!e&&!t&&!a){var n=p.getLastPayment();a=n.bonus,t=n.fixed,e=n.amount}p.IsNeedWipeItems(),p.setItemCascade("EZPAY"),localStorage.setItem("ezpay_fixed",t),location.href="/api/card/fast/ezpay?amount="+e+"&fixed="+t+"&bonus="+a},p.WorkerEntropay=function(){var a=p.getLastPayment(),n="ENTROPAY";if(!p.WorkerTrigger(n)){var o=a.bonus,i=a.fixed,r=a.amount;p.IsNeedWipeItems(),p.setItemCascade(n),t.$broadcast("cascade:wait",!0),e.post("/api/entro/pay",{amount:r,fixed:i,bonus:o}).success(function(e,a,o,i){if("true"==e["return"])l.entroStart(r);else if("pin"==e["return"])l.entroPin();else{var s=p.runCascade(n);if(s)return!0;var c="Your transaction was declined.";p.displayAlert("Card",''+c+"")}p.HideAllToast(),t.$broadcast("cascade:wait",!1)}).error(function(e,a,n,o){p.HideAllToast(),p.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1)})}},p.WorkerShape=function(){var a=p.getLastPayment(),n="SHAPE";if(!p.WorkerTrigger(n)){var o=a.bonus,i=a.fixed,r=a.amount;p.IsNeedWipeItems(),p.setItemCascade(n),t.$broadcast("cascade:wait",!0),e.post("/api/shape/pay",{amount:r,fixed:i,bonus:o}).success(function(e,a,o,i){if("true"===e["return"])location.href="/api/shape/invoice/"+e.guid;else{var r=p.runCascade(n);if(r)return!0;var s="Your transaction was declined.";p.displayAlert("Card",''+s+"")}p.HideAllToast(),t.$broadcast("cascade:wait",!1)}).error(function(e,a,n,o){p.HideAllToast(),p.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1)})}},p.WorkerVload=function(){var a=p.getLastPayment(),n="VLOAD";if(!p.WorkerTrigger(n)){var o=a.bonus,i=a.fixed,r=a.amount;p.IsNeedWipeItems(),p.setItemCascade(n),t.$broadcast("cascade:wait",!0);var s=window.debug?"&ng=yes":"";e.get("/api/vload/prepare",{amount:r,fixed:i,bonus:o}).success(function(e,t,a,n){location.href="/api/vload/start?amount="+r+s}).error(function(e,t,a,n){location.href="/api/vload/start?amount="+r+s})}},p.WorkerAgni=function(){var e=p.getLastPayment(),a="AGNI";if(!p.WorkerTrigger(a)){var n=e.bonus,o=(e.fixed,e.amount),i=e.currency;p.IsNeedWipeItems(),p.setItemCascade(a),t.$broadcast("cascade:wait",!0),p.sendForm({action:"/api/fm/agni/pay",method:"POST"},{amount:o,bonus:n,currency:i})}},p.WorkerEarth=function(){var a=p.getLastPayment(),n="EARTH";if(!p.WorkerTrigger(n)){var o=a.bonus,i=a.fixed,r=a.amount,s=a.currency;p.IsNeedWipeItems(),p.setItemCascade(n),t.$broadcast("cascade:wait",!0),e.post("/api/card/fast/earth",{amount:r,fixed:i,bonus:o,currency:s}).success(function(e,a,o,i){if(e.need_new_card)return p.displayAlert("Card",'
Old card is invalid. Please refill the card.

'),void t.$broadcast("cascade:wait",!1);if(!e.code||"0"!==e.code&&0!==e.code){var r=p.runCascade(n);if(r)return!0;var s=Lang.get("cascade_card.failed");e.description&&(s=e.description),p.showErrorPayment(s),p.HideAllToast()}else{var l=Lang.get("cascade_card.founded"),c='This transaction will be titled as "Opalwise" in your bank\'s statement.';p.displayAlert("Card",'
'+l+"
"+c+"
")}t.$broadcast("cascade:wait",!1)}).error(function(e,a,n,o){p.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1)})}},p.WorkerFinity=function(){var a=p.getLastPayment(),n="FINITY";if(!p.WorkerTrigger(n)){var o=a.bonus,i=a.fixed,r=a.amount,s=a.currency;p.IsNeedWipeItems(),p.setItemCascade(n),t.$broadcast("cascade:wait",!0),e.post("/api/card/fast/finity",{amount:r,fixed:i,bonus:o,currency:s}).success(function(e,a,o,i){if(e.status&&"C"===e.status){var r=Lang.get("cascade_card.founded"),s=e.message?e.message:"";p.displayAlert("Card",'
'+r+"
"+s+"
")}else{var l=p.runCascade(n);if(l)return!0;var c=Lang.get("cascade_card.failed");e.message&&(c=e.message),p.showErrorPayment(c),p.HideAllToast()}t.$broadcast("cascade:wait",!1)}).error(function(e,a,n,o){p.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1)})}},p.sendForm=function(e,t){var a=jQuery("
",e);$.each(t,function(e,t){var n={name:e,value:t,type:"hidden"};a.append(jQuery("",n))}),a.appendTo("body"),a.submit()},p.WorkerFraud=function(){var a=p.getLastPayment(),n="FRAUD";if(!p.WorkerTrigger(n)){var r=a.bonus,s=a.fixed,l=a.amount;p.IsNeedWipeItems(),p.setItemCascade(n),t.$broadcast("cascade:wait",!0),e.post("/api/fraud/card",{amount:l,fixed:s,bonus:r}).success(function(e,a,r,s){return e.fail_limit?(t.$broadcast("cascade:limit",!0),void p.showErrorPayment(Lang.get("cards.limit"))):e.day_limit?(t.$broadcast("cascade:wait",!1),void o.showConfirm("Information","Dear client, due to safety reasons, your daily limit of 3 credit card transactions per day is exceeded. To continue depositing you are welcome to use alternative payment methods, such as bitcoin. Our support team may assist you in all questions regarding alternative funding methods.",function(){o.CloseAll(),o.showDynamic("/api/ag/modal_bitcoin",{theme:"",close:"bdw-close"},{onHide:function(){i.btc_show=!0,localStorage.setItem(moment().format("YYMMDD"),"yes")}})},function(){o.CloseAll(),d.go("show",{page:"funding"}),setTimeout(function(){var e=$('[data-tab="bitcoin"]');e.click(),setTimeout(function(){$("html, body").animate({scrollTop:e.offset().top},400)},300)},300)},{ok:"Why Bitcoin?",cancel:"Deposit by Bitcoin"})):e.bad_card?(t.$broadcast("cascade:wait",!1),void p.showErrorPayment(Lang.get("cards.bad_card"))):e.reason?(t.$broadcast("cascade:wait",!1),void p.showErrorPayment(e.message)):(e.is_usa_card&&p.cascadeCardType("usa_card"),void p.runCascade(n))}).error(function(e,t,a,o){p.runCascade(n)})}},p.WorkerTrigger=function(e){return!1},p.triggerBeforeAuto=function(e,t,a,n){p.cascadeCardType(n),p.execDefaultTriggersAuto(e,t,a,n)},p.WorkerAuto=function(e,t,a,n){var o={bonus:e,fixed:t,amount:a,currency:u.currency};p.setLastPayment(o),p.wipeItemCascade(),p.triggerBeforeAuto(e,t,a,n),User.get("cascade")&&(p.paymant_stack=User.get("cascade").split(","));var i=!!p.paymant_stack[0]&&p.paymant_stack[0];i&&(p.current_calls=i,p.payment_calls[i]())},p.ZoomError=function(e){e&&"51"===e&&p.setItemCascade("EZPAY")},p.ZoomFail=function(){p.setItemCascade("EZPAY")},p.ReportNoneCascade=function(){e.post("/api/rpc",{worker:"WorkerAuto",cascade:"none",cascade_exec:"Concept"})},p.secure3dRedirectPFS=function(e){var t=e,a="/api/card/secure/pfs/"+t.R5;location.href=a},p.b64EncodeUnicode=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},p.getItemCascade=function(){var e="finpari_cascade_stack";return localStorage.getItem(e)?localStorage.getItem(e).split(","):[]},p.setItemCascade=function(e){var t=p.getItemCascade(),a="finpari_cascade_stack";$.inArray(e,t)==-1&&(t.push(e),localStorage.setItem(a,t.join(",")))},p.wipeItemCascade=function(){var e="finpari_cascade_stack";localStorage.removeItem(e)},p.IsNeedWipeItems=function(){var e=p.getItemCascade().length,t=p.paymant_stack.length;e>=t&&p.wipeItemCascade()},p.getLastPayment=function(){var e="finpari_last_payment";return localStorage.getItem(e)?angular.fromJson(localStorage.getItem(e)):{}},p.setLastPayment=function(e){var t="finpari_last_payment";localStorage.setItem(t,angular.toJson(e))},p.initAlt=function(e,t){p.alt.uid=e,p.alt.id=t,p.alt.stop=!1},p};e.$inject=["$http","$rootScope","$timeout","$mdToast","ModalService","Store","$mdDialog","$stateParams","Entropay","Zoom","$state","Ranger"], angular.module("app").factory("Cascade",e)}(window),function(){"use strict";var e=function(e,t,a){var n={};return n.data={},n.tips=function(e,t){return t.value>40?(n.data=t,void a.showConfirm("Tips confirm",'By clicking "yes" you approve, that $50 tip will be deducted from your account balance.',function(){$(".ui.modal").modal("hide"),n.sentTips(t)},!1,{ok:"Yes"})):void n.sentTips(t)},n.sentTips=function(t){t=t?t:n.data,n.showAmaran(Lang.get("tips.wait"),"2597c7",5e3),setTimeout(function(){e({method:"POST",url:"/api/triggers/tips",data:{value:t.value,host:t.host_id}}).success(function(e){e["return"]?n.showAmaran(Lang.get("tips.success"),"27ae60",5e3):n.showAmaran(Lang.get("tips.error"),"e74c3c",5e3)}).error(function(e){n.showAmaran("some error","e74c3c",5e3)})},3e3)},n.showAmaran=function(e,t,a){$.amaran({theme:"colorful",delay:a,content:{bgcolor:"#"+t,color:"#fff",message:e},position:"bottom left",outEffect:"slideTop"})},t.$on("out:chat:tips",n.tips),n};e.$inject=["$http","$rootScope","ModalService"],angular.module("app").factory("ChatFactory",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){var i={};return i.queue=[],i.data={},i.run=function(e,t,a){i.data[e]={name:e,second:t,current:t,callback:a},i.queue[e]=o(function(){i.tick(e)},1e3)},i.die=function(e){o.cancel(i.queue[e])},i.dieAll=function(){$.each(i.queue,function(e,t){i.die(e)})},i.is=function(e){return!!i.data[e]&&i.data[e]},i.tick=function(e){var a=i.data[e];if(a.current--,a.current<0)return i.die(e),void i.fire(e);var n=1,o=60*n,r=60*o,s=24*r,l=Math.floor(a.current/s),c=Math.floor(a.current%s/r),d=Math.floor(a.current%r/o),u=Math.floor(a.current%o);a.days=l,a.hours=c,a.minutes=d,a.seconds=u,i.data[e]=a,t.$broadcast("coundown:tick",a)},i.fire=function(e){"function"!=typeof i.data[e].callback||i.data[e].callback_exe||(i.data[e].callback_exe=!0,i.data[e].callback()),t.$broadcast("coundown:callback",{name:e})},i};e.$inject=["$http","$rootScope","$timeout","Store","$interval"],angular.module("app").factory("CountDown",e)}(window),function(){"use strict";angular.module("app").directive("forceInteger",function(){return{link:function(e,t,a,n){t.ForceNumericOnly()}}}),angular.module("app").directive("forceFloat",function(){return{link:function(e,t,a,n){t.ForceFloat()}}}),angular.module("app").directive("equals",function(){return{restrict:"A",require:"?ngModel",link:function(e,t,a,n){if(n){e.$watch(a.ngModel,function(){o()}),a.$observe("equals",function(e){o()}),n.$parsers.unshift(function(e){return o(),e}),n.$formatters.unshift(function(e){return o(),e});var o=function(){var e=n.$viewValue,t=a.equals;n.$setValidity("equals",!e||!t||e===t)}}}}})}(window),function(){"use strict";var e=function(e,n,o,i,r,s,l,c){var d={};return d.appendModalWrapper=function(){0==$(".modal-placer-capy").length&&$("body").prepend('')},d.dropModalWrapper=function(){$(".modal-placer-capy").remove()},d.entroStart=function(e){s.amount=e,d.appendModalWrapper(),l.show({clickOutsideToClose:!1,controller:t,templateUrl:"/api/ag/dialog_entro_start",parent:$(".modal-placer-capy")[0],onRemoving:function(){d.dropModalWrapper()}})},d.entroPin=function(){User.get("entro_pin")&&(d.appendModalWrapper(),l.show({clickOutsideToClose:!1,controller:a,templateUrl:"/api/ag/dialog_entro_pin",parent:$(".modal-placer-capy")[0],onRemoving:function(){d.dropModalWrapper()}}))},d};e.$inject=["$http","$rootScope","$timeout","$mdToast","ModalService","Store","$mdDialog","$stateParams"],angular.module("app").factory("Entropay",e);var t=function(e,t,a,n,o,i){e.amount=n.amount,e.hide=function(){t.hide()},e.cancel=function(){o({method:"POST",url:"/api/entro/reject"}).success(function(e){var t=Lang.get("cascade_card.failed");i.displayAlert("Card",''+t+"")}).error(function(e){i.displayToastNew("error","Some errors.")}),t.cancel()},e.go=function(){location.href="/api/entro/redirect?amount="+e.amount}};t.$inject=["$scope","$mdDialog","$rootScope","Store","$http","Cascade"],angular.module("app").controller("EntroStart",t);var a=function(e,t,a,n,o,i){e.data=User.get("entro_pin")?angular.fromJson(User.get("entro_pin")):[],e.cvv="",e.amount=!!e.data.amount&&e.data.amount,e.hide=function(){t.hide()},e.cancel=function(){t.cancel()},e.save=function(){return e.cvv.length<3?void i.displayToastNew("error","Please fill cvv!"):(o({method:"POST",url:"/api/entro/cvv",data:{cvv:e.cvv}}).success(function(t){e.amount&&(User.set("isEntorpayCard",!0),i.WorkerAuto(0,0,e.amount,"visa")),a.$broadcast("reload:card",e.data),e.cancel()}).error(function(e){i.displayToastNew("error","Please fill cvv!")}),void t.cancel())}};a.$inject=["$scope","$mdDialog","$rootScope","Store","$http","Cascade"],angular.module("app").controller("EntroStart",a)}(window),function(){"use strict";var e=function(e,t,a){return{scope:!0,link:function(e,n,o){e.Scans=[],e._deleteScan=function(t,n){return n?void(e.Scans=_.without(e.Scans,t)):void a({method:"POST",url:"/upload/"+o.fileUp.split("user.")[1]+"/unshift",data:t}).success(function(a,n,o,i){e.Scans=_.without(e.Scans,t),e.$parent.Scans_len=e.Scans.length}).error(function(e,t,a,n){alert("Unexpected errors...")})};var i=function(){e.Scans=[]};t.$on("file-up:drop",i),n.find('[type="file"]').on("change",function(a){var n=($(this),FileAPI.getFiles(a)),i=o.fileMax?parseInt(o.fileMax):1;e.Scans.length>=i||FileAPI.filterFiles(n,function(e,t){return"*"==o.fileAllow||!(!/^image/.test(e.type)&&"application/pdf"!=e.type)},function(a,n){if(a.length){var i=_.first(a),r={name:i.name,progress:0,status:"loading",cache:"",info:{},error:""};e.Scans.push(r),e.$parent.Scans_len=e.Scans.length;var s=_.last(e.Scans);try{e.$digest()}catch(l){}FileAPI.upload({url:"/upload/"+o.fileUp.split("user.")[1]+"/no",files:{images:a},prepare:function(){t.$broadcast("file-up:prepare",{})},progress:function(e){var t=(e.total/e.loaded*100).toFixed(0);s.progress=t},complete:function(a,n){if(a){r.status="error",t.$broadcast("file-up:complete",{});try{e.$digest()}catch(o){}}else{try{JSON.parse(n.response)}catch(i){return r.status="error",t.$broadcast("file-up:complete",{}),!1}var l=JSON.parse(n.response);!a&&_.isObject(l.data._FILES.images)?(s.name=l.data._FILES.images.name,s.status="success"):s.status="error";try{e.$digest()}catch(o){}t.$broadcast("file-up:complete",{})}}})}})})}}};e.$inject=["$parse","$rootScope","$http"],angular.module("app").directive("fileUp",e)}(window),function(){"use strict";angular.module("app").filter("lang",function(){return function(e,t){return Lang.get(e)}}),angular.module("app").filter("dateFormat",function(){return function(e,t){return t?moment(e).format(t):moment(e).format("DD.MM.YYYY")}}),angular.module("app").filter("dateFormatUnix",function(){return function(e,t){return t?moment.unix(e).format(t):moment.unix(e).format("DD.MM.YYYY")}}),angular.module("app").filter("toFixed",function(){return function(e,t){return parseFloat(e).toFixed(t)}}),angular.module("app").filter("Today",function(){return function(e,t){return moment().format(e)}}),angular.module("app").filter("CardHider",function(){return function(e,t){if(void 0==e)return"";var a=e.substr(e.length-3),n=e.replace(/[0-9]/gi,"*"),o=n.substr(0,n.length-3),i=o+a,r=i.match(/.{1,4}/g),s=r?r.join(" "):i;return s}}),angular.module("app").filter("maskAccount",function(){return function(e,t){var a=e.indexOf("0"),n="1"+e.substring(a+1,e.length),o=parseInt(n)+5e3;return e.substring(0,a)+o}})}(window),function(){"use strict";var e=function(e,t){var a={};return a.actions={login:"/api/login",logout:"/api/logout",trade:"/",orders:"/v2/cli/api/order/search",transactions:"/v2/cli/api/transactions/search",info:"/cli/userInfo",password:"/cli/password"},a.platform_URL=Settings.get("platform")?Settings.get("platform"):"https://trade.videforex.com",a.platform_URL_test="",a.config={logout_url:"/api/logout"},a.login=function(t,n,o,i){o=o?o:function(){},i=i?i:function(){},e({method:"POST",url:a.platform_URL+a.actions.login,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:$.param({login:t,password:n})}).success(o).error(i)},a.LoginAndAuth=function(t,n,o,i,r){a.login(t,n,function(a){a.success?e({method:"POST",url:"/api/login",data:{email:t,password:n,token:a.data.token,rubens:window.capthaInfo?window.capthaInfo:"vangog",url:location.href,csrf:$("#csrf").val(),recaptcha:$("#recaptcha").val()}}).success(o).error(i):r(a)},i)},a.InjectPlatformIframe=function(){return''},a.logout=function(){window.location.href=a.config.logout_url},a.LogoutPlatform=function(t,n){t=t?t:function(){},n=n?n:function(){},e({withCredentials:!0,method:"POST",url:a.platform_URL+a.actions.logout,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{}}).success(t).error(n)},a.SubscribePlatformEvents=function(){var e=window.addEventListener?"addEventListener":"attachEvent",a=window[e],n="attachEvent"==e?"onmessage":"message";a(n,function(e){var a=e.message?"message":"data",n=e[a];try{var o=angular.fromJson(n);t.$broadcast("platform:"+o.event,o.data)}catch(e){console.log("event debug:",e,n)}},!1)},a.GetOrders=function(t,n,o,i,r,s,l,c){t=t?t:function(){},n=n?n:function(){};var d={startTimeStart:o,startTimeEnd:i,limit:r,offset:s};""!=l&&(d.status=l),""!=c&&(d.symbol=c);var u=$.param(d);e({withCredentials:!0,method:"GET",url:a.platform_URL+a.actions.orders+"?"+u,headers:{"Content-Type":"application/json;charset=UTF-8"}}).success(t).error(n)},a.GetTransactions=function(t,n,o,i,r,s,l,c){var d={executedStart:o,executedEnd:i,limit:r,offset:s};""!=l&&(d.status=l),""!=c&&(d.trType=c);var u=$.param(d);t=t?t:function(){},n=n?n:function(){},e({withCredentials:!0,method:"GET",url:a.platform_URL+a.actions.transactions+"?"+u,headers:{"Content-Type":"application/json;charset=UTF-8"}}).success(t).error(n)},a.GetUserInfo=function(t,n){t=t?t:function(){},n=n?n:function(){},e({withCredentials:!0,method:"GET",url:a.platform_URL+a.actions.info,headers:{"Content-Type":"application/json;charset=UTF-8"},data:{}}).success(t).error(n)},a.ChangePassword=function(t,n,o,i,r){t=t?t:function(){},n=n?n:function(){},e({method:"POST",withCredentials:!0,url:a.platform_URL+a.actions.password,headers:{"Content-Type":"application/json;charset=UTF-8"},data:angular.toJson({newPassword:o,newPasswordConfirm:i,oldPassword:r})}).success(t).error(n)},a.SubscribePlatformEvents(),a.ResizePlatformArea=function(e,t){console.log("resize event:",t),t.height&&$("#trading-platform").height(t.height)},a.PlatformOnNotAuth=function(e,t){a.logout()},a.topUp=function(e,t){location.href="#/show/funding"},a.UpdateUserBalance=function(){var e=function(e){a.UpdateBalanceNew("",e)},t=function(e){console.log(e)};a.GetUserInfo(e,t)},a.UpdateBalanceNew=function(e,a){a.available&&(User.set("available",a.available),t.$broadcast("platform:balance-updated",a))},t.$on("platform:resize",a.ResizePlatformArea),t.$on("platform:not-auth",a.PlatformOnNotAuth),t.$on("platform:topUp",a.topUp),t.$on("platform:balance",a.UpdateBalanceNew),a};e.$inject=["$http","$rootScope"],angular.module("app").factory("FPlatform",e)}(window),function(){"use strict";var e=function(){function e(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];const a=[0,0,0,0];return a[3]+=e[3]+t[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]+t[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]+t[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]+t[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]}function t(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];const a=[0,0,0,0];return a[3]+=e[3]*t[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]*t[3],a[1]+=a[2]>>>16,a[2]&=65535,a[2]+=e[3]*t[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]*t[3],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[2]*t[2],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[3]*t[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]}function a(e,t){return t%=64,32===t?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function n(e,t){return t%=64,0===t?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=t(e,[4283543511,3981806797]),e=o(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),e=o(e,[0,e[0]>>>1])}function r(r,s){r=r||"",s=s||0;const l=r.length%16,c=r.length-l;var d=[0,s],u=[0,s],p=[0,0],m=[0,0];const f=[2277735313,289559509],g=[1291169091,658871167];var h=0;for(h=0;h>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)}function s(e){for(var t="",a=0;a=n}}}};angular.module("app").directive("minam",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s){var l={};return l.getTemplate=function(e,t){var a=o.defer();return e?a.resolve(e):t?i(t,!0).then(function(e){a.resolve(e)},function(e){a.reject(e)}):a.reject("No template or templateUrl has been specified."),a.promise},l.all={title:"",content:""},l.alert={theme:"black","class":".modal-alert",ok:"Ok",ok_trigger:function(){l.CloseAll()},ok_class:"primal bmb"},l.confirm={theme:"black","class":".modal-confirm",ok:"Ok",cancel:"Cancel",ok_trigger:function(){l.CloseAll()},cancel_trigger:function(){l.CloseAll()},ok_class:"primal bmb",cancel_class:"bmb"},l.dynamic={theme:"black","class":".modal-dynamic",ag:""},l.current={},l.defaults={alert:angular.copy(l.alert),confirm:angular.copy(l.confirm),dynamic:angular.copy(l.dynamic)},l.semantic={closable:!0,dimmerSettings:{opacity:.35},autofocus:!1},l.resetDefaults=function(){l.confirm=angular.copy(l.defaults.confirm),l.alert=angular.copy(l.defaults.alert),l.dynamic=angular.copy(l.defaults.dynamic)},l.setPreset=function(e,t){return l.semantic=t?e:angular.extend(l.semantic,e)},l.showAlert=function(e,t,a,n,o){l.resetDefaults(),a&&(l.alert.ok=a),n&&(l.alert=angular.extend(l.alert,n)),o&&(l.semantic=angular.extend(l.semantic,o)),l.all.title=e,l.all.content=t,l.showModal(l.alert)},l.showConfirm=function(e,t,a,n,o,i){l.resetDefaults(),a&&(l.confirm.ok_trigger=a),n&&(l.confirm.cancel_trigger=n),o&&(l.confirm=angular.extend(l.confirm,o)),i&&(l.semantic=angular.extend(l.semantic,i)),l.all.title=e,l.all.content=t,l.showModal(l.confirm)},l.refresh=function(){$(".ui.modal").modal("refresh","cache sizes")},l.showDynamic=function(e,t,a){l.resetDefaults(),l.dynamic.ag=e,t&&(l.dynamic=angular.extend(l.dynamic,t)),a&&(l.semantic=angular.extend(l.semantic,a)),l.showModal(l.dynamic)},l.displose=!1,l.showModal=function(e){var a=o.defer();return l.getTemplate(!1,"/api/ag/modal").then(function(o){l.displose&&l.displose.$destroy();var i=t.$new(),r=n(o),s=r(i);l.displose=i,i.$on("$includeContentLoaded",l.refresh);var c=$(s[0]).find(e["class"]);l.current=c,l.bindCancel(s),c.modal(l.semantic).modal("show"),a.resolve("hellow")}).then(null,function(e){a.reject(e)}),a.promise},l.showFancy=function(e,a){var i=o.defer();return l.getTemplate(!1,e).then(function(e){var o=angular.extend({clickSlide:!1,clickOutside:!1,autoFocus:!1},a),r=t.$new(),s=n(e),l=s(r),c="fancy-dynamic";$("#"+c).remove(),$(l[0]).attr("id",c).css("display","none"),$("body").append($(l[0])),setTimeout(function(){$.fancybox.open([{src:"#fancy-dynamic",type:"inline",opts:o}],{loop:!1})},100),i.resolve("hellow")}).then(null,function(e){i.reject(e)}),i.promise},l.CloseAll=function(){l.isActive()&&l.current.modal("hide all")},l.closeFancy=function(){$.fancybox.close()},l.isActive=function(){return $(".modals.active").length>0},l.displayToastAmaran=function(e,t,a,n,o,i){a=a?a:5e3,n=!!n&&n,o=!!o&&o,i=!i||i;var r="";switch(e){case"success":r="#27ae60";break;case"error":r="#c0392b";break;default:r="#1B1E24"}$.amaran({theme:"colorful",delay:a,closeOnClick:i,closeButton:o,sticky:n,content:{bgcolor:r,color:"#fff",message:t},position:"bottom left",outEffect:"slideBottom"})},l.displayToast=function(e,t,a){a||(a=5e3),s.show(s.simple().textContent(t).theme(e+"-toast").position("bottom left").hideDelay(a))},l.displayToastNew=function(e,t,a,n,o,i){a=a?a:5e3,n=!!n&&n,o=!!o&&o,i=!i||i;var r="";switch(e){case"success":r="#27ae60";break;case"error":r="#c0392b";break;default:r="#1B1E24"}$.amaran({theme:"colorful",delay:a,closeOnClick:i,closeButton:o,sticky:n,content:{bgcolor:r,color:"#fff",message:t},position:"bottom left",outEffect:"slideBottom"})},l.displayAlert=function(e,t,a){l.showAlert(e,t,a)},l.HideAllToast=function(){s.hide(),$.amaran.close()},l.bindCancel=function(e){$(e).find(".close-modal").bind("click",function(e){$(this).unbind("click"),l.CloseAll(),t.$broadcast("modal:cancel",{})})},$(document).keyup(function(e){27==e.keyCode&&l.CloseAll()}),t.$on("modal:resize",l.refresh),l};e.$inject=["$http","$rootScope","$timeout","$compile","$q","$templateRequest","$controller","$mdToast"],angular.module("app").factory("ModalService",e)}(window),function(){"use strict";var e=function(e,t,a){var n={};n.mapPrefix={USD:"$",EUR:"€",GBP:"£",RUB:"",BTC:"BTC",LTC:"LTC"},n.mapPostfix={USD:"",EUR:"",GBP:"",RUB:"rub",BTC:"",LTC:""},n.cryptoCurrency=["BTC","LTC","ETH","DSH"],n.isCrypto=function(e){return $.inArray(e,n.cryptoCurrency)!==-1};var o=250,i=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB","GF","GP","MQ","ME","YT","RE","MF","GI","AX","PM","GL","BL","SX","AW","CW","WF","PF","NC","TF","AI","BM","IO","VG","KY","FK","MS","PN","SH","GS","TC","AD","LI","MC","SM","VA","JE","GG","GI","CH"],r=0==$.inArray(Cc.get("GEO"),["US","CA"]),s=0==$.inArray(Cc.get("GEO"),i),l=User.get("affsId"),c=User.get("userId"),d=User.get("comments"),u=Settings.get("mdps.ALL"),p=Settings.get("mdps.USA"),m=Settings.get("mdps.NO_EU_US"),f=User.get("country"),g=Settings.get("mdps.OCODE"),h=Settings.get("mdps.COUNTRY"),y=Settings.get("mdps.USERS");Settings.get("mdps.DEFAULT")&&(o=parseInt(Settings.get("mdps.DEFAULT"))),h&&$.each(h,function(e,t){_.each(t,function(t,a){Cc.get("GEO")!==t&&t!==f||(o=parseInt(e))})}),u&&$.each(u,function(e,t){$.inArray(l,t)!==-1&&(o=parseInt(e))}),m&&$.each(m,function(e,t){$.inArray(l,t)===-1||r||s||(o=parseInt(e))}),p&&$.each(p,function(e,t){$.inArray(l,t)!==-1&&r&&(o=parseInt(e))}),g&&$.each(g,function(e,t){$.inArray(d,t)!==-1&&(o=parseInt(e))}),y&&$.each(y,function(e,t){_.each(t,function(t,a){c===t&&(o=parseInt(e))})}),User.get("md")&&(o=parseInt(User.get("md"))),User.get("mdps")&&(o=parseInt(User.get("mdps"))),n.getUserCurrency=function(){var e=User.get("balances"),t=User.get("currency");if(e&&_.isArray(e)){if(1!==e.length||User.get("current_accountId")){var a=_.findWhere(e,{accountId:User.get("current_accountId")});return a?a.currency:"USD"}return t}return t};var v={},w=1,b=n.getUserCurrency(),T=0;return v={start:o*w,gold:1e4*w,silver:3e3*w,bronze:1e3*w},"RUB"===b&&(v={start:o,gold:1e4*w,silver:3e3*w,bronze:1e3*w},w=60,o*=w),o>1e3&&(v={start:o*w,gold:1e4*w,silver:3e3+o,bronze:o+1e3}),n.updateCurrency=function(e){n.currency=n.isCrypto(e)?"USD":e,n.setCurrencyPrefix(e),t.$broadcast("ranger:currency:update",n)},n.setCurrencyPrefix=function(e){e?(n.prefix=n.mapPrefix[n.currency]?n.mapPrefix[n.currency]:"",n.postfix=n.mapPostfix[n.currency]?n.mapPostfix[n.currency]:""):(n.prefix="$",n.postfix="")},n.isNoVload=function(){var e=Settings.get("no_vload")?Settings.get("no_vload"):[];return $.inArray(User.get("affsId"),e)!==-1},n.minDeposit=o,n.slider=v,n.decimals=T,n.currency=n.isCrypto(b)?"USD":b,n.setCurrencyPrefix(b),n.isDemoAccount=function(){var e=User.get("email");if(e){var t=e.split("@");if(-1!==location.host.indexOf(t[1]))return!0}return!1},n.showDemoAlert=function(){a.showAlert("Dear Valued Customer","You are now trying to fund your DEMO account!
Please complete this action on your trading account in order to avoid delays with your payment and keep you DEMO account active.")},n};e.$inject=["$http","$rootScope","ModalService"],angular.module("app").factory("Ranger",e)}(window),function(){"use strict";var e=function(e){return{restrict:"A",link:function(e,t,a){var n=function(){var e=t.find("[required]"),a=!0;return $.each(e,function(e,t){""==$(t).val()&&(a=!1)}),t.find(".ng-invalid").length>0&&(a=!1),a};t.on("submit",function(){return!!n()})}}};e.$inject=["$http"],angular.module("app").directive("safari",e)}(window),function(){"use strict";var e=function(e,t){var a={};return a.RegisterConversion=function(e){window.google_conversion_id=1057644682,window.google_conversion_language="en",window.google_conversion_format="3",window.google_conversion_color="ffffff",window.google_conversion_label="5ObXCPay21wQisGp-AM",window.google_remarketing_only=!1,$.getScript("https://www.googleadservices.com/pagead/conversion.js",e)},a.GaEventRegister=function(){"function"==typeof ga&&ga("send","event","Registration","Successful")},a.GtagEventRegister=function(){"function"==typeof gtag?gtag("event","conversion",{send_to:"AW-824992907/I8q2CKCwmnoQi8mxiQM"}):console.log("gtag is not defined!")},a};e.$inject=["$http","$rootScope"],angular.module("app").factory("SEO",e)}(window),function(){"use strict";var e=function(e,t){return{restrict:"A",require:"ngModel",link:function(a,n,o,i){function r(){return t(function(e,t){})}var s=o.sv,l=o.st,c=!1;r();i.$asyncValidators.ServerValidate=function(n,o){var i=n||o;return c=!1,"phone"==l?"1"!=a.user.phone_prefix?t.resolve():e.post(s,{em:a.user.phone_prefix+""+i}).then(function(e){return c=0==e.data[l].error,!!c||t.reject(e.data[l].message)},function(){return t.reject("email does not exists")}):e.post(s,{em:i}).then(function(e){return _.isUndefined(e.data[l])||(c=0==e.data[l].error),!!c||t.reject(e.data[l].message)},function(){return t.reject("email does not exists")})}}}};e.$inject=["$http","$q"],angular.module("app").directive("sv",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l){var c={};return c.timeout=3e5,c.interval={},c.alert=!1,c.getTemplate=function(e,t){var a=s.defer();return e?a.resolve(e):t?l(t,!0).then(function(e){a.resolve(e)},function(e){a.reject(e)}):a.reject("No template or templateUrl has been specified."),a.promise},c.close=function(){c.alert.sg_show=!1},c.tick=function(){c.alert.counter>0?(c.alert.counter-=1,a(c.tick,1e3),c.canvasInvalidate(c.alert.counter/.6)):c.close()},c.canvasInvalidate=function(e){var t=document.getElementById("stat-circle"),a=t.getContext("2d"),n=3.6*e,o=88,i=88,r=82;a.clearRect(0,0,t.width,t.height),a.beginPath(),a.lineWidth=12;var s=a.createLinearGradient(0,0,170,0);s.addColorStop("0","#2698c8"),s.addColorStop("1.0","#126c92"),a.strokeStyle=s,a.arc(o,i,r,Math.PI/180*270,Math.PI/180*(270+n),!1),a.stroke()},c.renderTemplate=function(e){var a=s.defer();c.getTemplate(!1,"/api/ag/signals").then(function(a){if($(".pop-notify").remove(),c.alert)try{c.alert.$destroy()}catch(n){console.log(n)}var o=t.$new();o.sg_show=!0,o.counter=60,o.data=e,o.close=c.close,o.showCalendar=c.showCalendar,c.alert=o;var i=r(a),s=i(o);$("body").append(s),c.tick()}).then(null,function(e){a.reject(e)})},c.loadData=function(){"#/home"==location.hash&&e({method:"POST",url:"/api/signals"}).success(function(e,t,a,n){if(_.isArray(e)){var o=c.getCurrentSignal(e);o&&c.renderTemplate(o)}}).error(function(e,t,a,n){})},c.testSignal=function(){e({method:"POST",url:"/api/signals",data:{test:"true"}}).success(function(e,t,a,n){if(_.isArray(e)){var o=c.getCurrentSignal(e);o&&c.renderTemplate(o)}}).error(function(e,t,a,n){})},c.run=function(){c.interval=n(c.loadData,c.timeout),a(c.loadData,5e3)},c.stop=function(){n.cancel(c.interval)},c.showCalendar=function(){t.$broadcast("news:calendar:show")},c.getCurrentSignal=function(e){var t=c.getShowEvents(),a=!1;return $.each(e,function(e,n){if($.inArray(n.id.toString(),t)==-1&&0==a)return c.addShowEvent(n.id),a=n,n}),a},c.getShowEvents=function(){var e="events_show_"+moment().format("L"),t=localStorage.getItem(e);return null===t?[]:t.split(",")},c.addShowEvent=function(e){var t=c.getShowEvents(),a="events_show_"+moment().format("L");t.push(e),localStorage.setItem(a,t.join(","))},c.run(),$(document).bind("signal.test",c.testSignal),$(document).bind("signal.real",c.loadData),c};e.$inject=["$http","$rootScope","$timeout","$interval","$mdDialog","Store","$compile","$q","$templateRequest"],angular.module("app").factory("Signals",e)}(window),function(){"use strict";var e=function(e,t){return{link:function(a,n,o,i){var r=function(e){var t=e.slider,a=e.decimals,n=e.prefix,o=e.postfix;return console.log(n,o),{start:[t.bronze],range:{min:[t.start],"33.3%":[t.bronze],"66.4%":[t.silver],max:[t.gold]},connect:"lower",format:wNumb({decimals:a}),pips:{mode:"values",values:[t.start,t.bronze,t.silver,t.gold],density:4,format:wNumb({prefix:n,postfix:o})}}},s=function(e){noUiSlider.create(n[0],r(e))},l=function(){n[0].noUiSlider.on("update",function(e,t){}),n[0].noUiSlider.on("slide",function(e,t){a.$broadcast("slideUiSlide",e)}),n[0].noUiSlider.on("end",function(t,a){e.$broadcast("slideUiEnd",t)})};s(t),l();var c=function(e,t){n[0].noUiSlider.set([t])},d=function(e,t){n[0].noUiSlider.destroy(),s(t),l()};a.$on("SliderSetValue",c),a.$on("ranger:currency:update",d)}}};e.$inject=["$rootScope","Ranger"],angular.module("app").directive("slideUi",e)}(window),function(){"use strict";angular.module("app").factory("ISO",function(){var e={0:{id:0,name:"Any"},1:{id:"1",iso:"AF",name:"Afghanistan",iso3:"AFG",numcode:"4",block:"0",allowRegistration:"1",prefix:"93",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},2:{id:"2",iso:"AL",name:"Albania",iso3:"ALB",numcode:"8",block:"0",allowRegistration:"1",prefix:"355",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},3:{id:"3",iso:"DZ",name:"Algeria",iso3:"DZA",numcode:"12",block:"0",allowRegistration:"1",prefix:"213",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},4:{id:"4",iso:"AS",name:"American Samoa",iso3:"ASM",numcode:"16",block:"0",allowRegistration:"1",prefix:"1684",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},5:{id:"5",iso:"AD",name:"Andorra",iso3:"AND",numcode:"20",block:"0",allowRegistration:"1",prefix:"376",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},6:{id:"6",iso:"AO",name:"Angola",iso3:"AGO",numcode:"24",block:"0",allowRegistration:"1",prefix:"244",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},7:{id:"7",iso:"AI",name:"Anguilla",iso3:"AIA",numcode:"660",block:"0",allowRegistration:"1",prefix:"1264",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},8:{id:"8",iso:"AQ",name:"Antarctica",iso3:"",numcode:"0",block:"0",allowRegistration:"1",prefix:"672",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},9:{id:"9",iso:"AG",name:"Antigua and Barbuda",iso3:"ATG",numcode:"28",block:"0",allowRegistration:"1",prefix:"1268",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},10:{id:"10",iso:"AR",name:"Argentina",iso3:"ARG",numcode:"32",block:"0",allowRegistration:"1",prefix:"54",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},11:{id:"11",iso:"AM",name:"Armenia",iso3:"ARM",numcode:"51",block:"0",allowRegistration:"1",prefix:"374",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},12:{id:"12",iso:"AW",name:"Aruba",iso3:"ABW",numcode:"533",block:"0",allowRegistration:"1",prefix:"297",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},13:{id:"13",iso:"AU",name:"Australia",iso3:"AUS",numcode:"36",block:"0",allowRegistration:"1",prefix:"61",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},14:{id:"14",iso:"AT",name:"Austria",iso3:"AUT",numcode:"40",block:"0",allowRegistration:"1",prefix:"43",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},15:{id:"15",iso:"AZ",name:"Azerbaijan",iso3:"AZE",numcode:"31",block:"0",allowRegistration:"1",prefix:"994",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},16:{id:"16",iso:"BS",name:"Bahamas",iso3:"BHS",numcode:"44",block:"0",allowRegistration:"1",prefix:"1242",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},17:{id:"17",iso:"BH",name:"Bahrain",iso3:"BHR",numcode:"48",block:"0",allowRegistration:"1",prefix:"973",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},18:{id:"18",iso:"BD",name:"Bangladesh",iso3:"BGD",numcode:"50",block:"0",allowRegistration:"1",prefix:"880",defaultLang:null,assetTypes:null,parentId:"0", isRegulated:"0",nationality:null},19:{id:"19",iso:"BB",name:"Barbados",iso3:"BRB",numcode:"52",block:"0",allowRegistration:"1",prefix:"1246",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},20:{id:"20",iso:"BY",name:"Belarus",iso3:"BLR",numcode:"112",block:"0",allowRegistration:"1",prefix:"375",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},21:{id:"21",iso:"BE",name:"Belgium",iso3:"BEL",numcode:"56",block:"0",allowRegistration:"1",prefix:"32",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},22:{id:"22",iso:"BZ",name:"Belize",iso3:"BLZ",numcode:"84",block:"0",allowRegistration:"1",prefix:"501",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},23:{id:"23",iso:"BJ",name:"Benin",iso3:"BEN",numcode:"204",block:"0",allowRegistration:"1",prefix:"229",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},24:{id:"24",iso:"BM",name:"Bermuda",iso3:"BMU",numcode:"60",block:"0",allowRegistration:"1",prefix:"1441",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},25:{id:"25",iso:"BT",name:"Bhutan",iso3:"BTN",numcode:"64",block:"0",allowRegistration:"1",prefix:"975",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},26:{id:"26",iso:"BO",name:"Bolivia",iso3:"BOL",numcode:"68",block:"0",allowRegistration:"1",prefix:"591",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},27:{id:"27",iso:"BA",name:"Bosnia and Herzegovina",iso3:"BIH",numcode:"70",block:"0",allowRegistration:"1",prefix:"387",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},28:{id:"28",iso:"BW",name:"Botswana",iso3:"BWA",numcode:"72",block:"0",allowRegistration:"1",prefix:"267",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},29:{id:"29",iso:"BV",name:"Bouvet Island",iso3:"",numcode:"0",block:"0",allowRegistration:"1",prefix:null,defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},30:{id:"30",iso:"BR",name:"Brazil",iso3:"BRA",numcode:"76",block:"0",allowRegistration:"1",prefix:"55",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},31:{id:"31",iso:"IO",name:"British Indian Ocean Territory",iso3:"",numcode:"0",block:"0",allowRegistration:"1",prefix:"246",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},32:{id:"32",iso:"BN",name:"Brunei Darussalam",iso3:"BRN",numcode:"96",block:"0",allowRegistration:"1",prefix:"673",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},33:{id:"33",iso:"BG",name:"Bulgaria",iso3:"BGR",numcode:"100",block:"0",allowRegistration:"1",prefix:"359",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},34:{id:"34",iso:"BF",name:"Burkina Faso",iso3:"BFA",numcode:"854",block:"0",allowRegistration:"1",prefix:"226",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},35:{id:"35",iso:"BI",name:"Burundi",iso3:"BDI",numcode:"108",block:"0",allowRegistration:"1",prefix:"257",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},36:{id:"36",iso:"KH",name:"Cambodia",iso3:"KHM",numcode:"116",block:"0",allowRegistration:"1",prefix:"855",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},37:{id:"37",iso:"CM",name:"Cameroon",iso3:"CMR",numcode:"120",block:"0",allowRegistration:"1",prefix:"237",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},38:{id:"38",iso:"CA",name:"Canada",iso3:"CAN",numcode:"124",block:"0",allowRegistration:"1",prefix:"1",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},39:{id:"39",iso:"CV",name:"Cape Verde",iso3:"CPV",numcode:"132",block:"0",allowRegistration:"1",prefix:"238",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},40:{id:"40",iso:"KY",name:"Cayman Islands",iso3:"CYM",numcode:"136",block:"0",allowRegistration:"1",prefix:"1345",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},41:{id:"41",iso:"CF",name:"Central African Republic",iso3:"CAF",numcode:"140",block:"0",allowRegistration:"1",prefix:"236",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},42:{id:"42",iso:"TD",name:"Chad",iso3:"TCD",numcode:"148",block:"0",allowRegistration:"1",prefix:"235",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},43:{id:"43",iso:"CL",name:"Chile",iso3:"CHL",numcode:"152",block:"0",allowRegistration:"1",prefix:"56",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},44:{id:"44",iso:"CN",name:"China",iso3:"CHN",numcode:"156",block:"0",allowRegistration:"1",prefix:"86",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},45:{id:"45",iso:"CX",name:"Christmas Island",iso3:"",numcode:"0",block:"0",allowRegistration:"1",prefix:"61",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},46:{id:"46",iso:"CC",name:"Cocos (Keeling) Islands",iso3:null,numcode:null,block:"0",allowRegistration:"1",prefix:"61",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},47:{id:"47",iso:"CO",name:"Colombia",iso3:"COL",numcode:"170",block:"0",allowRegistration:"1",prefix:"57",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},48:{id:"48",iso:"KM",name:"Comoros",iso3:"COM",numcode:"174",block:"0",allowRegistration:"1",prefix:"269",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},49:{id:"49",iso:"CG",name:"Congo",iso3:"COG",numcode:"178",block:"0",allowRegistration:"1",prefix:"242",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},50:{id:"50",iso:"CD",name:"Congo, the Democratic Republic of the",iso3:"COD",numcode:"180",block:"0",allowRegistration:"1",prefix:"243",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},51:{id:"51",iso:"CK",name:"Cook Islands",iso3:"COK",numcode:"184",block:"0",allowRegistration:"1",prefix:"682",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},52:{id:"52",iso:"CR",name:"Costa Rica",iso3:"CRI",numcode:"188",block:"0",allowRegistration:"1",prefix:"506",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},53:{id:"53",iso:"CI",name:"Cote D'Ivoire",iso3:"CIV",numcode:"384",block:"0",allowRegistration:"1",prefix:null,defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},54:{id:"54",iso:"HR",name:"Croatia",iso3:"HRV",numcode:"191",block:"0",allowRegistration:"1",prefix:"385",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},55:{id:"55",iso:"CU",name:"Cuba",iso3:"CUB",numcode:"192",block:"0",allowRegistration:"1",prefix:"53",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},56:{id:"56",iso:"CY",name:"Cyprus",iso3:"CYP",numcode:"196",block:"0",allowRegistration:"1",prefix:"357",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},57:{id:"57",iso:"CZ",name:"Czech Republic",iso3:"CZE",numcode:"203",block:"0",allowRegistration:"1",prefix:"420",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},58:{id:"58",iso:"DK",name:"Denmark",iso3:"DNK",numcode:"208",block:"0",allowRegistration:"1",prefix:"45",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},59:{id:"59",iso:"DJ",name:"Djibouti",iso3:"DJI",numcode:"262",block:"0",allowRegistration:"1",prefix:"253",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},60:{id:"60",iso:"DM",name:"Dominica",iso3:"DMA",numcode:"212",block:"0",allowRegistration:"1",prefix:"1767",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},61:{id:"61",iso:"DO",name:"Dominican Republic",iso3:"DOM",numcode:"214",block:"0",allowRegistration:"1",prefix:"1809",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},62:{id:"62",iso:"EC",name:"Ecuador",iso3:"ECU",numcode:"218",block:"0",allowRegistration:"1",prefix:"593",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},63:{id:"63",iso:"EG",name:"Egypt",iso3:"EGY",numcode:"818",block:"0",allowRegistration:"1",prefix:"20",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},64:{id:"64",iso:"SV",name:"El Salvador",iso3:"SLV",numcode:"222",block:"0",allowRegistration:"1",prefix:"503",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},65:{id:"65",iso:"GQ",name:"Equatorial Guinea",iso3:"GNQ",numcode:"226",block:"0",allowRegistration:"1",prefix:"240",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},66:{id:"66",iso:"ER",name:"Eritrea",iso3:"ERI",numcode:"232",block:"0",allowRegistration:"1",prefix:"291",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},67:{id:"67",iso:"EE",name:"Estonia",iso3:"EST",numcode:"233",block:"0",allowRegistration:"1",prefix:"372",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},68:{id:"68",iso:"ET",name:"Ethiopia",iso3:"ETH",numcode:"231",block:"0",allowRegistration:"1",prefix:"251",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},69:{id:"69",iso:"FK",name:"Falkland Islands (Malvinas)",iso3:"FLK",numcode:"238",block:"0",allowRegistration:"1",prefix:"500",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},70:{id:"70",iso:"FO",name:"Faroe Islands",iso3:"FRO",numcode:"234",block:"0",allowRegistration:"1",prefix:"298",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},71:{id:"71",iso:"FJ",name:"Fiji",iso3:"FJI",numcode:"242",block:"0",allowRegistration:"1",prefix:"679",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},72:{id:"72",iso:"FI",name:"Finland",iso3:"FIN",numcode:"246",block:"0",allowRegistration:"1",prefix:"358",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},73:{id:"73",iso:"FR",name:"France",iso3:"FRA",numcode:"250",block:"0",allowRegistration:"1",prefix:"33",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},74:{id:"74",iso:"GF",name:"French Guiana",iso3:"GUF",numcode:"254",block:"0",allowRegistration:"1",prefix:null,defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},75:{id:"75",iso:"PF",name:"French Polynesia",iso3:"PYF",numcode:"258",block:"0",allowRegistration:"1",prefix:"689",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},76:{id:"76",iso:"TF",name:"French Southern Territories",iso3:null,numcode:null,block:"0",allowRegistration:"1",prefix:null,defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},77:{id:"77",iso:"GA",name:"Gabon",iso3:"GAB",numcode:"266",block:"0",allowRegistration:"1",prefix:"241",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},78:{id:"78",iso:"GM",name:"Gambia",iso3:"GMB",numcode:"270",block:"0",allowRegistration:"1",prefix:"220",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},79:{id:"79",iso:"GE",name:"Georgia",iso3:"GEO",numcode:"268",block:"0",allowRegistration:"1",prefix:"995",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},80:{id:"80",iso:"DE",name:"Germany",iso3:"DEU",numcode:"276",block:"0",allowRegistration:"1",prefix:"49",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},81:{id:"81",iso:"GH",name:"Ghana",iso3:"GHA",numcode:"288",block:"0",allowRegistration:"1",prefix:"233",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},82:{id:"82",iso:"GI",name:"Gibraltar",iso3:"GIB",numcode:"292",block:"0",allowRegistration:"1",prefix:"350",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},83:{id:"83",iso:"GR",name:"Greece",iso3:"GRC",numcode:"300",block:"0",allowRegistration:"1",prefix:"30",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},84:{id:"84",iso:"GL",name:"Greenland",iso3:"GRL",numcode:"304",block:"0",allowRegistration:"1",prefix:"2991",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},85:{id:"85",iso:"GD",name:"Grenada",iso3:"GRD",numcode:"308",block:"0",allowRegistration:"1",prefix:"1473",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},86:{id:"86",iso:"GP",name:"Guadeloupe",iso3:"GLP",numcode:"312",block:"0",allowRegistration:"1",prefix:"590",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},87:{id:"87",iso:"GU",name:"Guam",iso3:"GUM",numcode:"316",block:"0",allowRegistration:"1",prefix:"1671",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},88:{id:"88",iso:"GT",name:"Guatemala",iso3:"GTM",numcode:"320",block:"0",allowRegistration:"1",prefix:"502",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},89:{id:"89",iso:"GN",name:"Guinea",iso3:"GIN",numcode:"324",block:"0",allowRegistration:"1",prefix:"224",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},90:{id:"90",iso:"GW",name:"Guinea-Bissau",iso3:"GNB",numcode:"624",block:"0",allowRegistration:"1",prefix:"245",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},91:{id:"91",iso:"GY",name:"Guyana",iso3:"GUY",numcode:"328",block:"0",allowRegistration:"1",prefix:"592",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},92:{id:"92",iso:"HT",name:"Haiti",iso3:"HTI",numcode:"332",block:"0",allowRegistration:"1",prefix:"509",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},93:{id:"93",iso:"HM",name:"Heard Island and Mcdonald Islands",iso3:null,numcode:null,block:"0",allowRegistration:"1",prefix:null,defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},94:{id:"94",iso:"VA",name:"Holy See (Vatican City State)",iso3:"VAT",numcode:"336",block:"0",allowRegistration:"1",prefix:"379",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},95:{id:"95",iso:"HN",name:"Honduras",iso3:"HND",numcode:"340",block:"0",allowRegistration:"1",prefix:"504",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},96:{id:"96",iso:"HK",name:"Hong Kong",iso3:"HKG",numcode:"344",block:"0",allowRegistration:"1",prefix:"852",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},97:{id:"97",iso:"HU",name:"Hungary",iso3:"HUN",numcode:"348",block:"0",allowRegistration:"1",prefix:"36",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},98:{id:"98",iso:"IS",name:"Iceland",iso3:"ISL",numcode:"352",block:"0",allowRegistration:"1",prefix:"354",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},99:{id:"99",iso:"IN",name:"India",iso3:"IND",numcode:"356",block:"0",allowRegistration:"1",prefix:"91",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},100:{id:"100",iso:"ID",name:"Indonesia",iso3:"IDN",numcode:"360",block:"0",allowRegistration:"1",prefix:"62",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},101:{id:"101",iso:"IR",name:"Iran, Islamic Republic of",iso3:"IRN",numcode:"364",block:"0",allowRegistration:"1",prefix:"98",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},102:{id:"102",iso:"IQ",name:"Iraq",iso3:"IRQ",numcode:"368",block:"0",allowRegistration:"1",prefix:"964",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},103:{id:"103",iso:"IE",name:"Ireland",iso3:"IRL",numcode:"372",block:"0",allowRegistration:"1",prefix:"353",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},104:{id:"104",iso:"IL",name:"Israel",iso3:"ISR",numcode:"376",block:"0",allowRegistration:"1",prefix:"972",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},105:{id:"105",iso:"IT",name:"Italy",iso3:"ITA",numcode:"380",block:"0",allowRegistration:"1",prefix:"39",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},106:{id:"106",iso:"JM",name:"Jamaica",iso3:"JAM",numcode:"388",block:"0",allowRegistration:"1",prefix:"1876",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},107:{id:"107",iso:"JP",name:"Japan",iso3:"JPN",numcode:"392",block:"0",allowRegistration:"1",prefix:"81",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},108:{id:"108",iso:"JO",name:"Jordan",iso3:"JOR",numcode:"400",block:"0",allowRegistration:"1",prefix:"962",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},109:{id:"109",iso:"KZ",name:"Kazakhstan",iso3:"KAZ",numcode:"398",block:"0",allowRegistration:"1",prefix:"7",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},110:{id:"110",iso:"KE",name:"Kenya",iso3:"KEN",numcode:"404",block:"0",allowRegistration:"1",prefix:"254",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},111:{id:"111",iso:"KI",name:"Kiribati",iso3:"KIR",numcode:"296",block:"0",allowRegistration:"1",prefix:"686",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},112:{id:"112",iso:"KP",name:"Korea, Democratic People's Republic of",iso3:"PRK",numcode:"408",block:"0",allowRegistration:"1",prefix:"850",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},113:{id:"113",iso:"KR",name:"Korea, Republic of",iso3:"KOR",numcode:"410",block:"0",allowRegistration:"1",prefix:"82",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},240:{id:"240",iso:"KV",name:"Kosovo",iso3:"UNK",numcode:"0",block:"0",allowRegistration:"1",prefix:"381",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},114:{id:"114",iso:"KW",name:"Kuwait",iso3:"KWT",numcode:"414",block:"0",allowRegistration:"1",prefix:"965",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},115:{id:"115",iso:"KG",name:"Kyrgyzstan",iso3:"KGZ",numcode:"417",block:"0",allowRegistration:"1",prefix:"996",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},116:{id:"116",iso:"LA",name:"Lao People's Democratic Republic",iso3:"LAO",numcode:"418",block:"0",allowRegistration:"1",prefix:"856",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},117:{id:"117",iso:"LV",name:"Latvia",iso3:"LVA",numcode:"428",block:"0",allowRegistration:"1",prefix:"371",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},118:{id:"118",iso:"LB",name:"Lebanon",iso3:"LBN",numcode:"422",block:"0",allowRegistration:"1",prefix:"961",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},119:{id:"119",iso:"LS",name:"Lesotho",iso3:"LSO",numcode:"426",block:"0",allowRegistration:"1",prefix:"266",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},120:{id:"120",iso:"LR",name:"Liberia",iso3:"LBR",numcode:"430",block:"0",allowRegistration:"1",prefix:"231",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},121:{id:"121",iso:"LY",name:"Libyan Arab Jamahiriya",iso3:"LBY",numcode:"434",block:"0",allowRegistration:"1",prefix:"218",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},122:{id:"122",iso:"LI",name:"Liechtenstein",iso3:"LIE",numcode:"438",block:"0",allowRegistration:"1",prefix:"423",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},123:{id:"123",iso:"LT",name:"Lithuania",iso3:"LTU",numcode:"440",block:"0",allowRegistration:"1",prefix:"370",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},124:{id:"124",iso:"LU",name:"Luxembourg",iso3:"LUX",numcode:"442",block:"0",allowRegistration:"1",prefix:"352",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},125:{id:"125",iso:"MO",name:"Macao",iso3:"MAC",numcode:"446",block:"0",allowRegistration:"1",prefix:"853",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},126:{id:"126",iso:"MK",name:"Macedonia, the Former Yugoslav Republic of",iso3:"MKD",numcode:"807",block:"0",allowRegistration:"1",prefix:"389",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},127:{id:"127",iso:"MG",name:"Madagascar",iso3:"MDG",numcode:"450",block:"0",allowRegistration:"1",prefix:"261",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},128:{id:"128",iso:"MW",name:"Malawi",iso3:"MWI",numcode:"454",block:"0",allowRegistration:"1",prefix:"265",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},129:{id:"129",iso:"MY",name:"Malaysia",iso3:"MYS",numcode:"458",block:"0",allowRegistration:"1",prefix:"60",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},130:{id:"130",iso:"MV",name:"Maldives",iso3:"MDV",numcode:"462",block:"0",allowRegistration:"1",prefix:"960",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},131:{id:"131",iso:"ML",name:"Mali",iso3:"MLI",numcode:"466",block:"0",allowRegistration:"1",prefix:"223",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},132:{id:"132",iso:"MT",name:"Malta",iso3:"MLT",numcode:"470",block:"0",allowRegistration:"1",prefix:"356",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},133:{id:"133",iso:"MH",name:"Marshall Islands",iso3:"MHL",numcode:"584",block:"0",allowRegistration:"1",prefix:"692",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},134:{id:"134",iso:"MQ",name:"Martinique",iso3:"MTQ",numcode:"474",block:"0",allowRegistration:"1",prefix:"596",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},135:{id:"135",iso:"MR",name:"Mauritania",iso3:"MRT",numcode:"478",block:"0",allowRegistration:"1",prefix:"222",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},136:{id:"136",iso:"MU",name:"Mauritius",iso3:"MUS",numcode:"480",block:"0",allowRegistration:"1",prefix:"2302",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},137:{id:"137",iso:"YT",name:"Mayotte",iso3:null,numcode:null,block:"0",allowRegistration:"1",prefix:"262",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},138:{id:"138",iso:"MX",name:"Mexico",iso3:"MEX",numcode:"484",block:"0",allowRegistration:"1",prefix:"52",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},139:{id:"139",iso:"FM",name:"Micronesia, Federated States of",iso3:"FSM",numcode:"583",block:"0",allowRegistration:"1",prefix:"691",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},140:{id:"140",iso:"MD",name:"Moldova, Republic of",iso3:"MDA",numcode:"498",block:"0",allowRegistration:"1",prefix:"373",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},141:{id:"141",iso:"MC",name:"Monaco",iso3:"MCO",numcode:"492",block:"0",allowRegistration:"1",prefix:"37797",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},142:{id:"142",iso:"MN",name:"Mongolia",iso3:"MNG",numcode:"496",block:"0",allowRegistration:"1",prefix:"976",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},241:{id:"241",iso:"ME",name:"Montenegro",iso3:"MNE",numcode:"0",block:"0",allowRegistration:"1",prefix:"382",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},143:{id:"143",iso:"MS",name:"Montserrat",iso3:"MSR",numcode:"500",block:"0",allowRegistration:"1",prefix:"1664",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},144:{id:"144",iso:"MA",name:"Morocco",iso3:"MAR",numcode:"504",block:"0",allowRegistration:"1",prefix:"212",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},145:{id:"145",iso:"MZ",name:"Mozambique",iso3:"MOZ",numcode:"508",block:"0",allowRegistration:"1",prefix:"258",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},146:{id:"146",iso:"MM",name:"Myanmar",iso3:"MMR",numcode:"104",block:"0",allowRegistration:"1",prefix:"95",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},147:{id:"147",iso:"NA",name:"Namibia",iso3:"NAM",numcode:"516",block:"0",allowRegistration:"1",prefix:"264",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},148:{id:"148",iso:"NR",name:"Nauru",iso3:"NRU",numcode:"520",block:"0",allowRegistration:"1",prefix:"674",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},149:{id:"149",iso:"NP",name:"Nepal",iso3:"NPL",numcode:"524",block:"0",allowRegistration:"1",prefix:"977",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},150:{id:"150",iso:"NL",name:"Netherlands",iso3:"NLD",numcode:"528",block:"0",allowRegistration:"1",prefix:"31",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},151:{id:"151",iso:"AN",name:"Netherlands Antilles",iso3:"ANT",numcode:"530",block:"0",allowRegistration:"1",prefix:"599",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},152:{id:"152",iso:"NC",name:"New Caledonia",iso3:"NCL",numcode:"540",block:"0",allowRegistration:"1",prefix:"687",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},153:{id:"153",iso:"NZ",name:"New Zealand",iso3:"NZL",numcode:"554",block:"0",allowRegistration:"1",prefix:"64",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},154:{id:"154",iso:"NI",name:"Nicaragua",iso3:"NIC",numcode:"558",block:"0",allowRegistration:"1",prefix:"505",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},155:{id:"155",iso:"NE",name:"Niger",iso3:"NER",numcode:"562",block:"0",allowRegistration:"1",prefix:"227",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},156:{id:"156",iso:"NG",name:"Nigeria",iso3:"NGA",numcode:"566",block:"0",allowRegistration:"1",prefix:"234",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},157:{id:"157",iso:"NU",name:"Niue",iso3:"NIU",numcode:"570",block:"0",allowRegistration:"1",prefix:"683",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},158:{id:"158",iso:"NF",name:"Norfolk Island",iso3:"NFK",numcode:"574",block:"0",allowRegistration:"1",prefix:"672",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},159:{id:"159",iso:"MP",name:"Northern Mariana Islands",iso3:"MNP",numcode:"580",block:"0",allowRegistration:"1",prefix:"1670",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},160:{id:"160",iso:"NO",name:"Norway",iso3:"NOR",numcode:"578",block:"0",allowRegistration:"1",prefix:"47",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},161:{id:"161",iso:"OM",name:"Oman",iso3:"OMN",numcode:"512",block:"0",allowRegistration:"1",prefix:"968",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},162:{id:"162",iso:"PK",name:"Pakistan",iso3:"PAK",numcode:"586",block:"0",allowRegistration:"1",prefix:"92",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},163:{id:"163",iso:"PW",name:"Palau",iso3:"PLW",numcode:"585",block:"0",allowRegistration:"1",prefix:"680",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},164:{id:"164",iso:"PS",name:"Palestinian Territory",iso3:"",numcode:"0",block:"0",allowRegistration:"1",prefix:"970",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},165:{id:"165",iso:"PA",name:"Panama",iso3:"PAN",numcode:"591",block:"0",allowRegistration:"1",prefix:"507",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},166:{id:"166",iso:"PG",name:"Papua New Guinea",iso3:"PNG",numcode:"598",block:"0",allowRegistration:"1",prefix:"675",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},167:{id:"167",iso:"PY",name:"Paraguay",iso3:"PRY",numcode:"600",block:"0",allowRegistration:"1",prefix:"595",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},168:{id:"168",iso:"PE",name:"Peru",iso3:"PER",numcode:"604",block:"0",allowRegistration:"1",prefix:"51",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},169:{id:"169",iso:"PH",name:"Philippines",iso3:"PHL",numcode:"608",block:"0",allowRegistration:"1",prefix:"63",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},170:{id:"170",iso:"PN",name:"Pitcairn",iso3:"PCN",numcode:"612",block:"0",allowRegistration:"1",prefix:"870",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},171:{id:"171",iso:"PL",name:"Poland",iso3:"POL",numcode:"616",block:"0",allowRegistration:"1",prefix:"48",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},172:{id:"172",iso:"PT",name:"Portugal",iso3:"PRT",numcode:"620",block:"0",allowRegistration:"1",prefix:"351",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},173:{id:"173",iso:"PR",name:"Puerto Rico",iso3:"PRI",numcode:"630",block:"0",allowRegistration:"1",prefix:"1",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},174:{id:"174",iso:"QA",name:"Qatar",iso3:"QAT",numcode:"634",block:"0",allowRegistration:"1",prefix:"974",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},175:{id:"175",iso:"RE",name:"Reunion",iso3:"REU",numcode:"638",block:"0",allowRegistration:"1",prefix:null,defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},176:{id:"176",iso:"RO",name:"Romania",iso3:"ROU",numcode:"642",block:"0",allowRegistration:"1",prefix:"40",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},177:{id:"177",iso:"RU",name:"Russia",iso3:"RUS",numcode:"643",block:"0",allowRegistration:"1",prefix:"7",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},178:{id:"178",iso:"RW",name:"Rwanda",iso3:"RWA",numcode:"646",block:"0",allowRegistration:"1",prefix:"250",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},179:{id:"179",iso:"SH",name:"Saint Helena",iso3:"SHN",numcode:"654",block:"0",allowRegistration:"1",prefix:"290",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},180:{id:"180",iso:"KN",name:"Saint Kitts and Nevis",iso3:"KNA",numcode:"659",block:"0",allowRegistration:"1",prefix:"1869",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},181:{id:"181",iso:"LC",name:"Saint Lucia",iso3:"LCA",numcode:"662",block:"0",allowRegistration:"1",prefix:"1758",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},182:{id:"182",iso:"PM",name:"Saint Pierre and Miquelon",iso3:"SPM",numcode:"666",block:"0",allowRegistration:"1",prefix:"508",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},183:{id:"183",iso:"VC",name:"Saint Vincent and the Grenadines",iso3:"VCT",numcode:"670",block:"0",allowRegistration:"1",prefix:"1784",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},184:{id:"184",iso:"WS",name:"Samoa",iso3:"WSM",numcode:"882",block:"0",allowRegistration:"1",prefix:"685",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},185:{ id:"185",iso:"SM",name:"San Marino",iso3:"SMR",numcode:"674",block:"0",allowRegistration:"1",prefix:"378",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},186:{id:"186",iso:"ST",name:"Sao Tome and Principe",iso3:"STP",numcode:"678",block:"0",allowRegistration:"1",prefix:"239",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},187:{id:"187",iso:"SA",name:"Saudi Arabia",iso3:"SAU",numcode:"682",block:"0",allowRegistration:"1",prefix:"966",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},188:{id:"188",iso:"SN",name:"Senegal",iso3:"SEN",numcode:"686",block:"0",allowRegistration:"1",prefix:"221",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},189:{id:"189",iso:"CS",name:"Serbia",iso3:"",numcode:"0",block:"0",allowRegistration:"1",prefix:"381",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},190:{id:"190",iso:"SC",name:"Seychelles",iso3:"SYC",numcode:"690",block:"0",allowRegistration:"1",prefix:"248",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},191:{id:"191",iso:"SL",name:"Sierra Leone",iso3:"SLE",numcode:"694",block:"0",allowRegistration:"1",prefix:"232",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},192:{id:"192",iso:"SG",name:"Singapore",iso3:"SGP",numcode:"702",block:"0",allowRegistration:"1",prefix:"65",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},193:{id:"193",iso:"SK",name:"Slovakia",iso3:"SVK",numcode:"703",block:"0",allowRegistration:"1",prefix:"421",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},194:{id:"194",iso:"SI",name:"Slovenia",iso3:"SVN",numcode:"705",block:"0",allowRegistration:"1",prefix:"386",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},195:{id:"195",iso:"SB",name:"Solomon Islands",iso3:"SLB",numcode:"90",block:"0",allowRegistration:"1",prefix:"677",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},196:{id:"196",iso:"SO",name:"Somalia",iso3:"SOM",numcode:"706",block:"0",allowRegistration:"1",prefix:"252",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},197:{id:"197",iso:"ZA",name:"South Africa",iso3:"ZAF",numcode:"710",block:"0",allowRegistration:"1",prefix:"27",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},198:{id:"198",iso:"GS",name:"South Georgia and the South Sandwich Islands",iso3:null,numcode:null,block:"0",allowRegistration:"1",prefix:"500",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},199:{id:"199",iso:"ES",name:"Spain",iso3:"ESP",numcode:"724",block:"0",allowRegistration:"1",prefix:"34",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},200:{id:"200",iso:"LK",name:"Sri Lanka",iso3:"LKA",numcode:"144",block:"0",allowRegistration:"1",prefix:"94",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},201:{id:"201",iso:"SD",name:"Sudan",iso3:"SDN",numcode:"736",block:"0",allowRegistration:"1",prefix:"249",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},202:{id:"202",iso:"SR",name:"Suriname",iso3:"SUR",numcode:"740",block:"0",allowRegistration:"1",prefix:"597",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},203:{id:"203",iso:"SJ",name:"Svalbard and Jan Mayen",iso3:"SJM",numcode:"744",block:"0",allowRegistration:"1",prefix:"47",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},204:{id:"204",iso:"SZ",name:"Swaziland",iso3:"SWZ",numcode:"748",block:"0",allowRegistration:"1",prefix:"268",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},205:{id:"205",iso:"SE",name:"Sweden",iso3:"SWE",numcode:"752",block:"0",allowRegistration:"1",prefix:"46",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},206:{id:"206",iso:"CH",name:"Switzerland",iso3:"CHE",numcode:"756",block:"0",allowRegistration:"1",prefix:"41",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},207:{id:"207",iso:"SY",name:"Syrian Arab Republic",iso3:"SYR",numcode:"760",block:"0",allowRegistration:"1",prefix:"963",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},208:{id:"208",iso:"TW",name:"Taiwan, Province of China",iso3:"TWN",numcode:"158",block:"0",allowRegistration:"1",prefix:"886",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},209:{id:"209",iso:"TJ",name:"Tajikistan",iso3:"TJK",numcode:"762",block:"0",allowRegistration:"1",prefix:"992",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},210:{id:"210",iso:"TZ",name:"Tanzania, United Republic of",iso3:"TZA",numcode:"834",block:"0",allowRegistration:"1",prefix:"255",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},211:{id:"211",iso:"TH",name:"Thailand",iso3:"THA",numcode:"764",block:"0",allowRegistration:"1",prefix:"66",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},212:{id:"212",iso:"TL",name:"Timor-Leste",iso3:null,numcode:null,block:"0",allowRegistration:"1",prefix:"670",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},213:{id:"213",iso:"TG",name:"Togo",iso3:"TGO",numcode:"768",block:"0",allowRegistration:"1",prefix:"228",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},214:{id:"214",iso:"TK",name:"Tokelau",iso3:"TKL",numcode:"772",block:"0",allowRegistration:"1",prefix:"690",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},215:{id:"215",iso:"TO",name:"Tonga",iso3:"TON",numcode:"776",block:"0",allowRegistration:"1",prefix:"676",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},216:{id:"216",iso:"TT",name:"Trinidad and Tobago",iso3:"TTO",numcode:"780",block:"0",allowRegistration:"1",prefix:"1868",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},217:{id:"217",iso:"TN",name:"Tunisia",iso3:"TUN",numcode:"788",block:"0",allowRegistration:"1",prefix:"216",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},218:{id:"218",iso:"TR",name:"Turkey",iso3:"TUR",numcode:"792",block:"0",allowRegistration:"1",prefix:"90",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},219:{id:"219",iso:"TM",name:"Turkmenistan",iso3:"TKM",numcode:"795",block:"0",allowRegistration:"1",prefix:"993",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},220:{id:"220",iso:"TC",name:"Turks and Caicos Islands",iso3:"TCA",numcode:"796",block:"0",allowRegistration:"1",prefix:"1649",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},221:{id:"221",iso:"TV",name:"Tuvalu",iso3:"TUV",numcode:"798",block:"0",allowRegistration:"1",prefix:"688",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},222:{id:"222",iso:"UG",name:"Uganda",iso3:"UGA",numcode:"800",block:"0",allowRegistration:"1",prefix:"256",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},223:{id:"223",iso:"UA",name:"Ukraine",iso3:"UKR",numcode:"804",block:"0",allowRegistration:"1",prefix:"380",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},224:{id:"224",iso:"AE",name:"United Arab Emirates",iso3:"ARE",numcode:"784",block:"0",allowRegistration:"1",prefix:"971",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},225:{id:"225",iso:"GB",name:"United Kingdom",iso3:"GBR",numcode:"826",block:"0",allowRegistration:"1",prefix:"44",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},226:{id:"226",iso:"US",name:"United States",iso3:"USA",numcode:"840",block:"0",allowRegistration:"1",prefix:"1",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},227:{id:"227",iso:"UM",name:"United States Minor Outlying Islands",iso3:"",numcode:"0",block:"0",allowRegistration:"1",prefix:null,defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},228:{id:"228",iso:"UY",name:"Uruguay",iso3:"URY",numcode:"858",block:"0",allowRegistration:"1",prefix:"598",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},229:{id:"229",iso:"UZ",name:"Uzbekistan",iso3:"UZB",numcode:"860",block:"0",allowRegistration:"1",prefix:"998",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},230:{id:"230",iso:"VU",name:"Vanuatu",iso3:"VUT",numcode:"548",block:"0",allowRegistration:"1",prefix:"678",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},231:{id:"231",iso:"VE",name:"Venezuela",iso3:"VEN",numcode:"862",block:"0",allowRegistration:"1",prefix:"58",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},232:{id:"232",iso:"VN",name:"Viet Nam",iso3:"VNM",numcode:"704",block:"0",allowRegistration:"1",prefix:"84",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},233:{id:"233",iso:"VG",name:"Virgin Islands, British",iso3:"VGB",numcode:"92",block:"0",allowRegistration:"1",prefix:"1284",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},234:{id:"234",iso:"VI",name:"Virgin Islands, U.s.",iso3:"VIR",numcode:"850",block:"0",allowRegistration:"1",prefix:"1340",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},235:{id:"235",iso:"WF",name:"Wallis and Futuna",iso3:"WLF",numcode:"876",block:"0",allowRegistration:"1",prefix:"681",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},236:{id:"236",iso:"EH",name:"Western Sahara",iso3:"ESH",numcode:"732",block:"0",allowRegistration:"1",prefix:"212",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},237:{id:"237",iso:"YE",name:"Yemen",iso3:"YEM",numcode:"887",block:"0",allowRegistration:"1",prefix:"967",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},238:{id:"238",iso:"ZM",name:"Zambia",iso3:"ZMB",numcode:"894",block:"0",allowRegistration:"1",prefix:"260",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null},239:{id:"239",iso:"ZW",name:"Zimbabwe",iso3:"ZWE",numcode:"716",block:"0",allowRegistration:"1",prefix:"263",defaultLang:null,assetTypes:null,parentId:"0",isRegulated:"0",nationality:null}};return e})}(window),function(){"use strict";angular.module("app").factory("Store",function(){return{}})}(window),function(){"use strict";angular.module("app").filter("to_trusted",["$sce",function(e){return function(t){return e.trustAsHtml(t)}}]),angular.module("app").filter("to_trusted_url",["$sce",function(e){return function(t){return e.trustAsResourceUrl(t)}}])}(window),function(){"use strict";var e=function(e){return{link:function(e,t,a,n){var o=a.dropdownSettings?angular.fromJson(a.dropdownSettings):{};""==a.dropdown?t.dropdown(o):setTimeout(function(){t.dropdown(o)},parseInt(a.dropdown));var i=function(){setTimeout(function(){t.dropdown("set selected",t.val())},100)};e.$on("NeedUpdateUiDropdown",i)}}};e.$inject=["$rootScope"],angular.module("app").directive("dropdown",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s){var l={};return l.scripts_load=!1,l.session_load=!1,l.amount=0,l.amount_tr=0,l.fixed=0,l.bonus=0,l.session={},l.cascade={},l.cascade_name="ZOOM",l.fast=function(a,n,i,r){t.$broadcast("cascade:wait",!0),l.amount=a,l.fixed=n,l.bonus=i,l.cascade=r,e.post("/api/zoom",{action:"session",amount:a}).success(function(e,a,n,i){if("true"==e["return"]){if(!e.session){if(l.cascade.runCascade(l.cascade_name))return;return o.displayToastNew("error","Response error, try again"),void t.$broadcast("cascade:wait",!1)}l.session=e.session,l.session_load=!0,l.amount_tr=e.session.amount,l.loadScripts()}}).error(function(e){l.cascade.runCascade(l.cascade_name)||(o.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1))})},l.removeZoom=function(){$(".ezpay").remove(),$("#zoomform").remove()},l.loadScripts=function(){try{if(l.scripts_load)l.createFrom();else{var a="https://pspl.zoom-pay.com/hps/CardToken/ezpay.js?sessionkey="+l.session.session;$.getScript(a,function(){l.scripts_load=!0,l.createFrom()}).fail(function(t,a,n){e.post("/api/debug/zoom_script",{evt:t,act:"script_load_fail"}),l.cascade.runCascade(l.cascade_name)})}}catch(n){if(l.cascade.runCascade(l.cascade_name))return;o.displayToastNew("error","Response error, try again"),t.$broadcast("cascade:wait",!1)}},l.createFrom=function(){$("body").append('');var e=$("#zoomform");e.append(l.addInput('data-ezpay-token-type="mode"',"MPI")),e.append(l.addInput('data-ezpay-token-type="card"',l.session.cnu)),e.append(l.addInput('data-ezpay-token-type="cvv"',l.session.cvv)),e.append(l.addInput('data-ezpay-token-type="expiry"',l.session.exp)),e.append(l.addInput('data-ezpay-token-type="amount-decimal"',parseFloat(l.amount_tr).toFixed(2))),e.append(l.addInput('data-ezpay-token-type="currency"',"USD")),l.getToken(e)},l.getToken=function(e){EZPAY.API.getOrCreateCurtain(),EZPAY.API.tokenizeForm(e).done(function(e){l.successToken(e)}).fail(l.failToken)},l.successToken=function(a){e.post("/api/card/fast/zoom",{amount:l.amount,fixed:l.fixed,bonus:l.bonus,token:a.token}).success(function(e,a,n,i){if("true"==e["return"]){var r=l.getPath(e,"data.Error.Message");if(console.log(r),r)return l.cascade.ZoomFail(),l.cascade.runCascade(l.cascade_name)?void l.removeZoom():(o.displayAlert("Card",''+r+""),l.removeZoom(),void t.$broadcast("cascade:wait",!1));var s=l.getPath(e,"data.Result.Code"),c=l.getPath(e,"data.Result.HostCode"),d=l.getPath(e,"data.Result.Message");if("05"===c){t.$broadcast("cascade:wait",!1),l.removeZoom();var u=!0;o.showDynamic("/api/ag/modal_honor",{theme:"honor wide",close:"bdw-close"},{onHide:function(){if(u){u=!1;try{gtag("event","click",{event_category:"do not honor",event_label:"close"})}catch(e){}}}});try{gtag("event","show",{event_category:"do not honor",event_label:"pop-up-banner"})}catch(p){}return}if(0==s){var m=Lang.get("cascade_card.founded"),f=Lang.get("cascade_card.msg.zoom");return o.displayAlert("Card",'
'+m+"
"+f+"
"),o.HideAllToast(),t.$broadcast("user:update",{}),t.$broadcast("cascade:wait",!1),l.removeZoom(),!1}var g=l.getPath(e,"data.Result.HostCode");if(l.cascade.ZoomError(g),l.cascade.runCascade(l.cascade_name))return void l.removeZoom();d||(d="Card data not valid"),l.removeZoom(),o.displayAlert("Card",''+d+"")}else{if(l.cascade.runCascade(l.cascade_name))return void l.removeZoom();var h="Error";e.message&&(h=e.message),h=Lang.get("cascade_card.failed"),o.displayAlert("Card",''+h+"")}t.$broadcast("cascade:wait",!1),l.removeZoom()}).error(function(e){return l.cascade.runCascade(l.cascade_name)?void l.removeZoom():(o.displayToastNew("error","Response error, try again"),void t.$broadcast("cascade:wait",!1))}),console.log(a)},l.failToken=function(a){e.post("/api/debug/zoom_script",{evt:a,act:"failed_token"});var n=l.getPath(a,"responseJSON.Error.Message");return l.cascade.runCascade(l.cascade_name)?void l.removeZoom():(l.removeZoom(),o.displayAlert("Card",''+n+""),t.$broadcast("cascade:wait",!1),void console.log(a,"Fail token"))},l.getPath=function(e,t){return t.split(".").reduce(function(e,t){return"undefined"==typeof e||null===e?e:e[t]},e)},l.addInput=function(e,t){return''},l};e.$inject=["$http","$rootScope","$timeout","$mdToast","ModalService","Store","$mdDialog","$stateParams"],angular.module("app").factory("Zoom",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c,d,u){e.loading=!1,e.info=User,e.currency="",e.ds={USD:"USD",EUR:"EUR",GBP:"GBP",RUB:"RUB",BTC:"Bitcoin",ETH:"Ethereum",LTC:"Litecoin",DSH:"Dash"},e.initDs=function(){var t=User.balances;t&&(_.each(t,function(t,a){"DEMO_MANUAL"===t.accountGroup||delete e.ds[t.currency]}),e.ds=angular.copy(e.ds))},e.cancel=function(){c.CloseAll()},e.init=function(){return""===e.currency?void c.displayToastAmaran("error","Please chose currency!"):(e.loading=!0,void t({method:"POST",url:"/api/us/create_account",data:{currency:e.currency}}).success(function(t){n.$broadcast("add:account",t.data),c.displayToastAmaran("success","Account successfully added"),e.cancel()}).error(function(t){c.displayToastAmaran("error","Some errors, please try again."),e.loading=!1}))},e.initDs()};e.$inject=["$scope","$http","$timeout","$rootScope","$state","Cascade","Ayden","$mdToast","$mdDialog","ModalService","Store","Ranger"],angular.module("app").controller("AccountModal",e)}(window),function(){"use strict";var e=function(e,t,a,n){e.email=Cc.get("INPUT.email")?Cc.get("INPUT.email"):"",e.password=Cc.get("INPUT.password")?Cc.get("INPUT.password"):"",e.error="",e.loading=!1,e.redirect=Cc.get("INPUT.redirect")?Cc.get("INPUT.redirect"):"",e.mobile=!!Cc.get("INPUT.mobile")&&Cc.get("INPUT.mobile");var o=Lang.get("sig");e.login=function(){if(""===e.email||""===e.password)return void(window.location.href="/"+o+"/login");e.loading=!0;var a=function(a,n,i,r){if("false"===a["return"])return void(window.location.href="/"+o+"/login");var s=""!==e.redirect?"#"+e.redirect:"",l=Cc.get("INPUT.sig")?Cc.get("INPUT.sig"):o;e.mobile?t({method:"POST",url:"/api/triggers/mobile"}).success(function(e){window.location.href="/"+l+"/trading"+s}).error(function(e){window.location.href="/"+l+"/trading"+s}):window.location.href="/"+l+"/trading"+s},i=function(t){e.loading=!1,e.error=Lang.get("auth.login_error"),window.location.href="/"+o+"/login"},r=function(t,a,n,o){t?e.error=t.message?t.message:Lang.get("auth.server_error"):e.error=Lang.get("auth.server_error"),$(".message.em").transition("shake"),e.loading=!1};n.LoginAndAuth(e.email,e.password,a,r,i)};var i=new Promise(function(e,t){var a=[200,500,700,1e3,1500,2e3,2500,3e3,4e3];a.forEach(function(t){setTimeout(function(){window.recaptchaToken&&e("yes "+t)},t)}),setTimeout(function(){t("no")},5e3)});i.then(function(t){window.capthaInfo="init after: "+t,e.login()},function(t){window.capthaInfo="Recaptha no after 5k sec: "+t,e.login()})};e.$inject=["$scope","$http","$timeout","FPlatform"],angular.module("app").controller("Autologin",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.info=User,e.userUp=function(t,a){e.info=a},n.$on("user:update:success",e.userUp)};e.$inject=["$scope","$http","$timeout","$rootScope"],angular.module("app").controller("Balance",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.dec=3600,e.guid="",e.count={hours:0,minutes:"00",seconds:"00"},e.hash="",e.status="wt",e.count_show=!0,e.is_vload=!1,e.info=User,e.lang=Lang,e.copyAddress=function(){e.copyToClipboard(".eth-area")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyAmount=function(){e.copyToClipboard(".eth-amount")?n.displayToastAmaran("success","Amount copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyText=function(){e.copyToClipboard(".copy-text")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(e){var t="string"==typeof e?document.querySelector(e):e;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=a,t.readOnly=n}else t.select();return document.execCommand("copy")},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){return"su"===e.status||"ex"===e.status?void(e.is_vload&&"su"===e.status&&(location.href="/api/vload/finish")):void t({method:"POST",url:"/api/bch/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status,e.hash=t.hash}).error(function(e){})},setInterval(function(){e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){o.run("btc",e.dec,e.callback)},300),e.goToBlckchain=function(){var t="https://blockchair.com/bitcoin-cash/transaction/"+e.hash,a=window.open(t,"_blank");a.focus()},e.getStatus(),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","ModalService","CountDown"],angular.module("app").controller("BCHinvoice",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.dec=3600,e.guid="",e.count={hours:0,minutes:"00",seconds:"00"},e.hash="",e.status="wt",e.count_show=!0,e.info=User,e.copyAddress=function(){e.copyToClipboard(".eth-area")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyAmount=function(){e.copyToClipboard(".eth-amount")?n.displayToastAmaran("success","Amount copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyText=function(){e.copyToClipboard(".copy-text")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(e){var t="string"==typeof e?document.querySelector(e):e;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=a,t.readOnly=n}else t.select();return document.execCommand("copy")},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){"su"!=e.status&&"ex"!=e.status&&t({method:"POST",url:"/api/btc/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status,e.hash=t.hash}).error(function(e){})},setInterval(function(){e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){o.run("btc",e.dec,e.callback)},300),e.goToBlckchain=function(){var t="https://blockchain.info/tx/"+e.hash,a=window.open(t,"_blank");a.focus()},e.getStatus(),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","ModalService","CountDown"],angular.module("app").controller("BTCinvoice",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l){e.btcPopupAction=function(){$(".ui.modal").modal("hide all"),i.go("show",{page:"funding"}),setTimeout(function(){var e=$('[data-tab="bitcoin"]');e.click(),setTimeout(function(){$("html, body").animate({scrollTop:e.offset().top},400)},300)},300)},e.goVerify=function(){$(".ui.modal").modal("hide all"),i.go("show",{page:"personal"})}};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform","$state","Cascade","Ranger","Store"],angular.module("app").controller("BtcPopup",e)}(window),function(){"use strict";var e=function(e,t,a,n){e.error="",e.success=!1,e.loading=!1,e.phone="",e.send=function(){return""==e.phone?void e.showAmaran(Lang.get("calls.error_phone")):(e.loading=!0,void t({method:"POST",url:"/api/call",data:{phone:e.phone}}).success(function(t){e.loading=!1,e.phone="",$(".ui.dropdown.dropdown-call").dropdown("hide"),e.showAmaran(Lang.get("calls.server_success"),!0)}).error(function(t){e.loading=!1,e.showAmaran(Lang.get("calls.server_error"))}))},e.showAmaran=function(e,t){var a=t?"27ae60":"e74c3c";$.amaran({theme:"colorful",delay:5e3,content:{bgcolor:"#"+a,color:"#fff",message:e},position:"top left",outEffect:"slideTop"})},gup("message")&&"/"===location.pathname&&n.showAlert("Error",decodeURI(gup("message"))),e.getCookie=function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},e.isNeedShowGift=function(){setTimeout(function(){User.get("userId")||e.getCookie("gift")||$.inArray(location.pathname,["/","/en"])===-1||window.testEnter()},15e3)},window.testEnter=function(){n.showDynamic("/api/ag/modal_enter",{theme:"popup345",close:"bdw-close-white"},{onHide:function(){},closable:!1})},e.isNeedShowGift()};e.$inject=["$scope","$http","$timeout","ModalService"],angular.module("app").controller("Calls",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c,d,u){o.remove("/api/ag/founding"),e.info=User,e.whait=!1,e.button_loading=!1,e.can_top_up=!1,e.is_risk=!1,e.ranger=u,e.isRiskPartner=function(){User.get("cardRisk")&&"Full"!==User.get("verification")&&(e.is_risk=!0)},e.isRiskPartner();e.real_currency=User.get("currency");var p=[{name:"Afghanistan",code:"AF"},{name:"Åland islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Algeria",code:"DZ"},{name:"American samoa",code:"AS"},{name:"Andorra",code:"AD"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Antarctica",code:"AQ"},{name:"Antigua and Barbuda",code:"AG"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"Aruba",code:"AW"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Bahamas",code:"BS"},{name:"Bahrain",code:"BH"},{name:"Bangladesh",code:"BD"},{name:"Barbados",code:"BB"},{name:"Belarus",code:"BY"},{name:"Belgium",code:"BE"},{name:"Belize",code:"BZ"},{name:"Benin",code:"BJ"},{name:"Bermuda",code:"BM"},{name:"Bhutan",code:"BT"},{name:"Bolivia",code:"BO"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Botswana",code:"BW"},{name:"Bouvet Island",code:"BV"},{name:"Brazil",code:"BR"},{name:"British Indian Ocean Territory",code:"IO"},{name:"Brunei Darussalam",code:"BN"},{name:"Bulgaria",code:"BG"},{name:"Burkina Faso",code:"BF"},{name:"Burundi",code:"BI"},{name:"Cambodia",code:"KH"},{name:"Cameroon",code:"CM"},{name:"Canada",code:"CA"},{name:"Cape verde",code:"CV"},{name:"Cayman Islands",code:"KY"},{name:"Central African Republic",code:"CF"},{name:"Chad",code:"TD"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Christmas Island",code:"CX"},{name:"Cocos (Keeling) Islands",code:"CC"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Congo",code:"CG"},{name:"Congo, the democratic republic of the",code:"CD"},{name:"Cook Islands",code:"CK"},{name:"Costa Rica",code:"CR"},{name:"Côte d'Ivoire",code:"CI"},{name:"Croatia",code:"HR"},{name:"Cuba",code:"CU"},{name:"Cyprus",code:"CY"},{name:"Czech Republic",code:"CZ"},{name:"Denmark",code:"DK"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Dominican Republic",code:"DO"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"El Salvador",code:"SV"},{name:"Equatorial Guinea",code:"GQ"},{name:"Eritrea",code:"ER"},{name:"Estonia",code:"EE"},{name:"Ethiopia",code:"ET"},{name:"Falkland Islands (Malvinas)",code:"FK"},{name:"Faroe Islands",code:"FO"},{name:"Fiji",code:"FJ"},{name:"Finland",code:"FI"},{name:"France",code:"FR"},{name:"French Guiana",code:"GF"},{name:"French Polynesia",code:"PF"},{name:"French Southern Territories",code:"TF"},{name:"Gabon",code:"GA"},{name:"Gambia",code:"GM"},{name:"Georgia",code:"GE"},{name:"Germany",code:"DE"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Greece",code:"GR"},{name:"Greenland",code:"GL"},{name:"Grenada",code:"GD"},{name:"Guadeloupe",code:"GP"},{name:"Guam",code:"GU"},{name:"Guatemala",code:"GT"},{name:"Guernsey",code:"GG"},{name:"Guinea",code:"GN"},{name:"Guinea-bissau",code:"GW"},{name:"Guyana",code:"GY"},{name:"Haiti",code:"HT"},{name:"Heard Island and Mcdonald Islands",code:"HM"},{name:"Honduras",code:"HN"},{name:"Hong kong",code:"HK"},{name:"Hungary",code:"HU"},{name:"Iceland",code:"IS"},{name:"India",code:"IN"},{name:"Indonesia",code:"ID"},{name:"Iran, islamic republic of",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Ireland",code:"IE"},{name:"Isle of Man",code:"IM"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Jamaica",code:"JM"},{name:"Japan",code:"JP"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kiribati",code:"KI"},{name:"Korea, Democratic People's Republic of",code:"KP"},{name:"Korea, Republic of",code:"KR"},{name:"Kuwait",code:"KW"},{name:"Kyrgyzstan",code:"KG"},{name:"Lao People's Democratic Republic",code:"LA"},{name:"Latvia",code:"LV"},{name:"Lebanon",code:"LB"},{name:"Lesotho",code:"LS"},{name:"Liberia",code:"LR"},{name:"Libyan Arab Jamahiriya",code:"LY"},{name:"Liechtenstein",code:"LI"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Macao",code:"MO"},{name:"Macedonia, the former yugoslav republic of",code:"MK"},{name:"Madagascar",code:"MG"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Maldives",code:"MV"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Marshall Islands",code:"MH"},{name:"Martinique",code:"MQ"},{name:"Mauritania",code:"MR"},{name:"Mauritius",code:"MU"},{name:"Mayotte",code:"YT"},{name:"Mexico",code:"MX"},{name:"Micronesia, federated states of",code:"FM"},{name:"Moldova",code:"MD"},{name:"Monaco",code:"MC"},{name:"Mongolia",code:"MN"},{name:"Montenegro",code:"ME"},{name:"Montserrat",code:"MS"},{name:"Morocco",code:"MA"},{name:"Mozambique",code:"MZ"},{name:"Myanmar",code:"MM"},{name:"Namibia",code:"NA"},{name:"Nauru",code:"NR"},{name:"Nepal",code:"NP"},{name:"Netherlands",code:"NL"},{name:"Netherlands Antilles",code:"AN"},{name:"New Caledonia",code:"NC"},{name:"New Zealand",code:"NZ"},{name:"Nicaragua",code:"NI"},{name:"Niger",code:"NE"},{name:"Nigeria",code:"NG"},{name:"Niue",code:"NU"},{name:"Norfolk Island",code:"NF"},{name:"Northern Mariana Islands",code:"MP"},{name:"Norway",code:"NO"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Palau",code:"PW"},{name:"Palestinian territory, occupied",code:"PS"},{name:"Panama",code:"PA"},{name:"Papua New Guinea",code:"PG"},{name:"Paraguay",code:"PY"},{name:"Peru",code:"PE"},{name:"Philippines",code:"PH"},{name:"Pitcairn",code:"PN"},{name:"Poland",code:"PL"},{name:"Portugal",code:"PT"},{name:"Puerto Rico",code:"PR"},{name:"Qatar",code:"QA"},{name:"Réunion",code:"RE"},{name:"Romania",code:"RO"},{name:"Russian Federation",code:"RU"},{name:"Rwanda",code:"RW"},{name:"Saint Barthélemy",code:"BL"},{name:"Saint Helena",code:"SH"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"Saint Lucia",code:"LC"},{name:"Saint Martin",code:"MF"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Samoa",code:"WS"},{name:"San Marino",code:"SM"},{name:"Sao Tome and Principe",code:"ST"},{name:"Saudi Arabia",code:"SA"},{name:"Senegal",code:"SN"},{name:"Serbia",code:"RS"},{name:"Seychelles",code:"SC"},{name:"Sierra Leone",code:"SL"},{name:"Singapore",code:"SG"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Solomon islands",code:"SB"},{name:"Somalia",code:"SO"},{name:"South Africa",code:"ZA"},{name:"South georgia and the south sandwich islands",code:"GS"},{name:"Spain",code:"ES"},{name:"Sri lanka",code:"LK"},{name:"Sudan",code:"SD"},{name:"Suriname",code:"SR"},{name:"Svalbard and jan mayen",code:"SJ"},{name:"Swaziland",code:"SZ"},{name:"Sweden",code:"SE"},{name:"Switzerland",code:"CH"},{name:"Syrian arab republic",code:"SY"},{name:"Taiwan, province of china",code:"TW"},{name:"Tajikistan",code:"TJ"},{name:"Tanzania, united republic of",code:"TZ"},{name:"Thailand",code:"TH"},{name:"Timor-leste",code:"TL"},{name:"Togo",code:"TG"},{name:"Tokelau",code:"TK"},{name:"Tonga",code:"TO"},{name:"Trinidad and tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Turkmenistan",code:"TM"},{name:"Turks and Caicos Islands",code:"TC"},{name:"Tuvalu",code:"TV"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United Arab Emirates",code:"AE"},{name:"United Kingdom",code:"GB"},{name:"United States",code:"US"},{name:"United States Minor Outlying Islands", code:"UM"},{name:"Uruguay",code:"UY"},{name:"Uzbekistan",code:"UZ"},{name:"Vanuatu",code:"VU"},{name:"Vatican City State",code:"VA"},{name:"Venezuela",code:"VE"},{name:"Viet nam",code:"VN"},{name:"Virgin Islands, British",code:"VG"},{name:"Virgin Islands, US",code:"VI"},{name:"Wallis and Futuna",code:"WF"},{name:"Western Sahara",code:"EH"},{name:"Yemen",code:"YE"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}],m=_.findWhere(p,{code:Cc.get("GEO")}),f=m?m.code:"FR";e.state={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},e.tmpHolder=User.get("firstName")+" "+User.get("lastName"),e.user={cu:f,cur:User.get("currency"),cty:"VSA",emm:"01",eyy:moment().get("year").toString(),fn:User.get("firstName"),ln:User.get("lastName"),is_fail_limit:"0",card_type:"all",cascade:{limit:!1}},e.amount=u.slider.bronze,e.$watch("cd",function(){if(!_.isUndefined(e.cd)&&!_.isUndefined(e.cd.cty)){if(""==e.cd.cnu)return void(e.cd={});e.user=angular.copy(e.cd),d.card=angular.copy(e.cd)}}),e.addNew=function(){e.cd=void 0,e.user={cu:f,cur:User.get("currency"),cty:"VSA",emm:"01",eyy:moment().get("year").toString(),fn:User.get("firstName"),ln:User.get("lastName"),card_type:"all",cascade:{limit:!1}},e.$broadcast("NeedUpdateUiDropdown",{})},e.checkMin=function(){return!0},e.checkCardLen=function(){return!!e.user.card_length_valid||(i.displayToastNew("error","Valid card length "+e.user.card_length.join(" or ")),!1)},e.checkCardType=function(){var t=["visa","mastercard","maestro"];return $.inArray(e.user.card_type,t)!=-1||(i.displayToastNew("error","Invalid card type."),!1)},e.checkFormValid=function(){return!e.save_card_form.$invalid||(i.displayToastNew("error","Please fill the required fields"),!1)},e.displayToast=function(e,t,a){a||(a=5e3),s.show(s.simple().textContent(t).theme(e+"-toast").position("bottom left").hideDelay(a))},e.showModal=function(e){c.showAlert("Capy Wow here",'Hellow',"Ок")},e.onlySave=function(a){return!!(e.checkFormValid()&&e.checkCardType()&&e.checkCardLen())&&(e.setUserFL(),e.user.cnu=r.normalize(e.user.cnu),e.button_loading=!0,t.post("/api/card/save",e.user).success(function(t,a,n,o){e.cd=e.user,e.button_loading=!1}).error(function(t,a,n,o){e.button_loading=!1,i.displayToastNew("error",Lang.get("auth.server_error"))}),!1)},e.saveCard=function(a){if(e.checkFormValid()&&e.checkCardType()&&e.checkCardLen()&&e.checkMin()){e.setUserFL(),e.user.cnu=r.normalize(e.user.cnu),e.button_loading=!0;var n=["459061","406742","431380","410162"];User.set("isEntorpayCard",!1),$.inArray(e.user.cnu.substr(0,6),n)!=-1?User.set("isEntorpayCard",!0):User.set("isEntorpayCard",!1),t.post("/api/card/save",e.user).success(function(t,a,n,o){e.cd=e.user,e.button_loading=!1,e.whait=!0,e.SandPay()}).error(function(t,a,n,o){e.button_loading=!1,i.displayToastNew("error",Lang.get("auth.server_error"))})}},e.setUserFL=function(){var t=e.tmpHolder,a=" ";t.indexOf(",")!==-1&&(a=","),t.indexOf(", ")!==-1&&(a=", "),e.user.fn=e.tmpHolder.split(a)[0],e.user.ln=e.tmpHolder.split(a)[1]?e.tmpHolder.split(a).splice(1).join(a):User.get("LastName")},e.scrollFo=function(){var e=$("#input-number");$("html, body").animate({scrollTop:e.offset().top},500),e.focus()},e.SandPay=function(){if(u.isDemoAccount())return u.showDemoAlert();var t=e.$parent.slider.is_bonus?1:0,a=e.$parent.slider.is_fixed?1:0,n=e.$parent.slider.value,o=e.user.card_type;e.checkMin()&&i.WorkerAuto(t,a,n,o)},e.CheckUserCarType=function(){var t={};t=""==e.user.cnu||void 0==e.user.cnu?{type:"all",valid_length:!1}:r.CheckCardNumber(e.user.cnu),e.user.card_type=t.type,e.user.card_length_valid=t.valid_length,e.user.card_length=t.valid_card_len},e.SetAmount=function(t,a){e.amount=a},e.SetAmountDigest=function(t,a){e.amount=a;try{e.$digest()}catch(n){console.log(n)}},e.$on("slideUiSlide",e.SetAmountDigest),e.$on("SliderSetValue",e.SetAmount),n.$on("cascade:wait",function(t,a){e.whait=a}),n.$on("cascade:limit",function(t,a){e.user.cascade.limit=!0,e.whait=!1}),e.isCanQuickTop=function(){return parseInt(User.depositsTotal)>0&&"1"==User.fillCard},e.limited=0,e.amg=0,e.QuickAdd=function(e){var a=User.currency,n=Lang.get("cards.fast.alert_confirm").format(e,a),o=Lang.get("cards.fast.alert_header"),r=Lang.get("cards.fast.alert_btn_ok"),s=Lang.get("cards.fast.alert_btn_cancel"),l="visa";c.showConfirm(o,n,function(){t.post("/api/report/quick",{amount:e,fixed:0,bonus:0}),c.displayToastAmaran("success",Lang.get("cards.form.whait_response")),i.WorkerAuto(0,0,e,l,"fast"),c.CloseAll()},!1,{ok:r,cancel:s,cancel_class:"inverted"})},e.ignoreLimited=function(){t.post("/api/triggers/limited_ignore"),User.set("limited_ignore","yes")},e.ignoreLimitedAndTop=function(){e.ignoreLimited();var a="visa";c.displayToastAmaran("success",Lang.get("cards.form.whait_response")),t.post("/api/report/quick",{amount:e.amg,fixed:0,bonus:0}),i.WorkerAuto(0,0,e.amg,a,"fast")},e.aceptLimited=function(){t.post("/api/triggers/limited_yes");var a="visa";c.displayToastAmaran("success",Lang.get("cards.form.whait_response")),t.post("/api/report/quick",{amount:e.limited,fixed:0,bonus:0}),i.WorkerAuto(0,0,e.limited,a,"fast")},e.can_top_up=e.isCanQuickTop(),e.$on("limited-offer:accept",e.aceptLimited),e.$on("limited-offer:ignore",e.ignoreLimited),e.$on("limited-offer:ignoreandtop",e.ignoreLimitedAndTop),e.changeData=function(t,a){try{e.user.cnu=a.cnu,e.$digest()}catch(n){}},e.$on("reload:card",e.changeData),e.isNeedBroadcastBTCpopup=function(){d.btc_show||$(".ui.dimmer .deposit_and_withdraw").length>0||Cc.get("SESSION.register_event")||n.$broadcast("bitcoin:popup:show",{})},e.isBitcoinPopup=function(){User.get("btc_deposit")||$(".card_save_form input").focus(e.isNeedBroadcastBTCpopup)}};e.$inject=["$scope","$http","$timeout","$rootScope","$templateCache","Cascade","Ayden","$mdToast","$mdDialog","ModalService","Store","Ranger"],angular.module("app").controller("Cards",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.is_open=!1,e.is_loading=!1,e.chat_url="",e.is_first_load=!1,e.getChatUrl=function(){return User.get("userId")?Settings.get("chat_auth"):Settings.get("chat")},e.fixIframe=function(){setTimeout(function(){var e=$(".fixed-chat").height();$(".chat-iframe iframe").attr("height",e+"px")},300)},e.addLangSig=function(){e.chat_url+="&language="+Lang.get("sig").toUpperCase()},e.addVerification=function(){e.chat_url+="&verification=on"},e.loadChat=function(){t({method:"POST",url:"/api/triggers/chat"}).success(function(t){e.chat_url=t.current?t.current:e.getChatUrl(),e.addLangSig(),e.is_loading=!0,e.fixIframe(),e.triggerLastHost()}).error(function(e){})},e.triggerLastHost=function(){var e=User.get("userId")+"host";localStorage.getItem(e)||setTimeout(function(){t.post("/api/triggers/last_host"),localStorage.setItem(e,"yes")},4e3)},e.toggle=function(){e.is_open=!e.open},e.close=function(){e.is_open=!1;try{gtag("event","click",{event_category:"video_chat",event_label:"close"})}catch(t){}},e.open=function(){e.is_open||(e.is_open=!0),e.is_first_load?e.fixIframe():(setTimeout(function(){e.loadChat()},1e3),e.is_first_load=!0);try{gtag("event","click",{event_category:"video_chat",event_label:"open"})}catch(t){}},e.getToken=function(){t({method:"POST",url:"/api/chat/token"}).success(function(t){e.chat_url+=t.token,e.is_loading=!0}).error(function(e){})},e.isMobile=function(){Cc.get("SESSION.is_mobile")&&$(".fixed-chat").hide(),Cc.get("INPUT.mobileapp")&&$(".fixed-chat").hide()},e.SubscribePlatformEvents=function(){var e=window.addEventListener?"addEventListener":"attachEvent",t=window[e],a="attachEvent"==e?"onmessage":"message";t(a,function(e){var t=e.message?"message":"data",a=e[t];try{var o=angular.fromJson(a);n.$broadcast("out:"+o.event,o.data)}catch(e){console.log("event debug:",e,a)}},!1)},e.chatPromo=function(e,t){var a=t.videoId;$.magnificPopup.open({items:{src:"https://www.youtube.com/watch?v="+a},type:"iframe",iframe:{markup:'
',patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"}}}})},e.chat_progress=!1,e.chatVerify=function(){e.chat_progress||(e.chat_progress=!0,t({method:"POST",url:"/api/triggers/chat"}).success(function(t){e.chat_url=t.current,e.addLangSig(),e.addVerification(),e.is_open=!0,e.is_loading=!0,e.fixIframe(),e.triggerLastHost(),e.chat_progress=!1}).error(function(t){e.chat_progress=!1}))},n.$on("out:chat:promo",e.chatPromo),n.$on("chat:verification",e.chatVerify),e.chatOff=function(){var e="yes"===Settings.get("chat_off");if(e){var t=Settings.get("jivo_id"),a=(document,window,document.createElement("script"));a.type="text/javascript",a.async=!0,a.src="//code.jivosite.com/script/widget/"+t;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n),$(".fixed-chat").remove()}return e},e.chatOff()||(e.SubscribePlatformEvents(),e.isMobile(),e.chatNeedOpenGet=function(){setTimeout(function(){Cc.get("INPUT_LOCAL.chat_open")&&User.get("userId")&&e.open()},401)},e.chatNeedOpenGet())};e.$inject=["$scope","$http","$timeout","$rootScope","ChatFactory"],angular.module("app").controller("Chat",e)}(window),function(){"use strict";var e=function(e,t,a,n){e.chat_url="[data-chat-url]",e.loadChat=function(){$("[data-chat-url]").remove()},e.checkIsAuth=function(){User.userId&&e.loadChat()},e.chatOff=function(){var t="yes"===Settings.get("chat_off");if(t){e.loadChat();var a=Settings.get("jivo_id"),n=(document,window,document.createElement("script"));n.type="text/javascript",n.async=!0,n.src="//code.jivosite.com/script/widget/"+a;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}return t},e.SubscribePlatformEvents=function(){var e=window.addEventListener?"addEventListener":"attachEvent",t=window[e],a="attachEvent"==e?"onmessage":"message";t(a,function(e){var t=e.message?"message":"data",a=e[t];try{var o=angular.fromJson(a);n.$broadcast("out:"+o.event,o.data)}catch(e){console.log("event debug:",e,a)}},!1)},e.chatPromo=function(e,t){var a=t.videoId;$.magnificPopup.open({items:{src:"https://www.youtube.com/watch?v="+a},type:"iframe",iframe:{markup:'
',patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"}}}})},n.$on("out:chat:promo",e.chatPromo),e.checkIsAuth(),e.chatOff()};e.$inject=["$scope","$http","$timeout","$rootScope"],angular.module("app").controller("ChatMain",e)}(window),function(){"use strict";var e=function(e,t,a){e.error="",e.success=!1,e.loading=!1,e.mail={message:"",phone:"",email:"",name:""},e.send=function(){e.loading=!0,t({method:"POST",url:"/api/contacts",data:e.mail}).success(function(t,a,n,o){"false"==t["return"]?(e.error=t.error,$(".message.em").transition("shake"),e.loading=!1):(e.error="",e.message=t.message,e.success=!0)}).error(function(t){e.loading=!1,e.error=t.message?t.message:Lang.get("auth.server_error"),$(".message.em").transition("shake")})}};e.$inject=["$scope","$http","$timeout"],angular.module("app").controller("Contacts",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.dec=3600,e.guid="",e.count={hours:0,minutes:"00",seconds:"00"},e.hash="",e.status="wt",e.count_show=!0,e.copyAddress=function(){e.copyToClipboard(".eth-area")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyAmount=function(){e.copyToClipboard(".eth-amount")?n.displayToastAmaran("success","Amount copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyText=function(){e.copyToClipboard(".copy-text")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(e){var t="string"==typeof e?document.querySelector(e):e;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=a,t.readOnly=n}else t.select();return document.execCommand("copy")},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){"su"!=e.status&&"ex"!=e.status&&t({method:"POST",url:"/api/dash/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status,e.hash=t.hash}).error(function(e){})},setInterval(function(){e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){o.run("btc",e.dec,e.callback)},300),e.goToBlckchain=function(){var t="https://live.blockcypher.com/dash/tx/"+e.hash,a=window.open(t,"_blank");a.focus()},e.getStatus(),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","ModalService","CountDown"],angular.module("app").controller("DASHinvoice",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.qr=o.qr,e.type=o.type,e.text=o.email_text,e.secret="",e.inputs_loading=!1,e.error=!1,e.disabled=!1,e.initInputs=function(){var o=$(".code-area"),i=o.find(":input"),r=!1,s=o.find("[name=pincode-1]"),l=o.find("[name=pincode-2]"),c=o.find("[name=pincode-3]"),d=o.find("[name=pincode-4]"),u=o.find("[name=pincode-5]");o.find("[name=pincode-6]");i.on("keyup",function(e){var t=e.keyCode||e.which;9!==t||e.shiftKey||e.preventDefault()}).inputmask({mask:"9",placeholder:"",showMaskOnHover:!1,showMaskOnFocus:!1,clearIncomplete:!0,oncomplete:function(){p.push($(this).val()),!r||console.log("inputmask incomplete")},oncleared:function(){var e=i.index(this),t=e-1,a=e+1;return t>=0&&(i.eq(t).focus(),p.splice(-1,1),void(!r||console.log("[oncleared]",t,e,a)))},onKeyDown:function(e,t,a,n){if("Backspace"===e.code){var o=i.index(this),r=o-1;if(!(r>=0))return!1;i.eq(r).val(""),i.eq(r).focus(),p.splice(-1,1)}},onKeyValidation:function(e,t){var a=i.index(this),n=a-1,o=a+1;n<6&&i.eq(o).focus(),!r||console.log("[onKeyValidation]",a,e,t,p)},onBeforePaste:function(e,t){return $.each(e.split(""),function(e,t){i.eq(e).val(t),!r||console.log("[onBeforePaste:each]",e,t)}),p=e.split(""),m(),!1}});var p=[];$("[name=pincode-6]").on("focus",function(e){""!==s.val().trim()&&""!==l.val().trim()&&""!==c.val().trim()&&""!==d.val().trim()&&""!==u.val().trim()||(e.preventDefault(),p=[],i.each(function(){$(this).val("")}),s.focus()),!r||console.log("[6:focus]",p)}).inputmask({oncomplete:function(){p.push($(this).val()),6!==p.length?(p=[],i.each(function(){$(this).val("")}),s.focus()):m(),!r||console.log("[6:oncomplete]",p)}});var m=function(){e.inputs_loading=!0,t({method:"POST",url:"/api/fraud/factors_check",data:{type:e.type,code:p.join("")}}).success(function(t){t.success?(n.closeFancy(),setTimeout(function(){a.$broadcast("email:success:factors",{})},400)):(e.error=t.message,i.each(function(){$(this).val("")}),s.focus(),p=[],e.disabled=t.disabled),e.inputs_loading=t.disabled}).error(function(t){e.inputs_loading=!1,console.log("error update user!",t)})};setTimeout(function(){s.focus()},300)},setTimeout(function(){e.initInputs()},100),e.copySecret=function(){e.copyToClipboard($(".copy-text")[0])?n.displayToastAmaran("success","Copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(t){var a="string"==typeof t?document.querySelector(t):t;if(""===a.value&&(a.value=e.secret),navigator.userAgent.match(/ipad|ipod|iphone/i)){var n=a.contentEditable,o=a.readOnly;a.contentEditable=!0,a.readOnly=!0;var i=document.createRange();i.selectNodeContents(a);var r=window.getSelection();r.removeAllRanges(),r.addRange(i),a.setSelectionRange(0,999999),a.contentEditable=n,a.readOnly=o}else a.select();return document.execCommand("copy")},e.resendCode=function(){t({method:"POST",url:"/api/fraud/two_factors",data:{type:"email_resend",state:!0}}).success(function(e){e.success?n.displayToastAmaran("success","Successfully"):n.displayToastAmaran("error",e.message)}).error(function(e){})}};e.$inject=["$scope","$http","$rootScope","ModalService","Store"],angular.module("app").controller("EmailValidate",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.dec=3600,e.guid="",e.count={hours:0,minutes:"00",seconds:"00"},e.status="wt",e.count_show=!0,e.copyAddress=function(){e.copyToClipboard(".eth-area")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyAmount=function(){e.copyToClipboard(".eth-amount")?n.displayToastAmaran("success","Amount copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyText=function(){e.copyToClipboard(".copy-text")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(e){var t="string"==typeof e?document.querySelector(e):e;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=a,t.readOnly=n}else t.select();return document.execCommand("copy")},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){"wt"==e.status&&t({method:"POST",url:"/api/eth/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status}).error(function(e){})},setInterval(function(){e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){o.run("eth",e.dec,e.callback)},300),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","ModalService","CountDown"],angular.module("app").controller("ETHinvoice",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.type=User.get("two_factor"),e.inputs_loading=!1,e.error=!1,e.disabled=!1,e.initInputs=function(){var a=$(".code-area-max"),n=a.find(":input"),o=!1,i=a.find("[name=pincode-1]"),r=a.find("[name=pincode-2]"),s=a.find("[name=pincode-3]"),l=a.find("[name=pincode-4]"),c=a.find("[name=pincode-5]");a.find("[name=pincode-6]");n.on("keyup",function(e){var t=e.keyCode||e.which;9!==t||e.shiftKey||e.preventDefault()}).inputmask({mask:"9",placeholder:"",showMaskOnHover:!1,showMaskOnFocus:!1,clearIncomplete:!0,oncomplete:function(){d.push($(this).val()),!o||console.log("inputmask incomplete")},oncleared:function(){var e=n.index(this),t=e-1,a=e+1;return t>=0&&(n.eq(t).focus(),d.splice(-1,1),void(!o||console.log("[oncleared]",t,e,a)))},onKeyDown:function(e){if("Backspace"===e.code){var t=n.index(this),a=t-1;if(!(a>=0))return!1;n.eq(a).val(""),n.eq(a).focus(),d.splice(-1,1)}},onKeyValidation:function(e,t){var a=n.index(this),i=a-1,r=a+1;i<6&&n.eq(r).focus(),!o||console.log("[onKeyValidation]",a,e,t,d)},onBeforePaste:function(e,t){return $.each(e.split(""),function(e,t){n.eq(e).val(t),!o||console.log("[onBeforePaste:each]",e,t)}),d=e.split(""),u(),!1}});var d=[];$("[name=pincode-6]").on("focus",function(e){""!==i.val().trim()&&""!==r.val().trim()&&""!==s.val().trim()&&""!==l.val().trim()&&""!==c.val().trim()||(e.preventDefault(),d=[],n.each(function(){$(this).val("")}),i.focus()),!o||console.log("[6:focus]",d)}).inputmask({oncomplete:function(){d.push($(this).val()),6!==d.length?(d=[],n.each(function(){$(this).val("")}),i.focus()):u(),!o||console.log("[6:oncomplete]",d)}}),setTimeout(function(){i.focus()},300);var u=function(){e.inputs_loading=!0,t({method:"POST",url:"/api/fraud/factors_check",data:{type:e.type,code:d.join("")}}).success(function(t){t.success?location.reload():(e.error=t.message,n.each(function(){$(this).val("")}),i.focus(),d=[],e.disabled=t.disabled),e.inputs_loading=t.disabled}).error(function(t){e.inputs_loading=!1,console.log("error update user!",t)})}},setTimeout(function(){e.initInputs()},100)};e.$inject=["$scope","$http","$timeout","$rootScope","ModalService"],angular.module("app").controller("FactorAuth",e)}(window),function(){"use strict";var e=function(e,t,a){e.error="",e.email="",e.message="",e.server=!1,e.loading=!1,e.forget=function(){e.loading=!0,t({method:"POST",url:"/api/forget",data:{email:e.email}}).success(function(t,a,n,o){"false"==t["return"]?(e.error=t.error,$(".message.em").transition("shake"),e.loading=!1):(e.error="",e.message=t.message,e.server=!0)}).error(function(t){e.loading=!1,e.error=t.message?t.message:Lang.get("auth.server_error"),$(".message.em").transition("shake")})}};e.$inject=["$scope","$http","$timeout"],angular.module("app").controller("LoginForget",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c){e.tabs={"default":{card:"active",card_moneta:"hide",perfect:"",bitcoin:"",vload:"hide",litecoin:"",eth:"hide",ltc:"hide",neteller:"hide",skrill:"hide",webmoney:"hide",yandex:"hide",qiwi:"hide",okpay:"hide",bank:"",mobile:{card:"active",card_moneta:"ng-hide",perfect:"",bitcoin:"",vload:"ng-hide",litecoin:"",eth:"",neteller:"ng-hide",skrill:"ng-hide",webmoney:"ng-hide",yandex:"ng-hide",qiwi:"ng-hide",okpay:"ng-hide"},current_path:"card"},cn:{card_moneta:"hide",card:"active",eth:"hide",ltc:"hide",litecoin:"hide",bitcoin:"",neteller:"hide",skrill:"hide",perfect:"hide",webmoney:"hide",yandex:"hide",qiwi:"hide",okpay:"hide",bank:"",vload:"hide",mobile:{card_moneta:"ng-hide",card:"",bitcoin:"",neteller:"ng-hide",litecoin:"ng-hide",eth:"ng-hide",ltc:"ng-hide",skrill:"ng-hide",perfect:"ng-hide",webmoney:"ng-hide",yandex:"ng-hide",qiwi:"ng-hide",okpay:"ng-hide",vload:"ng-hide",bank:""},current_path:"card"},ru:{card_moneta:"",card:"recomended active",eth:"hide",ltc:"hide",bicoin:"",neteller:"hide",skrill:"hide",perfect:"hide",webmoney:"hide",yandex:"",qiwi:"hide",okpay:"hide",bank:"hide",vload:"",mobile:{card_moneta:"",card:"",bicoin:"",neteller:"ng-hide",skrill:"ng-hide",perfect:"",webmoney:"ng-hide",yandex:"",qiwi:"ng-hide",okpay:"ng-hide",vload:""},current_path:"card"},current_path:"card"},e.skrillGeo=function(){var t=$.inArray(Cc.get("GEO"),["DE","GB","BE","FR","ES","CN","HK","IL","MO","SG","AE","CA","TR","US","JP"])!==-1;e.tabs["default"].skrill=t?"hide":"",e.tabs["default"].mobile.skrill=t?"ng-hide":""},e.tabs[Lang.get("sig")]&&(e.tabs["default"]=e.tabs[Lang.get("sig")]),e.tabs[User.get("currency")]&&(e.tabs["default"]=e.tabs[User.get("currency")]),e.isRisk=function(){return User.get("cardRisk")&&"Full"!==User.get("verification")},e.isUS=$.inArray(Cc.get("GEO"),["US","CA"])!==-1,e.isUS=!!Cc.get("INPUT_LOCAL.ddt")||e.isUS,e.isRiskPartner=function(){User.get("cardRisk")&&"Full"!==User.get("verification")&&(e.tabs["default"].current_path="bitcoin",e.tabs["default"].card="",e.tabs["default"].bitcoin="active",$(".pay-tabs").prepend($('.pay-tabs [data-tab="bitcoin"]')),$('.pay-tabs [data-tab="bitcoin"]').addClass("active"))},e.noVload=function(){s.isNoVload()&&(e.tabs["default"].vload="hide",e.tabs["default"].mobile.vload="ng-hide")},e.isRiskPartner(),e.noVload(),e.info=User,e.lang=Lang,e.random={},e.promo=Cc.get("SESSION.promo")?Cc.get("SESSION.promo"):"",e.promo_toggle=""!==e.promo,e.promo_loading=!1,e.promo_error="",e.promo_success_show=!1,e.promo_danger_show=!1,e.pm=1e3,e.bitcoin_rates={},e.exchange={BTC:0,ETH:0,LTC:0,DASH:0,BCH:0,XRP:0,ZEC:0,XMR:0,ETC:0,NEO:0,USD:0,EUR:0},e.wm={account:"WMZ",wallet:"",allow:{WMZ:"Z397995960768",WMR:"R991160500597",WME:"E284054825925"}},e.bitcoin={wallet:""},e.range=s.slider,e.ranger=s,e.slider={value:s.slider.bronze,is_bonus:!1,is_fixed:!1,deposit:"silver",procent:1.5,procent_add:0,procent_value:50,procent_value_add:0,dec:s.decimals},e.MinDeposit=s.minDeposit;var d=0;if(e.maxBonus=Settings.get("max_bonus")?parseInt(Settings.get("max_bonus")):200,e.maxProc=Settings.get("max_bonus_proc")?parseFloat(Settings.get("max_bonus_proc")):3.5,e.OnUpdateSlide=function(t,a){if(a[0]){if(e.slider.value=parseFloat(a[0]),e.slider.value>=s.slider.silver?(e.slider.deposit="gold",e.slider.procent=2,e.slider.procent_value=100):e.slider.value>=s.slider.bronze?(e.slider.deposit="silver",e.slider.procent=1.5,e.slider.procent_value=50):(e.slider.deposit="bronze",e.slider.procent=1.2,e.slider.procent_value=20),e.slider.procent+=e.slider.procent_add,e.slider.procent=e.slider.procent>e.maxProc?e.maxProc:e.slider.procent,e.slider.procent_value+=e.slider.procent_value_add,e.slider.procent_value=e.slider.procent_value>e.maxBonus?e.maxBonus:e.slider.procent_value,e.pm=e.slider.value,d>2)try{e.$digest()}catch(n){console.log(n)}d++}},e.DepositBlur=function(){return"undefined"!=typeof window.binary_debug?void e.setMinToSlider(parseInt(e.slider.value)):(e.slider.valuePayment error, The payment hasn\'t been made'),i.params.add&&"payment_success"===i.params.add&&c.displayAlert("Payment successful",'Payment successful, The payment has been processed!'),i.params.add&&"payment_process"===i.params.add&&c.displayAlert(Lang.get("payment.process.title"),''+Lang.get("payment.process.message")+""),i.params.add&&"entro"===i.params.add&&r.entroPin(),i.params.add&&"promo"===i.params.add){var f=Cc.get("INPUT_LOCAL.prm");f&&(e.promo=f,e.promo_toggle=!0,setTimeout(function(){$("html, body").animate({scrollTop:$(".deposit-line").offset().top-200},"fast"),$(".deposit-line li:last-child").transition("tada","1000ms")},400))}e.initMobile=function(){$(".mob-tabular").dropdown();var t=e.tabs["default"].current_path;t&&$('.tab.segment[data-tab="'+t+'"]').addClass("active"),$(".popup-youtube").magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1})},e.payTabChange=function(t){"card"===t&&(e.showBitcoinPopup(),e.isRisk()&&e.showPartnerRiskPopup())},e.showPartnerRiskPopup=function(){c.showDynamic("/api/ag/modal_risk",{theme:"",close:"bdw-close"},{onHide:function(){}})},$(".tabular .item").tab({alwaysRefresh:!0,cache:!1,onVisible:function(t){$(".tabular .item.active").removeClass("active"),$('.item[data-tab="'+t+'"]').addClass("active"),e.tabs.current_path=t,e.payTabChange(t)}}),e.isNeedShowBtcPopUp=function(){if(User.get("btc_deposit"));else{if(l.btc_show||User.get("btc_deposit")||e.getBtcDay()||Cc.get("SESSION.register_event"))return;if("cn"===Lang.get("sig"))return;t({method:"POST",url:"/api/bitcoin/deposit"}).success(function(t){"true"==t["return"]?User.set("btc_deposit","yes"):e.showBitcoinPopup()}).error(function(e){})}},e.getBtcDay=function(){return localStorage.getItem(moment().format("YYMMDD"))},e.setBtcDay=function(){localStorage.setItem(moment().format("YYMMDD"),"yes")},e.showBitcoinPopup=function(){l.btc_show||User.get("btc_deposit")||e.getBtcDay()||Cc.get("SESSION.register_event")||c.showDynamic("/api/ag/modal_bitcoin",{theme:"",close:"bdw-close"},{onHide:function(){l.btc_show=!0,e.setBtcDay()}})},e.btcPopupAction=function(){$(".ui.modal").modal("hide all"),i.go("show",{page:"funding"}),setTimeout(function(){var e=$('[data-tab="bitcoin"]');e.click(),setTimeout(function(){$("html, body").animate({scrollTop:e.offset().top},400)},300)},300)},e.isNeedShowBtcPopUp(),e.$on("bitcoin:popup:show",e.showBitcoinPopup),e.initMobile(),e.once=!0,e.scrollFo=function(){var e=$("#input-number");$("html, body").animate({scrollTop:e.offset().top},500),e.focus()},window.honorTest=function(){e.once=!0,c.showDynamic("/api/ag/modal_honor",{theme:"honor wide",close:"bdw-close"},{onHide:function(){e.once&&(e.once=!1,gtag("event","click",{event_category:"do not honor",event_label:"close"}))}});try{gtag("event","show",{event_category:"do not honor",event_label:"pop-up-banner"})}catch(t){}},e.fixedCurrency="BTC",e.fixedTab=function(t){$(".crypto-tabs .item.active").removeClass("active"),$('.crypto-tabs .item[data-tab="'+t+'"]').addClass("active"),$(".pay-tabs-content .segment").removeClass("active"),e.fixedCurrency=t,"BTC"===t?$('.pay-tabs-content [data-tab="bitcoin"]').addClass("active"):"USD"===t||"EUR"===t?$('.pay-tabs-content [data-tab="fiat"]').addClass("active"):($('.pay-tabs-content [data-tab="litecoin"]').addClass("active"),$(".altcoins_drop").hide(),setTimeout(function(){"LTC"===t?$('.dp1 [data-value="ltc"]').click():"ETH"===t?$('.dp1 [data-value="eth"]').click():"DASH"===t?$('.dp1 [data-value="dash"]').click():"ZEC"===t?$('.dp1 [data-value="zcash"]').click():$('.dp1 [data-value="other"]').click()},100)),e.eventNotPurchase()},e.getExchangeBalances=function(){t.post("/api/triggers/exchange").success(function(t){$.each(t,function(t,a){e.exchange[t]=a})}).error(function(e){})},e.initDropDown=function(){setTimeout(function(){$(".amount-dropdown").dropdown(),e.initCurrentAccount()},200)},e.addAccount=function(){c.showDynamic("/api/ag/modal_add_account",{theme:"add_account mini small"}),$(".amount-dropdown").dropdown("hide")},e.addAccountWallet=function(t,a){console.log(a);var o=User.balances;a.data.amount=0,a.data.netAmount=0,o.push(a.data),User.set("balances",o),e.info=User,setTimeout(function(){$(".amount-dropdown ."+a.data.accountId).click()},600),setTimeout(function(){n.$broadcast("user:update")},4e3); },e.current_balance={},e.initBalance=!1,e.initCurrentAccount=function(){var t=User.get("balances");if(t&&_.isArray(t)){if(1!==t.length||User.get("current_accountId")){var a=_.findWhere(t,{accountId:User.get("current_accountId")});e.current_balance=a?a:{amount:"Exchange account",type:"exchange"}}else e.current_balance=_.first(t),e.setAccountId(d.accountId);e.current_balance.accountId?($(".amount-dropdown ."+e.current_balance.accountId).click(),e.initBalance=!0):($(".amount-dropdown .exchange-item").click(),e.ChangeFix(!0))}},e.changeCurrentAccount=function(t){if(e.ChangeFix(!1),e.current_balance.accountId!==t.accountId){var a=User.get("balances");e.current_balance=_.findWhere(a,{accountId:t.accountId}),e.setAccountId(t.accountId),s.updateCurrency(t.currency)}},e.changeAccountExchange=function(){e.ChangeFix(!0),e.setAccountIdExchange()},e.setAccountId=function(e){t({method:"POST",url:"/api/us/set_account",data:{account:e}}).success(function(e){}).error(function(e){c.displayToastAmaran("error","Some errors, please try again. Cant set account id.")})},e.setAccountIdExchange=function(){t({method:"POST",url:"/api/us/set_account_exchange",data:{}}).success(function(e){}).error(function(e){c.displayToastAmaran("error","Some errors, please try again. Cant set account id.")})},e.updateInfo=function(){e.info=angular.copy(User),setTimeout(function(){$(".wallet-drop-func .menu .item."+User.current_accountId).click()},100)},e.TryPurchase="",e.NotPurchase="",e.NotPurchaseSumm=0,e.NotPurchaseCurrency="",e.eventNotPurchase=function(){var a=moment().format("h:mm");a===e.NotPurchase&&e.NotPurchaseSumm===e.slider.value&&e.NotPurchaseCurrency===s.currency||(e.NotPurchase=a,e.NotPurchaseSumm=e.slider.value,e.NotPurchaseCurrency=s.currency,t({method:"POST",url:"/api/triggers/not_finish_purchase",data:{amount:e.NotPurchaseSumm,currency:e.NotPurchaseCurrency}}).success(function(e){}).error(function(e){}))},e.eventTryPurchase=function(){var a=moment().format("h:mm");a!==e.TryPurchase&&(e.TryPurchase=a,t({method:"POST",url:"/api/triggers/purchase_try",data:{}}).success(function(e){}).error(function(e){}))},$(".pay-tabs-content button").click(function(){e.eventTryPurchase()}),$(".pay-tabs .item").click(function(){e.eventNotPurchase()}),e.initDropDown(),e.loadPromotionsProcent=function(){t({method:"POST",url:"/api/us/promotions_max",data:{}}).success(function(t){t.bonus>0&&(e.slider.is_bonus=!0,e.slider.procent_add=t.bonus/100,e.slider.procent_value_add=t.bonus,e.OnUpdateSlide(!1,[s.slider.bronze]))})},e.loadPromotionsProcent(),e.$on("add:account",e.addAccountWallet),e.$on("user:update:success",e.updateInfo),n.$on("slideUiEnd",e.eventNotPurchase),n.$broadcast("user:update",{})};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform","$state","Cascade","Ranger","Store","ModalService"],angular.module("app").controller("Founding",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c,d,u){e.qr=d.qr,e.type=d.type,e.text=d.google_text,e.secret="",e.initQR=function(){if(""!==e.qr){e.secret=d.qr.split("secret=")[1];new QRCode("qrcode",{text:e.qr?e.qr:"",width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:QRCode.CorrectLevel.H})}},e.inputs_loading=!1,e.error=!1,e.disabled=!1,e.initInputs=function(){var a=$(".code-area"),o=a.find(":input"),i=!1,r=a.find("[name=pincode-1]"),s=a.find("[name=pincode-2]"),l=a.find("[name=pincode-3]"),d=a.find("[name=pincode-4]"),u=a.find("[name=pincode-5]");a.find("[name=pincode-6]");o.on("keyup",function(e){var t=e.keyCode||e.which;9!==t||e.shiftKey||e.preventDefault()}).inputmask({mask:"9",placeholder:"",showMaskOnHover:!1,showMaskOnFocus:!1,clearIncomplete:!0,oncomplete:function(){p.push($(this).val()),!i||console.log("inputmask incomplete")},oncleared:function(){var e=o.index(this),t=e-1,a=e+1;return t>=0&&(o.eq(t).focus(),p.splice(-1,1),void(!i||console.log("[oncleared]",t,e,a)))},onKeyDown:function(e,t,a,n){if("Backspace"===e.code){var i=o.index(this),r=i-1;if(!(r>=0))return!1;o.eq(r).val(""),o.eq(r).focus(),p.splice(-1,1)}},onKeyValidation:function(e,t){var a=o.index(this),n=a-1,r=a+1;n<6&&o.eq(r).focus(),!i||console.log("[onKeyValidation]",a,e,t,p)},onBeforePaste:function(e,t){return $.each(e.split(""),function(e,t){o.eq(e).val(t),!i||console.log("[onBeforePaste:each]",e,t)}),p=e.split(""),m(),!1}});var p=[];$("[name=pincode-6]").on("focus",function(e){""!==r.val().trim()&&""!==s.val().trim()&&""!==l.val().trim()&&""!==d.val().trim()&&""!==u.val().trim()||(e.preventDefault(),p=[],o.each(function(){$(this).val("")}),r.focus()),!i||console.log("[6:focus]",p)}).inputmask({oncomplete:function(){p.push($(this).val()),6!==p.length?(p=[],o.each(function(){$(this).val("")}),r.focus()):m(),!i||console.log("[6:oncomplete]",p)}});var m=function(){e.inputs_loading=!0,t({method:"POST",url:"/api/fraud/factors_check",data:{type:e.type,code:p.join("")}}).success(function(t){t.success?(c.closeFancy(),n.$broadcast("google:success:factors",{})):(e.error=t.message,o.each(function(){$(this).val("")}),r.focus(),p=[],e.disabled=t.disabled),e.inputs_loading=t.disabled}).error(function(t){e.inputs_loading=!1,console.log("error update user!",t)})};setTimeout(function(){r.focus()},300)},setTimeout(function(){e.initQR(),e.initInputs()},100),e.copySecret=function(){e.copyToClipboard($(".copy-text")[0])?c.displayToastAmaran("success","Copied to clipboard"):c.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(t){var a="string"==typeof t?document.querySelector(t):t;if(""===a.value&&(a.value=e.secret),navigator.userAgent.match(/ipad|ipod|iphone/i)){var n=a.contentEditable,o=a.readOnly;a.contentEditable=!0,a.readOnly=!0;var i=document.createRange();i.selectNodeContents(a);var r=window.getSelection();r.removeAllRanges(),r.addRange(i),a.setSelectionRange(0,999999),a.contentEditable=n,a.readOnly=o}else a.select();return document.execCommand("copy")}};e.$inject=["$scope","$http","$timeout","$rootScope","$state","Cascade","Ayden","$mdToast","$mdDialog","ModalService","Store","Ranger"],angular.module("app").controller("GoogleValidate",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.fieldToShake=!1,e.info=User,e.history={start:"",end:"",type:"all"},e.rep={date_from:moment.unix(User.get("regTime")/1e3).format("DD.MM.YYYY"),date_to:"",status:"",trType:"ALL",exchange:"ALL"},e.checkTimeImterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"date_from",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"date_to";if(""!=e.date_to){var n=moment(e[a].split(".").reverse().join("-")).format("X"),o=moment(e[t].split(".").reverse().join("-")).format("X");return!(o>n)}return!0},e.is_loading=!1,e.ResultDefault={hits:[],total:0},e.result=angular.copy(e.ResultDefault),e.server=!1,e.send=function(){var n=angular.copy(e.rep);if(e.result=angular.copy(e.ResultDefault),!e.checkTimeImterval(n))return e.fieldToShake=!0,a(function(){e.rep.date_to="",e.fieldToShake=!1},1e3),!1;n.date_from=n.date_from.split(".").reverse().join("-"),n.date_to=n.date_to.split(".").reverse().join("-");var o=1e3*moment().hour(0).unix(),i=moment.now(),r=e.rep.status,s=e.rep.trType,l=e.rep.exchange,c=["MM/DD/YYYY","MM-DD-YYYY","YYYY-MM-DD"];moment(n.date_from,c).isValid()&&(o=1e3*moment.utc(n.date_from).unix()),moment(n.date_to,c).isValid()&&(i=1e3*moment.utc(n.date_to).unix());var d=function(t){e.result=angular.copy(e.ResultDefault),e.is_loading=!1};e.is_loading=!0,t({method:"POST",url:"/api/us/history",data:{DateFrom:o,DateTo:i,limit:999,offset:0,Status:r,trType:s,exchange:l}}).success(function(t){e.result=t,e.is_loading=!1}).error(d)},e.send(),e.OnChengaDate=function(){e.send()},setTimeout(function(){$(".type-select .ui.dropdown").css("min-width","9em"),$(".exchange-select .ui.dropdown").css("min-width","16em")},300),n.$on("flat-datepicker:date_change",e.OnChengaDate)};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform"],angular.module("app").controller("History",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c,d,u){e.resend=function(){n.$broadcast("founding:resend",{}),$(".ui.modal").modal("hide");try{gtag("event","click",{event_category:"do not honor",event_label:"try again"})}catch(e){}},e.goBitcoin=function(){$(".ui.modal").modal("hide all"),o.go("show",{page:"funding"}),setTimeout(function(){var e=$('[data-tab="bitcoin"]');e.click(),setTimeout(function(){$("html, body").animate({scrollTop:e.offset().top},400)},300)},300)},e.goEntropay=function(){$(".ui.modal").modal("hide all"),i.WorkerEntropay()}};e.$inject=["$scope","$http","$timeout","$rootScope","$state","Cascade","Ayden","$mdToast","$mdDialog","ModalService","Store","Ranger"],angular.module("app").controller("Honor",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c,d,u){function p(e){var t=$('
');$("body").append(t),t.submit().remove()}e.loading=!1,e.info=User,e.password=d.password,e.send=function(){c.CloseAll(),p("/api/iq/next")},e.init=function(){t({method:"POST",url:"/api/iq/start"}).success(function(e){}).error(function(e){})},e.last=function(){var t="https://client.iqmining.com/partner/login?email="+User.get("email")+"&password="+e.password+"&bonus=162";p(t)},e.init()};e.$inject=["$scope","$http","$timeout","$rootScope","$state","Cascade","Ayden","$mdToast","$mdDialog","ModalService","Store","Ranger"],angular.module("app").controller("IQMODAL",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.is_load=!1,e.url="",e.getHash=function(){t({method:"POST",url:"/api/us/ladder"}).success(function(t){e.url=t.url,e.is_load=!0,$(".ui.modal").modal("refresh"),setTimeout(function(){$(".ui.modal").modal("refresh")},600)}).error(function(e){console.log(e)})},e.getHash()};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform"],angular.module("app").controller("Ladder",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l){e.days="00",e.hours="00",e.minutes="00",e.seconds="00",e.limited=l.limited,e.offer=l.offer,s.is("limited")||s.run("limited",180,function(){e.ignore()});var c=function(t,a){"limited"==a.name&&(e.days=a.days<10?"0"+a.days:a.days,e.hours=a.hours<10?"0"+a.hours:a.hours,e.minutes=a.minutes<10?"0"+a.minutes:a.minutes,e.seconds=a.seconds<10?"0"+a.seconds:a.seconds)},d=function(){};e.accept=function(){n.$broadcast("limited-offer:accept"),i.CloseAll()},e.ignore=function(){n.$broadcast("limited-offer:ignore"),i.CloseAll()},e.ignoreAndTop=function(){n.$broadcast("limited-offer:ignoreandtop"),i.CloseAll()},e.$on("modal:cancel",d),e.$on("coundown:tick",c)};e.$inject=["$scope","$http","$timeout","$rootScope","$filter","ModalService","$state","CountDown","Store"],angular.module("app").controller("LimitedOffer",e)}(window),function(){"use strict";var e=function(e,t,a,n){e.email="",e.password="",e.error="",e.loading=!1,e.login=function(){if(e.loading=!0,!window.recaptchaOn||window.recaptchaToken)window.capthaInfo="Token:"+window.recaptchaToken,e.loginAfter();else try{var t=new Promise(function(e,t){var a=[200,500,700,1e3,1500,2e3,2500,3e3,4e3];a.forEach(function(t){setTimeout(function(){window.recaptchaToken&&(e("yes "+t),window.capthaInfo="Recaptha ok after - "+t)},t)}),setTimeout(function(){window.capthaInfo=window.capthaInfo?window.capthaInfo+"Recaptha no after 5k sec:":"Recaptha no after 5k sec:",t("no")},5e3)});t.then(function(t){e.loginAfter()},function(t){e.loginAfter()})}catch(a){window.capthaInfo=window.capthaInfo?window.capthaInfo+"error:"+a.toString():"error:"+a.toString(),e.loginAfter()}},e.loginAfter=function(){e.loading=!0;var a=function(t,a,n,o){if(console.log(t),"false"!==t["return"]){var i=Cc.get("INPUT.rd"),r=i?"#"+i:"",s=Lang.get("sig");window.location.href="/"+s+"/trading"+r}else{e.loading=!1,e.error=t.message,$(".message.em").transition("shake");try{window.recaptchaReset()}catch(l){}}},o=function(a){console.log("fail"),"login.password"===a.code&&t({method:"POST",url:"/api/notify/login_fail",data:{email:e.email}}),e.loading=!1,e.error=Lang.get("auth.login_error"),$(".message.em").transition("shake"),console.log(a)},i=function(t,a,n,o){console.log("error"),t?e.error=t.problem?t.problem:Lang.get("auth.server_error"):e.error=Lang.get("auth.server_error"),$(".message.em").transition("shake"),e.loading=!1};n.LoginAndAuth(e.email,e.password,a,i,o)}};e.$inject=["$scope","$http","$timeout","FPlatform"],angular.module("app").controller("LGN",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.dec=3600,e.guid="",e.count={hours:0,minutes:"00",seconds:"00"},e.hash="",e.status="wt",e.count_show=!0,e.copyAddress=function(){$(".eth-area").select(),document.execCommand("copy")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyAmount=function(){$(".eth-amount").select(),document.execCommand("copy")?n.displayToastAmaran("success","Amount copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){"su"!=e.status&&"ex"!=e.status&&t({method:"POST",url:"/api/ltc/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status,e.hash=t.hash}).error(function(e){})},setInterval(function(){e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){o.run("btc",e.dec,e.callback)},300),e.goToBlckchain=function(){var t="https://live.blockcypher.com/ltc/tx/"+e.hash,a=window.open(t,"_blank");a.focus()},e.getStatus(),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","ModalService","CountDown"],angular.module("app").controller("LTCinvoice",e)}(window),function(){"use strict";var e=function(e,t,a){e.openModalWindow=function(){var e='
';a.showConfirm(Lang.get("promo.enter"),e,function(){var e=$(".promo-input").val();""==e?n(!0,Lang.get("promo.invalid")):t({method:"POST",url:"/api/promo",data:{promo:e}}).success(function(e,t,o,i){if("false"==e["return"]){var r=e.message?e.message:Lang.get("auth.server_error");n(!0,r)}else a.CloseAll(),a.displayToastAmaran("success",Lang.get("promo.activated"))}).error(function(e){var t=e.message?e.message:Lang.get("auth.server_error");n(!0,t)})},function(){a.CloseAll()},{ok:Lang.get("cards.modal.btn_active"),cancel:Lang.get("cards.modal.btn_cancel"),cancel_class:"inverted red basic"})};var n=function(){var e=(!(arguments.length>0&&void 0!==arguments[0])||arguments[0],arguments.length>1&&void 0!==arguments[1]?arguments[1]:""),t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",$(".promo-error-msg"));t.length>0&&t.text(e)}};e.$inject=["$scope","$http","ModalService"],angular.module("app").controller("Menu",e)}(window),function(){"use strict";var e=function(e,t){e.md=t};e.$inject=["$scope","ModalService"],angular.module("app").controller("ModalController",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c,d,u){e.loading=!1,e.info=User,e.send=function(){c.CloseAll()},e.init=function(){setTimeout(function(){e.initEventsCapy()},200)},e.is_active=!1,e.initEventsCapy=function(){e.getCookie("gift"),$(".popup345-item").on("click",function(){e.is_active||($(this).addClass("active choice"),e.is_active=!0,setTimeout(function(){$(".popup345-item").each(function(e,t){$(t).hasClass("acvive")||setTimeout(function(){$(t).addClass("active")},100*(e+1))})},200))})},e.getCookie=function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},e.setCookie=function(e,t,a){var n=new Date;n.setDate(n.getDate()+a);var o=escape(t)+(null==a?"":"; expires="+n.toUTCString());document.cookie=e+"="+o+"; path=/",console.log(e+"="+o+"; path=/")},e.redeem=function(){e.setCookie("gift",$(".popup345-item.active.choice").data("value"),1),$(".ui.modal").modal("hide"),location.href="/"+Lang.sig+"/register"},e.init()};e.$inject=["$scope","$http","$timeout","$rootScope","$state","Cascade","Ayden","$mdToast","$mdDialog","ModalService","Store","Ranger"],angular.module("app").controller("EnterModal",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c,d,u){e.info=User,e.sign_wrapper=!1,e.sign_canvas=!1,e.sign_pad=!1,e.sign_save_load=!1,e.showAmaran=function(e,t){t=t?t:"#27ae60",$.amaran({theme:"colorful",delay:5e3,content:{bgcolor:t,color:"#fff",message:e},position:"bottom left",outEffect:"slideBottom"})},e.showMore=function(){$(".popup393__text-block .popup393__text").addClass("one"),$(".popup393__btn-more").hide()},e.clearSignature=function(){e.sign_pad.clear()},e.saveSignature=function(){if(e.sign_pad.isEmpty())return void e.showAmaran("Cant save empty sign!","#c0392b");e.sign_save_load=!0;var t=$('[name="_token"]').val();$.ajax({url:"/upload",type:"POST",headers:{"X-CSRF-TOKEN":t},data:{type:"sign",data:e.sign_pad.toDataURL(),doc_type:e.type_id},dataType:"JSON",success:function(t){e.info.sign="up",User.set("sign","up"),e.show_sign=!1,e.sign_save_load=!1,e.close_sign=!0,e.showAmaran("Upload successful"),c.CloseAll(),n.$broadcast("sign:upload:success",{})},error:function(t){return 401===t.status?void(location.href="/api/logout"):(e.showAmaran("Some errors try latter","#c0392b"),e.sign_save_load=!1,void e.$digest())}})},e.resizeCanvas=function(){if(0!==$("#signature-pad-new").length&&e.sign_canvas){var t=e.sign_canvas,a=Math.max(window.devicePixelRatio||1,1);t.width=t.offsetWidth*a,t.height=t.offsetHeight*a,t.getContext("2d").scale(a,a)}},e.initSignature=function(){var t=$("#signature-pad-new");e.sign_wrapper=t.length>0&&t[0],e.sign_canvas=t.find("canvas").length>0&&t.find("canvas")[0],e.sign_canvas&&(e.resizeCanvas(),e.sign_pad=new SignaturePad(e.sign_canvas),window.onresize=e.resizeCanvas)},e.initCompany=function(){$("[data-company]").html(Settings.get("company")),$("[data-company-address]").html(Settings.get("company-address"))},setTimeout(function(){e.initSignature()},300),setTimeout(function(){e.initCompany()},400),e.initCompany()};e.$inject=["$scope","$http","$timeout","$rootScope","$state","Cascade","Ayden","$mdToast","$mdDialog","ModalService","Store","Ranger"],angular.module("app").controller("Sign",e)}(window),function(){"use strict";var e=function(t,a,n,o,i){var r={en:[{url:"/swiss/english/marketwatch/market_news/Fundamental-Analysis/",name:"Fundamental Analysis"},{url:"/swiss/english/marketwatch/market_news/Technical-Analysis/",name:"Technical Analysis"},{url:"/swiss/english/marketwatch/market_news/Market-News-and-Research/",name:"Market News"},{url:"/swiss/english/marketwatch/market_news/Expert-Commentary/",name:"Expert Commentary"},{url:"/swiss/english/marketwatch/market_news/Trade-Pattern-Ideas/",name:"Trade pattern ideas"}],ru:[{url:"/swiss/russian/marketwatch/market_news/Technical-Analysis/",name:"Технический Анализ"}]},s={fun:{url:"/swiss/english/marketwatch/market_news/Fundamental-Analysis/rss/",name:"Fundamental Analysis"},pat:{url:"/swiss/english/marketwatch/market_news/Trade-Pattern-Ideas/rss/",name:"Trade pattern ideas"},"new":{url:"/swiss/english/marketwatch/market_news/Market-News-and-Research/rss/",name:"Market News"},tec:{url:"/swiss/english/marketwatch/market_news/Technical-Analysis/rss/",name:"Technical Analysis"}};a.travis="ru"==Lang.get("locale")?r.ru:r.en,a.travis_error="",a.current=o.current?o.current:{},a.rss=o.rss?o.rss:[],a.html=o.html?o.html:{html:"Loading please wait..."},a.currentIndex=0,a.weekend_enable=!1,a.checkIsWeekendEnable=function(){a.weekend_enable=a.isWeekend()},a.isWeekend=function(){var e=parseInt(Cc.get("DAY")),t=parseInt(Cc.get("HOUR"));return 5==e&&t>=21||0==e&&t<21||e>5},a.showWeekend=function(){i.semantic.closable=!0,i.showDynamic("/api/ag/tourney_weekend",{theme:"black tn-dn scrolling"})},a.showCopy=function(){i.semantic.closable=!0,i.showDynamic("/api/ag/ladder",{theme:"black ladder-dn"})},a.exone=function(e,t){o.current=e,a.loadRss(e,t)},a.appendModalWrapper=function(){0==$(".modal-placer-capy").length&&$("body").prepend('')},a.dropModalWrapper=function(){$(".modal-placer-capy").remove()},a.showExoneDialog=function(t,o){var i=o?o:"/api/ag/news_dialog";a.appendModalWrapper(),n.show({clickOutsideToClose:!0,controller:e,templateUrl:i,parent:$(".modal-placer-capy")[0],targetEvent:t,onRemoving:function(){a.dropModalWrapper()}})},a.showCalendar=function(e){$.magnificPopup.open({items:{src:"https://calendar.binarymate.com"},type:"iframe",iframe:{markup:'
'}})},a.cancel=function(){n.cancel()},a.extwo=function(e,t){a.currentIndex=t,a.html={html:"Loading please wait.."},a.loadHtml(e)},a.loadRss=function(e,n){var i=s[e];t({method:"POST",url:"/api/news/rss",data:i}).success(function(e,t,r,s){a.rss=e,o.rss=e,o.current=i,a.showExoneDialog(n)}).error(function(e){a.rss=[],a.travis_error="error load data.",a.showExoneDialog(n)})},a.loadHtml=function(e){t({method:"POST",url:"/api/news/html",data:e}).success(function(e,t,n,o){a.html=e}).error(function(e){a.html={html:"error load data."}})},a.LoadFirstNews=function(){a.rss[0]&&a.loadHtml(a.rss[0])},a.copyNeedOpenGet=function(){setTimeout(function(){Cc.get("INPUT_LOCAL.copy_open")&&User.get("userId")&&!o.current&&!o.copy_open_show&&(a.showCopy(),o.copy_open_show="yes")},401)},a.copyNeedOpenGet(),a.$on("news:calendar:show",a.showCalendar)};e.$inject=["$http","$scope","$mdDialog","Store","ModalService"],angular.module("app").controller("NewsController",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.initOnce=function(){$(".js-notif__link").on("click",function(){return $(this).closest(".notif").toggleClass("active"),!1}),$(document).mouseup(function(e){var t=$(".notif");t.is(e.target)||0!==t.has(e.target).length||t.removeClass("active")})},e.initOnce(),e.notifications={list:[],"new":0},e.notifications_list_src=[],e.is_disabled=!0,e.loadNotifications=function(){e.is_disabled=!0,t({method:"POST",url:"/api/us/notifications"}).success(function(t,a,n,o){var i=t.list;t.list=t.list.slice(0,3),e.notifications_list_src=i.slice(3,999),e.notifications=t,e.is_disabled=!1}).error(function(e){})},e.showItem=function(a,n){$(n.currentTarget).parent().find(".notif-descr").stop(!0,!0).slideToggle(),$(n.currentTarget).parent().find(".notif-text-read-more").toggleClass("hide"),0===a.read&&t({method:"POST",url:"/api/us/notifications_read",data:{id:a.id}}).success(function(t,n,o,i){a.read=1,e.notifications["new"]--}).error(function(e){})},e.readAll=function(){0!==e.notifications["new"]&&t({method:"POST",url:"/api/us/notifications_read_all"}).success(function(t,a,n,o){_.each(e.notifications.list,function(e){e.read=1}),e.notifications["new"]=0}).error(function(e){})},e.read_one=!1,e.showAll=function(){e.read_one||(_.each(e.notifications_list_src,function(t){e.notifications.list.push(t)}),e.read_one=!0)},e.updateNotification=function(){e.loadNotifications()},e.loadNotifications(),n.$on("notifications:update",e.updateNotification)};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("Notifications",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l,c,d,u){e.ready_SO=!1,e.customer=User,e.is_fix=!1,e.info=angular.copy(User),e.lang=angular.copy(Lang),e.zone=c,e.zone.setCurrenecy(User.get("currency")),e.zone.setMin(250),e.random={},e.CardIteratorTimeout=5e3,e.alt={uid:"-1",id:"-1",type:"alert",stop:!1},e.slide={value:e.zone.g("min"),procent:20,deposit:"bronze",bonus:!1,min:e.zone.g("min")},e.pm={qiwi:"",prefect:"",wm:"",yandex:"",moneta:""},e.accmin={USD:250,EUR:250,RUB_EUR:250,RUB_USD:250,RUB_CUR:250},e.locationChangeTrigger=function(){e.CheckIfFirst(),e.CheckCardCallback()},e.CheckCardCallback=function(){"listen"==r.params&&(d.initAlt(r.add,r.add2),d.ListenCallbackPFS()),"listen-orange"==r.params&&(d.initAlt(r.add,r.add2),d.ListenCallbackOrange()),"listen-union"==r.params&&(e.alt.uid=r.add,e.alt.id=r.add2,e.ListenCardCallback4()),"listen-concept"==r.params&&(d.initAlt(r.add,r.add2),d.ListenCallbackConcept())},e.ListenCardCallback4=function(){var a=e.alt.uid,o=(e.alt.id,e.alt.stop);t.post("/api/unionpay/listen",{transaction_id:a}).success(function(t,a,i,r){if(1==t["return"])if("00"==t.data.RespCode){alertify.set("notifier","position","bottom-left");var s=Lang.get("pfs.fast.founded");"alert"==e.alt.type?alertify.alert("Card",'

'+s+"

"):alertify.success(s)}else{var l=Lang.get("orange.pay_fail");"alert"==e.alt.type?(l='

'+l,l+="

",alertify.alert("Card",l)):alertify.error(l,0),e.whait=!1}else o||n(e.ListenCardCallback4,e.CardIteratorTimeout)})},e.CheckIfFirst=function(){if("trading"==r.pageName&&"first"==r.params&&parseInt(Cache.get("try"))<2){var a=parseInt(User.get("bonus_summ"))>0?"modal-register-demo":"modal-register";t.post("/api/modal/"+a).success(function(t,a,n,o){var i=Lang.get("modals.heads.after_reg"),r=l(t.content)(e);alertify.alert(i,r[0])})}},e.updateSlides=function(){e.slide.value>=e.zone.g("max")?(e.slide.deposit="gold",e.slide.procent=100):e.slide.value>=e.zone.g("20")?(e.slide.deposit="silver",e.slide.procent=50):(e.slide.deposit="bronze",e.slide.procent=20),$("#slider-bonus-2").val(e.slide.value),$("#slider-bonus").val(e.slide.value)},e.BlueSlide=function(){return!0},e.LoadSO=function(){e.ready_SO=!1,setTimeout(function(){e.ready_SO=!0,$("#plat").html(u.InjectPlatformIframe()),e.$digest()},3e3)},e.PayReport=function(a){function n(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZ",a=0;a<5;a++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}"PayPal"==a&&(e.random[a]=n());var o=e.random.hasOwnProperty(a)?e.random[a]:"notset";t.post("/api/pay/"+a,{email:e.info.login,amount:e.slide.value,currency:e.info.currency,random:o,bonus:e.slide.bonus}).success(function(e,t,a,n){}).error(function(e,t,a,n){})},i.$on("$locationChangeStart",function(e){}),i.$on("$routeChangeSuccess",function(t){e.locationChangeTrigger()}),e.CurrencyMinConverter=function(){var t=50,a=(parseInt(User.get("First.amount")),parseInt(User.get("bonus_summ")),250),n=parseInt(User.get("min_deposit"))>0&&parseInt(User.get("min_deposit"));t=n?0!=User.get("deposit")?a:n:a,e.accmin={USD:t,EUR:t,RUB_EUR:t*parseInt(Cache.get("convert.EUR")),RUB_USD:t*parseInt(Cache.get("convert.USD")),RUB_CUR:"RUB"==User.get("currency")?t*parseInt(Cache.get("convert.EUR")):t*parseInt(Cache.get("convert."+User.get("currency")))}},e.InitPmSlideMove=function(){var t=e.slide.value;if("RUB"==User.get("currency")){if(parseInt(t)=5},e.limit=e.checkLimit()};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PayAGNI",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.loading=!1,e.alt=$(".dp1 option:first").val(),e.amount=1.5,e.send=function(){if(o.isDemoAccount())return o.showDemoAlert();var a=parseFloat(e.amount);if(e.$parent.slider.is_fixed&&!_.isNaN(a)&&_.isNumber(a)&&a<=0)return void i.displayToastAmaran("error","Wrong amount!");if("other"===e.alt)return void $(".other_form").submit();e.loading=!0;var n=e.$parent.slider.is_bonus?1:0,r=e.$parent.slider.is_fixed?1:0,s=0===r?e.$parent.slider.value:e.amount,l=o.currency,c=e.alt.indexOf("erc20_")!==-1?"token":e.alt;t({method:"POST",url:"/api/"+c+"/pay",data:{amount:s,bonus:n,fixed:r,currency:l,is_erc20:e.alt,token:e.alt.replace("erc20_","").toUpperCase()}}).success(function(t,a,n,o){"true"===t["return"]?location.href="/api/"+c+"/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."),e.loading=!1})},setTimeout(function(){$(".altcoins_drop .ui.dropdown").css("width","30%")},300),window.testAlt=function(t){e.alt=t},window.testAlt1=function(){console.log(e.alt)},window.testToken=function(a){t({method:"POST",url:"/api/token/pay",data:{amount:1e3,bonus:0,fixed:0,currency:"USD",is_erc20:e.alt,token:a.toUpperCase()}}).success(function(t,a,n,o){"true"===t["return"]?location.href="/api/token/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."),e.loading=!1})}};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PayAltcoin",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.loading=!1,e.extend=!1,e.info=User,e.is_eur=!1,e.show=function(){var a=e.$parent.slider.is_bonus?1:0,n=e.$parent.slider.is_fixed?1:0,i=e.$parent.slider.value,r=o.currency;t({method:"POST",url:"/api/report/bank",data:{amount:i,bonus:a,fixed:n,currency:r,email:User.get("email")}}).success(function(e,t,a,n){}).error(function(e,t,a,n){}),e.is_eur="EUR"===User.get("currency"),e.extend=!0},e.send=function(){e.loading=!0;var a=e.$parent.slider.is_bonus?1:0,n=e.$parent.slider.is_fixed?1:0,r=e.$parent.slider.value,s=o.currency;t({method:"POST",url:"/api/ltc/pay",data:{amount:r,bonus:a,fixed:n,currency:s}}).success(function(t,a,n,o){"true"===t["return"]?location.href="/api/ltc/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."),e.loading=!1})}};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PayBank",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.loading=!1,e.is_vload=!1,e.amount=.5,e.send=function(){if(o.isDemoAccount())return o.showDemoAlert();if(e.is_vload)var a=0,n=0,r=e.amount,s="USD";else{var l=parseFloat(e.amount);if(e.$parent.slider.is_fixed&&!_.isNaN(l)&&_.isNumber(l)&&l<=0)return void i.displayToastAmaran("error","Wrong amount!");e.loading=!0;var a=e.$parent.slider.is_bonus?1:0,n=e.$parent.slider.is_fixed?1:0,r=0===n?e.$parent.slider.value:e.amount,s=0===n?o.currency:"BTC"}t({method:"POST",url:"/api/btc/pay",data:{amount:r,bonus:a,fixed:n,currency:s}}).success(function(t,a,n,o){"true"==t["return"]?location.href="/api/btc/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."),e.loading=!1})}};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PayBTC",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.loading=!1,e.send=function(){if(o.isDemoAccount())return o.showDemoAlert();e.loading=!0;var a=e.$parent.slider.is_bonus?1:0,n=e.$parent.slider.is_fixed?1:0,r=e.$parent.slider.value,s=o.currency;t({method:"POST",url:"/api/eth/pay",data:{amount:r,bonus:a,fixed:n,currency:s}}).success(function(t,a,n,o){"true"==t["return"]?location.href="/api/eth/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."), e.loading=!1})}};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PayETH",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.loading=!1,e.alt=$(".dp2 option:first").val(),e.amount=250,e.send=function(){var t=parseFloat(e.amount);return e.$parent.slider.is_fixed&&!_.isNaN(t)&&_.isNumber(t)&&t'+r+"")}e.server=t,e.button_loading=!1}).error(function(t,a,n,o){console.log("error"),e.button_loading=!1})))},e.$on("slideUiSlide",function(t,a){e.pay.paypal.amount=parseInt(a)}),e.$on("SliderSetValue",function(t,a){e.pay.paypal.amount=parseInt(a)})};e.$inject=["$scope","$http","$timeout","$rootScope","Cascade"],angular.module("app").controller("PayPayPal",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.loading=!1,e.send=function(){e.loading=!0;var a=e.$parent.slider.is_bonus?1:0,n=e.$parent.slider.is_fixed?1:0,r=e.$parent.slider.value,s=o.currency;t({method:"POST",url:"/api/shape/pay",data:{amount:r,bonus:a,fixed:n,currency:s}}).success(function(t,a,n,o){"true"===t["return"]?location.href="/api/shape/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."),e.loading=!1})}};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PaySHAPE",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.amount=angular.copy(e.$parent.slider.value),e.loading=!1,e.error=!1,e.am=o.minDeposit,e.send=function(){e.loading=!0;var a=e.$parent.slider.is_bonus?1:0,n=e.$parent.slider.is_fixed?1:0,o=e.amount;t({method:"POST",url:"/api/card/fast/skrill",data:{amount:o,fixed:n,bonus:a}}).success(function(t,a,n,o){"true"==t["return"]?location.href=t.redirect:e.error=t.message,e.loading=!1}).error(function(t,a,n,o){console.log("error"),e.loading=!1})},n.$on("slideUiEnd",function(t,a){e.amount=parseInt(a)})};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger"],angular.module("app").controller("PaySkrill",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.loading=!1,e.alt=$(".dp4 option:first").val(),e.amount=1.5,e.send=function(){if(o.isDemoAccount())return o.showDemoAlert();var a=parseFloat(e.amount);if(e.$parent.slider.is_fixed&&!_.isNaN(a)&&_.isNumber(a)&&a<=0)return void i.displayToastAmaran("error","Wrong amount!");if("other"===e.alt)return void $(".other_form").submit();e.loading=!0;var n=e.$parent.slider.is_bonus?1:0,r=e.$parent.slider.is_fixed?1:0,s=0===r?e.$parent.slider.value:e.amount,l=o.currency,c=e.alt.indexOf("erc20_")!==-1?"token":e.alt;t({method:"POST",url:"/api/"+c+"/pay",data:{amount:s,bonus:n,fixed:r,currency:l,is_erc20:e.alt,token:e.alt.replace("erc20_","").toUpperCase()}}).success(function(t,a,n,o){"true"===t["return"]?location.href="/api/"+c+"/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."),e.loading=!1})},setTimeout(function(){$(".altcoins_drop .ui.dropdown").css("width","30%")},300),window.testAlt=function(t){e.alt=t},window.testAlt1=function(){console.log(e.alt)},window.testToken=function(a){t({method:"POST",url:"/api/token/pay",data:{amount:1e3,bonus:0,fixed:0,currency:"USD",is_erc20:e.alt,token:a.toUpperCase()}}).success(function(t,a,n,o){"true"===t["return"]?location.href="/api/token/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."),e.loading=!1})}};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PayStable",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.loading=!1,e.alt="usdt",e.amount=1.5,e.send=function(){if(o.isDemoAccount())return o.showDemoAlert();var a=parseFloat(e.amount);if(e.$parent.slider.is_fixed&&!_.isNaN(a)&&_.isNumber(a)&&a<=0)return void i.displayToastAmaran("error","Wrong amount!");if("other"===e.alt)return void $(".other_form").submit();e.loading=!0;var n=e.$parent.slider.is_bonus?1:0,r=e.$parent.slider.is_fixed?1:0,s=0===r?e.$parent.slider.value:e.amount,l=0===r?o.currency:e.alt.toUpperCase();t({method:"POST",url:"/api/"+e.alt+"/pay",data:{amount:s,bonus:n,fixed:r,currency:l}}).success(function(t,a,n,o){"true"===t["return"]?location.href="/api/"+e.alt+"/invoice/"+t.guid:i.displayToastAmaran("error","some errors, try latter."),e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","some errors, try latter."),e.loading=!1})}};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PayTether",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r){e.loading=!1,e.is_card=!1,e.amount=.5,e.currency="",e.status="wt",e.dec=3600,e.address="",e.btc=0,e.count={hours:0,minutes:"00",seconds:"00"},e.guid="",e.is_redirected=!1,e.redirect=function(){e.is_redirected=!0},e.send=function(){e.loading=!0;var a=e.$parent.slider.is_bonus?1:0,n=e.$parent.slider.is_fixed?1:0,i=0===n?e.$parent.slider.value:e.amount,r=o.currency;t.post("/api/vload/prepare",{amount:i,fixed:n,bonus:a,currency:r}).success(function(e,t,a,n){location.href="/api/vload/card?amount="+i}).error(function(e,t,a,n){location.href="/api/vload/card?amount="+i})},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){"su"!=e.status&&"ex"!=e.status&&t({method:"POST",url:"/api/btc/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status,e.hash=t.hash}).error(function(e){})},setInterval(function(){e.is_card&&e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){r.run("btc",e.dec,e.callback)},300),e.goToBlckchain=function(){var t="https://blockchain.info/tx/"+e.hash,a=window.open(t,"_blank");a.focus()},setTimeout(function(){e.is_card&&e.getStatus()},400),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService","CountDown"],angular.module("app").controller("PayTrue",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.pin="",e.amount=250,e.lang=Lang,e.is_vload=!1,e.vhide=o.isNoVload(),e.onBlur=function(){parseInt(e.amount)<250&&(e.amount=250)},e.loading=!1,e.error=!1,e.send=function(){e.loading=!0;var a=0,n=0;try{a=e.$parent.slider.is_bonus?1:0,n=e.$parent.slider.is_fixed?1:0}catch(o){}var r=e.pin;t({method:"POST",url:"/api/card/fast/vload",data:{amount:r,fixed:n,bonus:a}}).success(function(t,a,n,o){if("true"===t["return"]){if(e.is_vload)return location.href="/api/vload/finish","";e.pin="";var r=e.getPath(t,"debug.result_description"),s=e.getPath(t,"debug.description");i.showAlert("Vload",'
'+r+'
'+s+"
",!1,{theme:"small black"})}else e.error=t.message;e.loading=!1}).error(function(t,a,n,o){i.displayToastAmaran("error","Some errors try again later."),e.loading=!1})},User.get("vload")&&setTimeout(function(){$('.pay-tabs [data-tab="vload"]').removeClass("hide")},300),e.getPath=function(e,t){return t.split(".").reduce(function(e,t){return"undefined"==typeof e||null===e?e:e[t]},e)}};e.$inject=["$scope","$http","$timeout","$rootScope","Ranger","ModalService"],angular.module("app").controller("PayVload",e)}(window),function(){"use strict";var e=function(e,t,a,n){e.user={email:User.get("email"),phone:User.get("phone")},e.info=User,e.geo=Cc.GEO,e.FileLoad=!0,e.server={},e.error="",e.loading=!1,e.token="",e.ps_loading=!1,e.cd_loading=!1,e.show_sign=!1,e.close_sign=!0,e.sign_wrapper=!1,e.sign_canvas=!1,e.sign_pad=!1,e.sign_save_load=!1,e.card_list=[],e.can_load_card=!1,e.card_list_loading=!1,e.doc_one_loading=!1,e.doc_two_loading=!1,e.doc_three_loading=!1,e.type_id=User.get("verification_type")?User.get("verification_type"):"passport",e.isUserDepositor=function(){var t=!1;return e.info.balances&&_.each(e.info.balances,function(e,a){e.depositsTotal>0&&(t=!0)}),t},e.userCanUpload=function(){return e.info.wd_methods&&e.isUserDepositor()||e.info.can_upload},e.can_upload_docs=e.userCanUpload(),e.can_upload_sign=e.info.sign||e.info.can_upload,e.send=function(){e.user.phone.length<7||(e.loading=!0,t({method:"POST",url:"/api/info",data:e.user}).success(function(t,a,n,o){e.server=t,"true"===t["return"]?(User.set("phone",e.user.phone),e.error=""):(e.error=t.error?t.error:t.message,e.loading=!1,$(".message.em").transition("shake")),e.loading=!1}).error(function(t,a,n,o){e.loading=!1,e.error=t.message?t.message:Lang.get("auth.server_error"),$(".message.em").transition("shake")}))},e.showAmaran=function(e,t){t=t?t:"#27ae60",$.amaran({theme:"colorful",delay:5e3,content:{bgcolor:t,color:"#fff",message:e},position:"bottom left",outEffect:"slideBottom"})},e.loadDocs=function(e){$("."+e).click()},$(".verification-new input[type=file]").on("change",function(){var t=new FormData,a=$(this).attr("name"),n=$(this).prop("files")[0],o=$('[name="_token"]').val();e.setLoadingAssets(a,!0),"passport"===a&&e.setLoadingAssets("ps",!0),t.append("type",a),t.append("doc_type",e.type_id),t.append("file",n),$.ajax({url:"/upload",type:"POST",contentType:!1,processData:!1,headers:{"X-CSRF-TOKEN":o},data:t,dataType:"JSON",success:function(t){"true"==t["return"]?(e.info[a]="up","passport"==a&&(e.info.passport="up"),"card"==a&&(e.info.card="up",e.loadCards()),e.showAmaran("Upload successful")):e.showAmaran("File type is not [ PNG, JPG, JPEG, PDF ]!","#c0392b"),e.ps_loading=!1,e.cd_loading=!1,e.setLoadingAssets(a,!1),e.$digest()},error:function(t){if(401==t.status)return void(location.href="/api/logout");var n="Some errors try latter";413===t.status&&(n="File Too Large, max file size 10Mb"),e.showAmaran(n,"#c0392b"),e.ps_loading=!1,e.cd_loading=!1,e.setLoadingAssets(a,!1)}})}),e.setLoadingAssets=function(t,a){e[t+"_loading"]=a,e.$digest()},e.downloadURI=function(e,t){var a=document.createElement("a");a.download=t,a.href=e,document.body.appendChild(a),a.click(),document.body.removeChild(a)},e.preview=function(t){e.downloadURI("/upload/"+t,t+".pdf")},e.previewExt=function(t,a){e.PopupSmallWindow("/upload/"+t+"/"+a)},e.PopupSmallWindow=function(t){var a=screen.width,n=screen.height,o=(a-400)/2,i=(n-300)/2;window.open(t,"infowindow"+e.GetRandom(),"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=300,left="+o+",top="+i)},e.GetRandom=function(){var e,t=new Date;return e=t.getSeconds(),e+=1},e.clearSignature=function(){e.sign_pad.clear()},e.saveSignature=function(){if(e.sign_pad.isEmpty())return void e.showAmaran("Cant save empty sign!","#c0392b");e.sign_save_load=!0;var t=$('[name="_token"]').val();$.ajax({url:"/upload",type:"POST",headers:{"X-CSRF-TOKEN":t},data:{type:"sign",data:e.sign_pad.toDataURL(),doc_type:e.type_id},dataType:"JSON",success:function(t){e.info.sign="up",e.show_sign=!1,e.sign_save_load=!1,e.close_sign=!0,e.showAmaran("Upload successful"),e.showChat(),e.$digest()},error:function(t){return 401==t.status?void(location.href="/api/logout"):(e.showAmaran("Some errors try latter","#c0392b"),e.sign_save_load=!1,void e.$digest())}})},e.resizeCanvas=function(){if(0!=$("#signature-pad").length&&e.sign_canvas){var t=e.sign_canvas,a=Math.max(window.devicePixelRatio||1,1);t.width=t.offsetWidth*a,t.height=t.offsetHeight*a,t.getContext("2d").scale(a,a)}},e.initSignature=function(){var t=$("#signature-pad");e.sign_wrapper=t.length>0&&t[0],e.sign_canvas=t.find("canvas").length>0&&t.find("canvas")[0],e.sign_canvas&&(e.resizeCanvas(),e.sign_pad=new SignaturePad(e.sign_canvas),window.onresize=e.resizeCanvas)},e.initMagnefic=function(){$(".image-popup").magnificPopup({type:"image",closeOnContentClick:!0,image:{verticalFit:!1}})},e.showSignBtn=function(){e.show_sign=!0,setTimeout(function(){e.resizeCanvas()},400),e.hideChat()},e.hideSignBtn=function(){e.show_sign=!1,e.showChat()},e.hideChat=function(){$('[ng-controller="Chat"]').hide()},e.showChat=function(){$('[ng-controller="Chat"]').show()},e.loadCards=function(){t({method:"POST",url:"/api/triggers/cards"}).success(function(t,a,n,o){e.card_list_loading=!0,e.card_list=t.card,e.can_load_card=t.can_load}).error(function(t,a,n,o){e.card_list_loading=!0})},e.chatVerificationStart=function(){n.$broadcast("chat:verification")},e.initSignature(),e.initMagnefic()};e.$inject=["$scope","$http","$timeout","$rootScope"],angular.module("app").controller("Info",e)}(window),function(){"use strict";var e=function(e,t,a,n){function o(){p=document.getElementById("tablet"),m=p.getContext("2d"),$("#clear_canvas").on("click",function(){m.clearRect(0,0,p.width,p.height)}),document.getElementById("save").addEventListener("click",function(){if(m){var t=p.toDataURL("image/png"),a=new XMLHttpRequest;a.onreadystatechange=function(){4==a.readyState&&200==a.status&&(a.responseText?($("#signature_box").hide(),$("#document").hide(),$("#link-to-pdf").text("Show document"),e.info.sign="1",e.$digest()):alert("Sorry, error."))},a.open("POST","/userdocs/dataurl",!0),a.setRequestHeader("Content-Type","application/upload"),a.send(t)}else alert("No signature!")}),setInterval(function(){i(),r()},1e3/60)}function i(){}function r(){u()}function s(e){var t=d(e);g.push({x:t.x,y:t.y}),f=!0}function l(e){var t=d(e);f&&g.push({x:t.x,y:t.y})}function c(e){f=!1,g=[],$("#save").show()}function d(e){var t,a;return t=(e.cleintX||e.pageX)-p.offsetLeft,a=(e.clientY||e.pageY)-p.offsetTop,{x:t,y:a}}function u(){m.lineCap="round",m.lineWidth=1,m.strokeStyle="#2F508C",m.lineJoin="round";for(var e=1;e=0){var a=t-moment().unix(),n=Math.floor(a%60),o=Math.floor(a/60%60),i=Math.floor(a/60/60);return{total:a,hours:i,minutes:o,seconds:n,now:moment().unix()}}return{total:0}},e.updateClock=function(t){t&&t.each(function(t,a){function n(){var t=e.timeParseFunction($(a).data("start"),$(a).data("end")),n=$(a).children()[0],i=$(a).children()[1],r=$(a).children()[2];t.total<=0?clearInterval(o):($(n).html(("0"+t.hours).slice(-2)),$(i).html(("0"+t.minutes).slice(-2)),$(r).html(("0"+t.seconds).slice(-2)))}var o=setInterval(n,1e3)})},e.redeem=function(a){e.loading=!1,e.promotions=[],t({method:"POST",url:"/api/us/promotions_activate",data:{name:a.name}}).success(function(t){e.loadPromotions()}).error(function(){i.displayToastAmaran("error","Load data error")})},e.loadPromotions()};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform","ModalService"],angular.module("app").controller("Promotions",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i){e.info=User,e.size="ALL",e.format="ALL",e.lang="en",e.history={start:"",end:"",type:"all"},e.rep={date_from:moment.unix(User.get("regTime")/1e3).format("DD.MM.YYYY"),date_to:""},e.loading=!0,e.data=[],e.landing="",e.link_name="",e.search="",e.balance=0,e.balance_send=0,e.materials=[],e.bannerSize=[],e.initBannerSize=function(){_.each(e.data.material,function(t,a){$.inArray(t.size,e.bannerSize)===-1&&e.bannerSize.push(t.size)})},e.filterMaterials=function(){var t={};t.locale=e.lang,"ALL"!==e.format&&(t.format=e.format),"ALL"!==e.size&&(t.size=e.size),e.materials=_.where(e.data.material,t)},e.loadInitData=function(){e.loading=!0;var a=angular.copy(e.rep);a.date_from=a.date_from.split(".").reverse().join("-"),a.date_to=a.date_to.split(".").reverse().join("-");var n=1e3*moment().hour(0).unix(),o=moment.now(),r=["MM/DD/YYYY","MM-DD-YYYY","YYYY-MM-DD"];moment(a.date_from,r).isValid()&&(n=1e3*moment.utc(a.date_from).unix()),moment(a.date_to,r).isValid()&&(o=1e3*moment.utc(a.date_to).unix()),t({method:"POST",url:"/api/us/refferal",data:{action:"show",DateFrom:n,DateTo:o}}).success(function(t){_.each(t.link,function(e,a){_.each(t.program,function(t,a){t.link_href===e.link_href&&(e.landing=t)})}),e.data=t,e.loading=!1,e.balance=t.balance,e.selectLandingPage(),e.filterMaterials(),e.initBannerSize()}).error(function(){i.displayToastAmaran("error","Load data error")})},e.transfer_loading=!1,e.transferBalance=function(){return isNaN(parseInt(e.balance_send))||parseInt(e.balance_send)<=0?(i.displayToastAmaran("error","Wrong amount"),!1):(e.transfer_loading=!0,void t({method:"POST",url:"/api/us/refferal",data:{action:"transfer",amount:e.balance_send,account:e.account}}).success(function(t){t["return"]?(i.displayToastAmaran("success","Successfully"),e.cancelModal(),e.balance=t.balance):i.displayToastAmaran("error",t.message),e.transfer_loading=!1}).error(function(){i.displayToastAmaran("error","Some error with save, please try later")}))},e.filterLink=function(){var a=angular.copy(e.rep);a.date_from=a.date_from.split(".").reverse().join("-"),a.date_to=a.date_to.split(".").reverse().join("-");var n=1e3*moment().hour(0).unix(),o=moment.now(),r=["MM/DD/YYYY","MM-DD-YYYY","YYYY-MM-DD"];moment(a.date_from,r).isValid()&&(n=1e3*moment.utc(a.date_from).unix()),moment(a.date_to,r).isValid()&&(o=1e3*moment.utc(a.date_to).unix()),t({method:"POST",url:"/api/us/refferal",data:{action:"filter",DateFrom:n,DateTo:o}}).success(function(t){e.data.link=t.link}).error(function(){i.displayToastAmaran("error","Load data error")})},e.selectLandingPage=function(t){e.landing=e.data.program[0].refferal},e.saveLink=function(){return""===e.link_name||""===e.landing?(i.displayToastAmaran("error","Please fill Link name and chose Landing page"),!1):(e.cancelModal(),void t({method:"POST",url:"/api/us/refferal",data:{action:"save",link_name:e.link_name,landing:e.landing}}).success(function(t){t["return"]?(i.displayToastAmaran("success","Link successfully created"),e.data.link.push(t.row),_.each(e.data.link,function(t,a){_.each(e.data.program,function(e,a){e.link_href===t.link_href&&(t.landing=e)})}),e.search=""):i.displayToastAmaran("error",t.message)}).error(function(){i.displayToastAmaran("error","Some error with save, please try later")}))},e.account=User.get("current_accountId"),e.is_loading=!1,e.server=!1,e.copyText=function(t){e.copyToClipboard(".copy-"+t)?i.displayToastAmaran("success","Link copied to clipboard"):i.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(e){var t="string"==typeof e?document.querySelector(e):e;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=a,t.readOnly=n}else t.select();return document.execCommand("copy")},e.ch=0,e.OnChengaDate=function(){console.log("ch"),e.ch++,0!==e.ch&&e.filterLink()},e.cancelModal=function(){$(".ui.modal").modal("hide")},e.showImage=function(e){$.magnificPopup.open({items:{src:e.extend},type:"image"})},e.changeLang=function(t){e.lang=t,e.filterMaterials()},e.showTransfer=function(){$(".modal.refferal_transfer").modal({closable:!1}).modal("show")},e.showCreateLink=function(){e.link_name="",$(".modal.create_affiliate").modal({closable:!1}).modal("show")},e.clearAllModals=function(){$(".ui.dimmer.modals .ui.modal").remove()},n.$on("flat-datepicker:date_change",e.OnChengaDate),e.loadInitData(),e.clearAllModals()};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform","ModalService"],angular.module("app").controller("Refferal",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l){var c=function(e,t){var a=Cc.GEO,n=_.findWhere(r,{iso:a});return n?n[e]:t};e.us_is="en"===Lang.get("sig"),e.us_agree=!1,e.agree=!1;var d={imprint:"not_init",hex:"not_init"};try{d=l.getImprint()}catch(u){}e.user={country:c("name",""),currency:"USD",login:"",password:"",firstName:"",lastName:"",phone:"",phone_prefix:c("prefix",""),promo:"",csrf:"",csprint:d.imprint,cshex:d.hex};var p=!!Cc&&Cc.get("INPUT");p&&($.each(e.user,function(t,a){p[t]&&(e.user[t]=p[t])}),p.promo&&(e.have_promo=!0)),e.countrys=r,e.server={};var m=function(){var t=_.without(r,r[0]),a=o("orderBy"),n=a(t,"name",!1);e.countrys=_.toArray(n)};e.ln=Lang,e.server={},e.loading=!1,e.GetCountryName=function(){var t=_.findWhere(e.countrys,{name:e.user.country});t&&(e.user.phone_prefix=t.prefix)},e.send=function(){if(e.form.$valid){var a=angular.copy(e.user);e.loading=!0,t({method:"POST",url:"/api/register",data:a}).success(function(t,a,n,o){if(e.server=t,"true"==t["return"]){var r=Lang.get("sig"),l=function(e,t,a,n){return"false"===e["return"]?void(parent.window.location.href="/"+r+"/login"):(i.GaEventRegister(),i.GtagEventRegister(),void setTimeout(function(){parent.window.location.href="/"+r+"/trading#/home"},400))},c=function(e){console.log(e),parent.window.location.href="/"+r+"/login"},d=function(e,t,a,n){console.log(e),parent.window.location.href="/"+r+"/login"};s.LoginAndAuth(e.user.login,e.user.password,l,d,c)}else $(".message.em").transition("shake"),e.loading=!1}).error(function(t,a,n,o){e.server={"return":"false",message:Lang.get("auth.server_error")},$(".message.em").transition("shake"),e.loading=!1})}else $(".ng-invalid").focus()},p.auto&&setTimeout(function(){e.send()},1e3),m()};e.$inject=["$scope","$http","$timeout","$rootScope","$filter","SEO","ISO","FPlatform","Imprint"],angular.module("app").controller("RGN",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.fieldToShake=!1,e.rep={date_from:moment().subtract(1,"days").format("DD.MM.YYYY"),date_to:"",status:"ALL",position:"call"},e.checkTimeImterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"date_from",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"date_to";if(""!=e.date_to){var n=moment(e[a].split(".").reverse().join("-")).format("X"),o=moment(e[t].split(".").reverse().join("-")).format("X");return!(o>n)}return!0},e.server=!1,e.is_loading=!1,e.is_loading_more=!1,e.ResultDefault={hits:[],total:0},e.result=angular.copy(e.ResultDefault),e.send=function(){var n=angular.copy(e.rep);if(e.result=angular.copy(e.ResultDefault),!e.checkTimeImterval(n))return e.fieldToShake=!0,a(function(){e.rep.date_to="",e.fieldToShake=!1},1e3),!1;var o=moment();o.subtract({hours:o.get("hours"),minutes:o.get("minutes"),seconds:0}),n.date_from=n.date_from.split(".").reverse().join("-"),n.date_to=n.date_to.split(".").reverse().join("-");var i=1e3*o.unix(),r=moment.now(),s="ALL"==e.rep.status?"":e.rep.status,l="",c=["MM/DD/YYYY","MM-DD-YYYY","YYYY-MM-DD"];moment(n.date_from,c).isValid()&&(i=1e3*moment.utc(n.date_from).unix()),moment(n.date_to,c).isValid()&&(r=1e3*moment.utc(n.date_to).unix());var d=function(t){e.result=angular.copy(e.ResultDefault),e.is_loading=!1};e.is_loading=!0,t({method:"POST",url:"/api/us/reports",data:{DateFrom:i,DateTo:r,limit:100,offset:0,Status:s,Sumbol:l}}).success(function(t){e.result=t,e.is_loading=!1}).error(d)},e.loadMore=function(){var a=angular.copy(e.rep),n=moment();n.subtract({hours:n.get("hours"),minutes:n.get("minutes"),seconds:0}),a.date_from=a.date_from.split(".").reverse().join("-"),a.date_to=a.date_to.split(".").reverse().join("-");var o=1e3*n.unix(),i=moment.now(),r="ALL"==e.rep.status?"":e.rep.status,s="",l=["MM/DD/YYYY","MM-DD-YYYY","YYYY-MM-DD"];moment(a.date_from,l).isValid()&&(o=1e3*moment.utc(a.date_from).unix()),moment(a.date_to,l).isValid()&&(i=1e3*moment.utc(a.date_to).unix());var c=function(t){e.result=angular.copy(e.ResultDefault),e.is_loading=!1};e.is_loading_more=!0,t({method:"POST",url:"/api/us/reports",data:{DateFrom:o,DateTo:i,skip:e.result.skip,Status:r,Sumbol:s}}).success(function(t){e.result.skip=t.skip,$.each(t.hits,function(t,a){e.result.hits.push(a)}),e.is_loading=!1,e.is_loading_more=!1}).error(c)},e.send(),e.OnChengaDate=function(){e.send()},n.$on("flat-datepicker:date_change",e.OnChengaDate)};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform"],angular.module("app").controller("Reports",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l){e.days="00",e.hours="00",e.minutes="00",e.seconds="00",e.limited=l.limited,e.offer=l.offer,s.is("risk_free")||s.run("risk_free",3600,function(){e.ignore()});var c=function(t,a){"risk_free"==a.name&&(e.days=a.days<10?"0"+a.days:a.days,e.hours=a.hours<10?"0"+a.hours:a.hours,e.minutes=a.minutes<10?"0"+a.minutes:a.minutes,e.seconds=a.seconds<10?"0"+a.seconds:a.seconds)},d=function(){s.die("limited"),Cc.set("TRY",2)};e.accept=function(){i.CloseAll(),setTimeout(function(){$("html, body").animate({scrollTop:$(".deposit-line").offset().top-200},"fast"),$(".deposit-line li:last-child").transition("tada","1000ms")},600);var e=$(".risk-promo").html();Cc.set("SESSION.promo",e),Cc.set("TRY",2),t.post("/api/triggers/promo",{promo:e}),r.go("show",{page:"funding"})},e.$on("modal:cancel",d),e.$on("coundown:tick",c)};e.$inject=["$scope","$http","$timeout","$rootScope","$filter","ModalService","$state","CountDown","Store"],angular.module("app").controller("RiskFree",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s,l){var c=i.current.name,d=i.params.page,u=["funding"];e.isNeedRedirectToValidate=function(){var e=User.get("tr_success"),t=User.get("tr_validate");return"yes"===t&&"yes"!==e},e.checkIsNeedValidate=function(t){return("home"===c||"show"===c&&$.inArray(d,u)!==-1)&&e.isNeedRedirectToValidate()&&i.go("swag",{page:"validate"}),!1},e.needIQpopup=function(){s.isActive()||"1"!==User.get("last_count")||User.get("iq_start")||s.showDynamic("/api/ag/modal_iq_one",{theme:"fund_iq",close:"bdw-close"},{onHide:function(){}})},a(function(){e.updateUser()},9e3),e.update_last="",l(function(){var t=moment().format("h:mm");t!==e.update_last&&(e.update_last=t,e.updateUser())},3e5),e.update_inc=0,e.needUpdateNotifications=function(){e.update_inc>1&&User.get("trigger_new")&&n.$broadcast("notifications:update",{})},e.updateUser=function(){t({method:"POST",url:"/api/fraud/user"}).success(function(t){window.User=new OSG(t),e.checkIsNeedValidate(),n.$broadcast("user:update:success",window.User),e.needIQpopup(),e.update_inc++,e.needUpdateNotifications()}).error(function(e){console.log("error update user!")})},e.Is5RiskFreePopup=function(){Cc.get("SESSION.register_event")&&1===Cc.get("TRY")&&s.showDynamic("/api/ag/modal_5_risk_free",{theme:"deposit_and_timer",close:"risk-close"})},e.initGlobalsTest=function(){window.testRisk=function(){s.showDynamic("/api/ag/modal_5_risk_free",{theme:"deposit_and_timer",close:"bdw-close"})},window.testSign=function(){s.showDynamic("/api/ag/modal_sign",{theme:"popup393",close:"bdw-close"},{closable:!1})},window.testIQ=function(){ s.showDynamic("/api/ag/modal_iq_one",{theme:"fund_iq",close:"bdw-close"},{onHide:function(){}})},window.testEnter=function(){s.showDynamic("/api/ag/modal_enter",{theme:"popup345",close:"bdw-close-white"},{onHide:function(){},closable:!1})}},e.Is5RiskFreePopup(),e.checkIsNeedValidate(),n.$on("user:update",e.updateUser),e.initGlobalsTest()};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform","$state","Signals","ModalService","$interval"],angular.module("app").controller("RootController",e)}(window),function(){"use strict";var e=function(e){function t(e,t){return Math.floor(Math.random()*(t-e))+e}var a=function(){for(var e="",t="QWERTYUIOPASDFGHJKLZXCVBNM",a=t.length-1,n=0;n<2;++n){var o=Math.floor(Math.random()*a);e+=t.substring(o,o+1)}return e},n=function(){function e(e){for(var t,a,n=e.length;n;t=Math.floor(Math.random()*n),a=e[--n],e[n]=e[t],e[t]=a);return e}for(var n=[],o=["ad","ae","af","ag","ai","al","am","an","ao","ar","as","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bm","bn","bo","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cs","cu","cv","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","in","io","iq","ir","is","it","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","st","sv","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","um","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"],i=30,r=parseInt(.7*i),s=0;s=r?"Loss":"Profit";n.push({name:a().split("").join("."),profit:t(10,1e3),flag:o[Math.floor(Math.random()*o.length)],derection:l})}return n.sort(function(){return Math.random()-.6}),e(n)};e.SandBox=n()};e.$inject=["$scope"],angular.module("app").controller("Runline",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r){e.user={oldPassword:"",password:"",repeatPassword:""},e.info=User,e.server={},e.loading=!1;var s=User.get("two_factor");e.factors={email:"email"===s,google:"google"===s,sms:"sms"===s},e.send=function(){if(e.secure.$valid){e.loading=!0;var a=function(t){e.server={"return":"true"},e.loading=!1,e.user={oldPassword:"",password:"",repeatPassword:""},$(".message.su").transition("shake")},n=function(t){var a="";a=t.message&&t.message?t.message:Lang.get("messages.500"),e.server={"return":"false",message:a},$(".message.em").transition("shake"),e.loading=!1};t({method:"POST",url:"/api/us/security",data:e.user}).success(a).error(n)}else $(".ng-invalid").focus()},e.change_name="",e.change_value="",e.showGoogle=function(){t({method:"POST",url:"/api/fraud/two_factors",data:{type:e.change_name,state:e.change_value}}).success(function(e){e.success?(r.qr=e.qr,r.type=""===e.qr?"reset":"factors",i.showFancy("/api/ag/modal_google")):(console.log(e),i.displayToastAmaran("error",e.message))}).error(function(e){console.log("error update user!",e)})},e.showEmail=function(){t({method:"POST",url:"/api/fraud/two_factors",data:{type:"email",state:!0}}).success(function(e){e.success?(r.type="email",i.showFancy("/api/ag/modal_email")):(console.log(e),i.displayToastAmaran("error",e.message))}).error(function(e){console.log("error update user!",e)})},e.changeFactors=function(t){e.change_name=t,e.change_value=e.factors[t],$.each(e.factors,function(a,n){t!==a&&(e.factors[a]=!1)}),e.factors[t]=!e.factors[t],"google"===t&&(e.change_value?e.showEmail():e.showGoogle())},e.successChange=function(){e.factors[e.change_name]=e.change_value,User.set("two_factor",e.change_name),i.displayToastAmaran("success","Saving Successfully")},n.$on("google:success:factors",e.successChange),n.$on("email:success:factors",e.showGoogle)};e.$inject=["$scope","$http","$timeout","$rootScope","FPlatform","ModalService","Store"],angular.module("app").controller("Security",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r){e.info=User,e.state="list",e.ticket_loading=!1,e.post_loading=!1,e.can_reply=!1,e.close_loadig=!1,e.form={allow:!1,departments:[],priority:[],error:""},e.list={allow:!1,child:!1,show:{},show_current:[],node:[],cache:[],filter:0,filter_node:[],error:"",error_node:"",node_prev:0},e.ticket={priority:"1",departments:"46",subject:"",content:""},e.post={content:""},e.node_order="activity",e.node_reverse=!0,e.fl=function(t){e.node_order==t&&(e.node_reverse=!e.node_reverse),e.node_order=t},e.applyFilter=function(t){e.list.filter=t,e.list.filter_node=0==t?e.list.node:_.where(e.list.node,{status_id:t}),e.list.filter_node=_.sortBy(e.list.filter_node,"status_id")},e.submitPost=function(){e.post.ticket=e.list.show.id,e.post_loading=!0,t({method:"POST",url:"/api/kayako/post",data:e.post}).success(function(t,a,o,i){e.post_loading=!1,e.post.content="",e.can_reply=!1,n.$broadcast("file-up:drop",{}),e.reOpenTicket(),e.showGet(e.list.show)}).error(function(t,a,n,o){e.post_loading=!1})},e.reOpenTicket=function(){if("Open"!=e.list.show.status){e.list.show.status="Open";var t=e.list.show.id,a=_.where(e.list.node,{id:t});a&&(a.status="Open",a.status_id=1),e.loadList()}},e.loadList=function(){e.list.allow=!1,e.list.node_prev=e.list.node.length,e.list.node=[],e.list.error="",t({method:"POST",url:"/api/kayako/list"}).success(function(t,a,n,o){e.list.allow=!0,e.list.node=t,e.applyFilter(e.list.filter)}).error(function(t,a,n,o){e.list.allow=!0,e.list.error="yes",console.log("error")})},e.DropAtt=function(){t({method:"POST",url:"/api/kayako/drop"})},e.ActionLoadingDeps=function(){e.form.allow=!1,e.form.error="",t({method:"POST",url:"/api/kayako/form"}).success(function(t,a,n,o){e.form=t,e.form.error="",e.form.allow=!0}).error(function(t,a,n,o){console.log("error"),e.form.allow=!0,e.form.error="yes"})},e.LoadDepsCllback=function(t,a){e.form=a,e.form.error="",e.form.allow=!0},e.init_try=0,e.ActionInit=function(){t({method:"POST",url:"/api/kayako/init"}).success(function(t,a,n,o){e.loadList()}).error(function(t,a,n,o){e.init_try<3&&(e.ActionInit(),e.init_try++)})},e.show=function(t){e.state=t},e.showGet=function(a){e.DropAtt(),e.show("get"),e.list.child=!1,e.list.show=a,e.list.show_current=[],e.list.error_node="";var n=_.findWhere(e.list.cache,{id:a.id});n?e.list.show_current=n:t({method:"POST",url:"/api/kayako/show",data:{id:a.id}}).success(function(t,a,n,o){e.list.show_current=t,e.list.child=!0}).error(function(t,a,n,o){console.log("error"),e.list.child=!0,e.list.error_node="yes"})},e.showDialog=function(t){e.DropAtt(),i.form=e.form,o.show({clickOutsideToClose:!1,controller:"SupportDialog",templateUrl:"/api/ag/support_dialog",focusOnOpen:!1,parent:angular.element(document.body),targetEvent:t})},e.closeTicketUser=function(){e.close_loadig=!0,t({method:"POST",url:"/api/kayako/close",data:{id:e.list.show.id}}).success(function(t,a,n,o){e.close_loadig=!1,e.loadList(),e.show("list")}).error(function(t,a,n,o){e.close_loadig=!1,alertify.set("notifier","position","bottom-left"),alertify.error("Server error try again later.")})},e.closeTicket=function(){r.showConfirm("Close Ticket","Are you sure?",function(){r.CloseAll(),e.closeTicketUser()})},e.LoadAttachment=function(t){var a=location.origin+"/api/kayako/att?id="+e.list.show.id+"&pid="+t;e.PopupSmallWindow(a)},e.PopupSmallWindow=function(t){var a=screen.width,n=screen.height,o=(a-400)/2,i=(n-300)/2;window.open(t,"infowindow"+e.GetRandom(),"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=300,left="+o+",top="+i)},e.GetRandom=function(){var e,t=new Date;return e=t.getSeconds(),e+=1},e.TicketSubmitCallback=function(){var t=e.list.node.length,a=e.list.node_prev;t==a&&e.loadList()},e.replyUpload=function(){e.post_loading=!0,e.$digest()},e.replyUploadSuccess=function(){e.post_loading=!1,e.$digest()},e.$on("kayako:update-list",e.loadList),e.$on("kayako:update-submit",e.TicketSubmitCallback),e.$on("file-up:prepare",e.replyUpload),e.$on("file-up:complete",e.replyUploadSuccess),e.$on("kayako:deps-load",e.LoadDepsCllback),e.ActionInit(),e.ActionLoadingDeps()};e.$inject=["$scope","$http","$timeout","$rootScope","$mdDialog","Store","ModalService"],angular.module("app").controller("Support",e);var t=function(e,t,a,n,o,i,r){e.form=r.form?r.form:{},e.ticket_loading=!1,e.ticket={priority:"1",departments:"46",subject:"",content:""},e.submitTicket=function(){e.ticket_loading=!0;var a=e.Scans_len;setTimeout(function(){e.ticket_loading=!1,e.ticket.content="",e.ticket.subject="",n.$broadcast("kayako:update-list",{}),e.cancel()},3500),t({method:"POST",url:"/api/kayako/ticket",data:e.ticket}).success(function(t,o,i,r){e.ticket_loading=!1,e.ticket.content="",e.ticket.subject="",0==a?n.$broadcast("kayako:update-submit",{}):n.$broadcast("kayako:update-list",{})}).error(function(t,a,o,i){e.ticket_loading=!1,n.$broadcast("kayako:update-submit",{})})},e.ActionLoadingDeps=function(){e.form.allow=!1,e.form.error="",t({method:"POST",url:"/api/kayako/form"}).success(function(t,a,o,i){e.form=t,e.form.error="",e.form.allow=!0,n.$broadcast("kayako:deps-load",t)}).error(function(t,a,n,o){console.log("error"),e.form.allow=!0,e.form.error="yes"})},e.cancel=function(){i.cancel()},e.submitUpload=function(){e.ticket_loading=!0,e.$digest()},e.submitUploadSuccess=function(){e.ticket_loading=!1,e.$digest()},e.$on("file-up:prepare",e.submitUpload),e.$on("file-up:complete",e.submitUploadSuccess)};t.$inject=["$scope","$http","$timeout","$rootScope","$compile","$mdDialog","Store"],angular.module("app").controller("SupportDialog",t)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.dec=3600,e.guid="",e.count={hours:0,minutes:"00",seconds:"00"},e.hash="",e.status="wt",e.count_show=!0,e.is_vload=!1,e.info=User,e.lang=Lang,e.copyAddress=function(){e.copyToClipboard(".eth-area")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyAmount=function(){e.copyToClipboard(".eth-amount")?n.displayToastAmaran("success","Amount copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyText=function(){e.copyToClipboard(".copy-text")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(e){var t="string"==typeof e?document.querySelector(e):e;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=a,t.readOnly=n}else t.select();return document.execCommand("copy")},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){"su"!==e.status&&"ex"!==e.status&&t({method:"POST",url:"/api/token/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status,e.hash=t.hash}).error(function(e){})},setInterval(function(){e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){o.run("btc",e.dec,e.callback)},300),e.goToBlckchain=function(){var t="https://etherscan.io/tx/"+e.hash,a=window.open(t,"_blank");a.focus()},e.getStatus(),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","ModalService","CountDown"],angular.module("app").controller("TOKENinvoice",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.tab="first",e.is_loading=!0,e.list={first:{date_start:"-",date_end:"-"},last:{date_start:"-",date_end:"-"}},e.current_list={},e.filter_app="",e.filter_input="",e.filter_count=20,e.render=[],e.data=[],e.data_filtred=[1,2],e.reward={weekly:["10000 $","5000 $","3000 $","2000 $","IPhone 10","1000 $ bonus","1000 $ bonus","1000 $ bonus","500 $ bonus","500 $ bonus","300 $ bonus","300 $ bonus","300 $ bonus","300 $ bonus","100 $ bonus","100 $ bonus","100 $ bonus","100 $ bonus","100 $ bonus","100 $ bonus"],weekend:["5000 $","3000 $","2000 $","1000 $ bonus","1000 $ bonus","500 $ bonus","500 $ bonus","250 $ bonus","250 $ bonus","250 $ bonus"]},e.applyFilter=function(){setTimeout(function(){$("html, body").animate({scrollTop:$(".c-leaderboard-wrap").offset().top},"slow")},300),e.filter_app=angular.copy(e.filter_input),e.data_filtred=o("filter")(e.render,e.filter_app)},e.getCurrentReward=function(t){return e.reward[e.current_list.type][t]?e.reward[e.current_list.type][t]:""},e.loadList=function(){t.post("/api/tourney/last").success(function(t){t[0]&&(e.list.first=t[0],e.current_list=e.list.first,e.loadData(e.list.first,!0)),t[1]&&(e.list.last=t[1],e.loadData(e.list.last)),e.is_loading=!1}).error(function(t){e.showAmaran("Some errors...")})},e.fetchReward=function(t){return $.each(t,function(a,n){t[a].reward=e.getCurrentReward(a)}),t},e.loadData=function(a,n){t.post("/api/tourney/get",{id:a.id}).success(function(t){e.data[a.id]=e.fetchReward(t),n&&(e.current_list=a,e.render=e.fetchReward(t),e.filter_count="weekly"==a.type?20:10)}).error(function(t){e.showAmaran("Some errors...")})},e.showTab=function(t){e.tab=t,e.current_list=e.list[t],e.filter_count="weekly"==e.current_list.type?20:10,e.current_list.id?e.render=e.fetchReward(e.data[e.current_list.id]):e.render=[]},e.showAmaran=function(e,t){var a=t?"27ae60":"e74c3c";$.amaran({theme:"colorful",delay:5e3,content:{bgcolor:"#"+a,color:"#fff",message:e},position:"bottom left",outEffect:"slideBottom"})},e.loadList()};e.$inject=["$scope","$http","$timeout","$rootScope","$filter"],angular.module("app").controller("TourneyInternal",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r){e.tab="first",e.is_loading=!0,e.current_list={date_start:"-",date_end:"-"},e.render=[],e.reward={weekly:["10000 $","5000 $","3000 $","2000 $","IPhone 10","1000 $ bonus","1000 $ bonus","1000 $ bonus","500 $ bonus","500 $ bonus","300 $ bonus","300 $ bonus","300 $ bonus","300 $ bonus","100 $ bonus","100 $ bonus","100 $ bonus","100 $ bonus","100 $ bonus","100 $ bonus"],weekend:["5000 $","3000 $","2000 $","1000 $ bonus","1000 $ bonus","500 $ bonus","500 $ bonus","250 $ bonus","250 $ bonus","250 $ bonus"]},e.alg=10,e.getCurrentReward=function(t){return e.reward[e.current_list.type][t]?e.reward[e.current_list.type][t]:""},e.loadWeekend=function(){t.post("/api/tourney/current").success(function(t){e.current_list=t.list,e.all="weekly"==t.list.type?10:20,e.render=e.fetchReward(t.data),e.is_loading=!1,setTimeout(function(){n.$broadcast("modal:resize",{})},300)}).error(function(t){e.showAmaran("Some errors...")})},e.fetchReward=function(t){return $.each(t,function(a,n){t[a].reward=e.getCurrentReward(a)}),t},e.showMore=function(){i.CloseAll(),r.go("show",{page:"contest"})},e.showAmaran=function(e,t){var a=t?"27ae60":"e74c3c";$.amaran({theme:"colorful",delay:5e3,content:{bgcolor:"#"+a,color:"#fff",message:e},position:"bottom left",outEffect:"slideBottom"})},e.loadWeekend(),console.log("init week")};e.$inject=["$scope","$http","$timeout","$rootScope","$filter","ModalService","$state"],angular.module("app").controller("TourneyWeekend",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r){e.platform_url=n.platform_URL+n.actions.trade,e.chat_url="",e.info=User,e.is_block_platform=!1,e.is_block_verify=!1,e.is_block_card=!1,e.weekend_enable=!1,e.chat={open:!0,pin:!1,max:!1},e.checkIsWeekendEnable=function(){e.weekend_enable=e.isWeekend()},e.isWeekend=function(){var e=parseInt(Cc.get("DAY")),t=parseInt(Cc.get("HOUR"));return 5==e&&t>=21||0==e&&t<21||e>5},e.showWeekend=function(){i.semantic.closable=!0,i.showDynamic("/api/ag/tourney_weekend")},e.showCopy=function(){i.semantic.closable=!0,i.showDynamic("/api/ag/copy",{theme:"black small"})},e.chat_update_last="",e.update_last="",e.amount_last="",e.TradingBalancePlatformUpdate=function(a,n){if(n.available){var i=n.available;User.amount=i;var r=moment().format("h:mm");if(r===e.update_last||e.amount_last===i)return;e.update_last=r,e.amount_last=i,o.$broadcast("user:update",{}),t({method:"POST",url:"/api/chat/balance",data:{balance:i,all:n}}).success(function(e){})}},e.TradingResizeInit=function(){},e.cc=0,e.clickBlock=function(){e.cc<10&&($(".ui.modal-dynamic.popup393").remove(),i.showDynamic("/api/ag/modal_sign",{theme:"popup393",close:"bdw-close"},{closable:!1}),e.cc++)},e.isUserDepositor=function(){var t=!1;return e.info.balances&&_.each(e.info.balances,function(e,a){e.depositsTotal>0&&(t=!0)}),!!User.get("last_count")||t},e.unlockTrading=function(){e.is_block_platform=!1,e.$digest(),User.set("sign","up")},e.isBlock=function(){return"Full"!==User.get("verification")&&(e.isUserDepositor()&&!User.get("sign"))},e.IsTradingBlock=function(){e.is_block_platform=e.isBlock(),e.is_block_platform&&($(".ui.modal-dynamic.popup393").remove(),i.showDynamic("/api/ag/modal_sign",{theme:"popup393",close:"bdw-close"},{closable:!1}))},e.InitDragChat=function(){},e.CloseChat=function(){e.chat.open=!1,$(".chat-platform-wrap,.ds-rework").addClass("closed"),$(".chat-platform-wrap .theme-wrap").css("width","100%")},e.OpenChat=function(){$(".chat-platform-wrap,.ds-rework").removeClass("closed"),$(".chat-platform-wrap .theme-wrap").css("width","")},e.MaxChat=function(){$(".min-max").addClass("max-active"),$(".chat-platform-wrap").removeClass("minimized").addClass("maximized"),$("#trading-chat").css("height",e.GetMaxChatHeight()+"px")},e.MinChat=function(){$(".min-max").removeClass("max-active"),$(".chat-platform-wrap").removeClass("maximized").addClass("minimized"),$("#trading-chat").css("height","582px")},e.ChangeMax=function(){e.chat.max?(e.chat.max=!e.chat.max,e.MinChat()):(e.chat.max=!e.chat.max,e.MaxChat())},e.GetMaxChatHeight=function(){var e=$(document).width()/100*73;return e/16*9},e.triggerLastHost=function(){var e=User.get("userId")+"host";localStorage.getItem(e)||setTimeout(function(){$(".video-chat-iframe").length>0&&(t.post("/api/triggers/last_host"),localStorage.setItem(e,"yes"))},4e3)},$(window).resize(function(){$(".maximized").length>0&&$("#trading-chat").css("height",e.GetMaxChatHeight()+"px")}),e.loadChat=function(){t({method:"POST",url:"/api/triggers/chat"}).success(function(t){e.chat_url=t.current,e.triggerLastHost()}).error(function(e){})},e.TradingResizeInit(),e.InitDragChat(),e.MinChat(),e.IsTradingBlock(),e.$on("sign:upload:success",e.unlockTrading),o.$on("platform:balance",e.TradingBalancePlatformUpdate)};e.$inject=["$scope","$http","$timeout","FPlatform","$rootScope","ModalService","ChatFactory"],angular.module("app").controller("Trading",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.dec=3600,e.guid="",e.count={hours:0,minutes:"00",seconds:"00"},e.hash="",e.status="wt",e.count_show=!0,e.is_vload=!1,e.info=User,e.lang=Lang,e.copyAddress=function(){e.copyToClipboard(".eth-area")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyAmount=function(){e.copyToClipboard(".eth-amount")?n.displayToastAmaran("success","Amount copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyText=function(){e.copyToClipboard(".copy-text")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(e){var t="string"==typeof e?document.querySelector(e):e;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=a,t.readOnly=n}else t.select();return document.execCommand("copy")},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){"su"!==e.status&&"ex"!==e.status&&t({method:"POST",url:"/api/usdt/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status,e.hash=t.hash}).error(function(e){})},setInterval(function(){e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){o.run("btc",e.dec,e.callback)},300),e.goToBlckchain=function(){var t="https://live.blockcypher.com/btc/tx/"+e.hash,a=window.open(t,"_blank");a.focus()},e.getStatus(),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","ModalService","CountDown"],angular.module("app").controller("USDTinvoice",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,i,r,s){e.body=Lang.get("validate_transcation.body").format(User.get("firstName"));var l=User.get("tr_attemps");e.btn_disabled=!1,e.is_max_try=!!l&&parseInt(l)>=5,e.tr_value="",e.is_error=!1,e.error="",e.parserVal=function(e,t,a){var n=e,o="[0-9]*";t>0?o+="[,.]?[0-9]{0,"+t+"}":t<0&&(o+="[,.]?[0-9]*"),o=a?"^-?"+o:"^"+o,o+="$";var i=new RegExp(o);if(i.test(n))return e.toString().replace(",",".");var r="[^0-9"+(0!=t?".":"")+(0!=t?",":"")+(a?"-":"")+"]",s=new RegExp(r,"g");if(n=n.replace(s,""),a){var l=n.length>0&&"-"==n.charAt(0),c=/-/g;n=n.replace(c,""),l&&(n="-"+n)}if(0!=t){var d=/[\,\.]/g,u=d.exec(n);if(null!=u){var p=n.substring(u.index+u[0].length);p=p.replace(d,""),p=t>0?p.substring(0,t):p,n=n.substring(0,u.index)+"."+p}}return n},e.sendData=function(){e.btn_disabled=!0;var a=e.parserVal(e.tr_value,2,!1);return""==a?(e.showAmaran('Please enter the correct amount without any extra characters, only numbers and signs "," or "."!'),void(e.btn_disabled=!1)):void t({method:"POST",url:"/api/fraud/attemps",data:{value:a}}).success(function(t){if("false"==t["return"]){if(t.attemps<=0)return e.is_max_try=!0,e.is_error=!1,void(e.btn_disabled=!1);e.tr_value="",e.is_error=!0,e.error=Lang.get("validate_transcation.error").format(t.attemps)}else User.set("tr_validate","no"),User.set("tr_success","yes"),s.go("home");e.btn_disabled=!1}).error(function(t,a,n,o){e.showAmaran("Some errors, please try latter."),e.btn_disabled=!1})},e.init=function(){User.get("tr_success")&&s.go("home")},e.showAmaran=function(e,t){var a=t?"27ae60":"e74c3c";$.amaran({theme:"colorful",delay:5e3,content:{bgcolor:"#"+a,color:"#fff",message:e},position:"bottom left",outEffect:"slideBottom"})},e.init()};e.$inject=["$scope","$http","$timeout","$rootScope","$mdDialog","Store","$location","$state"],angular.module("app").controller("ValidateTR",e)}(window),function(){"use strict";var e=function(e,t,a,n,o,r,s){var l=["USD","RUB","GBP","EUR"];e.info=User,e.CurrentProcessor="BTC",e.wallet="",e.amount=0,e.dig=$.inArray(User.get("currency"),l)==-1?5:2,e.disabled=!1,e.loading=!1,e.server={},e.error="",e.success="",e.have_btn="",e.can="Cancel",e.current_turnover=0,e.need_turnover=0,e.bitcoin_rates={},e.balance="loading...",e.tab_current="1",e.wdm="Credit Card",e.exchange={BTC:0,ETH:0,LTC:0,DASH:0,BCH:0,XRP:0,ZEC:0,XMR:0,ETC:0,NEO:0,USD:0,EUR:0},e.currency="",e.alt="BCH",e.show_form=!1,e.is_fixed=!1,e.pending=[],e.pending_loading=!1,e.current_amount=0,e.current_currency="USD",e.loadPendings=function(){t.post("/api/us/pending",{}).success(function(t){e.pending=t.hits,e.pending_loading=e.pending.length>0}).error(function(){})},e.rejectPending=function(a){r.showConfirm("Cancel","Do you want to cancel this withdrawal?",function(){t.post("/api/us/reject",{id:a.transactionId}).success(function(t){"true"===t["return"]?r.displayToastAmaran("success","Success"):r.displayToastAmaran("error",t.message),e.loadPendings()}).error(function(){r.displayToastAmaran("error","Sorry some errors")}),r.CloseAll()},!1,{ok:"Yes",cancel:"No",cancel_class:""})},e.isFixed=function(t){t&&(e.fixedTab("1"),e.getExchangeBalances()),e.is_fixed=t},e.fixedTab=function(t){$(".crypto-tabs .item.active").removeClass("active"),$('.crypto-tabs .item[data-tab="tab'+t+'"]').addClass("active");var a={1:"Bitcoin",2:"Litecoin",3:"Ethereum",4:"Dash",5:"Bitcoin_Cash",6:"Ripple",7:"Zcash",8:"Monero",9:"EUR",10:"USD"};e.CurrentProcessor=a[t],e.tab_current=t,"EUR"===a[t]||"USD"===a[t]?(e.currency=a[t],e.changeMethodExchange()):e.currency="none"},e.changeMethodExchange=function(){console.log(e.wdm),e.CurrentProcessor=e.wdm},e.agree=function(){e.show_form=!e.show_form,e.show_form?e.have_btn=e.can:e.haveBtn(),t.post("/api/triggers/wd",{method:e.CurrentProcessor})},e.agreeReset=function(){e.show_form=!1},e.haveBtn=function(){e.have_btn=Lang.get("wd.add").format(e.CurrentProcessor)},e.ap=function(t){e.CurrentProcessor=t,e.saveStateButton(t)},e.saveStateButton=function(t){var a=User.get("wd_methods")?User.get("wd_methods").split(","):[];$.inArray(t,a)==-1?(e.agreeReset(),e.haveBtn()):(e.have_btn=e.can,e.show_form=!0)},e.saveStateButton(e.CurrentProcessor),e.finalSend=function(a){t.post("/api/triggers/wdr",{method:e.CurrentProcessor}),t.post("/api/withdrawal/final",{is_bonus:a,is_fixed:e.is_fixed,proc:e.CurrentProcessor,amount:e.amount,currency:e.is_fixed?e.currency:e.current_currency,wallet:e.wallet}).success(function(t){if("true"==t["return"]){if(t.is_bonus){var a=t.message;e.error="",setTimeout(function(){n.$broadcast("user:update")},1e3),r.displayAlert("Bonus",''+a+"")}else e.success="true",e.error="";e.endLoad(),e.loadPendings()}else if(t.factor)switch(t.factor){case"google":e.showGoogle(t)}else e.success="",e.error=t.message?t.message:Lang.get("auth.server_error");e.loading=!1,n.$broadcast("notifications:update",t)}).error(function(){e.endLoad(!0),e.error=Lang.get("auth.server_error")})},e.showGoogle=function(e){s.qr="",s.type=e.type,r.showFancy("/api/ag/modal_google")},e.wdTrigger=function(){t.post("/api/triggers/wd",{method:e.CurrentProcessor}),User.set("wd_methods","yes")},e.send=function(){var a=parseFloat(e.amount);if(isNaN(a)||a<=0)return void r.displayToastNew("error","Incorrect amount!");var n=["Credit Card","Ok Pay","Perfect Money"];if(""===e.wallet&&$.inArray(e.CurrentProcessor,n)===-1)return void r.displayToastNew("error","Please enter Wallet address!");if(a>0){e.wdTrigger();angular.copy(e.amount),angular.copy(e.CurrentProcessor);if(e.loading=!0,e.is_fixed)return void e.finalSend();t.post("/api/withdrawal",{amount:a,method:e.CurrentProcessor,wallet:e.wallet,fixed:e.is_fixed,alt:e.alt,currency:e.current_currency}).success(function(t){if(t.need_auth&&"true"===t.need_auth)return void(location.href="/api/logout");if("true"===t["return"]){var a=["USD","RUB","EUR","GBP"],n=$.inArray(e.current_currency,a)!==-1?0:5;switch(e.current_turnover=t.current_turnover?t.current_turnover.toFixed(n):0,e.need_turnover=t.need_turnover?t.need_turnover.toFixed(n):0,t["case"]){case"one":e.showCaseOne();break;case"two":e.showCaseTwo();break;case"three":e.showCaseThree();break;case"four":e.showCaseFour();break;case"five":e.finalSend(!1);break;case"six":e.showCaseSix();break;case"verify":e.showNeedVerify()}e.loading=!1}else e.error=t.error,$(".message.em").transition("shake"),e.endLoad(!0)}).error(function(t){e.endLoad(),e.error=t.message?t.message:Lang.get("auth.server_error"),$(".message.em").transition("shake")})}},window.testWd=function(t){switch(t){case"one":e.showCaseOne();break;case"two":e.showCaseTwo();break;case"three":e.showCaseThree();break;case"four":e.showCaseFour();break;case"six":e.showCaseSix()}},e.endLoad=function(){e.amount=0,e.wallet="",e.loading=!1},$(".tabular .item").tab({alwaysRefresh:!0,cache:!1,onVisible:function(e){$(".tabular .item.active").removeClass("active"),$('.item[data-tab="'+e+'"]').addClass("active")}}),$(".popup-youtube").magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1}),setTimeout(function(){$(".ui.dropdown").dropdown()},100),e.closeModals=function(){e.amount=0,$(".ui.modal").modal("hide all")},e["final"]=function(t){var a=!!t;$(".ui.modal").modal("hide all"),e.finalSend(a)},e.showCaseOne=function(){$(".deposit_and_withdraw2").length>1&&$(".ui.dimmer .modal").remove(),$(".deposit_and_withdraw2:first").modal("show")},e.showCaseTwo=function(){$(".deposit_and_withdraw3").length>1&&$(".ui.dimmer .modal").remove(),$(".deposit_and_withdraw3:first").modal("show")},e.showCaseThree=function(){$(".deposit_and_withdraw4").length>1&&$(".ui.dimmer .modal").remove(),$(".deposit_and_withdraw4:first").modal("show")},e.showCaseFour=function(){$(".deposit_and_withdraw5").length>1&&$(".ui.dimmer .modal").remove(),$(".deposit_and_withdraw5:first").modal("show")},e.showCaseSix=function(){$(".deposit_and_withdraw6").length>1&&$(".ui.dimmer .modal").remove(),$(".deposit_and_withdraw6:first").modal("show")},e.showNeedVerify=function(){r.showDynamic("/api/ag/modal_need_verify",{theme:"popup393-confirmation",close:"bdw-close"},{onHide:function(){}})},e.getRates=function(){t({method:"POST",url:"/api/bitcoin/currency"}).success(function(t){e.bitcoin_rates=t}).error(function(e){})},e.getExchangeBalances=function(){t.post("/api/triggers/exchange").success(function(t){$.each(t,function(t,a){e.exchange[t]=a})}).error(function(e){})},e.ChangeFix=function(t){e.isFixed(t)},e.initDropDown=function(){setTimeout(function(){$(".amount-dropdown").dropdown(),e.initCurrentAccount()},200)},e.addAccount=function(){r.showDynamic("/api/ag/modal_add_account",{theme:"add_account mini"}),$(".amount-dropdown").dropdown("hide")},e.addAccountWallet=function(t,a){console.log(a);var o=User.balances;a.data.amount=0,a.data.netAmount=0,o.push(a.data),User.set("balances",o),e.info=User,setTimeout(function(){$(".amount-dropdown ."+a.data.accountId).click()},600),setTimeout(function(){n.$broadcast("user:update")},4e3)},e.current_balance={},e.initBalance=!1,e.initCurrentAccount=function(){var t=User.get("balances");if(t&&_.isArray(t)){if(1!==t.length||User.get("current_accountId")){var a=_.findWhere(t,{accountId:User.get("current_accountId")});e.current_balance=a?a:{amount:"Exchange account",type:"exchange"}}else e.current_balance=_.first(t),e.setAccountId(i.accountId);e.current_balance.accountId?($(".amount-dropdown ."+e.current_balance.accountId).click(),e.initBalance=!0):$(".amount-dropdown .exchange-item").click()}},e.changeCurrentAccount=function(t){if(e.ChangeFix(!1),e.current_balance.accountId!==t.accountId){var a=User.get("balances");e.current_balance=_.findWhere(a,{accountId:t.accountId}),e.setAccountId(t.accountId)}},e.changeAccountExchange=function(){e.isFixed(!0),e.setAccountIdExchange()},e.setAccountId=function(a){t({method:"POST",url:"/api/us/set_account",data:{account:a}}).success(function(t){User.set("current_accountId",a),e.currentBalanceAvaliable()}).error(function(e){r.displayToastAmaran("error","Some errors, please try again. Cant set account id.")})},e.setAccountIdExchange=function(){t({method:"POST",url:"/api/us/set_account_exchange",data:{}}).success(function(e){}).error(function(e){r.displayToastAmaran("error","Some errors, please try again. Cant set account id.")})},e.updateInfo=function(){e.info=angular.copy(User),setTimeout(function(){$(".amount-dropdown ."+e.current_balance.accountId).click()},300),e.currentBalanceAvaliable()},e.currentBalanceAvaliable=function(){var t=User.get("balances"),a=_.findWhere(t,{accountId:User.get("current_accountId")});a&&(e.current_amount=a.amount,e.current_currency=a.currency)},e.loadPendings(),e.initDropDown(),e.currentBalanceAvaliable(),e.factors=function(){e.finalSend(!1)},e.$on("user:update:success",e.updateInfo),e.$on("google:success:factors",e.factors),n.$broadcast("user:update",{})};e.$inject=["$scope","$http","$timeout","$rootScope","$mdDialog","ModalService","Store"],angular.module("app").controller("Withdrawal",e)}(window),function(){"use strict";var e=function(e,t,a,n,o){e.dec=3600,e.guid="",e.count={hours:0,minutes:"00",seconds:"00"},e.hash="",e.status="wt",e.count_show=!0,e.copyAddress=function(){e.copyToClipboard(".eth-area")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!"); },e.copyAmount=function(){e.copyToClipboard(".eth-amount")?n.displayToastAmaran("success","Amount copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyText=function(){e.copyToClipboard(".copy-text")?n.displayToastAmaran("success","Address copied to clipboard"):n.displayToastAmaran("error","Unable to copy!")},e.copyToClipboard=function(e){var t="string"==typeof e?document.querySelector(e):e;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=a,t.readOnly=n}else t.select();return document.execCommand("copy")},e.cd_tick=function(t,a){e.count=a},e.getStatus=function(){"su"!=e.status&&"ex"!=e.status&&t({method:"POST",url:"/api/zcash/check",data:{guid:$(".guid").html()}}).success(function(t){e.status=t.status,e.hash=t.hash}).error(function(e){})},setInterval(function(){e.getStatus()},6e4),e.callback=function(){e.getStatus()},setTimeout(function(){o.run("btc",e.dec,e.callback)},300),e.goToBlckchain=function(){var t="https://explorer.zcha.in/transactions/"+e.hash,a=window.open(t,"_blank");a.focus()},e.getStatus(),e.$on("coundown:tick",e.cd_tick)};e.$inject=["$scope","$http","$timeout","ModalService","CountDown"],angular.module("app").controller("ZCASHinvoice",e)}(window),!function(e,t,a){"undefined"!=typeof module&&module.exports?module.exports=a():"function"==typeof define&&define.amd?define(t,a):e[t]=a()}(this,"bowser",function(){function e(e){function t(t){var a=e.match(t);return a&&a.length>1&&a[1]||""}function a(t){var a=e.match(t);return a&&a.length>1&&a[2]||""}function n(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var o,i=t(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(e),l=!s&&/android/i.test(e),c=/nexus\s*[0-6]\s*/i.test(e),d=!c&&/nexus\s*[0-9]+/i.test(e),u=/CrOS/.test(e),p=/silk/i.test(e),m=/sailfish/i.test(e),f=/tizen/i.test(e),g=/(web|hpw)os/i.test(e),h=/windows phone/i.test(e),y=(/SamsungBrowser/i.test(e),!h&&/windows/i.test(e)),v=!i&&!p&&/macintosh/i.test(e),w=!l&&!m&&!f&&!g&&/linux/i.test(e),b=a(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=t(/version\/(\d+(\.\d+)?)/i),$=/tablet/i.test(e)&&!/tablet pc/i.test(e),T=!$&&/[^-]mobi/i.test(e),k=/xbox/i.test(e);/opera/i.test(e)?o={name:"Opera",opera:r,version:_||t(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?o={name:"Opera",opera:r,version:t(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(e)?o={name:"Samsung Internet for Android",samsungBrowser:r,version:_||t(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(e)?o={name:"Opera Coast",coast:r,version:_||t(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?o={name:"Yandex Browser",yandexbrowser:r,version:_||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?o={name:"UC Browser",ucbrowser:r,version:t(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?o={name:"Maxthon",maxthon:r,version:t(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?o={name:"Epiphany",epiphany:r,version:t(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?o={name:"Puffin",puffin:r,version:t(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?o={name:"Sleipnir",sleipnir:r,version:t(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?o={name:"K-Meleon",kMeleon:r,version:t(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:h?(o={name:"Windows Phone",osname:"Windows Phone",windowsphone:r},b?(o.msedge=r,o.version=b):(o.msie=r,o.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?o={name:"Internet Explorer",msie:r,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:u?o={name:"Chrome",osname:"Chrome OS",chromeos:r,chromeBook:r,chrome:r,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?o={name:"Microsoft Edge",msedge:r,version:b}:/vivaldi/i.test(e)?o={name:"Vivaldi",vivaldi:r,version:t(/vivaldi\/(\d+(\.\d+)?)/i)||_}:m?o={name:"Sailfish",osname:"Sailfish OS",sailfish:r,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?o={name:"SeaMonkey",seamonkey:r,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(o={name:"Firefox",firefox:r,version:t(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(o.firefoxos=r,o.osname="Firefox OS")):p?o={name:"Amazon Silk",silk:r,version:t(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?o={name:"PhantomJS",phantom:r,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?o={name:"SlimerJS",slimer:r,version:t(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?o={name:"BlackBerry",osname:"BlackBerry OS",blackberry:r,version:_||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(o={name:"WebOS",osname:"WebOS",webos:r,version:_||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(o.touchpad=r)):/bada/i.test(e)?o={name:"Bada",osname:"Bada",bada:r,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:f?o={name:"Tizen",osname:"Tizen",tizen:r,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(e)?o={name:"QupZilla",qupzilla:r,version:t(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(e)?o={name:"Chromium",chromium:r,version:t(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(e)?o={name:"Chrome",chrome:r,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?o={name:"Android",version:_}:/safari|applewebkit/i.test(e)?(o={name:"Safari",safari:r},_&&(o.version=_)):i?(o={name:"iphone"==i?"iPhone":"ipad"==i?"iPad":"iPod"},_&&(o.version=_)):o=/googlebot/i.test(e)?{name:"Googlebot",googlebot:r,version:t(/googlebot\/(\d+(\.\d+))/i)||_}:{name:t(/^(.*)\/(.*) /),version:a(/^(.*)\/(.*) /)},!o.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(o.name=o.name||"Blink",o.blink=r):(o.name=o.name||"Webkit",o.webkit=r),!o.version&&_&&(o.version=_)):!o.opera&&/gecko\//i.test(e)&&(o.name=o.name||"Gecko",o.gecko=r,o.version=o.version||t(/gecko\/(\d+(\.\d+)?)/i)),o.windowsphone||!l&&!o.silk?!o.windowsphone&&i?(o[i]=r,o.ios=r,o.osname="iOS"):v?(o.mac=r,o.osname="macOS"):k?(o.xbox=r,o.osname="Xbox"):y?(o.windows=r,o.osname="Windows"):w&&(o.linux=r,o.osname="Linux"):(o.android=r,o.osname="Android");var S="";o.windows?S=n(t(/Windows ((NT|XP)( \d\d?.\d)?)/i)):o.windowsphone?S=t(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):o.mac?(S=t(/Mac OS X (\d+([_\.\s]\d+)*)/i),S=S.replace(/[_\s]/g,".")):i?(S=t(/os (\d+([_\s]\d+)*) like mac os x/i),S=S.replace(/[_\s]/g,".")):l?S=t(/android[ \/-](\d+(\.\d+)*)/i):o.webos?S=t(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):o.blackberry?S=t(/rim\stablet\sos\s(\d+(\.\d+)*)/i):o.bada?S=t(/bada\/(\d+(\.\d+)*)/i):o.tizen&&(S=t(/tizen[\/\s](\d+(\.\d+)*)/i)),S&&(o.osversion=S);var C=!o.windows&&S.split(".")[0];return $||d||"ipad"==i||l&&(3==C||C>=4&&!T)||o.silk?o.tablet=r:(T||"iphone"==i||"ipod"==i||l||c||o.blackberry||o.webos||o.bada)&&(o.mobile=r),o.msedge||o.msie&&o.version>=10||o.yandexbrowser&&o.version>=15||o.vivaldi&&o.version>=1||o.chrome&&o.version>=20||o.samsungBrowser&&o.version>=4||o.firefox&&o.version>=20||o.safari&&o.version>=6||o.opera&&o.version>=10||o.ios&&o.osversion&&o.osversion.split(".")[0]>=6||o.blackberry&&o.version>=10.1||o.chromium&&o.version>=20?o.a=r:o.msie&&o.version<10||o.chrome&&o.version<20||o.firefox&&o.version<20||o.safari&&o.version<6||o.opera&&o.version<10||o.ios&&o.osversion&&o.osversion.split(".")[0]<6||o.chromium&&o.version<20?o.c=r:o.x=r,o}function t(e){return e.split(".").length}function a(e,t){var a,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(a=0;a=0;){if(o[0][n]>o[1][n])return 1;if(o[0][n]!==o[1][n])return-1;if(0===n)return 0}}function o(t,a,o){var i=s;"string"==typeof a&&(o=a,a=void 0),void 0===a&&(a=!1),o&&(i=e(o));var r=""+i.version;for(var l in t)if(t.hasOwnProperty(l)&&i[l]){if("string"!=typeof t[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(t));return n([r,t[l]])<0}return a}function i(e,t,a){return!o(e,t,a)}var r=!0,s=e("undefined"!=typeof navigator?navigator.userAgent||"":"");return s.test=function(e){for(var t=0;t0}(window),function(){"use strict";$(".ui.dropdown.dropdown-call").dropdown("setting","action","nothing")}(window),function(){"use strict";$(function(){Cc.get("INPUT.mobileapp")&&(console.log("mobile"),$(Cc.get("INPUT.mobileapp")).hide())})}(window),function(){"use strict";$(function(){$("body").on("click",".top-drop-in-css .menu .item a",function(){var e=$(this).parents(".menu");e.hide(),$(".pusher").click(),setTimeout(function(){e.removeAttr("style")},500)});var e=$("[data-local]");e.length>0&&$.each(e,function(e,t){var a=$(t).data("local"),n=Cc.get(a);n&&$(t).html(n)}),$("[data-company]").html(Settings.get("company")),$("[data-company-address]").html(Settings.get("company-address"));var t=$("[data-md]");t.length>0&&setTimeout(function(){var e=10,t=Cc.get("INPUT_LOCAL.affusr"),a=Cc.get("INPUT_LOCAL.affusr"),n=Settings.get("mdps.ALL"),o=Settings.get("mdps.USA"),i=Settings.get("mdps.GEO"),r=Settings.get("mdps.NO_EU_US"),s=Settings.get("mdps.OCODE"),l=Settings.get("mdps.COUNTRY");if(Settings.get("mdps.DEFAULT")&&(e=parseInt(Settings.get("mdps.DEFAULT"))),l&&$.each(l,function(t,a){_.each(a,function(a,n){Cc.get("GEO")===a&&(e=parseInt(t))})}),i)try{$.each(i,function(a,n){var o=Cc.get("GEO")===a;o&&$.each(n,function(a,n){$.inArray(t,n)!==-1&&(e=parseInt(a))})})}catch(c){console.log(c)}n&&$.each(n,function(a,n){$.inArray(t,n)!==-1&&(e=parseInt(a))}),r&&$.each(r,function(a,n){$.inArray(t,n)===-1||is_usa_ca||is_eu||(e=parseInt(a))}),o&&$.each(o,function(a,n){$.inArray(t,n)!==-1&&is_usa_ca&&(e=parseInt(a))}),s&&$.each(s,function(t,n){$.inArray(a,n)!==-1&&(e=parseInt(t))}),$("[data-md]").html(e)},300),$("[data-settings]").each(function(e,t){var a=$(t).data("settings");Settings[a]&&$(t).html(Settings[a])})})}(window),function(){"use strict";$(function(){try{$(".popup-youtube").magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1})}catch(e){console.log("popup-youtube error")}})}(window);