"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[334],{71293:function(e,t,n){n.d(t,{s:function(){return p},T:function(){return u}});var i,r,o=n(74848),s=n(96540),a=n(6823),l=n(73437),c=n(83375),u=(0,s.memo)(function(e){var t,n,i=e.children,r=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,o.jsx)("span",{className:(0,c.n)((t={},t[u]=u,t[_]=_,t)),children:h||i}):(0,o.jsx)("a",{ref:E,className:(0,c.n)((n={},n[u]=u,n[_]=_,n)),href:(0,a.g)(f,r),onClick:function(){p(r,f)},children:h||i})}),d=n(26580),_=n(53336),m=n(59583),v=n(63861),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=((r={})[m.A.RECORDABLE]=["ht_record_icon","#svg_icon_record"],r),p=(0,s.memo)(function(e){var t,n,i=e.className,r=e.code,s=e.eventIcon,a=e.mocked,l=e.tagId,p=e.tagLiveTab,b=e.title,E=e.onClick,A=e.onTagMount,L=h[r],y=f.h[r],T=g[r]||[],P=T[0],S=T[1],C=r==m.A.CHRISTMAS,N=r==m.A.VALENTINE_DAY,w=r==m.A.EASTER,O=r==m.A.HALLOWEEN;return(0,o.jsxs)(u,{code:r,linkAdditionalClassName:(0,c.n)((t={},t[i]=Boolean(i),t[L]=L,t)),mocked:a,tagId:l,tagLiveTab:p,onClick:E,onMount:A,children:[y&&(0,o.jsx)("span",{className:(0,c.n)((n={ht_item_icon:!0},n[y]=Boolean(y),n))}),P&&S&&(0,o.jsx)(d.A,{group:P,icon:S,url:_.ed}),C&&(0,o.jsx)("img",{className:"ht_holiday_icon",alt:"",src:(0,v.oF)("svg/bc/icon/icon_christmas_v2.svg")}),N&&(0,o.jsx)("img",{className:"ht_holiday_icon",alt:"",src:(0,v.oF)("svg/bc/icon/icon_valentines_day_v2.svg")}),w&&(0,o.jsx)("img",{className:"ht_holiday_icon",alt:"",src:(0,v.oF)("svg/bc/icon/icon_easter_v2.svg")}),O&&(0,o.jsx)("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 gn}});var i=n(74848),r=n(96540),o=n(16053),s=n(52982),a=n(15839),l=n(5037),c=n(99525),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(63861),b=n(21110),E=n(63065),A=n(45533),L=n(46955),y=n(83375),T=(0,r.memo)(function(e){var t,n=e.forwardRef,o=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,L=e.modelDisplayName,T=e.modelEsid,P=e.modelFlagsMask,S=e.modelGender,C=e.modelIsSmmt,N=e.modelLang,w=e.modelMarker,O=e.modelMiscMarker,I=e.modelQualityImprovementReason,M=e.modelRoomStatus,R=e.modelSocialLinks,k=e.modelTags,x=e.modelThumbImage,j=e.modelTopic,B=e.modelUsername,U=e.modelVerificationComment,H=e.modelVideoQuality,D=e.modelVideoQualityImprovedKey,V=e.modelViewersCount,F=e.moderatorFlagsMask,G=e.skinId,W=e.stopModelPinFading,Y=e.thumbSize,X=e.isAuthenticated,q=e.isHeartLiveBadge,K=e.isModerator,z=e.isPinAvailable,J=e.isPinFading,Q=e.isSelectedThumb,Z=e.isWlJoin,$=(0,r.useState)(!1),ee=$[0],te=$[1],ne=(0,r.useState)(!1),ie=ne[0],oe=ne[1],se=(0,r.useState)(!1),ae=se[0],le=se[1],ue=(0,p.ip)("@common_profile?username=".concat((0,E.o)(B))),de=(0,p.ip)("@member_chat?username=".concat((0,E.o)(B))),_e=function(e){return(0,r.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])}(F),me=(0,A.QP)(P),he=(0,r.useCallback)(function(){oe(!0)},[oe]),ge=(0,r.useCallback)(function(){te(!0)},[te]);(0,f.A)(function(){return oe(!1)},[B,x]),ke(J,W);var be=K?(0,y.n)({__mdr_amazing_marker:o&&"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===D,__mdr_video_quality_not_improved:a&&-1===D,__mdr_video_quality_refused_to_communicate:a&&0===D}):"",Ee=me.isOnline&&!me.isAway&&"public"===M&&T?T:null;return(0,i.jsxs)("div",{ref:n,className:(0,y.n)((t={},t[be]=K,t["__s_".concat(Y)]=Y,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=C,t)),children:[(0,i.jsxs)("a",(0,v.Cl)({className:(0,y.n)({"js-wl_join":Z,"lst_wrp lst_link js-thl":!0,__img:ee,__no_img:ie}),"data-chathost":B,"data-esid":Ee,"data-name":L,"data-vq":H,href:de},b.q.isEnabled(g.i.DESKTOP_CHAT_JOIN_BUTTON_TEXT)&&{"data-gender":S},{children:[(0,i.jsx)("span",{className:"lst_ghost"}),x&&(0,i.jsx)(fe,{modelDisplayName:L,thumbImageUrl:x,thumbSize:Y,thumbType:l,isLoadImageFailed:ie,onError:he,onLoad:ge}),(0,i.jsx)(xe,{}),(0,i.jsx)(we,{profileUrl:ue,roomStatus:M,isAway:!!me.isAway,isOnline:!!me.isOnline}),(0,i.jsx)(pe,{bMarker:o,bProfileChecked:s,lang:c,modelCheckComment:d,modelCultureLang:_,modelFlags:me,modelIsSmmt:C,modelLang:N,modelMarker:w,modelUsername:B,modelVerificationComment:U,moderatorFlags:_e,roomStatus:M,skinId:G,isHeartLiveBadge:q,isModerator:K,isPinAvailable:z,setOverflowVisible:le})]})),(0,i.jsx)(re,{debugInfoText:m,modelDisplayName:L,profileUrl:ue,socialLinks:R,viewersCount:V,isExclusiveShow:me.isExclusiveShow,isVibroToy:me.isVibroToy||me.isVibroToyExtended}),X&&(0,i.jsx)(ve,{gender:S,liveTab:u,tags:k},B),X&&(0,i.jsx)(ce,{lang:c,modelDisplayName:L,qualityImprovementReason:I,topic:j,isModerator:K})]})},L.b),P=n(41656),S=n(22078),C=n(68650),N=n(57610),w=n(22545),O=n(53162),I=n(46445),M=n(84435),R=n(73437),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,r){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 o=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,n.e(466).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(o,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,o()];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 r()})},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,r=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",r),void(null===(t=i.resizeObserver)||void 0===t||t.disconnect());var o=n.getBoundingClientRect().height,s=i.videoElement,a=s.videoWidth/s.videoHeight;a&&(i.videoElement.style.width="".concat(o*a,"px"),i.videoElement.style.height="".concat(o,"px"),i.hlsVideoElement.style.width="".concat(o*a,"px"),i.hlsVideoElement.style.height="".concat(o,"px"))};null===(e=i.videoElement)||void 0===e||e.addEventListener("resize",r),null===(t=i.resizeObserver)||void 0===t||t.disconnect(),i.resizeObserver=new ResizeObserver(r),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,N.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),x=n(44198),j=n(68956),B=n(57510),U=n(41669),H=function(){function e(){var e=this;this.players={},this.isIE=M.BrowserDetect.detectIE(),this.isSafari=M.BrowserDetect.isSafari(),this.initPreview=function(t){(0,x._b)("ThumbVideoPreview initPreview").log(),e.destroy(),e.thumbSelector=t,document.addEventListener("mousemove",e.moveEvent),document.body.addEventListener("mouseleave",e.onLeaveDocument),j.I.on("VideoPlayerEvent:playing",e.removeVideoPlayerPreview),j.I.on("VideoPlayerEvent:close",e.removeVideoPlayerPreview),U(document).on("chat:open",e.showVideoPlayerPreview),U("#bChat").on("onRoomClose",e.removeVideoPlayerPreview).on("onCurrentChathost",e.showVideoPlayerPreview)},this.destroy=function(){(0,x._b)("ThumbVideoPreview destroy").log(),e.removePreviews(),document.removeEventListener("mousemove",e.moveEvent),document.body.removeEventListener("mouseleave",e.onLeaveDocument),j.I.off("VideoPlayerEvent:playing",e.removeVideoPlayerPreview),j.I.off("VideoPlayerEvent:close",e.removeVideoPlayerPreview),U(document).off("chat:open",e.showVideoPlayerPreview),U("#bChat").off("onRoomClose",e.removeVideoPlayerPreview).off("onCurrentChathost",e.showVideoPlayerPreview)},this.removePreviews=function(){(0,x._b)("ThumbVideoPreview removePreviews").log(),(0,B.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,x._b)("ThumbVideoPreview stopPreviews").log(e.players),(0,B.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,x._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,x._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,x._b)("ThumbVideoPreview removeVideoPlayerPreview").log(),e.videoPlayerPreviewHost&&e.players[e.videoPlayerPreviewHost]&&e.videoPlayerPreviewContainer){var i=e.videoPlayerPreviewHost;e.videoPlayerPreviewHost=null,e.videoPlayerPreviewHostShowed=null;var r=e.isIE||e.isSafari?1500:1,o=n?0:2e3;window.setTimeout(function(){e.videoPlayerPreviewContainer.classList.add("__hidden")},r),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]})},o)}},this.moveEvent=function(t){var n,i=t.target;i.correspondingUseElement&&(i=i.correspondingUseElement);var r=null===(n=null==i?void 0:i.closest)||void 0===n?void 0:n.call(i,e.thumbSelector),o=null==r?void 0:r.querySelector("[data-chathost]"),s=null==o?void 0:o.getAttribute("data-chathost"),a=null==o?void 0:o.getAttribute("data-esid");if(e.stopPreviews(s),s&&a&&!e.players[s]){var l=new k;e.players[s]=l,l.init({element:r}).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}(),D=n(2508),V=n(52556),F=n(28577),G=n(64900),W=n(23110),Y=n(22393),X=n(18325),q=n(65361),K=n(51310),z=n(15514),J=n(59675),Q=n(41669),Z={};var $,ee,te=n(16915),ne=n(74214),ie=(0,o.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,r.memo)(function(e){var t,o=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,L=e.listingThumbType,P=e.liveTab,N=e.models,w=e.skinId,O=e.skinName,I=e.isAuthenticated,M=e.isHeartLiveBadge,R=e.isModerator,k=O===te.A._18PLUSCAMS&&!I,j=g&&g===ne.J.BLOCKS,B=f,U=(0,r.useState)(),$=U[0],ee=U[1],ie=(0,r.useCallback)(function(){ee(void 0)},[]);return(0,x._b)("Listing render ThumbsList").log({listingThumbSize:A,listingThumbType:L,liveTab:P,models:N}),(0,i.jsxs)("div",{ref:o,className:(0,y.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,r,o,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"),r=Q(t).parent("a[data-chathost]").attr("data-chathost"),o=c.A.getState(),s=(0,u.Hh)(o),a=(0,F.em)(o),l=(0,_.mq)(o),Y.A.getList().includes(s)?Z[r]?[2]:(d=s,i||a!==q.A.GROUP_SEX||(null==(m=l.find(function(e){return e.username===r}))?void 0:m.gender)===X.A.COUPLE_F_M&&(d=W.n.COUPLES),[2,n.e(526).then(n.bind(n,24876)).then(function(t){var n=t.PinModel;return Z[r]=!0,new Promise(function(t){n.instance.pinUnpin({pinHintElement:e,username:r,liveTab:d,isPinned:i,placementType:z.p.LISTING,onSuccess:function(){var n,o;Z[r]=!1,e.classList.remove("__no_hint"),H.instance.stopPreviews();var s=function(e){var t=e.findIndex(function(e){return e.username===r});if(t>-1){var n=(0,v.fX)([],e,!0),o=n.splice(t,1)[0];return(o=(0,v.Cl)({},o)).f=i?(0,h.Cr)(o.f,G.U.PINNED):(0,h.lA)(o.f,G.U.PINNED),(0,C.nK)(n,o,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,G.U.AWAY)&&(0,h.Lt)(e.f,G.U.ONLINE)});u+=d.length;var m=(0,K.Ri)("lvm");m&&l.find(function(e){return e.username===m})&&m!==r&&!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===r});if(n>-1){var i=(0,v.fX)([],e,!0),o=i.splice(n,1)[0];o=(0,v.Cl)({},o);var s=(0,h.Lt)(o.f,G.U.ONLINE),a=(0,h.Lt)(o.f,G.U.AWAY),l=(0,h.Lt)(o.f,G.U.IS_AWAY_FRESH),c=t;if(s){if(a)if(l)c=t;else{var u=(0,C.Kl)(i,function(e){return(0,h.Lt)(e.f,G.U.ONLINE)&&!(0,h.Lt)(e.f,G.U.AWAY)});c=e.findIndex(function(e,t){return t>u&&(0,h.Lt)(e.f,G.U.AWAY)})}}else c=i.findIndex(function(e){return!(0,h.Lt)(e.f,G.U.ONLINE)});return c=Math.max(0,c),c=Math.min(e.length-1,c),(0,C.nK)(i,o,c)}return e}(l,u)}c.A.action(V.ph)(l);var f=(0,_.gt)(a);(null==f?void 0:f.length)&&c.A.action(V.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(V.VJ)(p);var L=null===(o=null===(n=a.miniProfile)||void 0===n?void 0:n.actions)||void 0===o?void 0:o.pinModelButton;(0,S.j)(L)&&r===L.username&&(0,D.w)({isPinned:!i}),t(i?null:r)},onError:function(){Z[r]=!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&&!j&&ee(e)}),!1},children:[a,N.slice(0,d).map(function(t,n){var r=t.tags&&I?t.tags.map(function(e){return m.find(function(t){return t.id===+e})}).filter(Boolean):null,o=$===t.username;return(0,i.jsx)(T,{forwardRef:0===n?e.firstThumbRef:void 0,bMarker:!!p.mdrMarker,bProfileChecked:!!p.mdrProfileChecked,bQualityImprovement:!!p.mdrQualityImprovement,currentThumbType:L,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:r,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:B,isPinFading:o,isSelectedThumb:j&&!!E&&E.toLowerCase()===t.username.toLowerCase(),isWlJoin:k},n)})]})},P.P)),re=(0,r.memo)(function(e){var t=e.debugInfoText,n=e.modelDisplayName,r=e.profileUrl,o=e.socialLinks,s=e.viewersCount,a=e.isExclusiveShow;return(0,i.jsxs)("div",{className:"lst_info",children:[!a&&t&&(0,i.jsx)("span",{className:"mls_debug",children:t}),(0,i.jsx)(se,{modelDisplayName:n,profileUrl:r,isExclusiveShow:a}),(0,i.jsx)(ae,{socialLinks:o,isExclusiveShow:a}),(0,i.jsx)(oe,{viewersCount:s})]})}),oe=function(e){var t=e.viewersCount,n=t>1e4?"".concat(9999,"+"):t||0;return(0,i.jsx)("div",{className:"lsti_box lst_viewers",children:n})},se=function(e){var t=e.modelDisplayName,n=e.profileUrl;return e.isExclusiveShow?(0,i.jsx)("a",{className:"lst_name",href:n,children:(0,i.jsx)("span",{className:"lst_nick",children:t})}):(0,i.jsx)("div",{className:"lsti_box lst_name",children:(0,i.jsx)("a",{className:"lst_nick js-lst_plink",href:n,children:t})})},ae=function(e){var t=e.isExclusiveShow,n=e.socialLinks,r=void 0===n?[]:n;return t?null:(0,i.jsx)("div",{className:"lsti_box lst_social",children:(0,B.loopv)(r,function(e){return(0,i.jsx)("div",{className:"lsts_item __sn_".concat(e)},e)})})},le=n(98810),ce=(0,r.memo)(function(e){var t=e.lang,n=e.modelDisplayName,r=e.qualityImprovementReason,o=e.topic,s=e.isModerator,a="";return o?a=(0,le.CN)(o,!0):void 0!==o&&(a=s&&"ru"===t?r:__("%modelname%'s chat",{modelname:n})),(0,i.jsx)("div",{className:"lst_topic lst_data",children:a})}),ue=n(71293),de=n(20444),_e=n(10373),me=[W.n.NEW_MODELS,W.n.SPY],ve=(0,r.memo)(function(e){var t=e.gender,n=e.liveTab,r=e.tags,o=function(e,t){var n=e;return me.includes(n)&&(n=null),n===W.n.ALL?null:n&&n!==W.n.COUPLES&&(0,_e.n)(n)?n:de.A.isMaleGender(t)?W.n.MALE:de.A.isTranssexualGender(t)?W.n.TRANSSEXUAL:de.A.isCoupleGender(t)?W.n.COUPLES:W.n.FEMALE}(n,t);return(0,i.jsx)("div",{className:"lst_tags js-lst_tags lst_data bc_flex bc_flex_wrap",children:r&&(0,i.jsx)(i.Fragment,{children:r.length?(0,i.jsx)(i.Fragment,{children:(0,B.loopv)(r,function(e){return(0,i.jsx)(ue.T,{code:e.code,linkClassName:(0,y.n)({"bc_hash_tag lst_tag":!0,bc_lowercase:"hd-plus"!==e.code}),tagLiveTab:o,title:e.title?e.title:""},e.code)})}):(0,i.jsx)("div",{className:"lst_empty",children:__("No tags")})})})}),fe=(0,r.memo)(function(e){var t=e.modelDisplayName,n=e.thumbImageUrl,o=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,r.useRef)(u);d.current=u;var _=function(){d.current&&c&&d.current===u&&c()},m=function(){d.current&&(d.current===u?l():(0,x._b)("Listing ThumbImage error ignore").error("race condition",{next:d.current,prev:u}))};if(!n)return null;var v=n;"big"===o&&(v=v.replace("xbig_lq","xbig"));var f=v.replace("{ext}","webp"),h=v.replace("{ext}","jpg");return n&&"live"===s?(0,i.jsxs)("picture",{className:"lst_img",onError:m,onLoad:_,children:[!a&&(0,i.jsx)("source",{srcSet:f,type:"image/webp"}),(0,i.jsx)("img",{alt:t,loading:"lazy",src:h,onError:m,onLoad:_})]}):(0,i.jsx)("img",{className:"lst_img lst_p_img",alt:t,loading:"lazy",src:h,onError:m})}),he=(0,r.memo)(function(e){var t,n=e.type,r=e.position,o=e.className,s=e.children;return(0,i.jsx)("div",{className:(0,y.n)((t={lst_bage:!0},t["__".concat(n)]=n,t["__pos_".concat(r)]=r,t[o]=o,t)),children: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,o=e.bProfileChecked,s=e.lang,a=e.modelCheckComment,l=e.modelCultureLang,c=e.modelFlags,u=e.modelIsSmmt,d=e.modelLang,_=e.modelMarker,m=e.modelUsername,v=e.modelVerificationComment,f=e.moderatorFlags,h=e.roomStatus,g=e.skinId,p=e.isHeartLiveBadge,b=e.isModerator,E=e.isPinAvailable,A=e.setOverflowVisible,L=b?ee.BOTTOM_LEFT:ee.TOP_RIGHT,T=!c.isExclusiveShow&&(c.isFirstPlace||c.isFanboost),P=ee.TOP_RIGHT,S=c.isExclusiveShow||c.isBongaOnly&&c.isOnline&&!c.isAway&&"public"===h;return u?(0,i.jsx)(he,{position:ee.TOP_LEFT,type:$.MODEL_SMMT,children:"Venus berlin live"}):(0,i.jsxs)(i.Fragment,{children:[c.isLastViewed&&(0,i.jsx)(ye,{position:ee.CENTER}),c.isOnline&&(0,i.jsx)(he,{position:ee.TOP_LEFT,type:p?$.LIVE_14:$.LIVE}),c.isNew&&(0,i.jsx)(he,{position:ee.TOP_LEFT,type:$.NEW}),b&&f.isNew&&(0,i.jsx)(he,{position:ee.TOP_LEFT,type:$.MDR_NEW}),c.isMobile&&(0,i.jsx)(he,{position:ee.TOP_RIGHT,type:$.MOBILE}),(c.isHdPlus||c.isHdCam)&&(0,i.jsx)(he,{position:ee.TOP_RIGHT,type:c.isHdPlus?$.HD_PLUS:$.HD_CAM}),!S&&l&&(0,i.jsx)(he,{className:(0,y.n)((t={},t["__ml_p __mlp_".concat(l)]=l,t["__ml_sec __mls_".concat(d)]=d,t)),position:P,type:$.MODEL_LANG}),!S&&!l&&d&&(0,i.jsx)(he,{className:(0,y.n)((n={},n["__ml_p __mlp_".concat(d)]=!0,n)),position:P,type:$.MODEL_LANG}),b&&f.isOBS&&(0,i.jsx)(he,{position:ee.TOP_RIGHT,type:f.isOBSPendingDonate?$.MDR_OBS_PENDING_DONATE:$.MDR_OBS}),T&&(0,i.jsx)(Le,{byMember:c.isFanboost,position:L}),!c.isExclusiveShow&&E&&(0,i.jsx)(be,{position:ee.BOTTOM_LEFT,isPinned:c.isPinned},m),(!T||T&&"bl"!==L)&&S&&(0,i.jsx)(Ae,{lang:s,position:ee.BOTTOM_LEFT,isDefaultSkin:"def"===g}),!c.isExclusiveShow&&(c.isVibroToy||c.isVibroToyExtended)&&(0,i.jsx)(he,{position:ee.BOTTOM_RIGHT,type:c.isVibroToyExtended?$.VIBRATOY_EXTENDED:$.VIBRATOY}),b&&o&&!f.isProfileChecked&&(0,i.jsx)(he,{position:ee.BOTTOM_RIGHT,type:$.MDR_PROFILE_NOT_CHECKED,children:(0,i.jsx)("div",{className:"mdr_inner",title:"Not Checked"})}),b&&r&&null===_&&(0,i.jsx)(he,{position:ee.BOTTOM_RIGHT,type:$.MDR_EMPTY_MARKER,children:(0,i.jsx)("div",{className:"mdr_inner",title:"Empty Marker"})}),b&&o&&(a||v)&&(0,i.jsx)(Ie,{checkComment:a,position:ee.BOTTOM_RIGHT,verificationComment:v,setOverflowVisible:A})]})},be=(0,r.memo)(function(e){var t=e.position,n=e.isPinned;return(0,i.jsx)(he,{className:(0,y.n)({"js-pin_model js-pt_l":!0,__active:n}),type:$.PINNED,position:t,children:(0,i.jsx)("div",{className:"lst_bage_hint js-pin_hint_wrp",children:(0,i.jsxs)("span",{className:"lst_bage_hint_default js-pin_hint_default",children:[n&&(0,i.jsx)("span",{className:"pin_hint",children:__("Unpin model")}),!n&&(0,i.jsx)("span",{className:"unpin_hint",children:__("Pin model")})]})})})}),Ee=["el","hu","jw","nl","pl","pt","ru","sv","tr","uk"],Ae=function(e){var t=e.lang,n=e.position,r=e.isDefaultSkin,o="string"==typeof t&&Ee.includes(t);return(0,i.jsx)(he,{className:o?"__sm_txt":"",position:n,type:$.BONGA_ONLY,children:r?__("Bongacams only!"):__("Exclusive!")})},Le=function(e){var t=e.position;return e.byMember?(0,i.jsx)(he,{type:$.FAN_BOOST,position:t,className:"__pin_enabled",children:(0,i.jsx)("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.jsx)(he,{type:$.FIRST_PLACE,position:t,className:"__pin_enabled",children:(0,i.jsx)("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"})})},ye=function(e){var t=e.position;return(0,i.jsx)(he,{type:$.LAST_VIEWED,position:t,children:(0,i.jsx)("div",{className:"blv_btn",children:(0,i.jsx)("span",{className:"blv_inner",children:__("Continue Watching")})})})},Te=n(21464),Pe=n(27655),Se=n(38654),Ce=n(1887),Ne=function(e){var t=e.profileUrl,n=e.roomStatus,i=e.isAway,o=e.isOnline,s=Se.h.isEnabled("status_bage_shadow_version"),a=(0,r.useCallback)(function(e){o&&!i&&n!==Pe.A.FULL_PRIVATE_CHAT||(e.preventDefault(),e.stopPropagation(),(0,Ce.o)(t))},[i,o,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,o,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,o),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,o);return{text:l,title:c,type:u,isBadgeShadowVersion:s,handleButtonClick:a}},we=(0,r.memo)(function(e){var t,n=Ne(e),r=n.text,o=n.title,s=n.type,a=n.isBadgeShadowVersion,l=n.handleButtonClick;return s?(0,i.jsxs)("div",{className:(0,y.n)((t={lst_bage:!0},t["__s_".concat(s)]=s,t.__status=!a,t.__status_sh=a,t)),children:[Boolean(o)&&(0,i.jsx)("span",{className:"lstb_ttl",children:o}),!!r&&(0,i.jsx)(Te.E,{className:"lstb_btn",html:r,tagName:"span",onClick:l})]}):null}),Oe=$.MDR_CHECK_COMMENT,Ie=function(e){var t=e.position,n=e.checkComment,r=e.verificationComment,o=e.setOverflowVisible,s=[n,r].join(" ");return(0,i.jsx)(he,{type:Oe,position:t,children:(0,i.jsx)("div",{className:"mdr_check_comment_hint",title:"Click to copy comment",onClick:function(e){e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),navigator.clipboard.writeText(s)},onMouseEnter:function(){return o(!0)},onMouseLeave:function(){return o(!1)},children:(0,i.jsx)("div",{className:"lst_comment",children: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,r.useEffect)(function(){H.instance.removePreviews()}),(0,r.useEffect)(function(){return H.instance.initPreview(".js-ls_thumb"),function(){H.instance.destroy()}},[])},ke=function(e,t){(0,r.useEffect)(function(){var n=0,i=function(){window.clearTimeout(n),n=null,t()};return e&&setTimeout(i,1e3),function(){e&&i()}},[e,t])},xe=function(){return(0,i.jsx)("div",{className:"lst_preview_player_container"})},je=(0,o.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,r.memo)(function(e){var t=e.listingBlocks,n=e.liveTab,o=e.isModerator;Re(),(0,r.useEffect)(function(){window.chat&&window.chat.performerData&&c.A.action(l.Eb)(window.chat.performerData.username)},[]);var s=$e(e);return(0,x._b)("Listing render Models Blocks").log(s),t&&s&&!s.length?(0,i.jsx)(Vt,{}):s?(0,i.jsx)("div",{children:s.map(function(e,t){var r=e.blockName,s=e.models;return(0,i.jsx)(nt,{blockName:r,liveTab:n,models:s,isModerator:o},r+t)})}):null},P.P)),Be=n(5926),Ue=n(85747),He=n(25738),De=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 Ve=[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],Fe=[W.n.MALE,W.n.TRANSSEXUAL,W.n.COUPLES,W.n.NEW_MODELS,W.n.SPY],Ge=[ge.CAM_SCORE,ge.HOTTEST,ge.NEWCOMERS,ge.INTERACTIVE,ge.HD_PlUS],We=[ge.NASTY_COUPLES,ge.SAME_GENDER_COUPLES,ge.BISEXUAL_COUPLES,ge.LATIN_COUPLES],Ye=[ge.ANAL,ge.TOYS,ge.SMALL_TITS,ge.BIG_COCK],Xe=[ge.ANAL_SEX,ge.BEARS,ge.MUSCULAR,ge.BIG_DICK],qe=[ge.RUSSIAN,ge.BLONDE,ge.BRUNETTE,ge.TEENS,ge.BIG_TITS],Ke=function(e){return Fe.includes(e)?e:W.n.FEMALE},ze=function(e){switch(e){case W.n.COUPLES:return(0,v.fX)((0,v.fX)([],Ge,!0),We,!0);case W.n.FEMALE:return(0,v.fX)((0,v.fX)([],Ge,!0),qe,!0);case W.n.MALE:return(0,v.fX)((0,v.fX)([],Ge,!0),Xe,!0);case W.n.TRANSSEXUAL:return(0,v.fX)((0,v.fX)([],Ge,!0),Ye,!0);default:return(0,v.fX)([],Ge,!0)}},Je=function(e,t,n,i){if(!t||!e.length)return null;var r={},o=Y.A.getList().includes(i);(0,x._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(r).length&&o){var l=n.filter(function(e){var t=(0,h.Lt)(e.f,G.U.AWAY),n=(0,h.Lt)(e.f,G.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=Ve.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))}}}r[e]=i},a=0,l=e;a0;i--){var r=Math.floor(Math.random()*(i+1));t=[n[r],n[i]],n[i]=t[0],n[r]=t[1]}return n},Ze=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=W.n.FEMALE);var n,i,r=(0,C.o0)((0,v.fX)((0,v.fX)([],e,!0),Ge,!0));n=r,i=ze(t),void 0===n&&(n=[]),void 0===i&&(i=[]),r=n.filter(function(e){return i.includes(e)}),r=(0,v.fX)((0,v.fX)([],Qe(r),!0),Qe(function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.filter(function(e){return!t.includes(e)})}(Ge,r)),!0);var o=function(e){return e===W.n.COUPLES?[ge.CAM_SCORE,ge.HOTTEST,ge.INTERACTIVE,ge.NASTY_COUPLES,ge.BISEXUAL_COUPLES]:e===W.n.TRANSSEXUAL?[ge.CAM_SCORE,ge.HOTTEST,ge.ANAL,ge.BIG_DICK]:e===W.n.MALE?[ge.CAM_SCORE,ge.HOTTEST,ge.INTERACTIVE,ge.ANAL_SEX]:e===W.n.FEMALE?[ge.CAM_SCORE,ge.HOTTEST,ge.RUSSIAN,ge.BLONDE,ge.TEENS,ge.BIG_TITS]:[]}(t);return r=r.sort(function(e,t){return Math.random()>.35?Number(o.includes(t))-Number(o.includes(e)):0}),r},$e=function(e){var t=e.listingBlocks,n=e.listingBlocksPinnedModels,i=e.listingChatNavigationCurrentBlocks,o=e.listingInitialBlocks,s=e.listingSelectedThumb,a=e.liveTab,l=(0,r.useState)(o||[]),u=l[0],d=l[1],_=(0,r.useState)(Je(u,t,n,a)),m=_[0],f=_[1],h=(0,r.useRef)(s),g=(0,r.useRef)(a),p=(0,r.useRef)(!(null==u?void 0:u.length));return(0,r.useLayoutEffect)(function(){var e=s&&h.current!==s,n=g.current!==a;if((0,x._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 r=function(e,t){if(t&&t.length){var n=t.map(function(e){return Ve[Number(e)]}).filter(Boolean);return Ze(n,e)}return Ze(ze(e),e)}(Ke(a),i),o=r.filter(function(e){var n;return(null===(n=t[e])||void 0===n?void 0:n.length)>=Ue.hg});o.length>=3?d(o):d((0,v.fX)((0,v.fX)([],o,!0),r.filter(function(e){return!o.includes(e)}),!0))}},[o,a,s,i,t]),(0,Be.A)(function(){f(Je(u,t,n,a))},[u,t,n,a]),(0,r.useEffect)(function(){return function(){return c.A.action(V.Xv)(null)}},[]),(0,x._b)("Listing effect ModelsBlocks render").log({availableBlocks:u,blocksDataScheme:t,initialBlocks:o,modelsData:m,pinnedModels:n}),(0,r.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,Ue.EO).map(function(e){return{blockName:e,models:m[e]}}):null},[u,m])},et=n(26580),tt=n(53336),nt=(0,r.memo)(function(e){var t=e.blockName,n=e.liveTab,r=e.models,o=e.isModerator,s=function(e,t){switch(void 0===t&&(t=W.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===W.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=W.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===W.n.FEMALE||t===W.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,De.e)(e),i=t===ge.HOTTEST?He.Gs.POPULAR:t,r=He.qb.indexOf(i);if(r>-1)return"/".concat(n,"?sorting=").concat(He.qb[r]);var o=Ve.indexOf(t);return o>-1?"/".concat(n,"/blocks/").concat(Ve[o]):"/".concat(n)}(Ke(n),t);return(0,i.jsxs)("div",{className:"like-yt-block",children:[(0,i.jsxs)("span",{className:"lyt-hdr js-lyt-hdr bc_inline_flex bc_flex_items_center","data-href":l,"data-livetab":n,onClick:function(){o&&location.assign(l)},children:[(0,i.jsx)(et.A,{group:"lt_icon",icon:a,url:tt.TM}),(0,i.jsx)("span",{children:s})]}),(0,i.jsx)(ie,{className:"__blocks",limit:Ue.hg,models:r})]},t)}),it=n(241),rt=n(43512),ot=n(85374),st=n(46517),at=n(83816),lt=n(43284),ct=n(58236),ut=function(e,t){var n=e||{},i=n.block,r=n.categoryName,o=n.liveTab,s=n.tag;return!1===n.isEnabled?"js-no_spa_link":t&&function(e){return(0,p.XH)(e,(0,p.ip)("@homepage"))}(t)?"js-spa_homepage":r?"js-lscl_item":s?"js-tags_link":i?"js-block_link":o?"js-livetab_link":null},dt=n(75135),_t=(0,r.memo)(function(e){var t=e.title,n=e.url,o=e.isActive,s=function(e){var t=e.liveTab,n=e.name,i=e.spaOptions,o=e.url,s=e.onMount,a=void 0===s?R.noop:s,l=i||{},c=l.categoryName,u=l.liveTab,d=void 0===u?t:u,_=(0,r.useRef)(null);(0,ct.u)(function(){a(n,_.current)});var m=(0,r.useCallback)(function(){(0,dt.j)(o,d)},[d,o]);return{rootRef:_,itemName:c||n,itemType:d,linkSelector:i?ut(i,o):"js-lscl_item",onClick:m}}(e),a=s.rootRef,l=s.itemName,c=s.itemType,u=s.linkSelector,d=s.onClick;return(0,i.jsx)("div",{ref:a,className:(0,lt.A)(["lscl_item_wrp js-lscl_item_wrp",o&&"__first",u]),children:(0,i.jsx)("a",{className:(0,lt.A)(["sld_item lscl_item __inner",o&&"__active"]),"data-name":l,"data-type":c,href:n,onClick:d,children:t})})}),mt=n(16960),vt=function(e,t){var n=e.children,i=e.containerWidth,o=e.isSliderDynamic,s=e.isWithSlider,a=(0,r.useState)(0),l=a[0],c=a[1],u=(0,r.useState)(null),d=u[0],_=u[1],m=function(e,t,n,i){return n&&(!i||Boolean(e)&&e>=t)}(l,i,s,o),v=(0,r.useCallback)(function(e){e&&(t&&"object"==typeof t&&(t.current=e),_(e))},[t]);return(0,r.useLayoutEffect)(function(){if(s&&o&&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,o,d]),{setTrackElRef:v,isRowWithSlider:m}},ft=(0,r.forwardRef)(function(e,t){var n=e.children,o=vt(e,t),s=o.isRowWithSlider,a=o.setTrackElRef,l=(0,r.useCallback)(function(e){var t=e.sliderState,n=e.handleClickNext,r=e.handleClickPrev;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{className:(0,y.n)({"sld_btn lsc_btn __prev":!0,__hidden:!t.isPrevShow}),onClick:r,children:(0,i.jsx)(et.A,{group:"cb_icon",icon:"#svg_icon_arrow_st_left",url:tt.ed})}),(0,i.jsx)("button",{className:(0,y.n)({"sld_btn lsc_btn __next":!0,__hidden:!t.isNextShow}),onClick:n,children:(0,i.jsx)(et.A,{group:"cb_icon",icon:"#svg_icon_arrow_st_right",url:tt.ed})})]})},[]);return s?(0,i.jsx)(mt.Ap,{ref:a,className:"lsc_container",renderButtons:l,isResetPositionOnChildrenChange:!0,children:n}):(0,i.jsx)(mt.tp,{ref:a,className:"lsc_container __no_slider",children:n})}),ht=(0,r.memo)(ft),gt=(0,r.memo)(function(e){var t=e.rowRef,n=e.activeCategory,r=e.categories,o=e.rowNumber,s=e.thumbsPerRowCount,a=e.isTransitionDisabled,l=e.onCategoryMount,c=(0,st.d4)(u.Hh),d=(0,st.d4)(u.q5),_=(0,at.i)(c,d);return(0,x._b)("Listing render Categories Row").log({categories:r,rowNumber:o,thumbsPerRowCount:s}),(0,i.jsx)("section",{className:(0,lt.A)(["ls_catrow",a&&"__no_transition"]),style:{gridRow:o},children:(0,i.jsx)(ht,(0,v.Cl)({},e,{ref:t,children:r.map(function(e){return(0,i.jsx)(_t,{liveTab:_,name:e.name,spaOptions:e.spaOptions,title:e.title,url:e.url,isActive:e.name===(n||Ue.cr),onMount:l},e.name)})}))})},P.P),pt=n(75094),bt=function(e){var t=e.block,n=e.category,i=e.categoryName,r=e.liveTab,o=e.sorting,s=e.tag;return(void 0===r||!(0,pt.e)(r))&&(!!(void 0===n||n&&"object"==typeof n)&&((void 0===t||"string"==typeof t)&&((void 0===i||"string"==typeof i)&&((void 0===o||"string"==typeof o)&&(void 0===s||"string"==typeof s)))))};function Et(e,t,n){return t+n[Math.min(e,n.length-1)]+1}var At=(0,o.Ng)(function(e){return{listingActiveCategory:(0,F.em)(e),listingCategoriesRowConfig:(0,F._$)(e),listingCategoriesRowList:(0,F.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,F.Ht)(e),isListingInternalLinksAvailable:(0,a.$E)(e)}})((0,r.memo)(function(e){var t=e.listingActiveCategory,n=e.listingCategoriesRowConfig,o=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,r.useRef)(!0),h=(0,r.useState)(0),g=h[0],p=h[1],b=(0,r.useState)(!0),E=b[0],A=b[1],L=(0,r.useRef)(null),y=(0,r.useRef)(),T=(0,it.Z)(t),P=(0,it.Z)(m),S=(0,r.useRef)({}),C=(0,r.useReducer)(function(e){return e+1},0),N=C[0],w=C[1],O=(0,r.useMemo)(function(){return(0,ot.s)(w,30)},[]),I=function(e){var t=e.categoriesWidthMapRef,n=e.containerWidth,i=e.props,o=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,r.useRef)(g?0:1),b=(0,r.useMemo)(function(){return{name:Ue.cr,title:Ue.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,r.useMemo)(function(){return null==l?void 0:l.filter(function(e){return!e.isHidden})},[l]),A=(null==E?void 0:E.length)||0,L=(0,r.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,o]),y=(0,r.useMemo)(function(){return(null==a?void 0:a.renderTemplate)||[4]},[null==a?void 0:a.renderTemplate]),T=(0,r.useMemo)(function(){if(!d)return[];for(var e=[],t=0,n=0;n<=d+e.length+1&&(n=Et(t,n,y),t++,!(n<=d+e.length+1&&(e.push(n),g))););return f&&(e.length<2&&Et(t,n,y)>_+e.length+1?(0===e.length&&u>2&&e.push(_+1),p.current=0):p.current=g?0:1),e},[d,f,y,g,_,u]);return(0,r.useMemo)(function(){var e=0,i=p.current;return T.map(function(r,o){if(o===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,r=e.tag,o=e.title,s=e.url;if(!o||!s)return null;var a=n||r||t,l={block:t,categoryName:n,liveTab:(0,pt.e)(i)?i:void 0,tag:r,isEnabled:!0};return{name:a||o,spaOptions:bt(l)&&a?l:{isEnabled:!1},title:o,url:s}}).filter(Boolean)),rowIndex:o,rowNumber:r,isSliderDynamic:!0};var a,l=[];if(o%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==L?void 0:L.every(Boolean))for(var d=l.filter(Boolean).reduce(function(e,n){var i,r=n.name;return e+((null===(i=t.current)||void 0===i?void 0:i[r])||0)},0),_=h?Ue.YB:0;d0;){var m=null==E?void 0:E[e];m&&m.name!==s&&(l.push(m),d+=(null==L?void 0:L[e])||0),e=(e+1)%A}else 0===o&&(l=(0,v.fX)([b],E||[],!0));return{categories:l,rowIndex:o,rowNumber:r}}).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,o,A,L])}({categoriesWidthMapRef:S,containerWidth:g,props:e,renderId:N}),M=(0,r.useCallback)(function(){if(L.current&&f.current){var e=L.current.offsetWidth;e&&(p(e),O())}},[O]),R=(0,r.useCallback)(function(e,t){if(t&&!S.current[e]){var n=t.offsetWidth;n&&(S.current[e]=n)}},[]);return(0,r.useLayoutEffect)(function(){T!==t||P!==m?(clearTimeout(y.current),A(!0),y.current=setTimeout(function(){f.current&&(A(!1),y.current=void 0)},200)):y.current||A(!1)},[m,P,T,t]),(0,rt.G)(M,Boolean(L.current),200),(0,r.useLayoutEffect)(M,[M,l]),(0,r.useEffect)(function(){return function(){f.current=!1}},[]),(0,x._b)("Listing render Categories List").log({categoriesChunks:I,containerWidth:g,listingCategoriesRowConfig:n,listingCategoriesRowList:o,listingThumbRowsCount:l,widthMap:S.current,isListingCategoriesRowAvailable:d}),(d&&n&&n.isActive||_)&&l?(0,i.jsx)(i.Fragment,{children:I.map(function(e,n){return(0,i.jsx)(gt,{rowRef:0===n?L:void 0,activeCategory:t,categories:e.categories,containerWidth:g,listingIsLoading:a,rowNumber:e.rowNumber,thumbsPerRowCount:u,isSliderDynamic:e.isSliderDynamic,isTransitionDisabled:E,isWithSlider:m||e.isSliderDynamic,onCategoryMount:R},e.rowNumber)})}):null},P.P)),Lt=n(65683),yt=n(81363),Tt=n(38780),Pt=n(89414),St=n(1325),Ct=n(46025),Nt=function(e){return(0,St.K)(location.href,"page",e>1?String(e):null)},wt=function(e,t){return e<=1?0:Math.round((e-1)*t)||0},Ot=(0,r.memo)(function(e){var t=e.currentPage,n=e.listingLoaderLimit,o=e.pageRangeDisplayed,s=void 0===o?3:o,a=e.totalPagesCount,l=void 0===a?0:a,u=e.isWithQueryParam,d=(0,r.useCallback)(function(e){var t=wt(e,n);yt.ListingLoader.load({offset:t,type:Pt.w.MAIN}).then(function(t){t.success&&((0,Tt.GC)({},document.title,Nt(e)),window.scroll(0,0))})},[n]);if((0,Ct.u)(function(){if(u){var e=parseInt((0,St.Zy)("page")||"")||0;if(e){var t=wt(e,n);t&&c.A.action(Lt.Ni)(t)}}}),(0,r.useLayoutEffect)(function(){l&&t>l&&d(l)},[l,t,d]),(0,r.useEffect)(function(){(0,Tt.G$)({},document.title,Nt(t))},[t]),(0,x._b)("Listing render Navigation Paginate").log({currentPage:t,totalPagesCount:l}),t<1||l<=1)return null;var _=Math.max(t-s,1),m=Math.min(t+s,l),v=(0,C.y1)(_,Math.max(0,t-_)),f=(0,C.y1)(t+1,Math.max(0,m-t));return(0,i.jsx)("div",{className:"mls_pager",children:(0,i.jsxs)("div",{className:"mls_pager_content",children:[(0,i.jsxs)("span",{className:(0,y.n)({disabled:1===t,mls_pager_prev_page:!0}),children:[(0,i.jsx)(It,{className:"prev",label:"«",pageNumber:t-1,title:__("Previous Page"),urlBuilder:Nt,onClick:d}),_>1&&(0,i.jsx)(It,{className:"first",pageNumber:1,title:__("First Page"),urlBuilder:Nt,onClick:d})]}),_>s-1&&(0,i.jsx)(Mt,{className:"mls_prev_separator",idDisabled:1===t}),(0,i.jsx)(Rt,{pages:v,urlBuilder:Nt,onClick:d}),(0,i.jsx)("span",{className:"mls_pager_current_page",children:t}),(0,i.jsx)(Rt,{pages:f,urlBuilder:Nt,onClick:d}),m=l,mls_pager_next_page:!0}),children:[m=n,f=!c&&!m&&o/Ue.IE%Ue.wT>0,h=function(e,t){return(0,r.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]),g=~~(h.height+h.top)||0,p=(0,r.useCallback)(function(){m||d.current||((0,x._b)("Listing NavigationInfiniteScroll load").log({listingLoaderLimit:o}),u(!0),d.current=!0,yt.ListingLoader.load({type:Pt.w.MAIN,limit:o+Ue.IE}).then(function(){_.current&&(u(!1),d.current=!1)}))},[m,o]);return function(e,t,n,i){void 0===t&&(t=!0),void 0===n&&(n=20);var o=(0,r.useRef)(window.pageYOffset),s=(0,r.useCallback)(function(){o&&(i?("top"===i&&window.pageYOffseto.current)&&e():e(),o.current=window.pageYOffset)},[o,i,e]);(0,r.useEffect)(function(){var e=(0,ot.s)(s,n);return t&&window.addEventListener("scroll",e),function(){t&&window.removeEventListener("scroll",e)}},[t,n,s])}((0,r.useCallback)(function(){!d.current&&_.current&&(window.pageYOffset+window.innerHeight+300>g&&p())},[g,p]),f,20,"down"),(0,r.useEffect)(function(){return function(){_.current=!1}},[]),(0,x._b)("Listing render Navigation InfiniteScroll").log(c,o,{listingOffsetTop:g,isAutoLoadAvailable:f,isAllModelsLoaded:m,listingThumbRowsCount:s,offsetTop:window.pageYOffset+window.innerHeight+300}),(0,i.jsx)(i.Fragment,{children:!m&&!c&&(0,i.jsx)(xt,{onClick:p})})},P.P)),xt=(0,r.memo)(function(e){var t=e.onClick;return(0,i.jsx)("div",{id:"mls_pager_bottom",className:"mls_pager_actions",style:{display:"block",clear:"both"},children:(0,i.jsx)("a",{href:"#",className:"bt30 bt30_green",onClick:function(e){e.preventDefault(),t()},children:__("Show next")})})}),jt=n(93541),Bt=n(17435),Ut=n(23826),Ht=(0,o.Ng)(function(e){return{listingCategoriesRowAvailable:(0,F.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,isWithQueryParam:(0,a.T$)(e)&&!(0,a.yH)(e)}})((0,r.memo)(function(e){var t=e.listingCategoriesRowAvailable,n=e.listingLoaderLimit,o=e.listingLoaderPagerPage,s=e.listingLoaderPagerTotalPagesCount,a=e.listingLoaderTotalCount,u=e.listingLoaderType,d=e.listingModels,_=e.listingThumbSize,m=e.isListingInternalLinksAvailable,v=e.isModerator,f=e.isWithQueryParam,h=(0,r.useRef)(null),g=(0,r.useRef)(null);Re(),function(e,t,n,i){void 0===e&&(e=0);var o=(0,r.useState)(e),s=o[0],a=o[1],u=(0,r.useCallback)(function(){if(i.current&&n.current){var e=(0,jt.m)(n.current,i.current);e&&a(e)}},[a,n,i]);(0,r.useLayoutEffect)(function(){s&&c.A.action(l.qU)(s)},[s]),(0,r.useLayoutEffect)(u,[t]),(0,rt.G)(u,!0,80)}(0,_,h,g),(0,r.useLayoutEffect)(function(){if((0,x._b)("Listing effect ModelsMain restoreScroll").log(Bt.A.isRestoring),Bt.A.isRestoring){var e=Bt.A.restore();window.scrollTo(window.scrollX,e.scrollTop||0),Bt.A.reset()}Ut.z.hide()},[]),(0,x._b)("Listing render Models Main").log({listingLoaderPagerPage:o,listingLoaderPagerTotalPagesCount:s,listingLoaderTotalCount:a,listingLoaderType:u,listingModels:d});var p=d.length>=a||o>=s,b=t||m;return(0,i.jsxs)(i.Fragment,{children:[d.length>0?(0,i.jsx)(ie,{containerRef:h,firstThumbRef:g,className:(0,y.n)({__category_rows:b,__filled_row:!v&&!p}),models:d,children:u===ne.J.INFINITE_SCROLL&&b&&(0,i.jsx)(At,{})}):(0,i.jsx)(Vt,{}),u===ne.J.INFINITE_SCROLL&&d.length>0&&n',a2:""})})]})},P.P)),Ft=n(22336),Gt=n(59614),Wt=n(3484),Yt=n(56846),Xt=n(52293),qt=n(16080),Kt=n(7098),zt=n(88318),Jt=n(80554),Qt=n(52276),Zt=n(28534),$t=n(44019),en=n(11227),tn=n(2e3),nn=n(73645),rn=n(62271),on=n(14919),sn=n(41669),an=n(43325),ln=n(98928),cn=n(8556),un=n(31279),dn=n(41669),_n=function(e){var t,n,i,r;e.preventDefault(),e.stopPropagation();var o=e.target,d=e.currentTarget;if(tn.x.instance.navigateRequest(d.href),!o.classList.contains("lst_tag")&&!o.classList.contains("js-lst_plink")){c.A.action(Yt.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,L=m.isSPAProcessing,y=(0,s.v1)(m)===ne.J.BLOCKS,T=(0,u.Hh)(m),P=(0,F.em)(m),S=(0,F.yZ)(m),C=(0,F.vM)(m),N=(0,F.K2)(m),w=(0,a.bJ)(m),O=[T||"",!y&&!C&&P||"",!y&&!C&&S||""].join(".");if((0,K.Hk)("ls03",O,{domain:(0,un.getRealDomain)(),expires:1,expiresType:"day",path:"/"}),!L&&(E||A||w)){var I=d.closest(".js-ls_thumb"),M=null==I?void 0:I.querySelector("[data-chathost]");if(M){var R=M.getAttribute("href"),k=M.getAttribute("data-chathost"),x=M.getAttribute("data-name")||"";if(R&&k){var j=b.q.isEnabled(g.i.WL_JOIN_POPUP_CUSTOM_FLOW),B=(0,a.T$)(m),U="visible"===(null===(t=window.chat)||void 0===t?void 0:t.visibility);if(h!==te.A._18PLUSCAMS||p){if(j)return(0,Zt.y)(Qt.L.JOIN_POPUP_MANUAL,{customData:{redirectUrl:R},force:!0});if(B)location.assign(R);else{var D=Array.from(document.querySelectorAll(".video_poster")),V=f&&f.username!==k,G=qt.U.instance.enabled&&(0,cn.isTokenInBodyClassList)("chat_collapsed"),W=!1,Y=function(){W||(W=!0,window.scrollTo(0,0),Ut.z.hide(),c.A.setState({isSPAProcessing:!1}))};if(H.instance.setAsVideoPlayerPreview(k),rn.h.instance.fetchingChathost=k,c.A.action(Gt.xH)(!0),y&&(c.A.setState({isSPAProcessing:!0}),setTimeout(function(){c.A.setState({isSPAProcessing:!1})},10),P&&c.A.action(Wt.TM,!0)(null),S&&c.A.action(Wt.Rk,!0)(null),C&&c.A.action(Wt.e_,!0)(null),N&&zt.x.isAttached&&c.A.action(Xt.e,!0)()),c.A.action(Ft.oy)(null),c.A.action(Ft._7)({listingLoaderSettings:(0,v.Cl)({block:C,liveTab:T},y?{}:{categoryName:P,flFilterState:N,tag:S})}),c.A.action(l.Eb)(k),f||ln.z.instance.restoreSoundVolume(),V){an.A.instance.closeStream(),D.forEach(function(e){e.setAttribute("style",""),e.innerHTML=""});var X=document.getElementById("pp_ve_container");X&&(X.classList.remove("__hidden"),X.innerHTML=""),(0,nn.setGameTab)(null),(0,en.pl)("bGotoPrivate","bGotoVoyeur","bGotoGroup"),(0,$t.D)(),an.A.instance.setUserClick(),dn("#bChat").on(Jt.R.ON_CURRENT_CHATHOST_CHANGE,function(){ln.z.instance.restoreSoundVolume()}),U&&(rn.h.instance.fetchingChathost=k,rn.h.instance.attach())}U||(c.A.setState({isSPAProcessing:!0}),yt.ListingLoader.activateBlocks(!0));var q=null===(n=document.getElementById("previewImageFrame"))||void 0===n?void 0:n.getAttribute("src");if(q&&D.forEach(function(e){(null==I?void 0:I.querySelector(".lst_bage.__mobile"))&&e.classList.add("__blurred"),e.style.backgroundImage="url(".concat(q,")")}),qt.U.instance.stopScrolling(),qt.U.instance.disable(),G&&Y(),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,on.T)(n);sn("#js-stream_join_btn_inner").html(i)}}(null===(r=null===(i=c.A.getState())||void 0===i?void 0:i.chatHost)||void 0===r?void 0:r.gender,d.getAttribute("data-gender"));(0,Kt.y)(k,x,Y)}}else{var z=M.classList.contains("js-wl_join")?R:void 0;(0,Zt.y)(Qt.L.JOIN_POPUP,{customData:{redirectUrl:o.getAttribute("href")||z},force:!0})}}}}}}},mn=n(41669),vn=function(e){var t=e.currentTarget,n=mn(t),i=n.attr("data-href")||n.attr("href");if(void 0===i)return!1;var r=c.A.getState(),o=r.skinName,s=r.isAuthenticated;return o!==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,Ce.o)(i),!1):((0,Zt.y)(Qt.L.JOIN_POPUP,{customData:{redirectUrl:i},force:!0}),!1)},fn=n(90972),hn=n(41669),gn=(0,o.Ng)(function(e){return{listingIsLoading:(0,a.sd)(e),listingLoaderType:(0,s.v1)(e),isStaticListing:(0,a.T$)(e)}})((0,r.memo)(function(e){var t=e.listingLoaderType;return function(e){var t=e.listingLoaderType,n=e.isStaticListing;(0,r.useEffect)(function(){var e=hn("#mls_container");return e.on("click",".js-thl",_n),e.on("click",".js-lst_plink",vn),function(){e.off("click",".js-thl",_n),e.off("click",".js-lst_plink",vn)}},[]),(0,r.useEffect)(function(){return function(){n&&c.A.action(Lt.Ni)(0)}},[n]),(0,r.useEffect)(function(){fn.l.uiType=t,(0,x._b)("Listing render Models").log(t,e.listingIsLoading)}),(0,r.useEffect)(function(){return(0,x._b)("Listing effect ModelsList mount").warn(),function(){(0,x._b)("Listing effect ModelsList unmount").warn()}},[])}(e),t?t===ne.J.BLOCKS?(0,i.jsx)(je,{}):(0,i.jsx)(Ht,{}):null},P.P))},6823:function(e,t,n){n.d(t,{g:function(){return c}});var i,r=n(63861),o=n(23110),s=o.n.ALL,a=((i={})[s]=function(e){return(0,r.ip)("@browse_cams_tags?tag=".concat(e))},i[o.n.FEMALE]=function(e){return(0,r.ip)("@browse_cams_tags_female?tag=".concat(e))},i[o.n.MALE]=function(e){return(0,r.ip)("@browse_cams_tags_male?tag=".concat(e))},i[o.n.TRANSSEXUAL]=function(e){return(0,r.ip)("@browse_cams_tags_transsexual?tag=".concat(e))},i[o.n.COUPLES]=function(e){return(0,r.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 r}});var i=n(1169),r=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,r=n(28534),o=n(11530),s=n(48291),a=n(2597),l=n(99525),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,o.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,r.y)(c.L.JOIN_POPUP_MANUAL,{force:!0})),n(!1))})}},58236:function(e,t,n){n.d(t,{u:function(){return r}});var i=n(96540),r=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 r}});var i=n(96540),r=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(96540);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 r}});var i=n(41669),r=function(){i("#bGotoGroup2, #bGotoVoyeur2").hide()}},11227:function(e,t,n){n.d(t,{e4:function(){return u},pl:function(){return c}});var i=n(68650),r=n(74213),o=n(99525),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