"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[207],{68621:function(t,e,n){n.d(e,{_:function(){return i}});var i=n(99525).A.action(function(t){var e=document.getElementById("EmbedSWF");if(e)return{layoverSize:{height:e.offsetHeight,width:e.offsetWidth}}})},61710:function(t,e,n){n.d(e,{G:function(){return s},q:function(){return a}});var i=n(40793);function s(t){var e;return null===(e=(0,i.c)(t))||void 0===e?void 0:e.albums}var a=function(t){var e;return null===(e=s(t))||void 0===e?void 0:e.albums}},30535:function(t,e,n){n.d(e,{d:function(){return r}});var i=n(99525),s={voyeur:"defaultVoyeurChatTokensPerMinute",group:"defaultGroupChatTokensPerMinute",private:"defaultPrivateChatTokensPerMinute",fullprivate:"defaultFullPrivateChatTokensPerMinute"},a={voyeur:"voyeurChatTokensPerMinute",group:"groupChatTokensPerMinute",private:"privateChatTokensPerMinute",fullprivate:"fullPrivateChatTokensPerMinute"},r=function(t){var e=i.A.getState().chatLocalData;return e[a[t]]!==e[s[t]]}},36980:function(t,e,n){n.d(e,{i:function(){return c}});var i,s=n(15215),a=n(96575),r=n(71038);!function(t){t.CHAT_HOLDER="chat_holder",t.CHAT_OFFLINE_HOLDER="chat_offline_holder",t.PROFILE="profile"}(i||(i={}));var o=n(23385),l=n(8556);function c(t,e){var n;if(void 0===t&&(t=!1),void 0===e&&(e=!1),(0,r.VW)(t)){var c=chat&&"offline"===chat.performerStatus,u=(0,l.isTokenInBodyClassList)("chat_visible");if(e||c){var d=(0,s.Cl)((0,s.Cl)({holder:i.CHAT_OFFLINE_HOLDER},u?{fallbackHolder:i.CHAT_HOLDER}:{}),{displayName:chat.performerData.displayName,username:chat.performerData.username});(0,a.R)("@@ChatEvent/openTip",d),null===(n=o.X.instance)||void 0===n||n.setUserInteractionLock(60)}else chat.tipPopup(t)}}},49100:function(t,e,n){var i=n(15215),s=n(96540),a=n(68621),r=function(t){function e(e){var n=t.call(this,e)||this;return n.rootComponentRef=function(t){return n.rootComponent=t},n.update=function(t){if(n.rootComponent){var e=Math.max(n.minHeight,t||0);e!==n.state.height&&n.setState({height:e})}},n.state={height:0},n}return(0,i.C6)(e,t),e.prototype.UNSAFE_componentWillReceiveProps=function(t){t.layoverSize&&t.layoverSize.height&&Math.max(this.minHeight,t.layoverSize.height||0)!==this.state.height&&this.update(t.layoverSize.height)},e.prototype.componentDidMount=function(){var t=document.getElementById("ResizablePane"),e=t?t.offsetHeight:this.rootComponent.offsetHeight;(0,a._)(),this.update(e)},e}(s.Component);e.A=r},85333:function(t,e,n){n.d(e,{A:function(){return At}});var i=n(74848),s=n(96540),a=n(16053),r=n(74213),o=n(15215),l=n(63861),c=n(2874),u=n(72983),d=function(t){function e(e){var n=t.call(this,e)||this;return n.refCanvas=function(t){return n.canvas=t},n.refText=function(t){return n.svgText=t},n.refRect=function(t){return n.svgRect=t},n.refSVG=function(t){return n.svgElement=t},n.state={},n}return(0,o.C6)(e,t),e.prototype.updateComponentData=function(t){if(this.canvas&&this.svgText&&this.svgRect&&this.svgElement){var e=t.sex,n=this.svgText.getBBox(),i=Math.floor(n.x)-15,s=Math.floor(n.y)-10,a=Math.floor(n.width)+30,r=Math.floor(n.height)+20,o="".concat(i," ").concat(s," ").concat(a," ").concat(r),u=this.svgRect;if(u.setAttribute("x","".concat(i)),u.setAttribute("y","".concat(s)),u.setAttribute("rx","7"),u.setAttribute("ry","7"),u.setAttribute("width","".concat(a)),u.setAttribute("height","".concat(r)),this.svgElement.setAttribute("viewBox",o),this.layoverPlayer)this.layoverPlayer.attachToCanvas(this.canvas);else{var d=(0,l.oF)("chat/layover/desktop/private");this.layoverPlayer=new c.r(this.canvas),this.layoverPlayer.load("female","".concat(d,"/female/anim.jpg"),309),this.layoverPlayer.load("trans","".concat(d,"/trans/anim.jpg"),376),this.layoverPlayer.load("gay","".concat(d,"/gay/anim.jpg"),333)}this.layoverPlayer.play(e)}},e.prototype.componentDidMount=function(){this.updateComponentData(this.props)},e.prototype.componentDidUpdate=function(){this.updateComponentData(this.props)},e.prototype.shouldComponentUpdate=function(t){return!(t.type===this.props.type&&t.sex===this.props.sex)},e.prototype.componentWillUnmount=function(){this.layoverPlayer&&(this.layoverPlayer.destroy(),this.layoverPlayer=null)},e.prototype.getStatusText=function(){var t=this.props.type,e="";switch(t){case"fullprivate":e=__("I'm in the Full Private Chat right now!");break;case"group":e=__("I'm in Group Chat right now!");break;case"private":e=__("I'm in Private Chat right now!")}return u.isRTLCulture&&(e=e.split("").reverse().join("")),e||t},e.prototype.render=function(){return(0,i.jsxs)("div",{className:"layover",children:[(0,i.jsx)("canvas",{ref:this.refCanvas,height:"96",width:"96"},"layover_canvas"),(0,i.jsx)("div",{className:"captionText",children:(0,i.jsxs)("svg",{ref:this.refSVG,id:"svg-layover",width:"80%",children:[(0,i.jsx)("rect",{ref:this.refRect,id:"svg-rect"}),(0,i.jsx)("text",{ref:this.refText,id:"svg-text",children:this.getStatusText()})]},"layover_svg")})]})},e.defaultProps={sex:"",type:""},e}(s.Component),_=d,h=n(40682),p=n(49100),m=n(83375),f=function(t){function e(e){var n=t.call(this,e)||this;n.statusMessages=null,n.minHeight=300,n.mediumHeight=350,n.maxHeight=445;var i=chat&&chat.performerData&&(0,l.ip)("@cdn_host")+chat.performerData.avatarUrl.replace("avatars","profile_s");return n.state={avatarUrl:i,height:n.minHeight},n}return(0,o.C6)(e,t),e.prototype.getStatusText=function(){var t,e=this.props.type,n={s1:'',s2:"",s3:'',s4:""};return this.statusMessages||(this.statusMessages=((t={}).fullprivate=__("%s1%Full private chat will start%s2% %s3%in a moment.%s4%",n),t.group=__("%s1%Group chat will start%s2% %s3%in a moment.%s4%",n),t.private=__("%s1%Private chat will start%s2% %s3%in a moment.%s4%",n),t.voyeur=__("%s1%Spy chat will start%s2% %s3%in a moment.%s4%",n),t)),this.statusMessages[e]||""},e.prototype.render=function(){var t=this.props,e=t.chatRoomTitle,n=t.sex,s=this.state,a=s.avatarUrl,r=s.height;return(0,i.jsx)("div",{ref:this.rootComponentRef,className:(0,m.jc)("layover_before_private","gay"===n&&"__male","trans"===n&&"__trans",rthis.mediumHeight&&"__small",r<=this.mediumHeight&&"__ex_small"),children:(0,i.jsx)("div",{className:"lbp_wrp bc_flex bc_flex_full_center",children:(0,i.jsxs)("div",{className:"lbp_content bc_flex bc_flex_column bc_flex_justify_s_around bc_flex_items_center",children:[(0,i.jsxs)("div",{className:"lbp_item __img",children:[(0,i.jsx)("div",{className:"lbp_spinner_wrp",children:(0,i.jsxs)("div",{className:"lbp_spinner",children:[(0,i.jsx)("div",{className:"lbp_s_item __right",children:(0,i.jsx)("div",{className:"lbp_bar"})}),(0,i.jsx)("div",{className:"lbp_s_item __left",children:(0,i.jsx)("div",{className:"lbp_bar"})})]})}),(0,i.jsx)("div",{className:"lbp_avatar",children:(0,i.jsx)("img",{className:"lbp_avatar_img",alt:e,src:a})})]}),(0,i.jsx)(h.E,{className:"lbp_item __title",html:__("Please, wait.%_before_private_%",{br:"
"}),tagName:"div"}),(0,i.jsx)(h.E,{className:"lbp_item __info",html:this.getStatusText(),tagName:"div"})]})})})},e=(0,o.Cg)([(0,a.Ng)(["chatRoomTitle","layoverSize"])],e)}(p.A),v=f,x=n(52804),b=n(85374),g=function(t){function e(e){var n=t.call(this,e)||this;n.statusMessages=null,n.changeIsLandscape=(0,b.s)(function(){n.setState({isLandscapeHor:Boolean((0,x.Yg)())})},100);var i=chat&&chat.performerData&&(0,l.ip)("@cdn_host")+chat.performerData.avatarUrl.replace("avatars","profile_s");return n.state={avatarUrl:i,isLandscapeHor:(0,x.Yg)()},n}return(0,o.C6)(e,t),e.prototype.componentDidMount=function(){window.addEventListener("orientationchange",this.changeIsLandscape)},e.prototype.componentWillUnmount=function(){window.removeEventListener("orientationchange",this.changeIsLandscape)},e.prototype.getStatusText=function(){var t,e=this.props.type,n={s1:'',s2:"",s3:'',s4:""};return this.statusMessages||(this.statusMessages=((t={}).fullprivate=__("%s1%Full private chat will start%s2% %s3%in a moment.%s4%",n),t.group=__("%s1%Group chat will start%s2% %s3%in a moment.%s4%",n),t.private=__("%s1%Private chat will start%s2% %s3%in a moment.%s4%",n),t.voyeur=__("%s1%Spy chat will start%s2% %s3%in a moment.%s4%",n),t)),this.statusMessages[e]||""},e.prototype.render=function(){var t=this.props,e=t.chatRoomTitle,n=t.sex,s=t.isTablet,a=this.state.avatarUrl;return(0,i.jsx)("div",{className:(0,m.jc)("layover_before_private","gay"===n&&"__male","trans"===n&&"__trans",this.state.isLandscapeHor&&"__hor",s&&"__tablet"),children:(0,i.jsx)("div",{className:"lbp_wrp bc_flex bc_flex_full_center",children:(0,i.jsxs)("div",{className:"lbp_content bc_flex bc_flex_column bc_flex_justify_s_around bc_flex_items_center",children:[(0,i.jsxs)("div",{className:"lbp_item __img",children:[(0,i.jsx)("div",{className:"lbp_spinner_wrp",children:(0,i.jsxs)("div",{className:"lbp_spinner",children:[(0,i.jsx)("div",{className:"lbp_s_item __right",children:(0,i.jsx)("div",{className:"lbp_bar"})}),(0,i.jsx)("div",{className:"lbp_s_item __left",children:(0,i.jsx)("div",{className:"lbp_bar"})})]})}),(0,i.jsx)("div",{className:"lbp_avatar",children:(0,i.jsx)("img",{className:"lbp_avatar_img",alt:e,src:a})})]}),(0,i.jsx)(h.E,{className:"lbp_item __title",html:__("Please, wait.%_before_private_%",{br:"
"}),tagName:"div"}),(0,i.jsx)(h.E,{className:"lbp_item __info bc_flex bc_flex_column bc_flex_items_center",html:this.getStatusText(),tagName:"div"})]})})})},e=(0,o.Cg)([(0,a.Ng)(["chatRoomTitle","isTablet"])],e)}(s.Component),y=g,w=n(26580),j=n(47885),C=n(61553),T=n(99996),P=n(23736),N=n(21129),S=function(t){function e(e){var n=t.call(this,e)||this;return n.src="",n.timer=0,n.playing=!1,n.offscreenCanvas=null,n.offscreenContext=null,n.canvasElement=null,n.canvasContext=null,n.canvasElementRef=function(t){n.canvasElement=t,t&&(t.id="blurredStream",t.style.width="100%",t.style.height="100%",t.width=n.offscreenCanvas.width,t.height=n.offscreenCanvas.height,n.canvasContext=t.getContext("2d"))},n.loadFrame=function(){n.resetTimer();var t=n,e=Date.now(),i=new Image;i.crossOrigin="anonymous",i.onload=function(){if(!t.playing)return;var n=Date.now()-e;t.drawFrame(this),t.requestNextFrame(100-n)},i.onerror=function(){if(!t.playing)return;var n=Date.now()-e;t.requestNextFrame(100-n)},i.src=n.src+"?"+e},n.state={},n}return(0,o.C6)(e,t),e.prototype.componentDidMount=function(){(0,P.S)()?(this.src=(0,T.N)({type:"blurred",streamName:(0,P.S)()}),this.playing||(this.playing=!0,this.loadFrame())):(this.playing=!1,this.resetTimer())},e.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=0)},e.prototype.requestNextFrame=function(t){this.resetTimer(),this.timer=window.setTimeout(this.loadFrame,Math.max(5,t))},e.prototype.drawFrame=function(t){var e=this.canvasElement;if(!(!e||!this.canvasContext||!t||t.width<1||t.height<1))try{t.width&&t.height&&(this.offscreenContext.drawImage(t,0,0,t.width,t.height,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),(0,N.xY)(this.offscreenCanvas,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height,4),this.canvasContext.drawImage(this.offscreenCanvas,0,0,this.offscreenCanvas.width,this.offscreenCanvas.height,0,0,e.width,e.height))}catch(t){0}},e.prototype.UNSAFE_componentWillMount=function(){this.offscreenCanvas=document.createElement("canvas"),this.offscreenContext=this.offscreenCanvas.getContext("2d"),this.offscreenCanvas.width=128,this.offscreenCanvas.height=128},e.prototype.componentWillUnmount=function(){this.offscreenContext=null,this.offscreenCanvas=null,this.playing=!1,this.resetTimer()},e.prototype.UNSAFE_componentWillReceiveProps=function(t){var e=(0,P.S)();e?(this.src=(0,T.N)({type:"blurred",streamName:e}),this.playing||(this.playing=!0,this.loadFrame())):(this.playing=!1,this.resetTimer())},e.prototype.render=function(){return(0,i.jsx)("canvas",{id:"blurred_stream",ref:this.canvasElementRef})},e.defaultProps={},e}(s.Component),F=S,E=n(17963),k=function(t){return"0".concat(t).slice(-2)},L=function(t){function e(e){var n=t.call(this,e)||this;n.timerHandler=function(){var t=(0,E.ID)(),e=n.state,i=e.hours,s=e.minutes,a=e.seconds;t.seconds===a&&t.minutes===s&&t.hours===i||n.setState(t)};var i=(0,E.ID)();return n.state=(0,o.Cl)({},i),n}return(0,o.C6)(e,t),e.prototype.componentDidMount=function(){clearInterval(this.timerInterval),this.timerInterval=window.setInterval(this.timerHandler,250)},e.prototype.componentWillUnmount=function(){clearInterval(this.timerInterval)},e.prototype.render=function(){var t=this.props,e=t.className,n=t.classDots,s=this.state,a=s.hours,r=s.minutes,o=s.seconds;return(0,i.jsxs)("span",{className:e,children:[k(a),(0,i.jsx)("span",{className:n,children:":"}),k(r),(0,i.jsx)("span",{className:n,children:":"}),k(o)]})},e.defaultProps={className:"llb_timer",classDots:"llb_t_point"},e}(s.Component),I=L,O=function(t){return{chatHost:t.chatHost,currency:t.currency,layoverSize:t.layoverSize,minPackageAmount:t.minPackageAmount,user:t.user}},R=function(t){function e(e){var n=t.call(this,e)||this;return n.minHeight=290,n.mediumHeight=330,n.maxHeight=500,n.state={height:n.minHeight},n}return(0,o.C6)(e,t),e.prototype.render=function(){var t=this.props,e=t.chatHost,n=t.currency,s=t.minPackageAmount,a=t.user,r=this.state.height;return(0,i.jsxs)("div",{ref:this.rootComponentRef,className:(0,m.jc)("layover layover_limit_blur",rthis.mediumHeight&&"__small",r<=this.mediumHeight&&"__ex_small"),children:[(0,i.jsx)(F,{host:e?e.username:null}),(0,i.jsxs)("div",{className:"llb_wrapper bc_flex bc_flex_full_center",children:[(0,i.jsxs)("div",{className:"llb_inner bc_flex bc_flex_column bc_flex_items_center",children:[(0,i.jsx)("div",{className:"llb_caption",children:(0,i.jsx)("p",{className:"llb_cp_text",children:trans("%s1%Wait for %icon% %timer%%s2% or continue watching right now!%_layover_limit_%",{icon:''),s1:'',s2:"
",timer:''},{LimitTimer:I,"object.SVGIcon":w.A})})}),(0,i.jsxs)("div",{className:"llb_content bc_inline_flex bc_flex_column bc_flex_justify_s_around",children:[(0,i.jsx)("p",{className:"llb_cn_text",children:trans("Buy Tokens, and you will get%br% %s1%%icon_arrow% unlimited access%s2% to online broadcasts! %icon_smile%",{br:"
",icon_arrow:''),icon_smile:''),s1:'',s2:""},{"object.SVGIcon":w.A})}),(0,i.jsxs)("div",{className:"llb_btn_wrp",children:[(0,i.jsx)("a",{className:"mls_btn mls_btn_dark_green llb_btn js-ab_limit_blur",href:"".concat((0,l.ip)("@member_buy_tokens"),"?ntpop=").concat(9e3),rel:(null==a?void 0:a.isPaymentsDisabled)?"webcamsupport":"buy_tokens",children:__("Buy Tokens")}),(0,i.jsx)("div",{className:"llb_price",children:__("Starting from %lowest_price%",{lowest_price:C.S.format(s,n)})})]})]})]}),(0,i.jsxs)("div",{className:"llb_window",children:[(0,i.jsx)("div",{className:"llb_w_item __title",children:__("Free limit exceeded.")}),(0,i.jsx)("div",{className:"llb_w_item __desc",children:trans("%sn%%a1%Buy Tokens%a2% %icon_coins%%sn_cl% and%br% %s1%continue %sn%watching %icon_flame%%sn_cl%%s2%%br% right now!",{a1:'',a2:"",br:"
",icon_coins:''),icon_flame:''),s1:'',s2:"",sn:'',sn_cl:""},{"object.SVGIcon":w.A})})]})]})]})},e.defaultProps={},e=(0,o.Cg)([(0,a.Ng)(O)],e)}(p.A),A=R,H=n(92276),G=n(51560),M=n(21492),V=n(46517),D=function(t){return(null==t?void 0:t.awayLayoutOptions)||{}},B=(0,s.forwardRef)(function(t,e){var n,a=t.isAway,r=(n=(0,V.d4)(D),(0,s.useMemo)(function(){return(null==n?void 0:n.avatarUrl)?{componentType:"image",src:n.avatarUrl}:null},[n]));return r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M.h,{className:"wsf_avatar",image:r}),(0,i.jsxs)("div",{ref:e,className:"wsf_title",children:[a&&__("I'm Away"),!a&&__("I'm Offline")]})]}):null}),U=n(84435),Y=n(50223),z=n(22078),W=n(75015),X=n(91196),q=n(53336),K=function(t){var e=t.data.imageUrls,n=t.isLoading,a=function(t){var e=t.data,n=e.albumId,i=e.photoId,a=t.onPreviewClick;return{actions:{handleClickPreviewImage:(0,s.useCallback)(function(){null==a||a({albumId:Number(n),photoId:Number(i)})},[n,a,i])}}}(t).actions.handleClickPreviewImage;return(0,i.jsxs)("div",{className:(0,m.jc)("ws_big_item",n&&"__loading"),onClick:a,children:[(0,i.jsx)("img",{className:"ws_big_item_image",alt:"",src:e.portrait_thumb}),n&&(0,i.jsx)("span",{className:"bc_spinner_wrp __show __sp_filling",children:(0,i.jsx)(w.A,{group:"bc_spinner",icon:"#svg_ui_circle_loader",url:q.Jp})})]})},$=n(61710),Z=n(63065),J=n(72832),Q=function(t){var e=t.awayPhotos,n=function(){var t=(0,V.d4)(function(t){var e;return null===(e=t.awayLayoutOptions)||void 0===e?void 0:e.username}),e=(0,V.d4)($.q),n=(0,J.Eg)((0,Z.o)(t)),i=n.actions.openPhotoGalleryByAlbum,a=n.states.loadingIdState;return{actions:{handleClickPreviewImage:(0,s.useCallback)(function(n){var s=n.albumId,a=n.photoId;if(t&&(null==e?void 0:e.length)){var r=e.find(function(t){return t.albumId===s});r&&i({albumList:e,albumToOpen:r,photoIdToOpen:a})}},[e,t,i])},states:{loadingIdState:a}}}(),a=n.actions.handleClickPreviewImage,r=n.states.loadingIdState;return e.length?(0,i.jsx)("div",{className:"ws_bi_gallery",children:e.map(function(t){var e,n;return(null===(e=t.imageUrls)||void 0===e?void 0:e.portrait_thumb)?(0,i.jsx)(K,{data:t,isLoading:r===Number(t.photoId),onPreviewClick:a},null===(n=t.imageUrls)||void 0===n?void 0:n.portrait_thumb):null})}):null},tt=n(19865),et=function(t){return void 0===t&&(t={}),t?Object.values(t):[]},nt=function(t){var e=t.addFitTextLinks,n=t.addFitTextTitles,a=t.awayPhotos,r=t.photosLink,o=function(t){var e=t.awayPhotos,n=(0,s.useState)(function(){return et(e)}),i=n[0],a=n[1],r=!!i.length;return(0,tt.w)(function(){a(et(e))},[e]),{awayPhotosArray:i,isExistImage:r}}({awayPhotos:a}),l=o.awayPhotosArray,c=o.isExistImage,u=Boolean(r);return c?(0,i.jsx)("div",{className:"ws_board_item __gallery",children:(0,i.jsxs)("div",{className:"ws_bi_inner",children:[(0,i.jsxs)("span",{className:"ws_bi_top",children:[(0,i.jsx)("span",{className:"ws_bi_icon_wrap",children:(0,i.jsx)(w.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_view"})}),(0,i.jsx)("span",{className:"ws_bi_text_wrap",children:(0,i.jsx)("span",{ref:n,className:"ws_bi_text",children:__("View photos and videos%_waiting_stub_%")})})]}),(0,i.jsx)(Q,{awayPhotos:l}),u&&(0,i.jsx)("a",{ref:e,className:"ws_b_link",href:r,rel:"noreferrer",target:"_blank",children:__("View All")})]})}):null},it=n(10346),st=(0,s.forwardRef)(function(t,e){var n=t.addFitTextTitles,s=t.isSubscribed,a=t.onClick,r=(0,V.d4)(it.WQ);return!(0,z.j)(r)||r.isBannedLogged2Profile||r.isBannedProfile2Logged?null:(0,i.jsxs)("button",{ref:e,className:"ws_board_item __button __notify",type:"button",onClick:a,children:[(0,i.jsx)("div",{className:"ws_bi_inner",children:(0,i.jsx)("span",{className:"ws_bi_icon_wrap",children:(0,i.jsx)(w.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_bell"})})}),(0,i.jsxs)("div",{className:(0,m.jc)("ws_bi_inner",s?"__visible":"__hide"),children:[(0,i.jsx)("span",{className:"ws_bi_icon_wrap",children:(0,i.jsx)(w.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_cancel_notify"})}),(0,i.jsx)("span",{className:"ws_bi_text_wrap",children:(0,i.jsx)("span",{ref:n,className:"ws_bi_text",children:__("Cancel online notifications%_waiting_stub_%")})})]}),(0,i.jsxs)("div",{className:(0,m.jc)("ws_bi_inner",s?"__hide":"__visible"),children:[(0,i.jsx)("span",{className:"ws_bi_icon_wrap",children:(0,i.jsx)(w.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_notify"})}),(0,i.jsx)("span",{className:"ws_bi_text_wrap",children:(0,i.jsx)("span",{ref:n,className:"ws_bi_text",children:__("Notify when online%_waiting_stub_%")})})]})]})}),at=(0,s.memo)(st),rt=function(t){var e=t.addFitTextLinks,n=t.addFitTextSingleText,s=t.avatarUrl,a=void 0===s?"":s,r=t.displayName,o=void 0===r?"":r,l=t.profileLink,c=void 0===l?"":l;return(0,i.jsx)("div",{className:"ws_b_profile",children:(0,i.jsxs)("div",{className:"ws_b_profile_inner",children:[(0,i.jsx)("span",{className:"ws_bp_avatar_wrap",children:(0,i.jsx)("img",{className:"ws_bp_avatar",alt:o,src:a})}),(0,i.jsxs)("div",{className:"ws_bp_content",children:[(0,i.jsx)("span",{ref:n,className:"ws_bp_name",children:(0,i.jsx)("span",{className:"ws_bp_name_inner",children:o})}),(0,i.jsx)("a",{ref:e,className:"ws_b_link",href:c,rel:"profile noreferrer",target:"_blank",children:__("View full profile")})]})]})})},ot=n(36980),lt=function(t){var e=t.addFitTextSingleText,n=t.addFitTextTitles,a=(0,s.useCallback)(function(){return(0,ot.i)(!1,!0)},[]);return(0,i.jsx)("button",{className:"ws_board_item __button __tip",type:"button",onClick:a,children:(0,i.jsxs)("div",{className:"ws_bi_inner",children:[(0,i.jsx)("span",{className:"ws_bi_icon_wrap",children:(0,i.jsx)(w.A,{group:"ws_bi_icon",icon:"#svg_lv_icon_tip"})}),(0,i.jsxs)("span",{className:"ws_bi_text_wrap",children:[(0,i.jsx)("span",{ref:n,className:"ws_bi_text",children:__("Send offline tip%_waiting_stub_%")}),(0,i.jsx)("span",{ref:e,className:"ws_bi_text_small",children:__("You can add a message.")})]})]})})},ct=n(80554),ut=n(63934),dt=function(t){var e=t.options,n=t.parent,i=(0,s.useRef)([]),a=(0,s.useRef)(null==n?void 0:n.current),r=(0,s.useCallback)(function(t){i.current.push(t)},[]),o=(0,s.useCallback)(function(t){a.current=t},[]);return{addFitTextElement:r,resetFitTextElement:(0,s.useCallback)(function(){i.current=i.current.filter(function(t){return!!(null==t?void 0:t.parentElement)})},[]),doFitText:(0,s.useCallback)(function(){i.current.length&&(i.current=i.current.filter(function(t){return!!(null==t?void 0:t.parentElement)}),(0,Y.$)(i.current,a.current,e))},[e]),setParentFitTextElement:o}},_t=n(20987),ht=function(t){var e=t.awayLayoutOptions,n=(0,s.useState)(!0),i=n[0],a=n[1],r=(0,s.useState)(!1),l=r[0],c=r[1],u=(0,s.useRef)(!0),d=(0,s.useRef)(!1),_=(0,s.useRef)(!1),h=(e||{}).username,p=!e||void 0!==e.username;return(0,s.useEffect)(function(){!d.current&&h&&c(!0)},[h]),(0,tt.w)(function(){_.current=!0,a(!0),d.current=!1},[h]),(0,ut.l)(function(){u.current=!1,d.current=!1}),(0,s.useEffect)(function(){var t;if(l&&!d.current){_.current=!1;Promise.all((0,o.fX)([(0,_t.A)(null==e?void 0:e.avatarUrl)],Object.values(null!==(t=null==e?void 0:e.awayPhotos)&&void 0!==t?t:{}).map(function(t){var e;return(0,_t.A)(null===(e=null==t?void 0:t.imageUrls)||void 0===e?void 0:e.portrait_thumb)}),!0)).then(function(){_.current||setTimeout(function(){u.current&&(d.current=!0,a(!1))},16)})}},[null==e?void 0:e.avatarUrl,null==e?void 0:e.awayPhotos,l]),{isLoading:!p||!d.current||i}},pt=function(t){var e=ht(t).isLoading,n=function(t){var e=t.awayLayoutOptions,n=t.layover,i=(0,s.useState)(!1),a=i[0],r=i[1],o=(0,s.useRef)(null),l=(0,s.useRef)(),c=(0,s.useRef)(),u=(e||{}).username,d=dt({parent:o}),_=d.addFitTextElement,h=d.resetFitTextElement,p=d.doFitText,m=dt({options:{syncSize:!0},parent:o}),f=m.addFitTextElement,v=m.resetFitTextElement,x=m.doFitText,b=dt({options:{syncSize:!0},parent:o}),g=b.addFitTextElement,y=b.resetFitTextElement,w=b.doFitText,j=(0,s.useCallback)(function(){clearTimeout(l.current),clearTimeout(c.current),c.current=setTimeout(function(){p(),x(),w()},50),l.current=setTimeout(function(){r(!0)},100)},[p,w,x]);return(0,tt.w)(function(){r(!1),clearTimeout(l.current),clearTimeout(c.current),l.current=setTimeout(j,16)},[u]),(0,s.useEffect)(function(){var t=document.getElementById("ResizablePane");return null==t||t.addEventListener(ct.R.RESIZE_PLAYER,j),function(){null==t||t.removeEventListener(ct.R.RESIZE_PLAYER,j)}},[j]),(0,s.useEffect)(function(){(null==n?void 0:n.type)&&j()},[j,null==n?void 0:n.type]),(0,s.useEffect)(function(){j()},[j]),(0,ut.l)(function(){clearTimeout(l.current),clearTimeout(c.current)}),{parentRef:o,addFitTextLinks:g,addFitTextSingleText:_,addFitTextTitles:f,resetLinksText:y,resetSingleText:h,resetTitlesText:v,isFitText:a}}(t),i=n.parentRef,a=n.addFitTextLinks,r=n.addFitTextSingleText,o=n.addFitTextTitles,l=n.isFitText;return{parentRef:i,addFitTextLinks:a,addFitTextSingleText:r,addFitTextTitles:o,isLoading:e||!l}},mt=function(){var t=(0,V.d4)(function(t){var e,n,i,s,a,r;return{awayLayoutOptions:t.awayLayoutOptions,layover:t.layover,isSubscribedForEmail:null===(i=null===(n=null===(e=t.miniProfile)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.subscribeOnlineNotificationButton)||void 0===i?void 0:i.isSubscribedForEmail,isSubscribedForPush:null===(r=null===(a=null===(s=t.miniProfile)||void 0===s?void 0:s.actions)||void 0===a?void 0:a.subscribeOnlineNotificationButton)||void 0===r?void 0:r.isSubscribedForPush}}),e=t.awayLayoutOptions,n=t.layover,s=t.isSubscribedForEmail,a=t.isSubscribedForPush,r=pt({awayLayoutOptions:e,layover:n}),o=r.parentRef,l=r.addFitTextLinks,c=r.addFitTextSingleText,u=r.addFitTextTitles,d=r.isLoading,_=(0,X.t)({modelUsername:e.username,isSubscribedForEmail:s,isSubscribedForPush:a}),h=_.actions,p=h.handleCloseNotificationPopup,f=h.handleGetNotificationWithModernWrapper,v=_.states,x=v.contentPopoverNotificationData,b=v.isAnyNotificationSubscriptionActive;return(0,z.j)(e)?(0,i.jsxs)("div",{ref:o,className:(0,m.jc)("ws_board",d&&"__loading",!d&&"__loaded",(null==e?void 0:e.awayPhotos)&&Boolean(Object.values(e.awayPhotos).length)&&"__with_gallery"),children:[(0,i.jsxs)("div",{className:"wsb_info",children:[(0,i.jsx)(rt,{addFitTextLinks:l,addFitTextSingleText:c,avatarUrl:null==e?void 0:e.avatarUrl,displayName:null==e?void 0:e.displayName,profileLink:null==e?void 0:e.profileLink}),(0,i.jsx)(lt,{addFitTextSingleText:c,addFitTextTitles:u}),(0,i.jsx)(W.y,{className:"popover_online_notification __stream_container",content:function(t){var e=t.setPopoverClose;return(0,i.jsx)(X.o,{data:x,onCloseClick:e})},trigger:(0,i.jsx)(at,{addFitTextTitles:u,isSubscribed:b}),onBeforeOpen:f,onClose:p})]}),(0,i.jsx)(nt,{addFitTextLinks:l,addFitTextTitles:u,awayPhotos:e.awayPhotos,photosLink:e.photosLink})]}):null},ft=(0,s.forwardRef)(function(t,e){var n=t.isAway;return(0,i.jsxs)("div",{ref:e,className:"ws_title",children:[n&&(0,i.jsx)(h.E,{className:"ws_title_inner",html:__("I'm %s1%Away%s2%",{s1:'',s2:""}),tagName:"p"}),!n&&(0,i.jsx)(h.E,{className:"ws_title_inner",html:__("I'm %s1%Offline%s_end%",{s1:'',s_end:""}),tagName:"p"})]})}),vt=function(t){var e=t.children,n=t.isFloatingPlayer,a=t.isWide,r=function(t){var e=(0,s.useRef)(),n=(0,s.useState)(function(){return o()}),i=n[0],a=n[1];function r(){var t=e.current;return t||(t=document.getElementById("ResizablePane"),e.current=t),t}function o(){var t=r();return!!t&&t.offsetHeight<544}return(0,tt.w)(function(){var e=r();if(!t&&e){var n=function(){a(o())};return n(),e.addEventListener(ct.R.RESIZE_PLAYER,n),function(){e.removeEventListener(ct.R.RESIZE_PLAYER,n)}}},[t]),{isHorizontalVersion:i}}(n).isHorizontalVersion;return(0,i.jsx)("div",{className:(0,m.jc)("waiting_stub",n&&"__floating",!n&&r&&"__horizontal",!n&&a&&"__wide"),children:e})};function xt(t){return{awayLayoutOptions:t.awayLayoutOptions,layover:t.layover,layoverSize:t.layoverSize,streamOptions:t.streamOptions,isFloatingPlayer:t.isFloatingPlayer}}var bt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMS=Boolean(U.BrowserDetect.detectIE())||Boolean(U.BrowserDetect.isEdge_Origin()),e.floatingFixCounter=0,e.resize=function(){e.textEl&&(e.isMS?(e.textEl.style.height="100%",(0,Y.$)(e.textEl),e.textEl.style.height=""):e.textEl.classList.contains("__hidden")?setTimeout(function(){e.textEl&&e._isMounted&&((0,Y.$)(e.textEl),e.textEl.classList.remove("__hidden"))},1):(0,Y.$)(e.textEl))},e.fullscreenChangeHandler=function(){e.resize()},e.textRef=function(t){e.textEl=t},e}return(0,o.C6)(e,t),e.prototype.hideLayoverTextElement=function(){this.textEl&&this.textEl.classList.add("__hidden")},e.prototype.componentDidMount=function(){this._isMounted=!0,this.hideLayoverTextElement(),this.resize(),document.addEventListener("fullscreenchange",this.fullscreenChangeHandler)},e.prototype.componentWillUnmount=function(){this._isMounted=!1,clearTimeout(this.floatingFixTimer),this.hideLayoverTextElement(),document.removeEventListener("fullscreenchange",this.fullscreenChangeHandler)},e.prototype.shouldComponentUpdate=function(t){var e,n,i,s,a,r=this.props,o=r.awayLayoutOptions,l=r.layoverSize,c=r.isFloatingPlayer;return!!(null==o?void 0:o.username)&&((null==o?void 0:o.username)!==(null===(e=t.awayLayoutOptions)||void 0===e?void 0:e.username)||(null===(i=null===(n=this.props)||void 0===n?void 0:n.layover)||void 0===i?void 0:i.type)!==(null===(s=null==t?void 0:t.layover)||void 0===s?void 0:s.type)&&(null===(a=null==t?void 0:t.layover)||void 0===a?void 0:a.visible)||c!==t.isFloatingPlayer||!t.isFloatingPlayer&&l.width!==t.layoverSize.width)},e.prototype.componentDidUpdate=function(t){var e=this.props.isFloatingPlayer;if(this.resize(),t.isFloatingPlayer!==e){var n=Boolean(document.querySelector(".player_gui"));(t.isFloatingPlayer&&n||e&&!n)&&(this.hideBase(),this.waitAnimationEnd(e))}},e.prototype.waitAnimationEnd=function(t){var e=this;clearInterval(this.floatingFixTimer),this.floatingFixCounter=0,this.floatingFixTimer=window.setInterval(function(){if(e._isMounted){var n=Boolean(document.querySelector(".player_gui"));e.floatingFixCounter++,(n===t||e.floatingFixCounter>100)&&(clearInterval(e.floatingFixTimer),e.resize(),e.showBase())}},50)},e.prototype.hideBase=function(){this.rootComponent&&(this.rootComponent.style.visibility="hidden")},e.prototype.showBase=function(){this.rootComponent&&this.rootComponent.style.visibility&&(this.rootComponent.style.visibility="")},e.prototype.render=function(){var t=this.props,e=t.streamOptions,n=t.type,s=void 0===n?"":n,a=t.isFloatingPlayer,r="away"===s,o=G.A.isWideScreen(e.quality)||e.isMobileStream;return(0,i.jsxs)(vt,{isFloatingPlayer:a,isWide:o,children:[a&&(0,i.jsx)(B,{ref:this.textRef,isAway:r}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ft,{ref:this.textRef,isAway:r}),(0,i.jsx)(mt,{})]})]})},e=(0,o.Cg)([(0,a.Ng)(xt)],e)}(H.I),gt=bt,yt=n(63658),wt=n(2268),jt=function(t){var e=t.tokensPerMinute,n=t.isCustomPrice,s=t.isInGroup,a=t.onClick,r=s?"Group":"Voyeur",o=s?__("Join Group Chat"):__("Spy Private Chat"),l=s?"group_link_price":"voyeur_link_price";return(0,i.jsxs)("a",{className:"layoverButton layoverButton".concat(r),onClick:a,children:[o,(0,i.jsxs)("span",{className:"".concat(l," js-price"),children:["(",(0,i.jsxs)("span",{className:(0,m.jc)(n&&"spy_link_price_custom"),children:[e," ",wt.kX.pluralise("tokens",e)]}),yt.K.SPACE,")",__("per minute")]})]})},Ct=function(t,e){if(void 0===e&&(e=!1),e)switch(t){case"fullprivate":return __("I'm in Full Private Chat");case"group":return __("I'm in Group Chat");case"private":return __("I'm in Private Chat")}switch(t){case"away":return __("I'm Away");case"fullprivate":return __("I'm Full Private");case"group":return __("I'm Group");case"offline":return __("I'm Offline");case"private":return __("I'm Private")}},Tt=n(27510),Pt=n(30535),Nt=function(t){var e=t.className,n=t.href,s=void 0===n?"#join":n;return(0,i.jsx)("a",{className:(0,m.jc)("layoverLimitText",e),href:s,children:__("You've watched all of the video you%br%can as a guest today!%br%%br%%span_start%Create a 100% FREE account%span_end%%br%to watch more!",{"%br%":function(t){var e=t.key;return(0,i.jsx)("br",{},e)},"%span_start%(.*)%span_end%":function(t){var e=t.args[0],n=t.key;return(0,i.jsx)("span",{style:{color:"#390"},children:e},n)}})})},St=function(t){var e=t.className,n=t.onClick;return(0,i.jsx)("a",{className:(0,m.jc)("layoverLimitText",e),onClick:n,children:__("You've watched all of the video you%br%can as a FREE member today!%br%%br%%span_start%Only premium members%br%get to enjoy unlimited video.%span_end%%br%Buy any amount of tokens just once, and become a premium member for life!",{"%br%":function(t){var e=t.key;return(0,i.jsx)("br",{},e)},"%span_start%(.*)%span_end%":function(t){var e=t.args[0],n=t.key;return(0,i.jsx)("span",{style:{color:"#390"},children:e},n)}})})},Ft={buttonHeight:146,buttonPositionX:1191,buttonPositionY:1118,buttonWidth:730,height:1587,notice1PositionY:688,notice2PositionY:796,notice3PositionY:900,text1PositionY:350,text2PositionY:430,text3PositionY:510,textLineHeight:1.2,textPositionX:1556,width:2116},Et={buttonHeight:152,buttonPositionX:1502,buttonPositionY:1122,buttonWidth:764,height:1584,notice1PositionY:684,notice2PositionY:776,notice3PositionY:860,text1PositionY:370,text2PositionY:450,text3PositionY:530,textLineHeight:1.3,textPositionX:1884,width:2816},kt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isHD=G.A.isVideoHD(),e.svgOptions=(0,o.Cl)((0,o.Cl)({},Ft),{buttonPositionX:Ft.buttonPositionX,buttonTextPositionX:Ft.buttonWidth/2+Ft.buttonPositionX,buttonTextPositionY:Ft.buttonHeight/2+Ft.buttonPositionY}),e.svgOptionsHD=(0,o.Cl)((0,o.Cl)({},Et),{buttonPositionX:Et.buttonPositionX,buttonTextPositionX:Et.buttonWidth/2+Et.buttonPositionX,buttonTextPositionY:Et.buttonHeight/2+Et.buttonPositionY}),e.currentSVGOptions=e.isHD?e.svgOptionsHD:e.svgOptions,e}return(0,o.C6)(e,t),e.prototype.render=function(){var t='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '.concat(__("%t1%You’ve watched all of%t_end%%t2%the videos you can, %s1%as a%s_end%%t_end%%t3%%s1%guest today!%s_end%%t_end%",{s1:'',s_end:"",t1:''),t2:''),t3:''),t_end:""}),"\n \n \n ").concat(__("%s1%Create a%s_end%%s2%100% free account%s_end%%s3%to watch more!%s_end%",{s1:''),s2:''),s3:''),s_end:""}),"\n \n ");return(0,i.jsx)(h.E,{className:"l_limit_svg".concat(this.isHD?" __l_hd":""),direction:u.isRTLCulture?"rtl":"ltr",height:"100%",html:"\n ".concat(t,'\n \n \n ').concat(__("Join now for free"),"\n \n \n "),tagName:"svg",viewBox:"0 0 ".concat(this.currentSVGOptions.width," ").concat(this.currentSVGOptions.height),width:"100%",xmlns:"http://www.w3.org/2000/svg"})},e=(0,o.Cg)([(0,a.Ng)("lang")],e)}(s.Component),Lt=kt,It=n(41669),Ot=function(t){var e=t.center,n=t.type,s=(0,V.d4)(function(t){return t.isMobile}),a=(0,V.d4)(function(t){return t.isAuthenticated}),r=(0,V.d4)(function(t){return t.isMemberBanned}),o=(0,V.d4)(function(t){return t.isMemberKicked}),l=(0,V.d4)(function(t){var e;return null===(e=t.chatLocalData)||void 0===e?void 0:e.groupChatTokensPerMinute}),c=!r&&!o&&!["limit","vip"].includes(n);s||(c=!0);var u="limit"===n,d="private"===n,_="group"===n,h=e||["group","private"].includes(n),p=a?(0,i.jsx)(St,{onClick:function(t){t.preventDefault(),chat.buyTokensPopup()}}):(0,i.jsx)(Nt,{}),m=a?null:(0,i.jsx)(Lt,{}),f=d&&(0,Pt.d)(Tt.j.VOYEUR_CHAT)||_&&(0,Pt.d)(Tt.j.GROUP_CHAT),v=_?function(t){t.preventDefault(),chat.gotoGroupChat()}:function(t){t.preventDefault(),chat.gotoVoyeur()},x=["away","offline"].includes(n)&&!s;return{LayoverLimitText:m,LayoverLimitTextMobile:p,tokensPerMinute:l,isCenter:h,isCustomPrice:f,isInGroup:_,isLimit:u,isMobile:s,isPrivate:d,isShowAway:x,isTextVisible:c,handleClick:function(t){if(!s&&"limit"===n){var e=t.target;e&&e.classList.contains("js-lls_join_button")&&function(t){It.signupEvent.call(void 0,{e:t,isClick:!0})}(t)}},handleSpyButtonClick:v}},Rt=function(t){var e=t.type,n=t.url,s=Ot(t),a=s.LayoverLimitText,r=s.LayoverLimitTextMobile,o=s.tokensPerMinute,l=s.isCenter,c=s.isCustomPrice,u=s.isInGroup,d=s.isLimit,_=s.isMobile,h=s.isPrivate,p=s.isShowAway,f=s.isTextVisible,v=s.handleClick,x=s.handleSpyButtonClick;return(0,i.jsxs)("div",{className:"layover",style:{backgroundImage:"url(".concat(n,")")},onClick:v,children:[d&&_&&r,d&&!_&&a,f&&(0,i.jsxs)("span",{className:(0,m.jc)("layoverText",l&&"layoverCenter"),children:[_&&(0,i.jsx)("span",{className:"layoverIns",children:Ct(e,_)}),!_&&(u||h)&&(0,i.jsx)(jt,{tokensPerMinute:o,isCustomPrice:c,isInGroup:u,onClick:x})]}),p&&(0,i.jsx)(gt,{type:e})]})},At=(0,s.memo)(function(t){var e=t.center,n=void 0!==e&&e,s=t.sex,o=void 0===s?"":s,l=t.type,c=void 0===l?"":l,u=t.url,d=void 0===u?"":u,h=t.visible,p=void 0!==h&&h,m=t.wait,f=void 0!==m&&m,x=(0,a.d4)(function(t){return t.awayLayoutOptions}),b=(0,a.d4)(function(t){return t.isAuthenticated}),g=(0,a.d4)(function(t){return t.isFloatingPlayer}),w=(0,a.d4)(function(t){return t.isMobile}),j=["private","fullprivate","group","voyeur"].indexOf(c)>=0,C=function(){var t=null==x?void 0:x.avatarUrl;return g&&t?t:d};if(f&&j)return w?(0,i.jsx)(y,{sex:o,type:c}):(0,i.jsx)(v,{sex:o,type:c});if(!p)return null;if(w||"limit"!==c){if("limit_blur"===c)return w?(0,i.jsx)(Rt,{center:n,type:"limit",url:C()}):(0,i.jsx)(A,{})}else if(b&&r.M.isNewVersion(257))return(0,i.jsx)(A,{});return j&&!w?(0,i.jsx)(_,{sex:o,type:c}):(0,i.jsx)(Rt,{center:n,type:c,url:C()})})},69341:function(t,e,n){n.d(e,{Fd:function(){return s},Mq:function(){return a},gz:function(){return r.g}});var i=n(74848),s=function(t){var e=t.style,n=void 0===e?null:e;return(0,i.jsx)("span",{className:"player-spinner spinner spinner-small spinner-default __white",style:n})},a=function(t){var e=t.style,n=void 0===e?null:e;return(0,i.jsxs)("div",{className:"player-spinner spinner spinner-quads video_loader",style:n,children:[(0,i.jsx)("div",{className:"q q1"}),(0,i.jsx)("div",{className:"q q2"}),(0,i.jsx)("div",{className:"q q3"}),(0,i.jsx)("div",{className:"q q4"})]})},r=n(99935)},4761:function(t,e,n){var i=n(74848),s=n(96540);e.A=(0,s.memo)(function(){return(0,i.jsx)("div",{id:"video_player_container"},"video_player_container_root")},function(){return!1})},61553:function(t,e,n){n.d(e,{S:function(){return a}});var i=n(99525),s=n(75998),a=function(){function t(){}return t.format=function(t,e,n,i){void 0===n&&(n=2),void 0===i&&(i=!1);var s=this.getRenderParts(t,e,n,i);return this.getText(e,s)},t.getRenderParts=function(e,n,i,a){void 0===i&&(i=2),void 0===a&&(a=!1);var r=t.getSymbol(n),o=Number(e)>=0?"":"-",l="";return a&&(l="boolean"==typeof a?" ":a),{currencySym:r,formattedValue:(0,s.K)(this.round(e,i)),signMinus:o,space:l}},t.getSymbol=function(e){switch(e){case t.USD:return"$";case t.EUR:return"€";case t.TKN:return"Tkn";case t.GBP:return"£";case t.RUB:if(!i.A.getState().isMobile)return"₽"}return" ".concat(e.toUpperCase())},t.getText=function(e,n){var i=n.currencySym,s=n.formattedValue,a=n.signMinus,r=n.space;return t.isLeftSide(e)?"".concat(a).concat(i).concat(r).concat(s):"".concat(a).concat(s).concat(r).concat(i)},t.isLeftSide=function(e){switch(e){case t.EUR:return!1;case t.GBP:case t.USD:return!0;case t.RUB:case t.TKN:default:return!1}},t.round=function(t,e){void 0===e&&(e=2);var n=Math.pow(10,e<=0?1:e);return(Math.round(Math.abs(parseFloat(t))*n)/n).toFixed(e)},t.EUR="eur",t.GBP="gbp",t.RUB="rub",t.TKN="tkn",t.USD="usd",t}()}}]);