"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[50],{21560:function(e,t,n){n.d(t,{$n:function(){return f.$},tV:function(){return v},vx:function(){return _},qJ:function(){return s}});var i=n(50172),o=n(17402),r=n(44763),s=(0,o.memo)((function(e){var t=e.className,n=e.children,o=e.icon,s=(0,r.Z)(e).actions.handleClickOnTip;return(0,i.h)(f.$,{className:t,icon:o,variant:"success",onClick:s},n)})),a=n(15215),l=n(19047),c=n(26580),u=n(8546),d=n(37773),_=(0,o.memo)((function(e){var t,n,o=e.className,r=e.classNameHint,s=e.children,_=e.hint,m=e.icon,v=e.label,f=e.size,h=e.variant,g=(0,a.Tt)(e,["className","classNameHint","children","hint","icon","label","size","variant"]);return(0,i.h)(l.N_,(0,a.Cl)({className:(0,u.n)((0,a.Cl)((t={},t[String(o)]=Boolean(o),t),(0,d.f)({hint:_,size:f,variant:h})))},g),m&&(0,i.h)(c.A,{group:(0,u.n)((n={mrn_b_icon:!0},n[m.group]=m.group,n)),icon:m.type,url:m.url}),(v||s)&&(0,i.h)("span",{className:"mrn_inner bc_inline_flex bc_flex_full_center"},v||s),_&&(0,i.h)("span",{className:r},_))})),m=n(6967),v=(0,o.memo)((function(e){var t=e.className,n=e.classNameHint,o=e.children,r=e.hint,s=e.icon,a=e.variant,l=(0,m.O)(e).actions.handleOpenIMWindow;return(0,i.h)(f.$,{className:t,classNameHint:n,hint:r,icon:s,variant:a,onClick:l},o)})),f=n(78054)},19047:function(e,t,n){n.d(t,{N_:function(){return c.N},DL:function(){return a},KO:function(){return l.K}});var i=n(50172),o=n(17402),r=n(26580),s=n(8546),a=(0,o.memo)((function(e){var t,n=e.children,a=e.icon,l=e.isLoading;return(0,i.h)(o.Fragment,null,(0,i.h)("span",{className:(0,s.n)({"l_inner bc_inline_flex bc_flex_full_center":!0,__hide_cnt:!!a&&l})},n),!!a&&l&&(0,i.h)("span",{className:(0,s.n)((t={l_icon_loading_wrp:!0},t[String(a.classNameIconWrapper)]=Boolean(a.classNameIconWrapper),t))},(0,i.h)(r.A,{key:a.key,className:a.className,group:a.group,icon:a.icon,url:a.url})))})),l=n(33203),c=n(45170)},71293:function(e,t,n){n.d(t,{s:function(){return p},T:function(){return u}});var i,o,r=n(50172),s=n(17402),a=n(6823),l=n(26616),c=n(8546),u=(0,s.memo)((function(e){var t,n,i=e.children,o=e.code,u=e.linkAdditionalClassName,d=e.linkClassName,_=void 0===d?"ht_item":d,m=e.mocked,v=e.tagId,f=e.tagLiveTab,h=e.title,g=e.onClick,p=void 0===g?l.noop:g,b=e.onMount,E=(0,s.useRef)(null);(0,s.useLayoutEffect)((function(){b&&b(v,E.current)}),[v,b]);return m?(0,r.h)("span",{className:(0,c.n)((t={},t[u]=u,t[_]=_,t))},h||i):(0,r.h)("a",{ref:E,className:(0,c.n)((n={},n[u]=u,n[_]=_,n)),href:(0,a.g)(f,o),onClick:function(){p(o,f)}},h||i)})),d=n(26580),_=n(53336),m=n(59583),v=n(13907),f=n(35023),h=((i={})[m.A.CHRISTMAS]="ht_icon_tag __ht_christmas",i[m.A.EASTER]="ht_icon_tag __ht_easter",i[m.A.HALLOWEEN]="ht_icon_tag __ht_halloween",i[m.A.MOBILE_LIVE]="ht_icon_tag __ht_fire",i[m.A.RECORDABLE]="ht_icon_tag __ht_record",i[m.A.VALENTINE_DAY]="ht_icon_tag __ht_valentines_day",i),g=((o={})[m.A.RECORDABLE]=["ht_record_icon","#svg_icon_record"],o),p=(0,s.memo)((function(e){var t,n,i=e.className,o=e.code,s=e.eventIcon,a=e.mocked,l=e.tagId,p=e.tagLiveTab,b=e.title,E=e.onClick,A=e.onTagMount,y=h[o],L=f.h[o],T=g[o]||[],P=T[0],S=T[1],N=o==m.A.CHRISTMAS,C=o==m.A.VALENTINE_DAY,w=o==m.A.EASTER,O=o==m.A.HALLOWEEN;return(0,r.h)(u,{code:o,linkAdditionalClassName:(0,c.n)((t={},t[i]=Boolean(i),t[y]=y,t)),mocked:a,tagId:l,tagLiveTab:p,onClick:E,onMount:A},L&&(0,r.h)("span",{className:(0,c.n)((n={ht_item_icon:!0},n[L]=Boolean(L),n))}),P&&S&&(0,r.h)(d.A,{group:P,icon:S,url:_.ed}),N&&(0,r.h)("img",{className:"ht_holiday_icon",alt:"",src:(0,v.oF)("svg/bc/icon/icon_christmas_v2.svg")}),C&&(0,r.h)("img",{className:"ht_holiday_icon",alt:"",src:(0,v.oF)("svg/bc/icon/icon_valentines_day_v2.svg")}),w&&(0,r.h)("img",{className:"ht_holiday_icon",alt:"",src:(0,v.oF)("svg/bc/icon/icon_easter.svg")}),O&&(0,r.h)("img",{className:"ht_holiday_icon",alt:"",src:(0,v.oF)("svg/bc/icon/icon_halloween.svg")}),s&&"".concat(s," "),b)}))},13558:function(e,t,n){n.r(t),n.d(t,{ModelsList:function(){return _n}});var i=n(50172),o=n(17402),r=n(98614),s=n(52982),a=n(15839),l=n(5037),c=n(19826),u=n(89836),d=function(e){var t;return(0,u.nE)(e)!==(0,u.Hh)(e)?null:null===(t=function(e){return function(e){return e.chatNavigation||{}}(e).current}(e))||void 0===t?void 0:t.blocks},_=n(58369),m=n(99215),v=n(15215),f=n(38588),h=n(27259),g=n(45070),p=n(13907),b=n(21110),E=n(63065),A=n(45533),y=n(73424),L=n(8546),T=(0,o.memo)((function(e){var t,n=e.forwardRef,r=e.bMarker,s=e.bProfileChecked,a=e.bQualityImprovement,l=e.currentThumbType,c=e.lang,u=e.liveTab,d=e.modelCheckComment,_=e.modelCultureLang,m=e.modelDebugInfoText,y=e.modelDisplayName,T=e.modelEsid,P=e.modelFlagsMask,S=e.modelGender,N=e.modelIsSmmt,C=e.modelLang,w=e.modelMarker,O=e.modelMiscMarker,I=e.modelQualityImprovementReason,M=e.modelRoomStatus,R=e.modelSocialLinks,k=e.modelTags,B=e.modelThumbImage,U=e.modelTopic,H=e.modelUsername,D=e.modelVerificationComment,V=e.modelVideoQuality,F=e.modelVideoQualityImprovedKey,x=e.modelViewersCount,G=e.moderatorFlagsMask,W=e.skinId,Y=e.stopModelPinFading,X=e.thumbSize,j=e.isAuthenticated,K=e.isHeartLiveBadge,q=e.isModerator,z=e.isPinAvailable,J=e.isPinFading,Q=e.isSelectedThumb,Z=e.isWlJoin,$=(0,o.useState)(!1),ee=$[0],te=$[1],ne=(0,o.useState)(!1),ie=ne[0],re=ne[1],se=(0,o.useState)(!1),ae=se[0],le=se[1],ue=(0,p.ip)("@common_profile?username=".concat((0,E.o)(H))),de=(0,p.ip)("@member_chat?username=".concat((0,E.o)(H))),_e=function(e){return(0,o.useMemo)((function(){return{isProfileChecked:(0,h.Lt)(e,2),isOBS:(0,h.Lt)(e,4),isNew:(0,h.Lt)(e,8),isOBSPendingDonate:(0,h.Lt)(e,32),isRevival:(0,h.Lt)(e,16),isPerHour:(0,h.Lt)(e,1),isEmptyProfile:(0,h.Lt)(e,128),isVerifyExpired:(0,h.Lt)(e,256)}}),[e])}(G),me=(0,A.QP)(P),he=(0,o.useCallback)((function(){re(!0)}),[re]),ge=(0,o.useCallback)((function(){te(!0)}),[te]);(0,f.A)((function(){return re(!1)}),[H,B]),ke(J,Y);var be=q?(0,L.n)({__mdr_amazing_marker:r&&"amazing"===w,__mdr_p_empty:_e.isEmptyProfile,__mdr_per_hour:_e.isPerHour,__mdr_revival:_e.isRevival,__mdr_runetki_model:"runetki_empty"===O,__mdr_verify_expired:_e.isVerifyExpired,__mdr_video_quality_improved:a&&1===F,__mdr_video_quality_not_improved:a&&-1===F,__mdr_video_quality_refused_to_communicate:a&&0===F}):"",Ee=!(!me.isOnline||me.isAway||"public"!==M)&&T;return(0,i.h)("div",{ref:n,className:(0,L.n)((t={},t[be]=q,t["__s_".concat(X)]=X,t["ls_thumb js-ls_thumb __percent_width"]=!0,t.__lst_visible=ae,t.__mls_porn_show=me.isExclusiveShow,t.__pin_fade=J,t.__selected=Q,t.__smmt=N,t))},(0,i.h)("a",(0,v.Cl)({className:(0,L.n)({"js-wl_join":Z,"lst_wrp lst_link js-thl":!0,__img:ee,__no_img:ie}),"data-chathost":H,"data-esid":Ee,"data-name":y,"data-vq":V,href:de},b.q.isEnabled(g.i.DESKTOP_CHAT_JOIN_BUTTON_TEXT)&&{"data-gender":S}),(0,i.h)("span",{className:"lst_ghost"}),B&&(0,i.h)(fe,{modelDisplayName:y,thumbImageUrl:B,thumbSize:X,thumbType:l,isLoadImageFailed:ie,onError:he,onLoad:ge}),(0,i.h)(Be,null),(0,i.h)(we,{profileUrl:ue,roomStatus:M,isAway:!!me.isAway,isOnline:!!me.isOnline}),(0,i.h)(pe,{bMarker:r,bProfileChecked:s,lang:c,modelCheckComment:d,modelCultureLang:_,modelFlags:me,modelIsSmmt:N,modelLang:C,modelMarker:w,modelUsername:H,modelVerificationComment:D,moderatorFlags:_e,roomStatus:M,skinId:W,isHeartLiveBadge:K,isModerator:q,isPinAvailable:z,setOverflowVisible:le})),(0,i.h)(oe,{debugInfoText:m,modelDisplayName:y,profileUrl:ue,socialLinks:R,viewersCount:x,isExclusiveShow:me.isExclusiveShow,isVibroToy:me.isVibroToy||me.isVibroToyExtended}),j&&(0,i.h)(ve,{key:H,gender:S,liveTab:u,tags:k}),j&&(0,i.h)(ce,{lang:c,modelDisplayName:y,qualityImprovementReason:I,topic:U,isModerator:q}))}),y.b),P=n(41656),S=n(22078),N=n(29313),C=n(57610),w=n(22545),O=n(53162),I=n(46445),M=n(22706),R=n(26616),k=function(e){function t(){var i=e.call(this)||this;return i.isSafari=M.BrowserDetect.isSafari(),i.isMobile=c.A.getState().isMobile,i.isWaitToPlay=!1,i.resizeObserver=null,i.resize=function(){var e,t;null===(e=i.preloaderLine)||void 0===e||e.setAttribute("style","width: ".concat(null===(t=i.container)||void 0===t?void 0:t.getBoundingClientRect().width,"px"))},i.play=function(){return new Promise((function(e,o){if(i.thumbElement){if(i.buildDom(i.thumbElement),i.videoElement&&"stopped"===i.status&&(i.chatHost=i.container.getAttribute("data-chathost"),i.esId=i.container.getAttribute("data-esid"),i.esId)){var r=function(){return(0,v.sH)(i,void 0,void 0,(function(){var e,t=this;return(0,v.YH)(this,(function(i){switch(i.label){case 0:return[4,Promise.all([n.e(38),n.e(176)]).then(n.t.bind(n,6693,23))];case 1:return i.sent(),this.hlsVideoElement&&"undefined"!=typeof Hls&&(this.hls=new Hls,this.hls.currentLevel=0,this.hls.attachMedia(this.hlsVideoElement),this.hls.loadSource((0,O.o)(this.esId,this.chatHost)),this.hls.on(Hls.Events.ERROR,(function(e){t.hlsVideoElement.src=(0,O.o)(t.esId,t.chatHost),t.hlsVideoElement.play().then(R.noop,(function(){return t.hlsVideoElement.pause()}))})),this.hlsVideoElement.addEventListener("canplaythrough",this.hideVideo),(e=this.hlsVideoElement.play())&&e.then(R.noop,(function(){return t.hlsVideoElement.pause()})),this.hlsVideoElement.style.visibility="visible"),[2]}}))}))},s=function(){i.togglePlayerStyles(),i.status="played",i.isWaitToPlay=!1,i.videoElement.onerror=null,i.hlsTimeout=window.setTimeout(r,4e3),e(!0)};i.status="pending",i.preloader.classList.add("__load"),i.videoElement.onerror=function(){return(0,v.sH)(i,void 0,void 0,(function(){return(0,v.YH)(this,(function(t){switch(t.label){case 0:return this.videoElement.onerror=null,clearTimeout(this.hlsTimeout),[4,r()];case 1:return t.sent(),this.togglePlayerStyles(),this.status="played",this.isWaitToPlay=!1,e(!0),[2]}}))}))};var a=i.esId.replace(/(ded(\d+)-edge|live-edge|-rn)/g,"");i.videoElement.src="https://vthumb".concat(a,".").concat((0,p.ip)("@video_host"),"/stream_").concat(i.chatHost,".mp4?t=").concat(t.getCacheKey()),i.isWaitToPlay=!0;var l=i.videoElement.play(),c=i.isSafari?null:s;c||s(),void 0!==l&&l.then(c,(function(){return i.videoElement.pause()}))}}else o()}))},i.stop=function(e){clearTimeout(i.timer),i.videoWrapper&&(i.videoWrapper.style.visibility="hidden"),i.coolDown=!1,i.status="stopped",i.destroyDom(),e&&e()},i.destroyDom=function(){return(0,v.sH)(i,void 0,void 0,(function(){var e,t;return(0,v.YH)(this,(function(n){switch(n.label){case 0:return this.isWaitToPlay?(this.isWaitToPlay=!1,this.videoElement&&(this.videoElement.onerror=null),[4,new Promise((function(e){return setTimeout(e,100)}))]):[3,2];case 1:return n.sent(),[3,0];case 2:return this.isMobileStream&&this.container.classList.remove("__blurred"),this.destroyHls(),this.videoWrapper?[2,Boolean(null===(t=null===(e=this.videoWrapper)||void 0===e?void 0:e.parentNode)||void 0===t?void 0:t.removeChild(this.videoWrapper))]:[2]}}))}))},i.togglePlayerStyles=function(){if(i.isMobileStream&&i.container.classList.add("__blurred"),i.isSafari){var e=function(){return new Promise(requestAnimationFrame)};i.videoElement.style.opacity="0",i.videoElement.addEventListener("loadedmetadata",(function(){return(0,v.sH)(i,void 0,void 0,(function(){return(0,v.YH)(this,(function(t){switch(t.label){case 0:return[4,(n=22,Array.from({length:n}).reduce((function(t){return t.then(e)}),e()))];case 1:return t.sent(),this.videoElement.style.opacity="1",[2]}var n}))}))}),{once:!0})}else i.preloader.classList.add("__loaded");i.videoElement.style.visibility="visible",i.resizeThumbPlayer()},i.resizeThumbPlayer=function(){var e,t,n=i.videoElement.parentElement,o=function(){var e,t;if(n&&n!==i.videoElement.parentElement&&(i.resizeObserver.unobserve(n),(n=i.videoElement.parentElement)&&i.resizeObserver.observe(n)),!n)return null===(e=i.videoElement)||void 0===e||e.removeEventListener("resize",o),void(null===(t=i.resizeObserver)||void 0===t||t.disconnect());var r=n.getBoundingClientRect().height,s=i.videoElement,a=s.videoWidth/s.videoHeight;a&&(i.videoElement.style.width="".concat(r*a,"px"),i.videoElement.style.height="".concat(r,"px"),i.hlsVideoElement.style.width="".concat(r*a,"px"),i.hlsVideoElement.style.height="".concat(r,"px"))};null===(e=i.videoElement)||void 0===e||e.addEventListener("resize",o),null===(t=i.resizeObserver)||void 0===t||t.disconnect(),i.resizeObserver=new ResizeObserver(o),n&&i.resizeObserver.observe(n)},i.hideVideo=function(){i.videoElement&&(i.videoElement.style.opacity="0")},i.destroyHls=function(){clearTimeout(i.hlsTimeout),i.hls&&(i.hlsVideoElement.removeEventListener("canplaythrough",i.hideVideo),i.hls.detachMedia(i.hlsVideoElement),i.hls.destroy())},i.coolDown=!1,i.status="stopped",i.timer=null,i}return(0,v.C6)(t,e),t.getCacheKey=function(){var e=(0,C.l)();return e-t.cacheKey>120&&(t.cacheKey=e),t.cacheKey},t.prototype.init=function(e){var t=this,n=e.element;return new Promise((function(e,i){!!(n.querySelector(".__s_full_private")||n.querySelector(".__s_private")||n.querySelector(".__s_group")||n.querySelector(".__s_away"))?i():(t.thumbElement=n,e(!0))}))},t.prototype.destroy=function(e){clearTimeout(this.timer),this.videoWrapper&&(this.videoWrapper.style.visibility="hidden"),this.destroyDom().then((function(t){return t&&e()}))},t.prototype.getNewVideoElement=function(){var e=document.createElement("video");return e.muted=!0,e.volume=0,e.setAttribute("webkit-playsinline","true"),e.setAttribute("playsinline","true"),e},t.prototype.buildDom=function(e){if(this.container=e.querySelector(".js-thl"),this.container&&!e.querySelector(".preview_player")){this.isMobileStream=(0,w.P)(this.container.getAttribute("data-vq"));var t=this.container.querySelector(".profile_image");this.videoWrapper=document.createElement("div"),this.videoWrapper.classList.add("preview_player"),this.preloader=document.createElement("div"),this.preloader.classList.add("ppr_preloader"),this.previewFrame=document.createElement("img"),this.previewFrame.classList.add("ppr_preview"),this.previewFrame.setAttribute("id","previewImageFrame"),this.chatHost=this.container.getAttribute("data-chathost");var n=this.container.getAttribute("data-esid").replace(/(ded(\d+)-edge|live-edge|-rn)/g,"");this.previewFrame.setAttribute("src",(0,O.A)(n,this.chatHost)||""),this.preloaderLine=document.createElement("div"),this.preloaderLine.classList.add("ppr_p_line"),this.preloaderLine.setAttribute("style","width: ".concat(this.container.getBoundingClientRect().width,"px")),this.hlsVideoElement=this.getNewVideoElement(),this.hlsVideoElement.style.visibility="hidden",this.videoElement=this.getNewVideoElement(),this.videoElement.style.visibility="hidden",this.preloader.appendChild(this.preloaderLine),this.videoWrapper.appendChild(this.hlsVideoElement),this.videoWrapper.appendChild(this.videoElement),this.videoWrapper.appendChild(this.preloader),this.videoWrapper.appendChild(this.previewFrame),this.isMobileStream&&t&&this.isMobile&&this.videoWrapper.appendChild(t.cloneNode()),this.container.querySelector(".lst_preview_player_container").append(this.videoWrapper),this.disablePictureInPicture(this.hlsVideoElement),this.disablePictureInPicture(this.videoElement)}},t.cacheKey=0,t}(I.A),B=n(18697),U=n(7526),H=n(12957),D=n(41669),V=function(){function e(){var e=this;this.players={},this.isIE=M.BrowserDetect.detectIE(),this.isSafari=M.BrowserDetect.isSafari(),this.initPreview=function(t){(0,B._b)("ThumbVideoPreview initPreview").log(),e.destroy(),e.thumbSelector=t,document.addEventListener("mousemove",e.moveEvent),document.body.addEventListener("mouseleave",e.onLeaveDocument),U.I.on("VideoPlayerEvent:playing",e.removeVideoPlayerPreview),U.I.on("VideoPlayerEvent:close",e.removeVideoPlayerPreview),D(document).on("chat:open",e.showVideoPlayerPreview),D("#bChat").on("onRoomClose",e.removeVideoPlayerPreview).on("onCurrentChathost",e.showVideoPlayerPreview)},this.destroy=function(){(0,B._b)("ThumbVideoPreview destroy").log(),e.removePreviews(),document.removeEventListener("mousemove",e.moveEvent),document.body.removeEventListener("mouseleave",e.onLeaveDocument),U.I.off("VideoPlayerEvent:playing",e.removeVideoPlayerPreview),U.I.off("VideoPlayerEvent:close",e.removeVideoPlayerPreview),D(document).off("chat:open",e.showVideoPlayerPreview),D("#bChat").off("onRoomClose",e.removeVideoPlayerPreview).off("onCurrentChathost",e.showVideoPlayerPreview)},this.removePreviews=function(){(0,B._b)("ThumbVideoPreview removePreviews").log(),(0,H.loopv)(e.players,(function(t,n){e.videoPlayerPreviewHost!==n&&(null==t||t.destroy((function(){delete e.players[n]})))}))},this.stopPreviews=function(t){var n=Object.keys(e.players);n.length&&(0,B._b)("ThumbVideoPreview stopPreviews").log(e.players),(0,H.loopv)(n,(function(n){var i;t!==n&&e.videoPlayerPreviewHost!==n&&(null===(i=e.players[n])||void 0===i||i.destroy((function(){delete e.players[n]})))}))},this.setAsVideoPlayerPreview=function(t){(0,B._b)("ThumbVideoPreview setAsVideoPlayerPreview").log(),e.videoPlayerPreviewContainer=document.getElementById("pp_ve_container"),e.players[t]&&e.videoPlayerPreviewContainer&&(e.removeVideoPlayerPreview(),e.videoPlayerPreviewHost=t)},this.showVideoPlayerPreview=function(t,n){if(n&&e.videoPlayerPreviewHost&&e.videoPlayerPreviewHost!==n)e.removeVideoPlayerPreview(null,!0);else{(0,B._b)("ThumbVideoPreview showVideoPlayerPreview").log();var i=e.players[e.videoPlayerPreviewHost];i&&e.videoPlayerPreviewContainer&&e.videoPlayerPreviewHostShowed!==e.videoPlayerPreviewHost&&(e.videoPlayerPreviewHostShowed=e.videoPlayerPreviewHost,i.isMobileStream&&e.videoPlayerPreviewContainer.classList.add("__mobile_stream"),i.hlsVideoElement&&e.videoPlayerPreviewContainer.appendChild(i.hlsVideoElement),i.videoElement&&e.videoPlayerPreviewContainer.appendChild(i.videoElement))}},this.removeVideoPlayerPreview=function(t,n){if(void 0===n&&(n=!1),(0,B._b)("ThumbVideoPreview removeVideoPlayerPreview").log(),e.videoPlayerPreviewHost&&e.players[e.videoPlayerPreviewHost]&&e.videoPlayerPreviewContainer){var i=e.videoPlayerPreviewHost;e.videoPlayerPreviewHost=null,e.videoPlayerPreviewHostShowed=null;var o=e.isIE||e.isSafari?1500:1,r=n?0:2e3;window.setTimeout((function(){e.videoPlayerPreviewContainer.classList.add("__hidden")}),o),window.setTimeout((function(){var t=e.players[i];!e.videoPlayerPreviewHost&&e.videoPlayerPreviewContainer&&(e.videoPlayerPreviewContainer.innerHTML="",e.videoPlayerPreviewContainer.classList.remove("__hidden","__mobile_stream")),t&&t.destroy((function(){delete e.players[i]}))}),r)}},this.moveEvent=function(t){var n,i=t.target;i.correspondingUseElement&&(i=i.correspondingUseElement);var o=null===(n=null==i?void 0:i.closest)||void 0===n?void 0:n.call(i,e.thumbSelector),r=null==o?void 0:o.querySelector("[data-chathost]"),s=null==r?void 0:r.getAttribute("data-chathost"),a=null==r?void 0:r.getAttribute("data-esid");if(e.stopPreviews(s),s&&a&&!e.players[s]){var l=new k;e.players[s]=l,l.init({element:o}).then((function(){l.play().then((function(){e.stopPreviews(s)}))}))}},this.onLeaveDocument=function(){e.stopPreviews()}}return Object.defineProperty(e,"instance",{get:function(){return this._instance=this._instance||new this},enumerable:!1,configurable:!0}),e}(),F=n(2508),x=n(52556),G=n(28577),W=n(64900),Y=n(23110),X=n(22393),j=n(18325),K=n(65361),q=n(9613),z=n(15514),J=n(59675),Q=n(41669),Z={};var $,ee,te=n(16915),ne=n(74214),ie=(0,r.Ng)((function(e){return{lang:e.lang,listingAvailableTags:(0,a.Q)(e),listingIsLoading:(0,a.sd)(e),listingLoaderIsPinSorting:(0,s.Ws)(e),listingLoaderType:(0,s.v1)(e),listingRights:(0,a.ls)(e),listingSelectedThumb:(0,m.dn)(e),listingThumbSize:(0,m.Ng)(e),listingThumbType:(0,m.gX)(e),liveTab:(0,u.Hh)(e),skinId:e.skinId,skinName:e.skinName,isAuthenticated:e.isAuthenticated,isHeartLiveBadge:e.isHeartLiveBadge,isModerator:e.isModerator}}))((0,o.memo)((function(e){var t,r=e.containerRef,s=e.className,a=e.children,l=e.lang,d=e.limit,m=e.listingAvailableTags,f=e.listingLoaderIsPinSorting,g=e.listingLoaderType,p=e.listingRights,b=e.listingSelectedThumb,E=void 0===b?"":b,A=e.listingThumbSize,y=e.listingThumbType,P=e.liveTab,C=e.models,w=e.skinId,O=e.skinName,I=e.isAuthenticated,M=e.isHeartLiveBadge,R=e.isModerator,k=O===te.A._18PLUSCAMS&&!I,U=g&&g===ne.J.BLOCKS,H=f,D=(0,o.useState)(),$=D[0],ee=D[1],ie=(0,o.useCallback)((function(){ee(void 0)}),[]);return(0,B._b)("Listing render ThumbsList").log({listingThumbSize:A,listingThumbType:y,liveTab:P,models:C}),(0,i.h)("div",{ref:r,className:(0,L.n)((t={},t[String(s)]=s,t["__ths_".concat(A)]=A,t.mls_models=!0,t.__percent_width_grid=!0,t)),onClick:function(e){var t=e.target.closest(".js-pin_model");if(t)return e.preventDefault(),e.stopPropagation(),$||function(e,t){return(0,v.sH)(this,void 0,void 0,(function(){var e,i,o,r,s,a,l,d,m;return(0,v.YH)(this,(function(f){switch(f.label){case 0:return!(e=t.querySelector(".js-pin_hint_wrp"))||e.classList.contains("js-error_hint")?[2]:[4,(0,J.a)()];case 1:return f.sent()?(i=t.classList.contains("__active"),o=Q(t).parent("a[data-chathost]").attr("data-chathost"),r=c.A.getState(),s=(0,u.Hh)(r),a=(0,G.em)(r),l=(0,_.mq)(r),X.A.getList().includes(s)?Z[o]?[2]:(d=s,i||a!==K.A.GROUP_SEX||(null==(m=l.find((function(e){return e.username===o})))?void 0:m.gender)===j.A.COUPLE_F_M&&(d=Y.n.COUPLES),[2,Promise.all([n.e(141),n.e(107)]).then(n.bind(n,24876)).then((function(t){var n=t.PinModel;return Z[o]=!0,new Promise((function(t){n.instance.pinUnpin({pinHintElement:e,username:o,liveTab:d,isPinned:i,placementType:z.p.LISTING,onSuccess:function(){var n,r;Z[o]=!1,e.classList.remove("__no_hint"),V.instance.stopPreviews();var s=function(e){var t=e.findIndex((function(e){return e.username===o}));if(t>-1){var n=(0,v.fX)([],e,!0),r=n.splice(t,1)[0];return(r=(0,v.Cl)({},r)).f=i?(0,h.Cr)(r.f,W.U.PINNED):(0,h.lA)(r.f,W.U.PINNED),(0,N.nK)(n,r,t)}return e},a=c.A.getState(),l=(0,_.mq)(a);if(l=s(l),!i){var u=0,d=l.filter((function(e){return e.smmt&&!(0,h.Lt)(e.f,W.U.AWAY)&&(0,h.Lt)(e.f,W.U.ONLINE)}));u+=d.length;var m=(0,q.Ri)("lvm");m&&l.find((function(e){return e.username===m}))&&m!==o&&!d.find((function(e){return e.username===m}))&&(u+=1),l=function(e,t){void 0===t&&(t=0);var n=e.findIndex((function(e){return e.username===o}));if(n>-1){var i=(0,v.fX)([],e,!0),r=i.splice(n,1)[0];r=(0,v.Cl)({},r);var s=(0,h.Lt)(r.f,W.U.ONLINE),a=(0,h.Lt)(r.f,W.U.AWAY),l=(0,h.Lt)(r.f,W.U.IS_AWAY_FRESH),c=t;if(s){if(a)if(l)c=t;else{var u=(0,N.Kl)(i,(function(e){return(0,h.Lt)(e.f,W.U.ONLINE)&&!(0,h.Lt)(e.f,W.U.AWAY)}));c=e.findIndex((function(e,t){return t>u&&(0,h.Lt)(e.f,W.U.AWAY)}))}}else c=i.findIndex((function(e){return!(0,h.Lt)(e.f,W.U.ONLINE)}));return c=Math.max(0,c),c=Math.min(e.length-1,c),(0,N.nK)(i,r,c)}return e}(l,u)}c.A.action(x.ph)(l);var f=(0,_.gt)(a);(null==f?void 0:f.length)&&c.A.action(x.B5)(s(f));var g=(0,_.sr)(a)||{},p={},b=!1;for(var E in g){var A=g[E];p[E]=s(A),b||(b=A!==p[E])}b&&c.A.action(x.VJ)(p);var y=null===(r=null===(n=a.miniProfile)||void 0===n?void 0:n.actions)||void 0===r?void 0:r.pinModelButton;(0,S.j)(y)&&o===y.username&&(0,F.w)({isPinned:!i}),t(i?null:o)},onError:function(){Z[o]=!1,Q(e).parents(".js-ls_thumb").addClass("__lst_visible"),t(null)}})}))}))]):(console.error("Invalid pin liveTab: ",s),[2])):[2]}}))}))}(0,t).then((function(e){e&&!U&&ee(e)})),!1}},a,C.slice(0,d).map((function(t,n){var o=t.tags&&I?t.tags.map((function(e){return m.find((function(t){return t.id===+e}))})).filter(Boolean):null,r=$===t.username;return(0,i.h)(T,{key:void 0,forwardRef:0===n?e.firstThumbRef:void 0,bMarker:!!p.mdrMarker,bProfileChecked:!!p.mdrProfileChecked,bQualityImprovement:!!p.mdrQualityImprovement,currentThumbType:y,lang:l,liveTab:P,modelCheckComment:t.check_comment,modelCultureLang:t.cult_lang,modelDebugInfoText:Me(t),modelDisplayName:t.display_name,modelEsid:t.esid,modelFlagsMask:t.f||0,modelGender:t.gender,modelIsSmmt:!!t.smmt,modelLang:t.lang,modelMarker:t.marker,modelMiscMarker:t.misc_marker,modelQualityImprovementReason:t.quality_improvement_reason,modelRoomStatus:t.room,modelSocialLinks:t.social,modelTags:o,modelThumbImage:t.thumb_image,modelTopic:t.topic,modelUsername:t.username,modelVerificationComment:t.verification_comment,modelVideoQuality:t.vq,modelVideoQualityImprovedKey:parseInt(t.is_video_quality_improved||"",10),modelViewersCount:Number(t.viewers),moderatorFlagsMask:t.mf||0,skinId:w,stopModelPinFading:ie,thumbSize:A,isAuthenticated:I,isHeartLiveBadge:!!M,isModerator:R,isPinAvailable:H,isPinFading:r,isSelectedThumb:U&&!!E&&E.toLowerCase()===t.username.toLowerCase(),isWlJoin:k})})))}),P.P)),oe=(0,o.memo)((function(e){var t=e.debugInfoText,n=e.modelDisplayName,o=e.profileUrl,r=e.socialLinks,s=e.viewersCount,a=e.isExclusiveShow;return(0,i.h)("div",{className:"lst_info"},!a&&t&&(0,i.h)("span",{className:"mls_debug"},t),(0,i.h)(se,{modelDisplayName:n,profileUrl:o,isExclusiveShow:a}),(0,i.h)(ae,{socialLinks:r,isExclusiveShow:a}),(0,i.h)(re,{viewersCount:s}))})),re=function(e){var t=e.viewersCount,n=t>1e4?"".concat(9999,"+"):t||0;return(0,i.h)("div",{className:"lsti_box lst_viewers"},n)},se=function(e){var t=e.modelDisplayName,n=e.profileUrl;return e.isExclusiveShow?(0,i.h)("a",{className:"lst_name",href:n,title:__("%model% profile",{model:t})},(0,i.h)("span",{className:"lst_nick"},t)):(0,i.h)("div",{className:"lsti_box lst_name"},(0,i.h)("a",{className:"lst_nick js-lst_plink",href:n,title:__("%model% profile",{model:t})},t))},ae=function(e){var t=e.isExclusiveShow,n=e.socialLinks,o=void 0===n?[]:n;return t?null:(0,i.h)("div",{className:"lsti_box lst_social"},(0,H.loopv)(o,(function(e){return(0,i.h)("div",{className:"lsts_item __sn_".concat(e)})})))},le=n(22641),ce=(0,o.memo)((function(e){var t=e.topic,n=e.lang,o=e.modelDisplayName,r=e.isModerator,s=e.qualityImprovementReason,a="";return t?a=(0,le.CN)(t,!0):void 0!==t&&(a=r&&"ru"===n?s:__("%modelname%'s chat",{modelname:o})),(0,i.h)("div",{className:"lst_topic lst_data"},a)})),ue=n(71293),de=n(20444),_e=n(10373),me=[Y.n.NEW_MODELS,Y.n.SPY],ve=(0,o.memo)((function(e){var t=e.gender,n=e.liveTab,r=e.tags,s=function(e,t){var n=e;return me.includes(n)&&(n=null),n===Y.n.ALL?null:n&&n!==Y.n.COUPLES&&(0,_e.n)(n)?n:de.A.isMaleGender(t)?Y.n.MALE:de.A.isTranssexualGender(t)?Y.n.TRANSSEXUAL:de.A.isCoupleGender(t)?Y.n.COUPLES:Y.n.FEMALE}(n,t);return(0,i.h)("div",{className:"lst_tags js-lst_tags lst_data bc_flex bc_flex_wrap"},r&&(0,i.h)(o.Fragment,null,r.length?(0,i.h)(o.Fragment,null,(0,H.loopv)(r,(function(e){return(0,i.h)(ue.T,{key:e.code,code:e.code,linkClassName:(0,L.n)({"bc_hash_tag lst_tag":!0,bc_lowercase:"hd-plus"!==e.code}),tagLiveTab:s,title:e.title?e.title:""})}))):(0,i.h)("div",{className:"lst_empty"},__("No tags"))))})),fe=(0,o.memo)((function(e){var t=e.modelDisplayName,n=e.thumbImageUrl,r=e.thumbSize,s=e.thumbType,a=e.isLoadImageFailed,l=e.onError,c=e.onLoad,u=null==n?void 0:n.replace(/\.[\w{}]+$/g,""),d=(0,o.useRef)(u);d.current=u;var _=function(){d.current&&c&&d.current===u&&c()},m=function(){d.current&&(d.current===u?l():(0,B._b)("Listing ThumbImage error ignore").error("race condition",{next:d.current,prev:u}))};if(!n)return null;var v=n;"big"===r&&(v=v.replace("xbig_lq","xbig"));var f=v.replace("{ext}","webp"),h=v.replace("{ext}","jpg");return n&&"live"===s?(0,i.h)("picture",{className:"lst_img",onError:m,onLoad:_},!a&&(0,i.h)("source",{srcSet:f,type:"image/webp"}),(0,i.h)("img",{alt:t,loading:"lazy",src:h,onError:m,onLoad:_})):(0,i.h)("img",{className:"lst_img lst_p_img",alt:t,loading:"lazy",src:h,onError:m})})),he=(0,o.memo)((function(e){var t,n=e.type,o=e.position,r=e.className,s=e.children;return(0,i.h)("div",{className:(0,L.n)((t={lst_bage:!0},t["__".concat(n)]=n,t["__pos_".concat(o)]=o,t[r]=r,t))},s)}));!function(e){e.ROOM_OFFLINE="offline",e.ROOM_AWAY="away",e.ROOM_PRIVATE="private",e.ROOM_FULL_PRIVATE="full_private",e.ROOM_GROUP="group",e.LIVE="live",e.LIVE_14="live14",e.NEW="new",e.MOBILE="mobile",e.HD_PLUS="hd_plus",e.HD_CAM="hd",e.VIBRATOY="vibratoy",e.VIBRATOY_EXTENDED="vibratoy_extended",e.PINNED="pin",e.FAN_BOOST="fb",e.FIRST_PLACE="fp",e.BONGA_ONLY="bc_only",e.LANG="lang",e.MODEL_LANG="m_lang",e.MODEL_SMMT="smmt",e.LAST_VIEWED="last_viewed",e.MDR_REAL_TIME="rt",e.MDR_REAL_TIME_SMALL="rt_s",e.MDR_OBS="obs",e.MDR_OBS_PENDING_DONATE="obs_pd",e.MDR_NEW="new_blue",e.MDR_PROFILE_NOT_CHECKED="mdr_not_checked",e.MDR_EMPTY_MARKER="mdr_empty_marker",e.MDR_CHECK_COMMENT="mdr_check_comment"}($||($={})),function(e){e.BOTTOM_LEFT="bl",e.BOTTOM_RIGHT="br",e.CENTER="c",e.TOP_LEFT="tl",e.TOP_RIGHT="tr"}(ee||(ee={}));var ge,pe=function(e){var t,n,r=e.bMarker,s=e.bProfileChecked,a=e.lang,l=e.modelCheckComment,c=e.modelCultureLang,u=e.modelFlags,d=e.modelIsSmmt,_=e.modelLang,m=e.modelMarker,v=e.modelUsername,f=e.modelVerificationComment,h=e.moderatorFlags,g=e.roomStatus,p=e.skinId,b=e.isHeartLiveBadge,E=e.isModerator,A=e.isPinAvailable,y=e.setOverflowVisible,T=E?ee.BOTTOM_LEFT:ee.TOP_RIGHT,P=!u.isExclusiveShow&&(u.isFirstPlace||u.isFanboost),S=ee.TOP_RIGHT,N=u.isExclusiveShow||u.isBongaOnly&&u.isOnline&&!u.isAway&&"public"===g;return d?(0,i.h)(he,{position:ee.TOP_LEFT,type:$.MODEL_SMMT},"Venus berlin live"):(0,i.h)(o.Fragment,null,u.isLastViewed&&(0,i.h)(Le,{position:ee.CENTER}),u.isOnline&&(0,i.h)(he,{position:ee.TOP_LEFT,type:b?$.LIVE_14:$.LIVE}),u.isNew&&(0,i.h)(he,{position:ee.TOP_LEFT,type:$.NEW}),E&&h.isNew&&(0,i.h)(he,{position:ee.TOP_LEFT,type:$.MDR_NEW}),u.isMobile&&(0,i.h)(he,{position:ee.TOP_RIGHT,type:$.MOBILE}),(u.isHdPlus||u.isHdCam)&&(0,i.h)(he,{position:ee.TOP_RIGHT,type:u.isHdPlus?$.HD_PLUS:$.HD_CAM}),!N&&c&&(0,i.h)(he,{className:(0,L.n)((t={},t["__ml_p __mlp_".concat(c)]=c,t["__ml_sec __mls_".concat(_)]=_,t)),position:S,type:$.MODEL_LANG}),!N&&!c&&_&&(0,i.h)(he,{className:(0,L.n)((n={},n["__ml_p __mlp_".concat(_)]=!0,n)),position:S,type:$.MODEL_LANG}),E&&h.isOBS&&(0,i.h)(he,{position:ee.TOP_RIGHT,type:h.isOBSPendingDonate?$.MDR_OBS_PENDING_DONATE:$.MDR_OBS}),P&&(0,i.h)(ye,{byMember:u.isFanboost,position:T}),!u.isExclusiveShow&&A&&(0,i.h)(be,{key:v,position:ee.BOTTOM_LEFT,isPinned:u.isPinned}),(!P||P&&"bl"!==T)&&N&&(0,i.h)(Ae,{lang:a,position:ee.BOTTOM_LEFT,isDefaultSkin:"def"===p}),!u.isExclusiveShow&&(u.isVibroToy||u.isVibroToyExtended)&&(0,i.h)(he,{position:ee.BOTTOM_RIGHT,type:u.isVibroToyExtended?$.VIBRATOY_EXTENDED:$.VIBRATOY}),E&&s&&!h.isProfileChecked&&(0,i.h)(he,{position:ee.BOTTOM_RIGHT,type:$.MDR_PROFILE_NOT_CHECKED},(0,i.h)("div",{className:"mdr_inner",title:"Not Checked"})),E&&r&&null===m&&(0,i.h)(he,{position:ee.BOTTOM_RIGHT,type:$.MDR_EMPTY_MARKER},(0,i.h)("div",{className:"mdr_inner",title:"Empty Marker"})),E&&s&&(l||f)&&(0,i.h)(Ie,{checkComment:l,position:ee.BOTTOM_RIGHT,verificationComment:f,setOverflowVisible:y}))},be=(0,o.memo)((function(e){var t=e.position,n=e.isPinned;return(0,i.h)(he,{className:(0,L.n)({"js-pin_model js-pt_l":!0,__active:n}),type:$.PINNED,position:t},(0,i.h)("div",{className:"lst_bage_hint js-pin_hint_wrp"},(0,i.h)("span",{className:"lst_bage_hint_default js-pin_hint_default"},n&&(0,i.h)("span",{className:"pin_hint"},__("Unpin model")),!n&&(0,i.h)("span",{className:"unpin_hint"},__("Pin model")))))})),Ee=["el","hu","jw","nl","pl","pt","ru","sv","tr","uk"],Ae=function(e){var t=e.position,n=e.isDefaultSkin,o=e.lang,r=Ee.includes(o);return(0,i.h)(he,{type:$.BONGA_ONLY,position:t,className:r?"__sm_txt":null},n?__("Bongacams only!"):__("Exclusive!"))},ye=function(e){var t=e.position;return e.byMember?(0,i.h)(he,{type:$.FAN_BOOST,position:t,className:"__pin_enabled"},(0,i.h)("img",{src:"".concat((0,p.ip)("@cdn_host"),"/images/svg/bc/listing/ls_bage_fb.svg"),alt:__("webcam models lifted up by fans"),className:"bage_fb_img"})):(0,i.h)(he,{type:$.FIRST_PLACE,position:t,className:"__pin_enabled"},(0,i.h)("img",{src:"".concat((0,p.ip)("@cdn_host"),"/images/svg/bc/listing/ls_bage_fp.svg"),alt:__("lifted up webcam models"),className:"bage_fp_img"}))},Le=function(e){var t=e.position;return(0,i.h)(he,{type:$.LAST_VIEWED,position:t},(0,i.h)("div",{className:"blv_btn"},(0,i.h)("span",{className:"blv_inner"},__("Continue Watching"))))},Te=n(22847),Pe=n(27655),Se=n(38654),Ne=n(1887),Ce=function(e){var t=e.profileUrl,n=e.roomStatus,i=e.isAway,r=e.isOnline,s=Se.h.isEnabled("status_bage_shadow_version"),a=(0,o.useCallback)((function(e){r&&!i&&n!==Pe.A.FULL_PRIVATE_CHAT||(e.preventDefault(),e.stopPropagation(),(0,Ne.o)(t))}),[i,r,t,n]),l=function(e,t,n,i){return e===Pe.A.FULL_PRIVATE_CHAT||!n||t?i?__("View %sn%Profile%sn_cl%",{sn:'',sn_cl:""}):__("View Profile"):e===Pe.A.GROUP_CHAT?i?__("Join Group %sn%Chat%sn_cl%",{sn:'',sn_cl:""}):__("Join Group Chat"):e===Pe.A.PRIVATE_CHAT?i?__("Spy Private %sn%Chat%sn_cl%",{sn:'',sn_cl:""}):__("Spy Private Chat"):null}(n,i,r,s),c=function(e,t,n){if(!n)return __("%_ls_%Offline");if(t)return __("%_ls_%Away");switch(e){case Pe.A.FULL_PRIVATE_CHAT:return __("%_ls_%Full-Private");case Pe.A.GROUP_CHAT:return __("%_ls_%Group");case Pe.A.PRIVATE_CHAT:return __("%_ls_%Private");default:return null}}(n,i,r),u=function(e,t,n){if(!n)return $.ROOM_OFFLINE;if(t)return $.ROOM_AWAY;switch(e){case Pe.A.FULL_PRIVATE_CHAT:return $.ROOM_FULL_PRIVATE;case Pe.A.GROUP_CHAT:return $.ROOM_GROUP;case Pe.A.PRIVATE_CHAT:return $.ROOM_PRIVATE;default:return null}}(n,i,r);return{text:l,title:c,type:u,isBadgeShadowVersion:s,handleButtonClick:a}},we=(0,o.memo)((function(e){var t,n=Ce(e),o=n.text,r=n.title,s=n.type,a=n.isBadgeShadowVersion,l=n.handleButtonClick;return s?(0,i.h)("div",{className:(0,L.n)((t={lst_bage:!0},t["__s_".concat(s)]=s,t.__status=!a,t.__status_sh=a,t))},Boolean(r)&&(0,i.h)("span",{className:"lstb_ttl"},r),!!o&&(0,i.h)(Te.E,{className:"lstb_btn",html:o,tagName:"span",onClick:l})):null})),Oe=$.MDR_CHECK_COMMENT,Ie=function(e){var t=e.position,n=e.checkComment,o=e.verificationComment,r=e.setOverflowVisible,s=[n,o].join(" ");return(0,i.h)(he,{type:Oe,position:t},(0,i.h)("div",{className:"mdr_check_comment_hint",title:"Click to copy comment",onClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),navigator.clipboard.writeText(s)},onMouseEnter:function(){return r(!0)},onMouseLeave:function(){return r(!1)}},(0,i.h)("div",{className:"lst_comment"},s)))},Me=function(e){return e.signup_country?"".concat(e.signup_country||""," ").concat(+(+e.bwq>900&&+e.rank>25))+" s".concat(e.camscore_sng||"n\\a"," a").concat(e.camscore_north_america||"n\\a"," e").concat(e.camscore_europe||"n\\a")+" w".concat(e.camscore_rest_of_world||"n\\a"," ").concat(e.is_professional?" p":" a")+" ".concat(e.is_usa_geo||"n\\a"," ").concat(e.is_proxy||"n\\a"):""},Re=function(){(0,o.useEffect)((function(){V.instance.removePreviews()})),(0,o.useEffect)((function(){return V.instance.initPreview(".js-ls_thumb"),function(){V.instance.destroy()}}),[])},ke=function(e,t){(0,o.useEffect)((function(){var n=0,i=function(){window.clearTimeout(n),n=null,t()};return e&&setTimeout(i,1e3),function(){e&&i()}}),[e,t])},Be=function(){return(0,i.h)("div",{className:"lst_preview_player_container"})},Ue=(0,r.Ng)((function(e){return{listingBlocks:(0,_.sr)(e),listingBlocksPinnedModels:(0,_.gt)(e),listingChatNavigationCurrentBlocks:d(e),listingInitialBlocks:(0,_.Cd)(e),listingIsLoading:(0,a.sd)(e),listingSelectedThumb:(0,m.dn)(e),liveTab:(0,u.Hh)(e),isModerator:e.isModerator}}))((0,o.memo)((function(e){var t=e.listingBlocks,n=e.liveTab,r=e.isModerator;Re(),(0,o.useEffect)((function(){window.chat&&window.chat.performerData&&c.A.action(l.Eb)(window.chat.performerData.username)}),[]);var s=$e(e);return(0,B._b)("Listing render Models Blocks").log(s),t&&s&&!s.length?(0,i.h)(Dt,null):s?(0,i.h)("div",null,s.map((function(e,t){var o=e.blockName,s=e.models;return(0,i.h)(nt,{key:o+t,blockName:o,liveTab:n,models:s,isModerator:r})}))):null}),P.P)),He=n(5926),De=n(85747),Ve=n(25738),Fe=n(56119);!function(e){e.CAM_SCORE="camscore",e.HD_PlUS="hd-plus",e.HOTTEST="hottest",e.INTERACTIVE="interactive",e.NEWCOMERS="newcomers",e.BIG_TITS="big-tits",e.BLONDE="blonde",e.BRUNETTE="brunette",e.RUSSIAN="russian",e.TEENS="teens",e.ANAL_SEX="anal-sex",e.BEARS="bears",e.BIG_DICK="big-dick",e.MUSCULAR="muscular",e.BISEXUAL_COUPLES="bisexual-couples",e.LATIN_COUPLES="latin-couples",e.NASTY_COUPLES="nasty-couples",e.SAME_GENDER_COUPLES="same-gender-couples",e.ANAL="anal",e.BIG_COCK="big-cock",e.SMALL_TITS="small-tits",e.TOYS="toys"}(ge||(ge={}));var xe=[ge.HOTTEST,ge.NEWCOMERS,ge.INTERACTIVE,ge.HD_PlUS,ge.CAM_SCORE,ge.RUSSIAN,ge.BLONDE,ge.BRUNETTE,ge.TEENS,ge.BIG_TITS,ge.ANAL_SEX,ge.BIG_DICK,ge.BEARS,ge.MUSCULAR,ge.NASTY_COUPLES,ge.SAME_GENDER_COUPLES,ge.BISEXUAL_COUPLES,ge.LATIN_COUPLES,ge.ANAL,ge.TOYS,ge.SMALL_TITS,ge.BIG_COCK],Ge=[Y.n.MALE,Y.n.TRANSSEXUAL,Y.n.COUPLES,Y.n.NEW_MODELS,Y.n.SPY],We=[ge.CAM_SCORE,ge.HOTTEST,ge.NEWCOMERS,ge.INTERACTIVE,ge.HD_PlUS],Ye=[ge.NASTY_COUPLES,ge.SAME_GENDER_COUPLES,ge.BISEXUAL_COUPLES,ge.LATIN_COUPLES],Xe=[ge.ANAL,ge.TOYS,ge.SMALL_TITS,ge.BIG_COCK],je=[ge.ANAL_SEX,ge.BEARS,ge.MUSCULAR,ge.BIG_DICK],Ke=[ge.RUSSIAN,ge.BLONDE,ge.BRUNETTE,ge.TEENS,ge.BIG_TITS],qe=function(e){return Ge.includes(e)?e:Y.n.FEMALE},ze=function(e){switch(e){case Y.n.COUPLES:return(0,v.fX)((0,v.fX)([],We,!0),Ye,!0);case Y.n.FEMALE:return(0,v.fX)((0,v.fX)([],We,!0),Ke,!0);case Y.n.MALE:return(0,v.fX)((0,v.fX)([],We,!0),je,!0);case Y.n.TRANSSEXUAL:return(0,v.fX)((0,v.fX)([],We,!0),Xe,!0);default:return(0,v.fX)([],We,!0)}},Je=function(e,t,n,i){if(!t||!e.length)return null;var o={},r=X.A.getList().includes(i);(0,B._b)("Listing effect ModelsBlocks calcModelsData").log({availableBlocks:e,blocksDataScheme:t,pinnedModels:n,liveTab:i});for(var s=function(e){var i=t[e];if(!i||!i.length)return"continue";if(n&&n.length){var s=n.map((function(e){return e.username})),a=i.filter((function(e){var t=e.username;return!s.includes(t)}));if(a.length!==i.length&&(i=a),0===Object.keys(o).length&&r){var l=n.filter((function(e){var t=(0,h.Lt)(e.f,W.U.AWAY),n=(0,h.Lt)(e.f,W.U.IS_AWAY_FRESH);return!(t&&!n)}));if([ge.CAM_SCORE,ge.HOTTEST].includes(e))i=(0,v.fX)((0,v.fX)([],l,!0),i,!0);else{var c=xe.indexOf(e),u=l.filter((function(e){return e.blocks.includes(c)}));u.length&&(i=(0,v.fX)((0,v.fX)([],u,!0),i,!0))}}}o[e]=i},a=0,l=e;a0;i--){var o=Math.floor(Math.random()*(i+1));t=[n[o],n[i]],n[i]=t[0],n[o]=t[1]}return n},Ze=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=Y.n.FEMALE);var n,i,o=(0,N.o0)((0,v.fX)((0,v.fX)([],e,!0),We,!0));n=o,i=ze(t),void 0===n&&(n=[]),void 0===i&&(i=[]),o=n.filter((function(e){return i.includes(e)})),o=(0,v.fX)((0,v.fX)([],Qe(o),!0),Qe(function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.filter((function(e){return!t.includes(e)}))}(We,o)),!0);var r=function(e){return e===Y.n.COUPLES?[ge.CAM_SCORE,ge.HOTTEST,ge.INTERACTIVE,ge.NASTY_COUPLES,ge.BISEXUAL_COUPLES]:e===Y.n.TRANSSEXUAL?[ge.CAM_SCORE,ge.HOTTEST,ge.ANAL,ge.BIG_DICK]:e===Y.n.MALE?[ge.CAM_SCORE,ge.HOTTEST,ge.INTERACTIVE,ge.ANAL_SEX]:e===Y.n.FEMALE?[ge.CAM_SCORE,ge.HOTTEST,ge.RUSSIAN,ge.BLONDE,ge.TEENS,ge.BIG_TITS]:[]}(t);return o=o.sort((function(e,t){return Math.random()>.35?Number(r.includes(t))-Number(r.includes(e)):0})),o},$e=function(e){var t=e.listingBlocks,n=e.listingBlocksPinnedModels,i=e.listingChatNavigationCurrentBlocks,r=e.listingInitialBlocks,s=e.listingSelectedThumb,a=e.liveTab,l=(0,o.useState)(r||[]),u=l[0],d=l[1],_=(0,o.useState)(Je(u,t,n,a)),m=_[0],f=_[1],h=(0,o.useRef)(s),g=(0,o.useRef)(a),p=(0,o.useRef)(!(null==u?void 0:u.length));return(0,o.useLayoutEffect)((function(){var e=s&&h.current!==s,n=g.current!==a;if((0,B._b)("Listing effect ModelsBlocks availableBlocks").log({initialCalcRef:p,chathostBlocksNumber:i,isChathostChanged:e,isLiveTabChanged:n}),e||n||p.current){h.current=s,g.current=a,p.current=!1;var o=function(e,t){if(t&&t.length){var n=t.map((function(e){return xe[Number(e)]})).filter(Boolean);return Ze(n,e)}return Ze(ze(e),e)}(qe(a),i),r=o.filter((function(e){var n;return(null===(n=t[e])||void 0===n?void 0:n.length)>=De.hg}));r.length>=3?d(r):d((0,v.fX)((0,v.fX)([],r,!0),o.filter((function(e){return!r.includes(e)})),!0))}}),[r,a,s,i,t]),(0,He.A)((function(){f(Je(u,t,n,a))}),[u,t,n,a]),(0,o.useEffect)((function(){return function(){return c.A.action(x.Xv)(null)}}),[]),(0,B._b)("Listing effect ModelsBlocks render").log({availableBlocks:u,blocksDataScheme:t,initialBlocks:r,modelsData:m,pinnedModels:n}),(0,o.useMemo)((function(){return u?u.filter((function(e){var t;return null===(t=null==m?void 0:m[e])||void 0===t?void 0:t.length})).slice(0,De.EO).map((function(e){return{blockName:e,models:m[e]}})):null}),[u,m])},et=n(26580),tt=n(53336),nt=(0,o.memo)((function(e){var t=e.blockName,n=e.liveTab,o=e.models,r=e.isModerator,s=function(e,t){switch(void 0===t&&(t=Y.n.FEMALE),e){case ge.ANAL:return __("Anal Penetration");case ge.ANAL_SEX:return __("Gay Anal Play");case ge.BEARS:return __("Hairy Guys");case ge.BIG_COCK:return __("Big Dick");case ge.BIG_DICK:return __("Big Dicks");case ge.BIG_TITS:return __("Big tits");case ge.BISEXUAL_COUPLES:return __("Bisexual Couples");case ge.BLONDE:return __("Seductive Blondes");case ge.BRUNETTE:return __("Nasty Brunettes");case ge.CAM_SCORE:return __("Camscore");case ge.HD_PlUS:return __("HD+ Quality Sex Shows");case ge.HOTTEST:return __("Hottest Sex Shows Live");case ge.INTERACTIVE:return __("Interactive (Lovense, Fuck Machine, etc)");case ge.LATIN_COUPLES:return __("Spicy Latin Couples");case ge.MUSCULAR:return __("Muscular Guys");case ge.NASTY_COUPLES:return __("Nasty Couples");case ge.NEWCOMERS:return t===Y.n.FEMALE?__("%_female_%Sexiest Newcomers"):__("Sexiest Newcomers");case ge.RUSSIAN:return __("Russian Girls");case ge.SAME_GENDER_COUPLES:return __("Same Gender Couples");case ge.SMALL_TITS:return __("Small Tits");case ge.TEENS:return __("Kinky Teens");case ge.TOYS:return __("Sex Toys")}}(t),a=function(e,t){switch(void 0===t&&(t=Y.n.FEMALE),e){case ge.ANAL:return"#svg_ls_block_anal_penetration";case ge.ANAL_SEX:return"#svg_ls_block_gay_anal_play";case ge.BEARS:return"#svg_ls_block_hairy_guys";case ge.BIG_COCK:case ge.BIG_DICK:return"#svg_ls_block_big_dicks";case ge.BIG_TITS:return"#svg_ls_block_big_tits";case ge.BISEXUAL_COUPLES:return"#svg_ls_block_bisexual_couples";case ge.BLONDE:return"#svg_ls_block_seductive_blondes";case ge.BRUNETTE:return"#svg_ls_block_nasty_brunettes";case ge.CAM_SCORE:return"#svg_ls_block_camscore";case ge.HD_PlUS:return"#svg_ls_block_hd";case ge.HOTTEST:return"#svg_ls_block_hottest";case ge.INTERACTIVE:return"#svg_ls_block_interactive";case ge.LATIN_COUPLES:return"#svg_ls_block_spicy_latin_couples";case ge.MUSCULAR:return"#svg_ls_block_muscular_guys";case ge.NASTY_COUPLES:return"#svg_ls_block_nasty_couples";case ge.NEWCOMERS:return t===Y.n.FEMALE||t===Y.n.TRANSSEXUAL?"#svg_ls_block_lips":"#svg_ls_block_newcomers";case ge.RUSSIAN:return"#svg_ls_block_playful_russians";case ge.SAME_GENDER_COUPLES:return"#svg_ls_block_same_gender_couples";case ge.SMALL_TITS:return"#svg_ls_block_small_tits";case ge.TEENS:return"#svg_ls_block_kinky_teens";case ge.TOYS:return"#svg_ls_block_sex_toys"}}(t),l=function(e,t){var n=(0,Fe.e)(e),i=t===ge.HOTTEST?Ve.Gs.POPULAR:t,o=Ve.qb.indexOf(i);if(o>-1)return"/".concat(n,"?sorting=").concat(Ve.qb[o]);var r=xe.indexOf(t);return r>-1?"/".concat(n,"/blocks/").concat(xe[r]):"/".concat(n)}(qe(n),t);return(0,i.h)("div",{key:t,className:"like-yt-block"},(0,i.h)("span",{className:"lyt-hdr js-lyt-hdr bc_inline_flex bc_flex_items_center","data-href":l,"data-livetab":n,onClick:function(){r&&location.assign(l)}},(0,i.h)(et.A,{group:"lt_icon",icon:a,url:tt.TM}),(0,i.h)("span",null,s)),(0,i.h)(ie,{className:"__blocks",limit:De.hg,models:o}))})),it=n(241),ot=n(43512),rt=n(99353),st=n(43284),at=n(58236),lt=function(e,t){var n=e||{},i=n.liveTab,o=n.categoryName,r=n.block,s=n.tag;return t&&function(e){return(0,p.XH)(e,(0,p.ip)("@homepage"))}(t)?"js-spa_homepage":o?"js-lscl_item":s?"js-tags_link":r?"js-block_link":i?"js-livetab_link":null},ct=(0,o.memo)((function(e){var t=e.title,n=e.url,r=e.isActive,s=function(e){var t=e.name,n=e.spaOptions,i=e.url,r=e.onMount,s=void 0===r?R.noop:r,a=n||{},l=a.categoryName,c=a.liveTab,u=(0,o.useRef)(null);return(0,at.u)((function(){s(t,u.current)})),{rootRef:u,itemName:l||t,itemType:c,linkSelector:n?lt(n,i):"js-lscl_item"}}(e),a=s.rootRef,l=s.itemName,c=s.itemType,u=s.linkSelector;return(0,i.h)("div",{ref:a,className:(0,st.A)(["lscl_item_wrp js-lscl_item_wrp",r&&"__first",u])},(0,i.h)("a",{className:(0,st.A)(["sld_item lscl_item __inner",r&&"__active"]),"data-name":l,"data-type":c,href:n},t))})),ut=n(31872),dt=function(e,t){var n=e.children,i=e.containerWidth,r=e.isSliderDynamic,s=e.isWithSlider,a=(0,o.useState)(0),l=a[0],c=a[1],u=(0,o.useState)(null),d=u[0],_=u[1],m=function(e,t,n,i){return n&&(!i||Boolean(e)&&e>=t)}(l,i,s,r),v=(0,o.useCallback)((function(e){e&&(t&&"object"==typeof t&&(t.current=e),_(e))}),[t]);return(0,o.useLayoutEffect)((function(){if(s&&r&&d){var e=(t=d).children.length?Array.from(t.children).reduce((function(e,t){return e+Number(t.offsetWidth)}),0):t.offsetWidth;c(e)}var t}),[n,s,r,d]),{setTrackElRef:v,isRowWithSlider:m}},_t=(0,o.forwardRef)((function(e,t){var n=e.children,r=dt(e,t),s=r.setTrackElRef,a=r.isRowWithSlider,l=(0,o.useCallback)((function(e){var t=e.stateSlider,n=e.handleClickNext,r=e.handleClickPrev;return(0,i.h)(o.Fragment,null,(0,i.h)("button",{className:(0,L.n)({"sld_btn lsc_btn __prev":!0,__hidden:!t.isPrevShow}),onClick:r},(0,i.h)(et.A,{group:"cb_icon",icon:"#svg_icon_arrow_st_left",url:tt.ed})),(0,i.h)("button",{className:(0,L.n)({"sld_btn lsc_btn __next":!0,__hidden:!t.isNextShow}),onClick:n},(0,i.h)(et.A,{group:"cb_icon",icon:"#svg_icon_arrow_st_right",url:tt.ed})))}),[]);return a?(0,i.h)(ut.Ap,{ref:s,className:"lsc_container",renderButtons:l,isResetPositionOnChildrenChange:!0},n):(0,i.h)(ut.tp,{ref:s,className:"lsc_container __no_slider"},n)})),mt=(0,o.memo)(_t),vt=(0,o.memo)((function(e){var t=e.rowRef,n=e.activeCategory,o=e.categories,r=e.rowNumber,s=e.thumbsPerRowCount,a=e.isTransitionDisabled,l=e.onCategoryMount;return(0,B._b)("Listing render Categories Row").log({categories:o,rowNumber:r,thumbsPerRowCount:s}),(0,i.h)("section",{className:(0,st.A)(["ls_catrow",a&&"__no_transition"]),style:{gridRow:r}},(0,i.h)(mt,(0,v.Cl)({},e,{ref:t}),o.map((function(e){return(0,i.h)(ct,{key:e.name,name:e.name,spaOptions:e.spaOptions,title:e.title,url:e.url,isActive:e.name===(n||De.cr),onMount:l})}))))}),P.P),ft=n(75094),ht=function(e){var t=e.block,n=e.category,i=e.categoryName,o=e.liveTab,r=e.sorting,s=e.tag;return(void 0===o||!(0,ft.e)(o))&&(!!(void 0===n||n&&"object"==typeof n)&&((void 0===t||"string"==typeof t)&&((void 0===i||"string"==typeof i)&&((void 0===r||"string"==typeof r)&&(void 0===s||"string"==typeof s)))))};function gt(e,t,n){return t+n[Math.min(e,n.length-1)]+1}var pt=(0,r.Ng)((function(e){return{listingActiveCategory:(0,G.em)(e),listingCategoriesRowConfig:(0,G._$)(e),listingCategoriesRowList:(0,G.yI)(e),listingInternalLinks:(0,a.E2)(e),listingIsLoading:(0,a.sd)(e),listingLoadedModelsCount:(0,_._n)(e),listingThumbRowsCount:(0,m.A)(e),listingThumbsPerRowCount:(0,m.Vx)(e),totalListingThumbRowsCount:(0,m.g6)(e),isListingCategoriesRowAvailable:(0,G.Ht)(e),isListingInternalLinksAvailable:(0,a.$E)(e)}}))((0,o.memo)((function(e){var t=e.listingActiveCategory,n=e.listingCategoriesRowConfig,r=e.listingCategoriesRowList,s=e.listingIsLoading,a=void 0!==s&&s,l=e.listingThumbRowsCount,c=e.listingThumbsPerRowCount,u=void 0===c?0:c,d=e.isListingCategoriesRowAvailable,_=e.isListingInternalLinksAvailable,m=!!n&&n.withSlider,f=(0,o.useState)(0),h=f[0],g=f[1],p=(0,o.useState)(!0),b=p[0],E=p[1],A=(0,o.useRef)(null),y=(0,o.useRef)(),L=(0,it.Z)(t),T=(0,it.Z)(m),P=(0,o.useRef)({}),S=(0,o.useReducer)((function(e){return e+1}),0),N=S[0],C=S[1],w=(0,o.useMemo)((function(){return(0,rt.s)(C,30)}),[]),O=function(e){var t=e.categoriesWidthMapRef,n=e.containerWidth,i=e.props,r=e.renderId,s=i.listingActiveCategory,a=i.listingCategoriesRowConfig,l=i.listingCategoriesRowList,c=i.listingInternalLinks,u=i.listingLoadedModelsCount,d=i.listingThumbRowsCount,_=i.totalListingThumbRowsCount,m=i.isListingCategoriesRowAvailable,f=i.isListingInternalLinksAvailable,h=(null==a?void 0:a.withSlider)||!1,g=!m&&f,p=(0,o.useRef)(g?0:1),b=(0,o.useMemo)((function(){return{name:De.cr,title:De.HS,url:(null==a?void 0:a.allPageUrl)||"",isActive:(null==a?void 0:a.allPageIsActive)||!1,isHidden:(null==a?void 0:a.allPageIsHidden)||!1}}),[a]),E=(0,o.useMemo)((function(){return null==l?void 0:l.filter((function(e){return!e.isHidden}))}),[l]),A=(null==E?void 0:E.length)||0,y=(0,o.useMemo)((function(){return null==E?void 0:E.map((function(e){var n,i=e.name;return null===(n=t.current)||void 0===n?void 0:n[i]}))}),[E,t,r]),L=(0,o.useMemo)((function(){return(null==a?void 0:a.renderTemplate)||[4]}),[null==a?void 0:a.renderTemplate]),T=(0,o.useMemo)((function(){if(!d)return[];for(var e=[],t=0,n=0;n<=d+e.length+1&&(n=gt(t,n,L),t++,!(n<=d+e.length+1&&(e.push(n),g))););return f&&(e.length<2&>(t,n,L)>_+e.length+1?(0===e.length&&u>2&&e.push(_+1),p.current=0):p.current=g?0:1),e}),[d,f,L,g,_,u]);return(0,o.useMemo)((function(){var e=0,i=p.current;return T.map((function(o,r){if(r===i&&(null==c?void 0:c.length))return{categories:(a=c,void 0===a&&(a=[]),a.map((function(e){var t=e.block,n=e.category,i=e.liveTab,o=e.tag,r=e.title,s=e.url;if(!r||!s)return null;var a={block:t,categoryName:n,liveTab:(0,ft.e)(i)?i:void 0,tag:o};return{name:r,spaOptions:ht(a)?a:void 0,title:r,url:s}})).filter(Boolean)),rowIndex:r,rowNumber:o,isSliderDynamic:!0};var a,l=[];if(r%3==0){if(s){var u=null==E?void 0:E.find((function(e){return e.name===s}));u&&l.push(u)}l.push(b)}if(null==y?void 0:y.every(Boolean))for(var d=l.filter(Boolean).reduce((function(e,n){var i,o=n.name;return e+((null===(i=t.current)||void 0===i?void 0:i[o])||0)}),0),_=h?De.YB:0;d0;){var m=null==E?void 0:E[e];m&&m.name!==s&&(l.push(m),d+=(null==y?void 0:y[e])||0),e=(e+1)%A}else 0===r&&(l=(0,v.fX)([b],E||[],!0));return{categories:l,rowIndex:r,rowNumber:o}})).filter((function(e){var t;return Boolean(null===(t=e.categories)||void 0===t?void 0:t.length)}))}),[T,c,s,b,E,h,n,t,r,A,y])}({categoriesWidthMapRef:P,containerWidth:h,props:e,renderId:N}),I=(0,o.useCallback)((function(){if(A.current){var e=A.current.offsetWidth;e&&(g(e),w())}}),[w]),M=(0,o.useCallback)((function(e,t){if(t&&!P.current[e]){var n=t.offsetWidth;n&&(P.current[e]=n)}}),[]);return(0,o.useLayoutEffect)((function(){L!==t||T!==m?(clearTimeout(y.current),E(!0),y.current=setTimeout((function(){E(!1),y.current=void 0}),200)):y.current||E(!1)}),[m,T,L,t]),(0,ot.G)(I,Boolean(A.current),200),(0,o.useLayoutEffect)(I,[I,l]),(0,B._b)("Listing render Categories List").log({categoriesChunks:O,containerWidth:h,listingCategoriesRowConfig:n,listingCategoriesRowList:r,listingThumbRowsCount:l,widthMap:P.current,isListingCategoriesRowAvailable:d}),(d&&n&&n.isActive||_)&&l?(0,i.h)(o.Fragment,null,O.map((function(e,n){return(0,i.h)(vt,{key:e.rowNumber,rowRef:0===n?A:void 0,activeCategory:t,categories:e.categories,containerWidth:h,listingIsLoading:a,rowNumber:e.rowNumber,thumbsPerRowCount:u,isSliderDynamic:e.isSliderDynamic,isTransitionDisabled:b,isWithSlider:m||e.isSliderDynamic,onCategoryMount:M})}))):null}),P.P)),bt=n(65683),Et=n(81363),At=n(64254),yt=n(89414),Lt=n(35172),Tt=n(46025),Pt=function(e){return(0,Lt.K)(location.href,"page",e>1?String(e):null)},St=function(e,t){return e<=1?0:Math.round((e-1)*t)||0},Nt=(0,o.memo)((function(e){var t=e.currentPage,n=e.listingLoaderLimit,r=e.pageRangeDisplayed,s=void 0===r?3:r,a=e.totalPagesCount,l=void 0===a?0:a,u=(0,o.useCallback)((function(e){var t=St(e,n);Et.k.load({offset:t,type:yt.w.MAIN}).then((function(t){t.success&&((0,At.GC)({},document.title,Pt(e)),window.scroll(0,0))}))}),[n]);if((0,Tt.u)((function(){var e=parseInt((0,Lt.Zy)("page")||"")||0;if(e){var t=St(e,n);t&&c.A.action(bt.Ni)(t)}})),(0,o.useLayoutEffect)((function(){l&&t>l&&u(l)}),[l,t,u]),(0,o.useEffect)((function(){(0,At.G$)({},document.title,Pt(t))}),[t]),(0,B._b)("Listing render Navigation Paginate").log({currentPage:t,totalPagesCount:l}),t<1||l<=1)return null;var d=Math.max(t-s,1),_=Math.min(t+s,l),m=(0,N.y1)(d,Math.max(0,t-d)),v=(0,N.y1)(t+1,Math.max(0,_-t));return(0,i.h)("div",{className:"mls_pager"},(0,i.h)("div",{className:"mls_pager_content"},(0,i.h)("span",{className:(0,L.n)({disabled:1===t,mls_pager_prev_page:!0})},(0,i.h)(Ct,{className:"prev",label:"«",pageNumber:t-1,title:__("Previous Page"),urlBuilder:Pt,onClick:u}),d>1&&(0,i.h)(Ct,{className:"first",pageNumber:1,title:__("First Page"),urlBuilder:Pt,onClick:u})),d>s-1&&(0,i.h)(wt,{className:"mls_prev_separator",idDisabled:1===t}),(0,i.h)(Ot,{pages:m,urlBuilder:Pt,onClick:u}),(0,i.h)("span",{className:"mls_pager_current_page"},t),(0,i.h)(Ot,{pages:v,urlBuilder:Pt,onClick:u}),_=l,mls_pager_next_page:!0})},_=n,m=!c&&!_&&r/De.IE%De.wT>0,f=function(e,t){return(0,o.useMemo)((function(){if(e.current){var t=e.current.getBoundingClientRect();return{height:t.height,top:t.top+window.pageYOffset}}return{}}),(0,v.fX)([e],t,!0))}(t,[s,a]),h=~~(f.height+f.top)||0,g=(0,o.useCallback)((function(){_||d.current||((0,B._b)("Listing NavigationInfiniteScroll load").log({listingLoaderLimit:r}),u(!0),d.current=!0,Et.k.load({type:yt.w.MAIN,limit:r+De.IE}).then((function(){u(!1),d.current=!1})))}),[_,r]);return function(e,t,n,i){void 0===t&&(t=!0),void 0===n&&(n=20);var r=(0,o.useRef)(window.pageYOffset),s=(0,o.useCallback)((function(){r&&(i?("top"===i&&window.pageYOffsetr.current)&&e():e(),r.current=window.pageYOffset)}),[r,i,e]);(0,o.useEffect)((function(){var e=(0,rt.s)(s,n);return t&&window.addEventListener("scroll",e),function(){t&&window.removeEventListener("scroll",e)}}),[t,n,s])}((0,o.useCallback)((function(){d.current||window.pageYOffset+window.innerHeight+300>h&&g()}),[h,g]),m,20,"down"),(0,B._b)("Listing render Navigation InfiniteScroll").log(c,r,{listingOffsetTop:h,isAutoLoadAvailable:m,isAllModelsLoaded:_,listingThumbRowsCount:s,offsetTop:window.pageYOffset+window.innerHeight+300}),(0,i.h)(o.Fragment,null,!_&&!c&&(0,i.h)(Mt,{onClick:g}))}),P.P)),Mt=(0,o.memo)((function(e){var t=e.onClick;return(0,i.h)("div",{id:"mls_pager_bottom",className:"mls_pager_actions",style:{display:"block",clear:"both"}},(0,i.h)("a",{href:"#",className:"bt30 bt30_green",onClick:function(e){e.preventDefault(),t()}},__("Show next")))})),Rt=n(93541),kt=n(17435),Bt=n(23826),Ut=(0,r.Ng)((function(e){return{listingCategoriesRowAvailable:(0,G.Ht)(e),listingIsLoading:(0,a.sd)(e),listingLoaderLimit:(0,s.Mk)(e),listingLoaderPagerPage:(0,s.B0)(e),listingLoaderPagerTotalPagesCount:(0,s.Ze)(e),listingLoaderTotalCount:(0,s.wH)(e),listingLoaderType:(0,s.v1)(e),listingModels:(0,_.mq)(e),listingThumbSize:(0,m.Ng)(e),isListingInternalLinksAvailable:(0,a.$E)(e),isModerator:e.isModerator}}))((0,o.memo)((function(e){var t=e.listingCategoriesRowAvailable,n=e.listingLoaderLimit,r=e.listingLoaderPagerPage,s=e.listingLoaderPagerTotalPagesCount,a=e.listingLoaderTotalCount,u=e.listingLoaderType,d=e.listingModels,_=e.listingThumbSize,m=e.isListingInternalLinksAvailable,v=e.isModerator,f=(0,o.useRef)(null),h=(0,o.useRef)(null);Re(),function(e,t,n,i){void 0===e&&(e=0);var r=(0,o.useState)(e),s=r[0],a=r[1],u=(0,o.useCallback)((function(){if(i.current&&n.current){var e=(0,Rt.m)(n.current,i.current);e&&a(e)}}),[a,n,i]);(0,o.useLayoutEffect)((function(){s&&c.A.action(l.qU)(s)}),[s]),(0,o.useLayoutEffect)(u,[t]),(0,ot.G)(u,!0,80)}(0,_,f,h),(0,o.useLayoutEffect)((function(){if((0,B._b)("Listing effect ModelsMain restoreScroll").log(kt.A.isRestoring),kt.A.isRestoring){var e=kt.A.restore();window.scrollTo(window.scrollX,e.scrollTop||0),kt.A.reset()}Bt.z.hide()}),[]),(0,B._b)("Listing render Models Main").log({listingLoaderPagerPage:r,listingLoaderPagerTotalPagesCount:s,listingLoaderTotalCount:a,listingLoaderType:u,listingModels:d});var g=d.length>=a||r>=s,p=t||m;return(0,i.h)(i.FK,null,d.length>0?(0,i.h)(ie,{containerRef:f,firstThumbRef:h,className:(0,L.n)({__category_rows:p,__filled_row:!v&&!g}),models:d},u===ne.J.INFINITE_SCROLL&&p&&(0,i.h)(pt,null)):(0,i.h)(Dt,null),u===ne.J.INFINITE_SCROLL&&d.length>0&&n',a2:""})))}),P.P)),Vt=n(22336),Ft=n(59614),xt=n(3484),Gt=n(56846),Wt=n(52293),Yt=n(16080),Xt=n(7098),jt=n(956),Kt=n(80554),qt=n(52276),zt=n(28534),Jt=n(44019),Qt=n(11227),Zt=n(2e3),$t=n(62271),en=n(14919),tn=n(41669),nn=n(80786),on=n(98928),rn=n(72418),sn=n(41669),an=function(e){var t,n,i,o;e.preventDefault(),e.stopPropagation();var r=e.target,d=e.currentTarget;if(Zt.x.instance.navigateRequest(d.href),!r.classList.contains("lst_tag")&&!r.classList.contains("js-lst_plink")){c.A.action(Gt.bZ)();var _=document.getElementById("mls_chatconsole");if(!(null==_?void 0:_.classList.contains("view4cam"))){var m=c.A.getState(),f=m.chatHost,h=m.skinName,p=m.isAuthenticated,E=m.isChatMounted,A=m.isModerator,y=m.isSPAProcessing,L=(0,s.v1)(m)===ne.J.BLOCKS,T=(0,u.Hh)(m),P=(0,G.em)(m),S=(0,G.yZ)(m),N=(0,G.vM)(m),C=(0,G.K2)(m),w=[T||"",!L&&!N&&P||"",!L&&!N&&S||""].join(".");if((0,q.Hk)("ls03",w,{expires:1,expiresType:"day",path:"/",domain:(0,rn.getRealDomain)()}),!y&&(E||A)){var O=d.closest(".js-ls_thumb"),I=null==O?void 0:O.querySelector("[data-chathost]");if(I){var M=I.getAttribute("href"),R=I.getAttribute("data-chathost"),k=I.getAttribute("data-name")||"";if(M&&R){var B=b.q.isEnabled(g.i.WL_JOIN_POPUP_CUSTOM_FLOW),U=!!document.querySelector(".js-tubechat_header"),H=(0,a.yH)(m),D=(0,a.Sh)(m),F=(0,a.ip)(m),x="visible"===(null===(t=window.chat)||void 0===t?void 0:t.visibility);if(D||U||F)location.href=M;else if(h!==te.A._18PLUSCAMS||p){if(B)return(0,zt.y)(qt.L.JOIN_POPUP_MANUAL,{customData:{redirectUrl:M},force:!0});if(H)location.href=M;else{var W=Array.from(document.querySelectorAll(".video_poster")),Y=f&&f.username!==R,X=Yt.U.instance.enabled&&document.body.classList.contains("chat_collapsed"),j=!1,K=function(){j||(j=!0,window.scrollTo(0,0),Bt.z.hide(),c.A.setState({isSPAProcessing:!1}))};if(V.instance.setAsVideoPlayerPreview(R),$t.h.instance.fetchingChathost=R,c.A.action(Ft.xH)(!0),L&&(c.A.setState({isSPAProcessing:!0}),setTimeout((function(){c.A.setState({isSPAProcessing:!1})}),10),P&&c.A.action(xt.TM,!0)(null),S&&c.A.action(xt.Rk,!0)(null),N&&c.A.action(xt.e_,!0)(null),C&&jt.x.isAttached&&c.A.action(Wt.e,!0)()),c.A.action(Vt.oy)(null),c.A.action(Vt._7)({listingLoaderSettings:(0,v.Cl)({block:N,liveTab:T},L?{}:{categoryName:P,flFilterState:C,tag:S})}),c.A.action(l.Eb)(R),f||on.z.instance.restoreSoundVolume(),Y){nn.A.instance.closeStream(),W.forEach((function(e){e.setAttribute("style",""),e.innerHTML=""}));var z=document.getElementById("pp_ve_container");z&&(z.classList.remove("__hidden"),z.innerHTML=""),(0,Qt.pl)("bGotoPrivate","bGotoVoyeur","bGotoGroup"),(0,Jt.D)(),nn.A.instance.setUserClick(),sn("#bChat").on(Kt.R.ON_CURRENT_CHATHOST_CHANGE,(function(){on.z.instance.restoreSoundVolume()})),x&&($t.h.instance.fetchingChathost=R,$t.h.instance.attach())}x||(c.A.setState({isSPAProcessing:!0}),Et.k.activateBlocks(!0));var J=null===(n=document.getElementById("previewImageFrame"))||void 0===n?void 0:n.getAttribute("src");if(J&&W.forEach((function(e){(null==O?void 0:O.querySelector(".lst_bage.__mobile"))&&e.classList.add("__blurred"),e.style.backgroundImage="url(".concat(J,")")})),Yt.U.instance.stopScrolling(),Yt.U.instance.disable(),X&&K(),b.q.isEnabled(g.i.DESKTOP_CHAT_JOIN_BUTTON_TEXT))!function(e,t){if(e!==t){var n=!!t&&de.A.isCoupleGender(t),i=(0,en.T)(n);tn("#js-stream_join_btn_inner").html(i)}}(null===(o=null===(i=c.A.getState())||void 0===i?void 0:i.chatHost)||void 0===o?void 0:o.gender,d.getAttribute("data-gender"));(0,Xt.y)(R,k,K)}}else{var Q=I.classList.contains("js-wl_join")?M:void 0;(0,zt.y)(qt.L.JOIN_POPUP,{customData:{redirectUrl:r.getAttribute("href")||Q},force:!0})}}}}}}},ln=n(41669),cn=function(e){var t=e.currentTarget,n=ln(t),i=n.attr("data-href")||n.attr("href");if(void 0===i)return!1;var o=c.A.getState(),r=o.skinName,s=o.isAuthenticated;return r!==te.A._18PLUSCAMS||s?b.q.isEnabled(g.i.WL_JOIN_POPUP_CUSTOM_FLOW)?((0,zt.y)(qt.L.JOIN_POPUP_MANUAL,{customData:{redirectUrl:i},force:!0}),!1):((0,Ne.o)(i),!1):((0,zt.y)(qt.L.JOIN_POPUP,{customData:{redirectUrl:i},force:!0}),!1)},un=n(90972),dn=n(41669),_n=(0,r.Ng)((function(e){return{listingIsAllModelsPage:(0,a.yH)(e),listingIsLoading:(0,a.sd)(e),listingLoaderType:(0,s.v1)(e)}}))((0,o.memo)((function(e){var t=e.listingLoaderType;return function(e){var t=e.listingIsAllModelsPage,n=e.listingLoaderType;(0,o.useEffect)((function(){var e=dn("#mls_container");return e.on("click",".js-thl",an),e.on("click",".js-lst_plink",cn),function(){e.off("click",".js-thl",an),e.off("click",".js-lst_plink",cn)}}),[]),(0,o.useEffect)((function(){return function(){t&&c.A.action(bt.Ni)(0)}}),[t]),(0,o.useEffect)((function(){un.l.uiType=n,(0,B._b)("Listing render Models").log(n,e.listingIsLoading)})),(0,o.useEffect)((function(){return(0,B._b)("Listing effect ModelsList mount").warn(),function(){(0,B._b)("Listing effect ModelsList unmount").warn()}}),[])}(e),t?t===ne.J.BLOCKS?(0,i.h)(Ue,null):(0,i.h)(Ut,null):null}),P.P))},6823:function(e,t,n){n.d(t,{g:function(){return c}});var i,o=n(13907),r=n(23110),s=r.n.ALL,a=((i={})[s]=function(e){return(0,o.ip)("@browse_cams_tags?tag=".concat(e))},i[r.n.FEMALE]=function(e){return(0,o.ip)("@browse_cams_tags_female?tag=".concat(e))},i[r.n.MALE]=function(e){return(0,o.ip)("@browse_cams_tags_male?tag=".concat(e))},i[r.n.TRANSSEXUAL]=function(e){return(0,o.ip)("@browse_cams_tags_transsexual?tag=".concat(e))},i[r.n.COUPLES]=function(e){return(0,o.ip)("@browse_cams_tags_couple?tag=".concat(e))},i),l=Object.keys(a),c=function(e,t){return void 0===e&&(e=s),l.includes(e)||(e=s),a[e](t)}},41656:function(e,t,n){n.d(t,{P:function(){return o}});var i=n(32892),o=function(e,t){return!!t.listingIsLoading||(0,i.b)(t,e)}},15514:function(e,t,n){var i;n.d(t,{p:function(){return i}}),function(e){e.CHAT="chat",e.LISTING="listing",e.MINI_PROFILE="mini_profile",e.PROFILE="profile"}(i||(i={}))},59675:function(e,t,n){n.d(t,{a:function(){return d}});var i,o=n(28534),r=n(15563),s=n(48291),a=n(2597),l=n(19826),c=n(52276),u=n(41669);function d(e){return void 0===e&&(e=!1),new Promise((function(t,n){if(i)return t(!0);var d=l.A.getState(),_=d.isAuthenticated,m=d.user,v=d.isMobile;return _?m.membership===a.A.FREE?(v?(0,r.F)():(u("a[rel=buy_tokens]").first().trigger("click"),e&&chat.addServiceMessage(__("Pin a model feature is for premium members only")+". "+__("To become a premium (GOLD) member for life and unlock this feature, all you have to do is buy any amount of tokens one time!"),"alert")),n(!1)):(i=!0,void t(!0)):(v?(0,s._)():(e&&window.chat&&chat.addServiceMessage(__("Pin a model feature is for premium members only"),"alert"),(0,o.y)(c.L.JOIN_POPUP_MANUAL,{force:!0})),n(!1))}))}},6006:function(e,t,n){n.d(t,{W:function(){return l}});var i=n(50172),o=n(17402),r=n(21560),s=n(53336),a=n(8546),l=(0,o.memo)((function(e){var t,n=e.className,o=e.variant,l=void 0===o?"next":o,c=e.isAvailable,u=e.isLoading,d=e.onClick,_="next"===l?"#svg_ui_arrow_next":"#svg_ui_arrow_prev";return(0,i.h)(r.$n,{className:(0,a.n)((t={bc_slider_btn:!0,__available:c,__next:"next"===l,__prev:"previous"===l},t[n]=n,t)),icon:{group:"sldb_icon",type:_,url:s.Jp},isLoading:u,onClick:d})}))},58236:function(e,t,n){n.d(t,{u:function(){return o}});var i=n(17402),o=function(e){var t=(0,i.useRef)(e);t.current=e,(0,i.useLayoutEffect)((function(){"function"==typeof t.current&&t.current()}),[])}},241:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(17402),o=function(e){var t=(0,i.useRef)(e);return(0,i.useEffect)((function(){t.current=e}),[e,t]),t.current}},5926:function(e,t,n){var i=n(17402);t.A=function(e,t){var n=(0,i.useRef)(!1);(0,i.useLayoutEffect)((function(){n.current?e():n.current=!0}),t)}},44019:function(e,t,n){n.d(t,{D:function(){return o}});var i=n(41669),o=function(){i("#bGotoGroup2, #bGotoVoyeur2").hide()}},11227:function(e,t,n){n.d(t,{e4:function(){return u},pl:function(){return c}});var i=n(29313),o=n(74213),r=n(19826),s="",a=function(){var e=document.getElementById("bPaidButtonGroup");if(null==e?void 0:e.childNodes){var t=Array.from(e.childNodes).filter((function(e){return e.clientWidth>0}));if(t.length){var n=function(e,n){t[e].setAttribute("data-position",n)};1===t.length?n(0,"lonely"):(n(0,"start"),n(t.length-1,"end"))}}},l=function(){for(var e=[],t=0;t