/*! For license information please see gag.js.LICENSE.txt */ (self.webpackChunk_9gag_site=self.webpackChunk_9gag_site||[]).push([[370],{29962:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s=class{static getCurrentTime(){return Math.floor(Date.now()/1e3)}static getTimeAgo(t,e=!1){if(!t)return"";const o=e?" ago":"",s=this.getCurrentTime()-t;if(s<60)return"just now";if(s<3600)return`${Math.floor(s/60)}m${o}`;if(s<86400)return`${Math.floor(s/3600)}h${o}`;if(s<604800)return`${Math.floor(s/86400)}d${o}`;const n=new Date(1e3*t);let r=`${n.getDate()} ${i[n.getMonth()]}`;return n.getFullYear()!==(new Date).getFullYear()&&(r+=` ${n.getFullYear().toString().substr(-2)}`),r}static secondsToHrs(t){t=Number(t);const e=Math.floor(t/3600),o=Math.floor(t%3600/60);return(e>0?e+(1==e?" hour ":" hours "):"")+(o>0?o+(1==o?" minute ":" minutes "):"")}static toISOString(t){return t?new Date(1e3*t).toISOString():null}}},39914:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var i=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const s=class{static log(t,e){return i(this,void 0,void 0,(function*(){this.logWithData(t,e)}))}static logWithData(t,e){return i(this,void 0,void 0,(function*(){}))}}},80502:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});const i=class{static getCampaignUrl(t,e){let o=new URL(t);for(const t in e){const i=e[t];i&&o.searchParams.append(`utm_${t}`,null!=i?i:"")}return o.toString()}}},42550:(t,e,o)=>{"use strict";o.d(e,{M:()=>r,Z:()=>a});var i=o(66252),s=o(97554),n=o(73726);const r=Symbol(),a=()=>{const t=!!(0,i.f3)(r),e=(0,n.k)(),o=(0,i.Fl)((()=>!!e.isRoute(...s.Z.POST_VIEWS)&&!t));return{isMainPost:t,isRelatedPost:o}}},97554:(t,e,o)=>{"use strict";o.d(e,{Z:()=>s});const i={POST:"Post",HOME_POST_LIST:"Home",TAG_POST_LIST:"TagPostList",SEARCH_POST_LIST:"SearchPostList",NOTIFICATIONS:"Notifications",SETTINGS:"Settings",SETTINGS_PROFILE:"SettingsProfile",SETTINGS_PASSWORD:"SettingsPassword",SETTINGS_ACCOUNT:"SettingsAccount",SETTINGS_EMAIL:"SettingsEmail",SETTINGS_BLOCKED:"SettingsBlocked",SETTINGS_MUTE_LIST:"SettingsMuteList",SETTINGS_BLOCK_TAG:"SettingsBlockTag",SETTINGS_PRIVACY:"SettingsPrivacy",SETTINGS_DO_NOT_SELL:"SettingsDoNotSell",SETTINGS_OPT_OUT_IBA:"SettingsOptOutIba",SETTINGS_DELETE_ACCOUNT:"SettingsDeleteAccount",SOCIAL_TRANSFER:"SocialTransfer",SIGNUP:"Signup",LOGIN:"Login",FORGOT_PASSWORD:"ForgotPassword",THREAD:"Thread",POST_IN_APP:"PostInApp",INTEREST_POST_LIST:"InterestPostList",USER_LIST:"UserList",CUSTOMIZE:"Customize",UPLOAD:"Upload",COLLECTION_PAGE:"CollectionPage",EMBED_COMMENT:"EmbedComment"},s=Object.assign(Object.assign({},i),{MAIN_LISTS:[i.HOME_POST_LIST,i.TAG_POST_LIST,i.INTEREST_POST_LIST],LIST_VIEWS:[i.HOME_POST_LIST,i.INTEREST_POST_LIST,i.TAG_POST_LIST,i.USER_LIST,i.SEARCH_POST_LIST],POST_VIEWS:[i.POST,i.COLLECTION_PAGE,i.EMBED_COMMENT,i.POST_IN_APP],MEMBER_VIEWS:[i.LOGIN,i.SIGNUP,i.FORGOT_PASSWORD,i.SOCIAL_TRANSFER,i.SETTINGS_DELETE_ACCOUNT],DARK_MODE:[i.SOCIAL_TRANSFER]})},68316:(t,e,o)=>{"use strict";o.d(e,{g:()=>i});class i{}},98879:(t,e,o)=>{"use strict";o.d(e,{z:()=>c});var i=o(84157),s=o(57437),n=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))},r=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const a={sentAwards:[],balance:0},c=(0,i.Q_)("award",{state:()=>a,actions:{fetchUserSentAwards(){return r(this,void 0,void 0,(function*(){const t=yield n(void 0,void 0,void 0,(function*(){try{return(yield s.Z.get("/user-sent-awards")).data.data.postIds||[]}catch(t){return console.error(t),[]}}));this.sentAwards=t}))},fetchAwardBalance(){return r(this,void 0,void 0,(function*(){const t=yield n(void 0,void 0,void 0,(function*(){try{return(yield s.Z.get("/award-balance")).data.data.balance||0}catch(t){return console.error(t),0}}));this.balance=t}))},sendAward(t,e){return r(this,void 0,void 0,(function*(){const o=yield((t,e)=>n(void 0,void 0,void 0,(function*(){try{return(yield s.Z.post("/award",{id:t,type:e})).data}catch(t){return console.error(t),null}})))(t,e);return"Success"===(null==o?void 0:o.meta.status)&&(this.balance=o.data.balance,this.sentAwards.includes(t)||this.sentAwards.push(t)),o}))},reset(){this.sentAwards=[],this.balance=0}},persist:{key:"awardState",paths:["sentAwards"]}})},81573:(t,e,o)=>{"use strict";o.d(e,{T:()=>c,af:()=>l,z8:()=>d,wD:()=>f,WF:()=>h,S2:()=>wt,$j:()=>ot,kR:()=>ht,cO:()=>Q,Vv:()=>ft,jd:()=>tt,nk:()=>rt});var i=o(1040),s=o(84157);const n={hidden:!1,banned:!1,pinned:null,sensitive:null},r={userId:null,displayName:null,emojiStatus:null,avatarUrl:null,role:null,profileUrl:null,moderate:null,permissions:null,delegates:null},a="list",c=10485760,l=0,d=1,p={appId:"",count:10,type:"new"},u="INIT_STATUS_COMPLETED",h={COMMON:"common",THREAD:"thread",LIST:a,POST_THREAD:"postthread",LIST_VIEW:"post_list_view"},m=3e5,g=6e4,f={NEW:"new",HOT:"hot",OLD:"old",ANCHOR:"anchor",USER_MEDIA:"userMedia",MEDIA_STATIC:"STATIC",MEDIA_ANIMATED:"ANIMATED"};var v=o(56594),b=o(33360),w=o(84564),y=o.n(w);const k="v2",P=t=>{const{data:e,options:o}=t,i={},s={},n=a===(null==o?void 0:o.viewMode)?o.key+":"+o.type:o.key,r=e.comments||[];s[n]={commentIds:[],timestamp:(new Date).getTime(),viewAll:!1,nextCursor:e.next,refreshCursor:e.refresh,status:e.status,lock:e.lock,total:e.total,isNextLoading:!1},a!==o.viewMode&&(s[n].parentCommentId=e.parent.commentId,s[n].prevCursor=e.prev,s[n].isPrevLoading=!1,i[e.parent.commentId]=e.parent);for(let t of r)i[t.commentId]=t,s[n].commentIds.push(t.commentId);return{comments:i,commentsBySign:s}};var O=o(57437),_=o(46296),I=o(68316);class C{constructor(t,e,o,i){this.hideProBadge=t,this.hideActiveTs=e,this.accentColor=o,this.backgroundColor=i}static fromJson(t){return new C(t.hideProBadge,t.hideActiveTs,t.accentColor,t.backgroundColor)}}class S{constructor(t,e,o,i,s,n,r,a,c,l,d,p,u,h){this.userId=t,this.avatarUrl=e,this.displayName=o,this.emojiStatus=i,this.country=s,this.profileUrl=n,this.hasProfileUrl=r,this.timestamp=a,this.isActivePro=c,this.isActiveProPlus=l,this.isVerifiedAccount=d,this.accountId=p,this.activeTs=u,this.preferences=h}static fromJson(t){let e=null;t.preferences&&(e=C.fromJson(t.preferences));let o=t.profileUrl;return o&&o.includes("/u/")||(o=null),new S(t.userId,t.avatarUrl,t.displayName,t.emojiStatus,t.country,o||"javascript:void(0)",!!o,t.timestamp,t.isActivePro,t.isActiveProPlus,t.isVerifiedAccount,t.accountId,t.activeTs,e)}}class x{constructor(t,e,o){this.width=t,this.height=e,this.url=o}isImage(){return"image"===this.type}}class T extends x{constructor(){super(...arguments),this.type="image"}static fromJson(t){return new T(t.width||0,t.height||0,t.url||"")}}class E extends T{constructor(t,e,o,i){super(t,e,o),this.webUrl=i,this.type="image"}static fromJson(t){return new E(t.width||0,t.height||0,t.url||"",t.webUrl||"")}calculateRealSize(){const t=300;let e=0,o=0;return this.width>300?(e=300,o=300*this.height/this.width,o>t&&(e=t*e/o,o=t)):this.height>t?(o=t,e=t*this.width/this.height):(e=this.width,o=this.height),{width:e,height:o}}}class A{constructor(t){this.type=t,this.image=null,this.imageXLarge=null,this.animated=null,this.video=null}static fromJson(t){const e=new A(t.type||"");return t.image&&(e.image=E.fromJson(t.image)),t.imageXLarge&&(e.imageXLarge=T.fromJson(t.imageXLarge)),t.animated&&(e.animated=T.fromJson(t.animated)),t.video&&(e.video=T.fromJson(t.video)),e}static fromJsonArray(t){const e=[];for(let o of t)e.push(A.fromJson(o.imageMetaByType));return e}}class D extends I.g{constructor(t,e,o,i,s="text",n=1,r=null,a=null,c=null,l=null,d=null,p=Math.floor(Date.now()/1e3),u=0,h=0,m=0,g=0,f=0,v=null,b=0,w=0,y=0,k=0,P=!1,O=0,_=!1,I=!1){super(),this.commentId=t,this.text=e,this.mediaText=o,this.user=i,this.type=s,this.level=n,this.media=r,this.mentionMapping=a,this.parent=c,this.permalink=l,this.threadId=d,this.timestamp=p,this.isVoteMasked=u,this.likeCount=h,this.dislikeCount=m,this.isPinned=g,this.childrenTotal=f,this.childrenUrl=v,this.isCollapsed=b,this.isDeleted=w,this.isSensitive=y,this.isOffensive=k,this.isAuthor=P,this.opStatus=O,this.opAnonymous=_,this.myAnonymous=I}static fromJson(t){let e,o=null,i=null;if(t.mentionMapping&&(o=new Map(Object.entries(t.mentionMapping))),t.media&&(i=Array.isArray(t.media)?t.media[0]&&t.media[0]instanceof A?t.media:A.fromJsonArray(t.media):A.fromJson(t.media)),!t.user)throw new Error("Cannot create ConversationItem without User's data");e=t.user instanceof S?t.user:S.fromJson(t.user);const{info:s}=rt(),n=t.user.userId===(null==s?void 0:s.userId);return new D(t.commentId,t.text,t.mediaText,e,t.type,t.level,i,o,t.parent,t.permalink,t.threadId,t.timestamp,t.isVoteMasked,t.likeCount,t.dislikeCount,t.isPinned,t.childrenTotal,t.childrenUrl,t.isCollapsed,t.isDeleted,t.isSensitive,t.isOffensive,n,t.opStatus,2===t.opStatus,2===t.opStatus&&n)}}class j extends I.g{constructor(t,e,o,i,s,n,r,a,c,l){super(),this.url=t,this.status=e,this.lock=o,this.total=i,this.comments=s,this.prev=n,this.next=r,this.refresh=a,this.parent=c,this.level=l}static fromJson(t){let e=[],o=null;return t.comments.length>0&&(e=t.comments.map((t=>t instanceof D?t:D.fromJson(t)))),t.parent&&(o=D.fromJson(t.parent)),new j(t.url||"",t.status||0,t.lock||!1,t.total||0,e||[],t.prev||null,t.next||null,t.refresh||null,o||null,t.level||"")}addItem(t,e=!0){e?this.comments.push(t):this.comments.unshift(t)}removeItemByID(t){let e=this.findMessageIndexById(t);e>=0&&this.comments.splice(e,1)}findMessageIndexById(t){return this.comments.findIndex((e=>e.commentId===t))}}class M extends I.g{constructor(t){super(),this.count=t}static fromJson(t){return new M(t.count)}}class L extends I.g{constructor(t,e,o,i){super(),this.comment=t,this.postId=e,this.quota=o,this.total=i}static fromJson(t){let e=null,o=null;return t.comment&&(e=D.fromJson(t.comment)),t.quota&&(o=M.fromJson(t.quota)),new L(e,t.postId,o,t.total)}}class U extends I.g{constructor(t){super(),this.followed=t}static fromJson(t){return new U("boolean"==typeof t.followed&&t.followed)}}class Z extends x{constructor(){super(...arguments),this.type="image"}static fromJson(t){return new Z(t.width||0,t.height||0,t.url||"")}}class R extends I.g{constructor(t){super(),this.attachment=t,this.image=null}static fromJson(t){const e=new R(t.attachment);return t.attachment.data.image&&(e.image=Z.fromJson(t.attachment.data.image)),e}}var N=o(80129),B=o.n(N);const H=(t,e)=>O.Z.post(t,B().stringify(e),{headers:{"content-type":"application/x-www-form-urlencoded"}});var V=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const F=(t,e,o)=>{const{cdnHost:i,host:s}=ot().info;return(t=>{const e=t.info.cacheable?t.info.cdnHost:t.info.host,o=t.info.cacheable?"/cacheable":"",i=t.info.version||"v1",s=new(y())(`https://${e}/${i}${o}${t.path}`);return t.query&&s.set("query",t.query),s.toString()})({path:t,query:e,info:Object.assign(Object.assign({},o),{cdnHost:i,host:s})})},$=()=>{const{appId:t,auth:e}=ot().info;return{appId:t,auth:e}},G=t=>V(void 0,void 0,void 0,(function*(){try{const e=F("/admin/update"),{url:o}=tt();return(yield H(e,Object.assign(Object.assign(Object.assign({},$()),{url:o}),t))).data.payload}catch(t){return console.error(t),null}})),z=t=>V(void 0,void 0,void 0,(function*(){try{let e;const o="/comment-list.json",{appId:i,auth:s}=$(),n=Object.assign(Object.assign(Object.assign({},p),t),{appId:i});return e=s?yield H(F(o,{},{version:k}),Object.assign(Object.assign({},n),{auth:s})):yield O.Z.get(F(o,Object.assign(Object.assign({},n),{origin:window.location.origin}),{cacheable:!0,version:k})),j.fromJson(e.data.payload)}catch(t){return console.error(t),null}}));var W=o(71652).default,K=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))},q=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);sY,getters:{getCommentComposerStateById(t){const e=t.commentComposersState;return t=>t?e[t]:null}},actions:{isCommentComposerActive(t){const e=this.getCommentComposerStateById(t);return e&&e.isActive},isCommentComposerEmpty(t){const e=this.getCommentComposerStateById(t);return!e||!e.message.trim().length},initNewComposer(t){var{idKey:e}=t,o=q(t,["idKey"]);o.threadId&&ft().fetchFollowStatus(o.threadId);const i=this.getCommentComposerStateById(e);let s=i?i.message:"";if(o.parent&&o.isReply&&!s){const{user:t,isDeleted:e,opAnonymous:i}=tt().getCommentById(o.parent);t&&!e&&(s=`@${i?"OP":t.displayName} `)}o.message=s,this.commentComposersState[e]=Object.assign({isFocused:!1,isActive:!1,message:"",isReply:!1,parent:"",threadId:"",delegateUserId:null},o),this.setShouldFocusComposer(e)},updateComposerState(t){var{idKey:e}=t,o=q(t,["idKey"]);this.commentComposersState[e]=Object.assign(Object.assign({},this.commentComposersState[e]),o)},commentComposerToggle(t){t||null===this.beforeComposerScrollTop||window.scrollTo(0,this.beforeComposerScrollTop),this.commentComposerSwitch=t,this.beforeComposerScrollTop=t?window.pageYOffset||document.documentElement.scrollTop:null,document.body.classList[t?"add":"remove"]("lock")},setShouldFocusComposer(t){this.shouldFocusComposer=t},setComposerMessage({idKey:t,message:e}){this.updateComposerState({idKey:t,message:e})},setComposerDelegate({idKey:t,delegateUserId:e}){this.updateComposerState({idKey:t,delegateUserId:e})},setComposerInactive(t){this.updateComposerState({idKey:t,isActive:!1})},setComposerFocused({idKey:t,focused:e}){this.updateComposerState({idKey:t,isFocused:e})},clearComposer(t){this.setComposerMessage({idKey:t,message:""}),this.setComposerDelegate({idKey:t,delegateUserId:null}),this.setComposerInactive(t),ht().deleteAttachedFile({itemID:t})},setCommentSending(t){this.isCommentSending=t},uploadMedia(t){return K(this,void 0,void 0,(function*(){const{auth:e}=ot().info;return e?t.type&&!/\/(gif|jpe?g|png|mp4|webm)$/i.test(t.type)?Promise.reject({code:"IMAGE_INVALID_TYPE"}):t.size&&t.size>c?Promise.reject({code:"IMAGE_INVALID_SIZE"}):yield(o={media:t},V(void 0,void 0,void 0,(function*(){try{const t=F("/media.json"),{appId:e,auth:i}=$(),s=o.media instanceof File?"blob":"url",n=new FormData;n.append("appId",e||""),n.append(s,o.media||""),n.append("auth",i||"");const r=yield O.Z.post(t,n);return R.fromJson(r.data.payload)}catch(t){throw console.error(t),t}}))):Promise.reject({error:"You must be logged in"});var o}))},sendComposerMessage({idKey:t}){return K(this,void 0,void 0,(function*(){const e=this.getCommentComposerStateById(t),o=ht().getAttachedFiles(t);if(this.isCommentComposerEmpty(t)&&!o.length)return Promise.reject();const i={text:e.message.trim()};e.delegateUserId&&(i.delegateUserId=e.delegateUserId),o.length&&(i.uploadedFiles=o),e.parent&&(i.parent=e.parent,e.isReply||(i.replyThreadOnly=!0));const s=yield this.addComment(i);this.clearComposer(t);const n=(0,b.wm)().autoFollowThreadReply,{threadId:r}=tt().getCommentById(e.parent);return e.isReply&&r&&(ft().isNeedFetchFollowStatus(r)&&(yield ft().fetchFollowStatus(r)),!ft().getFollowStatus(r)&&n&&ft().updateFollowStatus({threadId:r,follow:!0})),Promise.resolve(s)}))},addReply({commentId:t,postUrl:e}){return K(this,void 0,void 0,(function*(){const{hasActivities:o}=rt(),{auth:i}=ot().info,s={level:2,commentId:t,url:e};o&&i&&(s.auth=i);try{const t=yield z(s),{threadKey:e}=tt(),{comments:o,commentsBySign:i}=P({data:t,options:{viewMode:h.THREAD,key:e}});if(tt().updateComments(o),e){const t=i[e];t.prevCursor=t.nextCursor,t.nextCursor=null,t.commentIds.reverse(),tt().deleteThreadByKey(e)}tt().setCommentsByThreadKey({loadType:"LOAD_LAST",commentsBySign:i})}catch(t){return console.warn(t),Promise.reject(t)}}))},addLocalReply({comment:t,parent:e}){const{localThreads:o}=tt();void 0===o[e]?o[e]=[t.commentId]:o[e].push(t.commentId)},addComment(t){var e;return K(this,void 0,void 0,(function*(){const{auth:o}=ot().info,{url:s,postKey:n,threadKey:r}=tt(),a=tt().getViewMode;if(!o||!s)return;const c={postUrl:s,message:t.text,attachments:[]};if(t.uploadedFiles)for(const e of t.uploadedFiles)c.attachments.push(e.uploadedMedia.attachment);if(t.userMedia&&c.attachments.push(null===(e=t.userMedia)||void 0===e?void 0:e.attachment),t.delegateUserId&&(c.delegateUserId=t.delegateUserId),t.parent&&(c.parentId=t.parent),t.replyThreadOnly&&(c.replyThreadOnly=t.replyThreadOnly),n&&(0,b.LM)().uploads.includes(n)){const t=i.Z.getters["post/GET_POST"](n);t.comment&&(c.opToken=t.comment.opToken)}if("9gag"!==i.Z.getters["config/APP_NAME"]){const t=yield(l={message:c.message},V(void 0,void 0,void 0,(function*(){var t;try{const e=null===(t=l.message)||void 0===t?void 0:t.match(_.default.urlRegExp());if(!e)return;const o=F("/link-attachment.json",{},{version:k}),i=[];for(let t of e){const e=yield H(o,Object.assign(Object.assign({},$()),{url:t})),{attachment:s}=e.data.payload||{};s&&i.push(s)}return i}catch(t){return console.error(t),null}})));c.attachments=[...c.attachments,...t]}var l;try{const t=yield(t=>V(void 0,void 0,void 0,(function*(){const e=F("/add-comment.json",{},{version:k}),o=yield H(e,Object.assign(Object.assign({},$()),{text:t.message,url:t.postUrl,attachments:t.attachments.map((({type:t,token:e})=>({type:t,token:e}))),replyThreadOnly:t.replyThreadOnly?1:void 0,parent:t.parentId||void 0,opToken:t.opToken||void 0,delegateUserId:t.delegateUserId||void 0}));return L.fromJson(o.data.payload)})))(c),{comment:e,total:o}=t;if(!e)return;tt().setComment(e),rt().updateCommentedPostUrls({[s]:1}),t.quota&&rt().updateQuota(t.quota);const{commentId:l,level:d,parent:p}=e;if(d>1)p&&tt().incrementCommentCount(p),a===h.LIST?r?p&&tt().deleteThreadByKey(p):(p&&this.addLocalReply({comment:e,parent:p}),tt().setTotalCount(o)):yield this.addReply({commentId:l,postUrl:s});else{let t=`${n}:${tt().type}`;tt().commentsByPostID[t]&&(i.Z.getters["post/GET_POST"](n).type!==W.TYPE_FORUM_POST?tt().commentsByPostID[t].commentIds.unshift(e.commentId):tt().commentsByPostID[t].commentIds.push(e.commentId)),tt().setTotalCount(o)}return Promise.resolve(l)}catch(t){return Promise.reject(t)}}))}}});var J=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const X={comments:{},commentsByPostID:{},threads:{},initStatus:"INIT_STATUS_NONE",firstLoadingFlags:{},viewMode:h.LIST,type:f.HOT,postKey:null,url:null,threadKey:null,ttl:{[f.HOT]:m,[f.NEW]:g,[f.OLD]:g},highlightedCommentState:{},localThreads:{},restoreCommentInfo:null,shouldScrollToEnd:!1,collapseToast:!1,showOpPinCommentId:null,showOpPinCommentConfirmModal:0},tt=(0,s.Q_)("comment",{state:()=>X,getters:{getListKey:t=>`${t.postKey}:${t.type}`,getList(){switch(this.viewMode){case h.LIST:const t=this.getListKey;return this.commentsByPostID[t]||{};case h.THREAD:case h.POST_THREAD:return this.threadKey&&this.threads[this.threadKey]?this.threads[this.threadKey]:{};default:return{}}},viewAll(){const t=this.getList;return!!(null==t?void 0:t.viewAll)&&t.viewAll},canInfiniteScroll(){return!!this.canViewAll||!!rt().isLoggedIn},canViewAll(){return!!this.viewAll},getNextCursor(){const t=this.getList;return t.nextCursor?t.nextCursor:null},getRefreshCursor(){const t=this.getList;return t.refreshCursor?t.refreshCursor:null},isNextLoading(){const t=this.getList;return!!t.isNextLoading&&t.isNextLoading},canLoadMore(){return!!this.getNextCursor&&!this.isNextLoading},canScrollMore(){return this.canLoadMore&&this.canInfiniteScroll},isInited:t=>u===t.initStatus,isFirstLoading:t=>{let e="";switch(t.viewMode){case h.LIST:if(e=h.LIST+":"+t.postKey+":"+t.type,e in t.firstLoadingFlags)return t.firstLoadingFlags[e];break;case h.THREAD:case h.POST_THREAD:if(e=h.THREAD+":"+t.threadKey,e in t.firstLoadingFlags)return t.firstLoadingFlags[e]}return!1},canShowLoading(){return!this.isInited||this.isFirstLoading||this.isNextLoading},getPrevCursor(){const t=this.getList;return t.prevCursor?t.prevCursor:null},isPrevLoading(){const t=this.getList;return!!t.isPrevLoading&&t.isPrevLoading},canLoadPrevious(){return!!this.getPrevCursor&&this.isInited&&!this.isPrevLoading},getLock(){const t=this.getList;return!!t.lock&&t.lock},isLocked(){return!rt().canModerate&&this.getLock},getType:t=>t.type,getViewMode:t=>t.viewMode,isListView:t=>t.viewMode===h.LIST,getPostId:t=>t.postKey,getCommentsByType(){let t=[];const e=this.getListKey;if(e in this.commentsByPostID){let o=this.commentsByPostID[e];for(let e of o.commentIds)e in this.comments&&t.push(this.comments[e])}return t},getCommentsByThread:t=>e=>{let o=[];if(t.threads[e]){let i=t.threads[e];for(let e of i.commentIds)e in t.comments&&o.push(t.comments[e])}return o},getCommentsRaw(){return this.isListView?this.getCommentsByType:this.getCommentsByThread(this.threadKey)},getCommentsCountByType(){const t=this.getListKey;return t in this.commentsByPostID?this.commentsByPostID[t].commentIds.length:0},getCommentsCountByThread:t=>t.threadKey&&t.threadKey in t.threads?t.threads[t.threadKey].commentIds.length+1:0,getCommentsCount(){return h.LIST===this.viewMode?this.getCommentsCountByType:this.getCommentsCountByThread},getParentComment(){const t=this.getList.parentCommentId||"";return t in this.comments?this.comments[t]:null},getStatus(){const t=this.getList;return t.status?parseInt(t.status):0},totalCount(){const t=this.getList;return t.total?t.total:0},hasHiddenOffensiveComments(){const t=(0,b.LM)().user.accountId,e=o=>o.some((o=>{if(o.isOffensive===v.B.HIDDEN&&o.user.accountId!==t)return!0;if(o.level>1)return!1;const i=this.getCommentsByThread(o.commentId);return i.length?e(i):void 0})),o=this.getCommentsRaw;return e(o)},getPinnedComments(){return this.getCommentsRaw.filter((t=>1===t.isPinned))}},actions:{init({config:t}){return J(this,void 0,void 0,(function*(){this.setCommentInfo(t),yield ot().fetchAppConfig(t),yield rt().fetchUserConfig(t),this.setInitStatus(u)}))},getComments(){return this.filterComments(this.getCommentsRaw)},filterComments(t){const e=(0,b.wm)().blocklistIds||{};e&&(t=t.filter((t=>-1===e.indexOf(t.user.accountId))));const o=this.getPostId,s=(0,b.LM)().isLoggedIn,n=(0,b.LM)().offensiveMode,r=i.Z.getters["session/SHOW_ALL_OFFENSIVE"](o);if("comment"===(0,b.LM)().blockPosts[o]&&(t=t.filter((t=>!t.opAnonymous))),s&&!n||r)return t;const a=(0,b.LM)().user.accountId;return t.filter((t=>t.isOffensive!==v.B.HIDDEN||t.isOffensive===v.B.HIDDEN&&t.user.accountId===a))},getFilterParentComment(){const t=this.getParentComment;return t&&this.filterComments([t])[0]||null},getCommentById(t){return this.comments[t]||{}},getCommentImageInfo(t,e,o=0){const{cdnHost:i}=ot().info,s=this.getCommentById(t);let n="",r=null,a="",c=!1,l=!1;if(s.type===f.USER_MEDIA&&s.media.length>0){const t=s.media[0];let d=0,p=0;if(t.type===f.MEDIA_ANIMATED&&t.video?(n=t.video.url,d=t.video.width,p=t.video.height,l=!0):t.type===f.MEDIA_STATIC&&t.image&&(n=t.image.url,r=t.image.webpUrl,d=t.image.width,p=t.image.height),a=`https://${i}/image?ref=${location.hostname}#${n}`,d&&p){const t=e-o,i=d>t?Math.floor(p/d*t):p;c=Math.min(400,i)}}return{imageUrl:n,imageHref:a,imageHeight:c,webpUrl:r,isVideo:l}},getRepliesByThreadId(t){const e=this.getCommentsByThread(t);return this.filterComments(e)},getLocalCommentsByThreadId(t){let e=[];if(this.localThreads[t])for(let o of this.localThreads[t])o in this.comments&&(this.threads[t]&&this.threads[t].commentIds.includes(o)||e.push(this.comments[o]));return e},getCommentsCountByThreadId(t){let e=0;return t in this.threads&&(e=1+this.threads[t].commentIds.length,this.threads[t].localCommentIds&&(e+=this.threads[t].localCommentIds.length)),e},getNextCursorByThreadId(t){if(t in this.threads)return this.threads[t].nextCursor},ifCommentHaveReplies(t){return this.getCommentById(t).childrenTotal>0},setRestoreCommentInfo(t){this.restoreCommentInfo=t},setShouldScrollToEnd(t){this.shouldScrollToEnd=t},setCommentInfo(t){this.url=t.url,this.postKey=t.postKey},setInitStatus(t){this.initStatus=t},setHighlightedCommentState({commentId:t=null}){this.highlightedCommentState={commentId:t}},clearHighlightedCommentState(){this.setHighlightedCommentState({})},setComments(t){const{options:e}=t,{comments:o,commentsBySign:i}=P(t);switch(this.updateComments(o),e.viewMode){case h.LIST:this.setCommentsByPostId(i);break;case h.THREAD:case h.POST_THREAD:this.setCommentsByThreadKey({loadType:e.loadType,commentsBySign:i})}},updateComments(t){this.comments=Object.assign(Object.assign({},this.comments),t)},setComment(t){this.comments=Object.assign({[t.commentId]:t},this.comments)},disableCollapse(t){this.comments[t].isCollapsed=-1,this.collapseToast=!0},updateLike({commentId:t,value:e}){const{likeMapping:o}=rt(),{auth:i}=ot().info;if(!(t in this.comments))return;if(!i||!o)return;const s=o[t]||0;let n=0,r=0;1===s&&n--,-1===s&&r--,1===e&&n++,-1===e&&r++;const a=this.comments[t];return a.likeCount=Math.max(0,a.likeCount+n),a.dislikeCount=Math.max(0,a.dislikeCount+r),rt().updateLikeMapping({[t]:e}),c={commentId:t,value:e},V(void 0,void 0,void 0,(function*(){try{const t=F("/like.json");yield H(t,Object.assign(Object.assign({},$()),c))}catch(t){console.error(t)}}));var c},hideOpComment(t){const{auth:e}=ot().info;if(e&&this.url)return this.removeComment({commentId:t.commentId,viewMode:this.viewMode,postKey:this.postKey,threadKey:this.threadKey}),(t=>V(void 0,void 0,void 0,(function*(){try{const e=F("/op/hide");return(yield H(e,Object.assign(Object.assign({},$()),t))).data.payload}catch(t){return console.error(t),null}})))({commentId:t.commentId,url:this.url})},deleteComment(t){const{auth:e}=ot().info;if(e&&this.url)return this.ifCommentHaveReplies(t.commentId)?this.comments[t.commentId].isDeleted=1:this.removeComment({commentId:t.commentId,viewMode:this.viewMode,postKey:this.postKey,threadKey:this.threadKey}),(t=>V(void 0,void 0,void 0,(function*(){try{const e=F("/comment.json");yield H(e,Object.assign(Object.assign(Object.assign({},$()),{_method:"DELETE"}),t))}catch(t){console.error(t)}})))({id:t.commentId,url:this.url})},removeComment(t){const{viewMode:e,commentId:o}=t,i=t.postKey||"",s=t.threadKey||"";if(!(o in this.comments))return;const n=()=>{const t=[i+":"+f.HOT,i+":"+f.NEW,i+":"+f.OLD];for(let e of t)if(e in this.commentsByPostID){let t=this.commentsByPostID[e].commentIds.findIndex((t=>t===o));t>-1&&this.commentsByPostID[e].commentIds.splice(t,1)}};switch(e){case h.LIST:n(),o in this.threads&&delete this.threads[o];break;case h.THREAD:case h.POST_THREAD:const t=this.threads[s];if(!t)return;if(t.parentCommentId===o)n(),t.parentCommentId="";else{let e=t.commentIds.findIndex((t=>t===o));if(e>-1&&t.commentIds.splice(e,1),t.parentCommentId&&t.parentCommentId in this.comments){let e=this.comments[t.parentCommentId];e.childrenTotal--,e.childrenTotal<0&&(e.childrenTotal=0)}}}delete this.comments[o]},setLock({key:t,viewMode:e,lock:o}){switch(e){case h.LIST:this.commentsByPostID[t].lock=o;break;case h.THREAD:case h.POST_THREAD:this.threadKey&&(this.threads[this.threadKey].lock=o)}},setStatus({key:t,viewMode:e,status:o}){switch(e){case h.LIST:this.commentsByPostID[t].status=o;break;case h.THREAD:case h.POST_THREAD:this.threadKey&&(this.threads[this.threadKey].status=o)}},setTotalCount(t){const e=this.getListKey;switch(this.viewMode){case h.LIST:this.commentsByPostID[e].total=t;break;case h.THREAD:case h.POST_THREAD:this.threadKey&&(this.threads[this.threadKey].total=t)}},setCommentsByThreadKey(t){let{loadType:e,commentsBySign:o}=t,i=Object.assign({},this.threads);for(let t in o){let s=o[t];if(!(t in i)){s.sortLatest="LOAD_LAST"===e,i[t]=s;continue}let n=i[t],r=n.sortLatest;r||"LOAD_PREV"!==e||s.commentIds.reverse();for(let t in s.commentIds){let o=s.commentIds[t];-1===n.commentIds.indexOf(o)&&("LOAD_PREV"===e?n.commentIds.unshift(o):n.commentIds.push(o))}n.status=s.status,n.lock=s.lock,n.timestamp=s.timestamp,"LOAD_PREV"===e?n.prevCursor=r?s.nextCursor:s.prevCursor:n.nextCursor=s.nextCursor}this.threads=i},setCommentsByPostId(t){let e=Object.assign({},this.commentsByPostID);for(let o in t){let i=t[o];if(!(o in e)){e[o]=i;continue}let s=e[o];i.commentIds.forEach((t=>{-1===s.commentIds.indexOf(t)&&s.commentIds.push(t)})),s.status=i.status,s.lock=i.lock,s.timestamp=i.timestamp,s.nextCursor=i.nextCursor}this.commentsByPostID=e},incrementCommentCount(t){this.comments[t]&&(this.comments[t].childrenTotal++,this.comments=Object.assign({},this.comments))},resetComments(){this.comments={},this.commentsByPostID={},this.threads={},this.firstLoadingFlags={}},setType(t=f.HOT){this.updateType(t),this.toggleListView()},updateType(t){this.type=t},setViewMode(t){this.viewMode=t},setThreadKey(t){this.threadKey=t},setFirstLoading(t){let e="";switch(t.viewMode){case h.LIST:e=h.LIST+":"+t.postKey+":"+t.type,this.firstLoadingFlags[e]=!!t.value;break;case h.THREAD:case h.POST_THREAD:e=h.THREAD+":"+t.threadKey,this.firstLoadingFlags[e]=!!t.value}this.firstLoadingFlags=Object.assign({},this.firstLoadingFlags)},setNextLoading(t){switch(t.viewMode){case h.LIST:const e=t.postKey+":"+t.type;e in this.commentsByPostID&&(this.commentsByPostID[e].isNextLoading=!!t.value,this.commentsByPostID=Object.assign({},this.commentsByPostID));break;case h.THREAD:case h.POST_THREAD:t.threadKey&&t.threadKey in this.threads&&(this.threads[t.threadKey].isNextLoading=!!t.value,this.threads=Object.assign({},this.threads))}},setPrevLoading(t){switch(t.viewMode){case h.POST_THREAD:t.threadKey&&t.threadKey in this.threads&&(this.threads[t.threadKey].isPrevLoading=!!t.value,this.threads=Object.assign({},this.threads))}},setTTL(t){this.ttl=t},opPinCommentConfirmModal({commentId:t,pin:e}){this.showOpPinCommentId=t,this.showOpPinCommentConfirmModal=e},reportComment(t){return J(this,void 0,void 0,(function*(){const{auth:e}=ot().info;if(!e||!this.url)return Promise.reject();t.url=this.url;try{const{commentId:e,userReportData:o}=t;yield(t=>V(void 0,void 0,void 0,(function*(){try{const e=F("/report.json");yield H(e,Object.assign(Object.assign(Object.assign({},$()),t),{userReportData:JSON.stringify(t.userReportData)}))}catch(t){console.error(t)}})))({commentId:e,url:this.url,userReportData:o}),this.removeComment({commentId:e,viewMode:this.viewMode,postKey:this.postKey,threadKey:this.threadKey}),rt().updateReportedPostUrls({[this.url]:1})}catch(t){return Promise.reject(t)}}))},fetchComments(t){return J(this,void 0,void 0,(function*(){const{hasActivities:e}=rt(),{auth:o}=ot().info,i=Object.assign(Object.assign({},t),{url:this.url});e&&(i.auth=o),t.key=t.threadKey?t.threadKey:t.postKey;try{const e=yield z(i);if(!this.isFirstLoading)return;t.loadType="LOAD_FIRST",this.setComments({data:e,options:t})}catch(t){Promise.reject(t)}}))},fetchReplies(t={}){return J(this,void 0,void 0,(function*(){const{hasActivities:e}=rt(),{auth:o}=ot().info;if(this.clearThreadsByTTL({threadKey:t.key,timestamp:(new Date).getTime()}),this.getCommentsCountByThreadId(t.key)>0)return Promise.resolve();const i={level:2,commentId:t.key,url:this.url,type:"old"};e&&(i.auth=o);try{const e=yield z(i);t.loadType="LOAD_LAST",this.setReplies({data:e,options:t})}catch(t){}}))},setReplies(t){return J(this,void 0,void 0,(function*(){let{options:e}=t,{comments:o,commentsBySign:i}=P(t);this.updateComments(o),this.setCommentsByThreadKey({loadType:e.loadType,commentsBySign:i})}))},loadMoreReplies({threadKey:t}){return J(this,void 0,void 0,(function*(){const e=this.getNextCursorByThreadId(t);yield this.loadNextCommentsInThread({threadKey:t,nextCursor:e})}))},toggleListView(){return J(this,void 0,void 0,(function*(){if(Q().initNewComposer({idKey:this.postKey}),this.setViewMode(h.LIST),this.setThreadKey(null),!this.isInited||this.isFirstLoading)return;const t={viewMode:this.viewMode,postKey:this.postKey,type:this.type},e=Object.assign(Object.assign({},t),{value:!0});this.setFirstLoading(e);try{if(yield this.clearByTTL(Object.assign({},t)),this.getCommentsCount>0)return;yield this.fetchComments(t)}finally{e.value=!1,this.setFirstLoading(e)}}))},toggleThreadView(t){return J(this,void 0,void 0,(function*(){if(![h.THREAD,h.POST_THREAD].includes(t.viewMode))return;const e=t.commentId;if(this.setViewMode(t.viewMode),this.setThreadKey(e),Q().initNewComposer({idKey:this.postKey,parent:this.threadKey}),!this.isInited||this.isFirstLoading)return;const o={commentId:e,level:2,type:f.ANCHOR,viewMode:this.viewMode,threadKey:this.threadKey},i={viewMode:this.viewMode,threadKey:this.threadKey,value:!0};this.setFirstLoading(i);try{if(yield this.clearByTTL(Object.assign({},t)),this.getCommentsCount>0)return Promise.resolve();yield this.fetchComments(o)}finally{i.value=!1,this.setFirstLoading(i)}}))},loadNextComments(t){return J(this,void 0,void 0,(function*(){if(!this.isInited||this.isNextLoading)return Promise.reject({message:"The request is already processing"});if(!t)return Promise.reject({message:"Next cursor is empty"});let e={viewMode:this.viewMode,loadType:"LOAD_NEXT",key:h.LIST===this.viewMode?this.postKey:this.threadKey};h.LIST===this.viewMode&&(e.type=this.type);let o=Object.assign({},e);o.value=!0,h.LIST===this.viewMode?o.postKey=this.postKey:o.threadKey=this.threadKey,this.setNextLoading(o);const{hasActivities:i}=rt(),{auth:s}=ot().info,n=Object.assign({},B().parse(t));n.refresh&&(n.next=n.refresh,delete n.refresh),i&&(n.auth=s);try{const t=yield z(n);this.setComments({data:t,options:e})}finally{o.value=!1,this.setNextLoading(o)}}))},loadPrevComments(t){return J(this,void 0,void 0,(function*(){if(!this.isInited||this.isPrevLoading)return Promise.reject({message:"The request is already processing"});if(!t)return Promise.reject({message:"Prev cursor is empty"});let e={viewMode:this.viewMode,loadType:"LOAD_PREV",key:this.threadKey},o=Object.assign({},e);o.value=!0,o.threadKey=this.threadKey,this.setPrevLoading(o);const{hasActivities:i}=rt(),{auth:s}=ot().info,n=Object.assign({},B().parse(t));i&&(n.auth=s);try{const t=yield z(n);this.setComments({data:t,options:e})}finally{o.value=!1,this.setPrevLoading(o)}}))},clearListCommentsByTTL(t){const{postKey:e,type:o=f.HOT,timestamp:i}=t,s=e+":"+o,n=this.ttl[o];s in this.commentsByPostID&&i>this.commentsByPostID[s].timestamp+n&&delete this.commentsByPostID[s]},deleteThreadByKey(t){delete this.threads[t]},clearThreadsByTTL({threadKey:t,timestamp:e}){t in this.threads&&e>this.threads[t].timestamp+this.ttl[f.HOT]&&this.deleteThreadByKey(t)},clearByTTL(t){return J(this,void 0,void 0,(function*(){const e=(new Date).getTime();switch(t.viewMode){case h.LIST:this.clearListCommentsByTTL(Object.assign(Object.assign({},t),{timestamp:e}));break;case h.THREAD:case h.POST_THREAD:this.clearThreadsByTTL(Object.assign(Object.assign({},t),{timestamp:e}))}}))},loadNextCommentsInThread({nextCursor:t,threadKey:e}){return J(this,void 0,void 0,(function*(){const{hasActivities:o}=rt(),{auth:i}=ot().info;if(!t)return Promise.reject({message:"Next cursor is empty"});let s={loadType:"LOAD_NEXT",key:e};const n=Object.assign({},B().parse(t));o&&(n.auth=i);try{const t=yield z(n);this.setReplies({data:t,options:s})}catch(t){}}))},opPinComment({commentId:t,pin:e}){return J(this,void 0,void 0,(function*(){const o=yield(i={commentId:t,url:this.url,pinned:e?1:0},V(void 0,void 0,void 0,(function*(){try{const t=F("/op/pin");return(yield H(t,Object.assign(Object.assign({},$()),i))).data.payload}catch(t){throw console.error(t),t}})));var i;this.comments[t].isPinned=e;const s=null==o?void 0:o.pinnedCommentIds;if(!s)return;Object.keys(this.comments).forEach((t=>{this.comments[t].isPinned&&(s.includes(t)||(this.comments[t].isPinned=!1))}));const n=this.postKey+":"+this.type;return this.commentsByPostID[n]?(this.commentsByPostID[n].commentIds=this.commentsByPostID[n].commentIds.filter((e=>e!==t)),this.commentsByPostID[n].commentIds.unshift(t),o):void 0}))},getTypeLabel:t=>{switch(t){case f.HOT:return"Hot";case f.NEW:return"New";case f.OLD:return"Oldest";default:return t}},getForumTypeLabel:t=>{switch(t){case f.HOT:return"Most Upvoted";case f.OLD:return"Oldest";default:return t}}}});const et={info:{appId:null,auth:null,cdnHost:null,host:null,maxMessageLength:1e3,anonymousAvatarUrl:null}},ot=(0,s.Q_)("commentApp",{state:()=>et,actions:{fetchAppConfig(t){return e=this,o=void 0,s=function*(){const{appId:e,cdnHost:o,host:i}=t;if(this.updateInfo({cdnHost:o,host:i}),this.info.appId&&this.info.appId===e)return Promise.resolve();this.updateInfo({appId:e});const s=yield V(void 0,void 0,void 0,(function*(){try{const{appId:t}=ot().info,e=F("/app.json",{id:t},{cacheable:!0,version:"v1"});return(yield O.Z.get(e)).data.payload.app}catch(t){return console.error(t),null}}));this.updateInfo(s)},new((i=void 0)||(i=Promise))((function(t,n){function r(t){try{c(s.next(t))}catch(t){n(t)}}function a(t){try{c(s.throw(t))}catch(t){n(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,a)}c((s=s.apply(e,o||[])).next())}));var e,o,i,s},updateInfo(t){this.info=Object.assign(Object.assign({},this.info),t)}},persist:{key:"commentAppState",paths:["info"]}});var it=o(7114),st=o(29962);const nt={info:(0,it.p)(r),commentedPostUrls:{},reportedPostUrls:{},likeMapping:{},quota:{}},rt=(0,s.Q_)("commentUser",{state:()=>nt,getters:{isLoggedIn:t=>null!==t.info.userId,hasActivities(){if(null===this.info.userId)return!1;if(this.info.moderate)return!0;const{url:t}=tt(),e=this.commentedPostUrls,o=this.reportedPostUrls;let i=!1;return t?(e&&e[t]&&(i=!0),o&&o[t]&&(i=!0),i):i},canModerate:t=>!!t.info.moderate,canComment:t=>!(!t.quota||!t.quota.count)&&t.quota.count>0,waitTimeToComment:t=>t.quota?t.quota.wait>0&&st.default.secondsToHrs(t.quota.wait):0},actions:{fetchUserConfig(t){return e=this,o=void 0,s=function*(){const{auth:e}=t;if(e&&ot().info.auth===e||(this.setUserInfo(),e&&tt().resetComments()),ot().updateInfo({auth:e}),e&&!this.info.userId)try{const t=yield V(void 0,void 0,void 0,(function*(){try{const t=F("/user.json");return(yield H(t,Object.assign({},$()))).data.payload}catch(t){return console.error(t),null}}));this.setUserInfo(t)}catch(t){}},new((i=void 0)||(i=Promise))((function(t,n){function r(t){try{c(s.next(t))}catch(t){n(t)}}function a(t){try{c(s.throw(t))}catch(t){n(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,a)}c((s=s.apply(e,o||[])).next())}));var e,o,i,s},setUserInfo(t={}){this.info=t.user||(0,it.p)(r),this.commentedPostUrls=t.commentedPostUrls||{},this.reportedPostUrls=t.reportedPostUrls||{},this.likeMapping=t.likeMapping||{},this.quota=t.quota||{}},updateCommentedPostUrls(t){const e=Object.assign(Object.assign({},this.commentedPostUrls),t);this.commentedPostUrls=e},updateReportedPostUrls(t){const e=Object.assign(Object.assign({},this.reportedPostUrls),t);this.reportedPostUrls=e},updateLikeMapping(t){const e=Object.assign(Object.assign({},this.likeMapping),t);this.likeMapping=e},updateQuota(t){const e=Object.assign(Object.assign({},this.quota),t);e.wait&&(e.expiry=Date.now()+1e3*e.wait),this.quota=e}},persist:{key:"commentUserState",paths:["info","commentedPostUrls","reportedPostUrls","likeMapping","quota"]}});var at=o(51496);class ct extends class{constructor(t){this.id=null,this.content=null,this.uploadedMedia=null,this.id=(0,at.x0)(),this.content=t}}{constructor(t=null){super(t),this.type="file"}}var lt=o(23376),dt=o(48254),pt=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const ut={uploadedFiles:{},processingFilesID:{},errors:{}},ht=(0,s.Q_)("commentAttachment",{state:()=>ut,getters:{getAttachedFiles:t=>e=>t.uploadedFiles[e]||[],isProcessingFile:t=>e=>t.processingFilesID[e]},actions:{uploadFile({file:t,itemID:e}){return pt(this,void 0,void 0,(function*(){this.setProcessingFile(e);try{yield this.attachFile({file:t,itemID:e})}catch(t){(0,lt.E)().showNotice(_.default.getCommentErrorMessage(t)),(null==t?void 0:t.response)?dt.default.trackCommentFail(t):dt.default.trackCommentWarning("Media")}this.deleteProcessingFile(e)}))},pasteUpload({itemID:t,pasteEvent:e}){return pt(this,void 0,void 0,(function*(){const o=e.clipboardData?e.clipboardData.items:void 0;if(void 0!==o&&0!==o.length){let i=null;for(let t=0;tt.id!==e)):[]},addMedia({media:t,itemID:e,fileID:o}){if(!this.uploadedFiles[e])return;const i=this.uploadedFiles[e].find((t=>t.id===o));i&&(i.uploadedMedia=t,i.uploaded=!0)},setProcessingFile(t){this.processingFilesID[t]=!0},deleteProcessingFile(t){this.processingFilesID[t]=!1}}});var mt=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const gt={followStatusInProgressMap:{},followStatusMap:{}},ft=(0,s.Q_)("commentFollow",{state:()=>gt,actions:{getFollowStatus(t){return this.followStatusMap[t]},getIsFollowStatusInProgress(t){return t&&this.followStatusInProgressMap[t]},isNeedFetchFollowStatus(t){return void 0===this.followStatusMap[t]},setFollowStatus({threadId:t,followed:e}){this.followStatusMap[t]=e},setFollowStatusInProgress({threadId:t,isInProgress:e}){this.followStatusInProgressMap[t]=e},changeFollowStatus({threadId:t,follow:e}){this.setFollowStatusInProgress({threadId:t,isInProgress:!0}),this.updateFollowStatus({threadId:t,follow:e}).then((()=>{const t=e?"You will get notified when there are new replies.":"You won't get notified.";(0,lt.E)().showInfo(t)})).catch((t=>{console.log(t)})).finally((()=>{this.setFollowStatusInProgress({threadId:t,isInProgress:!1})}))},fetchFollowStatus(t){return mt(this,void 0,void 0,(function*(){if(!t||void 0!==this.getFollowStatus(t))return Promise.resolve();try{const o=yield(e={threadId:t},V(void 0,void 0,void 0,(function*(){try{const t="/v1/follow-thread-status",o=yield O.Z.post(t,e);return U.fromJson(o.data.data)}catch(t){return console.error(t),null}})));this.setFollowStatus({threadId:t,followed:!!(null==o?void 0:o.followed)})}catch(t){return Promise.reject(t)}var e}))},updateFollowStatus({threadId:t,follow:e}){return mt(this,void 0,void 0,(function*(){try{yield(o={threadId:t,followed:e},V(void 0,void 0,void 0,(function*(){try{const t="/v1/follow-thread";yield O.Z.post(t,{threadId:o.threadId,follow:o.followed})}catch(t){console.error(t)}}))),this.setFollowStatus({threadId:t,followed:!!e})}catch(t){return Promise.reject(t)}var o}))}}});var vt=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const bt={adminActions:{}},wt=(0,s.Q_)("commentAdmin",{state:()=>bt,actions:{getAdminActions(t){return this.adminActions[t]||n},setAdminActions({commentId:t,adminActions:e}){this.adminActions[t]=e},adminHide({commentId:t,hide:e}){return vt(this,void 0,void 0,(function*(){try{yield(o={commentId:t,hide:e},V(void 0,void 0,void 0,(function*(){try{const t=F(`/admin/${o.hide?"hide":"unhide"}`),{url:e}=tt();return(yield H(t,Object.assign(Object.assign({},$()),{commentId:o.commentId,url:e}))).data.payload}catch(t){return console.error(t),null}})));const i=this.getAdminActions(t);this.setAdminActions({commentId:t,adminActions:Object.assign(Object.assign({},i),{hidden:e})})}catch(t){console.error(t)}var o}))},adminMask({commentId:t,sensitive:e}){return vt(this,void 0,void 0,(function*(){try{yield(o={commentId:t,sensitive:e},V(void 0,void 0,void 0,(function*(){try{const t=F("/admin/mask"),{url:e}=tt();return(yield H(t,Object.assign(Object.assign({},$()),{commentId:o.commentId,sensitive:(null==o?void 0:o.sensitive)?1:0,url:e}))).data.payload}catch(t){return console.error(t),null}})));const i=this.getAdminActions(t);this.setAdminActions({commentId:t,adminActions:Object.assign(Object.assign({},i),{sensitive:e})})}catch(t){console.error(t)}var o}))},adminBan({commentId:t,userId:e,ban:o}){return vt(this,void 0,void 0,(function*(){try{yield(i={userId:e,ban:o},V(void 0,void 0,void 0,(function*(){try{const t=F(`/admin/${i.ban?"ban":"unban"}`);return(yield H(t,Object.assign(Object.assign({},$()),{userId:i.userId}))).data.payload}catch(t){return console.error(t),null}})));const s=this.getAdminActions(t);this.setAdminActions({commentId:t,adminActions:Object.assign(Object.assign({},s),{banned:o})})}catch(t){console.error(t)}var i}))},adminPin({commentId:t,pin:e}){return vt(this,void 0,void 0,(function*(){try{yield(o={commentId:t,pin:e},V(void 0,void 0,void 0,(function*(){try{const t=F("/admin/pin"),{url:e}=tt();return(yield H(t,Object.assign(Object.assign({},$()),{url:e,commentId:o.commentId,pinned:o.pin?1:0}))).data.payload}catch(t){return console.error(t),null}})));const i=this.getAdminActions(t);this.setAdminActions({commentId:t,adminActions:Object.assign(Object.assign({},i),{pinned:e})})}catch(t){console.error(t)}var o}))},updateLock(t){return vt(this,void 0,void 0,(function*(){try{yield(e={lock:t},V(void 0,void 0,void 0,(function*(){return G(e)}))),tt().setLock({key:tt().getListKey,viewMode:tt().viewMode,lock:!!t})}catch(t){console.error(t)}var e}))},updateStatus(t){return vt(this,void 0,void 0,(function*(){try{yield(e={status:t},V(void 0,void 0,void 0,(function*(){return G(e)}))),tt().setStatus({key:tt().getListKey,viewMode:tt().viewMode,status:t})}catch(t){}var e}))}}})},3058:(t,e,o)=>{"use strict";o.d(e,{n:()=>d});var i=o(84157),s=o(73949),n=o(48254),r=o(33360),a=o(23376),c=o(57437);const l={report:{id:null,type:null},onSuccess:null,onCancel:null,isLoading:!1,isShowing:!1},d=(0,i.Q_)("report",{state:()=>l,actions:{setLoading(t){this.isLoading=t},setReport(t,e,o){this.report=t,this.onSuccess=e,this.onCancel=o,this.isShowing=!!t.id},onSubmitReport(t){n.default.trackReport(this.report.type),this.report.type===s.Z.TYPES.COMMENT?(this.showSuccessToast(),this.onSuccess&&this.onSuccess(t),this.resetReport()):this.sendReport(t)},sendReport(t,e,o){return i=this,n=void 0,l=function*(){if(!this.report||this.isLoading)return;this.setLoading(!0);const i={type:t},n=e||this.report.type,a=o||this.report.id;if(!n||!a)return;switch(n){case s.Z.TYPES.POST:i.entryId=a,t!==s.Z.TYPE_INCORRECT_SECTION.type&&(0,r.LM)().addReport(a);break;case s.Z.TYPES.PROFILE:i.username=a}const l=yield(t=>{return e=void 0,o=void 0,s=function*(){try{const e=yield c.Z.post("/report",t);return null==e?void 0:e.data}catch(t){return console.error(t),null}},new((i=void 0)||(i=Promise))((function(t,n){function r(t){try{c(s.next(t))}catch(t){n(t)}}function a(t){try{c(s.throw(t))}catch(t){n(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,a)}c((s=s.apply(e,o||[])).next())}));var e,o,i,s})(i);(null==l?void 0:l.okay)?(this.showSuccessToast(),this.onSuccess&&this.onSuccess(t),this.resetReport()):this.showErrorToast(),this.setLoading(!1)},new((a=void 0)||(a=Promise))((function(t,e){function o(t){try{r(l.next(t))}catch(t){e(t)}}function s(t){try{r(l.throw(t))}catch(t){e(t)}}function r(e){var i;e.done?t(e.value):(i=e.value,i instanceof a?i:new a((function(t){t(i)}))).then(o,s)}r((l=l.apply(i,n||[])).next())}));var i,n,a,l},onCancelReport(){this.onCancel&&this.onCancel(),this.resetReport()},showSuccessToast(){this.onSuccess||(0,a.E)().showInfo("Reported. Thanks for making 9GAG better.")},showErrorToast(){this.onCancel||(0,a.E)().showInfo("Something went wrong, please try again later.")},resetReport(){this.onSuccess=null,this.onCancel=null,this.isShowing=!1}}})},73726:(t,e,o)=>{"use strict";o.d(e,{k:()=>c});var i=o(97554),s=o(46296),n=o(84157);const{config:r}=window._config||{},a={route:null,RouteNames:i.Z,domain:r.domain,cookieDomain:r.cookieDomain,pageKey:r.page_key},c=(0,n.Q_)("route",{state:()=>a,getters:{cookieOptions(){return{domain:this.cookieDomain,path:"/",expires:1095}},pageKey(){return this.getPageKey(this.route)},queryParams(){var t;return(null===(t=this.route)||void 0===t?void 0:t.query)||{}},isRoute(){return(...t)=>t.some((t=>{var e;return(null===(e=this.route)||void 0===e?void 0:e.name)===t}))},isValidLink(){return t=>new RegExp("^http(s?)://"+this.domain).test(t.trim())},getPageKey(){return t=>{if(!t)return this.pageKey;let e;switch(t.name){case i.Z.HOME_POST_LIST:return s.default.capitalize(t.params.type||"home");case i.Z.INTEREST_POST_LIST:return`Interest-${s.default.capitalize(t.params.interest||"")}`;case i.Z.TAG_POST_LIST:const o=s.default.capitalize(t.params.tag||"");return e=s.default.capitalize(t.params.type||"hot"),`Tag-${o}-${e}`;case i.Z.USER_LIST:return e=s.default.capitalize(t.params.type||"posts"),`Profile-${e}`;case i.Z.SEARCH_POST_LIST:return"Search";case i.Z.POST:return"Post";case i.Z.SIGNUP:return"Signup";case i.Z.LOGIN:return"Login";case i.Z.SETTINGS:return"Settings";case i.Z.COLLECTION_PAGE:return"CollectionPage"}return this.pageKey}}},actions:{onRouteChange(t,e){return o=this,i=void 0,n=function*(){this.route=t},new((s=void 0)||(s=Promise))((function(t,e){function r(t){try{c(n.next(t))}catch(t){e(t)}}function a(t){try{c(n.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof s?o:new s((function(t){t(o)}))).then(r,a)}c((n=n.apply(o,i||[])).next())}));var o,i,s,n}}})},57018:(t,e,o)=>{"use strict";o.d(e,{bG:()=>c,VP:()=>l,_D:()=>d,gF:()=>p,z3:()=>u,n4:()=>h,_n:()=>m,TJ:()=>g,LM:()=>f,ig:()=>v,fR:()=>b,Ig:()=>w,Gy:()=>y,CI:()=>k,$:()=>P,aB:()=>O,I2:()=>_,wX:()=>I,w8:()=>C,oe:()=>S});var i=o(84564),s=o.n(i),n=o(57437),r=o(46296),a=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const c=()=>a(void 0,void 0,void 0,(function*(){try{const t=new(s())("/v1/user-info"),{data:{data:e}}=yield n.Z.post(t.toString());return{user:Object.assign({hashedEmail:yield r.default.stringToBase64SHA256(r.default.normalizeEmail(e.user.email))},e.user),reports:e["user-report"],votes:e.vote,saves:e.save,uploads:e["user-upload"],blocklistIds:e["block-account"],blockPosts:e["block-post"],muteList:e["mute-list"]||[],blockTags:e["block-tag"]||[]}}catch(t){return console.error(t),null}})),l=t=>a(void 0,void 0,void 0,(function*(){const e=new(s())("/v1/settings"),o=new FormData;Object.keys(t).forEach((e=>{o.append(e,t[e])}));try{const{data:{data:t}}=yield n.Z.post(e.toString(),o);return Object.assign({},t)}catch(t){return console.error(t),null}})),d=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post("/connect/unlink",{platform:t})).data.data}catch(t){return console.error(t),null}})),p=t=>a(void 0,void 0,void 0,(function*(){return(yield n.Z.post("/v1/user-forgot-password",{email:t})).data.meta})),u=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post("/v1/vote/like",{id:t})).data}catch(t){return console.error(t),null}})),h=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post("/v1/vote/dislike",{id:t})).data}catch(t){return console.error(t),null}})),m=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post("/v1/vote/unlike",{id:t})).data}catch(t){return console.error(t),null}})),g=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post(`/v1/save-post?id=${t}`)).data.meta.status}catch(t){return console.error(t),null}})),f=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.delete(`/v1/save-post?id=${t}`)).data.meta.status}catch(t){return console.error(t),null}})),v=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post("/v1/block-post",t)).data}catch(t){return console.error(t),null}})),b=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.delete("/v1/post",{data:{entryId:t}})).data}catch(t){return console.error(t),null}})),w=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post("/v1/user-block-list",t)).data.data}catch(t){return console.error(t),null}})),y=t=>a(void 0,void 0,void 0,(function*(){try{const e=new URLSearchParams({accountId:t,_method:"post"});return(yield n.Z.post("/v1/user-block",e)).data}catch(t){return console.error(t),null}})),k=t=>a(void 0,void 0,void 0,(function*(){try{const e=new URLSearchParams({accountId:t,_method:"delete"});return(yield n.Z.post("/v1/user-block",e)).data}catch(t){return console.error(t),null}})),P=()=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.get("/user-followed-pages")).data}catch(t){return console.error(t),null}})),O=(t,e,o)=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post(`/user-followed-pages/${t}/${e}`,o)).data}catch(t){return console.error(t),null}})),_=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post("/v1/user-mute-list",{value:t.join(",")})).data}catch(t){return console.error(t),null}})),I=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.delete("/v1/user-mute-list",{data:{value:t}})).data}catch(t){return console.error(t),null}})),C=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.post("/v1/block-tag",{value:t})).data}catch(t){return console.error(t),null}})),S=t=>a(void 0,void 0,void 0,(function*(){try{return(yield n.Z.delete("/v1/block-tag",{data:{value:t}})).data}catch(t){return console.error(t),null}}))},33360:(t,e,o)=>{"use strict";o.d(e,{Go:()=>u,wm:()=>v,LM:()=>T});var i=o(84157),s=(o(27802),o(48254)),n=o(63145),r=o(47881),a=o(90099),c=o(29962);const l=(t,e,o=1e3)=>{const i=t.indexOf(e);return-1!==i&&t.splice(i,1),t.unshift(e),t.splice(o),t};var d=o(7114);const p={user:{userId:null,accountId:null,hashId:null,username:null,fullName:null,emojiStatus:null,email:null,pendingEmail:null,hasPassword:null,fbConnected:null,googleConnected:null,appleConnected:null,safeMode:!0,nsfwMode:!1,offensiveMode:!0,about:null,country:null,location:null,profileUrl:null,avatarUrl:null,gender:null,birthday:null,isActivePro:!1,isActiveProPlus:!1,isVerifiedAccount:!1,isVerified:{email:!0,age:!0},initialFollowFinished:!0,creationTs:0,activeTs:0,uploadTs:0,preferences:{hideFromRobots:0,creatorUpdateStatus:0},membership:null,commentAuth:null,notiOptions:{channels:null,readStateParams:null},restricted:!1,dataRequest:0,subscribe:{news:0},idService:{optOut:!1,hashedRecords:[]},hashedEmail:null},votes:{},saves:[],uploads:[],reports:[],blockPosts:{},muteList:[],blockTags:[]},u={UNVOTE_POST:"UnvotePost",UPVOTE_POST:"UpvotePost",DOWNVOTE_POST:"DownvotePost"};var h=o(57018),m=o(23376),g=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const f={blocklist:[],blocklistIds:[],autoFollowThreadReply:!0},v=(0,i.Q_)("userSettings",{state:()=>f,getters:{getBlockedUserByAccountId:t=>e=>t.blocklist.find((t=>t.accountId===e))||null,isUserBlocked:t=>e=>-1!==t.blocklistIds.indexOf(e)},actions:{fetchBlockedUsers({cursor:t=0}={}||{}){return g(this,void 0,void 0,(function*(){const e=t?this.blocklist:[],o=yield h.Ig({fromIndex:t,itemCount:20});if(!o)return;const i=[...e,...o.users];if(this.setBlocklist(i),!o.didEndOfList&&o.users.length<=20){const e=yield this.fetchBlockedUsers({cursor:t+20});if(!e)return;e.didEndOfList&&(o.didEndOfList=1)}return o}))},setBlocklist(t){this.blocklist=t},setBlocklistIds(t){this.blocklistIds=t},addIdToBlocklistIds(t){this.blocklistIds.push(t)},removeBlockedUserByIndex(t){const e=this.blocklist.findIndex((e=>e.accountId===t));-1!==e&&this.blocklist.splice(e,1)},removeBlockedUser(t){this.blocklistIds.splice(this.blocklistIds.indexOf(t),1),this.removeBlockedUserByIndex(t)},blockUser({accountID:t,username:e}){return g(this,void 0,void 0,(function*(){yield h.Gy(t),this.addIdToBlocklistIds(t),(0,m.E)().showDefault(`You’ve blocked @${e}`)}))},unBlockUser({accountID:t,username:e}){return g(this,void 0,void 0,(function*(){yield h.CI(t),this.removeBlockedUser(t),(0,m.E)().showDefault(`You’ve unblocked @${e}`)}))},setAutoFollowThreadReply(t){this.autoFollowThreadReply=t}},persist:{key:"userSettingsState",paths:["blocklistIds","autoFollowThreadReply"]}});var b=o(50361),w=o.n(b),y=o(44356),k=o(82492),P=o.n(k),O=o(96810),_=o(98879),I=o(11186),C=o(46296),S=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const x={isUserInitCompleted:!1,userInfo:(0,d.p)(p),uninterestedPosts:[],profiles:{},userInfoUpdateTs:0,userFollowedPages:{tags:[],interests:[]},blockPostsQueue:[],recentUploadedInterests:[]},T=(0,i.Q_)("user",{state:()=>x,getters:{isLoggedIn:t=>null!==t.userInfo.user.username,user:t=>t.userInfo.user,votes:t=>t.userInfo.votes,saves:t=>t.userInfo.saves,uploads:t=>t.userInfo.uploads,reports:t=>t.userInfo.reports,blockPosts:t=>t.userInfo.blockPosts,safeMode:t=>t.userInfo.user.safeMode,nsfwMode:t=>t.userInfo.user.nsfwMode,offensiveMode:t=>t.userInfo.user.offensiveMode,isActivePro:t=>t.userInfo.user.isActivePro,isActiveProPlus:t=>t.userInfo.user.isActiveProPlus,getUserScore:t=>e=>t.userInfo.votes[e]||0,getProfile:t=>e=>t.profiles[(e||"").toLowerCase()]||{},showSignupBanner(){return this.isUserInitCompleted&&!this.isLoggedIn},getUserFollowedInterests:t=>(t.userFollowedPages.interests||[]).map((t=>t.interest)),getRecentUploadedInterests:t=>t.recentUploadedInterests,getLocalLocationCode:t=>(t.userInfo.user.country||t.userInfo.user.location||I.Z.getLocation()||"").toLowerCase()},actions:{setUserInitCompleted(t){this.isUserInitCompleted=t},setUserInfo(){return S(this,void 0,void 0,(function*(){const t=yield h.bG();if(!t)return;const{blocklistIds:e}=t,o=function(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);sc.default.getCurrentTime()||(yield this.setUserInfo()))}))},updateUserInfo(t){return S(this,void 0,void 0,(function*(){this.userInfo=t,this.userInfoUpdateTs=c.default.getCurrentTime()}))},updateUnInterestedPosts(){const t=[];for(const[e,o]of Object.entries(this.userInfo.votes))-1===o&&t.push(e);this.uninterestedPosts=[...t,...this.userInfo.reports].filter((t=>!this.userInfo.uploads.includes(t)))},updateSettings(t){return S(this,void 0,void 0,(function*(){const e=yield h.VP(t),{user:o}=e;return o&&(yield this.updateUserInfo(Object.assign(Object.assign({},this.userInfo),{user:o}))),n.Z.updateToken(o),s.default.setUserInfo(o),(0,y.v)().prependLocalInterest(),e}))},unlinkAccount(t){return S(this,void 0,void 0,(function*(){const e=yield h._D(t);return this.setUserInfo(),e}))},addProfile(t){this.profiles[t.username]=t},votePost(t,e,o){t===u.UNVOTE_POST&&this.unvotePost(e),t===u.UPVOTE_POST&&this.upvotePost(e,o),t===u.DOWNVOTE_POST&&this.downvotePost(e,o)},unvotePost(t){h._n(t),this.updateVote({[t]:0})},upvotePost(t,e){h.z3(t),this.updateVote({[t]:1}),s.default.trackVotePost("Up",t,e)},downvotePost(t,e){h.n4(t),this.updateVote({[t]:-1}),s.default.trackVotePost("Down",t,e)},updateVote(t){this.userInfo.votes=Object.assign(Object.assign({},this.userInfo.votes),t)},addReport(t){this.userInfo.reports=l(this.userInfo.reports,t)},addUpload(t){this.userInfo.uploads.push(t)},savePost(t){this.userInfo.saves.push(t),h.TJ(t)},unSavePost(t){this.userInfo.saves.includes(t)&&this.userInfo.saves.splice(this.userInfo.saves.indexOf(t),1),h.LM(t)},toggleSafeMode(){this.userInfo.user.safeMode=!this.userInfo.user.safeMode;const{safeMode:t}=this.userInfo.user;this.updateSettings({safeMode:t?1:0})},toggleNsfwMode(){this.userInfo.user.nsfwMode=!this.userInfo.user.nsfwMode;const{nsfwMode:t}=this.userInfo.user;this.updateSettings({nsfwMode:t?1:0})},toggleOffensiveMode(){this.userInfo.user.offensiveMode=!this.userInfo.user.offensiveMode;const{offensiveMode:t}=this.userInfo.user;this.updateSettings({offensiveMode:t?1:0})},blockPost({id:t,type:e}){return S(this,void 0,void 0,(function*(){this.userInfo.blockPosts[t]=e,yield h.ig({id:t,type:e})}))},addToBlockPostsQueue(t,e){this.blockPostsQueue.push({id:t,type:e})},revertBlockPost(t){this.blockPostsQueue=this.blockPostsQueue.filter((e=>e.id!==t))},consumeBlockPostsQueue(){this.blockPostsQueue.forEach((t=>this.blockPost(t))),this.blockPostsQueue=[]},deletePost(t,e){return S(this,void 0,void 0,(function*(){let o=!0;e&&(o=confirm("Confirm to delete this post?"));const i=()=>{(0,m.E)().showError("Please try again.")};if(o)try{const o=yield h.fR(t);if(o.data&&o.data.okay)return this.addReport(t),e||(0,m.E)().showInfo("Post Deleted"),!0;i()}catch(t){i()}return!1}))},waitForUserInit(){return S(this,void 0,void 0,(function*(){yield(0,a.L)(this,(t=>!!t.isUserInitCompleted))}))},getUserFollowedPages(){return S(this,void 0,void 0,(function*(){const t=yield h.$();t&&this.setUserFollowedPages(t.data)}))},updateUserFollowedPages(t,e,o){return S(this,void 0,void 0,(function*(){const i=yield h.aB(t,e,o);if(!i||"Success"!==i.meta.status)return;const s=w()(this.userFollowedPages);if("tag"===t){const t={key:e,url:O.Z.getUrlFromTag(e)};if(0===o.isFollowing)s.tags=s.tags.filter((e=>e.tag.url!==t.url));else{const e=s.tags.find((e=>e.tag.url===t.url));e?P()(e,i.data):s.tags.push(Object.assign({tag:t},i.data))}}else{const t=(0,y.v)().getInterest(e);if(0===o.isFollowing)s.interests=s.interests.filter((e=>e.interest.url!==t.url));else{const e=s.interests.find((e=>e.interest.url===t.url));e?P()(e,i.data):s.interests.push(Object.assign({interest:t},i.data))}}this.setUserFollowedPages(s)}))},setUserFollowedPages(t){this.userFollowedPages=t},addMuteList(t){return S(this,void 0,void 0,(function*(){const e=t.filter((t=>!this.userInfo.muteList.includes(t)));if(0===e.length)return;const o=yield h.I2(e);o&&"Success"===o.meta.status&&(this.userInfo.muteList=o.data.list,s.default.trackMuteList(!0,o.data.list.length))}))},deleteMuteList(t){return S(this,void 0,void 0,(function*(){const e=yield h.wX(t);e&&"Success"===e.meta.status&&(this.userInfo.muteList=e.data.list,s.default.trackMuteList(!1,e.data.list.length))}))},addBlockTag(t){return S(this,void 0,void 0,(function*(){const e=t.filter((t=>!this.userInfo.blockTags.includes(t)));if(0===e.length)return;const o=yield h.w8(e);o&&"Success"===o.meta.status&&(this.userInfo.blockTags=o.data.list,yield s.default.trackBlockTag(!0,e))}))},deleteBlockTag(t){return S(this,void 0,void 0,(function*(){const e=yield h.oe(t);e&&"Success"===e.meta.status&&(this.userInfo.blockTags=e.data.list,yield s.default.trackBlockTag(!1,t))}))},addRecentUploadedInterest(t){this.recentUploadedInterests=l(this.recentUploadedInterests,t,3)},updateHashedEmail(){return S(this,void 0,void 0,(function*(){this.userInfo.user.email&&(this.userInfo=Object.assign(Object.assign({},this.userInfo),{user:Object.assign(Object.assign({},this.userInfo.user),{hashedEmail:yield C.default.stringToBase64SHA256(C.default.normalizeEmail(this.userInfo.user.email))})}))}))}},persist:{key:"userState",paths:["userInfo","userInfoUpdateTs","userFollowedPages","blockPostsQueue","recentUploadedInterests"]}})},6049:(t,e,o)=>{"use strict";o.d(e,{n:()=>l});var i=o(94393),s=o.n(i);const n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d","M15 19H8V12.37C9.26 12.03 10.11 11.1 10.77 10.38C11.6 9.47002 12.08 9.00002 13 9.00002H15V19ZM10 2.02002C8.11 2.02002 6.49 3.13002 5.73 4.73002C4.15 5.26002 3 6.74002 3 8.50002C3 10.36 4.28 11.91 6 12.36V21H17V19H19C20.1 19 21 18.1 21 17V11C21 9.90002 20.1 9.00002 19 9.00002H17.44C17.79 8.41002 18 7.73002 18 7.00002C18 4.79002 16.21 3.00002 14 3.00002C13.66 3.00002 13.34 3.05002 13.02 3.13002C12.2 2.45002 11.16 2.02002 10 2.02002ZM7 10.5C5.9 10.5 5 9.60002 5 8.50002C5 7.65002 5.55 6.90002 6.37 6.62002L7.17 6.35002L7.53 5.59002C8 4.62002 8.94 4.02002 10 4.02002C10.79 4.02002 11.39 4.37002 11.74 4.67002L12.52 5.32002C12.52 5.32002 13.16 5.00002 13.99 5.00002C15.09 5.00002 15.99 5.90002 15.99 7.00002H12.99C9.67 7.00002 9.15 10.5 7 10.5ZM17 17V11H19V17H17Z"),n.setAttribute("fill","#ff9500");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M5 8.50002C5 9.60002 5.9 10.5 7 10.5C9.15 10.5 9.67 7.00002 12.99 7.00002H15.99C15.99 5.90002 15.09 5.00002 13.99 5.00002C13.16 5.00002 12.52 5.32002 12.52 5.32002L11.74 4.67002C11.39 4.37002 10.79 4.02002 10 4.02002C8.94 4.02002 8 4.62002 7.53 5.59002L7.17 6.35002L6.37 6.62002C5.55 6.90002 5 7.65002 5 8.50002Z"),r.setAttribute("fill","white");const a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M8 19H15V9H13C12.08 9 11.6 9.47 10.77 10.38L10.7648 10.3857C10.1055 11.1049 9.2567 12.0309 8 12.37V19Z"),a.setAttribute("fill","#ffcc00");const c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("viewBox","0 0 24 24"),c.setAttribute("height","24"),c.setAttribute("width","24"),c.appendChild(n),c.appendChild(r),c.appendChild(a);const l=Object.freeze({trigger:function(){s().scene.current.createEmitter({emitterOptions:{useGravity:!0,duration:5},emissionOptions:{rate:0,bursts:[{time:0,count:s().variation.skew(60,10)}],sourceSampler:s().sources.rectSource(s().Rect.fromScreen()),angle:s().variation.range(250,290),initialSpeed:400,initialSize:s().variation.range(.7,1.5),initialRotation:()=>new(s().Vector)(0,0,s().random.randomRange(0,360))},rendererOptions:{shapeFactory:c,applyLighting:void 0}})}})},7114:(t,e,o)=>{"use strict";o.d(e,{p:()=>i});const i=t=>JSON.parse(JSON.stringify(t))},33604:(t,e,o)=>{"use strict";o.d(e,{Z:()=>s});var i=o(18779);class s{static show(){i.Z.$emit("progress::show")}static finish(){i.Z.$emit("progress::finish")}}},90099:(t,e,o)=>{"use strict";o.d(e,{L:()=>i});const i=(t,e)=>e(t)?Promise.resolve():new Promise(((o,i)=>{const s=t.$subscribe(((t,i)=>{e(i)&&(s(),o())}))}))},57528:(t,e,o)=>{"use strict";o.d(e,{R:()=>m,Z:()=>g});var i=o(96156),s=o(84157),n=o(32459),r=o(66252);const a=(0,r._)("path",{d:"M6.66667 7.00001V1.66668H7.33333V0.333344H0.666667V1.66668H1.33333V7.00001L0 8.33334V9.66668H3.46667V13.6667H4.53333V9.66668H8V8.33334L6.66667 7.00001Z",fill:"#999999"},null,-1),c={name:"IconPushPin",components:{BaseIcon:o(97392).su}},l=(0,o(83744).Z)(c,[["render",function(t,e,o,i,s,n){const c=(0,r.up)("BaseIcon");return(0,r.wg)(),(0,r.j4)(c,{viewBox:"0 0 8 14",color:"#999999"},{default:(0,r.w5)((()=>[a])),_:1})}]]);var d=o(33360),p=o(81573);function u(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function h(t){for(var e=1;e({tooltipStore:(0,n._)()}),computed:h(h(h({},(0,s.rn)(p.nk,["isLoggedIn"])),(0,s.rn)(d.LM,["uploads"])),{},{isOp(){return!!this.isLoggedIn&&this.uploads.includes(this.postId)}}),methods:{enableTooltip(){if(this.isOp)return;const t=this.tooltipStore.configs.findIndex((t=>t.id===m)),e=this.tooltipStore.configs[t];null!=e&&e.isActive||(e.isActive=!0)}},created(){this.enableTooltip()},mounted(){this.tooltipStore.update()},unmounted(){this.tooltipStore.dismiss()}}},40024:(t,e,o)=>{"use strict";o.d(e,{Lm:()=>i,R5:()=>s});const i={SET_AD_BLOCKED:"SET_AD_BLOCKED",SET_GOOGLE_NPA:"SET_GOOGLE_NPA",SET_DO_NOT_SELL:"SET_DO_NOT_SELL",INIT_PRIVACY_CHECK:"INIT_PRIVACY_CHECK",UPDATE_CCPA_COOKIE:"UPDATE_CCPA_COOKIE",DISMISS_CCPA_BANNER:"DISMISS_CCPA_BANNER"},s={SET_SESSION_ACTIVE:"SET_SESSION_ACTIVE",CHECK_SESSION_REFERRAL:"CHECK_SESSION_REFERRAL",UNMASK_SENSITIVE:"UNMASK_SENSITIVE",SET_MIXPANEL_VISIT:"SET_MIXPANEL_VISIT",SET_MIXPANEL_PROPS:"SET_MIXPANEL_PROPS",UNMASK_OFFENSIVE:"UNMASK_OFFENSIVE",VIEW_ALL_OFFENSIVE:"VIEW_ALL_OFFENSIVE",START_HELPSHIFT:"START_HELPSHIFT",SET_HELPSHIFT_UNREAD:"SET_HELPSHIFT_UNREAD"}},57637:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});var i=o(96156);function s(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function n(t){for(var e=1;e{"use strict";o.d(e,{w:()=>i,B:()=>s});const i={DOWNVOTE:"Downvote",OFFENSIVE:"Offensive",SENSITIVE:"Sensitive"},s={NORMAL:0,HIDDEN:1,COLLAPSED:2}},71652:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>i});const i={TYPE_PHOTO:"Photo",TYPE_ANIMATED:"Animated",TYPE_VIDEO:"Video",TYPE_EMBED_VIDEO:"EmbedVideo",TYPE_ARTICLE:"Article",TYPE_COLLECTION_PAGE:"CollectionPage",TYPE_TEXT:"Text",TYPE_FORUM_POST:"ForumPost"}},42064:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});const i={RELATED:"Related Tags",FEATURED:"Home-Featured"}},74672:(t,e,o)=>{"use strict";o.d(e,{Z:()=>n});var i=o(18779),s=o(49012);const n={methods:{_tabChanged(){const{stateKey:t}=this._getEventKey();i.Z.$emit("post::tabChangeAction",!document[t])},_getEventKey:function(){var t,e,o={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(t in o)if(t in document){e=o[t];break}return{stateKey:t,eventKey:e}}},created(){const{eventKey:t}=this._getEventKey();s.default.addEventListener(t,this._tabChanged)},beforeUnmount(){const{eventKey:t}=this._getEventKey();s.default.removeEventListener(t,this._tabChanged)}}},63145:(t,e,o)=>{"use strict";o.d(e,{Z:()=>n});var i=o(51214),s=o(39914).default;const n=new class{renewToken(t){const e=this._getTokenConfig(t);e&&(s.log("ApsUtils.renewToken",{tokenConfig:e}),this._queue((()=>window.apstag.rpa(e))))}updateToken(t){const e=this._getTokenConfig(t);e&&(s.log("ApsUtils.updateToken",{tokenConfig:e}),e&&this._queue((()=>window.apstag.upa(e))))}deleteToken(){s.log("ApsUtils.deleteToken"),this._queue((()=>window.apstag.dpa()))}_getTokenConfig(t){if(!t)return null;const{optOut:e,hashedRecords:o}=t.idService||{};return o&&1===o.length?{optOut:e,hashedRecords:o}:null}async _queue(t){if(!await i.ZP.getGdprApplies()||await i.ZP.getConsentString())try{window.ayManagerEnv=window.ayManagerEnv||{cmd:[],changePage:()=>{}},window.ayManagerEnv.cmd.push((()=>{t()}))}catch(t){}}}},47881:(t,e,o)=>{"use strict";o.d(e,{Z:()=>l});var i=o(96156),s=o(51214),n=o(59377),r=o(1040),a=o(39914);function c(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const l=new class{constructor(){this.ats=null,this.retry=0}init(){this.ats||window.atsenvelopemodule&&(this.ats=window.atsenvelopemodule)}run(t){if(this.init(),!this.ats)return a.default.log("AtsUtils.run","ats not loaded"),void(this.retry<3&&(a.default.log("AtsUtils.run retrying",{retry:this.retry}),this.retry++,setTimeout((()=>{this.run(t)}),1e3)));t()}async setAdditionalData(t){const e=await this._getAdditionalData(t);e&&(a.default.log("AtsUtils.setAdditionalData",{additionalData:e}),this.run((()=>this.ats.setAdditionalData(e))))}async _getAdditionalData(t){if(!t||!t.email)return null;let e=null;return await s.ZP.getGdprApplies()?e={consentType:"gdpr",consentString:await s.ZP.getConsentString()||""}:r.Z.getters["privacy/isCCPARegion"]&&(e={consentType:"ccpa",consentString:n.Z.getCCPAString()}),function(t){for(var e=1;ethis.ats.invalidateEnvelope()))}}},11186:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(4907);const s="cacheableClear",n="(prefers-color-scheme: dark)",r=class{static supportAds(){return!["RU"].includes(this.getLocation())}static isMobile(){return navigator.userAgent.match(/Mobile/i)}static isFbInAppBrowser(){return navigator.userAgent.match(/FBAN|FBAV|FBIOS|FB_IAB/i)}static isInstagramInAppBrowser(){return navigator.userAgent.match(/Instagram/i)}static isiOSorInApp(){return this.isFbInAppBrowser()||this.isInstagramInAppBrowser()||this.isiOS()}static isAndroid(){return navigator.userAgent.match(/Android/i)}static isiOS(){return navigator.userAgent.match(/iPhone|iPod|iPad/i)}static isFirefox(){return navigator.userAgent.match(/Firefox/i)}static isBot(){return navigator.userAgent.match(/Googlebot|Pinterestbot|Applebot|bingbot/i)}static getRangeId(){return i.U2("____ri")||0}static getLocation(){return i.U2("____lo")}static isCI(){return i.U2("____ci")}static hasSession(){return!!i.U2("PHPSESSID")}static getQueryParams(){return new URL(location).searchParams}static shouldClearUserInfo(t){const e=!!i.U2(s);return e&&i.Od(s,{domain:t}),e}static isWindowInactive(){return document.hidden||document.msHidden||document.webkitHidden||document.mozHidden}static fromExternal(){return!document.referrer.startsWith(window.location.origin)}static afterLoad(t){"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}static isDarkMode(){return window.matchMedia&&window.matchMedia(n).matches}static onDarkModeChange(t){const e=window.matchMedia&&window.matchMedia(n);e&&e.addEventListener&&e.addEventListener("change",t)}static getHistoryStatePosition(){const{state:t}=window.history;return t&&t.position||null}}},46238:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});const i=new class{constructor(){this.clipboard=null}async init(){if(this.clipboard)return this.clipboard;const{default:t}=await o.e(369).then(o.t.bind(o,42152,23));this.clipboard=t}async copyText(t,e){return new Promise((async(o,i)=>{try{await this.init()}catch(t){i(t)}const s=document.createElement("button"),n=new this.clipboard(s,{text:function(){return t},action:function(){return"copy"},container:"object"==typeof e?e:document.body});n.on("success",(function(t){n.destroy(),o(t)})),n.on("error",(function(t){n.destroy(),i(t)})),s.click()}))}}},89162:(t,e,o)=>{"use strict";o.d(e,{Z:()=>c});var i=o(29962),s=o(27361),n=o.n(s),r=o(39914).default;class a{static getSessionExpiryPeriodInSeconds(){return 1800}static getSessionInfoAndReferralInfoForSession(t,e=null){const o=n()(t,"startTs",0),s=n()(t,"expiryTs",0),c=e||i.default.getCurrentTime(),l=s-c;let d={expiryTs:c+a.getSessionExpiryPeriodInSeconds()},p=null;return l>=0?r.log("lastSessionStartTs="+o+", lastSessionExpiryTs="+s+", ttl="+l+", EXTEND"):(r.log("lastSessionStartTs="+o+", lastSessionExpiryTs="+s+", ttl="+l+", RESET"),p={ref:null,utmSource:null,utmCampaign:null,utmMedium:null},d.startTs=c),{sessionInfo:d,referralInfo:p}}static getReferralInfoForQuery(t){let e=n()(t,"ref",null),o=n()(t,"utm_source",null),i=n()(t,"utm_campaign",null),s=n()(t,"utm_medium",null);return r.log(`ref=${e}, utmSource=${o}, utmCampaign=${i}, utmMedium=${s}`),e||o||i||s?{ref:e,utmSource:o,utmCampaign:i,utmMedium:s}:null}}const c=a},49012:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>n});var i=o(96156);function s(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const n=new class{constructor(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(t){}this.passiveSupported=t}addEventListener(t,e,o=!1){const n="object"==typeof o?o:{capture:o};window.addEventListener(t,e,this.passiveSupported?function(t){for(var e=1;e{"use strict";o.d(e,{Z:()=>n});var i=o(96156);class s{constructor(){(0,i.Z)(this,"feedIdsByPostIdKey","feedIdsByPostId")}static _getFeedIdsByPostId(){try{return JSON.parse(window.localStorage.getItem("feedIdsByPostId"))||{}}catch(t){return{}}}static _setFeedIdsByPostId(t){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.setItem("feedIdsByPostId",JSON.stringify(t))}static getFeedId(t){const e=s._getFeedIdsByPostId(),{feedId:o=null}=e[t]||{};return o&&(delete e[t],s._setFeedIdsByPostId(e)),o}static clearStaleFeedIds(){const t=s._getFeedIdsByPostId();for(const e in t){const{ts:o}=t[e];o<+new Date-6e4&&delete t[e]}s._setFeedIdsByPostId(t)}static setFeedId(t,e){s.clearStaleFeedIds();const o=s._getFeedIdsByPostId();o[t]={feedId:e,ts:+new Date},s._setFeedIdsByPostId(o)}}const n=s},18309:(t,e,o)=>{"use strict";o.d(e,{Z:()=>n});var i=o(55185),s=o(39914);const n={track:async function(t,e,o){(0,i.K)((()=>this._track(t,e,o)))},_track:function(t,e,o){try{s.default.log("Tracking GA: "+t+","+e+","+o),gtag("event",e,{category:t,label:o});for(let t of window._ga||[]);}catch(t){}},trackPageView:async function(t){(0,i.K)((()=>this._trackPageView(t)))},_trackPageView:function(t){try{s.default.log("Tracking GA: PageView "+t),gtag("set",{page_path:t}),gtag("event","page_view");for(let t of window._ga||[]);}catch(t){}},trackEvent:async function(t){(0,i.K)((()=>this._trackEvent(t)))},_trackEvent:function(t){try{gtag("event",t)}catch(t){}},trackException:async function(t,e=!1){(0,i.K)((()=>this._trackException(t,e)))},_trackException:function(t,e=!1){try{s.default.log("Tracking GA: Exception "+t),gtag("event","exception",{exDescription:t,exFatal:e});for(let t of window._ga||[]);}catch(t){}},setUserId:function(t){},setGA4UserId:function(t){if(t){s.default.log(`GA4 setUserId: ${t}`);try{gtag("set",{user_id:t})}catch(t){}}}}},94165:(t,e,o)=>{"use strict";o.d(e,{Z:()=>l});var i=o(96156),s=o(13036),n=o(40024),r=o(1040);function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function c(t){for(var e=1;e{window.helpshiftConfig=this.helpshiftConfig,s.default.loadScript("https://webchat.helpshift.com/latest/webChat.js").then((()=>{this.helpshift=window.Helpshift,this.helpshift("init"),this.helpshift("addEventListener","newUnreadMessages",(t=>{r.Z.dispatch(`session/${n.R5.SET_HELPSHIFT_UNREAD}`,t.unreadCount)})),t()}))}))}async open(){await this.start(),this.customIssueFields=c(c({},this.customIssueFields),{},{sys_bucket_name:{type:"singleline",value:r.Z.getters["config/APP_VERSION"]},sys_settings:{type:"multiline",value:JSON.stringify(r.Z.state.app)}}),this.helpshift("setCustomIssueFields",this.customIssueFields),this.helpshift("open")}}},8062:(t,e,o)=>{"use strict";o.d(e,{Z:()=>s});var i=o(39914).default;const s=new class{constructor(){this.marked=null,this.renderer=null}async init(){if(this.marked)return this.marked;const{default:t}=await o.e(334).then(o.t.bind(o,47084,23));return this.renderer=new t.Renderer,this.renderer.link=(t,e,o)=>(0!==t.indexOf("http")&&(t=`http://${t}`),`${o}`),t}async render(t){try{return this.marked=await this.init(),this.marked(t,{renderer:this.renderer})}catch(t){return i.log(t),""}}}},48254:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>C});var i=o(96156),s=o(11186),n=o(29962),r=o(89162),a=o(40024),c=o(73949),l=o(56594),d=o(55185),p=o(74),u=o.n(p),h=o(27361),m=o.n(h),g=o(1040),f=o(30002),v=o(51214),b=o(99145),w=o(44356),y=o(33360),k=o(81573),P=o(39914).default,O=o(71652).default;function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function I(t){for(var e=1;ethis.resolveLoad=t)),this.endpoint=null,this.router=null,this.platform=null,this.bucket=null,this.bucketFromConfig=null,this.pendingPostView=0,this.postSwitched=[],this.callbacks=[]}onTrack(t){this.callbacks.push(t)}async init(t,e){var i;const{endpoint:n,token:r,platform:a,bucket:c}=t;!this.inited&&r&&(this.inited=!0,this.endpoint=n,this.router=e,this.platform=a,this.bucket=null!==(i=this.bucket)&&void 0!==i?i:c,this.bucketFromConfig=c,this.mixpanel=await new Promise((t=>{s.Z.afterLoad((async()=>{const{default:e}=await o.e(642).then(o.t.bind(o,8891,23)),i=e._send_request;e._send_request=function(){return arguments[0].endsWith("/track/")&&(arguments[0]=arguments[0].replace("/track/","/interact/event/")),i.apply(e,arguments)},e._.base64Encode=function(t){return t?btoa(unescape(encodeURIComponent(String(t)))):t},t(e)}))})),this.mixpanel.init(r,{api_host:this.endpoint,api_payload_format:"base64",persistence:"localStorage",batch_requests:!s.Z.isFirefox(),ignore_dnt:!0,loaded:()=>{this._processConsent()}}),this.people=this.mixpanel.people,this.people._is_reserved_property=function(t){return["$distinct_id","$token","$device_id","$had_persisted_distinct_id"].includes(t)},this.resolveLoad())}async _processConsent(){const t=await v.ZP.getConsentData();if(!t||!t.tcString)return;const e=!0!==m()(t,"purpose.consents.1"),o=this.mixpanel.has_opted_out_tracking();P.log("MixpanelUtils._processConsent",{shouldOptOut:e,hasOptOut:o}),e&&!o?this.mixpanel.opt_out_tracking():!e&&o&&this.mixpanel.clear_opt_in_out_tracking()}_queue(t){(0,d.K)((async()=>{await this.loaded,t()}))}setBucket(t,e=!1){(e||null===this.bucketFromConfig||"00000"===this.bucketFromConfig)&&(this.bucket=null!=t?t:"00000",P.log("MixpanelUtils.setBucket",{bucket:this.bucket}))}async _track(t,e=null,o=!1){e=I(I(I({},e),this.getShareProps()),{},{Platform:this.platform,Bucket:this.bucket},this.getSessionProps()),this.postSwitched.length&&(e["Post Switched"]=this.postSwitched),Object.keys(e).forEach((t=>null===e[t]&&delete e[t])),P.log("MixpanelUtils._track",{event:t,props:e}),this._queue((()=>this.mixpanel.track(t,e,{send_immediately:o}))),this.callbacks.forEach((async o=>{this._queue((()=>{o(t,e)}))}))}_engage(t){const{userId:e}=(0,y.LM)().user||{};e&&this._queue((()=>{this.mixpanel.identify(`${e}`),t()}))}async incrementPostView(){this.pendingPostView++}async incrementCommentUnmasked(){let{commentUnmasked:t}=g.Z.state.session.mixpanel||{};t++,g.Z.dispatch(`session/${a.R5.SET_MIXPANEL_PROPS}`,{commentUnmasked:t})}getSessionProps(){let{postView:t,commentUnmasked:e}=g.Z.state.session.mixpanel||{};return this.pendingPostView&&(t+=this.pendingPostView,this.pendingPostView=0,g.Z.dispatch(`session/${a.R5.SET_MIXPANEL_PROPS}`,{postView:t})),{"Post Viewed":t,"Comment Unmasked":e}}async getRouteProps(){if(!this.router)return null;await this.router.isReady();const{page:t,postSort:e}=f.Z.getProps(this.router.currentRoute.value),o={};return t&&(o.Page=t),e&&(o["Post Sorting"]=e),o}getShareProps(){const t={},{utm_source:e,utm_medium:o}=g.Z.getters["session/GET_SESSION_PARAMS"];return e&&(t["Last UTM Source"]=`${e}`),o&&(t["Last UTM Medium"]=`${o}`),t["Ad-blocked"]=g.Z.getters["privacy/isAdBlocked"],t}setUserInfo(t){if(!t)return;const e=I({"Account ID":t.accountId,$user_id:t.userId,$name:t.username,$email:t.email,Gender:t.gender||"X","Content Mask On":!!t.safeMode,"Sensitive Content On":!!t.nsfwMode,"Comment Mask On":!!t.offensiveMode,"Hide Profile On":!!t.preferences.hideFromRobots,"Account Creation Date":n.default.toISOString(t.creationTs)},this.getShareProps()),o=(0,y.wm)().autoFollowThreadReply;e["Follow Reply Thread On"]=!!o;const i={[null]:"System",[!0]:"Dark",[!1]:"Light"};e.Theme=i[g.Z.state.app.darkMode];const s=n.default.toISOString(m()(t,"membership.purchaseTs"));s&&(e["Pro Start Date"]=s);let r="Free";t.isActiveProPlus?r="Pro+":t.isActivePro&&(r="Pro"),e["Member Type"]=r;const a=[];t.fbConnected&&a.push("FB"),t.googleConnected&&a.push("Google"),t.appleConnected&&a.push("Apple"),e["Social Connect"]=a;const c=u()(t.birthday.split(" ")[0]);c>1&&(e.Age=c);const l={"Platforms Used":this.platform};P.log("MixpanelUtils.setUser",{people:e,lists:l}),this._engage((()=>{this.people.set(e),this.people.union(l)}))}clearUserInfo(){P.log("MixpanelUtils.clearUserInfo"),this._queue((()=>this.mixpanel.reset()))}async trackVisits(){const{visitTs:t,postView:e}=g.Z.state.session.mixpanel||{};P.log("MixpanelUtils.trackVisits",{visitTs:t});const o=r.Z.getSessionExpiryPeriodInSeconds();n.default.getCurrentTime()>t+o&&(e&&g.Z.dispatch(`session/${a.R5.SET_MIXPANEL_PROPS}`,{postView:1,commentUnmasked:0}),this._track("Visits",I({},await this.getRouteProps()))),g.Z.dispatch(`session/${a.R5.SET_MIXPANEL_VISIT}`)}async trackTriggerSignup(t){const e=I(I({"Trigger Action":t},await this.getRouteProps()),await this._getTabBarSorting());this._track("Signup Triggered",e)}async trackClickSignup(t){const e={"Signup Button Position":t};this._track("Signup Clicked",e)}async trackClickEmailSignup(){this._track("Email Signup Clicked")}trackSubmitEmailSignup(){this._track("Email Signup Completed",null,!0)}async trackClickLogin(t){const e={"Login Button Position":t};this._track("Login Clicked",e)}trackSubmitLogin(){this._track("Password Login Completed",null,!0)}trackConnectFacebook(t=!1){this._trackSocialConnect("Connect Facebook Clicked",t)}trackConnectGoogle(t=!1){this._trackSocialConnect("Connect Google Clicked",t)}trackConnectApple(t=!1){this._trackSocialConnect("Connect Apple Clicked",t)}_trackSocialConnect(t,e){const o={"Connect Button Position":e?"Login":"Signup"};this._track(t,o,!0)}async trackSaveSettings(){this._track("Settings Saved")}trackLogout(){this._track("Logout Clicked",null,!0)}_getPostProps(t){var e,o;const i=g.Z.getters["post/GET_POST"](t),s=g.Z.getters["post/GET_POST_FEED_ID"](t);if(!i.id)return{"Post ID":t};let r="Photo";i.type===O.TYPE_ARTICLE?r="Article":i.type===O.TYPE_COLLECTION_PAGE?r="CollectionPage":i.type===O.TYPE_ANIMATED?r=m()(i.images,"image460sv.hasAudio")?"Video":"GIF":[O.TYPE_VIDEO,O.TYPE_EMBED_VIDEO].includes(i.type)?r=i.video.source:i.type===O.TYPE_TEXT&&(r="Text");let a=null;i.creationTs>0&&(a=n.default.toISOString(i.creationTs));let c=(0,y.LM)().uploads.includes(i.id);const l=(0,y.LM)().user.userId;return l&&l===(null===(e=i.creator)||void 0===e?void 0:e.userId)&&(c=!0),{"Post ID":i.id,"Post Author":(null===(o=i.creator)||void 0===o?void 0:o.userId)||(c&&l?l:"Anonymous"),"Post Date":a,"Post Type":r,Tags:i.tags.map((t=>t.key)),Interests:i.interests||[],"Sensitive Post":!!i.nsfw,"Feed ID":s,"Post Anonymity":!!i.isAnonymous,"Is OP":c}}_getCommentType(t,e=!1){let o="Text";return t.type===k.wD.USER_MEDIA&&(o=m()(t,"media.0.type")===k.wD.MEDIA_STATIC?"Photo":"GIF",e&&(o="GIPHY")),o}_getCommentProps(t,e=!1){const o=(0,k.jd)().getCommentById(t);if(!o.commentId)return{"Comment ID":t};let i=null;o.timestamp>0&&(i=n.default.toISOString(o.timestamp));const s=(0,k.jd)().getPostId,r={[l.w.DOWNVOTE]:!!o.isCollapsed,[l.w.OFFENSIVE]:o.isOffensive>0,[l.w.SENSITIVE]:!!o.isSensitive};return I(I(I({},this._getPostProps(s)),this._getCommentSorting()),{},{"Comment ID":o.commentId,"Comment Type":this._getCommentType(o,e),"Comment Date":i,"Comment Author":o.user.accountId,"Sensitive Comment":!!o.isSensitive,"Is Reply":o.level>1,"Comment Sensitive Type":Object.keys(r).filter((t=>!!r[t])),"Comment Anonymity":!!o.opAnonymous,"Is Pinned Comment":!!o.isPinned})}_getCommentSorting(){return{"Comment Sorting":"hot"===(0,k.jd)().getType?"Hot":"Fresh"}}async _getTabBarSorting(){if(!this.router)return null;await this.router.isReady();const{tabBarSort:t}=f.Z.getProps(this.router.currentRoute.value);return{"Tab Bar Sorting":t||null}}async trackVotePost(t,e,o){const i=I(I(I({"Vote Type":t,"Action Position":this._getActionPosition(o)},this._getPostProps(e)),await this.getRouteProps()),await this._getTabBarSorting());"Post"===i.Page&&(i["Has Pinned Comment"]=this._hasPinnedComment(e)),this._track("Post Voted",i),this._engage((()=>this.people.increment("Lifetime Post Voted")))}async trackSavePost(t,e,o,i){const s=I(I(I({"Save Type":t,"Save Button Position":o?"Save Button":"More Button","Action Position":this._getActionPosition(i)},this._getPostProps(e)),await this.getRouteProps()),await this._getTabBarSorting());"Post"===s.Page&&(s["Has Pinned Comment"]=this._hasPinnedComment(e)),this._track("Post Saved",s),"Save"===t&&this._engage((()=>this.people.increment("Lifetime Post Saved")))}async trackDownloadPost(t,e){const o=I(I(I({"Action Position":this._getActionPosition(e)},this._getPostProps(t)),await this.getRouteProps()),await this._getTabBarSorting());"Post"===o.Page&&(o["Has Pinned Comment"]=this._hasPinnedComment(t)),this._track("Post Downloaded",o)}async trackVoteComment(t,e){const o=I({"Vote Type":t},this._getCommentProps(e));this._track("Comment Voted",o),this._engage((()=>this.people.increment("Lifetime Comment Voted")))}async trackFollowComment(t,e){const o=I({"Follow Type":t},this._getCommentProps(e));this._track("Comment Followed",o)}async trackSwitchPost(t){this.postSwitched.includes(t)||this.postSwitched.push(t)}async trackOpenPost(t,e=null,o=!1){let i=e||"Post Content";o&&(i={"Post Title":"Related Post-Title","Post Content":"Related Post-Content","Comment Button":"Related Post-Comment Button"}[i]||i);const s=I(I({"Post Entry":i},this._getPostProps(t)),await this.getRouteProps());this._track("Post Opened",s)}async trackCommentWarning(t){const e=(0,k.jd)().getPostId,o=I(I({},this._getPostProps(e)),{},{"Warning Type":t});this._track("Comment Warning Shown",o)}async trackCommentFail(t){if(!t.response||!t.response.data)return;const{code:e}=t.response.data,o=(0,k.jd)().getPostId,i=I(I({},this._getPostProps(o)),{},{"Comment Failed Type":e});this._track("Comment Failed",i)}async trackPostComment(t,e,o,i=null){const s=I({"Comment Composer Position":i||null},this._getCommentProps(t,o)),n=(0,k.jd)().getCommentById(e);n.commentId&&(s["Comment Author (reply to)"]=n.user.accountId),delete s["Comment Author"],this._track("Comment Published",s),this._engage((()=>this.people.increment("Lifetime Comment Published")))}async trackPostShare(t,e,o,i){const s=I(I(I({Destination:t,"Share Button Position":o||"Share Button","Action Position":this._getActionPosition(i)},this._getPostProps(e)),await this.getRouteProps()),await this._getTabBarSorting());"Post"===s.Page&&(s["Has Pinned Comment"]=this._hasPinnedComment(e)),this._track("Post Shared",s),this._engage((()=>this.people.increment("Lifetime Post Shared")))}async trackPostSearch(t,e="Type"){const o={Keywords:`${t}`,"Search Type":e};this._track("Search Submitted",o)}async trackClickTag(t,e,o,i=!1){const s=I(I({"Tag Name":`${t}`,"Tag Position":e,"Action Position":this._getActionPosition(o),"Tag Highlighted":i},await this.getRouteProps()),await this._getTabBarSorting());this._track("Tag Clicked",s)}async trackHomeSorting(t){const e=I(I({"Sorting Type":t},await this.getRouteProps()),await this._getTabBarSorting());this._track("Home List Opened",e)}async trackPostSorting(t){this._trackChangeSorting("Posts",t)}async trackCommentSorting(t){const e="hot"===(0,k.jd)().getType?"Hot":"Fresh";this._trackChangeSorting("Comments",t,e)}async trackProfileSorting(t){this._trackChangeSorting("Profile",t)}async trackOpenSaved(){this._track("Saved List Opened")}async _trackChangeSorting(t,e,o=null){const i=I(I({"Sorting Type":e},await this.getRouteProps()),await this._getTabBarSorting());o&&(i["Post Sorting"]=o),this._track("Sorting Changed",i)}async trackReport(t){let e=null;t===c.Z.TYPES.POST?e="Post Reported":t===c.Z.TYPES.COMMENT?e="Comment Reported":t===c.Z.TYPES.PROFILE&&(e="User Reported"),e&&(this._track(e),this._engage((()=>this.people.increment(`Lifetime ${e}`))))}async trackBlockUser({accountID:t,postId:e=null,entry:o,commentId:i=null}){const s=I(I(I({"Account ID":t,"Block Action Entry":o},await this.getRouteProps()),e&&this._getPostProps(e)),await this._getTabBarSorting());if("Comment"===o&&i){const t=(0,k.jd)().getCommentById(i);t.commentId&&(s["Is Pinned Comment"]=!!t.isPinned)}this._track("User Blocked",s),this._engage((()=>this.people.increment("Lifetime User Blocked")))}async trackClickUsername(t,e,o=null){this.trackViewUser(t,"User Name",e,o)}async trackClickAvatar(t,e,o=null){this.trackViewUser(t,"Avatar",e,o)}async trackClickCommentMention(t,e=null){this.trackViewUser(t,"Comment Mention","Comment",e)}async trackViewUser(t,e,o,i=null,s=!1){const n=I({"View User Button Position":e,"Account ID":t,"Profile Entry Position":o,"Action Position":this._getActionPosition(s)},await this.getRouteProps());if("Comment"===o&&i){const t=(0,k.jd)().getCommentById(i);t.commentId&&(n["Is Pinned Comment"]=!!t.isPinned)}this._track("User Viewed",n)}async trackClickUpload(t="Upload Button"){const e=I(I({External:!1,"Upload Entry":t},await this.getRouteProps()),await this._getTabBarSorting());this._track("Upload Clicked",e)}async trackUploadWarning(t){const e={"Warning Type":t};this._track("Upload Warning Shown",e)}_getTagSources(t){const e=(0,b.c)().tagSource;return Array.from(new Set(t.map((t=>e[t]))))}async trackUploadCancel(t,{title:e,tags:o,sensitive:i,anonymous:s,section:n}){const r={"Furthest Step":t,"Title Filled":!!e.length,"Number of Tags":o.length,"Tag Source":this._getTagSources(o),"Video Duration":(0,b.c)().formData.duration,Anonymity:!!s};this._track("Upload Canceled",r)}async trackUploadFail(t,{title:e,tags:o,sensitive:i,anonymous:s,section:n}){const r={"Upload Failed Type":t,Title:e,Tags:o,"Tag Source":this._getTagSources(o),"Video Duration":(0,b.c)().formData.duration,Anonymity:!!s};this._track("Upload Failed",r)}async trackUploadPost(t){const e=I(I({"Tag Source":this._getTagSources((0,b.c)().formData.tags),"Tag Amount":(0,b.c)().formData.tags.length,"Video Duration":(0,b.c)().formData.duration},this._getPostProps(t)),{},{"Sensitive Post":void 0});this._track("Upload Completed",e),this._engage((()=>this.people.increment("Lifetime Post Uploaded")))}async trackUploadAutoModeration(t){const e={"Auto Moderation Next Step Clicked":t};this._track("Auto Moderation Block Shown",e)}async trackClickNavLink(t,e,o=!1){const i=I(I({"NavLink Label":t,"NavLink URL":e,"NavLink Badge":!!o},await this.getRouteProps()),await this._getTabBarSorting());this._track("NavLink Clicked",i)}async trackPostUploadProgress(t,e){this._track(t,e)}async trackHidePost(t){const e=I(I(I({},this._getPostProps(t)),await this.getRouteProps()),await this._getTabBarSorting());"Post"===e.Page&&(e["Has Pinned Comment"]=this._hasPinnedComment(t)),this._track("Post Hidden",e)}async trackHideOPComments(t){const e=I({},this._getCommentProps(t));this._track("OP Comment Hidden",e)}async trackTag(t,e,o,i=null){const s=I({"Tag Action":e,"Tag Name":o},await this.getRouteProps());i&&(s["Tag Action Position"]=i),this._track(t,s)}async trackFavoriteTag(t,e,o){const i=e?"Favorite":"Unfavorite";this.trackTag("Tag Favorited",i,t,o),this._engage((()=>this.people.set({"Favorite Tags":(0,w.v)().favorites.map((t=>t.key))})))}async trackHideTag(t,e){const o=e?"Hide":"Unhide";this.trackTag("Tag Hidden",o,t),this._engage((()=>this.people.set({"Hidden Tags":(0,w.v)().hidden.map((t=>t.key))})))}async trackClickCampaign(t,e){const o=I({"Campaign Position":`Campaign ${t}`,"Campaign URL Destination":e},await this.getRouteProps());this._track("Campaign Clicked",o)}async trackDescriptionAnchor(t){const e=I({"Tag Page URL Destination":t},await this.getRouteProps());this._track("Tag Page Link Clicked",e)}async trackSwitchPostTabs(t,e,o=null){const i=I(I(I({"Tab Bar Sorting":t,"End of List Tab Bar Shown":o},this._getCommentSorting()),this._getPostProps(e)),await this.getRouteProps());"Post"===i.Page&&(i["Has Pinned Comment"]=this._hasPinnedComment(e)),this._track("Tab Bar Clicked",i)}async trackViewCommentClicked(){this._track("View Comment Clicked")}async _trackPinComment({postId:t,commentId:e,pinType:o,announcementShown:i,hasPinnedComment:s}){const n=I({"Pin Type":o?"Pin":"Unpin","Announcement Shown":i,Page:(await this.getRouteProps()).Page,"Has Pinned Comment":void 0!==s?s:this._hasPinnedComment(t)},this._getCommentProps(e));return delete n["Is Pinned Comment"],"Thread"===n.Page&&delete n["Comment Sorting"],n}async trackPinComment(t){const e=await this._trackPinComment(t);e["Warning Triggered"]=!!t.warningTriggered,this._track("Pin Comment Clicked",e)}async trackPinCommentCompleted(t){const e=await this._trackPinComment(t);this._track("Pin Comment Completed",e)}async trackPinCommentFailed(t){const e=await this._trackPinComment(t);this._track("Pin Comment Failed",e)}_hasPinnedComment(t){return!!g.Z.getters["post/HAS_PINNED_COMMENT"](t)}async trackClickInterest(t,e){const o=I({"Interest Name":`${t}`,"Interest Position":e},await this.getRouteProps());this._track("Interest Clicked",o)}async trackFavoriteInterest(t,e,o){const i=I({"Interest Name":t,"Interest Action":e?"Favorite":"Unfavorite","Interest Action Position":o},await this.getRouteProps());this._track("Interest Favourited",i)}async trackTagFollowed(t,e,o){const i=I({"Tag Name":t,"Trigger Action":e,"Trigger Position":o},await this.getRouteProps());this._track("Tag Followed",i)}async trackInterestFollowed(t,e,o){const i=I({"Interest Name":t,"Trigger Action":e,"Trigger Position":o},await this.getRouteProps());this._track("Interest Followed",i)}_getActionPosition(t){return t?"Main Post":"Feed Post"}async trackArticleCarouselSwiped(t){this._track("Article Carousel Swiped")}async trackArticlePostLinkClicked(t,e){const o=I({"Link Destination":t},this._getPostProps(e));this._track("Article Post Link Clicked",o)}async trackUploadTextClicked(){this._track("Upload Text Clicked")}async trackUploadForumClicked(){this._track("Upload Forum Clicked")}async trackPostUnhidden(t){const e=I({},this._getPostProps(t));this._track("Post UnHidden",e)}async trackMuteList(t,e){const o=I({"Item Count":e},await this.getRouteProps());t?this._track("Mute List Added",o):this._track("Mute List Removed",o)}async trackBlockTag(t,e){const o=I({},await this.getRouteProps());t?o.Tags=e:o["Tag Name"]=e,t?this._track("Tag Blocked",o):this._track("Tag Unblocked",o)}async trackAwardClicked(t){const e=I(I({},this._getPostProps(t)),await this.getRouteProps());this._track("Post Award Clicked",e)}async trackAwardSent(t){const e=I(I({},this._getPostProps(t)),await this.getRouteProps());this._track("Post Award Sent",e)}}},51214:(t,e,o)=>{"use strict";o.d(e,{D5:()=>n,ZP:()=>a});var i=o(39914),s=o(11186);const n="tcfApiReady",r=new Event(n),a=new class{constructor(){this.inited=!1,this.enabled=!0,this.loadPromise=null,this.loadTimer=null,this.gdprApplies=!1}init(t){const{enabled:e=!0}=t,o=s.Z.getLocation();!this.inited&&e&&"US"!==o&&(this.inited=!0,this.enabled=e)}async cmpLoaded(){return this.enabled&&window.__tcfapi?(this.loadPromise||(this.loadPromise=new Promise((t=>{this.loadTimer=setInterval((()=>{window.__tcfapi&&window.__tcfapi("ping",2,(e=>{const{cmpLoaded:o,gdprApplies:s}=e;o&&void 0!==s&&(i.default.log("cmpLoaded",{data:e}),this.gdprApplies=s,clearInterval(this.loadTimer),this.loadTimer=null,window.dispatchEvent(r),t())}))}),500),setTimeout((()=>{this.loadTimer&&(i.default.log("cmpTimeout"),t())}),1e4)}))),this.loadPromise):Promise.resolve()}displayConsentUi(){this.enabled&&window.OneTrust&&window.OneTrust.ToggleInfoDisplay()}async getGdprApplies(){return new Promise((async t=>{i.default.log("cmp getGdprApplies",{__tcfapi:window.__tcfapi?"loaded":"not loaded"}),this.enabled&&window.__tcfapi?(await this.cmpLoaded(),t(this.gdprApplies)):t(!1)}))}async getConsentData(){return new Promise((async t=>{await this.getGdprApplies()?(window.__tcfapi("addEventListener",2,((e,o)=>{i.default.log("getConsentData",{consent:e});const{eventStatus:s,listenerId:n}=e||{};o&&["tcloaded","useractioncomplete"].includes(s)&&(n&&window.__tcfapi("removeEventListener",2,(()=>{}),n),t(e))})),setTimeout((()=>t(null)),1e4)):t(null)}))}onGDPRChange(t){(async()=>{await this.cmpLoaded(),await this.getGdprApplies()&&window.__tcfapi("addEventListener",2,((e,o)=>{const{eventStatus:i}=e||{};o&&["tcloaded","useractioncomplete"].includes(i)&&t(e)}))})()}async getConsentString(){const{tcString:t}=await this.getConsentData()||{};return t}}},41653:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>p});var i=o(29962).default,s=o(39914).default;const n={UNIQUE_EVENT_CATEGORIES:["PostImpression"],storage:{STORAGE_KEY:"sessionEvents",SESSION_TIME:1800,data:{},expireAt:0,fetch:function(){let t=null;if(void 0!==window.localStorage)try{t=JSON.parse(window.localStorage.getItem(this.STORAGE_KEY))}catch(t){}const e=i.getCurrentTime(),o=null==t?0:t.expireAt;s.log("SessionStorage.fetch() expireAt="+o+", TTL="+(o-e)),e>o?(this.data={},this.expireAt=e+this.SESSION_TIME,s.log("SessionStorage.fetch() newSession")):(this.data=t.data,this.expireAt=t.expireAt)},save:function(){if(void 0!==window.localStorage)try{window.localStorage.setItem(this.STORAGE_KEY,JSON.stringify({data:this.data,expireAt:this.expireAt}))}catch(t){}},extendExpiry:function(){this.expireAt=i.getCurrentTime()+this.SESSION_TIME},getItem:function(t){return this.data[t]},setItem:function(t,e){this.data[t]=e}},checkEvent:function(t){this.storage.fetch();const e=t.getHashCode(),o=!this.storage.getItem(e);return this.storage.setItem(e,1),this.storage.extendExpiry(),this.storage.save(),s.log("SessionFilter.checkEvent() hashCode="+e+", isNew="+o,t),o},filterEvent:function(t){return-1==this.UNIQUE_EVENT_CATEGORIES.indexOf(t.category)||this.checkEvent(t)?t:null}};var r=o(46296);var a=o(39914),c=o(51931),l=o(55185),d={_pageViewTracked:!1,_filters:[],getDeviceId:()=>window.Piwik&&window.Piwik.getTracker?window.Piwik.getTracker().getVisitorId():null,push:async function(t){window._paq&&window._paq.push(t)},addFilter(t){t&&this._filters.push(t)},trackEvent:async function(t,e,o,i,s,n){let a=new class{constructor(t,e,o,i,s,n){this.category=t,this.action=e,this.name=o,this.value=i,this.cvars=s||{},this.customUrl=n}getUniqueItemKey(){let t=this.category+"|"+this.action+"|"+this.name;if(this.cvars)for(let e in this.cvars)null!=e&&(t+="|"+e+":"+this.cvars[e]);return t}getHashCode(){const t=this.getUniqueItemKey();return r.default.hashCode(t)}extractCVars(t){const e={},o={};return Object.entries(this.cvars).forEach((([i,s])=>{t.includes(i)?e[i]=s:o[i]=s})),this.cvars=o,e}}(t,e,o,i,s,n);var c=[];if(this._filters&&this._filters.length>0){for(var d=0;dthis._trackEvent(t)))}},_trackEvent:function(t){var e=t.category,o=t.action,i=t.name,s=t.value,n=t.cvars,r=t.customUrl,a=null!=r?r:document.location.href;this.push(["setCustomUrl",a]),n=n||{};var l=0;for(Object.keys(n).forEach((function(t){d.push(["setCustomVariable",++l,t,n[t],"event"])})),null==s&&(s=1),this.push(["trackEvent",e,o,i,s]),l=1;l<=Object.keys(n).length;l++)d.push(["deleteCustomVariable",l,"event"]);c.default.uniqueViewed(t)},setUserId:async function(t){this.push(["setUserId",""+t])},trackPageView:async function(){this._pageViewTracked||(this.push(["trackPageView"]),this._pageViewTracked=!0)}};a.default.log("PiwikUtilsSessionFilter",n),d.addFilter(n);const p=d},59377:(t,e,o)=>{"use strict";o.d(e,{Z:()=>h});var i=o(96156),s=o(57437),n=o(27361),r=o.n(n),a=o(4907),c=o(29962).default;function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function d(t){for(var e=1;ee)return t;try{const{data:t}=await s.Z.get("https://privacy-api.9gag.com/v1/check");return d(d({},t),{},{ttl:e+86400})}catch(e){return t}}static updateCCPACookie(t,e,o){const i=a.U2(p);if(!t)return void(null!==i&&a.Od(p));const s=e&&o?"1YY-":"1YN-";i!==s&&a.vd(p,s,{expires:new Date(Date.now()+31536e6)})}static getCCPAString(){return a.U2(p)||"1---"}static getPrivacyPolicyUrl(t){return u[t]||u.DEFAULT}}},42175:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(11186),s=o(49012),n=o(2262);const r=new class{constructor(){this.state=(0,n.qj)({}),this._update(),s.default.addEventListener("resize",this._update.bind(this)),s.default.addEventListener("orientationchange",this._update.bind(this))}_update(){this.state.width=i.Z.isiOSorInApp()?screen.width:window.innerWidth,this.state.height=window.innerHeight}browserWidth(){return this.state.width}browserHeight(){return this.state.height}}},13036:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>n});var i=o(39914),s=o(11186);const n=new class{constructor(){this.timeStart=Date.now(),this.loadPromise=this._initLoadPromise(),this.promiseMap={}}_initLoadPromise(){return new Promise((async t=>{s.Z.afterLoad((()=>{i.default.log("_initLoadPromise ",Date.now()-this.timeStart),t()}))}))}async loadScript(t,e){const o=this.promiseMap[t];if(o)return o;const i=new Promise(((o,i)=>{this.loadPromise.then((()=>this._loadScript(t,5,o,i,e)))}));return this.promiseMap[t]=i,i}_loadScript(t,e=5,o,s,n){if(i.default.log("_loadScript",t),e<=0)return i.default.log("_loadScript failure after multiple retries",t),s(),void(this.promiseMap[t]=null);const r=document.createElement("script");if(r.async=!0,r.type="text/javascript",r.src=t,n)for(var a in n)r.setAttribute(a,n[a]);r.onload=r.onreadystatechange=()=>{r.readyState&&"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onload=r.onreadystatechange=null,o())},r.onerror=()=>{setTimeout((()=>this._loadScript(t,e-1,o,s,n)),1e3)};const c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(r,c)}}},46296:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>i});const i=new class{constructor(){}htmlDecode(t){const e=document.createElement("textarea");return e.innerHTML=t,e.value}integerWithCommas(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}secondsToTimeDisplay(t){if(!t)return"";const e=t%60;return Math.floor(t/60)+":"+(e<10?"0":"")+e}capitalize(t){return"string"==typeof t?t.replace(/^\w/,(t=>t.toUpperCase())):t}ucwords(t){return t.toLowerCase().replace(/(^|\s)\S/g,(function(t){return t.toUpperCase()}))}getTagDisplayName(t){return t.replace("-"," ")}getSearchUrl(t){return`/search/?query=${encodeURIComponent(t)}`}getProfileUrl(t,e=null){let o=`/u/${(t||"").toLowerCase()}`;return e&&(o=`${o}?ref=${e}`),o}getMentionUrl(t){return this.getProfileUrl(t.replace("@",""),"c.mention")}abbreviateNumber(t){return t>=1e7?`${Math.floor(t/1e6)}M`:t>=1e6?Math.floor(t/1e5)/10+"M":t>=1e4?`${Math.floor(t/1e3)}K`:t>=1e3?Math.floor(t/100)/10+"K":t}isCommentHash(t){return!!t&&["#comment","#cs_comment_id"].includes(t.split("=")[0])}endsWith(t,e){return-1!==t.indexOf(e,t.length-e.length)}getCommentErrorMessage(t){let e="Error occurred. Please try again later.";t=t.response?t.response.data:t;const{code:o,error:i}=t||{};switch(i&&(e=i),o){case"IMAGE_INVALID_TYPE":e="Unsupported type.";break;case"IMAGE_INVALID_SIZE":e="Media size should be less than 10MB"}return e}urlRegExp(t="g"){return new RegExp('(?:(?:(?:(?:h|H)ttps?://))|(w|W)ww\\.)((?:(?:[A-z\\u00a1-\\uffff0-9][-_]*)*[A-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))\\.?)(?:[/?#][^\\s"]*)?',t)}emailPattern(){return"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$"}hashCode(t){for(var e=0,o=0;et.toString(16).padStart(2,"0"))).join("")}async stringToBase64SHA256(t){const e=(new TextEncoder).encode(t),o=await crypto.subtle.digest("SHA-256",e),i=Array.from(new Uint8Array(o));return btoa(String.fromCharCode(...i))}normalizeEmail(t){let e=t.trim().toLowerCase();if(e.endsWith("@gmail.com")){const t=e.indexOf("@");let o=e.substring(0,t).replace(/\./g,"");const i=o.indexOf("+");-1!==i&&(o=o.substring(0,i)),e=o+e.substring(t)}return e}}},96810:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i}),o(57437),o(80129);const i=new class{getCanonicalTag(t){return t.trim().replaceAll(" ","-").toLowerCase()}getUrlFromTag(t){return`/tag/${this.getCanonicalTag(t)}`}}},6245:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});var i=o(96156),s=o(39914).default,n=o(41653).default;function r(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const a={EVENT_CATEGORY:"PostImpression",timedActionList:[{action:"ViewPostForOneSecond",threshold:1},{action:"ViewPostForThreeSeconds",threshold:3}],trackedActions:{},getActionsByVideoViewTime(t,e,o){const i=e-o;let s=[];for(let e=0;e=this.timedActionList[e].threshold&&this.timedActionList[e].threshold<=i&&s.push(this.timedActionList[e].action);return s},getUniqueActionKey:function(t,e,o){let i=e;return o&&(i+=":"+o.TriggeredPage,i+=":"+o.TriggeredPageKey),i},filterTrackedActions:function(t,e,o,i){let n=this.getUniqueActionKey(t,o,i);s.log("uniqueActionKey",n);let r=this.trackedActions[n]||[],a=[];for(let t=0;t=.95*(s-n)&&a.push("FinishedVideo"),this.sendUntrackedPostActions(t,e,o,a,r)},sendUntrackedPostActions(t,e,o,a,c){let l=this.filterTrackedActions(t,a,e,c);s.log(`sendUntrackedPostActions.untrackedActions entryId=${e},pos=${o}`,l);const d=function(t){for(var e=1;e{"use strict";o.r(e),o.d(e,{default:()=>r});var i=o(92289).default,s=o(39914).default,n=o(6245).default;const r=class{constructor(t){this.id="TTM:"+Math.floor(1e3*Math.random()),this.visibilityObserver=null,this.videoTimeManager=t,this.setTimedViewVisibilityThreshold(.5),this.timers={},this.videoPlayed={},this.screenKey="",this.trackingCVars={},this.intersectionHandler=this.intersectionHandler.bind(this),this.setVisibilityObserver=this.setVisibilityObserver.bind(this),this.onVideoTimeUpdate=this.onVideoTimeUpdate.bind(this)}getVideoTimeManager(){return this.videoTimeManager}setScreenKey(t){this.screenKey=t}setTimedViewVisibilityThreshold(t){this.log("setTimedViewVisibilityThreshold()",t),this.threshold=t}setTrackingCVars(t){this.log("setTrackingCVars()",t),this.trackingCVars=t}setVisibilityObserver(t=0,e=0){if(!this.visibilityObserver){const o=[0,.5];this.visibilityObserver=new i.VisibilityObserver(this.intersectionHandler,t,e,o)}}log(t,e){s.log("["+this.id+"] TimedTrackingManager."+t,e)}track(t,e){this.visibilityObserver.observe(document.getElementById(t),e)}untrackAll(){Object.values(this.timers).forEach((t=>t&&clearTimeout(t))),this.timers={},this.visibilityObserver&&this.visibilityObserver.reset()}start(){this.videoTimeManager&&this.videoTimeManager.addListener(this.onVideoTimeUpdate)}stop(){this.videoTimeManager&&this.videoTimeManager.removeListeners()}trackNonVideoView(t){if(!t.data)return;const e=t.data.key;if(t.intersectionRatio>.5&&this.shouldCheckNonVideoView(t)){let o=this;void 0===this.timers[e]&&(this.timers[e]=setTimeout((function(){o.timers[e]=0,n.onNonVideoView(o.screenKey,e,t.data.position,1,o.trackingCVars)}),1e3))}t.visibilityStatus===i.VISIBILITY_STATUS.exit&&0===t.intersectionRatio&&this.timers[e]&&(clearTimeout(this.timers[e]),delete this.timers[e])}intersectionHandler(t){t.forEach((t=>{this.trackNonVideoView(t)}))}onVideoTimeUpdate(t,e,o,i,s){s=s||0;const r=t.key;if(!r)return;const a=this.shouldCountVideoTime(t,e,o,i,s);if(this.log("onVideoTimeUpdate() key="+r+", startTime="+s+", currentTime="+o+", duration="+i+", shouldCount="+a,t),!a)return;let c=this.videoPlayed[r]||{accumPlayTime:0,lastPlayTime:0,startTime:s,duration:i};const l=c.accumPlayTime>i,d=o-c.lastPlayTime;let p=0;p=d>0?d:i-c.lastPlayTime+(o-s),p>0&&1e3*p<=5e3?c.accumPlayTime+=p:(p=0,this.log("onVideoTimeUpdate() key="+r+", accumPlayTimeIncrease="+p+", invalid playtime change")),c.lastPlayTime=o,this.videoPlayed[r]=c,this.log("onVideoTimeUpdate() key="+r+", accumPlayTimeIncrease="+p+", completed="+l,c),l||n.onVideoView(this.screenKey,r,t.position,c.accumPlayTime,i,s,this.trackingCVars)}isIntersectionRatioAboveThreshold(t){return this.visibilityObserver.getSortedVisibleItems(this.threshold).map((t=>t.domId)).indexOf(t)>-1}shouldCheckImpression(t){return!0}shouldCheckNonVideoView(t){return!0}shouldCountVideoTime(t,e,o,i){return o=o||0,i=i||0,!!(e&&o&&i)&&this.isIntersectionRatioAboveThreshold(t.domId)}}},51931:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>m});var i=o(4907),s=o(80129),n=o.n(s),r=o(55185),a=o(13036),c=o(11186),l=o(41653),d=o(48254).default,p=o(39914).default;const u="unique-viewed";var h={trackUrl:"//t.9gag.com/img.gif",rlogTrackUrl:"//web-t.9gag.com/img.gif",rlogUrl:"//web-t.9gag.com/m.gif",appId:"web.9gag.desktop.release",appVersion:"0",lastException:"",username:"",init:function(t){this.trackUrl=t.trackUrl||this.trackUrl,this.rlogTrackUrl=t.rlogTrackUrl||this.rlogTrackUrl,this.rlogUrl=t.rlogUrl||this.rlogUrl,this.appId=t.appId||this.appId,this.appVersion=t.appVersion||this.appVersion,this.username=t.username||this.username,this.loadScripts(t)},loadScripts:function(t){const{trackerJsUrl:e}=t;e&&a.default.loadScript(e)},setUsername:function(t){this.username=t},uniqueViewed:function(t){if("PostImpression"!=t.category||"ViewPostForOneSecond"!=t.action)return;if(d.incrementPostView(),!t.cvars||!t.cvars.PostKey||!t.cvars.TriggeredPage)return;let e=t.cvars.PostKey;try{e=JSON.parse(t.cvars.PostKey),Array.isArray(e)&&(e=e.join(","))}catch(t){}h.event(u,"v",{entry:e,platform:-1!=this.appId.indexOf("desktop")?"d":"m",view:"SinglePost"==t.cvars.TriggeredPage?"p":"l"})},event:async function(t,e,o){var i={action:t,value:e,ref:"",label:void 0===o.label?"":o.label,labelValue:void 0===o.labelValue?"":o.labelValue,platform:void 0===o.platform?"":o.platform,entry:void 0===o.entry?"":o.entry,user:void 0===o.user?"":o.user,view:void 0===o.view?"":o.view};i.ref=h._getQueryStringParam("ref"),h._send(h._formatUrl(i)),t!==u&&h._send(h._formatUrl(i,h.rlogTrackUrl))},_getQueryStringParam:function(t){for(var e=window.location.href.split(/[\?&]+/),o=0;o{const o=new Image;e&&(o.onload=e),o.src=t}))},_getUrl:function(){return location.href},_getReferrer:function(){return document.referrer},_getTime:function(){var t=new Date,e=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds());return Math.round(e.getTime()/1e3)},logTime:function(t,e){var o=c.Z.getLocation()||"O1",i={a:h.appId,v:parseInt(h.appVersion),t:Math.round(e),k:t+"."+o,g:"USER_EXPERIENCE"},s=h.rlogUrl+"?"+n().stringify(i);h._send(s)},logLatencyIfSane:function(t,e,o){var i=o-e;e>0&&o>0&&i>0&&i<6e5&&(p.log("LatencyTracking: "+t+":"+i.toFixed(2)),h.logTime(t,i))},logCount:function(t,e){var o=c.Z.getLocation()||"O1",i={a:h.appId,v:parseInt(h.appVersion),c:e,k:t+"."+o,g:"USER_EXPERIENCE",_uniq:Math.random()+ +new Date},s=h.rlogUrl+"?"+n().stringify(i);h._send(s)},logException:function(t,e={}){if(t==this.lastException)return;this.lastException=t;let o=i.U2("ts1")||l.default.getDeviceId()||"";const s=this.username||"",r=`${navigator.userAgent}\n\n${e.info||""}`;var a={a:h.appId,v:parseInt(h.appVersion),i:o,u:s,m:t,if:r,k:"ERROR",g:"USER_EXPERIENCE"},c=h.rlogUrl+"?"+n().stringify(a);h._send(c)},profileUrlLoadTime:function(t,e){h._shouldTrackPerformance()&&h._send(t,(function(){h.trackUrlTiming(t,e)}))},trackUrlTiming:function(t,e){var o=performance.getEntriesByName(t);if(o&&o[0]){var i=o[0].requestStart,s=o[0].responseEnd;h.logLatencyIfSane("DELAY_TXFR_"+e,i,s);var n=o[0].connectStart,r=o[0].connectEnd;h.logLatencyIfSane("DELAY_CONN_"+e,n,r)}},reportPerf:function(){h.profilePageLoadTime(),h.profileAssetsLoadTime()},_shouldTrackPerformance:function(){return performance&&performance.getEntriesByType&&performance.navigation&&performance.timing&&0==performance.navigation.type},profilePageLoadTime:function(){if(h._shouldTrackPerformance()&&"/"==window.location.pathname){var t=performance.timing.domComplete,e=performance.timing.navigationStart;h.logLatencyIfSane("PAGE_DELAY",e,t)}},profileAssetsLoadTime:function(){if(h._shouldTrackPerformance()){var t=window.performance.getEntriesByType("resource").find((function(t){return t&&t.name&&t.name.endsWith("gag.css")}));t&&t.name&&t.transferSize>0&&(p.log("Main CSS resource is :",t),h.trackUrlTiming(t.name,"MAINCSS"))}},downloadFail:function(t){h.logCount("DOWNLOAD_FAIL",1)}};const m=h},60028:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>i});const i={aggregatePeriod:800,timers:{},pendingUpdate:{},listeners:[],addListener:function(t){this.listeners.push(t)},removeListeners:function(){this.listeners=[]},onVideoTimeUpdate:function(t,e,o,i,s){let n=this.pendingUpdate[t.key];if(this.pendingUpdate[t.key]={data:t,isPlaying:e,currentTime:o,duration:i,startTime:s},n)return;const r=this;setTimeout((function(){r._onVideoTimeUpdate(r.pendingUpdate[t.key]),r.pendingUpdate[t.key]=null}),this.aggregatePeriod)},_onVideoTimeUpdate:function(t){if(t)for(let e=0;e{"use strict";o.r(e),o.d(e,{default:()=>r});var i=o(11186),s=o(4907),n=o(39914).default;const r=new class{supportsCodec(t){return"MediaSource"in window?MediaSource.isTypeSupported(t):"probably"===document.createElement("video").canPlayType(t)}_disableCodec(t){const e=`disable_${t}`;return window.location.search.match(`${t}=false`)&&s.t8(e,1,{expires:"10Y"}),!!s.U2(e)&&(n.log(`disableCodec ${t}`),!0)}supportsH264(){return this.supportsCodec('video/mp4; codecs="avc1.4d001f"')}supportsH265(){return!this._disableCodec("h265")&&this.supportsCodec('video/mp4; codecs="hvc1"')}supportsVP9(){return!this._disableCodec("vp9")&&this.supportsCodec('video/webm; codecs="vp9, opus"')}supportsAV1(){return!this._disableCodec("av1")&&this.supportsCodec('video/mp4; codecs="av01.0.00M.08"')&&!i.Z.isAndroid()}}},92289:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});const i={enter:"ENTER",exit:"EXIT",visible:"VISIBLE"},s={VisibilityObserver:class{constructor(t,e,o,i=0,s=null){this.cb=t;let n=i;this.hasZeroThreshold=!0,"number"==typeof i?0===i?this.hasZeroThreshold=!0:(n=[0,i],this.hasZeroThreshold=!1):Array.isArray(i)&&(i.indexOf(0)>-1?this.hasZeroThreshold=!0:(n=[...i,0],this.hasZeroThreshold=!1)),this.options={rootMargin:`${e}px 0px ${o}px`,threshold:n,root:s},this.observer=new IntersectionObserver(this._cb.bind(this),this.options),this.trackedItems=new Map,this.inViewPortItems=[],this.trackedDomIds=[]}_cb(t,e){const o=[];let s=!0;t.forEach((t=>{const e=t.target.id,n=t.intersectionRatio,r=this.trackedItems.get(e),a=this.inViewPortItems.map((t=>t.domId)).indexOf(e);let c={domId:e,intersectionRatio:n,data:r};t.isIntersecting?-1===a?(this.inViewPortItems.push(c),c.visibilityStatus=i.enter,s=!1):(this.inViewPortItems.splice(a,1,c),c.visibilityStatus=i.visible,s=!1):t.isIntersecting||a>-1&&(this.inViewPortItems.splice(a,1),c.visibilityStatus=i.exit),o.push(c)})),s&&!this.hasZeroThreshold||this.cb(o)}observe(t,e={}){t instanceof Element&&this.observer&&(this.trackedItems.has(t.id)||(this.observer.observe(t),this.trackedDomIds.push(t.id),this.trackedItems.set(t.id,e)))}unobserve(t){if(!(t instanceof Element&&this.observer))return;this.observer.unobserve(t);const e=this.trackedDomIds.indexOf(t.id);e>-1&&this.trackedDomIds.splice(e,1);const o=this.inViewPortItems.map((t=>t.id)).indexOf(t.id);o>-1&&this.trackedDomIds.splice(o,1),this.trackedItems.has(t.id)&&this.trackedItems.delete(t.id)}getSortedVisibleItems(t=0){const e=this.inViewPortItems.filter((e=>e.intersectionRatio>=t)),o=e.length>0?e:this.inViewPortItems,i=this.trackedDomIds;return o.sort(((t,e)=>i.indexOf(t.domId)-i.indexOf(e.domId)))}reset(){this.observer.disconnect(),this.inViewPortItems=[],this.trackedDomIds=[],this.trackedItems.clear()}destroy(){this.reset(),this.observer=null}},VISIBILITY_STATUS:i}},12267:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});const i={set:(t,e,o)=>t[e]=o,delete:(t,e)=>delete t[e]}},29198:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>n});var i=o(13036).default;class s{constructor({id:t,onSeek:e,onPercentageChange:o,onStart:i,onResume:s,onPause:n,onEnded:r,onReady:a}){this.id=t,this.timestamp=Date.now(),this.lastPlayerState=-1,this.lastPercentage=0,this.lastPlayerTime=0,this.started=!1,this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.onPlayerReady=this.onPlayerReady.bind(this),this.onYouTubePlayerAPIReady=this.onYouTubePlayerAPIReady.bind(this),this.onStateChange=this.onStateChange.bind(this),this.checkStatus=this.checkStatus.bind(this),this.isSeeking=this.isSeeking.bind(this),this.getCurrentState=this.getCurrentState.bind(this),this.getPlayerId=this.getPlayerId.bind(this),this.onSeek=e,this.onPercentageChange=o,this.onStart=i,this.onResume=s,this.onPause=n,this.onEnded=r,this.onReady=a}start(){window.YT&&window.YT.Player?this.onYouTubePlayerAPIReady():(s.callbacks.push(this.onYouTubePlayerAPIReady),i.loadScript("https://www.youtube.com/iframe_api")),this.checkStatusInterval=setInterval(this.checkStatus,1e3)}stop(){this.checkStatusInterval&&clearInterval(this.checkStatusInterval)}onPlayerReady(t){this.player=t.target,this.onReady&&this.onReady()}onYouTubePlayerAPIReady(){const{getPlayerId:t,onPlayerReady:e,onStateChange:o}=this;new YT.Player(t(),{videoId:this.id,events:{onReady:e,onStateChange:o}})}onStateChange(t){const e=this.getCurrentState();if(null===e)return;const o=this.lastPlayerState===YT.PlayerState.PLAYING,i=this.lastPlayerState===YT.PlayerState.PAUSED,s=t.data===YT.PlayerState.PLAYING,n=t.data===YT.PlayerState.PAUSED&&!this.isSeeking(),r=t.data===YT.PlayerState.ENDED,{onStart:a,onResume:c,onPause:l,onEnded:d}=this;s&&!this.started&&(a&&a(e),this.started=!0),s&&i&&c&&c(e),n&&o&&l&&l(e),r&&d&&d(e),this.lastPlayerState=t.data}checkStatus(){const t=this.getCurrentState();if(null===t)return;const{onSeek:e,onPercentageChange:o}=this;this.isSeeking()&&e&&e(t),t.percentage>this.lastPercentage&&o&&o(t),this.lastPercentage=t.percentage,this.lastPlayerTime=t.time}isSeeking(){const t=Math.floor(this.player.getCurrentTime());return Math.abs(t-this.lastPlayerTime)>2}getCurrentState(){if(!this.player)return null;const t=Math.floor(this.player.getCurrentTime()),e=Math.floor(this.player.getDuration());return{state:this.player.getPlayerState(),percentage:t/e*100,isPlaying:this.player.getPlayerState()===YT.PlayerState.PLAYING,time:t,lastTime:this.lastPlayerTime,duration:e}}getPlayerId(){return`embedded-youtube-view-${this.id}-${this.timestamp}`}play(){this.player&&this.player.playVideo()}pause(){this.player&&this.player.pauseVideo()}mute(){this.player&&this.player.mute()}}s.callbacks=[],window.onYouTubePlayerAPIReady=()=>{for(let t of s.callbacks)t();s.callbacks=[]};const n=s},96414:(t,e,o)=>{"use strict";o.d(e,{Z:()=>d});var i=o(96156),s=o(13036),n=o(1040),r=o(33360),a=o(39914),c=o(11186);class l{constructor(){(0,i.Z)(this,"nsfw",!1),(0,i.Z)(this,"retries",0)}async init(){a.default.log("AyUtils.init"),s.default.loadScript("https://"+l.ENTITY_ID+".ay.delivery/manager/"+l.ENTITY_ID,{referrerpolicy:"no-referrer-when-downgrade"}),this.initAyUtils()}getUserInfo(){var t;return{ready:(0,r.LM)().isUserInitCompleted,hashedEmail:null===(t=(0,r.LM)().user)||void 0===t?void 0:t.hashedEmail}}async initAyUtils(){window.ayUtils={getUserInfo:this.getUserInfo},await(0,r.LM)().waitForUserInit();const t=new CustomEvent("userInitCompleted",{detail:this.getUserInfo()});document.dispatchEvent(t)}checkBeforeInit(){a.default.log("AyUtils.checkBeforeInit");const t=(0,r.LM)().isLoggedIn;if(c.Z.hasSession()&&!t&&this.retries{this.checkBeforeInit()}),500),void this.retries++;this.hideAds()||this.init()}getNsfw(){return!(!n.Z.getters["app/NSFW_ADS"]&&!n.Z.getters["app/NSFW_POST"])}setNsfw(t){this.nsfw=t,window.isNsfw=this.nsfw}changePage(t=!1){a.default.log("AyUtils.changePage",{refreshNsfw:t}),t&&this.setNsfw(this.getNsfw()),window.ayManagerEnv=window.ayManagerEnv||{cmd:[],changePage:()=>{}},window.ayManagerEnv.changePage()}hideAds(){var t,e,o,i,s;const c=null===(t=(0,r.LM)().user)||void 0===t?void 0:t.isActivePro,l=null===(e=null===(o=n.Z.state)||void 0===o||null===(i=o.app)||void 0===i||null===(s=i.proSettings)||void 0===s?void 0:s.hideAds)||void 0===e||e;return a.default.log("AyUtils.hideAds",{isActivePro:c,hideAds:l}),!(!c||!l)}destroyAds(t){var e,o;a.default.log("AyUtils.destroyAds",{adUnitIds:t,adUnitInstances:null===(e=window.ayManagerEnv)||void 0===e||null===(o=e.settings)||void 0===o?void 0:o.adUnitInstances}),Array.isArray(t)&&t.length&&window.ayManagerEnv&&"function"==typeof window.ayManagerEnv.destroy&&window.ayManagerEnv.destroy(t,{useInstanceCodes:!0})}destroyAll(){var t,e;const o=((null===(t=window.ayManagerEnv)||void 0===t||null===(e=t.settings)||void 0===e?void 0:e.adUnitInstances)||[]).map((t=>t.code));this.destroyAds(o)}}(0,i.Z)(l,"ENTITY_ID","N3SMqCzqMNXwq4wPb"),(0,i.Z)(l,"MAX_RETRIES",5);const d=new l},18779:(t,e,o)=>{"use strict";o.d(e,{Z:()=>n});var i=o(74279);const s=new(o.n(i)()),n={$on:s.on,$off:s.off,$emit:s.emit}},29426:(t,e,o)=>{"use strict";o.d(e,{Z:()=>a});var i=o(97554),s=o(57637);o(1040),o(44356);const n={[i.Z.POST]:"Post",[i.Z.COLLECTION_PAGE]:"CollectionPage",[i.Z.HOME_POST_LIST]:"Home",[i.Z.TAG_POST_LIST]:"Tag",[i.Z.INTEREST_POST_LIST]:"Interest",[i.Z.SEARCH_POST_LIST]:"Search",[i.Z.USER_LIST]:"Profile",[i.Z.LOGIN]:"Login",[i.Z.SIGNUP]:"Signup",[i.Z.NOTIFICATIONS]:"Notifications",[i.Z.SETTINGS]:"Settings"},r={[s.default.HOME]:"Home",[s.default.HOT]:"Hot",[s.default.TRENDING]:"Trending",[s.default.FORUM]:"Forum",[s.default.FRESH]:"Fresh",[s.default.TOP]:"Top",[s.default.POSTS]:"Posts",[s.default.COMMENTS]:"Comments",[s.default.LIKES]:"Upvotes",[s.default.SAVED]:"Saved"},a={getProps(t){const{name:e,params:o}=t;let a=n[e]||null,c=null,l=null;return[i.Z.HOME_POST_LIST,i.Z.TAG_POST_LIST,i.Z.INTEREST_POST_LIST].includes(e)?c=r[o.type||(e===i.Z.HOME_POST_LIST?s.default.HOME:s.default.HOT)]:[i.Z.USER_LIST].includes(e)?c=r[o.type||s.default.POSTS]:[i.Z.POST].includes(e)&&(l=t.hash.startsWith("#comment")?"Comment Tab":t.hash.startsWith("#cs_comment_id")?"Thread Tab":"Related Tab"),{page:a,postSort:c,tabBarSort:l}},getRouteName:t=>Object.keys(n).find((e=>n[e]===t))}},30002:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});const i=o(29426).Z},90117:(t,e,o)=>{"use strict";o.d(e,{Z:()=>s});var i="CommentAction";const s={writeComment:(t="")=>({c:i,a:"WriteComment",l:t}),addComment:{c:i,a:"AddComment",l:"Add"},addInlineComment:{c:i,a:"AddComment",l:"AddInline"},replyComment:{c:i,a:"AddComment",l:"Reply"},deleteComment:{c:i,a:"DeleteComment",l:""},upvoteComment:{c:i,a:"UpvoteComment",l:""},downvoteComment:{c:i,a:"DownvoteComment",l:""},unvoteComment:{c:i,a:"UnvoteComment",l:""},reportComment:{c:i,a:"ReportComment",l:""},blockUser:{c:"UserAction",a:"BlockUser",l:""},opPinComment:{c:i,a:"TapOpPinComment",l:""},clickOrderHot:{c:i,a:"TapHot",l:""},clickOrderFresh:{c:i,a:"TapFresh",l:""},openCommentMenu:{c:i,a:"TapCommentMenu",l:"Open"},closeCommentMenu:{c:i,a:"TapCommentMenu",l:"Close"},clickReply:{c:i,a:"TapReply",l:""},loadMore:{c:i,a:"LoadList",l:""},loadPrev:{c:i,a:"LoadPrev",l:""},clickLoadMoreReply:{c:i,a:"TapLoadMoreReply",l:""},clickImage:{c:i,a:"TapImage",l:""},clickAvatar:{c:i,a:"TapAvatar",l:""},clickAuthorName:{c:i,a:"TapAuthorName",l:""},clickMention:{c:i,a:"TapMention",l:""},clickCommentAge:{c:i,a:"TapCommentTime",l:""},clickFirstToComment:{c:i,a:"TapFirstToComment",l:""},clickFollowThread:{c:i,a:"TapFollowThread",l:""},clickUnfollowThread:{c:i,a:"TapUnfollowThread",l:""},clickCommentItem:{c:i,a:"TapCommentItem",l:""},clickCommentItemForReply:{c:i,a:"TapCommentItemForReply",l:""},clickCommentItemForExpand:(t="")=>({c:i,a:"TapCommentItemForExpand",l:t}),closeCommentInput:{c:i,a:"CloseCommentInput",l:""},copyCommentLink:{c:i,a:"CopyCommentLink",l:""},tapUnmask:{c:i,a:"TapUnmask",l:""},clickViewAllOffensive:{c:i,a:"ClickViewAllOffensive",l:""}}},73499:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(81573),s=o(86655),n=o(39914).default;const r={track:function(t,e){n.log("Event tracking",t,e),e=this.formatCustomVaribles(e),s.default.track(t.c,t.a,t.l,"",e)},formatCustomVaribles:function(t={}){const e=(0,i.jd)(),o=e.postKey;o&&(t.PostKey=o);const s=e.type;return t.CommentOrder=s===i.wD.NEW?"New":"Hot",t}}},44356:(t,e,o)=>{"use strict";o.d(e,{v:()=>m});var i=o(96156),s=o(84157),n=o(44908),r=o.n(n),a=o(1040),c=o(12267),l=o(11186),d=o(41609),p=o.n(d),u=o(33360);function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const m=(0,s.Q_)("tag",{state:()=>({popular:[],other:[],favorites:[],recents:[],hidden:[],postTagsByUrl:{},tagNavsByUrl:{},customConfigByUrl:{},interests:null,localInterests:null}),getters:{sortedFavorites(){return this.favorites.filter((t=>!p()(t))).reverse()},sortedRecents(){return this.recents.filter((t=>!p()(t))).reverse()},filteredPopular(){return this.popular.filter((t=>!this.isExistedTag("favorites",t)&&!this.isExistedTag("hidden",t))).slice(0,10)},filteredOther(){return this.other.filter((t=>!this.isExistedTag("favorites",t)&&!this.isExistedTag("hidden",t)&&!this.isExistedTag("popular",t,10)))},currentUrl(){const t=a.Z.state.route;return this.postModel.getApiInfo(t).url},getPostTags(){return this.postTagsByUrl[this.currentUrl]||[]},getTagNav(){return this.tagNavsByUrl[this.currentUrl]||[]},getCustomConfig(){return this.customConfigByUrl[this.currentUrl]||{}},getRecentInterests(){return this.sortedRecents.filter((t=>!!t.listType))},getFavoritedInterests(){return this.sortedFavorites.filter((t=>!!t.listType))},getInterests(){return(0,u.LM)().nsfwMode||!this.interests?this.interests||[]:Object.keys(this.interests).filter((t=>!this.interests[t].isSensitive)).reduce(((t,e)=>(t[e]=this.interests[e],t)),{})}},actions:{init({popular:t,other:e,location:o},i){this.popular=t,this.other=e,this.mergeLocationIntoOther(o),this.postModel=i,this.migrateSections(),window.tagStore=m},mergeLocationIntoOther(t){if(!t)return;const e=t[l.Z.getLocation()||"O1"]||[];if(!e.length)return;const o=this.popular.filter((t=>!e.some((e=>e.url==t.url))));this.popular=[...e,...o]},getTagNavByRoute(t){return this.tagNavsByUrl[this.postModel.getApiInfo(t).url]||[]},initInterests(t){this.interests=t},initLocalInterests(t){this.localInterests=t},prependLocalInterest(){const t=(0,u.LM)().getLocalLocationCode,e=this.getLocalInterestByLocationCode(t);if(e&&this.interests){const t=Object.keys(this.interests).filter((t=>!this.interests[t].isLocal)).reduce(((t,e)=>(t[e]=this.interests[e],t)),{});this.interests=function(t){for(var e=1;et.url===e.url))||p()(e)||this[t].push(e)},removeTag(t,e){this[t]=this[t].filter((t=>t.url!==e.url))},isExistedTag(t,e,o){return this[t].slice(0,o).some((t=>t.url===e.url))},isFavoritedTag(t){return this.favorites.some((e=>e.url===t.url))},checkLimit(t,e,o){this[t].length>=o&&this[t].shift()},getInterest(t){return this.interests&&this.interests[t]?this.interests[t]:this.localInterests&&this.localInterests[t]?this.localInterests[t]:{}},getLocalInterestByLocationCode(t){if(!this.localInterests)return;const e=t.toLowerCase(),o=Object.keys(this.localInterests).find((t=>(this.localInterests[t].locationCode||"").toLowerCase()===e));return o&&this.localInterests[o]},setPostTags({key:t,tags:e}){c.Z.set(this.postTagsByUrl,t,e)},setTagNav({key:t,tagNav:e}){c.Z.set(this.tagNavsByUrl,t,e)},setCustomConfig({key:t,config:e}){this.customConfigByUrl[t]=e},getKeyFromCanonicalTag:t=>t.replace(/(^|[^a-zA-Z0-9]+)(.)/g,((t,e,o)=>(e?" ":"")+o.toUpperCase())),sectionTagToTag(t){return{key:this.getKeyFromCanonicalTag(t).toLowerCase(),url:`/tag/${t}`,description:"",isSensitive:0}},readLocalStorage(t){try{var e;return JSON.parse(null===(e=window)||void 0===e?void 0:e.localStorage.getItem(t))||{}}catch(t){return{}}},migrateSections(){var t,e;const o=this.readLocalStorage("sectionState").section,i=this.readLocalStorage("@mweb/sectionState").section;if(!o&&!i)return;const s=r()([...(null==i?void 0:i.favoriteSections)||[],...(null==o?void 0:o.favoriteSections)||[]]),n=(null==i?void 0:i.hiddenSections)||[],a=r()([...(null==i?void 0:i.recentVisitSections)||[],...(null==o?void 0:o.recentVisitSections)||[]]);s.length>0&&(this.favorites=s.map(this.sectionTagToTag)),n.length>0&&(this.hidden=n.map(this.sectionTagToTag)),a.length>0&&(this.recents=a.map(this.sectionTagToTag).slice(-3)),null===(t=window)||void 0===t||t.localStorage.removeItem("sectionState"),null===(e=window)||void 0===e||e.localStorage.removeItem("@mweb/sectionState")}},persist:{key:"tagState",paths:["recents","favorites","hidden"]}})},32459:(t,e,o)=>{"use strict";o.d(e,{_:()=>g});var i=o(96156),s=o(84157),n=o(1040),r=o(94530),a=o(41965),c=o(82122),l=o(624);function d(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function p(t){for(var e=1;e({configs:[],shown:[],popper:null,hidden:!1,current:null}),getters:{tooltip(t){if(t.current)return t.current;const e=this.configs.find((t=>!(this.shown.includes(t.id)||!t.isActive&&(!t.route||t.route&&t.route!==n.Z.state.route.fullPath))));if(!e)return;const o=document.querySelector(e.selector);return null!=o&&o.offsetParent||m.includes(e.id)?(this.current=e,e):void 0},isShown:t=>e=>t.shown.includes(e)},actions:{init(t){this.configs=t},create(t,e){this.destroy();const o=document.querySelector(e.selector);return!(!t||!o||(this.popper=u(o,t,{placement:e.placement,modifiers:e.modifiers||h}),0))},update(){this.popper&&this.popper.update()},toggleHidden(t){this.hidden=t},updateOptions(t){this.popper&&this.popper.setOptions((e=>p(p({},e),t)))},destroy(){this.popper&&(this.popper.destroy(),this.popper=null,this.current=null)},dismiss(){this.tooltip&&this.shown.push(this.tooltip.id)}},persist:{key:"tooltipState",paths:["shown"]}})},16794:(t,e,o)=>{"use strict";o(27421),o(13035),o(12405);var i=o(51931),s=o(18309);const n=class{static async report(t){console.error(t),this.shouldReport(t)&&(s.Z.trackException(t,!0),i.default.logException(t.message,{info:t.stack}))}static shouldReport(t){const{name:e="",message:o="",stack:i=""}=t||{};return!(!(e||o||i)||e.match(/ChunkLoadError|SecurityError|SyntaxError/)||o.match(/Loading CSS chunk|redefine|TypeMismatchError|ID5|ownerDocument/)||i.match(/(chrome|moz)-extension|imasdk|pubmatic|adjinn_ns|Tapad/)||i.match("http")&&!i.match("static/dist"))}};var r=o(51214),a=o(13036);const c=new class{constructor(){this.inited=!1}async init(t){const{pixelId:e,events:o=[]}=t;var i,s;!this.inited&&e&&(this.inited=!0,(i=window).fbq||(s=i.fbq=function(){s.callMethod?s.callMethod.apply(s,arguments):s.queue.push(arguments)},i._fbq||(i._fbq=s),s.push=s,s.loaded=!0,s.version="2.0",s.queue=[]),fbq("init",e),fbq("track","PageView"),o.forEach((t=>fbq("track",t))),a.default.loadScript("https://connect.facebook.net/en_US/fbevents.js"))}},l=new class{constructor(){this.inited=!1}async init(t){if(this.inited||!t)return;this.inited=!0;const{sampleRate:e=100}=t;if(Math.floor(100*Math.random())>=e)return;a.default.loadScript("https://www.gstatic.com/firebasejs/9.0.2/firebase-performance-standalone-compat.js").then((()=>{firebase.initializeApp(t).performance()}));const{cfAnalyticsToken:o}=t;o&&(window.__cfBeacon={token:o},a.default.loadScript("https://static.cloudflareinsights.com/beacon.min.js"))}};var d=o(48254),p=o(94165),u=o(11186),h=o(55407),m=o(96414),g=o(47881),f=o(4907),v=o(33360),b=o(73726),w=o(13036).default,y=o(53441).default,k=o(86655).default,P={config:null,init:function(t){this.config=t,w.loadScript("//connect.facebook.net/en_US/sdk.js")},asyncInit:function(){const t=this.config;FB.init({appId:t.appId,version:t.version,xfbml:!1,status:!0,cookie:!0}),this._checkFacebookLoginStatus()},sessionChangeHandler:function(t){t&&("connected"===t.status?t.authResponse&&P.autoLogin():t.status)},_checkFacebookLoginStatus:function(){FB.getLoginStatus(P.sessionChangeHandler),FB.Event.subscribe("auth.authResponseChange",P.sessionChangeHandler)},autoConnectKey:"auto_log",autoLogin:function(){if((0,v.LM)().isLoggedIn)return;if(!y.isCookieEnabled())return;const t=f.U2(P.autoConnectKey);var e={a:!1,d:!1,lo:!1,dl:!1};if((t||!1===t)&&(e=JSON.parse(t)),null!=e){if(e.a)return;if(!e.dl&&(e.lo||e.d))return}k.track("Login","AutoConnectFacebook",(0,b.k)().pageKey),e.a=!0;var o=JSON.stringify(e);f.t8(P.autoConnectKey,o,(0,b.k)().cookieOptions),P.Connect.autoLogin(location.href)},updateAutoLoginCookie:function(){const t=JSON.stringify({a:!1,d:!1,lo:!1,dl:!1});f.t8(P.autoConnectKey,t,(0,b.k)().cookieOptions)},Connect:{autoLogin:function(t){try{null!=t&&null!=t||(t="/");var e=`https://${(0,b.k)().domain}/connect/auto-login?next=${encodeURIComponent(t)}`;window.location=e}catch(t){return}}}};window.fbAsyncInit=function(){P.asyncInit()};const O=P;var _=o(66252),I=o(3577);const C={id:"page"};var S=o(96156),x=o(18779),T=o(97554),E=o(32204),A=o(42175),D=o(49963);const j={inheritAttrs:!1,props:["background","drawer"],computed:{backgroundUrl(){return`url(${this.background.image})`},sideWidth(){const{sideWidth:t}=this.background;return t?`${t}px`:null},offsetWidth(){const{sideWidth:t}=this.background,e=this.drawer?1260:1004;let o=Math.min((A.Z.browserWidth()-e)/2,t);return o{(0,D.sj)((t=>({"793d3b62":t.backgroundUrl,"2b007da0":t.sideWidth})))},L=j.setup;j.setup=L?(t,e)=>(M(),L(t,e)):M;const U=j;o(26668);var Z=o(83744);const R=(0,Z.Z)(U,[["render",function(t,e,o,i,s,n){return(0,_.wg)(),(0,_.iD)("div",{class:(0,I.C_)(["background",{full:!n.sideWidth}])},[(0,_._)("div",{class:(0,I.C_)(["container",{drawer:o.drawer}])},[n.sideWidth?((0,_.wg)(),(0,_.iD)("div",{key:0,class:"side",style:(0,I.j5)({left:n.offsetWidth})},null,4)):(0,_.kq)("",!0),n.sideWidth?((0,_.wg)(),(0,_.iD)("div",{key:1,class:"side",style:(0,I.j5)({right:n.offsetWidth})},null,4)):(0,_.kq)("",!0)],2)],2)}],["__scopeId","data-v-439bdeaa"]]),N={id:"top-nav",ref:"nav"};var B=o(68209);const H={class:"nav-menu"},V={class:"secondary"},F=["href","target","onClick"],$={key:0},G=["href"],z=["src"];var W=o(48254).default;function K(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function q(t){for(var e=1;en.onNavLinkClick&&n.onNavLinkClick(...t))},[(0,_._)("img",{src:n.navLink.image},null,8,z)],8,G)])):(0,_.kq)("",!0)}]]);var X=o(48254).default;function tt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function et(t){for(var e=1;e((0,_.wg)(),(0,_.iD)("li",null,[(0,_._)("a",{href:t.url,target:t.blank?"_blank":null,class:(0,I.C_)({new:t.badge}),onClick:e=>n.clickNavLink(t)},(0,I.zw)(t.title),11,F)])))),256))])])}]]),nt={class:"function-wrap"},rt={class:"general-function"},at={class:"visitor-function"},ct={class:"user-function"},lt={key:0,class:"badge-new"},dt={class:"user-function"},pt={key:0,class:"topbar-menu-container"},ut={class:"upload"},ht=(0,_.Uk)(" Post ");var mt=o(1040),gt=o(84157),ft=o(84564),vt=o.n(ft),bt=o(57437),wt=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const yt=t=>wt(void 0,void 0,void 0,(function*(){try{const{readStateUrl:e,readStateParams:o}=t;return o?(yield bt.Z.get(`${e}?${o}`)).data.payload:null}catch(t){return console.error(t),null}}));function kt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Pt(t){for(var e=1;eSt,getters:{notiItems(){return this.isMentionsTab?this.items.filter((t=>_t.MENTION_TAB.includes(t.type))):this.items},newItems(){const t=this.items.filter((t=>!(!t.timestamp||!this.readState.lastReadTimestamp)&&t.timestamp>=this.readState.lastReadTimestamp));return this.isMentionsTab?t.filter((t=>_t.MENTION_TAB.includes(t.type))):t},earlierItems(){const t=this.items.filter((t=>!t.timestamp||!this.readState.lastReadTimestamp||t.timestamp_t.MENTION_TAB.includes(t.type))):t},notiCount(){return this.items.length},notiUnreadCount(){return this.readState.unreadCount||0},hasUnreadNoti(){return this.readState&&this.notiUnreadCount>0},notiOptions(){var t,e;const o=this.notiModel.getApiHost(),i=(0,v.LM)().user||{};return{readStateUrl:o?`https://${o}/v1/read-state.json`:null,readStateParams:(null===(t=null==i?void 0:i.notiOptions)||void 0===t?void 0:t.readStateParams)||null,pushChannels:(null===(e=null==i?void 0:i.notiOptions)||void 0===e?void 0:e.channels)||[]}}},actions:{init(t,e={}){this.isDropdown=!!e.isDropdown,this.notiModel=t},loadNoti(){return Ct(this,void 0,void 0,(function*(){if(this.didEndOfList||this.isDropdown&&!this.showDropdown)return;const t=yield(e=this.nextKey||void 0,wt(void 0,void 0,void 0,(function*(){try{const t=new(vt())("/v1/notifications");return(yield bt.Z.post(t.toString(),{refKey:e})).data.data}catch(t){return console.error(t),null}})));var e;t&&this.setNotiData(t)}))},getReadState(){return yt(this.notiOptions)},loadNotiReadState(){return Ct(this,void 0,void 0,(function*(){const t=yield yt(this.notiOptions);t&&this.setReadState(t)}))},clearNotiUnreadCount(){var t;t=this.notiOptions,wt(void 0,void 0,void 0,(function*(){try{const{readStateUrl:e,readStateParams:o}=t;if(!o)return;yield bt.Z.post(e,o,{headers:{"content-type":"application/x-www-form-urlencoded"}})}catch(t){console.error(t)}}))},setNotiData(t){if(!t)return;const{items:e,nextKey:o,didEndOfList:i,posts:s}=this.notiModel._transformNoti(t);this.notiModel.addPosts(s),e.forEach((t=>{this.itemIds.includes(t.id)||(this.items.push(t),this.itemIds.push(t.id))})),this.nextKey=o,this.didEndOfList=i},resetReadState(){const t=It.default.getCurrentTime();this.readState.lastReadTimestamp=t||0,this.readState.unreadCount=0},markItemAsRead(t){(t=>{wt(void 0,void 0,void 0,(function*(){try{const e=new(vt())("/v1/notifications-read-state");yield bt.Z.post(e.toString(),t)}catch(t){return void console.error(t)}}))})({itemKeys:t,states:1}),this.readIds.push(t)},refreshNoti(){this.items=[],this.itemIds=[],this.nextKey="",this.didEndOfList=!1,this.loadNoti()},resetTab(){this.isMentionsTab&&(this.isMentionsTab=!1)},setMentionsTab(t){this.isMentionsTab=t},showDropDown(){this.showDropdown=!0},hideDropDown(){this.showDropdown=!1},setReadState(t){this.readState.lastReadTimestamp=t.lastReadTimestamp||0,this.readState.unreadCount=t.unreadCount||0}}}),Tt={defaultTitle:()=>"9GAG - Best Funny Memes and Breaking News",home:()=>"9GAG - Headquarters of the Best Funny Memes",trending:()=>"Popular Memes Right Now - 9GAG",fresh:()=>"New and Fresh Funny Memes - 9GAG",top:()=>"Best Memes of the Week - 9GAG",forum:()=>"Ask 9GAG",post:t=>`${t} - 9GAG`,interest:t=>`${t} - 9GAG`,local:t=>`${t} - 9GAG`,tag:t=>`Best Funny ${t} Memes - 9GAG`,user:t=>`${t} - 9GAG`,login:()=>"9GAG - Log in",forgotPassword:()=>"9GAG - Forgot Password"},Et=new class{constructor(){this.docTitle=document.title}getNotiUnreadCount(){return xt().notiUnreadCount}async setPageType(t,e=""){let o="";o=Tt[t]?Tt[t](e):Tt.defaultTitle(),this.setPageTitle(o)}async setPageTitle(t){this.docTitle=t;const e=this.getNotiUnreadCount(),o=e>0?`(${e}) `:"";document.title=o+t}async refreshPageTitle(){this.setPageTitle(this.docTitle)}},At=t=>((0,_.dD)("data-v-dbb3e524"),t=t(),(0,_.Cn)(),t),Dt={class:"notification-menu"},jt={class:"tab-bar"},Mt={ref:"list",class:"notification-list viewport"},Lt={class:"overview"},Ut={key:0,class:"empty"},Zt={class:"empty-message"},Rt={key:1,class:"empty"},Nt=[At((()=>(0,_._)("div",{class:"empty-message"},[(0,_._)("div",{class:"simple-spinner"})],-1)))],Bt=At((()=>(0,_._)("div",{class:"notilist-spiner simple-spinner"},null,-1))),Ht={ref:"notiList"},Vt={key:0,class:"noti-list"},Ft={key:1,class:"noti-list"},$t={key:0,class:"noti-header"},Gt={key:1,class:"noti-header"},zt={key:2,class:"footer-loading"};var Wt=o(68946);const Kt=["href"],qt={class:"ui-noti-item__content"},Yt=["href"],Qt=["src"],Jt={class:"ui-noti-item__text"},Xt=["innerHTML"],te={key:0,class:"ui-noti-item__creation-time"},ee={key:0,class:"ui-noti-item__icon right"},oe=["srcset"],ie=["src"];function se(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ne(t){for(var e=1;en.onNotiClick&&n.onNotiClick(...t))},[(0,_._)("div",qt,[(0,_._)("a",{href:n.leftIconUrl,target:"_blank",class:(0,I.C_)(["ui-noti-item__icon left",{avatar:n.showAvatar}]),onClick:e[0]||(e[0]=(...t)=>n.onLogoClick&&n.onLogoClick(...t))},[(0,_._)("img",{src:n.largeLogoUrl},null,8,Qt)],10,Yt),(0,_._)("div",Jt,[(0,_._)("span",{innerHTML:o.htmlMessage},null,8,Xt),n.creationTime?((0,_.wg)(),(0,_.iD)("span",te,(0,I.zw)(n.creationTime),1)):(0,_.kq)("",!0)])]),n.showPostThumbnail?((0,_.wg)(),(0,_.iD)("div",ee,[(0,_._)("picture",null,[n.postThumbnail.webpUrl?((0,_.wg)(),(0,_.iD)("source",{key:0,srcset:n.postThumbnail.webpUrl,type:"image/webp"},null,8,oe)):(0,_.kq)("",!0),(0,_._)("img",{src:n.postThumbnail.url},null,8,ie)])])):(0,_.kq)("",!0)],10,Kt)):(0,_.kq)("",!0)}],["__scopeId","data-v-57d9cae4"]]);var ce=o(30002),le=o(48254).default;const de={props:{showAll:{type:Boolean,default:!0},isEmptyState:{type:Boolean,required:!0}},setup:()=>({notificationStore:xt()}),watch:{"notificationStore.isMentionsTab"(){this.scrollToTop()},"notificationStore.nextKey"(t){this.notificationStore.didEndOfList||(""===t?this.scrollToTop():this.resetLoadMore())}},computed:{showLoadingSpinner(){return!this.notificationStore.didEndOfList},showNewItems(){return this.notificationStore.newItems.length&&!this.showAll},showEarlierItems(){return this.notificationStore.earlierItems.length&&!this.showAll}},methods:{scrollToTop(){this.$refs.notiList&&this.$refs.notiList.scrollTo(0,0)},resetLoadMore(){this.$refs.loadMore&&this.$refs.loadMore.reset()},loadMoreHandler(){this.isEmptyState||xt().loadNoti()},isUnread(t){return!t.isRead&&!this.notificationStore.readIds.includes(t.id)},getUserAccountId(t){const{users:e}=t,o=null==e?void 0:e[0].accountId;return o&&"-1"!==o?o:null},getProfileUrl(t){const{users:e}=t;return e&&e[0]&&this.getUserAccountId(t)?this.getProfileRoute({username:e[0].username}):null},getHtmlMessage(t){const{message:e,wrapMessage:o,users:i,type:s}=t;if(s===_t.FOLLOWED_PAGE)return`${t.title}
${e}`;if(o){let t=o;return i&&i.forEach(((e,o)=>{const{username:i}=e,s=this.getProfileRoute({username:i});t=t.replace(`[${i}]`,`${i}`)})),t}return e},markItemAsRead(t){this.isUnread&&this.notificationStore.markItemAsRead(t.id)},changeRoute(t,e){u.Z.isMobile()&&(t.preventDefault(),this.$router.push(e))},onNotiClick({e:t,item:e}){const o=t.target.dataset.index;if(void 0!==o){t.stopPropagation();const{accountId:i}=e.users[o]||{};return le.trackClickUsername(i,"Notification"),void this.changeRoute(t,t.target.pathname)}const{post:i}=e;i&&le.trackOpenPost(i.id,"Notification List"),this.markItemAsRead(e)},onAvatarClick({e:t,item:e}){this.changeRoute(t,this.getProfileUrl(e)),le.trackClickAvatar(this.getUserAccountId(e),"Notification")},getProfileRoute(t,e={}){return this.$router.resolve({name:ce.Z.getRouteName("Profile"),params:t,query:e}).href}},async mounted(){await this.$nextTick(),this.notificationStore.isDropdown&&this.notificationStore.resetReadState(),this.notificationStore.clearNotiUnreadCount()},beforeUnmount(){this.notificationStore.isDropdown||this.notificationStore.resetReadState()},components:{NotiItem:ae,LoadMore:Wt.Z}},pe=(0,Z.Z)(de,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("NotiItem"),a=(0,_.up)("LoadMore");return(0,_.wg)(),(0,_.iD)("div",Ht,[o.showAll?((0,_.wg)(),(0,_.iD)("ul",Vt,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(i.notificationStore.notiItems,(t=>((0,_.wg)(),(0,_.iD)("li",{key:t.id},[((0,_.wg)(),(0,_.j4)(r,{item:t,key:t.id,isUnread:n.isUnread(t),profileUrl:n.getProfileUrl(t),htmlMessage:n.getHtmlMessage(t),onClickNoti:n.onNotiClick,onClickAvatar:n.onAvatarClick},null,8,["item","isUnread","profileUrl","htmlMessage","onClickNoti","onClickAvatar"]))])))),128))])):((0,_.wg)(),(0,_.iD)("ul",Ft,[n.showNewItems?((0,_.wg)(),(0,_.iD)("div",$t,"NEW")):(0,_.kq)("",!0),((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(i.notificationStore.newItems,(t=>((0,_.wg)(),(0,_.iD)("li",{key:t.id},[((0,_.wg)(),(0,_.j4)(r,{item:t,key:t.id,isUnread:n.isUnread(t),profileUrl:n.getProfileUrl(t),htmlMessage:n.getHtmlMessage(t),onClickNoti:n.onNotiClick,onClickAvatar:n.onAvatarClick},null,8,["item","isUnread","profileUrl","htmlMessage","onClickNoti","onClickAvatar"]))])))),128)),n.showEarlierItems?((0,_.wg)(),(0,_.iD)("div",Gt,"EARLIER")):(0,_.kq)("",!0),((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(i.notificationStore.earlierItems,(t=>((0,_.wg)(),(0,_.iD)("li",{key:t.id},[((0,_.wg)(),(0,_.j4)(r,{item:t,key:t.id,isUnread:n.isUnread(t),profileUrl:n.getProfileUrl(t),htmlMessage:n.getHtmlMessage(t),onClickNoti:n.onNotiClick,onClickAvatar:n.onAvatarClick},null,8,["item","isUnread","profileUrl","htmlMessage","onClickNoti","onClickAvatar"]))])))),128))])),(0,_.Wm)(a,{ref:"loadMore",onLoadMore:n.loadMoreHandler,root:t.$refs.notiList},null,8,["onLoadMore","root"]),n.showLoadingSpinner?((0,_.wg)(),(0,_.iD)("div",zt,[(0,_.WI)(t.$slots,"spiner")])):(0,_.kq)("",!0)],512)}]]),ue={mixins:[B.Z],setup:()=>({notificationStore:xt()}),computed:{initLoadingState(){return 0===this.notificationStore.notiCount},showEmptyState(){return 0===this.notificationStore.notiItems.length&&this.notificationStore.didEndOfList},emptyStateMessage(){return this.notificationStore.isMentionsTab?"No mentions yet":"No notifications yet"}},methods:{onAllClick(){this.notificationStore.setMentionsTab(!1),this.track("Noti","TapAllTab")},onMentionsClick(){this.notificationStore.setMentionsTab(!0),this.track("Noti","TapMentionsTab")}},created(){this.notificationStore.resetTab(),this.initLoadingState&&this.notificationStore.loadNoti()},components:{NotiList:pe}};o(46589);const he=(0,Z.Z)(ue,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("NotiList");return(0,_.wg)(),(0,_.iD)("div",Dt,[(0,_._)("div",jt,[(0,_._)("a",{href:"javascript:void(0)",class:(0,I.C_)({active:!i.notificationStore.isMentionsTab}),onClick:e[0]||(e[0]=(0,D.iM)(((...t)=>n.onAllClick&&n.onAllClick(...t)),["stop"]))}," All ",2),(0,_._)("a",{href:"javascript:void(0)",class:(0,I.C_)({active:i.notificationStore.isMentionsTab}),onClick:e[1]||(e[1]=(0,D.iM)(((...t)=>n.onMentionsClick&&n.onMentionsClick(...t)),["stop"]))}," Mentions ",2)]),(0,_._)("div",Mt,[(0,_._)("ul",Lt,[n.showEmptyState?((0,_.wg)(),(0,_.iD)("li",Ut,[(0,_._)("div",Zt,[(0,_._)("p",null,(0,I.zw)(n.emptyStateMessage),1)])])):n.initLoadingState?((0,_.wg)(),(0,_.iD)("li",Rt,Nt)):((0,_.wg)(),(0,_.j4)(r,{key:2,isEmptyState:n.showEmptyState},{spiner:(0,_.w5)((()=>[Bt])),_:1},8,["isEmptyState"]))])],512)])}],["__scopeId","data-v-dbb3e524"]]),me={class:"popup-menu search-menu"};var ge=o(92630),fe=o(48254).default;const ve={mixins:[B.Z],components:{SearchView:ge.Z},methods:{submitSearchItem(t){this.$router.push(t.url),fe.trackPostSearch(t.value)},clickSearchItem({item:t,listType:e}){fe.trackPostSearch(t.value,e)}}},be=(0,Z.Z)(ve,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("SearchView");return(0,_.wg)(),(0,_.iD)("div",me,[(0,_.Wm)(r,{onSubmitSearchItem:n.submitSearchItem,onClickSearchItem:n.clickSearchItem},null,8,["onSubmitSearchItem","onClickSearchItem"])])}]]);var we=o(97392),ye=o(40024),ke=o(55384),Pe=o(57913),Oe=o(35827),_e=o(48254).default,Ie=o(39914).default;function Ce(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Se(t){for(var e=1;e({showMenu:{[je]:!1,[Me]:!1,[Le]:!1},gdprApplies:!1}),setup:()=>({notificationStore:xt()}),computed:Se(Se(Se(Se(Se({},Te({darkMode:"GET_DARK_MODE"})),De(["isCCPARegion"])),{},{privacyOptions(){return{gdpr:this.gdprApplies,ccpa:this.isCCPARegion}}},(0,gt.rn)(v.LM,["isUserInitCompleted","user"])),Ae({supportBadge:t=>t.helpshift.unreadCount})),{},{notiUnreadCount(){return Math.min(this.notificationStore.notiUnreadCount,99)},showGuest(){return this.isUserInitCompleted&&!this.isLoggedIn},showUser(){return this.isUserInitCompleted&&this.isLoggedIn},showUserMenu(){return this.showMenu.user},showSearchMenu(){return this.showMenu.search},getUserName(){return this.user&&this.user.username},getUserAvatar(){return this.user?this.user.avatarUrl:null}}),methods:Se(Se(Se(Se({},xe({_toggleDarkMode:"TOGGLE_DARK_MODE"})),(0,gt.nv)(v.LM,["clearUserInfo"])),Ee({startHelpshift:ye.R5.START_HELPSHIFT})),{},{toggleMenu(t){const e=this.showMenu[t];this.hideMenu(),this.showMenu=Se(Se({},this.showMenu),{},{[t]:!e})},hideMenu(){const t={};Ue.forEach((e=>{t[e]=!1,e===Me&&this.notificationStore.hideDropDown()})),this.showMenu=t},toggleDarkMode(){this._toggleDarkMode(),this.track("NavigationBar","TapDarkMode"),this.isLoggedIn&&_e.setUserInfo(this.user)},clickSearch(){this.toggleMenu(Le),this.track("NavigationBar","TapSearch")},clickSignup(){x.Z.$emit("Overlay::showSignup"),this.track("NavigationBar","TapSignUp"),_e.trackClickSignup("Top Menu"),this.hideMenu()},clickLogout(){this.clearUserInfo(),this.track("NavigationBar","TapLogout"),_e.trackLogout(),this.hideMenu()},clickUpload(t){if(this.triggerSignup({action:Oe.xE}))return t.preventDefault(),t.stopPropagation(),void this.hideMenu();this.track("UploadAction","TapUpload"),_e.trackClickUpload()},clickUserMenu(){this.toggleMenu(je),this.track("NavigationBar","TapAvatar")},clickNotiMenu(){this.notificationStore.showDropdown?this.hideNotiMenu():(this.toggleMenu(Me),this.notificationStore.showDropDown(),this.track("Noti","OpenNotiMenu"),Et.refreshPageTitle())},hideNotiMenu(){this.hideMenu(),this.notificationStore.hideDropDown()},_showQuantcastCMP(){r.ZP.displayConsentUi(),this.track("NavigationBar","TapManageConsent"),this.hideMenu()},_onLinkOpen(t,e){this.hideMenu(),this.trackMenu(e)},_clickSupport(t,e){this.isLoggedIn&&(t.preventDefault(),this.startHelpshift()),this.hideMenu(),this.trackMenu(e)},async setGdprApplies(){this.gdprApplies=await r.ZP.getGdprApplies(),Ie.log("CMP setGdprApplies",{gdprApplies:this.gdprApplies})},trackMenu(t){this.track(t.category,t.action),"TapSaved"===t.action&&_e.trackOpenSaved(),"TapProfile"===t.action&&_e.trackViewUser(this.user.accountId,null,"Menu")},clickCustomize(){x.Z.$emit("Overlay::showCustomizeTags"),this.hideMenu()}}),created(){x.Z.$on("nav::hideMenu",this.hideMenu)},mounted(){this.setGdprApplies(),window.addEventListener(r.D5,this.setGdprApplies)},beforeDestroy(){window.removeEventListener(r.D5,this.setGdprApplies)},components:{TopNavNoti:he,TopNavSearch:be,TopBarMenu:we.v4,GeneralAvatar:we.Wu,IconPen:Pe.Z,GeneralButton:we.Wo}};o(13907);const Re=(0,Z.Z)(Ze,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("TopNavSearch"),a=(0,_.up)("TopNavNoti"),c=(0,_.up)("GeneralAvatar"),l=(0,_.up)("TopBarMenu"),d=(0,_.up)("IconPen"),p=(0,_.up)("GeneralButton"),u=(0,_.Q2)("click-outside");return(0,_.wg)(),(0,_.iD)("div",nt,[(0,_._)("div",rt,[(0,_._)("a",{class:(0,I.C_)(["search",{selected:n.showSearchMenu}]),href:"javascript:void(0);",onClick:e[0]||(e[0]=(0,D.iM)(((...t)=>n.clickSearch&&n.clickSearch(...t)),["stop"]))},"Search",2),n.showSearchMenu?(0,_.wy)(((0,_.wg)(),(0,_.j4)(r,{key:0},null,512)),[[u,n.hideMenu]]):(0,_.kq)("",!0)]),(0,_.wy)((0,_._)("div",at,[(0,_._)("a",{class:"btn-mute",href:"/signup",onClick:e[1]||(e[1]=(0,D.iM)(((...t)=>n.clickSignup&&n.clickSignup(...t)),["prevent","stop"]))},"Sign Up/Log In")],512),[[D.F8,n.showGuest]]),(0,_.wy)((0,_._)("div",ct,[(0,_._)("div",{class:"notification",onClick:e[2]||(e[2]=(0,D.iM)(((...t)=>n.clickNotiMenu&&n.clickNotiMenu(...t)),["prevent","stop"]))},[(0,_._)("a",{class:(0,I.C_)(["bell",{selected:i.notificationStore.showDropdown}]),href:"/notifications"},null,2),n.notiUnreadCount>0?((0,_.wg)(),(0,_.iD)("div",lt,(0,I.zw)(n.notiUnreadCount),1)):(0,_.kq)("",!0)]),i.notificationStore.showDropdown?(0,_.wy)(((0,_.wg)(),(0,_.j4)(a,{key:0},null,512)),[[u,n.hideNotiMenu]]):(0,_.kq)("",!0)],512),[[D.F8,n.showUser]]),(0,_.wy)((0,_._)("div",dt,[(0,_.Wm)(c,{username:n.getUserName,src:n.getUserAvatar,isUnread:t.supportBadge>0,onHandleClick:n.clickUserMenu},null,8,["username","src","isUnread","onHandleClick"]),n.showUserMenu?(0,_.wy)(((0,_.wg)(),(0,_.iD)("div",pt,[(0,_.Wm)(l,{username:n.getUserName,darkMode:t.darkMode,privacy:n.privacyOptions,supportBadge:t.supportBadge,onClickSignup:n.clickSignup,onClickLogout:n.clickLogout,onShowQuantcastCMP:n._showQuantcastCMP,onToggleDarkMode:n.toggleDarkMode,onOnLinkOpen:n._onLinkOpen,onClickSupport:n._clickSupport,onClickCustomize:n.clickCustomize},null,8,["username","darkMode","privacy","supportBadge","onClickSignup","onClickLogout","onShowQuantcastCMP","onToggleDarkMode","onOnLinkOpen","onClickSupport","onClickCustomize"])])),[[u,n.hideMenu]]):(0,_.kq)("",!0),(0,_._)("div",ut,[(0,_.Wm)(p,{color:"primary",href:"/submit",onClick:n.clickUpload},{default:(0,_.w5)((()=>[(0,_.Wm)(d,{size:"14"}),ht])),_:1},8,["onClick"])])],512),[[D.F8,n.showGuest||n.showUser]])])}],["__scopeId","data-v-d638517a"]]),Ne={props:{fullDrawer:{default:!1}},mixins:[B.Z],components:{TopNavLinks:st,TopNavFunctions:Re},emits:["toggleDrawer"],methods:{toggleDrawer(){this.$emit("toggleDrawer")}}};o(7907);const Be=(0,Z.Z)(Ne,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("TopNavLinks"),a=(0,_.up)("TopNavFunctions");return(0,_.wg)(),(0,_.iD)("header",N,[(0,_._)("div",{class:(0,I.C_)(["nav-wrap",{full:o.fullDrawer}])},[(0,_._)("a",{class:"menu",href:"javascript:void(0);",onClick:e[0]||(e[0]=(0,D.iM)(((...t)=>n.toggleDrawer&&n.toggleDrawer(...t)),["stop"]))}),(0,_._)("a",{class:"logo",href:"/",onClick:e[1]||(e[1]=e=>t.track("NavigationBar","TapLogo"))},"9GAG"),(0,_.Wm)(r),(0,_.Wm)(a)],2)],512)}],["__scopeId","data-v-49e92e4a"]]);var He=o(2262);const Ve={name:"VueProgress",extends:o(27244).Z,computed:{progress(){return this.$Progress.$vm.RADON_LOADING_BAR}}};function Fe(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function $e(t){for(var e=1;e{this.increase(this.state.cut*Math.random()),this.$vm.RADON_LOADING_BAR.percent>95&&this.$vm.RADON_LOADING_BAR.options.autoFinish&&this.finish()}),100))},set(t){this.$vm.RADON_LOADING_BAR.options.show=!0,this.$vm.RADON_LOADING_BAR.options.canSuccess=!0,this.$vm.RADON_LOADING_BAR.percent=Math.floor(t)},get(){return Math.floor(this.$vm.RADON_LOADING_BAR.percent)},increase(t){this.$vm.RADON_LOADING_BAR.percent=Math.min(99,this.$vm.RADON_LOADING_BAR.percent+Math.floor(t))},decrease(t){this.$vm.RADON_LOADING_BAR.percent=this.$vm.RADON_LOADING_BAR.percent-Math.floor(t)},hide(){clearInterval(this.state.timer),this.state.timer=null,setTimeout((()=>{this.$vm.RADON_LOADING_BAR.options.show=!1,(0,_.Y3)((()=>{setTimeout((()=>{this.$vm.RADON_LOADING_BAR.percent=0}),100)}))}),this.$vm.RADON_LOADING_BAR.options.transition.termination)},pause(){clearInterval(this.state.timer)},finish(){this.$vm&&(this.$vm.RADON_LOADING_BAR.percent=100,this.hide())},fail(){this.$vm.RADON_LOADING_BAR.options.canSuccess=!1,this.$vm.RADON_LOADING_BAR.percent=100,this.hide()}};const s=$e($e({},{canSuccess:!0,show:!1,color:"#73ccec",position:"fixed",failedColor:"red",thickness:"2px",transition:{speed:"0.2s",opacity:"0.6s",termination:300},autoRevert:!0,location:"top",inverse:!1,autoFinish:!0}),e),n=(0,He.qj)({RADON_LOADING_BAR:{percent:0,options:s}});o&&i.init(n),t.config.globalProperties.$Progress=i}};var ze=o(41653),We=o(63145);const Ke=mt.Z;var qe=o(74),Ye=o.n(qe),Qe=o(39914),Je=o(44356),Xe=o(90099);const to={home:"Home",trending:"Trending",fresh:"Fresh",top:"Top",forum:"Forum",hot:"Hot",posts:"Posts",comments:"Comments",likes:"Upvotes",saved:"Saved",password:"Password",account:"Account",profile:"Profile",privacy:"Privacy"},eo=t=>{var e;return""+((null===(e=(null==t?void 0:t.url)||"")||void 0===e?void 0:e.split("/").slice(-1)[0])||"")},oo=t=>{var e;return(null===(e=t||[])||void 0===e?void 0:e.map(eo).filter((t=>t)))||[]};var io=function(t,e,o,i){return new(o||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}))};const so={loadTimeout:1500,ready:!1,identified:!1},no=(0,gt.Q_)({id:"permutive",state:()=>so,getters:{permutiveConfig:()=>{var t,e;return(null===(t=Ke.state.config.config)||void 0===t?void 0:t.permutive)||(null===(e=Ke.state.config.configs)||void 0===e?void 0:e.permutive)||{}},doNotSell:()=>{var t;return null===(t=Ke.state.privacy)||void 0===t?void 0:t.doNotSell},favoritedTags:()=>(0,Je.v)().favorites,currentUser:()=>(0,v.LM)().user||{},currentPost:()=>{var t,e;return Ke.getters["post/GET_POST"](null===(e=null===(t=(0,b.k)().route)||void 0===t?void 0:t.params)||void 0===e?void 0:e.postId)}},actions:{init(){return io(this,void 0,void 0,(function*(){(0,_.YP)((()=>(0,b.k)().route),this.onRouteChange),Qe.default.log("[permutive] init",{});const t=yield r.ZP.getGdprApplies();Qe.default.log("[permutive] init after cmp",{gdpr:t,doNotSell:this.doNotSell});let e=!1;if(t)yield r.ZP.getConsentData(),e=!0,this.listenGDPR();else if(this.doNotSell)return void(this.ready=!0);const{ORGANIZATION_ID:o,WORKSPACE_ID:i,WORKSPACE_PUBLIC_API_KEY:s}=this.permutiveConfig;(t=>{const{WORKSPACE_ID:e,WORKSPACE_PUBLIC_API_KEY:o,consentRequired:i}=t;!function(t,e,o,i){if(!t){t=t||{},window.permutive=t,t.q=[],t.config=i||{},t.config.apiKey=e,t.config.workspaceId=o,t.config.environment=t.config.environment||"production",(window.crypto||window.msCrypto)&&(t.config.viewId=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})));for(var s=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],n=0;n{this.ready=!0}),"realtime",this.loadTimeout),yield a.default.loadScript(`https://${o}.edge.permutive.app/${i}-web.js`)}))},onReady(){return new Promise(((t,e)=>{if(this.ready)return t(!0);const o=this.$subscribe(((e,i)=>{i.ready&&(Qe.default.log("[permutive] ready",{}),t(!0),o())}))}))},listenGDPR(){r.ZP.onGDPRChange((t=>io(this,void 0,void 0,(function*(){const e=this.shouldOptOut(t);Qe.default.log("[permutive] GDPR change",{consent:t,shouldOptOut:e}),this.updateConsent(!e,null==t?void 0:t.tcString),e&&(this.ready=!0)}))))},updateConsent(t,e){window.permutive&&(Qe.default.log("[permutive] updateConsent",{opt_in:t,token:e}),window.permutive.consent({opt_in:t,token:e}))},shouldOptOut(t){var e,o,i,s,n,r,a,c,l;return!((null===(o=null===(e=null==t?void 0:t.purpose)||void 0===e?void 0:e.consents)||void 0===o?void 0:o[1])&&(null===(s=null===(i=null==t?void 0:t.purpose)||void 0===i?void 0:i.consents)||void 0===s?void 0:s[5])&&(null===(r=null===(n=null==t?void 0:t.purpose)||void 0===n?void 0:n.consents)||void 0===r?void 0:r[7])&&(null===(c=null===(a=null==t?void 0:t.purpose)||void 0===a?void 0:a.legitimateInterests)||void 0===c?void 0:c[7])&&(null===(l=null==t?void 0:t.specialFeatureOptins)||void 0===l?void 0:l[1]))},identify(){var t,e,o,i;return io(this,void 0,void 0,(function*(){if(yield(0,v.LM)().waitForUserInit(),this.identified)return;(null===(t=this.currentUser)||void 0===t?void 0:t.hashedEmail)||(yield(0,v.LM)().updateHashedEmail());const s=[];(null===(e=this.currentUser)||void 0===e?void 0:e.userId)&&s.push({id:this.currentUser.userId,tag:"user_id",priority:0}),(null===(o=this.currentUser)||void 0===o?void 0:o.hashedEmail)&&s.push({id:yield null===(i=this.currentUser)||void 0===i?void 0:i.hashedEmail,tag:"email_sha256"}),s.length&&window.permutive.identify(s),this.identified=!0}))},track(t,e={}){return io(this,void 0,void 0,(function*(){yield this.isIdentified(),yield this.routeReady(),Qe.default.log("[permutive] track",{event:t,eventProperties:e}),window.permutive.track(t,e,{success:function(t){var e,o;Qe.default.log(`[permutive] tracked "${t.name}" @ ${null===(o=null===(e=t.properties)||void 0===e?void 0:e.client)||void 0===o?void 0:o.url}`,t)},error:function(t){console.error("[permutive] permutive",t)}})}))},trackPageView(){var t,e,o,i;null===(i=null===(o=null===(e=null===(t=window.permutive)||void 0===t?void 0:t.addons)||void 0===e?void 0:e.web)||void 0===o?void 0:o.reset)||void 0===i||i.call(o,{page:this.getPageProps()})},trackPostEngagement(t){const e=this.getClientProps();return this.track("PostEngagement",{post:t,client:e})},getPostProps(){const t=this.currentPost;if(t.id)return{id:t.id||null,title:t.title||null,tags:oo(t.tags),sensitive:!!t.nsfw,annotation_tags:Array.from(t.annotationTags||[]),interests:t.interests||[]}},getUserProps(){var t;const e=this.currentUser,o=[];return e.fbConnected&&o.push("fb"),e.googleConnected&&o.push("google"),e.appleConnected&&o.push("apple"),{id:e.hashedEmail||null,gender:e.gender||null,age:Ye()((null===(t=e.birthday)||void 0===t?void 0:t.split(" ")[0])||"")||-1,social_connect:o,sensitive_content_on:!(!e.nsfwMode||e.safeMode),member_type:e.isActiveProPlus?"Pro+":e.isActivePro?"Pro":e.userId?"Free":"Guest",tags_favorited:oo(this.favoritedTags)}},getClientProps:()=>({title:(()=>{var t;const e=(0,b.k)();if(!e.route)return document.title;const o=e.route.params.type;if(e.isRoute(...T.Z.POST_VIEWS))return"Post: "+Ke.getters["post/GET_POST"](e.route.params.postId).title||0;if(e.isRoute(T.Z.HOME_POST_LIST))return`Home: ${to[o||"home"]}`;if(e.isRoute(T.Z.INTEREST_POST_LIST)){const t=(0,Je.v)().getInterest(e.route.params.interest);return"Interests: "+((null==t?void 0:t.name)||"")}return e.isRoute(T.Z.TAG_POST_LIST)?`Tag ${to[o||"hot"]}: `+eo((0,Je.v)().getTagNavByRoute(e.route)):e.isRoute(T.Z.USER_LIST)?`Profile: ${to[o||"posts"]}`:e.isRoute(T.Z.SEARCH_POST_LIST)?`Search: ${(null===(t=e.route.query)||void 0===t?void 0:t.query)||""}`:e.isRoute(T.Z.SETTINGS)?`Settings: ${to[o||"account"]}`:document.title})()}),getPageProps(){const t=this.getPostProps(),e=this.getUserProps(),o=this.getClientProps(),i={};return t&&(i.post=t),i.user=e,i.client=o,i},isIdentified(){return io(this,void 0,void 0,(function*(){yield(0,Xe.L)(this,(t=>!!t.identified))}))},routeReady(){return io(this,void 0,void 0,(function*(){yield(0,Xe.L)((0,b.k)(),(t=>!!t.route))}))},onRouteChange(t,e){var o,i;return io(this,void 0,void 0,(function*(){e&&(e.path===t.path&&(null===(o=e.query)||void 0===o?void 0:o.query)===(null===(i=t.query)||void 0===i?void 0:i.query)||window.permutive&&e.name&&this.trackPageView())}))}}});Ke.watch((t=>{var e;return null===(e=t.privacy)||void 0===e?void 0:e.doNotSell}),((t,e)=>{e!==t&&no().updateConsent(!t)})),d.default.onTrack(((t,e)=>{let o;if(window.permutive&&("Post Saved"===t&&"Save"===e["Save Type"]?o="Saved":"Post Shared"===t?o="Shared":"Post Downloaded"===t?o="Downloaded":"Comment Published"===t?o="Commented":"Post Voted"===t&&(o="Voted"),o)){const t=e["Post ID"],i=Ke.getters["post/GET_POST"](t);if(!i.id)return void console.error("[permutive] cannot find post");no().trackPostEngagement({engagement_type:o,id:t,title:i.title,tags:oo(i.tags),sensitive:!!i.nsfw,annotation_tags:Array.from(i.annotationTags||[]),interests:i.interests||[]})}}));var ro=o(39914).default;const ao=(0,gt.Q_)("push",{state:()=>({initDelay:2e3,lastPushTs:!1,minPushInterval:5e3,updateQueueInterval:1e3,requestInterval:18e4,isLoading:!1,queue:[]}),actions:{async initPush(){this.fetchNotifications(),await o.e(302).then(o.t.bind(o,77586,23)),setTimeout((()=>{this.createPushStream(),this.initPushChecker()}),this.initDelay)},createPushStream(){const t=new PushStream({host:mt.Z.getters["config/GET_CONFIG"]("notiOptions.pushHost"),modes:"websocket",useSSL:!0}),{pushChannels:e}=xt().notiOptions;if(t.onmessage=this.onMessageRecieved,e instanceof Array)for(let o=0;othis.updateNotifications(t))).catch((t=>console.log(`Noti error: ${t}`))).finally((()=>this.isLoading=!1)))},updateNotifications(t){this.lastPushTs=(new Date).getTime(),t&&xt().notiUnreadCount!==t.unreadCount&&(xt().setReadState(t),xt().refreshNoti(),Et.refreshPageTitle())},onMessageRecieved(t,e,o){const i={type:"noti",message:t,id:e,channel:o};ro.log(i),this.queue.push(i)},checkQueue(){this.queue.length>0&&(this.queue=[],this.fetchNotifications())},processUpdateQueue(){const t=(new Date).getTime();(!this.lastPushTs||t-this.lastPushTs>=this.minPushInterval)&&this.checkQueue()},scheduleRequest(){this.queue.push({}),this.requestInterval=1.5*this.requestInterval,setTimeout(this.scheduleRequest.bind(this),this.requestInterval)},initPushChecker(){setInterval(this.processUpdateQueue.bind(this),this.updateQueueInterval),setTimeout(this.scheduleRequest.bind(this),this.requestInterval)}}});var co=o(98879),lo=o(86655).default;function po(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function uo(t){for(var e=1;e{this.$Progress.set(80)})),x.Z.$on("progress::finish",(()=>{this.$Progress.finish()}))},initDarkMode(){this.refreshDarkMode(),u.Z.onDarkModeChange((t=>this.setDarkMode(t.matches)))},toggleFollowPageModal(){const t=this.user.creationTs>=Date.now()/1e3-3600;!this.user.initialFollowFinished&&t&&x.Z.$emit("Overlay::showFollowPageModal",!0)}}),created(){no().init(),this.initDarkMode(),this.initProgressbar(),this.initUser(),this.initPrivacyCheck()},mounted(){this.$nextTick((()=>{this.isLoggedIn||this.updateSignupReferrer()}))}},bo=(0,Z.Z)(vo,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("VueProgress");return(0,_.wg)(),(0,_.j4)(r)}]]),wo={key:0,class:"drawer-header"},yo={class:"nav-wrap"},ko={class:"h3"},Po={class:"h3"},Oo=["href"],_o={key:0,class:"drawer-menu-item__icon"},Io={class:"drawer-menu-item__title"},Co={key:1,class:"drawer-menu-item__actions"},So={props:["title","url","bold"]};o(25240);const xo=(0,Z.Z)(So,[["render",function(t,e,o,i,s,n){return(0,_.wg)(),(0,_.iD)("a",{href:`${o.url}`,class:(0,I.C_)(["drawer-menu-item",[o.bold&&"bold"]])},[t.$slots.icon?((0,_.wg)(),(0,_.iD)("div",_o,[(0,_.WI)(t.$slots,"icon",{},void 0,!0)])):(0,_.kq)("",!0),(0,_._)("div",Io,(0,I.zw)(o.title),1),t.$slots.actions?((0,_.wg)(),(0,_.iD)("div",Co,[(0,_.WI)(t.$slots,"actions",{},void 0,!0)])):(0,_.kq)("",!0)],10,Oo)}],["__scopeId","data-v-6dbed18f"]]),To=(t=>((0,_.dD)("data-v-9ea500d2"),t=t(),(0,_.Cn)(),t))((()=>(0,_._)("path",{d:"M8 17V11H12V17H17V9H20L10 0L0 9H3V17H8Z"},null,-1))),Eo={components:{BaseIcon:we.su}};o(46315);const Ao=(0,Z.Z)(Eo,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{class:"ui-base-icon",viewBox:"0 0 20 17",color:"black"},{default:(0,_.w5)((()=>[To])),_:1})}],["__scopeId","data-v-9ea500d2"]]),Do=(t=>((0,_.dD)("data-v-73b709d4"),t=t(),(0,_.Cn)(),t))((()=>(0,_._)("path",{d:"M14 0L16.29 2.29L11.41 7.17L7.41 3.17L0 10.59L1.41 12L7.41 6L11.41 10L17.71 3.71L20 6V0H14Z"},null,-1))),jo={components:{BaseIcon:we.su}};o(70413);const Mo=(0,Z.Z)(jo,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{class:"ui-base-icon",viewBox:"0 0 20 12",color:"black"},{default:(0,_.w5)((()=>[Do])),_:1})}],["__scopeId","data-v-73b709d4"]]),Lo=(t=>((0,_.dD)("data-v-2a14d6e3"),t=t(),(0,_.Cn)(),t))((()=>(0,_._)("path",{d:"M10 0C4.5 0 0 4.5 0 10C0 15.5 4.5 20 10 20C15.5 20 20 15.5 20 10C20 4.5 15.5 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10.5 5H9V11L14.2 14.2L15 12.9L10.5 10.2V5Z"},null,-1))),Uo={components:{BaseIcon:we.su}};o(59737);const Zo=(0,Z.Z)(Uo,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{class:"ui-base-icon",viewBox:"0 0 20 20",color:"black"},{default:(0,_.w5)((()=>[Lo])),_:1})}],["__scopeId","data-v-2a14d6e3"]]),Ro=(t=>((0,_.dD)("data-v-a1172736"),t=t(),(0,_.Cn)(),t))((()=>(0,_._)("path",{d:"M5.5 18H0V6H5.5V18ZM12.75 0H7.25V18H12.75V0ZM20 8H14.5V18H20V8Z"},null,-1))),No={components:{BaseIcon:we.su}};o(97463);const Bo=(0,Z.Z)(No,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{class:"ui-base-icon",viewBox:"0 0 20 18",color:"black"},{default:(0,_.w5)((()=>[Ro])),_:1})}],["__scopeId","data-v-a1172736"]]),Ho=(0,_._)("path",{d:"M6.3 18C6.06131 18 5.83239 17.9052 5.6636 17.7364C5.49482 17.5676 5.4 17.3387 5.4 17.1V14.4H1.8C1.32261 14.4 0.864773 14.2104 0.527208 13.8728C0.189642 13.5352 0 13.0774 0 12.6V1.8C0 0.801 0.81 0 1.8 0H16.2C16.6774 0 17.1352 0.189642 17.4728 0.527208C17.8104 0.864773 18 1.32261 18 1.8V12.6C18 13.0774 17.8104 13.5352 17.4728 13.8728C17.1352 14.2104 16.6774 14.4 16.2 14.4H10.71L7.38 17.739C7.2 17.91 6.975 18 6.75 18H6.3ZM7.2 12.6V15.372L9.972 12.6H16.2V1.8H1.8V12.6H7.2Z"},null,-1),Vo={components:{BaseIcon:we.su}},Fo=[{key:"Home",title:"Home",url:"/home",action:"Home",icon:"IconHome"},{key:"Top",title:"Top",url:"/top",action:"Top",icon:"IconStats"},{key:"Trending",title:"Trending",url:"/trending",action:"Trending",icon:"IconTrend"},{key:"Fresh",title:"Fresh",url:"/fresh",action:"Fresh",icon:"IconTime"},{key:"Forum",title:"Ask 9GAG",url:"/forum",action:"Forum",icon:"IconCommentDark"}],$o={data:()=>({sectionList:Fo}),components:{DrawerMenuItem:xo,IconHome:Ao,IconTrend:Mo,IconStats:Bo,IconTime:Zo,IconCommentDark:(0,Z.Z)(Vo,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{viewBox:"0 0 18 18"},{default:(0,_.w5)((()=>[Ho])),_:1})}]])},methods:{clickNav(t){d.default.trackHomeSorting(t.key)},isActive(t){return"/"===this.$route.path&&"/home"===t.url||this.$route.path===t.url}}},Go=(0,Z.Z)($o,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("DrawerMenuItem");return(0,_.wg)(),(0,_.iD)("section",null,[(0,_._)("ul",null,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(s.sectionList,(t=>((0,_.wg)(),(0,_.iD)("li",{class:(0,I.C_)({selected:n.isActive(t)})},[((0,_.wg)(),(0,_.j4)(r,{bold:!0,title:t.title,url:t.url,onClick:e=>n.clickNav(t),key:t.key},{icon:(0,_.w5)((()=>[((0,_.wg)(),(0,_.j4)((0,_.LL)(t.icon),{size:"20"}))])),_:2},1032,["title","url","onClick"]))],2)))),256))])])}]]),zo={class:"h3"},Wo={key:0,class:"emoji-icon"},Ko=["src"],qo=["onClick"],Yo=(0,_._)("path",{d:"M10 15.27L16.18 19L14.54 11.97L20 7.24L12.81 6.63L10 0L7.19 6.63L0 7.24L5.46 11.97L3.82 19L10 15.27Z"},null,-1),Qo={components:{BaseIcon:we.su}},Jo=(0,Z.Z)(Qo,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{viewBox:"0 0 20 19"},{default:(0,_.w5)((()=>[Yo])),_:1})}]]);var Xo=o(53310);const ti=(0,_._)("path",{d:"M9 2V7C9 8.12 9.37 9.16 10 10H4C4.65 9.14 5 8.1 5 7V2H9ZM12 0H2C1.45 0 1 0.45 1 1C1 1.55 1.45 2 2 2H3V7C3 8.66 1.66 10 0 10V12H5.97V19L6.97 20L7.97 19V12H14V10C12.34 10 11 8.66 11 7V2H12C12.55 2 13 1.55 13 1C13 0.45 12.55 0 12 0Z"},null,-1),ei={components:{BaseIcon:we.su}},oi=(0,Z.Z)(ei,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{viewBox:"0 0 14 20"},{default:(0,_.w5)((()=>[ti])),_:1})}]]),ii=(0,_._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 7V2H12C12.55 2 13 1.55 13 1C13 0.45 12.55 0 12 0H2C1.45 0 1 0.45 1 1C1 1.55 1.45 2 2 2H3V7C3 8.66 1.66 10 0 10V12H5.97V19L6.97 20L7.97 19V12H14V10C12.34 10 11 8.66 11 7Z"},null,-1),si={components:{BaseIcon:we.su}},ni=(0,Z.Z)(si,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{viewBox:"0 0 14 20"},{default:(0,_.w5)((()=>[ii])),_:1})}]]),ri=(0,_._)("path",{d:"M10.41 0.58L19.41 9.58C19.77 9.94 20 10.45 20 11C20 11.55 19.78 12.05 19.41 12.41L12.41 19.41C12.05 19.78 11.55 20 11 20C10.45 20 9.95 19.78 9.59 19.42L0.59 10.42C0.22 10.05 0 9.55 0 9V2C0 0.9 0.9 0 2 0H9C9.55 0 10.05 0.22 10.41 0.58ZM2 9L11 18.01L18 10.99L9 1.99V2H2V9ZM6 4.5C6 5.32843 5.32843 6 4.5 6C3.67157 6 3 5.32843 3 4.5C3 3.67157 3.67157 3 4.5 3C5.32843 3 6 3.67157 6 4.5Z"},null,-1),ai={components:{BaseIcon:we.su}},ci=(0,Z.Z)(ai,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BaseIcon");return(0,_.wg)(),(0,_.j4)(r,{viewBox:"0 0 20 20"},{default:(0,_.w5)((()=>[ri])),_:1})}]]);var li=o(48254).default;const di="Side Menu",pi={mixins:[B.Z],props:["header","trackingName","isRecent","items"],components:{IconNavDrawerTag:ci,IconPinActive:ni,IconPin:oi,DrawerMenuItem:xo,IconStar:Jo,IconClose:Xo.Z},setup:()=>({tagStore:(0,Je.v)()}),methods:{clickItem(t){this.isTagItem(t)?li.trackClickTag(t.key,`Drawer-${this.trackingName||this.header}`,!1):li.trackClickInterest(t.name,`Drawer-${this.trackingName||this.header}`),this.tagStore.addRecent(t)},clickFavorite(t){this.tagStore.isFavoritedTag(t)?(this.tagStore.removeFavorite(t),this.isTagItem(t)?li.trackFavoriteTag(t.key,!1,di):li.trackFavoriteInterest(t.name,!1,di)):(this.tagStore.addFavorite(t),this.isTagItem(t)?li.trackFavoriteTag(t.key,!0,di):li.trackFavoriteInterest(t.name,!0,di))},isActive(t){return this.isTagItem(t)?this.$route.name===T.Z.TAG_POST_LIST&&t.url.endsWith(this.$route.params.tag):this.$route.name===T.Z.INTEREST_POST_LIST&&this.$route.params.interest===t.listType},isTagItem:t=>t.url.startsWith("/tag")}};o(46608);const ui=(0,Z.Z)(pi,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("IconNavDrawerTag"),a=(0,_.up)("IconPinActive"),c=(0,_.up)("IconPin"),l=(0,_.up)("DrawerMenuItem");return(0,_.wg)(),(0,_.iD)("section",null,[(0,_.WI)(t.$slots,"customHeader",{header:o.header},(()=>[(0,_._)("header",null,[(0,_._)("div",zo,(0,I.zw)(o.header),1)])]),!0),(0,_._)("ul",null,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.items,(t=>((0,_.wg)(),(0,_.iD)("li",{class:(0,I.C_)({selected:n.isActive(t)})},[((0,_.wg)(),(0,_.j4)(l,{title:n.isTagItem(t)?t.key:t.name,url:t.url,onClick:e=>n.clickItem(t),key:n.isTagItem(t)?t.key:t.name},{icon:(0,_.w5)((()=>[t.emoji?((0,_.wg)(),(0,_.iD)("span",Wo,(0,I.zw)(t.emoji),1)):n.isTagItem(t)?((0,_.wg)(),(0,_.j4)(r,{key:2,size:"20"})):((0,_.wg)(),(0,_.iD)("img",{key:1,width:"24",height:"24",src:t.imageUrl},null,8,Ko))])),actions:(0,_.w5)((()=>[(0,_._)("div",{onClick:(0,D.iM)((e=>n.clickFavorite(t)),["prevent","stop"]),class:(0,I.C_)(["button",{favorite:i.tagStore.isFavoritedTag(t)}])},[i.tagStore.isFavoritedTag(t)?((0,_.wg)(),(0,_.j4)(a,{key:0,size:"20"})):((0,_.wg)(),(0,_.j4)(c,{key:1,size:"20"}))],10,qo)])),_:2},1032,["title","url","onClick"]))],2)))),256)),(0,_.WI)(t.$slots,"customFooter",{},void 0,!0)])])}],["__scopeId","data-v-9e307a68"]]),hi=t=>((0,_.dD)("data-v-636d5ce7"),t=t(),(0,_.Cn)(),t),mi={class:"signup-side-banner"},gi={class:"signup-side-banner__content"},fi=hi((()=>(0,_._)("h2",null,"New to 9GAG?",-1))),vi=hi((()=>(0,_._)("p",null," Sign up now to see more content! ",-1)));o(7478);const bi={},wi=(0,Z.Z)(bi,[["render",function(t,e){return(0,_.wg)(),(0,_.iD)("div",mi,[(0,_._)("div",gi,[fi,vi,(0,_._)("a",{class:"signup-side-banner__content__link",href:"/signup",onClick:e[0]||(e[0]=e=>t.$emit("signup",e))}," Sign up ")])])}],["__scopeId","data-v-636d5ce7"]]),yi=["href"],ki=["src"];var Pi=o(46296).default;function Oi(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function _i(t){for(var e=1;e[Ci.CARD,Ci.BANNER].includes(t),default:Ci.BANNER},config:{type:String,default:null}},computed:_i(_i({},Ii({getConfig:"GET_CONFIG"})),{},{campaign(){return this.config&&this.getConfig(this.config)[0]||null},campaignImage(){return this.type===Ci.CARD?this.campaign.images.card:this.campaign.images.banner}}),methods:{onCampaignClick(){d.default.trackClickCampaign(Pi.capitalize(this.type),this.campaign.link)}}};o(14171);const xi=(0,Z.Z)(Si,[["render",function(t,e,o,i,s,n){return n.campaign?((0,_.wg)(),(0,_.iD)("a",{key:0,href:n.campaign.link,target:"_blank",onClick:e[0]||(e[0]=(...t)=>n.onCampaignClick&&n.onCampaignClick(...t)),class:"campaign-banner"},[(0,_._)("img",{src:n.campaignImage.url},null,8,ki)],8,yi)):(0,_.kq)("",!0)}],["__scopeId","data-v-9768a6b4"]]);var Ti=o(70876),Ei=o(48254).default;function Ai(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Di(t){for(var e=1;e({showClearRecentsModal:!1,expandFollowingSection:!1}),watch:{$route(){this.hideDrawer()}},computed:Di(Di({},ji({getConfig:"GET_CONFIG"})),{},{campaign(){return this.getConfig("campaigns")[0]||null},userFollowedPages(){const{tags:t,interests:e}=this.userStore.userFollowedPages;return[...t,...e].sort(((t,e)=>e.lastUpdatedTs-t.lastUpdatedTs)).map((t=>{var e;return null!==(e=t.tag)&&void 0!==e?e:t.interest}))},interests(){return Object.values(this.getInterests)}}),methods:{clickSignup(t){t.preventDefault(),t.stopPropagation(),x.Z.$emit("Overlay::showSignup"),this.trackLabel("SignUp","TapSignup","Drawer"),Ei.trackClickSignup("Side Menu"),this.hideDrawer()},hideDrawer(){this.$emit("hideDrawer")},clearRecents(){this.showClearRecentsModal=!1,this.tagStore.recents=[]},onExpandBtnClick(){this.expandFollowingSection=!this.expandFollowingSection},showFollowModal(){x.Z.$emit("Overlay::showFollowPageModal",!1)}}};o(74693);const Li=(0,Z.Z)(Mi,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("CampaignBanner"),a=(0,_.up)("SignupSideBanner"),c=(0,_.up)("DrawerHeader"),l=(0,_.up)("DrawerItemsGroup"),d=(0,_.up)("IconChevronDownSimple"),p=(0,_.up)("DrawerMenuItem"),u=(0,_.up)("ClearRecentsModal");return(0,_.wg)(),(0,_.iD)(_.HY,null,[(0,_.wy)((0,_._)("div",{class:(0,I.C_)(["drawer",{overlay:o.overlayDrawer,full:o.fullDrawer&&!o.overlayDrawer}])},[o.overlayDrawer?((0,_.wg)(),(0,_.iD)("header",wo,[(0,_._)("div",yo,[(0,_._)("a",{class:"menu",href:"javascript:void(0);",onClick:e[0]||(e[0]=(0,D.iM)(((...t)=>n.hideDrawer&&n.hideDrawer(...t)),["stop"]))}),(0,_._)("a",{class:"logo",href:"/",onClick:e[1]||(e[1]=e=>t.track("NavigationBar","TapLogo"))},"9GAG")])])):(0,_.kq)("",!0),(0,_._)("div",{class:(0,I.C_)(["drawer-container",{overlay:o.overlayDrawer}])},[n.campaign?((0,_.wg)(),(0,_.j4)(r,{key:0,config:"app.campaigns",type:"card"})):t.showSignupBanner?((0,_.wg)(),(0,_.j4)(a,{key:1,class:"signup-side-banner",onSignup:n.clickSignup},null,8,["onSignup"])):(0,_.kq)("",!0),(0,_.Wm)(c),i.tagStore.sortedRecents.length>0?((0,_.wg)(),(0,_.j4)(l,{key:2,header:"Recents",isRecent:!0,items:i.tagStore.sortedRecents},{customHeader:(0,_.w5)((({header:t})=>[(0,_._)("header",null,[(0,_._)("div",ko,(0,I.zw)(t),1),(0,_._)("a",{href:"javascript:void(0);",class:"button-clear",onClick:e[2]||(e[2]=(0,D.iM)((t=>s.showClearRecentsModal=!0),["prevent"]))}," Clear ")])])),_:1},8,["items"])):(0,_.kq)("",!0),i.tagStore.sortedFavorites.length>0?((0,_.wg)(),(0,_.j4)(l,{key:3,header:"Pinned",items:i.tagStore.sortedFavorites,trackingName:"Favorites"},null,8,["items"])):(0,_.kq)("",!0),i.userStore.isLoggedIn?((0,_.wg)(),(0,_.j4)(l,{key:4,header:"Following",items:s.expandFollowingSection?n.userFollowedPages:n.userFollowedPages.slice(0,10)},(0,_.Nv)({customHeader:(0,_.w5)((({header:t})=>[(0,_._)("header",null,[(0,_._)("div",Po,(0,I.zw)(t),1),(0,_._)("a",{href:"javascript:void(0);",class:"button-edit",onClick:e[3]||(e[3]=(0,D.iM)(((...t)=>n.showFollowModal&&n.showFollowModal(...t)),["prevent"]))}," Edit ")])])),_:2},[!s.expandFollowingSection&&n.userFollowedPages.length>10?{name:"customFooter",fn:(0,_.w5)((()=>[(0,_._)("li",null,[(0,_.Wm)(p,{bold:!0,title:"More",url:"javascript:void(0);",onClick:n.onExpandBtnClick},{icon:(0,_.w5)((()=>[(0,_.Wm)(d,{size:"12"})])),_:1},8,["onClick"])])]))}:void 0]),1032,["items"])):(0,_.kq)("",!0),(0,_.Wm)(l,{header:"Interests",items:n.interests,trackingName:"Interest"},null,8,["items"])],2)],2),[[D.F8,o.showDrawer]]),s.showClearRecentsModal?((0,_.wg)(),(0,_.j4)(u,{key:0,onOnCancel:e[4]||(e[4]=t=>s.showClearRecentsModal=!1),onOnClear:n.clearRecents},null,8,["onOnClear"])):(0,_.kq)("",!0),o.overlayDrawer?((0,_.wg)(),(0,_.iD)("div",{key:1,class:"drawer-overlay",onClick:e[5]||(e[5]=(0,D.iM)(((...t)=>n.hideDrawer&&n.hideDrawer(...t)),["stop"]))})):(0,_.kq)("",!0)],64)}],["__scopeId","data-v-29156987"]]);var Ui=o(7517),Zi=o(17375);const Ri=(0,_.Uk)(" Log in "),Ni={ref:"loginForm",action:"/login",method:"POST"},Bi=["value"];var Hi=o(48254).default;function Vi(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Fi(t){for(var e=1;e({form:{username:"",password:""}}),computed:Fi(Fi({},$i({getData:"GET_DATA"})),{},{facebookUrl(){return`/connect/facebook?next=${encodeURIComponent(this.loginNextUrl)}`},googleUrl(){return`/connect/google?next=${encodeURIComponent(this.loginNextUrl)}`},appleUrl(){return`/connect/apple?next=${encodeURIComponent(this.loginNextUrl)}`},loginConfig(){return this.getData("login")||{}},loginNextUrl(){if(this.nextUrl)return this.nextUrl;const{next:t=null,ref:e=null}=this.$route&&this.$route.query||{};return t||(e&&0===e.indexOf("/")?e:this.$route?this.$route.fullPath:"/")},errorMsg(){switch(this.loginConfig.errorCode){case"LOGIN_FAILED":return"Your email or password were incorrect.";case"LOGIN_ERROR":return"An error occurred. Please try again later."}return null},isValid(){for(const[t,e]of Object.entries(this.form))if(!e.length)return!1;return!0}}),methods:{onForgotPassword(){this.track("Login","TapForgotPassword"),x.Z.$emit("Overlay::showForgotPassword",this.nextUrl)},onSignupClick(){this.track("Login","TapSignUp"),Hi.trackClickSignup("Login"),x.Z.$emit("Overlay::showSignup",this.nextUrl)},onFacebookClick(){this.track("Login","ConnectFacebook"),O.updateAutoLoginCookie(),Hi.trackConnectFacebook(!0)},onAppleClick(){this.track("Login","ConnectApple"),Hi.trackConnectApple(!0)},onGoogleClick(){this.track("Login","ConnectGoogle"),Hi.trackConnectGoogle(!0)},onSubmitClick(){this.track("Login","LoginEmail"),Hi.trackSubmitLogin(),this.$refs.loginForm.submit()}}},zi=(0,Z.Z)(Gi,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("LoginView");return(0,_.wg)(),(0,_.iD)("form",Ni,[(0,_._)("input",{type:"hidden",name:"next",value:n.loginNextUrl},null,8,Bi),(0,_.Wm)(r,{errorMessage:n.errorMsg,hrefFacebook:n.facebookUrl,hrefGoogle:n.googleUrl,hrefApple:n.appleUrl,onOnFacebookClick:n.onFacebookClick,onOnAppleClick:n.onAppleClick,onOnGoogleClick:n.onGoogleClick,onOnSubmitClick:n.onSubmitClick,onOnSignupClick:n.onSignupClick,onOnForgotPassword:n.onForgotPassword},null,8,["errorMessage","hrefFacebook","hrefGoogle","hrefApple","onOnFacebookClick","onOnAppleClick","onOnGoogleClick","onOnSubmitClick","onOnSignupClick","onOnForgotPassword"])],512)}]]),Wi={emits:["close"],props:["nextUrl"],components:{Login:zi,ModalView:we.Rj,ModalHeader:we.xB}},Ki=(0,Z.Z)(Wi,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("Login"),c=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(c,{onOnOverlayClick:e[1]||(e[1]=e=>t.$emit("close"))},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{onClose:e[0]||(e[0]=e=>t.$emit("close"))},{default:(0,_.w5)((()=>[Ri])),_:1})])),default:(0,_.w5)((()=>[(0,_.Wm)(a,{nextUrl:o.nextUrl},null,8,["nextUrl"])])),_:1})}]]);var qi=o(48254).default;const{mapGetters:Yi}=(0,E._p)("config"),Qi={props:["nextUrl","action"],mixins:[B.Z],components:{SignupView:we.Hp,ModalView:we.Rj,ModalHeader:we.xB},data:()=>({ROUTE_LOGIN:T.Z.LOGIN}),computed:{next(){return this.nextUrl?this.nextUrl:this.$route?this.$route.fullPath:"/"},facebookUrl(){return`/connect/facebook?next=${encodeURIComponent(this.next)}`},googleUrl(){return`/connect/google?next=${encodeURIComponent(this.next)}`},appleUrl(){return`/connect/apple?next=${encodeURIComponent(this.next)}`}},methods:{onEmailClick(){this.track("SignUp","TapSignupEmail"),qi.trackClickEmailSignup(),x.Z.$emit("Overlay::showSignupEmail",this.nextUrl)},onLoginClick(){this.track("SignUp","TapLogin"),x.Z.$emit("Overlay::showLogin",this.nextUrl),qi.trackClickLogin("Signup")},onFacebookClick(){this.track("SignUp","ConnectFacebook"),O.updateAutoLoginCookie(),qi.trackConnectFacebook()},onAppleClick(){this.track("SignUp","ConnectApple"),qi.trackConnectApple()},onGoogleClick(){this.track("SignUp","ConnectGoogle"),qi.trackConnectGoogle()}}},Ji=(0,Z.Z)(Qi,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("SignupView");return(0,_.wg)(),(0,_.j4)(r,{action:o.action,nextUrl:o.nextUrl,hrefApple:n.appleUrl,hrefFacebook:n.facebookUrl,hrefGoogle:n.googleUrl,onOnFacebookClick:n.onFacebookClick,onOnGoogleClick:n.onGoogleClick,onOnAppleClick:n.onAppleClick,onOnEmailClick:n.onEmailClick,onOnLoginClick:n.onLoginClick},null,8,["action","nextUrl","hrefApple","hrefFacebook","hrefGoogle","onOnFacebookClick","onOnGoogleClick","onOnAppleClick","onOnEmailClick","onOnLoginClick"])}]]),Xi={props:["nextUrl","action"],emits:["close"],components:{Signup:Ji,ModalView:we.Rj,ModalHeader:we.xB}},ts=(0,Z.Z)(Xi,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("Signup"),c=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(c,{onOnOverlayClick:e[1]||(e[1]=e=>t.$emit("close")),showHeaderBorder:!1},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{onClose:e[0]||(e[0]=e=>t.$emit("close"))})])),default:(0,_.w5)((()=>[(0,_.Wm)(a,{nextUrl:o.nextUrl,action:o.action},null,8,["nextUrl","action"])])),_:1})}]]),es=t=>((0,_.dD)("data-v-423d4b29"),t=t(),(0,_.Cn)(),t),os={ref:"signupForm",action:"/member/email-signup",method:"POST"},is=["value"],ss=["value"],ns=["value"],rs=es((()=>(0,_._)("input",{type:"hidden",name:"ageVerified",value:1},null,-1))),as=es((()=>(0,_._)("input",{type:"hidden",name:"app",value:"web"},null,-1)));var cs=o(14742),ls=o(48254).default;function ds(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ps(t){for(var e=1;e({errorMessage:null,form:{fullname:"",email:"",password:""}}),watch:{stepAge(){this.errorMessage=null},verifyAgeStep(){this.errorMessage=null}},computed:ps(ps({},us({getData:"GET_DATA"})),{},{signupNextUrl(){if(this.nextUrl)return this.nextUrl;const{next:t=null,ref:e=null}=this.$route&&this.$route.query||{};return t||(e&&0===e.indexOf("/")?e:this.$route?this.$route.fullPath:"/")},refererSource(){return(this.$route?this.$route.query.src:null)||""},refererUrl(){return(this.$route?this.$route.query.ref:null)||""},isValid(){for(const[t,e]of Object.entries(this.form))if(!e||!e.length)return!1;return!0}}),methods:{onValid(){this.errorMessage=null},onSubmitEmailClick(t){this.$refs.recaptcha.getResponse()?(this.form=t,this.isValid&&this.$emit("update:stepAge",!0)):this.errorMessage="Wrong CAPTCHA."},submit(){this.track("SignUp","SignUpEmail"),ls.trackSubmitEmailSignup(),this.$refs.signupForm.submit()},onLoginClick(){this.track("SignUp","TapLogin"),x.Z.$emit("Overlay::showLogin",this.nextUrl),ls.trackClickLogin("Signup")}},mounted(){this.form.fullname=this.getData("signup.fullname")||null,this.form.email=this.getData("signup.email")||null,this.errorMessage=this.getData("signup.error")||null}};o(65445);const ms=(0,Z.Z)(hs,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("SignupAgeView"),a=(0,_.up)("Recaptcha"),c=(0,_.up)("SignupEmailView");return(0,_.wg)(),(0,_.iD)("form",os,[(0,_.wy)((0,_.Wm)(r,{onOnSaveClick:n.submit,onOnValid:n.onValid},null,8,["onOnSaveClick","onOnValid"]),[[D.F8,o.stepAge]]),(0,_.wy)((0,_.Wm)(c,{errorMessage:s.errorMessage,privacyLink:"/privacy",onOnSubmitClick:n.onSubmitEmailClick,onOnLoginClick:n.onLoginClick,onOnValid:n.onValid},{additionalField:(0,_.w5)((()=>[(0,_.Wm)(a,{ref:"recaptcha",class:"recaptcha"},null,512)])),_:1},8,["errorMessage","onOnSubmitClick","onOnLoginClick","onOnValid"]),[[D.F8,!o.stepAge]]),(0,_._)("input",{type:"hidden",name:"next",value:n.signupNextUrl},null,8,is),(0,_._)("input",{type:"hidden",name:"src",value:n.refererSource},null,8,ss),(0,_._)("input",{type:"hidden",name:"ref",value:n.refererUrl},null,8,ns),rs,as],512)}],["__scopeId","data-v-423d4b29"]]),gs={props:["nextUrl"],emits:["close"],components:{SignupEmail:ms,ModalView:we.Rj,ModalHeader:we.xB},computed:{title(){return this.stepAge?"Verify your age":"Sign up"}},data:()=>({stepAge:!1}),methods:{onBackClick(){this.stepAge||this.$emit("close"),this.stepAge=!1}}},fs=(0,Z.Z)(gs,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("SignupEmail"),c=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(c,{onOnOverlayClick:e[1]||(e[1]=e=>t.$emit("close"))},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{onClose:n.onBackClick,closeButton:s.stepAge?"back":"close"},{default:(0,_.w5)((()=>[(0,_.Uk)((0,I.zw)(n.title),1)])),_:1},8,["onClose","closeButton"])])),default:(0,_.w5)((()=>[(0,_.Wm)(a,{stepAge:s.stepAge,"onUpdate:stepAge":e[0]||(e[0]=t=>s.stepAge=t),nextUrl:o.nextUrl},null,8,["stepAge","nextUrl"])])),_:1})}]]),vs=(0,_.Uk)(" Forgot Password ");var bs=o(57018),ws=o(23376);function ys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ks(t){for(var e=1;e({email:"",message:null}),computed:ks(ks({},Ps({getData:"GET_DATA"})),{},{isValid(){return this.email.length>0}}),created(){const{email:t="",message:e=null}=this.getData("recover")||{};this.email=t,this.message=e},methods:{onSubmit(t){this.track("ForgotPassword","SubmitRecover"),bs.gF(t).then((t=>{"Success"===t.status?((0,ws.E)().showInfo("The instruction to reset password has been sent to your email."),this.message=null,this.$emit("close")):this.message=t.errorMessage}))}}},_s=(0,Z.Z)(Os,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ForgotPasswordView");return(0,_.wg)(),(0,_.j4)(r,{email:s.email,errorMessage:s.message,onOnSubmit:n.onSubmit},null,8,["email","errorMessage","onOnSubmit"])}]]),Is={props:["nextUrl"],components:{ForgotPassword:_s,ModalView:we.Rj,ModalHeader:we.xB},methods:{onBackClick(){x.Z.$emit("Overlay::showLogin",this.nextUrl)}}},Cs=(0,Z.Z)(Is,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("ForgotPassword"),c=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(c,{onOnOverlayClick:e[1]||(e[1]=e=>t.$emit("close"))},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{onClose:n.onBackClick,closeButton:"back"},{default:(0,_.w5)((()=>[vs])),_:1},8,["onClose"])])),default:(0,_.w5)((()=>[(0,_.Wm)(a,{onClose:e[0]||(e[0]=e=>t.$emit("close"))})])),_:1})}]]);var Ss=o(7758),xs=o(42550);const Ts={mixins:[Ss.Z],emits:["close"],props:{postId:{required:!0,type:String}},setup(){const{isMainPost:t}=(0,xs.Z)();return{isMainPost:t}},data:()=>({sharePosition:"Share Upload"}),methods:{async viewPost(){d.default.trackOpenPost(this.postId,"View Post Button"),await this.$router.replace({name:T.Z.POST,params:{postId:this.postId}}),this.$emit("close")}},components:{UploadSuccessModal:(0,_.RC)((()=>o.e(922).then(o.bind(o,65641))))}},Es=(0,Z.Z)(Ts,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("UploadSuccessModal");return(0,_.wg)(),(0,_.j4)(r,{type:"default",shareUrl:t.getShareUrl(),hrefEmail:t.getEmailShareUrl(t.postTitle,o.postId),onClose:e[0]||(e[0]=e=>t.$emit("close")),onShareEmail:e[1]||(e[1]=e=>t.shareEmail(i.isMainPost)),onSharePinterest:e[2]||(e[2]=e=>t.sharePinterest(i.isMainPost)),onShareFacebook:e[3]||(e[3]=e=>t.shareFacebook(i.isMainPost)),onShareTwitter:e[4]||(e[4]=e=>t.shareTwitter(i.isMainPost)),onShareTelegram:e[5]||(e[5]=e=>t.shareTelegram(i.isMainPost)),onShareMessenger:e[6]||(e[6]=e=>t.shareMessenger(i.isMainPost)),onShareCopy:e[7]||(e[7]=e=>t.shareCopy(i.isMainPost)),onShareWhatsapp:e[8]||(e[8]=e=>t.shareWhatsapp(i.isMainPost)),onViewPost:n.viewPost},null,8,["shareUrl","hrefEmail","onViewPost"])}]]),As=(0,_.Uk)(" Verify your age ");function Ds(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function js(t){for(var e=1;e({stepAge:!1,complete:!1}),computed:js(js({},(0,gt.rn)(v.LM,["user"])),{},{showVerifyAge(){return!(this.complete||!this.isLoggedIn||!this.user.isVerified||this.user.isVerified.age)}}),methods:js(js({},(0,gt.nv)(v.LM,["updateSettings"])),{},{onStepAge(){this.stepAge=!0},onSaveClick(){this.track("SignUp","VerifyAge"),this.updateSettings({ageVerified:1}),this.complete=!0,(0,ws.E)().showInfo("Age verified.")}})},Ls=(0,Z.Z)(Ms,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("VerifyAgeModal"),a=(0,_.up)("ModalHeader"),c=(0,_.up)("SignupAgeView"),l=(0,_.up)("ModalView");return n.showVerifyAge?((0,_.wg)(),(0,_.iD)(_.HY,{key:0},[s.stepAge?((0,_.wg)(),(0,_.j4)(l,{key:1},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(a,{showCloseButton:!1},{default:(0,_.w5)((()=>[As])),_:1})])),default:(0,_.w5)((()=>[(0,_.Wm)(c,{onOnSaveClick:n.onSaveClick},null,8,["onOnSaveClick"])])),_:1})):((0,_.wg)(),(0,_.j4)(r,{key:0,onOnStepAge:n.onStepAge},null,8,["onOnStepAge"]))],64)):(0,_.kq)("",!0)}]]);var Us=o(86415),Zs=o(6845),Rs=o(48254).default;function Ns(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Bs(t){for(var e=1;e({tooltipStore:(0,qs._)()}),computed:tn(tn(tn({},(0,gt.rn)(Ys.jd,{commentId:"showOpPinCommentId",pin:"showOpPinCommentConfirmModal"})),on({getHasPinnedComment:"HAS_PINNED_COMMENT"})),{},{hasPinnedComment(){return this.getHasPinnedComment(this.postId)},title(){return this.pin?"Pin Comment":"Unpin Comment"},message(){return this.pin?"This comment will appear at the top of this post and replace any previously pinned comment. Are you sure?":"Are you sure you want to unpin?"},postId(){return this.$route.params.postId||""},isTooltipShown(){return this.tooltipStore.isShown(Qs.R)}}),methods:tn(tn(tn({},(0,gt.nv)(Ys.jd,{_opPinComment:"opPinComment",setHighlightedCommentState:"setHighlightedCommentState"})),en({updatePinnedCommentCount:"OP_PIN_COMMENT"})),{},{onConfirm(){const t=!!this.hasPinnedComment;this._opPinComment({commentId:this.commentId,pin:this.pin}).then((e=>{const{pinnedCommentIds:o}=e;this.updatePinnedCommentCount({postId:this.postId,commentIds:o}),this.pin&&this.setHighlightedCommentState({commentId:this.commentId}),Js.trackPinCommentCompleted({postId:this.postId,commentId:this.commentId,pinType:this.pin,announcementShown:this.isTooltipShown,hasPinnedComment:t})})).catch((()=>{Js.trackPinCommentFailed({postId:this.postId,commentId:this.commentId,pinType:this.pin,announcementShown:this.isTooltipShown})})).finally((()=>{this.$emit("onClose")}))}})};o(22530);const nn=(0,Z.Z)(sn,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("GeneralButton"),c=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(c,{class:"pin-comment-modal",onOnOverlayClick:e[2]||(e[2]=e=>t.$emit("onClose")),showFooter:"",showFooterBorder:""},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{closeButton:t.headerButton,onClose:e[0]||(e[0]=e=>t.$emit("onClose"))},{default:(0,_.w5)((()=>[(0,_.Uk)((0,I.zw)(n.title),1)])),_:1},8,["closeButton"])])),modalFooter:(0,_.w5)((()=>[(0,_._)("div",Ws,[(0,_.Wm)(a,{round:"light",color:"secondary",onClick:e[1]||(e[1]=e=>t.$emit("onCancel"))},{default:(0,_.w5)((()=>[Ks])),_:1}),(0,_.Wm)(a,{round:"light",color:t.pin?"primary":"danger",onClick:n.onConfirm},{default:(0,_.w5)((()=>[(0,_.Uk)((0,I.zw)(t.pin?"Pin":"Unpin"),1)])),_:1},8,["color","onClick"])])])),default:(0,_.w5)((()=>[(0,_._)("div",zs,(0,I.zw)(n.message),1)])),_:1})}],["__scopeId","data-v-ad46864a"]]),rn=(0,_.Uk)("Customize with Tags"),an={class:"ui-customize-tags"},cn={class:"ui-customize-tags-section"},ln={class:"ui-customize-tags-section__title"},dn={class:"ui-customize-tags-section__list"},pn={key:0,class:"ui-customize-tags-section__description"},un={props:{title:{type:String,required:!0},isHidden:{type:Boolean,default:!1}}};o(14164);const hn=(0,Z.Z)(un,[["render",function(t,e,o,i,s,n){return(0,_.wg)(),(0,_.iD)("div",cn,[(0,_._)("span",ln,(0,I.zw)(o.title),1),(0,_._)("ul",dn,[(0,_.WI)(t.$slots,"default",{},void 0,!0)]),o.isHidden?((0,_.wg)(),(0,_.iD)("div",pn," Posts from these tags will be filtered from Home page. ")):(0,_.kq)("",!0)])}],["__scopeId","data-v-02baa67c"]]),mn={class:"ui-customize-tags-item"},gn={class:"ui-customize-tags-item__actions"};var fn=o(66463);const vn={props:{tag:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1},isHidden:{type:Boolean,default:!1}},emits:["onFavorite","onUnfavorite","onHide","onUnhide"],computed:{hiddenColor(){return this.isHidden?"#FF3B30":"#999999"}},methods:{onClickFavorite(){this.isFavorite?this.$emit("onUnfavorite",this.tag):this.$emit("onFavorite",this.tag)},onClickHide(){this.isHidden?this.$emit("onUnhide",this.tag):this.$emit("onHide",this.tag)},onClickTag(){this.isHidden?this.onClickHide():this.onClickFavorite()}},components:{IconBlock:fn.Z,IconPin:oi,IconPinActive:ni}};o(53677);const bn={props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]},other:{type:Array,default:()=>[]},hidden:{type:Array,default:()=>[]},type:{type:String,validator:t=>["default","bottomSheet","fullscreen"].includes(t),default:"default"}},emits:["onFavorite","onUnfavorite","onHide","onUnhide","onClose"],methods:{onFavorite(t){this.$emit("onFavorite",t)},onUnfavorite(t){this.$emit("onUnfavorite",t)},onHide(t){this.$emit("onHide",t)},onUnhide(t){this.$emit("onUnhide",t)},onClose(){this.$emit("onClose")}},computed:{headerButton(){if("fullscreen"===this.type)return"back"}},components:{CustomizeTagList:hn,CustomizeTagItem:(0,Z.Z)(vn,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("IconBlock"),a=(0,_.up)("IconPinActive"),c=(0,_.up)("IconPin");return(0,_.wg)(),(0,_.iD)("div",mn,[(0,_._)("span",{onClick:e[0]||(e[0]=(0,D.iM)(((...t)=>n.onClickTag&&n.onClickTag(...t)),["prevent"])),class:"ui-customize-tags-item__title"},(0,I.zw)(o.tag.key),1),(0,_._)("div",gn,[o.isFavorite?(0,_.kq)("",!0):((0,_.wg)(),(0,_.iD)("div",{key:0,onClick:e[1]||(e[1]=(0,D.iM)(((...t)=>n.onClickHide&&n.onClickHide(...t)),["prevent"])),class:"ui-customize-tags-item__action"},[(0,_.Wm)(r,{size:"20",class:(0,I.C_)(o.isHidden?"hidden":"")},null,8,["class"])])),o.isHidden?(0,_.kq)("",!0):((0,_.wg)(),(0,_.iD)("div",{key:1,onClick:e[2]||(e[2]=(0,D.iM)(((...t)=>n.onClickFavorite&&n.onClickFavorite(...t)),["prevent"])),class:"ui-customize-tags-item__action"},[o.isFavorite?((0,_.wg)(),(0,_.j4)(a,{key:0,size:"20",class:"favorite"})):((0,_.wg)(),(0,_.j4)(c,{key:1,size:"20"}))]))])])}],["__scopeId","data-v-4756da49"]]),ModalView:we.Rj,ModalHeader:we.xB}},wn=(0,Z.Z)(bn,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("CustomizeTagItem"),c=(0,_.up)("CustomizeTagList"),l=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(l,{type:o.type,showHeaderBorder:!0,contentPadding:!1,showScroll:!0,onOnOverlayClick:n.onClose},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{closeButton:n.headerButton,onClose:n.onClose},{default:(0,_.w5)((()=>[rn])),_:1},8,["closeButton","onClose"])])),default:(0,_.w5)((()=>[(0,_._)("section",an,[o.favorites.length>0?((0,_.wg)(),(0,_.j4)(c,{key:0,title:"Favorites"},{default:(0,_.w5)((()=>[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.favorites,(t=>((0,_.wg)(),(0,_.j4)(a,{key:t,tag:t,isFavorite:!0,onOnUnfavorite:n.onUnfavorite},null,8,["tag","onOnUnfavorite"])))),128))])),_:1})):(0,_.kq)("",!0),o.popular.length>0?((0,_.wg)(),(0,_.j4)(c,{key:1,title:"Explore Popular Tags"},{default:(0,_.w5)((()=>[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.popular,(t=>((0,_.wg)(),(0,_.j4)(a,{key:t,tag:t,onOnFavorite:n.onFavorite,onOnHide:n.onHide},null,8,["tag","onOnFavorite","onOnHide"])))),128))])),_:1})):(0,_.kq)("",!0),o.other.length>0?((0,_.wg)(),(0,_.j4)(c,{key:2,title:"Other Tags"},{default:(0,_.w5)((()=>[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.other,(t=>((0,_.wg)(),(0,_.j4)(a,{key:t,tag:t,onOnFavorite:n.onFavorite,onOnHide:n.onHide},null,8,["tag","onOnFavorite","onOnHide"])))),128))])),_:1})):(0,_.kq)("",!0),(0,_.Wm)(c,{title:"Hidden",isHidden:!0},{default:(0,_.w5)((()=>[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.hidden,(t=>((0,_.wg)(),(0,_.j4)(a,{key:t,tag:t,isHidden:!0,onOnUnhide:n.onUnhide},null,8,["tag","onOnUnhide"])))),128))])),_:1})])])),_:1},8,["type","onOnOverlayClick"])}]]);var yn=o(48254).default;const kn="Customize Menu",Pn={setup:()=>({tagStore:(0,Je.v)()}),components:{CustomizeTagsModal:wn},methods:{onClose(){this.$emit("close")},onFavorite(t){this.tagStore.addFavorite(t),yn.trackFavoriteTag(t.key,!0,kn)},onUnfavorite(t){this.tagStore.removeFavorite(t),yn.trackFavoriteTag(t.key,!1,kn)},onHide(t){this.tagStore.addHidden(t),yn.trackHideTag(t.key,!0)},onUnhide(t){this.tagStore.removeHidden(t),yn.trackHideTag(t.key,!1)}}},On=(0,Z.Z)(Pn,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("CustomizeTagsModal");return(0,_.wg)(),(0,_.j4)(r,{"max-height":"80vh",favorites:i.tagStore.sortedFavorites.filter((t=>void 0!==t.key)),popular:i.tagStore.filteredPopular.filter((t=>void 0!==t.key)),other:i.tagStore.filteredOther.filter((t=>void 0!==t.key)),hidden:i.tagStore.hidden.filter((t=>void 0!==t.key)),onOnClose:n.onClose,onOnFavorite:n.onFavorite,onOnUnfavorite:n.onUnfavorite,onOnHide:n.onHide,onOnUnhide:n.onUnhide},null,8,["favorites","popular","other","hidden","onOnClose","onOnFavorite","onOnUnfavorite","onOnHide","onOnUnhide"])}]]),_n=(0,_.Uk)(" Blocked titles ");var In=o(10570);const Cn={class:"block-content"},Sn=(t=>((0,_.dD)("data-v-19b09672"),t=t(),(0,_.Cn)(),t))((()=>(0,_._)("div",{class:"block-content__description"}," You can add multiple words or phrases, separate by commas. ",-1))),xn={class:"block-content__content"},Tn={class:"name"},En={key:1,class:"block-content__empty"},An={key:0,class:"block-content__footer"},Dn={components:{IconBin:In.Z,GeneralInput:we.Ny,GeneralButton:we.Wo},props:["showAddButton","items","prefillItems","disableAddButton"],emits:["onSave","onDelete"],data(){return{value:this.prefillItems?this.prefillItems.join(","):""}},methods:{onDelete(t){this.$emit("onDelete",t)},onSave(){this.disableAddButton||(this.$emit("onSave",this.value),this.value="")}}};o(48083);const jn=(0,Z.Z)(Dn,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("GeneralInput"),a=(0,_.up)("IconBin"),c=(0,_.up)("GeneralButton");return(0,_.wg)(),(0,_.iD)("div",Cn,[(0,_.Wm)(r,{type:"text",autofocus:!0,placeholder:"Enter word or phrase",modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=t=>s.value=t),onKeydown:(0,D.D2)(n.onSave,["enter"])},null,8,["modelValue","onKeydown"]),Sn,(0,_._)("div",xn,[o.items.length>0?((0,_.wg)(!0),(0,_.iD)(_.HY,{key:0},(0,_.Ko)(o.items,(t=>((0,_.wg)(),(0,_.iD)("div",{key:t,class:"block-content__item"},[(0,_._)("div",Tn,(0,I.zw)(t),1),(0,_.Wm)(a,{size:"20",onClick:e=>n.onDelete(t),class:"remove-button"},null,8,["onClick"])])))),128)):((0,_.wg)(),(0,_.iD)("div",En,"No blocked"))]),o.showAddButton?((0,_.wg)(),(0,_.iD)("div",An,[(0,_.Wm)(c,{label:"Add",color:"primary",round:"light",onClick:n.onSave,disabled:""===this.value||o.disableAddButton},null,8,["onClick","disabled"])])):(0,_.kq)("",!0)])}],["__scopeId","data-v-19b09672"]]),Mn={class:"loading-container"},Ln={key:0,class:"spinner-container"};var Un=o(73910);const Zn={props:{loading:Boolean},components:{IconSpinnerAnimated:Un.Z}};o(87463);const Rn=(0,Z.Z)(Zn,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("IconSpinnerAnimated");return(0,_.wg)(),(0,_.iD)("div",Mn,[o.loading?((0,_.wg)(),(0,_.iD)("div",Ln,[(0,_.Wm)(r,{radius:18})])):(0,_.kq)("",!0),(0,_.WI)(t.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-f8e61266"]]),Nn={components:{Loading:Rn,BlockContent:jn,IconBin:In.Z,GeneralInput:we.Ny,GeneralButton:we.Wo},data:()=>({loading:!1}),props:["showAddButton"],setup:()=>({userStore:(0,v.LM)()}),computed:{muteList(){return this.userStore.userInfo.muteList.slice().reverse()}},methods:{async removeMuteListItem(t){this.loading=!0,await this.userStore.deleteMuteList(t),this.loading=!1},async saveMuteList(t){this.loading=!0,await this.userStore.addMuteList(t.split(",").map((t=>t.trim())).filter((t=>""!==t))),this.loading=!1}}},Bn={emits:["onClose"],components:{MuteList:(0,Z.Z)(Nn,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BlockContent"),a=(0,_.up)("Loading");return(0,_.wg)(),(0,_.j4)(a,{loading:s.loading},{default:(0,_.w5)((()=>[(0,_.Wm)(r,{items:n.muteList,showAddButton:o.showAddButton,onOnSave:n.saveMuteList,onOnDelete:n.removeMuteListItem,disableAddButton:s.loading},null,8,["items","showAddButton","onOnSave","onOnDelete","disableAddButton"])])),_:1},8,["loading"])}]]),ModalView:we.Rj,ModalHeader:we.xB}},Hn=(0,Z.Z)(Bn,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("MuteList"),c=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(c,{onOnOverlayClick:e[1]||(e[1]=e=>t.$emit("onClose")),contentPadding:!1},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{onClose:e[0]||(e[0]=e=>t.$emit("onClose"))},{default:(0,_.w5)((()=>[_n])),_:1})])),default:(0,_.w5)((()=>[(0,_.Wm)(a)])),_:1})}]]),Vn={key:0,class:"description"},Fn={class:"profile"},$n={key:0,class:"emoji-icon"},Gn=["src","alt"],zn={key:0,class:"description"},Wn={key:0,class:"tag-item"},Kn={class:"name"},qn={class:"tag-container"},Yn=["onClick"],Qn={key:1,class:"plus"};var Jn=o(74845),Xn=o(89611);function tr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function er(t){for(var e=1;e({step:0}),setup:()=>({userStore:(0,v.LM)(),tagStore:(0,Je.v)()}),computed:{userFollowedPages(){return this.userStore.userFollowedPages},interests(){return Object.values(this.tagStore.interests)},sortedFollowedInterests(){return this.interests.filter((t=>this.userFollowedPages.interests.find((e=>e.interest.listType===t.listType))))}},methods:{goPrev(){this.step=0},goNext(){this.step=1},onClickCloseButton(){1===this.step&&this.goPrev()},getInterestTags(t){const e=this.tagStore.interests[t.listType];return(null==e?void 0:e.tags)||[]},async handleFollowTagClick(t){const e=!this.isTagFollowed(t),o={isFollowing:e?1:0,notification:e?"Some":"No"};await this.userStore.updateUserFollowedPages("tag",t.key,o),await d.default.trackTagFollowed(t.key,e?"Follow":"Unfollow",this.isSignup?"signup-modal":"edit-modal")},async handleFollowInterestClick(t){const e=!this.isInterestFollowed(t),o={isFollowing:e?1:0,notification:e?"Some":"No"};await this.userStore.updateUserFollowedPages("interest",t.listType,o),await d.default.trackInterestFollowed(t.name,e?"Follow":"Unfollow",this.isSignup?"signup-modal":"edit-modal")},isTagFollowed(t){return!!this.userFollowedPages.tags.find((e=>e.tag.url===t.url||e.tag.key===t.key))},isInterestFollowed(t){return!!this.userFollowedPages.interests.find((e=>e.interest.url===t.url))},closeModal(){this.$emit("onClose"),this.isSignup&&this.userStore.updateSettings({initialFollowFinished:1})},getInterestButtonStyle(t){if(this.isInterestFollowed(t))return{};const e=t.buttonTextColor?{color:t.buttonTextColor}:{},o=t.buttonBackgroundColor?{backgroundColor:t.buttonBackgroundColor}:{},i=t.buttonBackgroundColor?{borderColor:t.buttonBackgroundColor}:{};return er(er(er({},e),o),i)},getInterestBackgroundStyle:t=>t.profileBackgroundColor?{backgroundColor:t.profileBackgroundColor,color:t.profilePrimaryTextColor}:{}}};o(62193);const ir=(0,Z.Z)(or,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("GeneralButton"),c=(0,_.up)("IconCheck"),l=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(l,{class:"follow-page-modal",showFooter:!0,showFooterBorder:!0,showScroll:!0,"fixed-footer":!0,"max-height":o.isDesktop?"80vh":null,type:o.isDesktop?"default":"fullscreen"},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{onClose:n.onClickCloseButton,showOptionButton:!0,showCloseButton:1===s.step,closeButton:"back"},(0,_.Nv)({default:(0,_.w5)((()=>[(0,_.Uk)((0,I.zw)(0===s.step?"Interests":"Tags")+" ",1)])),_:2},[0===s.step?{name:"modalHeaderOption",fn:(0,_.w5)((()=>[(0,_._)("div",{onClick:e[0]||(e[0]=(...t)=>n.closeModal&&n.closeModal(...t))}," Skip ")]))}:void 0]),1032,["onClose","showCloseButton"])])),modalFooter:(0,_.w5)((()=>[0===s.step?((0,_.wg)(),(0,_.j4)(a,{key:0,label:"Next",color:"primary",style:{width:"100%"},onClick:n.goNext,disabled:0===n.userFollowedPages.interests.length||n.userFollowedPages.interests.length<3&&o.isSignup},null,8,["onClick","disabled"])):((0,_.wg)(),(0,_.j4)(a,{key:1,label:"Done",color:"primary",style:{width:"100%"},onClick:n.closeModal},null,8,["onClick"]))])),default:(0,_.w5)((()=>[0===s.step?((0,_.wg)(),(0,_.iD)(_.HY,{key:0},[o.isSignup?((0,_.wg)(),(0,_.iD)("div",Vn," Pick 3 or more you'd like to see in your home feed. ")):(0,_.kq)("",!0),(0,_._)("div",null,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(n.interests,(t=>((0,_.wg)(),(0,_.iD)("div",{class:(0,I.C_)(["interest-item",{active:n.isInterestFollowed(t)}]),style:(0,I.j5)(n.getInterestBackgroundStyle(t))},[(0,_._)("div",Fn,[t.emoji?((0,_.wg)(),(0,_.iD)("span",$n,(0,I.zw)(t.emoji),1)):((0,_.wg)(),(0,_.iD)("img",{key:1,src:t.imageUrl,alt:t.name,width:"40",height:"40"},null,8,Gn)),(0,_.Uk)(" "+(0,I.zw)(t.name),1)]),(0,_.Wm)(a,{label:n.isInterestFollowed(t)?"Following":"Follow",color:n.isInterestFollowed(t)?"inherit":"primary",round:"light",onClick:e=>n.handleFollowInterestClick(t),style:(0,I.j5)(n.getInterestButtonStyle(t))},null,8,["label","color","onClick","style"])],6)))),256))])],64)):((0,_.wg)(),(0,_.iD)(_.HY,{key:1},[o.isSignup?((0,_.wg)(),(0,_.iD)("div",zn," Select a few to get started. You can update these later. ")):(0,_.kq)("",!0),(0,_._)("div",null,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(n.sortedFollowedInterests,(t=>((0,_.wg)(),(0,_.iD)(_.HY,null,[n.getInterestTags(t).length>0?((0,_.wg)(),(0,_.iD)("div",Wn,[(0,_._)("div",Kn,(0,I.zw)(t.name),1),(0,_._)("div",qn,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(n.getInterestTags(t),(t=>((0,_.wg)(),(0,_.iD)("div",{class:(0,I.C_)(["tag",{active:n.isTagFollowed(t)}]),onClick:e=>n.handleFollowTagClick(t)},[(0,_._)("span",null,(0,I.zw)(t.key),1),n.isTagFollowed(t)?((0,_.wg)(),(0,_.j4)(c,{key:0,size:"12"})):((0,_.wg)(),(0,_.iD)("span",Qn,"+"))],10,Yn)))),256))])])):(0,_.kq)("",!0)],64)))),256))])],64))])),_:1},8,["max-height","type"])}],["__scopeId","data-v-19d9293c"]]),sr=(0,_.Uk)(" Blocked tags "),nr={data:()=>({loading:!1}),components:{Loading:Rn,BlockContent:jn,IconBin:In.Z,GeneralInput:we.Ny,GeneralButton:we.Wo},props:["showAddButton","prefillBlockTags"],setup:()=>({userStore:(0,v.LM)()}),computed:{blockTags(){return this.userStore.userInfo.blockTags.slice().reverse()}},methods:{async deleteBlockTag(t){this.loading=!0,await this.userStore.deleteBlockTag(t),this.loading=!1},async addBlockTag(t){this.loading=!0,await this.userStore.addBlockTag(t.split(",").map((t=>t.trim())).filter((t=>""!==t))),this.loading=!1}}},rr=(0,Z.Z)(nr,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BlockContent"),a=(0,_.up)("Loading");return(0,_.wg)(),(0,_.j4)(a,{loading:s.loading},{default:(0,_.w5)((()=>[(0,_.Wm)(r,{items:n.blockTags,showAddButton:o.showAddButton,prefillItems:o.prefillBlockTags,onOnSave:n.addBlockTag,onOnDelete:n.deleteBlockTag,disableAddButton:s.loading},null,8,["items","showAddButton","prefillItems","onOnSave","onOnDelete","disableAddButton"])])),_:1},8,["loading"])}]]),ar={emits:["onClose"],props:["post"],computed:{prefillBlockTags(){return this.post?this.post.tags.map((t=>t.key)):null}},components:{BlockTag:rr,ModalView:we.Rj,ModalHeader:we.xB}},cr=(0,Z.Z)(ar,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("BlockTag"),c=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(c,{onOnOverlayClick:e[1]||(e[1]=e=>t.$emit("onClose")),contentPadding:!1},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{onClose:e[0]||(e[0]=e=>t.$emit("onClose"))},{default:(0,_.w5)((()=>[sr])),_:1})])),default:(0,_.w5)((()=>[(0,_.Wm)(a,{prefillBlockTags:n.prefillBlockTags},null,8,["prefillBlockTags"])])),_:1})}]]),lr=(0,_.Uk)(" Blocked users "),dr={class:"blocklist"},pr={key:0,class:"blocklist__wrapper"},ur={key:1,class:"blocklist__empty"},hr=[(t=>((0,_.dD)("data-v-89d0aca4"),t=t(),(0,_.Cn)(),t))((()=>(0,_._)("p",null,"No blocked users",-1)))];var mr=o(10242);function gr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function fr(t){for(var e=1;e({loading:!1}),computed:fr({},(0,gt.rn)(v.wm,["blocklist"])),methods:fr(fr({},(0,gt.nv)(v.wm,{fetchBlockedUsers:"fetchBlockedUsers",unblockUser:"unBlockUser"})),{},{async onUnblock(t){this.loading=!0,await this.unblockUser({accountID:t.accountId,username:t.username}),this.loading=!1}}),async mounted(){this.loading=!0,await this.fetchBlockedUsers(),this.loading=!1}};o(90903);const br={emits:["onClose"],props:["post"],computed:{prefillBlockTags(){return this.post?this.post.tags.map((t=>t.key)):null}},components:{BlockedUsersList:(0,Z.Z)(vr,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BlockUserItem"),a=(0,_.up)("Loading");return(0,_.wg)(),(0,_.j4)(a,{loading:s.loading},{default:(0,_.w5)((()=>[(0,_._)("section",dr,[t.blocklist.length>0?((0,_.wg)(),(0,_.iD)("div",pr,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(t.blocklist,(t=>((0,_.wg)(),(0,_.j4)(r,{key:t.userId,username:t.username,fullName:t.fullName,avatarUrl:t.avatarUrl,onOnUnblock:e=>n.onUnblock(t)},null,8,["username","fullName","avatarUrl","onOnUnblock"])))),128))])):((0,_.wg)(),(0,_.iD)("div",ur,hr))])])),_:1},8,["loading"])}],["__scopeId","data-v-89d0aca4"]]),BlockTag:rr,ModalView:we.Rj,ModalHeader:we.xB}},wr=(0,Z.Z)(br,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ModalHeader"),a=(0,_.up)("BlockedUsersList"),c=(0,_.up)("ModalView");return(0,_.wg)(),(0,_.j4)(c,{onOnOverlayClick:e[1]||(e[1]=e=>t.$emit("onClose")),contentPadding:!1},{modalHeader:(0,_.w5)((()=>[(0,_.Wm)(r,{onClose:e[0]||(e[0]=e=>t.$emit("onClose"))},{default:(0,_.w5)((()=>[lr])),_:1})])),default:(0,_.w5)((()=>[(0,_.Wm)(a)])),_:1})}]]);var yr=o(48254).default;const kr=["commentId","threadId"];function Pr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Or(t){for(var e=1;e({modalDisplay:_r,nextUrl:"",action:null,blockData:null,blockPostData:null,isSignup:!1,blockTagPost:null}),mixins:[B.Z],components:{BlockedUsersModal:wr,BlockTagModal:cr,FollowPageModal:ir,MuteListModal:Hn,ForgotPasswordModal:Cs,LoginModal:Ki,SignupModal:ts,SignupEmailModal:fs,VerifyAgeFlow:Ls,ReportModal:Us.Z,UploadSuccess:Es,BlockUser:Vs,HidePostConfirmModal:we.ex,HideOPCommentsConfirmModal:we.qo,OpPinCommentConfirmModal:nn,CustomizeTags:On},computed:Or(Or(Or({},(0,gt.rn)(Gs.n,{showReport:"isShowing",report:"report"})),(0,gt.rn)($s.c,["uploadSuccessData"])),{},{postId(){var t;return null===(t=this.uploadSuccessData)||void 0===t?void 0:t.postId}}),methods:Or(Or(Or(Or({},(0,gt.nv)(v.LM,["blockPost"])),(0,gt.nv)(Ys.Vv,["updateFollowStatus"])),(0,gt.nv)(Gs.n,["onSubmitReport","onCancelReport"])),{},{dismissModal(){this.showReport&&this.onCancelReport(),this.modalDisplay=_r},showLogin(){this.modalDisplay=Or(Or({},_r),{},{login:!0})},showSignup(){this.modalDisplay=Or(Or({},_r),{},{signup:!0})},showSignupEmail(){this.modalDisplay=Or(Or({},_r),{},{signupEmail:!0})},showForgotPassword(){this.modalDisplay=Or(Or({},_r),{},{forgotPassword:!0})},showUploadSuccess(){this.modalDisplay=Or(Or({},_r),{},{uploadSuccess:!0})},showBlockUser(){this.modalDisplay=Or(Or({},_r),{},{blockUser:!0})},submitReport(t){this.onSubmitReport(t.type)},showHidePost(){this.modalDisplay=Or(Or({},_r),{},{hidePost:!0})},hidePost(){this.blockPost(this.blockPostData),yr.trackHidePost(this.blockPostData.id),this.dismissModal(),(0,ws.E)().showDefault("The post is hidden."),x.Z.$emit(`post::hidePost::${this.blockPostData.id}`)},showHideOPCommentsModal(){this.modalDisplay=Or(Or({},_r),{},{hideOpComments:!0})},hideOPComments(){const t=this.blockPostData,{commentId:e,threadId:o}=t,i=(0,Zi.Z)(t,kr);this.blockPost(i),this.updateFollowStatus({threadId:o,follow:!1}),yr.trackHideOPComments(e),this.dismissModal(),(0,ws.E)().showDefault("All OP comments are hidden.")},showOpPinCommentModal(){this.modalDisplay=Or(Or({},_r),{},{opPinComment:!0})},showCustomizeTagsModal(){this.modalDisplay=Or(Or({},_r),{},{showCustomizeTags:!0})},showMuteListModal(){this.modalDisplay=Or(Or({},_r),{},{muteList:!0})},showFollowPageModal(){this.modalDisplay=Or(Or({},_r),{},{followPage:!0})},showBlockTagModal(){this.modalDisplay=Or(Or({},_r),{},{blockTag:!0})},showBlockedUsersModal(){this.modalDisplay=Or(Or({},_r),{},{blockedUsers:!0})}}),created(){x.Z.$on("Overlay::showLogin",(t=>{this.track("Login","LoginOverlay"),this.nextUrl=t||"",this.showLogin()})),x.Z.$on("Overlay::showSignup",((t,e)=>{this.action=e||Fs.lR,this.trackLabel("SignUp","SignUpOverlay",this.action),this.nextUrl=t||"",this.showSignup()})),x.Z.$on("Overlay::showSignupEmail",(t=>{this.nextUrl=t||"",this.showSignupEmail()})),x.Z.$on("Overlay::showForgotPassword",(()=>{this.showForgotPassword()})),x.Z.$on("Overlay::hideReport",(()=>{this.dismissModal()})),x.Z.$on("Overlay::showUploadSuccess",(()=>{this.showUploadSuccess()})),x.Z.$on("Overlay::showBlockUser",(t=>{this.showBlockUser(),this.blockData=t})),x.Z.$on("Overlay::showHidePostModal",(t=>{this.showHidePost(),this.blockPostData=t})),x.Z.$on("Overlay::showHideOPCommentsModal",(t=>{this.showHideOPCommentsModal(),this.blockPostData=t})),x.Z.$on("Overlay::showOpPinCommentModal",(()=>{this.showOpPinCommentModal()})),x.Z.$on("Overlay::showCustomizeTags",(()=>{this.showCustomizeTagsModal()})),x.Z.$on("Overlay::showOpPinCommentModal",(()=>{this.showOpPinCommentModal()})),x.Z.$on("Overlay::showMuteListModal",(()=>{this.showMuteListModal()})),x.Z.$on("Overlay::showFollowPageModal",(t=>{this.showFollowPageModal(),this.isSignup=t})),x.Z.$on("Overlay::showBlockTagModal",(t=>{this.showBlockTagModal(t),this.blockTagPost=t||!1})),x.Z.$on("Overlay::showBlockedUsersModal",(()=>{this.showBlockedUsersModal()}))},unmounted(){x.Z.$off("Overlay::showLogin"),x.Z.$off("Overlay::showSignup"),x.Z.$off("Overlay::showSignupEmail"),x.Z.$off("Overlay::showForgotPassword"),x.Z.$off("Overlay::hideReport"),x.Z.$off("Overlay::showUploadSuccess"),x.Z.$off("Overlay::showBlockUser"),x.Z.$off("Overlay::showHidePostModal"),x.Z.$off("Overlay::showHideOPCommentsModal"),x.Z.$off("Overlay::showOpPinCommentModal"),x.Z.$off("Overlay::showCustomizeTags"),x.Z.$off("Overlay::showOpPinCommentModal"),x.Z.$off("Overlay::showMuteListModal"),x.Z.$off("Overlay::showFollowPageModal"),x.Z.$off("Overlay::showBlockTagModal"),x.Z.$off("Overlay::showBlockedUsersModal")}},Cr=(0,Z.Z)(Ir,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ReportModal"),a=(0,_.up)("LoginModal"),c=(0,_.up)("SignupModal"),l=(0,_.up)("ForgotPasswordModal"),d=(0,_.up)("SignupEmailModal"),p=(0,_.up)("UploadSuccess"),u=(0,_.up)("BlockUser"),h=(0,_.up)("VerifyAgeFlow"),m=(0,_.up)("HidePostConfirmModal"),g=(0,_.up)("HideOPCommentsConfirmModal"),f=(0,_.up)("OpPinCommentConfirmModal"),v=(0,_.up)("CustomizeTags"),b=(0,_.up)("MuteListModal"),w=(0,_.up)("FollowPageModal"),y=(0,_.up)("BlockTagModal"),k=(0,_.up)("BlockedUsersModal");return(0,_.wg)(),(0,_.iD)(_.HY,null,[t.showReport?((0,_.wg)(),(0,_.j4)(r,{key:0,objectType:t.report.type,onOnReport:n.submitReport,onClose:n.dismissModal},null,8,["objectType","onOnReport","onClose"])):(0,_.kq)("",!0),s.modalDisplay.login?((0,_.wg)(),(0,_.j4)(a,{key:1,nextUrl:s.nextUrl,onClose:n.dismissModal},null,8,["nextUrl","onClose"])):(0,_.kq)("",!0),s.modalDisplay.signup?((0,_.wg)(),(0,_.j4)(c,{key:2,action:s.action,nextUrl:s.nextUrl,onClose:n.dismissModal},null,8,["action","nextUrl","onClose"])):(0,_.kq)("",!0),s.modalDisplay.forgotPassword?((0,_.wg)(),(0,_.j4)(l,{key:3,nextUrl:s.nextUrl,onClose:n.dismissModal},null,8,["nextUrl","onClose"])):(0,_.kq)("",!0),s.modalDisplay.signupEmail?((0,_.wg)(),(0,_.j4)(d,{key:4,nextUrl:s.nextUrl,onClose:n.dismissModal},null,8,["nextUrl","onClose"])):(0,_.kq)("",!0),s.modalDisplay.uploadSuccess?((0,_.wg)(),(0,_.j4)(p,{key:5,postId:n.postId,onClose:n.dismissModal},null,8,["postId","onClose"])):(0,_.kq)("",!0),s.modalDisplay.blockUser?((0,_.wg)(),(0,_.j4)(u,{key:6,blockData:s.blockData,onClose:n.dismissModal},null,8,["blockData","onClose"])):(0,_.kq)("",!0),(0,_.Wm)(h),s.modalDisplay.hidePost?((0,_.wg)(),(0,_.j4)(m,{key:7,onOnCancel:n.dismissModal,onOnHide:n.hidePost},null,8,["onOnCancel","onOnHide"])):(0,_.kq)("",!0),s.modalDisplay.hideOpComments?((0,_.wg)(),(0,_.j4)(g,{key:8,onOnCancel:n.dismissModal,onOnHide:n.hideOPComments},null,8,["onOnCancel","onOnHide"])):(0,_.kq)("",!0),s.modalDisplay.opPinComment?((0,_.wg)(),(0,_.j4)(f,{key:9,onOnCancel:n.dismissModal,onOnClose:n.dismissModal},null,8,["onOnCancel","onOnClose"])):(0,_.kq)("",!0),s.modalDisplay.showCustomizeTags?((0,_.wg)(),(0,_.j4)(v,{key:10,onClose:n.dismissModal},null,8,["onClose"])):(0,_.kq)("",!0),s.modalDisplay.muteList?((0,_.wg)(),(0,_.j4)(b,{key:11,onOnClose:n.dismissModal},null,8,["onOnClose"])):(0,_.kq)("",!0),s.modalDisplay.followPage?((0,_.wg)(),(0,_.j4)(w,{key:12,onOnClose:n.dismissModal,isDesktop:!0,isSignup:s.isSignup},null,8,["onOnClose","isSignup"])):(0,_.kq)("",!0),s.modalDisplay.blockTag?((0,_.wg)(),(0,_.j4)(y,{key:13,onOnClose:n.dismissModal,post:s.blockTagPost},null,8,["onOnClose","post"])):(0,_.kq)("",!0),s.modalDisplay.blockedUsers?((0,_.wg)(),(0,_.j4)(k,{key:14,onOnClose:n.dismissModal},null,8,["onOnClose"])):(0,_.kq)("",!0)],64)}]]);var Sr=o(52382);function xr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const{mapGetters:Tr}=(0,E._p)("config"),Er="toastMsg",Ar={2:"Awww Yeah! Welcome back.",3:"Ooooops! The post you're looking for has been reported by the community and removed.",4:"Me Gusta! Welcome to 9GAG, go have fun now!",5:"The post is removed.",12:"Ooooops! There is an error logging in.",17:"9GAG is undergoing maintenance right now. Sign-up and Upload will be back shortly.",18:"Your account is successfully verified!",19:"The verification email is expired. Another verification email is sent to you."},Dr={components:{ToastView:Sr.Z},computed:function(t){for(var e=1;eu.Z.isMobile()?null:{top:"64px"}},Tr({cookieDomain:"COOKIE_DOMAIN"})),methods:{initServerMsg(){const t=f.U2(Er);t&&(t.split(",").forEach((t=>{const e=Ar[t];e&&(0,ws.E)().showNotice(e)})),f.t8(Er,0,{domain:this.cookieDomain}))}},mounted(){this.initServerMsg()}},jr=(0,Z.Z)(Dr,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ToastView",!0);return(0,_.wg)(),(0,_.j4)(_.lR,{to:"body"},[(0,_.Wm)(r,{position:"center",style:(0,I.j5)(n.style)},null,8,["style"])])}]]),Mr=(t=>((0,_.dD)("data-v-3e40882c"),t=t(),(0,_.Cn)(),t))((()=>(0,_._)("div",{class:"arrow","data-popper-arrow":""},null,-1)));var Lr=o(23279),Ur=o.n(Lr),Zr=o(49012).default;function Rr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Nr(t){for(var e=1;e{const{uploadTs:t}=(0,v.LM)().user||{};let e="";return t>0&&(e="Be in control over your content, use tags!"),0===t&&(e="Use at least 1 relevant tag to be discovered easily."),e},selector:".tag-container .tag-bar",placement:u.Z.isMobile()?"bottom":"right"},{id:"postRelatedTab",message:"Tap anytime to explore more similar posts",selector:".post-tab-bar__tab:last-of-type",placement:"bottom"},{id:"pinnedComment",message:"Comment pinned by OP. Join the conversation!",selector:".comment-pinned span",placement:"right",isActive:!1},{id:"sectionHeaderTop",route:"/top",message:"Explore recent best posts in the 9GAG community.",selector:u.Z.isMobile()?".tabbar .active":"#post-list-section-header-top h1",placement:u.Z.isMobile()?"bottom-start":"right"},{id:"sectionHeaderTrending",route:"/trending",message:"Stay in the loop and discover posts rising in popularity.",selector:u.Z.isMobile()?".tabbar .active":"#post-list-section-header-trending h1",placement:u.Z.isMobile()?"bottom":"right"},{id:"sectionHeaderFresh",route:"/fresh",message:"Be the first to view new posts and vote on what should be seen by more people.",selector:u.Z.isMobile()?".tabbar .active":"#post-list-section-header-fresh h1",placement:u.Z.isMobile()?"bottom-end":"right"}],Fr={setup:()=>({tooltipStore:(0,qs._)()}),computed:Nr(Nr({},Br({showOpenApp:"SHOW_OPEN_APP_SHEET"})),{},{tooltip(){return this.tooltipStore.tooltip},tooltipMessage(){return"function"==typeof this.tooltip.message?this.tooltip.message():this.tooltip.message},hidden(){return null===this.tooltipStore.popper||this.tooltipStore.hidden}}),watch:{tooltip(t){t&&setTimeout((()=>{document.body.classList.contains("scroll-lock")||this.createTooltip(t)}),500)},showOpenApp(t){!t&&this.tooltip&&this.createTooltip(this.tooltip)}},methods:{createTooltip:Ur()((async function(t){await this.$nextTick(),this.tooltipStore.create(this.$refs.popper,t)&&(setTimeout((()=>{Zr.addEventListener("click",this.createDismissHandler(t.id),{capture:!0,once:!0})}),250),setTimeout(this.createDismissHandler(t.id),3e3))}),100),createDismissHandler(t){return()=>{this.tooltip.id===t&&(this.tooltipStore.dismiss(),this.tooltipStore.destroy())}}},mounted(){this.tooltipStore.init(Vr)}};o(46639);const $r=(0,Z.Z)(Fr,[["render",function(t,e,o,i,s,n){return n.tooltip?((0,_.wg)(),(0,_.iD)("div",{key:0,class:(0,I.C_)(["tooltip",{hidden:n.hidden}]),ref:"popper",role:"tooltip"},[(0,_._)("span",null,(0,I.zw)(n.tooltipMessage),1),Mr],2)):(0,_.kq)("",!0)}],["__scopeId","data-v-3e40882c"]]);var Gr=o(64395).default,zr=o(46296).default;const Wr=class extends Gr{shouldCheckNonVideoView(t){return t.data?t.data.video||t.data.youtube?(this.log("Web.shouldCheckNonVideoView() is video",t),!1):t.data.sensitiveCover?(this.log("Web.shouldCheckNonVideoView() sensitive cover",t),!1):(this.log("Web.shouldCheckNonVideoView()",t),super.shouldCheckNonVideoView(t)):(this.log("Web.shouldCheckNonVideoView() no data",t),!1)}updateTrackingCVars(){const t=(0,b.k)(),{RouteNames:e}=t;let o=t.pageKey;this.setScreenKey(o);const i=t.queryParams.ref;let s="",n="";t.isRoute(e.POST)?s="SinglePost":t.isRoute(e.USER_LIST)?(s="ProfilePostList",n=o):t.isRoute(e.INTEREST_POST_LIST)?(s="InterestPostList",n=o):t.isRoute(e.TAG_POST_LIST)?(s=`${zr.capitalize(i.split("-")[0])}TagPostList`,n=o):t.isRoute(e.SEARCH_POST_LIST)?s="SearchPostList":(s="PostList",n=o);const r={TriggeredPage:s,TriggeredPageKey:n};this.setTrackingCVars(r)}};var Kr=o(48267);function qr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const{mapGetters:Yr}=(0,E._p)("config"),Qr={computed:function(t){for(var e=1;e({}),provide:()=>({})},Jr={class:"footer"};var Xr=o(49012).default,ta=o(53441).default;const ea={data:()=>({show:!1}),created(){this.checkFooterNav=Ur()(this._checkFooterNav,500),Xr.addEventListener("scroll",this.checkFooterNav)},destroyed(){Xr.removeEventListener("scroll",this.checkFooterNav)},methods:{onClickBackToTop(){ta.scrollToTop()},_checkFooterNav(){ta.getScrollTop()>600?this.show=!0:this.show=!1}}},oa=(0,Z.Z)(ea,[["render",function(t,e,o,i,s,n){return(0,_.wg)(),(0,_.iD)("section",Jr,[(0,_._)("a",{class:(0,I.C_)(["back-to-top",{show:t.show}]),onClick:e[0]||(e[0]=(0,D.iM)(((...t)=>n.onClickBackToTop&&n.onClickBackToTop(...t)),["prevent"])),href:"javascript: void(0);"}," Back to top ",2)])}]]),ia={all_shortcuts:{},commandMode:!1,add:function(t,e,o){var i={type:"keydown",propagate:!1,disable_in_input:!1,require_command_mode:!0,target:document,keycode:!1};if(o)for(var s in i)void 0===o[s]&&(o[s]=i[s]);else o=i;var n=o.target;"string"==typeof o.target&&(n=document.getElementById(o.target));var r=this;t=t.toLowerCase();var a=function(i){var s,n,a;if(i=i||window.event,(!o.disable_in_input||(i.target?a=i.target:i.srcElement&&(a=i.srcElement),3==a.nodeType&&(a=a.parentNode),"INPUT"!=a.tagName&&"TEXTAREA"!=a.tagName))&&(!o.require_command_mode||r.commandMode)){i.keyCode?s=i.keyCode:i.which&&(s=i.which);var c=String.fromCharCode(s).toLowerCase();188==s&&(c=","),190==s&&(c=".");var l=t.split("+"),d=0,p={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},u={esc:27,escape:27,tab:9,space:32,return:13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,break:19,insert:45,home:36,delete:46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},h={shift:{wanted:!1,pressed:!1},ctrl:{wanted:!1,pressed:!1},alt:{wanted:!1,pressed:!1},meta:{wanted:!1,pressed:!1}};i.ctrlKey&&(h.ctrl.pressed=!0),i.shiftKey&&(h.shift.pressed=!0),i.altKey&&(h.alt.pressed=!0),i.metaKey&&(h.meta.pressed=!0);for(var m=0;n=l[m],m1?u[n]==s&&d++:o.keycode?o.keycode==s&&d++:(c==n||p[c]&&i.shiftKey&&(c=p[c])==n)&&d++;return d!=l.length||h.ctrl.pressed!=h.ctrl.wanted||h.shift.pressed!=h.shift.wanted||h.alt.pressed!=h.alt.wanted||h.meta.pressed!=h.meta.wanted||(e(i),o.propagate)?void 0:(i.cancelBubble=!0,i.returnValue=!1,i.stopPropagation&&(i.stopPropagation(),i.preventDefault()),!1)}};this.all_shortcuts[t]={callback:a,target:n,event:o.type},n.addEventListener?n.addEventListener(o.type,a,!1):n.attachEvent?n.attachEvent("on"+o.type,a):n["on"+o.type]=a},remove:function(t){t=t.toLowerCase();var e=this.all_shortcuts[t];if(delete this.all_shortcuts[t],e){var o=e.event,i=e.target,s=e.callback;i.detachEvent?i.detachEvent("on"+o,s):i.removeEventListener?i.removeEventListener(o,s,!1):i["on"+o]=!1}},commandModeListener:null,toggleCommandMode:function(){this.commandMode=!this.commandMode,null!=this.commandModeListener&&this.commandModeListener()}};var sa=o(53441).default;const na=(0,gt.Q_)("keyboard",{state:()=>({}),actions:{bindElements(){this.bindScrollToTop("b"),this.bindJumpPrev("k"),this.bindJumpNext("j"),this.bindRandomEntry("r"),this.bindPostVoteUp("l"),this.bindPostVoteDown("h"),this.bindPostComment("c"),this.bindPostPlay("p"),this.bindHomeEnd()},bindHomeEnd(){document.addEventListener("keydown",(t=>!!sa.isCurrentlyFocusedInTypeable()||(36==t.keyCode||35==t.keyCode?(t.preventDefault(),sa.scrollTo(35==t.keyCode?document.body.offsetHeight:0),!1):void 0)))},bindScrollToTop(t){this.bindAction(t,(()=>{this.track("back-to-top"),this.scrollToTop()}))},bindJumpPrev(t){this.bindAction(t,(()=>{this.track("prev"),x.Z.$emit("post::toPrevListPost")}))},bindJumpNext(t){this.bindAction(t,(()=>{this.track("next"),x.Z.$emit("post::toNextListPost")}))},bindPostVoteUp(t){this.bindAction(t,(()=>{this.track("upvote"),x.Z.$emit("post::voteUp::inView")}),"keyup")},bindPostVoteDown(t){this.bindAction(t,(()=>{this.track("downvote"),x.Z.$emit("post::voteDown::inView")}),"keyup")},bindPostComment(t){this.bindAction(t,(()=>{this.track("comment"),x.Z.$emit("post::comment::inView")}))},bindRandomEntry(t){this.bindAction(t,(()=>{this.track("random"),this.randomEntry()}))},randomEntry(){window.location="/shuffle"},bindPostPlay(t){this.bindAction(t,(()=>{this.track("play"),x.Z.$emit("post::togglePlay::inView")}))},track(t){},getKeyOptions:t=>({type:t||"keypress",propagate:!1,target:document,disable_in_input:!0,require_command_mode:!1}),bindAction(t,e,o){ia.add(t,e,this.getKeyOptions(o))},scrollToTop(){sa.scrollToTop()}}});var ra=o(86655).default,aa=o(51931).default;const ca=new class{init(){window.addEventListener("click",this.handleAnchorClick.bind(this)),this.bindEventTracking(),na().bindElements()}_trackGaEvent(t){let e=t.getAttribute("data-evt");if(!e)return;e+="";let o=e.split(","),i="",s="",n="",r="",a="";i=o.shift(),s=o.shift(),n=o.shift(),r=o.shift(),a=o.shift();let c={},l=t.getAttribute("data-entry-id");if(!l)return;l&&(c.PostKey=l);let d=t.getAttribute("data-position");d&&(c.Position=d),a&&(c.Element=a),ra.trackPage(i,s,r,c)}_trackEvent(t){let e=t.getAttribute("data-track");if(!e||null==e)return;e+="";let o=e.split(","),i=o.shift(),s=o.shift(),n={label:o.shift(),labelValue:o.shift(),platform:o.shift(),entry:o.shift(),view:o.shift()};const r=(0,v.LM)().user.userId;r&&(n.user=r),aa.event(i,s,n)}_handelClickEventTracking(t,e){this._trackGaEvent(e),this._trackEvent(e);let o=e.tagName,i=e.getAttribute("href")+"",s=e.getAttribute("target");if("A"==o&&(0===i.indexOf("http")||0===i.indexOf("/"))&&!s){t&&t.preventDefault();let e="window.location.href = '"+i+"';";window.setTimeout(e,100)}}bindEventTracking(){const t=document.getElementById("container");t&&t.addEventListener("click",(t=>{const e=t.target.closest(".badge-evt, .badge-track");e&&this._handelClickEventTracking(t,e)}))}_findParent(t,e){for(;e;){if((e.nodeName||e.tagName||"").toLowerCase()===t.toLowerCase())return e;e=e.parentNode}return null}handleAnchorClick(t){if(!((t=t||window.event).ctrlKey||t.metaKey||t.shiftKey||t.altKey||0!==t.button)){const e=this._findParent("a",t.target||t.srcElement);e&&x.Z.$emit("nav::anchorClick",e,t)}}};o(99321);var la=o(31004),da=o(2354),pa=o(81447);class ua extends da.Z{getApiHost(){return mt.Z.getters["config/GET_CONFIG"]("notiOptions.apiHost")}addPosts(t){mt.Z.commit("post/ADD_POSTS",t,{root:!0})}_transformNoti(t){const{items:e,nextKey:o,didEndOfList:i}=t,s={items:[],posts:[],nextKey:o||"",didEndOfList:!!i},n=[];return e&&(e.forEach((t=>{const{post:e}=t;e&&!n.includes(e.id)&&(s.posts.push(pa.Z.transformPost(e)),n.push(e.id))})),s.items=e),s}}const ha=new ua,ma={class:"billboard-flexsider-ad"};var ga=o(45975);const fa={components:{BillboardAd:ga.Z}};o(10274);const va=(0,Z.Z)(fa,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BillboardAd");return(0,_.wg)(),(0,_.j4)(D.uT,{name:"fade"},{default:(0,_.w5)((()=>[(0,_._)("div",ma,[(0,_.Wm)(r,{autoDismiss:0,hideContainer:t.hideContainer},null,8,["hideContainer"])])])),_:1})}],["__scopeId","data-v-63e38555"]]);var ba=o(60028).default;function wa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ya(t){for(var e=1;e=this.drawerWindowWidth?this.showDrawer=!0:this.hideDrawer()},showDrawer(t){this.overlayDrawer&&t&&this.track("NavigationBar","OpenDrawer")}},computed:ya(ya(ya(ya({},ka(["topNavHeight","drawer"])),Pa({showAds:"SHOW_ADS"})),_a({adCampaign:"AD_CAMPAIGN"})),{},{layoutStyle(){const t=this.windowWidth>=1506,e=this.windowWidth>=1072;return{"--main-margin":(t?224:0)+"px","--inline-ad-width":(t?970:728)+"px","--inline-ad-height":(t?250:90)+"px","--inline-ad-margin":"calc( (var(--inline-ad-width) - 640px) / -2)","--sidebar-width":(e?336:300)+"px","--sidebar-ad-width":(e?336:300)+"px","--sidebar-ad-height":(e?280:250)+"px","--extra-width":(e?36:0)+"px"}},isAppEmbed(){return this.getConfig("app.appEmbed")},showDrawer:{get(){return![T.Z.UPLOAD].includes(this.$route.name)&&this.drawer},set(t){t!==this.drawer&&this.updateDrawer(t)}},windowWidth:()=>A.Z.browserWidth(),showSidebar(){return!this.$route||T.Z.POST_VIEWS.includes(this.$route.name)},containerStyle(){return{marginLeft:this.fullDrawer&&this.showDrawer&&!this.overlayDrawer?"220px":""}},showPageDrawer(){return!this.fullDrawer&&this.showDrawer&&!this.overlayDrawer},overlayDrawer(){return this.showDrawer&&this.windowWidth!1,showBillboardAd(){return!!this.showAds&&[T.Z.HOME_POST_LIST].includes(this.$route.name)}}),components:{CampaignBackground:R,TopNav:Be,PageComponent:bo,Drawer:Li,Sidebar:Ui.Z,Overlay:Cr,ToastView:jr,TooltipView:$r,BackToTop:oa,BillboardFlexsiderAd:va},methods:ya(ya({},Oa({updateDrawer:"UPDATE_DRAWER"})),{},{getContentHeight(){const t=this.$refs.content;return t?t.$el&&t.$el.offsetHeight:null},handleAnchor(t,e){const o=new(vt())(t.href),i=this.$router.resolve(o.pathname+o.query+o.hash),s=this.$route,n=!T.Z.POST_VIEWS.includes(s.name);if(i.name&&(0,b.k)().isValidLink(o.href)){switch(i.name){case T.Z.POST:case T.Z.COLLECTION_PAGE:if(n)return;break;case T.Z.INTEREST_LIST:if(!(0,Je.v)().getInterest(i.params.interest).name)return}e.preventDefault(),i.fullPath!==s.fullPath?this.$router.push(i.fullPath):window.location.href=i.fullPath}},initTimedTrackingManager(){this.timedTrackingMgr=new Wr(ba),this.timedTrackingMgr.updateTrackingCVars(),this.timedTrackingMgr.setVisibilityObserver(-this.topNavHeight,0),this.timedTrackingMgr.start(),this.$router.afterEach(((t,e)=>{this.timedTrackingMgr.stop(),this.timedTrackingMgr.untrackAll(),this.timedTrackingMgr.updateTrackingCVars(),this.timedTrackingMgr.start()})),x.Z.$on("tracking::trackElement",(({domId:t,data:e})=>{this.timedTrackingMgr.track(t,e)}))},toggleDrawer(){this.showDrawer=!this.showDrawer},hideDrawer(){this.overlayDrawer&&(this.showDrawer=!1)}}),created(){xt().init(ha,{isDropdown:!0});const t=this.$store.state.config.config;(0,Je.v)().init(t.tags,la.Z),(0,Je.v)().initInterests(t.interests),(0,Je.v)().initLocalInterests(t.localInterests),x.Z.$on("nav::anchorClick",((t,e)=>{this.handleAnchor(t,e)})),this.initTimedTrackingManager(),this.showDrawer=this.windowWidth>=this.drawerWindowWidth},mounted(){ca.init()}},Ca=(0,Z.Z)(Ia,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("BillboardFlexsiderAd"),a=(0,_.up)("CampaignBackground"),c=(0,_.up)("TopNav"),l=(0,_.up)("Drawer"),d=(0,_.up)("router-view"),p=(0,_.up)("Sidebar"),u=(0,_.up)("ToastView"),h=(0,_.up)("Overlay"),m=(0,_.up)("PageComponent"),g=(0,_.up)("TooltipView"),f=(0,_.up)("BackToTop");return n.isAppEmbed?((0,_.wg)(),(0,_.iD)(_.HY,{key:1},[(0,_.Wm)(d),(0,_.Wm)(h),(0,_.Wm)(m)],64)):((0,_.wg)(),(0,_.iD)("div",{key:0,style:(0,I.j5)(n.layoutStyle)},[n.showBillboardAd?((0,_.wg)(),(0,_.j4)(r,{key:0})):(0,_.kq)("",!0),n.background?((0,_.wg)(),(0,_.j4)(a,{key:1,background:n.background,drawer:n.showPageDrawer},null,8,["background","drawer"])):(0,_.kq)("",!0),(0,_.Wm)(c,{onToggleDrawer:n.toggleDrawer,fullDrawer:n.fullDrawer},null,8,["onToggleDrawer","fullDrawer"]),n.fullDrawer?((0,_.wg)(),(0,_.j4)(l,{key:2,showDrawer:n.showDrawer,overlayDrawer:n.overlayDrawer,onHideDrawer:n.hideDrawer,fullDrawer:!0},null,8,["showDrawer","overlayDrawer","onHideDrawer"])):n.overlayDrawer?((0,_.wg)(),(0,_.j4)(l,{key:3,overlayDrawer:n.overlayDrawer,onHideDrawer:n.hideDrawer},null,8,["overlayDrawer","onHideDrawer"])):(0,_.kq)("",!0),(0,_._)("div",{id:"container",style:(0,I.j5)(n.containerStyle),class:(0,I.C_)({drawer:n.showPageDrawer})},[n.showPageDrawer?((0,_.wg)(),(0,_.j4)(l,{key:0,showDrawer:n.showDrawer,onHideDrawer:n.hideDrawer},null,8,["showDrawer","onHideDrawer"])):(0,_.kq)("",!0),(0,_._)("div",C,[(0,_.Wm)(d,{ref:"content"},null,512),n.showSidebar?((0,_.wg)(),(0,_.j4)(p,{key:0,getContentHeight:n.getContentHeight},null,8,["getContentHeight"])):(0,_.kq)("",!0)])],6),(0,_.Wm)(u),(0,_.Wm)(h),(0,_.Wm)(m),(0,_.Wm)(g),(0,_.Wm)(f)],4))}]]);var Sa=o(11110),xa=o(27802),Ta=o(20425),Ea=o.n(Ta),Aa=o(37219);const Da={id:"main",class:"post-view"},ja=(0,_.Uk)(" The post is hidden "),Ma=["id"],La={name:"PrimisAd",emits:["empty"],props:{isDesktop:Boolean,adTag:String,width:Number,height:Number},data:()=>({playerId:"",playerEl:null,playerObserver:null,floatMargin:null}),computed:{styleObject(){return{position:"relative",zIndex:3,width:(this.width||this.screenWidth)+"px",minHeight:this.height+"px",margin:"0 auto"}},screenWidth:()=>A.Z.browserWidth()},created(){this.playerId="videoPlayerPlacement"}},Ua=(0,Z.Z)(La,[["render",function(t,e,o,i,s,n){return(0,_.wg)(),(0,_.iD)("div",{style:(0,I.j5)(n.styleObject)},[(0,_._)("div",{id:s.playerId},null,8,Ma)],4)}]]),Za={id:"individual-post"},Ra=["id"],Na={ref:"header"},Ba={ref:"container",class:"post-container"},Ha={key:1,class:"post-text-container"},Va={key:1,class:"source"},Fa=(0,_.Uk)(" Source: "),$a=["href"],Ga={class:"post-afterbar-a"};var za=o(46154),Wa=o(15682),Ka=o(12463),qa=o(53441),Ya=o(74672),Qa=o(22922),Ja=o(20985),Xa=o(90112),tc=o(39182),ec=o(63958),oc=o(36446),ic=o(71652).default;const sc={props:{postId:String,isMainPost:{type:Boolean,default:!1}},mixins:[Ya.Z,B.Z,Qa.Z],setup:()=>({userStore:(0,v.LM)()}),provide(){return{[xs.M]:this.isMainPost}},computed:{showPostAward(){return!this.isCollectionPage&&this.userStore.isLoggedIn&&this.postId&&!this.userStore.uploads.includes(this.postId)},postDomId(){return qa.default.getPostDomId(this.postId)},showArticleDesc(){return this.post.type===ic.TYPE_ARTICLE&&this.post.description&&""!==this.post.description},showDesc(){const t=[ic.TYPE_COLLECTION_PAGE,ic.TYPE_TEXT,ic.TYPE_ARTICLE];return this.post.description&&""!==this.post.description&&!t.includes(this.post.type)},showSource(){return this.post.sourceDomain&&this.post.sourceUrl},showTextContainer(){return this.showDesc&&!this.showArticleDesc||this.showSource}},watch:{topNavHeight(){this.fixToolBar(this.shouldFixToolBar())}},components:{PostAwardUsers:oc.Z,PostAward:ec.Z,PostSave:tc.Z,PostVote:za.Z,PostShare:Wa.Z,PostContent:Sa.Z,PostHeader:Ka.Z,Markdown:Ja.Z,PostTags:Xa.Z}};o(83034);const nc=(0,Z.Z)(sc,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("PostHeader"),a=(0,_.up)("PostAwardUsers"),c=(0,_.up)("Markdown"),l=(0,_.up)("PostContent"),d=(0,_.up)("PostTags"),p=(0,_.up)("PostVote"),u=(0,_.up)("PostAward"),h=(0,_.up)("PostSave"),m=(0,_.up)("PostShare");return(0,_.wg)(),(0,_.iD)("section",Za,[(0,_._)("article",{id:n.postDomId,class:"post-page"},[(0,_._)("header",Na,[(0,_.Wm)(r,{postId:o.postId},null,8,["postId"]),t.post.awardUsers.length>0?((0,_.wg)(),(0,_.j4)(a,{key:0,post:t.post},null,8,["post"])):(0,_.kq)("",!0),(0,_._)("h1",null,(0,I.zw)(t.postTitle),1)],512),(0,_._)("div",Ba,[n.showArticleDesc?((0,_.wg)(),(0,_.j4)(c,{key:0,class:"post-text-container",content:t.post.description},null,8,["content"])):(0,_.kq)("",!0),(0,_.Wm)(l,{postId:o.postId},null,8,["postId"]),n.showTextContainer?((0,_.wg)(),(0,_.iD)("div",Ha,[n.showDesc?((0,_.wg)(),(0,_.j4)(c,{key:0,content:t.post.description},null,8,["content"])):(0,_.kq)("",!0),n.showSource?((0,_.wg)(),(0,_.iD)("p",Va,[Fa,(0,_._)("a",{href:t.post.sourceUrl,target:"_blank"},(0,I.zw)(t.post.sourceDomain),9,$a)])):(0,_.kq)("",!0)])):(0,_.kq)("",!0)],512),(0,_.Wm)(d,{tags:t.post.tags,isMainPost:!0},null,8,["tags"]),(0,_._)("div",Ga,[(0,_._)("div",null,[(0,_.Wm)(p,{postId:o.postId},null,8,["postId"]),n.showPostAward?((0,_.wg)(),(0,_.j4)(u,{key:0,postId:o.postId},null,8,["postId"])):(0,_.kq)("",!0),t.isCollectionPage?(0,_.kq)("",!0):((0,_.wg)(),(0,_.j4)(h,{key:1,postId:o.postId},null,8,["postId"]))]),(0,_.Wm)(m,{postId:o.postId},null,8,["postId"])])],8,Ra)])}],["__scopeId","data-v-5b79dbca"]]),rc={class:"related-post-list"};var ac=o(13061);const cc={inheritAttrs:!1,components:{ListContent:ac.Z},computed:{apiInfo(){return la.Z.getApiInfo(this.$route)}}};o(60307);const lc=(0,Z.Z)(cc,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ListContent");return(0,_.wg)(),(0,_.iD)("div",rc,[(0,_.Wm)(r,(0,_.dG)({listApiInfo:n.apiInfo},t.$attrs),null,16,["listApiInfo"])])}],["__scopeId","data-v-0eb79e40"]]),dc=(t=>((0,_.dD)("data-v-18ddd9ce"),t=t(),(0,_.Cn)(),t))((()=>(0,_._)("span",null,"Explore More",-1))),pc=t=>((0,_.dD)("data-v-8a063246"),t=t(),(0,_.Cn)(),t),uc=[pc((()=>(0,_._)("div",{class:"chevron"},[(0,_._)("svg",{width:"7",height:"10",viewBox:"0 0 7 10",xmlns:"http://www.w3.org/2000/svg"},[(0,_._)("path",{d:"M6.84175 1.175L5.66675 0L0.666748 5L5.66675 10L6.84175 8.825L3.02508 5L6.84175 1.175Z",fill:"currentcolor"})])],-1)))],hc=[pc((()=>(0,_._)("div",{class:"chevron"},[(0,_._)("svg",{width:"7",height:"10",viewBox:"0 0 7 10",xmlns:"http://www.w3.org/2000/svg"},[(0,_._)("path",{d:"M0.5 1.175L1.675 0L6.675 5L1.675 10L0.5 8.825L4.31667 5L0.5 1.175Z",fill:"currentcolor"})])],-1)))],mc=["href"],gc=["srcset"],fc=["src","alt"],vc={class:"content"},bc={class:"author-wrapper"},wc=["href"],yc=["href"],kc={class:"title"};var Pc=o(26798),Oc=o(90636),_c=o(48254).default;function Ic(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Cc(t){for(var e=1;en.onClickPost&&n.onClickPost(...t)),["stop"]))},[(0,_._)("picture",null,[n.image.webpUrl?((0,_.wg)(),(0,_.iD)("source",{key:0,srcset:n.image.webpUrl,type:"image/webp"},null,8,gc)):(0,_.kq)("",!0),((0,_.wg)(),(0,_.iD)("img",{key:o.post.id,src:n.image.url,alt:o.post.title,loading:"lazy"},null,8,fc))]),(0,_._)("div",vc,[(0,_._)("div",bc,[(0,_._)("a",{class:"icon",href:n.creatorUrl,onClick:e[0]||(e[0]=(0,D.iM)((t=>n.onClickAuthor("Avatar")),["stop"]))},[n.creator.icon?((0,_.wg)(),(0,_.j4)((0,_.LL)(n.creator.icon),{key:0,size:"20"})):((0,_.wg)(),(0,_.j4)(r,{key:1,src:n.creator.avatarUrl,size:"normal"},null,8,["src"]))],8,wc),(0,_._)("a",{class:"author",href:n.creatorUrl,onClick:e[1]||(e[1]=(0,D.iM)((t=>n.onClickAuthor("User Name")),["stop"]))},(0,I.zw)(n.creator.name),9,yc)]),(0,_._)("div",kc,(0,I.zw)(o.post.title),1)])],8,mc)}],["__scopeId","data-v-66b9f9bb"]])},data:()=>({scrollStart:!0,scrollEnd:!1,scrolled:!1,hovering:!1,noChevron:!1}),watch:{posts:{handler:async function(){await this.$nextTick(),this.$refs.carousel.scrollWidth<=this.$refs.carousel.clientWidth&&(this.noChevron=!0)},immediate:!0}},props:{posts:{type:Array,required:!0},padding:{type:Boolean,default:!1},showChevron:{type:Boolean,default:!0}},computed:{},methods:{clickChevron(t){var e;null===(e=this.$refs.carousel)||void 0===e||e.scrollBy({left:232*(t?1:-1),behavior:"smooth"})},onCarouselScroll(t){t.stopPropagation(),this.scrolled||d.default.trackArticleCarouselSwiped(),this.scrolled=!0;const e=this.$refs.carousel;this.scrollEnd=e.scrollWidth-(e.scrollLeft+e.clientWidth)<1,this.scrollStart=0===e.scrollLeft},mouseover(t){this.hovering=t},stopSwipeAction(t){t.stopPropagation()}},mounted(){var t,e,o;null===(t=this.$refs.carousel)||void 0===t||t.addEventListener("scroll",this.onCarouselScroll),null===(e=this.$refs.carousel)||void 0===e||e.addEventListener("touchstart",this.stopSwipeAction),null===(o=this.$refs.carousel)||void 0===o||o.addEventListener("touchend",this.stopSwipeAction)},beforeDestroy(){var t,e,o;null===(t=this.$refs.carousel)||void 0===t||t.removeEventListener("scroll",this.onCarouselScroll),null===(e=this.$refs.carousel)||void 0===e||e.removeEventListener("touchstart",this.stopSwipeAction),null===(o=this.$refs.carousel)||void 0===o||o.removeEventListener("touchend",this.stopSwipeAction)}};o(36241);const Tc=(0,Z.Z)(xc,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("PostCarouselCard");return(0,_.wg)(),(0,_.iD)("div",{class:"post-carousel-wrapper",onMouseover:e[2]||(e[2]=t=>n.mouseover(!0)),onMouseleave:e[3]||(e[3]=t=>n.mouseover(!1))},[(0,_._)("div",{class:(0,I.C_)(["post-carousel",{hovering:s.hovering}]),ref:"carousel"},[(0,_._)("div",{class:(0,I.C_)(["post-carousel-content",{padding:o.padding}])},[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.posts,(t=>((0,_.wg)(),(0,_.j4)(r,{key:t.id,post:t},null,8,["post"])))),128))],2)],2),(0,_.wy)((0,_._)("a",{class:"chevron-wrapper left",href:"javascript:void(0)",onClick:e[0]||(e[0]=(0,D.iM)((t=>n.clickChevron(!1)),["prevent"]))},uc,512),[[D.F8,o.showChevron&&!s.scrollStart&&!s.noChevron]]),(0,_.wy)((0,_._)("a",{class:"chevron-wrapper right",href:"javascript:void(0)",onClick:e[1]||(e[1]=(0,D.iM)((t=>n.clickChevron(!0)),["prevent"]))},hc,512),[[D.F8,o.showChevron&&!s.scrollEnd&&!s.noChevron]])],32)}],["__scopeId","data-v-8a063246"]]);function Ec(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Ac(t){for(var e=1;e0&&"Article"===(null===(t=this.post)||void 0===t?void 0:t.type)},relatedArticles(){const t=this.getRelatedArticles(this.postId);return t?t.map(this.getPost):[]}}),methods:Ac({},jc({loadRelatedArticles:"LOAD_RELATED_ARTICLES"}))};o(10268);const Lc=(0,Z.Z)(Mc,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("PostCarousel");return n.showRelatedArticles?((0,_.wg)(),(0,_.iD)("div",{key:0,class:(0,I.C_)(["related-articles-wrapper",{mobile:o.mobile}])},[dc,(0,_.Wm)(r,{posts:n.relatedArticles,padding:o.mobile},null,8,["posts","padding"])],2)):(0,_.kq)("",!0)}],["__scopeId","data-v-18ddd9ce"]]),Uc={class:"post-tab-bar"},Zc={class:"post-tab-bar__container"},Rc={class:"post-tab-bar__tabs"},Nc=["onClick"],Bc={key:0,class:"post-tab-bar__count"},Hc={class:"post-tab-bar__actions"};var Vc=o(46296);const Fc={inject:["isForumPost"],props:{tabs:{type:Array,default:[]},modelValue:{type:String,default:""},stickyOffset:{type:Number,default:0},show:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1},isDesktop:{type:Boolean,default:!1}},computed:{wrapperClasses(){return{fixed:this.sticky,desktop:this.isDesktop}},stickyStyles(){if(this.sticky)return{top:`${this.stickyOffset}px`}}},methods:{clickTab(t){this.$emit("update",t.title),this.$emit("update:modelValue",t.title)},isActive(t){return t.title===this.modelValue},canShowCount:t=>(null==t?void 0:t.count)>0,getCount(t){if(this.canShowCount(t))return Vc.default.abbreviateNumber(t.count)},tabTitle(t){return"Comments"===t&&this.isForumPost?"Answers":t}}};o(99220);const $c=(0,Z.Z)(Fc,[["render",function(t,e,o,i,s,n){return(0,_.wg)(),(0,_.iD)("div",Uc,[(0,_.wy)((0,_._)("div",{class:(0,I.C_)(["post-tab-bar__wrapper",n.wrapperClasses]),style:(0,I.j5)(n.stickyStyles)},[(0,_._)("div",Zc,[(0,_._)("div",Rc,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.tabs,(t=>((0,_.wg)(),(0,_.iD)("div",{class:(0,I.C_)(["post-tab-bar__tab",{selected:n.isActive(t)}]),key:t.title,onClick:e=>n.clickTab(t)},[(0,_._)("h2",null,(0,I.zw)(n.tabTitle(t.title)),1),n.canShowCount(t)?((0,_.wg)(),(0,_.iD)("span",Bc,(0,I.zw)(n.getCount(t)),1)):(0,_.kq)("",!0)],10,Nc)))),128))]),(0,_._)("div",Hc,[(0,_.WI)(t.$slots,"actions",{},void 0,!0)])])],6),[[D.F8,o.show]])])}],["__scopeId","data-v-055faa3a"]]);var Gc=o(48254).default;const zc={props:{post:{type:Object,default:()=>({}),required:!0},isMainPost:{type:Boolean,default:!1}},methods:{handleClickTag(t){Gc.trackClickTag(t.key,"Post",this.isMainPost)}},components:{PostTagsSection:we.fj}};o(16747);const Wc=(0,Z.Z)(zc,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("PostTagsSection",!0);return(0,_.wg)(),(0,_.j4)(r,{tags:o.post.tags,onOnClickTag:n.handleClickTag},null,8,["tags","onOnClickTag"])}],["__scopeId","data-v-0b1b15d8"]]),Kc={class:"bottom-comment-composer"},qc={key:0,class:"bottom-comment-composer__container"},Yc={key:0,class:"bottom-comment-composer__button_container"};var Qc=o(37728);function Jc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Xc(t){for(var e=1;e({smallAttachment:!0}),computed:Xc(Xc({},(0,gt.rn)(Ys.cO,{composersState:"commentComposersState"})),{},{isComposerExist(){return this.composerId in this.composersState}}),methods:{toggleCollapsed(t){this.$emit("onComposerCollapsed",t)}}};o(56532);const el=(0,Z.Z)(tl,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("CommentComposer"),a=(0,_.up)("GeneralButton");return(0,_.wg)(),(0,_.iD)("div",Kc,[n.isComposerExist?((0,_.wg)(),(0,_.iD)("div",qc,[(0,_.Wm)(r,{position:"Bottom Comment Composer",composerId:o.composerId,onExpand:n.toggleCollapsed},null,8,["composerId","onExpand"]),n.isCollapsed?((0,_.wg)(),(0,_.iD)("span",Yc,[(0,_.Wm)(a,{color:"primary",round:"light",label:"Post",onClick:e[0]||(e[0]=t=>n.toggleCollapsed(!1))})])):(0,_.kq)("",!0)])):(0,_.kq)("",!0)])}],["__scopeId","data-v-1416057c"]]);var ol=o(80129),il=o.n(ol);const sl={props:{count:{type:Number,default:0},isForumPost:{type:Boolean,default:!1}},computed:{commentText(){const t="View all",e=this.isForumPost?"answer":"comment";return this.count?`${t} ${this.count} ${1===this.count?e:e+"s"}`:t}},components:{GeneralButton:we.Wo}};o(44434);const nl=(0,Z.Z)(sl,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("GeneralButton");return(0,_.wg)(),(0,_.j4)(r,{class:"comment-tab-bar__back-to-comments",color:"inherit"},{default:(0,_.w5)((()=>[(0,_.Uk)((0,I.zw)(n.commentText),1)])),_:1})}],["__scopeId","data-v-833952d4"]]);function rl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function al(t){for(var e=1;ethis.tab)),handleViewAllClick:this.handleViewAllClick,postId:this.postId,isCollapsed:(0,_.Fl)((()=>this.isCollapsed)),isForumPost:this.isForumPost}},setup:()=>({tooltipStore:(0,qs._)()}),data:()=>({openHistoryStatePosition:null,containerPadding:32,tab:wl,isTabsSticky:!1,canShowTabs:!0,isTooltipEnabled:!1,canShowCommentComposer:!1,isCollapsed:!0,commentIdHash:null}),components:{BillboardAd:ga.Z,PrimisAd:Ua,PostItem:nc,CommentSystem:(0,_.RC)((()=>o.e(261).then(o.bind(o,31759)))),RelatedPostList:lc,PostHiddenPlaceholder:we.NW,RelatedArticles:Lc,PostTabBar:$c,PostTagsSection:Wc,BottomCommentComposer:el,ViewAllCommentsButton:nl},watch:{$route(t,e){t.path!==e.path&&this.resetCommentIdHash(),this.resetState(),this.setDefaultTab()},getViewMode(t){t===Ys.WF.POST_THREAD&&this.storeCommentIdHash()}},computed:hl(hl(hl(hl(hl(hl(hl(hl(hl({},(0,gt.rn)(Ys.jd,{commentsCount:"totalCount",isListView:"isListView",getViewMode:"getViewMode"})),fl({getPost:"GET_POST"})),vl({getConfig:"GET_CONFIG"})),(0,gt.rn)(v.LM,["user","blockPosts"])),ml(["topNavHeight"])),gl({showAds:"SHOW_ADS"})),bl(["isAdBlocked"])),(0,gt.rn)(v.wm,{isUserBlockedGetter:"isUserBlocked"})),{},{postId(){return this.$route.params.postId},post(){return this.getPost(this.postId)},commentOptions(){return this.getConfig("commentOptions")},commentAuth(){return this.user.commentAuth||""},isEmbedComment(){return this.$route.name===T.Z.EMBED_COMMENT},isUserBlocked(){const{accountId:t}=this.post.creator||{};return!!t&&this.isUserBlockedGetter(t)},isPostHidden(){return"post"===this.blockPosts[this.postId]},tabs(){return[this.isThreadList?{title:kl}:{title:wl,count:this.post.commentsCount},{title:yl}]},isCommentsTab(){return this.tab===wl},isThreadTab(){return this.tab===kl},isRelatedTab(){return this.tab===yl},isThreadList(){return!!this.commentIdHash},isForumPost(){return this.post.type===ll.TYPE_FORUM_POST}}),methods:hl(hl({},(0,gt.nv)(Ys.jd,["toggleListView"])),{},{scrollTo(t,e=0){setTimeout((async()=>{await this.$nextTick();const o=this.$refs[t];if(!o)return;const i=(o instanceof HTMLElement?o:o.$el).getBoundingClientRect().top-this.topNavHeight,s=window.scrollY+i+e;s!==window.scrollY&&(window.scrollTo({top:s,behavior:"smooth"}),this.enableTooltip())}),100)},onSwitchTab(t){t===wl&&(dl.trackSwitchPostTabs("Comment Tab",this.postId),this.updateCurrentRoute("#comment")),t===yl&&(dl.trackSwitchPostTabs("Related Tab",this.postId),this.updateCurrentRoute("#related")),t===kl&&(dl.trackSwitchPostTabs("Thread Tab",this.postId),this.updateCurrentRoute(`#cs_comment_id=${this.commentIdHash}`)),this.scrollTo("tabs")},checkCanStickTabs(){const t=this.$refs.tabs.$el;if(!t)return;const e=t.getBoundingClientRect().top-this.topNavHeight,o=e>0;this.isTabsSticky?o&&this.toggleSticky(!1):e<0&&this.toggleSticky(!0)},toggleSticky(t){this.isTabsSticky=t},enableTooltip(){this.isRelatedTab||this.isTooltipEnabled||setTimeout((()=>{const t=this.tooltipStore.configs.findIndex((t=>"postRelatedTab"===t.id));this.tooltipStore.configs[t].route=this.$route.fullPath,this.isTooltipEnabled=!0}),500)},checkCanShowBottomComposer(){var t;const e=this.$refs.commentSystem,o=null==e||null===(t=e.$refs)||void 0===t?void 0:t.commentComposer;if(!e||!o||!o.$el)return;const i=o.$el.getBoundingClientRect().bottom-this.topNavHeight-70<0;this.canShowCommentComposer?i||(this.canShowCommentComposer=!1):this.canShowCommentComposer||i&&(this.canShowCommentComposer=!0)},onScroll(){this.checkCanStickTabs(),this.checkCanShowBottomComposer()},setDefaultTab(){"#related"===this.$route.hash?this.tab=yl:Vc.default.isCommentHash(this.$route.hash)?(this.setCommentTab(),this.scrollTo("tabs")):this.tab=wl},updateCurrentRoute(t){this.$router.replace({hash:t})},showSignup(){return!this.isLoggedIn&&(x.Z.$emit("Overlay::showSignup",null,Fs.uD),dl.trackTriggerSignup("Comment"),!0)},toggleCollapsed(t){this.showSignup()||(this.isCollapsed=t)},setCommentTab(){this.getCommentIdHash()?this.tab=kl:(this.commentIdHash&&(this.commentIdHash=null),this.tab=wl)},storeCommentIdHash(){this.commentIdHash=this.getCommentIdHash()},getCommentIdHash(){var t;if(this.$route.hash)return null!==(t=il().parse(this.$route.hash.substring(1)).cs_comment_id)&&void 0!==t?t:null},resetCommentIdHash(){this.commentIdHash&&this.getViewMode===Ys.WF.LIST&&(this.commentIdHash=null)},handleViewAllClick(){this.toggleToListViewMode(this.$router),this.resetCommentIdHash()},resetState(){this.canShowCommentComposer=!1}}),created(){x.Z.$on("post::toNextPost",this.nextPost),x.Z.$on("post::toPrevPost",this.prevPost),pl.addEventListener("scroll",this.onScroll),this.storeCommentIdHash(),this.setDefaultTab()},unmounted(){x.Z.$off("post::toNextPost",this.nextPost),x.Z.$off("post::toPrevPost",this.prevPost),pl.removeEventListener("scroll",this.onScroll)}},Ol=(0,Z.Z)(Pl,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("CommentSystem"),a=(0,_.up)("PostHiddenPlaceholder"),c=(0,_.up)("BillboardAd"),l=(0,_.up)("PostItem"),d=(0,_.up)("RelatedArticles"),p=(0,_.up)("ViewAllCommentsButton"),u=(0,_.up)("PostTabBar"),h=(0,_.up)("RelatedPostList"),m=(0,_.up)("BottomCommentComposer");return(0,_.wg)(),(0,_.iD)("div",Da,[n.isEmbedComment?((0,_.wg)(),(0,_.j4)(r,{key:0,post:n.post,commentAuth:n.commentAuth,commentOptions:n.commentOptions},null,8,["post","commentAuth","commentOptions"])):n.isUserBlocked?((0,_.wg)(),(0,_.j4)(a,{key:1},{default:(0,_.w5)((()=>{var t;return[(0,_.Uk)(" You’ve blocked posts from @"+(0,I.zw)(null===(t=n.post.creator)||void 0===t?void 0:t.username),1)]})),_:1})):n.isPostHidden?((0,_.wg)(),(0,_.j4)(a,{key:2},{default:(0,_.w5)((()=>[ja])),_:1})):((0,_.wg)(),(0,_.iD)(_.HY,{key:3},[t.showAds&&t.isAdBlocked?((0,_.wg)(),(0,_.j4)(c,{key:0})):(0,_.kq)("",!0),(0,_.Wm)(l,{postId:n.postId,isMainPost:!0,ref:"post"},null,8,["postId"]),(0,_.Wm)(d),(0,_.Wm)(u,{tabs:n.tabs,modelValue:s.tab,"onUpdate:modelValue":e[0]||(e[0]=t=>s.tab=t),onUpdate:n.onSwitchTab,ref:"tabs",stickyOffset:t.topNavHeight,sticky:s.isTabsSticky,show:s.canShowTabs,isDesktop:!0},(0,_.Nv)({_:2},[n.isThreadTab?{name:"actions",fn:(0,_.w5)((()=>[(0,_.Wm)(p,{count:t.commentsCount,onClick:n.handleViewAllClick,isForumPost:n.isForumPost},null,8,["count","onClick","isForumPost"])]))}:void 0]),1032,["tabs","modelValue","onUpdate","stickyOffset","sticky","show"]),(0,_.wy)((0,_._)("section",{class:(0,I.C_)(["post-comment",{"expanded-bottom-composer":!s.isCollapsed}]),ref:"commentList"},[(0,_.Wm)(r,{ref:"commentSystem",post:n.post,"comment-auth":n.commentAuth,"comment-options":n.commentOptions,onOnComposerCollapsed:n.toggleCollapsed},null,8,["post","comment-auth","comment-options","onOnComposerCollapsed"])],2),[[D.F8,!n.isRelatedTab]]),(0,_.wy)(((0,_.wg)(),(0,_.j4)(h,(0,_.dG)({key:t.$route.fullPath,ref:"postList"},t.$attrs),null,16)),[[D.F8,n.isRelatedTab]]),n.isCommentsTab||n.isThreadTab?(0,_.wy)(((0,_.wg)(),(0,_.j4)(m,{key:1,composerId:n.postId,onOnComposerCollapsed:n.toggleCollapsed},null,8,["composerId","onOnComposerCollapsed"])),[[D.F8,s.canShowCommentComposer]]):(0,_.kq)("",!0)],64))])}]]);var _l=o(6049);function Il(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Cl(t){for(var e=1;e({streamState:null}),computed:Cl({},Sl({lastPosition(t){return t.lastPositionByUrl[la.Z.getApiInfo(this.$route).url]||null}})),watch:{$route(t,e){this.streamState=null,t.path!==e.path&&"notification-award"===t.query.ref&&setTimeout((()=>{_l.n.trigger()}),300)}},components:{Post:Ol},methods:Cl(Cl({},xl({setLastPosition:"SET_LAST_POSITION"})),{},{streamVisible(t){this.streamState=t},lastPositionHandler(t,e){this.streamState&&T.Z.POST_VIEWS.includes(e.name)&&this.setLastPosition(Cl({top:window.scrollY},this.streamState))}}),async beforeRouteEnter(t,e){await la.Z.routeChangeHandler(t,e)},async beforeRouteUpdate(t,e){this.lastPositionHandler(t,e),await la.Z.routeChangeHandler(t,e)},beforeRouteLeave(t,e){this.lastPositionHandler(t,e)},mounted(){"notification-award"===this.$route.query.ref&&setTimeout((()=>{_l.n.trigger()}),300)}},El=(0,Z.Z)(Tl,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("Post");return(0,_.wg)(),(0,_.j4)(r,{ref:"post",onStreamVisible:n.streamVisible},null,8,["onStreamVisible"])}]]),Al={id:"main"},Dl={inheritAttrs:!1,components:{ListContent:ac.Z},watch:{apiInfo(){this.showBelowCommentAd=!1}},computed:{apiInfo(){return la.Z.getApiInfo(this.$route)}}},jl=(0,Z.Z)(Dl,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ListContent");return(0,_.wg)(),(0,_.iD)("div",null,[(0,_.Wm)(r,(0,_.dG)({listApiInfo:n.apiInfo},t.$attrs),null,16,["listApiInfo"])])}]]),Ml={id:"individual-post"},Ll=["id"],Ul={class:"post-container"},Zl={ref:"header"},Rl={ref:"container",class:"post-container"},Nl={key:0,class:"post-text-container"},Bl={key:0,class:"source"},Hl=(0,_.Uk)(" Source: "),Vl=["href"];var Fl=o(4572),$l=o(83155),Gl=o(89060),zl=o(48254).default;function Wl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Kl(t){for(var e=1;e({streamState:null}),watch:{$route(t){this.streamState=null}},components:{CollectionPage:od},methods:sd(sd({},nd({setLastPosition:"SET_LAST_POSITION"})),{},{streamVisible(t){this.streamState=t},lastPositionHandler(t,e){this.streamState&&T.Z.POST_VIEWS.includes(e.name)&&this.setLastPosition(sd({top:window.scrollY},this.streamState))}}),async beforeRouteEnter(t,e){await la.Z.routeChangeHandler(t,e)},async beforeRouteUpdate(t,e){this.lastPositionHandler(t,e),await la.Z.routeChangeHandler(t,e)},beforeRouteLeave(t,e){this.lastPositionHandler(t,e)}},ad=(0,Z.Z)(rd,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("CollectionPage");return(0,_.wg)(),(0,_.j4)(r,{onStreamVisible:n.streamVisible},null,8,["onStreamVisible"])}]]),cd={id:"main",class:"list-view"},ld={class:"top-container",ref:"pageHeader"},dd=["action"],pd={class:"field"},ud=["value"];var hd=o(46296).default,md=o(48254).default;const gd={mixins:[B.Z],methods:{submitSearch(t){const e=this.$refs.query.value;this.$router.push(hd.getSearchUrl(e)),this.track("Search","SubmitSearch",{Element:"SearchPageInputBox"}),md.trackPostSearch(e)}}},fd=(0,Z.Z)(gd,[["render",function(t,e,o,i,s,n){return(0,_.wg)(),(0,_.iD)("form",{id:"listview-search",action:t.$route.path,onSubmit:e[0]||(e[0]=(0,D.iM)(((...t)=>n.submitSearch&&n.submitSearch(...t)),["prevent"]))},[(0,_._)("div",pd,[(0,_._)("input",{id:"search-hero",type:"text",name:"query",ref:"query",value:t.$route.query.query},null,8,ud)])],40,dd)}]]),vd={class:"profile"},bd={class:"tab-bar"},wd={class:"menu"},yd=["href"],kd=["href"],Pd=["href"],Od={key:0},_d=["href"],Id={class:"profile-more"},Cd={key:0},Sd={key:1},xd={key:2},Td={key:3};var Ed=o(13656),Ad=o(46238),Dd=o(80502);const jd="UserAction";var Md=o(73949),Ld=o(99189),Ud=o(95918),Zd=o(48254).default;function Rd(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Nd(t){for(var e=1;e({showBlockUserConfirmModal:!1}),computed:Nd(Nd(Nd({},(0,gt.rn)(v.LM,["user","getProfile"])),(0,gt.rn)(v.wm,{isUserBlocked:"isUserBlocked"})),{},{username(){return this.$route.params.username},profile(){return this.getProfile(this.username)},viewingOtherUser(){return this.user.username!==this.username},blockData(){return{username:this.username,accountID:this.profile.accountId,entry:"Profile"}},selected(){return{posts:{selected:this.type===Ed.Z.POSTS},likes:{selected:this.type===Ed.Z.LIKES},comments:{selected:this.type===Ed.Z.COMMENTS},saved:{selected:this.type===Ed.Z.SAVED}}},canShowBlock(){return this.viewingOtherUser&&!this.isUserBlocked(this.profile.accountId)},canShowUnblock(){return this.viewingOtherUser&&this.isUserBlocked(this.profile.accountId)}}),methods:Nd(Nd(Nd({},(0,gt.nv)(v.wm,{blockUser:"blockUser",unblockUser:"unBlockUser"})),(0,gt.nv)(Gs.n,["setReport"])),{},{trackNav(t){this.track("ProfileAction",`Tap${t}`),Zd.trackProfileSorting(t)},report(){this.triggerSignup({action:Oe.iD})||this.setReport({type:Md.Z.TYPES.PROFILE,id:this.profile.username},(()=>{(0,ws.E)().showAction("User reported. You can also block this user.","Block",(()=>this.showBlockUserConfirmModal=!0))}))},block(){this.triggerSignup({action:Oe.cW})||(this.track(jd,"BlockUser"),this.showBlockUserConfirmModal=!0)},closeBlockUserConfirmModal(){this.showBlockUserConfirmModal=!1},async onBlockUser(){await this.blockUser(this.blockData),Zd.trackBlockUser(this.blockData),this.closeBlockUserConfirmModal()},unblock(){this.track(jd,"UnblockUser"),this.unblockUser(this.blockData)},async copyLink(){this.track("ProfileAction","CopyUrl"),await Ad.Z.copyText(Dd.Z.getCampaignUrl(this.profile.profileUrl,{source:"copy_link",medium:"profile_share"})),(0,ws.E)().showInfo("Link Copied.")}})};o(91095);const Hd=(0,Z.Z)(Bd,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("UserProfileHeader"),a=(0,_.up)("IconMoreMenu"),c=(0,_.up)("PopupMenu"),l=(0,_.up)("BlockUserConfirmModal");return(0,_.wg)(),(0,_.iD)("div",vd,[(0,_.Wm)(r,{profile:n.profile},null,8,["profile"]),(0,_._)("div",bd,[(0,_._)("ul",wd,[(0,_._)("li",null,[(0,_._)("a",{class:(0,I.C_)(n.selected.likes),onClick:e[0]||(e[0]=t=>n.trackNav("Upvotes")),href:t.getRoute({params:{type:"likes"}})}," Upvotes ",10,yd)]),(0,_._)("li",null,[(0,_._)("a",{class:(0,I.C_)(n.selected.posts),onClick:e[1]||(e[1]=t=>n.trackNav("Posts")),href:t.getRoute({params:{type:"posts"}})}," Posts ",10,kd)]),(0,_._)("li",null,[(0,_._)("a",{class:(0,I.C_)(n.selected.comments),onClick:e[2]||(e[2]=t=>n.trackNav("Comments")),href:t.getRoute({params:{type:"comments"}})}," Comments ",10,Pd)]),n.viewingOtherUser?(0,_.kq)("",!0):((0,_.wg)(),(0,_.iD)("li",Od,[(0,_._)("a",{class:(0,I.C_)(n.selected.saved),onClick:e[3]||(e[3]=t=>n.trackNav("Saved")),href:t.getRoute({params:{type:"saved"}})}," Saved ",10,_d)]))]),(0,_._)("div",Id,[(0,_.Wm)(c,null,{popupButton:(0,_.w5)((({active:t})=>[(0,_._)("a",{class:(0,I.C_)(["button",{active:t}]),href:"javascript:void(0);"},[(0,_.Wm)(a,{size:"16"})],2)])),popupMenu:(0,_.w5)((()=>[(0,_._)("ul",null,[(0,_._)("li",null,[(0,_._)("a",{href:"javascript:void(0);",onClick:e[4]||(e[4]=(...t)=>n.copyLink&&n.copyLink(...t))}," Copy link ")]),n.viewingOtherUser?((0,_.wg)(),(0,_.iD)("li",Cd,[(0,_._)("a",{href:"javascript:void(0);",onClick:e[5]||(e[5]=(...t)=>n.report&&n.report(...t))}," Report @"+(0,I.zw)(n.username),1)])):(0,_.kq)("",!0),n.canShowBlock?((0,_.wg)(),(0,_.iD)("li",Sd,[(0,_._)("a",{href:"javascript:void(0);",onClick:e[6]||(e[6]=(...t)=>n.block&&n.block(...t))},"Block @"+(0,I.zw)(n.username),1)])):n.canShowUnblock?((0,_.wg)(),(0,_.iD)("li",xd,[(0,_._)("a",{href:"javascript:void(0);",onClick:e[7]||(e[7]=(...t)=>n.unblock&&n.unblock(...t))}," Unblock @"+(0,I.zw)(n.username),1)])):((0,_.wg)(),(0,_.iD)("li",Td,[(0,_._)("a",{href:"/settings/profile",onClick:e[8]||(e[8]=e=>t.track("ProfileAction","TapEditProfile"))}," Edit profile ")]))])])),_:1})])]),s.showBlockUserConfirmModal?((0,_.wg)(),(0,_.j4)(l,{key:0,username:n.username,onOnBlock:n.onBlockUser,onOnCancel:n.closeBlockUserConfirmModal},null,8,["username","onOnBlock","onOnCancel"])):(0,_.kq)("",!0)])}],["__scopeId","data-v-4b7f8452"]]);var Vd=o(15775);const Fd={class:"post-list-tag"};var $d=o(42064),Gd=o(21287),zd=o(48254).default;const Wd={mixins:[B.Z],props:{tags:Array,type:String},computed:{ref:()=>"featured-tag"},methods:{onTagClick(t){const e=`${this.ref}-label`;this.track("PostList","ViewFeaturedTag",{[e]:t.key}),zd.trackClickTag(t.key,$d.Z.FEATURED,!1)}},components:{Tag:Gd.Z}};o(23878);const Kd=(0,Z.Z)(Wd,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("Tag");return(0,_.wg)(),(0,_.iD)("div",Fd,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.tags,(t=>((0,_.wg)(),(0,_.j4)(r,{tag:t,onOnClick:e=>n.onTagClick(t),highlighted:!1,urlRef:n.ref},null,8,["tag","onOnClick","urlRef"])))),256))])}],["__scopeId","data-v-43340a4e"]]);var qd=o(86587);const Yd={class:"home-tab-bar"},Qd={class:"home-tab-bar__container"},Jd={key:0,class:"home-tab-bar__extra"},Xd={class:"home-tab-bar__tabs"},tp=["onClick"],ep={key:0,class:"home-tab-bar__count"},op={key:1,class:"home-tab-bar__extra"},ip={props:{tabs:{type:Array,default:[]},modelValue:{type:String,default:""},stickyOffset:{type:Number,default:0},isDesktop:{type:Boolean,default:!1}},computed:{wrapperClasses(){return{desktop:this.isDesktop}}},methods:{clickTab(t){this.$emit("update",t.key),this.$emit("update:modelValue",t.key)},isActive(t){return t.key===this.modelValue},canShowCount:t=>(null==t?void 0:t.count)>0,getCount(t){if(this.canShowCount(t))return Vc.default.abbreviateNumber(t.count)}}};o(4982);const sp=(0,Z.Z)(ip,[["render",function(t,e,o,i,s,n){return(0,_.wg)(),(0,_.iD)("div",Yd,[(0,_._)("div",{class:(0,I.C_)(["home-tab-bar__wrapper",n.wrapperClasses])},[(0,_._)("div",Qd,[o.isDesktop?(0,_.kq)("",!0):((0,_.wg)(),(0,_.iD)("div",Jd,[(0,_.WI)(t.$slots,"default",{},void 0,!0)])),(0,_._)("div",Xd,[((0,_.wg)(!0),(0,_.iD)(_.HY,null,(0,_.Ko)(o.tabs,(t=>((0,_.wg)(),(0,_.iD)("div",{class:(0,I.C_)(["home-tab-bar__tab",{selected:n.isActive(t)}]),key:t.key,onClick:e=>n.clickTab(t)},[(0,_._)("h2",null,(0,I.zw)(t.title),1),n.canShowCount(t)?((0,_.wg)(),(0,_.iD)("span",ep,(0,I.zw)(n.getCount(t)),1)):(0,_.kq)("",!0)],10,tp)))),128))]),o.isDesktop?(0,_.kq)("",!0):((0,_.wg)(),(0,_.iD)("div",op,[(0,_.WI)(t.$slots,"default",{},void 0,!0)]))])],2)])}],["__scopeId","data-v-8ae56474"]]);function np(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function rp(t){for(var e=1;e({tab:"home"}),watch:{$route(){this.setTabFromRoute()}},computed:rp(rp(rp({},ap(["topNavHeight"])),(0,gt.rn)(v.LM,["isLoggedIn"])),{},{tabs:()=>[{key:"home",title:"Home",url:"/home"},{key:"top",title:"Top",url:"/top"},{key:"trending",title:"Trending",url:"/trending"},{key:"fresh",title:"Fresh",url:"/fresh"},{key:"forum",title:"Ask 9GAG",url:"/forum"}]}),methods:{onSwitchTab(t){const e=this.tabs.find((e=>e.key===t));d.default.trackHomeSorting(e.title),this.$router.push({path:e.url})},setTabFromRoute(){const t=this.tabs.find((t=>t.url===this.$route.path));this.tab=(null==t?void 0:t.key)||"home"}},mounted(){this.setTabFromRoute()},components:{HomeTabBar:sp}},dp=(0,Z.Z)(lp,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("HomeTabBar");return(0,_.wg)(),(0,_.j4)(r,{tabs:n.tabs,modelValue:s.tab,"onUpdate:modelValue":e[0]||(e[0]=t=>s.tab=t),onUpdate:n.onSwitchTab,ref:"tabs",stickyOffset:t.topNavHeight,isDesktop:!0},null,8,["tabs","modelValue","onUpdate","stickyOffset"])}]]);var pp=o(48291);function up(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function hp(t){for(var e=1;e({tagStore:(0,Je.v)()}),data:()=>({streamState:null,headerHeight:0}),watch:{$route(){this.streamState=null,this.$nextTick((()=>{this.updateHeaderHeight()}))}},computed:hp(hp(hp({},(0,gt.rn)(v.wm,{isUserBlockedGetter:"isUserBlocked"})),(0,gt.rn)(v.LM,["getProfile"])),{},{profile(){return this.$route.params.username?this.getProfile(this.$route.params.username):null},isUserBlocked(){return this.profile?this.isUserBlockedGetter(this.profile.accountId):null},showSearchNav(){return this.$route.name===T.Z.SEARCH_POST_LIST},showProfileNav(){return this.$route.name===T.Z.USER_LIST},showHomeListTabs(){return this.$route.name===T.Z.HOME_POST_LIST}}),methods:hp(hp({},mp({setLastPosition:"SET_LAST_POSITION"})),{},{streamVisible(t){this.streamState=t},lastPositionHandler(t,e){this.streamState&&T.Z.LIST_VIEWS.includes(e.name)&&this.setLastPosition(hp({top:window.scrollY},this.streamState))},updateHeaderHeight(){this.$refs.pageHeader&&(this.headerHeight=this.$refs.pageHeader.offsetHeight)}}),async beforeRouteEnter(t,e){await la.Z.routeChangeHandler(t,e)},async beforeRouteUpdate(t,e){this.lastPositionHandler(t,e),await la.Z.routeChangeHandler(t,e)},beforeRouteLeave(t,e){this.lastPositionHandler(t,e)},mounted(){this.updateHeaderHeight()},components:{ListContent:ac.Z,VerifyEmail:Vd.Z,PostListTag:Kd,SearchNavBar:fd,ProfileNavBar:Hd,ProfileBlankState:qd.Z,BlockProfilePlaceholder:pp.Z,HomeListTabs:dp}},fp=(0,Z.Z)(gp,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("HomeListTabs"),a=(0,_.up)("ProfileNavBar"),c=(0,_.up)("SearchNavBar"),l=(0,_.up)("VerifyEmail"),d=(0,_.up)("PostListTag"),p=(0,_.up)("BlockProfilePlaceholder"),u=(0,_.up)("ProfileBlankState"),h=(0,_.up)("ListContent");return(0,_.wg)(),(0,_.iD)("div",cd,[(0,_._)("div",ld,[n.showHomeListTabs?((0,_.wg)(),(0,_.j4)(r,{key:0})):n.showProfileNav?((0,_.wg)(),(0,_.j4)(a,{key:1})):n.showSearchNav?((0,_.wg)(),(0,_.j4)(c,{key:2})):(0,_.kq)("",!0),(0,_.Wm)(l),i.tagStore.getPostTags.length>0?((0,_.wg)(),(0,_.j4)(d,{key:3,tags:i.tagStore.getPostTags},null,8,["tags"])):(0,_.kq)("",!0)],512),(0,_._)("div",null,[n.isUserBlocked?((0,_.wg)(),(0,_.j4)(p,{key:0,username:n.profile.username},null,8,["username"])):((0,_.wg)(),(0,_.j4)(h,{key:1,onStreamVisible:n.streamVisible,headerHeight:s.headerHeight},(0,_.Nv)({_:2},[n.showProfileNav?{name:"blank-state",fn:(0,_.w5)((()=>[(0,_.Wm)(u)]))}:void 0]),1032,["onStreamVisible","headerHeight"]))])])}]]),vp={id:"signup"},bp=(0,_._)("h2",null,"Log in",-1),wp={components:{Login:zi}},yp=(0,Z.Z)(wp,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("Login");return(0,_.wg)(),(0,_.iD)("section",vp,[bp,(0,_.Wm)(r)])}]]),kp={id:"signup"},Pp=(0,_._)("h2",null,"Forgot password",-1),Op={components:{ForgotPassword:_s}},_p=(0,Z.Z)(Op,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("ForgotPassword");return(0,_.wg)(),(0,_.iD)("section",kp,[Pp,(0,_.Wm)(r)])}]]),Ip={id:"signup"},Cp={data:()=>({displayEmail:!1,stepAge:!1}),components:{Signup:Ji,SignupEmail:ms},computed:{title(){return this.stepAge?"Verify your age":"Sign up"}},methods:{showLogin(){this.$router.push("login")},showSignupEmail(){this.displayEmail=!0}},async mounted(){await this.$router.isReady(),this.$route.query&&"email"===this.$route.query.method&&(this.displayEmail=!0)}},Sp=(0,Z.Z)(Cp,[["render",function(t,e,o,i,s,n){const r=(0,_.up)("Signup"),a=(0,_.up)("SignupEmail");return(0,_.wg)(),(0,_.iD)("section",Ip,[s.displayEmail?((0,_.wg)(),(0,_.iD)(_.HY,{key:1},[(0,_._)("h2",null,(0,I.zw)(n.title),1),(0,_.Wm)(a,{stepAge:s.stepAge,"onUpdate:stepAge":e[0]||(e[0]=t=>s.stepAge=t)},null,8,["stepAge"])],64)):((0,_.wg)(),(0,_.j4)(r,{key:0}))])}]]),xp={mounted(){xt().showDropDown()}},Tp=(0,Z.Z)(xp,[["render",function(t,e,o,i,s,n){return null}]]);var Ep=o(33604),Ap=o(83678),Dp=o(53441).default,jp=o(86655).default;const Mp=()=>o.e(310).then(o.bind(o,94369)),Lp=()=>o.e(693).then(o.bind(o,56497)),Up=(0,Aa.p7)({history:(0,Aa.PO)(),routes:[{path:"/gag/:postId/:title?",component:El,name:T.Z.POST},{path:"/collection/:postId/:title?",component:ad,name:T.Z.COLLECTION_PAGE},{path:"/embed-comment/:postId",component:El,name:T.Z.EMBED_COMMENT},{path:"/u/:username/:type(posts|likes|comments|saved)?",component:fp,name:T.Z.USER_LIST},{path:"/tag/:tag/:type(hot|fresh)?",component:Lp,name:T.Z.TAG_POST_LIST},{path:"/search",component:fp,name:T.Z.SEARCH_POST_LIST},{path:"/login",component:yp,name:T.Z.LOGIN},{path:"/signup",component:Sp,name:T.Z.SIGNUP},{path:"/recover",component:_p,name:T.Z.FORGOT_PASSWORD},{path:"/submit",component:()=>o.e(922).then(o.bind(o,23432)),name:T.Z.UPLOAD},{path:"/notifications",component:Tp,name:T.Z.NOTIFICATIONS},{path:"/member/social-transfer",component:()=>o.e(310).then(o.bind(o,28989)),name:T.Z.SOCIAL_TRANSFER},{path:"/member/delete",component:Mp,name:T.Z.SETTINGS_DELETE_ACCOUNT},{path:"/settings/:type(profile|password|account|email|privacy|do-not-sell|opt-out-iba|content)?",component:Mp,name:T.Z.SETTINGS},{path:"/interest/:interest/:type(hot|fresh|forum)?",component:Lp,name:T.Z.INTEREST_POST_LIST},{path:"/:type(home|fresh|trending|top|forum)?",component:fp,name:T.Z.HOME_POST_LIST}],scrollBehavior(t,e,o){const i=!!o;e.name!==T.Z.USER_LIST||[T.Z.POST,T.Z.COLLECTION_PAGE].includes(t.name)||mt.Z.dispatch("post/CLEAR_LIST_POSTS",e);const s=mt.Z.state.post.lastPositionByUrl[la.Z.getApiInfo(t).url];if(s){const e={top:s.top,left:0};if(T.Z.LIST_VIEWS.includes(t.name))return e;if(i&&T.Z.POST_VIEWS.includes(t.name))return new Promise((t=>setTimeout((()=>t(e)),500)))}return t.hash?{selector:t.hash.split("=")[0]}:{top:0,left:0}}});(0,Ap.Z)(mt.Z,Up),Up.afterEach(((t,e)=>{(0,_.Y3)((()=>{let e=t.hash.substr(1);0===e.indexOf("cs_comment_id")&&(e="comment"),setTimeout((()=>{const t=document.getElementById(e);t&&Dp.scrollTo(t.offsetTop)}),100)}))})),Up.beforeEach(((t,e)=>{var o,i;e.path===t.path&&(null===(o=e.query)||void 0===o?void 0:o.query)===(null===(i=t.query)||void 0===i?void 0:i.query)||m.Z.destroyAll()})),Up.afterEach(((t,e)=>{if(mt.Z.dispatch(`session/${ye.R5.SET_SESSION_ACTIVE}`),mt.Z.dispatch(`session/${ye.R5.CHECK_SESSION_REFERRAL}`),(0,b.k)().onRouteChange(t,e),Ep.Z.finish(),(0,v.LM)().consumeBlockPostsQueue(),m.Z.changePage(!0),null!=e.name){switch(x.Z.$emit("nav::hideMenu"),h.Z.reset(),mt.Z.dispatch("config/CLEAR_HYDRATION"),t.name){case T.Z.HOME_POST_LIST:Et.setPageType(t.params.type);break;case T.Z.POST:case T.Z.COLLECTION_PAGE:const{title:e}=mt.Z.getters["post/GET_POST"](t.params.postId);e&&Et.setPageType("post",e);break;case T.Z.INTEREST_POST_LIST:const{name:o}=(0,Je.v)().getInterest(t.params.interest);o&&Et.setPageType("interest",o);break;case T.Z.TAG_POST_LIST:const{key:i}=(0,Je.v)().getTagNav;i&&Et.setPageType("tag",i);break;case T.Z.USER_LIST:const{fullName:s}=(0,v.LM)().getProfile(t.params.username);s&&Et.setPageType("user",s);break;default:Et.setPageType()}t.name===T.Z.UPLOAD&&e.name!==T.Z.UPLOAD&&((0,$s.c)().routeBeforeUploadPage=e),t.path===e.path&&t.hash!==e.hash||jp.trackPageView(t.fullPath)}}));const Zp=Up,{config:Rp,data:Np}=window._config||{};mt.Z.dispatch("config/INIT_CONFIG",{data:Np,config:Rp}),Rp.appEmbed||(O.init(Rp.facebook),h.Z.init(Rp.ad||{}),i.default.init(Rp.trackOptions),u.Z.afterLoad((()=>i.default.reportPerf())),l.init(Rp.firebaseConfig),c.init(Rp.facebookPixel||{}),r.ZP.init(Rp.onetrustCMP||{}),d.default.init(Rp.mixpanel||{},Zp),p.Z.init(Rp.helpshift||{}));const Bp=(0,gt.WB)();Bp.use(xa.Z);const Hp=(t,e,o=[],i={})=>{if(!t||""===t.dataset.vApp)return;const s=(0,D.ri)(e);o.forEach((t=>s.use(t))),Object.entries(i).forEach((([t,e])=>s.component(t,e))),s.config.errorHandler=(t,e,o)=>{n.report(t)},s.config.unwrapInjectedRef=!0,s.mount(t)};Hp(document.getElementById("jsid-app"),Ca,[mt.Z,Zp,Ea(),Bp],{PostContent:Sa.Z}),Rp.appEmbed||(m.Z.init(),g.Z.init()),Hp(document.getElementById("jsid-toast"),jr,[mt.Z,Ea(),Bp]),window.addEventListener("error",(t=>{n.report(t.error)}))},27421:(t,e,o)=>{o.p=window._config.config.staticAssetPath},48267:(t,e,o)=>{"use strict";o.d(e,{Z:()=>n});var i=o(13656),s=o(97554);const n={computed:{type(){let t=this.$route.name===s.Z.HOME_POST_LIST?i.Z.HOME:i.Z.HOT;return this.$route.name===s.Z.USER_LIST&&(t=i.Z.LIKES),this.$route.params.type||t}},methods:{getRoute({name:t=null,params:e={},query:o={}}){return this.$router.resolve({name:t||this.$router.name,params:e,query:o}).href},getPostRoute(t,e={}){return this.$router.resolve({name:s.Z.POST,params:{postId:t},query:e}).href}}}},89466:(t,e,o)=>{"use strict";o.d(e,{Z:()=>u});var i=o(86655),s=o(97554),n=o(73949),r=o(3058),a=o(73726),c=o(42550);const l={facebook:"Facebook",twitter:"Twitter",pinterest:"Pinterest",whatsapp:"Whatsapp",telegram:"Telegram",messenger:"Facebook_Messenger",email:"email",copy:"copy_link"};var d=o(80502),p=o(46296).default;const u={setup(){const{isMainPost:t}=(0,c.Z)();return{isMainPost:t}},methods:{getShareTrackingParams(t){const e=this.postId,o=this.isMainPost?"p":"l";return`social,${l[t]},,,d,${e},${o}`},getShareEventParams(t){const e=(0,a.k)().pageKey,o=this.postId;return`${"Post"===e?"PostAction":"PostList"},ShareSocial,${"Post"===e&&o?o:e},,${p.capitalize(t)}Button`},getShareTitle(t){return encodeURI(this.postTitle)},getShareUrl(t){const e=l[t];if(this.isCollectionPage)return e?d.Z.getCampaignUrl(this.post.url,{source:e,medium:"post_share"}):this.post.url;const o=this.$router.resolve({name:s.Z.POST,params:{postId:this.postId},query:{}}),i=document.location.origin+o.href;return e?d.Z.getCampaignUrl(i,{source:e,medium:"post_share"}):i},getEmailShareUrl(t,e){const o=`This is funny, you must check it out! :D\n${t}\n${this.getShareUrl("email",e)}`;return`mailto:?subject=${encodeURI(`Check out "${t}"`)}&body=${encodeURI(o)}`},openShareWindow(t){const e=window.screen.height/2-230,o=window.screen.width/2-320;window.open(t,"Share","status=1,height=460,width=640,top="+e+",left="+o+",resizable=0")},reportEntry(t,e){const o=e?"PostAction":"PostList";i.default.track(o,"TapReport",t),(0,r.n)().setReport({type:n.Z.TYPES.POST,id:t})}}}},68209:(t,e,o)=>{"use strict";o.d(e,{Z:()=>n});var i=o(86655),s=o(73726);const n={methods:{track(t,e,o){i.default.track(t,e,(0,s.k)().pageKey,"",o)},trackLabel(t,e,o,s){i.default.track(t,e,o,"",s)}}}},55384:(t,e,o)=>{"use strict";o.d(e,{Z:()=>d});var i=o(96156),s=o(18779),n=o(26388),r=o(84157),a=o(33360),c=o(48254).default;function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const d={computed:function(t){for(var e=1;e{"use strict";o.d(e,{Z:()=>r});var i=o(55407),s=o(92289).default,n=o(49012).default;const r={data:()=>({adTags:[],adObserver:null,observedAds:{},renderedAds:{},adRefresh:null}),watch:{$route(){this.resetAd()}},methods:{getAdContainers(t){const e=[];return this.adTags.forEach((o=>{const s=i.Z.getAdContainer(o,t);s&&e.push(s)})),e},createAdObserver(){},observeAd(t,e,o){this.observedAds[e.adContainerId]||(this.adObserver||(this.adObserver=this.createAdObserver()),this.adObserver.observe(t),this.observedAds[e.adContainerId]={adContainer:e,renderCallback:o})},adIntersectHandler(t){t.forEach((t=>{if(!(t.visibilityStatus===s.VISIBILITY_STATUS.enter||t.intersectionRatio>0))return;const{adContainer:e,renderCallback:o}=this.observedAds[t.domId]||{};e&&this.renderAd(e,o)}))},renderAd(t,e){this.renderedAds[t.adContainerId]||(i.Z.renderAd(t,{renderCallback:e}),this.renderedAds[t.adContainerId]=!0,this.createAdRefresh())},createAdRefresh(){this.clearAdRefresh(),this.adRefresh=setInterval(this.refreshVisibleAds.bind(this),3e4)},clearAdRefresh(){this.adRefresh&&(clearInterval(this.adRefresh),this.adRefresh=null)},refreshVisibleAds(){if(!this.adObserver)return;const t=this.adObserver.getSortedVisibleItems(.5).map((t=>t.domId));for(const e of t){const{adContainer:t}=this.observedAds[e]||{},o=this.renderedAds[e];t&&o&&i.Z.refreshAd(t)}},unobserveAd(t,e){i.Z.destroyAd(e),this.adObserver&&this.adObserver.unobserve(t);const o=e.adContainerId;this.observedAds[o]=null,this.renderedAds[o]=null},resetAd(){this.adObserver&&(this.adObserver.destroy(),this.adObserver=null),this.observedAds={},this.renderedAds={},this.clearAdRefresh()},visibilityChange(){switch(document.visibilityState){case"visible":this.createAdRefresh();break;case"hidden":this.clearAdRefresh()}}},created(){n.addEventListener("visibilitychange",this.visibilityChange)},unmounted(){this.resetAd(),n.removeEventListener("visibilitychange",this.visibilityChange)}}},22922:(t,e,o)=>{"use strict";o.d(e,{Z:()=>l});var i=o(96156),s=o(32204),n=o(71652).default;function r(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function a(t){for(var e=1;e{"use strict";o.d(e,{Z:()=>h});var i=o(96156),s=o(89466),n=o(22922),r=o(68209),a=o(48254),c=o(46238),l=o(32204),d=o(23376);function p(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const{mapGetters:u}=(0,l._p)("config"),h={mixins:[s.Z,n.Z,r.Z],data:()=>({sharePosition:null}),computed:function(t){for(var e=1;e{"use strict";o.d(e,{Z:()=>r});var i=o(96156);function s(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function n(t){for(var e=1;e{"use strict";o.d(e,{Z:()=>f});var i=o(96156),s=o(57437),n=o(2354),r=o(97554),a=o(84564),c=o.n(a),l=o(33604),d=o(1040),p=o(33360),u=o(73726);function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function m(t){for(var e=1;e!o[t]&&delete o[t])),t.name){case r.Z.POST:i=`/related-posts?id=${o.postId}`;break;case r.Z.COLLECTION_PAGE:i=`/collection-posts?id=${o.postId}`;break;case r.Z.HOME_POST_LIST:({type:s="home"}=o),n="home"===s?"feed":"group",i=`/${n}-posts/type/${s}`;break;case r.Z.INTEREST_POST_LIST:const{interest:t}=o;({type:s="hot"}=o),i=`/interest-posts/interest/${t}/type/${s}`;break;case r.Z.TAG_POST_LIST:let a;({tag:a,type:s="hot"}=o),i=`/tag-posts/tag/${encodeURIComponent(a)}/type/${s}`;break;case r.Z.USER_LIST:let c;({username:c,type:s="likes"}=o),i=`/user-posts/username/${c}/type/${s}`;break;case r.Z.SEARCH_POST_LIST:i=e.query?`/search-posts?query=${e.query}`:null}return{url:i,name:t.name,params:o,pageKey:(0,u.k)().getPageKey(t)}}doHydrate(t){const{name:e,params:o}=t,{type:i,tag:s}=o;return!!(e!==r.Z.HOME_POST_LIST||i&&"home"!==i||s)}async hydrate(t,e){return!(null!=e.name||!this.doHydrate(t)||(await d.Z.dispatch("post/HYDRATE"),0))}async routeChangeHandler(t,e){const{postIdsByUrl:o,posts:i}=d.Z.state.post,s=this.getApiInfo(t),n=s.url;if(n||t.name!==r.Z.EMBED_COMMENT||await this.hydrate(t,e),n&&!i[t.params?t.params.postId:null]){if(await d.Z.dispatch("post/SET_CURRENT_API_INFO",s),t.name===r.Z.COLLECTION_PAGE)return await this.hydrate(t,e),void await d.Z.dispatch("post/LOAD_POSTS",{apiInfo:s});o[n]||await this.hydrate(t,e)||(l.Z.show(),null==e.name&&!(0,p.LM)().isUserInitCompleted&&(await(0,p.LM)().waitForUserInit(),await this.hydrate(t,e))||(await d.Z.dispatch("post/LOAD_POSTS",{apiInfo:s}),o[n]||(window.location.href=t.fullPath)))}}_transformPost(t){if((t=m(m({},t),this._transformMedia(t))).shareUrl=t.url.replace("http:","https:"),t.article&&t.article.medias){const e={};for(const[o,i]of Object.entries(t.article.medias))e[o]=m(m({},i),this._transformMedia(i));t.article=m(m({},t.article),{},{medias:e})}return t}_transformMedia(t){const{image460sv:e={}}=t.images||{};return{hasAudio:!!e.hasAudio,hasVp9:!!e.vp9Url,hasH265:!!e.h265Url,hasAV1:!!e.av1Url}}getSocialShare(t){return{fbUrl:this._fbShare(t),pinterestUrl:this._pinterestShare(t),twitterUrl:this._twitterShare(t),emailUrl:this._emailShare(t),whatsappUrl:this._whatsappShare(t),telegramUrl:this._telegramShare(t),messengerUrl:this._messengerShare(t)}}_getShareUrl(t,e){let o={facebook:"fb.s",twitter:"t",pinterest:"pn",email:"9g.m",whatsapp:"wsa",telegram:"tgm",messenger:"fbm"}[t]||null;return o?`${e}?ref=${o}.mw`:e}_fbShare({shareUrl:t}){return`https://www.facebook.com/sharer/sharer.php?u=${this._getShareUrl("facebook",t)}`}_pinterestShare({shareUrl:t,images:e,title:o}){const i=this._getShareUrl("pinterest",t),s=e.image700?e.image700.url:"",n=encodeURI(o);return"//pinterest.com/pin/create/button/?url="+encodeURIComponent(i)+"&media="+encodeURIComponent(s)+"&description="+n}_twitterShare({shareUrl:t,title:e}){const o=encodeURIComponent(this._getShareUrl("twitter",t));return`https://twitter.com/intent/tweet?original_referer=${o}&source=tweetbutton&text=${encodeURI(e)}&url=${o}&via=9GAG`}_emailShare({shareUrl:t,title:e}){const o=`This is funny, you must check it out! :D\n${e}\n${this._getShareUrl("email",t)}`;return`mailto:?subject=${encodeURI(`Check out "${e}"`)}&body=${encodeURI(o)}`}_whatsappShare({shareUrl:t,title:e}){const o=encodeURIComponent(` \n${this._getShareUrl("whatsapp",t)}`);return`https://api.whatsapp.com/send?text=${encodeURI(e)}${o}`}_telegramShare({shareUrl:t,title:e}){const o=encodeURIComponent(this._getShareUrl("telegram",t));return`https://t.me/share/url?text=${encodeURI(e)}&url=${o}`}_messengerShare({shareUrl:t,title:e}){return`fb-messenger://share/?link=${encodeURIComponent(this._getShareUrl("messenger",t))}`}transformPostData(t){const e=t.posts?t.posts.map((e=>m(m({},this._transformPost(e)),{},{feedId:t.feedId}))).filter(this.checkPostByMuteList).filter(this.checkPostByBlockTags):void 0,o=t.post?this._transformPost(t.post):void 0;return m(m({},t),{},{posts:e,post:o})}async getListPosts(t,e){var o;const i=t.url,n=new(c())(`/v1${i}`);e&&n.set("query",e);let a="get";(t.name===r.Z.USER_LIST||(null==i?void 0:i.indexOf("feed-posts"))>-1&&(0,p.LM)().isLoggedIn)&&(a="post");const l=await s.Z[a](n.toString());return this.transformPostData((null===(o=l.data)||void 0===o?void 0:o.data)||{})}async getRelatedPosts(t,e){var o;const i=new(c())(`/v1${t}`);e&&i.set("query",e);const n=await s.Z.get(i.toString()),{post:r,posts:a,after:l}=this.transformPostData((null===(o=n.data)||void 0===o?void 0:o.data)||{});return{post:r,after:l,posts:a}}async uploadPost(t){return(await s.Z.post("/submit",t)).data}transformCustomConfig(t){const e=["profileBackgroundColor","profilePrimaryTextColor","profileSecondaryTextColor","buttonBackgroundColor","buttonTextColor","ctaButtonName","ctaButtonUrl","imageUrl","webpUrl","bannerUrl","bannerWebpUrl","backgroundImageUrl","backgroundImageWebpUrl","description"],o=t.tag||t.interest,i={};return e.forEach((t=>{i[t]=""})),o&&e.forEach((t=>{i[t]=o[t]||""})),i}checkPostByMuteList(t){const e=(0,p.LM)().userInfo.muteList;return 0===e.length||!new RegExp(`\\b(${e.join("|")})\\b`,"i").test(t.title)}checkPostByBlockTags(t){const e=(0,p.LM)().userInfo.blockTags.map((t=>t.toLowerCase()));return 0===e.length||!t.tags.find((t=>e.includes(t.key.toLowerCase())))}}const f=new g},1040:(t,e,o)=>{"use strict";o.d(e,{Z:()=>V});var i=o(32204),s=o(97554),n=o(11186),r=o(4907),a=o(44356),c=o(69432).default,l=o(40024),d=o(59377),p=o(27361),u=o.n(p),h=o(84702);const m=(t,e=null)=>(t.assertStorage=()=>{},t.setState=(t,o,i)=>{e&&(o.expiry=Date.now()+1e3*e);try{return i.setItem(t,JSON.stringify(o))}catch(t){if(t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&i&&0!==i.length)throw i.clear(),t}},t.getState=(t,o)=>{try{const i=o.getItem(t),s="string"==typeof i?JSON.parse(i):"object"==typeof i?i:void 0;if(s){if(!e)return s;if(Date.now()t.type.startsWith("privacy/")});var f=o(96156),v=o(89162),b=o(29962),w=o(94165),y=o(80129),k=o.n(y),P=o(33360),O=o(81573);function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function I(t){for(var e=1;et.type.startsWith("session/")},3600),S=m({key:"supportState",paths:["session.helpshift.startTs"],filter:t=>t.type.startsWith("session/updateHelpshift")},604800);var x=o(68316),T=o(57437);class E extends x.g{getConfig(){return t=this,e=void 0,i=function*(){const{data:t}=yield T.Z.post("/v1/config");return t.data},new((o=void 0)||(o=Promise))((function(s,n){function r(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(r,a)}c((i=i.apply(t,e||[])).next())}));var t,e,o,i}}const A=new E;var D=o(17375),j=o(12267),M=o(31004),L=o(86655),U=o(81447),Z=o(47526);const R=["url"];function N(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function B(t){for(var e=1;e["app/setDarkMode"].includes(t.type)}),g,C,S],V=(0,i.MT)({modules:{app:function(){const t="sign_up_referer";return{namespaced:!0,state:{drawer:!0,darkMode:null,topNavHeight:48,supportsH264:c.supportsH264(),supportsH265:c.supportsH265(),supportsVP9:c.supportsVP9(),supportsAV1:c.supportsAV1()},getters:{NSFW_ADS(t,e,o,i){const{route:n}=o;return!(![s.Z.TAG_POST_LIST].includes(n.name)||!(0,a.v)().getTagNav.isSensitive)||!(![s.Z.INTEREST_POST_LIST].includes(n.name)||!(0,a.v)().getInterest(n.params.interest).isSensitive)},NSFW_POST(t,e,o,i){const{route:n}=o;return!(![...s.Z.POST_VIEWS].includes(n.name)||!i["post/GET_POST"](n.params.postId).nsfw)},SHOW_ADS(t,e,o,i){if(!n.Z.supportAds())return!1;const{route:r}=o;return(![...s.Z.POST_VIEWS].includes(r.name)||!i["post/GET_POST"](r.params.postId).nsfw)&&[...s.Z.MAIN_LISTS,...s.Z.POST_VIEWS].includes(r.name)},GET_DARK_MODE:t=>null===t.darkMode?n.Z.isDarkMode():t.darkMode},mutations:{setDarkMode(t,e){t.darkMode=e},UPDATE_DRAWER(t,e){t.drawer=e}},actions:{TOGGLE_DARK_MODE({dispatch:t,getters:e}){t("SET_DARK_MODE",!e.GET_DARK_MODE)},SET_DARK_MODE({commit:t,dispatch:e},o){t("setDarkMode",o),e("REFRESH_DARK_MODE")},REFRESH_DARK_MODE({getters:t}){const e=t.GET_DARK_MODE?"add":"remove";document.body.classList[e]("theme-dark"),document.documentElement.classList[e]("html-dark")},async UPDATE_SIGNUP_REFERRER({rootGetters:e}){r.U2(t)||r.t8(t,document.referrer,{domain:e["config/COOKIE_DOMAIN"],expires:365,path:"/"})}}}}(),privacy:{namespaced:!0,state:{adBlocked:null,googleNpa:!1,doNotSell:!1,privacyCheck:null,dismissCCPABanner:!1},getters:{isAdBlocked:t=>!!t.adBlocked,isCCPARegion:t=>u()(t,"privacyCheck.ccpa",!1),getCCPARegionCode:t=>u()(t,"privacyCheck.regionCode",null),googleRdp:(t,e)=>e.isCCPARegion&&t.doNotSell,showCCPABanner:(t,e)=>e.isCCPARegion&&!t.dismissCCPABanner},mutations:{setAdBlocked(t,e){t.adBlocked=e},setGoogleNpa(t,e){t.googleNpa=e},setDoNotSell(t,e){t.doNotSell=e},setPrivacyCheck(t,e){t.privacyCheck=e},dismissCCPABanner(t,e){t.dismissCCPABanner=e}},actions:{[l.Lm.SET_AD_BLOCKED]({commit:t,state:e},o){if(o===e.adBlocked)return!1;const i=null===e.adBlocked;return t("setAdBlocked",o),!i},[l.Lm.SET_DO_NOT_SELL]({commit:t,dispatch:e},o){t("setDoNotSell",o),e(l.Lm.UPDATE_CCPA_COOKIE)},async[l.Lm.INIT_PRIVACY_CHECK]({commit:t,state:e,dispatch:o}){n.Z.afterLoad((async()=>{const i=await d.Z.check(e.privacyCheck);i&&t("setPrivacyCheck",i),o(l.Lm.UPDATE_CCPA_COOKIE)}))},[l.Lm.UPDATE_CCPA_COOKIE]({state:t,getters:e}){d.Z.updateCCPACookie(e.isCCPARegion,t.dismissCCPABanner,t.doNotSell)},[l.Lm.DISMISS_CCPA_BANNER]({commit:t,dispatch:e},o){t("dismissCCPABanner",o),e(l.Lm.UPDATE_CCPA_COOKIE)}}},session:{namespaced:!0,state:{session:{startTs:0,expiryTs:0,ref:null,utmSource:null,utmCampaign:null,utmMedium:null},unmasked:[],viewAllOffensive:[],mixpanel:{visitTs:0,postView:1,commentUnmasked:0},helpshift:{startTs:0,unreadCount:0}},getters:{GET_SESSION_PARAMS:t=>{const{ref:e,utmSource:o,utmCampaign:i,utmMedium:s}=t.session;return{ref:e,utm_source:o,utm_campaign:i,utm_medium:s}},SHOW_SENSITIVE_MASK:(t,e,o,i)=>e=>!(0,P.LM)().isLoggedIn||!!(0,P.LM)().safeMode&&!t.unmasked.includes(e),SHOW_OFFENSIVE_MASK:(t,e,o,i)=>(e,o)=>{if((0,P.LM)().isLoggedIn&&!(0,P.LM)().offensiveMode)return!1;if((0,P.LM)().user.accountId===o)return!1;const i=(0,O.jd)().getPostId;return!t.viewAllOffensive.includes(i)&&!t.unmasked.includes(e)},SHOW_ALL_OFFENSIVE:t=>e=>t.viewAllOffensive.includes(e)},mutations:{setSessionInfo(t,e){t.session=I(I({},t.session),e)},setSessionReferral(t,e){t.session=I(I({},t.session),e)},unmaskSensitive(t,e){t.unmasked.push(e)},setMixpanelInfo(t,e){t.mixpanel=I(I({},t.mixpanel),e)},viewAllOffensive(t,e){t.viewAllOffensive.push(e)},updateHelpshift(t,{startTs:e=null,unreadCount:o=null}){null!==e&&(t.helpshift.startTs=e),null!==o&&(t.helpshift.unreadCount=o)}},actions:{[l.R5.SET_SESSION_ACTIVE]({commit:t,state:e}){const{sessionInfo:o,referralInfo:i}=v.Z.getSessionInfoAndReferralInfoForSession(e.session);i&&t("setSessionReferral",i),t("setSessionInfo",o)},[l.R5.CHECK_SESSION_REFERRAL]({commit:t,rootState:e}){const o=v.Z.getReferralInfoForQuery(k().parse(location.search.substr(1)));o&&t("setSessionReferral",o)},[l.R5.UNMASK_SENSITIVE]({commit:t},e){t("unmaskSensitive",e)},[l.R5.SET_MIXPANEL_VISIT]({commit:t}){t("setMixpanelInfo",{visitTs:b.default.getCurrentTime()})},[l.R5.SET_MIXPANEL_PROPS]({commit:t},e){t("setMixpanelInfo",e)},[l.R5.UNMASK_OFFENSIVE]({commit:t},e){t("unmaskSensitive",e)},[l.R5.VIEW_ALL_OFFENSIVE]({commit:t},e){t("viewAllOffensive",e)},[l.R5.START_HELPSHIFT]({commit:t}){t("updateHelpshift",{startTs:b.default.getCurrentTime()}),w.Z.open()},[l.R5.SET_HELPSHIFT_UNREAD]({commit:t,state:e},o){const i={unreadCount:o};o&&(i.startTs=b.default.getCurrentTime()),t("updateHelpshift",i)}}},config:{namespaced:!0,state:{config:{},data:{},appConfig:{}},getters:{APP_NAME:t=>u()(t,"config.appName","9gag"),APP_VERSION:t=>u()(t,"config.appVersion","00000"),COOKIE_DOMAIN:t=>u()(t,"config.cookieDomain",".9gag.com"),ASSETS_URL:t=>u()(t,"config.staticAssetPath"),ACTIVE_DURATION:t=>u()(t,"config.profile.activeDuration"),GET_CONFIG:t=>(e,o=null)=>u()(t.config,e,o),GET_DATA:t=>(e,o=null)=>u()(t.data,e,o),GET_APP_CONFIG:t=>(e,o=null)=>u()(t.appConfig,e,o),AD_CAMPAIGN(t,e,o){const{campaignConfig:i}=e.GET_CONFIG("ad",{});if(!Array.isArray(i))return null;const{route:r}=o;return i.find((({sections:t=[],countries:e=[]})=>!(!e.includes("all")&&!e.includes(n.Z.getLocation())||!s.Z.MAIN_LISTS.includes(r.name)||!(t.includes("home")&&[s.Z.HOME_POST_LIST,s.Z.INTEREST_POST_LIST].includes(r.name)||t.includes(r.params.section)||t.includes(r.params.tag)))))||null},RECAPTCHA_CONFIG:(t,e,o,i)=>({theme:i["app/GET_DARK_MODE"]?"dark":"light",sitekey:e.GET_CONFIG("captchaPublicKey")})},mutations:{SET_CONFIG(t,{config:e,data:o}={}){t.config=e,t.data=o||{}},SET_APP_CONFIG(t,e){t.appConfig=e},CLEAR_DATA(t){t.data={}}},actions:{INIT_CONFIG({commit:t,state:e,dispatch:o},{config:i,data:s}){t("SET_CONFIG",{config:i,data:s})},async LOAD_APP_CONFIG({commit:t}){const e=await A.getConfig();e&&t("SET_APP_CONFIG",e)},async CLEAR_HYDRATION({commit:t,state:e}){Object.keys(e.data).length&&t("CLEAR_DATA")}}},post:function(){const t=(t,e,o,i)=>{const n=null==e?void 0:e.name;let r=[];const c=s.Z.MAIN_LISTS.includes(n),l=(0,P.LM)().uninterestedPosts||[],d=c?[...l]:[],p=(0,a.v)().hidden;Object.entries((0,P.LM)().blockPosts).forEach((([t,e])=>{"post"===e&&d.push(t)})),n===s.Z.HOME_POST_LIST&&t.forEach((t=>{var e;const{tags:i}=null===(e=o.posts)||void 0===e?void 0:e[t];i.length&&p.some((t=>i.some((e=>e.url===t.url))))&&d.push(t)})),s.Z.POST_VIEWS.includes(n)&&d.push(e.params.postId);const u=(0,P.wm)().blocklistIds||[];return r=t.filter(((e,i)=>{var s;const{accountId:n}=(null===(s=o.posts)||void 0===s?void 0:s[e].creator)||{};return!(n&&u.includes(n)||t.indexOf(e)!==i||d.includes(e))})),i.GET_HIDE_PROMOTED_POSTS_SETTINGS&&(r=r.filter((t=>1!==(o.posts[t]||{}).promoted))),r};return{namespaced:!0,state:{posts:{},feedIdsByUrl:{},postIdsByUrl:{},relatedArticleIdsByPostId:{},loadingByUrl:{},loadCountByUrl:{},lastPositionByUrl:{},currentApiInfo:null,nextCursors:{}},getters:{GET_API_INFO:t=>t.currentApiInfo,GET_CURSORS:t=>e=>t.nextCursors[null==e?void 0:e.url],GET_POST_IDS_BY_URL:t=>e=>t.postIdsByUrl[e]||[],GET_RELATED_ARTICLES:(e,o)=>i=>{var s;i=i||(null===(s=e.currentApiInfo.params)||void 0===s?void 0:s.postId);const n=e.relatedArticleIdsByPostId[i];return n?t(n,e.currentApiInfo,e,o):n},GET_POST:t=>e=>t.posts[e]||{},GET_POST_FEED_ID:t=>e=>{var o,i;return t.feedIdsByUrl[e]?t.feedIdsByUrl[e]:(t.postIdsByUrl[null===(o=t.currentApiInfo)||void 0===o?void 0:o.url]||[]).includes(e)&&t.feedIdsByUrl[null===(i=t.currentApiInfo)||void 0===i?void 0:i.url]||null},POST_LIST_IDS:(e,o,i,s)=>i=>{const s=o.GET_POST_IDS_BY_URL(i.url)||[];return t(s,i,e,o)},GET_LAST_POSITION:t=>t.currentApiInfo&&t.lastPositionByUrl[t.currentApiInfo.url]||null,HAS_NEXT_POST:(t,e,o)=>{const i=t.currentApiInfo,s=i&&e.GET_POST_IDS_BY_URL(i.url)||[];let n=s.indexOf(o.route.params.postId);return!(!s.length||n===s.length-1)},HAS_PREV_POST:(t,e,o)=>{const i=t.currentApiInfo,s=i&&e.GET_POST_IDS_BY_URL(i.url)||[];let n=s.indexOf(o.route.params.postId);return!(!s.length||0===n)},CAN_ANONYMOUS_COMMENT:(t,e,o,i)=>t=>{if(!(0,P.LM)().isLoggedIn)return!1;const{canAnonymous:o}=e.GET_POST(t).comment||{};return!!o&&(0,P.LM)().uploads.includes(t)},PINNED_COMMENT_COUNT:(t,e)=>t=>{const{pinnedCommentCount:o}=e.GET_POST(t).comment||{};return o||0},HAS_PINNED_COMMENT:(t,e)=>t=>e.PINNED_COMMENT_COUNT(t)>0,GET_HIDE_PROMOTED_POSTS_SETTINGS:(t,e,o,i)=>{var s,n;return(null===(s=o.app)||void 0===s||null===(n=s.proSettings)||void 0===n?void 0:n.hidePromotedPosts)&&(0,P.LM)().isActivePro}},mutations:{SET_RELATED_ARTICLE_IDS_BY_POST_ID(t,{postId:e,ids:o}){j.Z.set(t.relatedArticleIdsByPostId,e,o)},SET_POST_IDS_BY_URL(t,{url:e,ids:o}){j.Z.set(t.postIdsByUrl,e,o)},CLEAR_LIST_POSTS(t,e){t.postIdsByUrl[e]=void 0,t.nextCursors[e]=void 0,t.lastPositionByUrl[e]=void 0,t.loadCountByUrl[e]=void 0},ADD_POSTS(t,e=[]){e.forEach((e=>j.Z.set(t.posts,e.id,e)))},ADD_POST(t,e){j.Z.set(t.posts,e.id,e)},ADD_FEED_ID(t,e){j.Z.set(t.feedIdsByUrl,e.url,e.feedId)},SET_NEXT_POSTS(t,{cursor:e,url:o}){j.Z.set(t.nextCursors,o,e||null)},UPDATE_POST_AUTO_PLAY(t,e){e.mediaId?j.Z.set(t.posts[e.id].article.medias[e.mediaId],"autoPlayEvent",e.autoPlayEvent):j.Z.set(t.posts[e.id],"autoPlayEvent",e.autoPlayEvent)},UPDATE_VOTE_COUNT(t,e){j.Z.set(t.posts,e.id,e)},SET_CURRENT_API_INFO(t,e){t.currentApiInfo=e},UPDATE_LOAD_COUNT(t,{loadCount:e,url:o}){j.Z.set(t.loadCountByUrl,o,e)},SET_LAST_POSITION(t,{url:e,data:o}){j.Z.set(t.lastPositionByUrl,e,o)},SET_LOADING_BY_URL(t,{loading:e,url:o}){j.Z.set(t.loadingByUrl,o,e)},UPDATE_PINNED_COMMENT_COUNT(t,{postId:e,commentIds:o}){const i=t.posts[e];i&&j.Z.set(t.posts,e,B(B({},i),{},{comment:B(B({},i.comment),{},{pinnedCommentCount:Array.isArray(o)?o.length:0})}))},UPDATE_AWARD_USERS(t,e){j.Z.set(t.posts,e.id,e)}},actions:{SET_POST_IDS_BY_URL:({commit:t,getters:e,dispatch:o},{url:i,ids:s,operationType:n})=>{t("SET_POST_IDS_BY_URL",{url:i,ids:s=U.Z.bindPostIdToUrl(e.GET_POST_IDS_BY_URL(i),s,n)})},ADD_POST:({commit:t,dispatch:e,getters:o},{data:i,url:s,operationType:n="push"})=>{t("ADD_POST",U.Z.transformPost(i)),e("SET_POST_IDS_BY_URL",{url:s,ids:i.id,operationType:n})},SET_NEXT_POSTS:async({commit:t,dispatch:e,getters:o},{posts:i,cursor:s,url:n,feedId:r})=>{if(i&&i.length>0){for(let t of i)e("ADD_POST",{data:t,url:n});t("ADD_FEED_ID",{url:n,feedId:r})}else e("SET_POST_IDS_BY_URL",{url:n,ids:[]});t("SET_NEXT_POSTS",{url:n,cursor:s})},SET_LAST_POSITION:({commit:t,getters:e},o)=>{const{url:i}=o;t("SET_LAST_POSITION",{url:i,data:(0,D.Z)(o,R)})},LOAD_POSTS:async({commit:t,state:e,dispatch:o,getters:i},{apiInfo:n,direction:r="next"}={})=>{if(!e.loadingByUrl[n.url]){t("SET_LOADING_BY_URL",{loading:!0,url:n.url});try{return[s.Z.POST,s.Z.COLLECTION_PAGE].includes(n.name)?await o("LOAD_PAGE_POSTS",{apiInfo:n,direction:r}):await o("LOAD_LIST_POSTS",{apiInfo:n})}finally{t("SET_LOADING_BY_URL",{loading:!1,url:n.url})}}},LOAD_PAGE_POSTS:async({commit:t,state:e,rootState:o,dispatch:i,getters:s},{apiInfo:n,direction:r})=>{const a=s.GET_CURSORS(n,r),c=n.url,l=await M.Z.getListPosts(n,a);l.post&&!e.posts[l.post.id]&&i("ADD_POST",{data:l.post,url:c});const d=l.after?`after=${l.after}`:void 0;return l.posts&&i("SET_NEXT_POSTS",{posts:l.posts,cursor:d,url:c,feedId:l.feedId}),a&&i("UPDATE_LOAD_COUNT",{apiInfo:n,nextCursor:d}),l},HYDRATE:async({commit:t,dispatch:e,getters:o,rootState:i})=>{const{post:s,posts:n,nextCursor:r,tags:c,tag:l,profile:d}=M.Z.transformPostData(i.config.data),{url:p}=o.GET_API_INFO||{};s&&t("ADD_FEED_ID",{url:s.id,feedId:Z.Z.getFeedId(s.id)}),s&&e("ADD_POST",{data:s,url:p}),n&&e("SET_NEXT_POSTS",{posts:n,cursor:r,url:p}),c&&(0,a.v)().setPostTags({key:p,tags:c}),l&&(0,a.v)().setTagNav({key:p,tagNav:l}),d&&(0,P.LM)().addProfile(d);const u=M.Z.transformCustomConfig(i.config.data);(0,a.v)().setCustomConfig({key:p,config:u})},LOAD_LIST_POSTS:async({state:t,dispatch:e,getters:o,commit:i},{apiInfo:s})=>{const n=o.GET_CURSORS(s,"next"),{url:r}=s,c=await M.Z.getListPosts(s,n);await e("SET_NEXT_POSTS",{posts:c.posts,cursor:c.nextCursor,url:r,feedId:c.feedId}),n&&e("UPDATE_LOAD_COUNT",{apiInfo:s,nextCursor:c.nextCursor}),c.tags&&(0,a.v)().setPostTags({key:r,tags:c.tags}),c.tag&&(0,a.v)().setTagNav({key:r,tagNav:c.tag}),c.profile&&(0,P.LM)().addProfile(c.profile);const l=M.Z.transformCustomConfig(c);return(0,a.v)().setCustomConfig({key:r,config:l}),{data:c,url:r}},LOAD_RELATED_ARTICLES:async({state:t,dispatch:e,getters:o,commit:i},s)=>{const n=await M.Z.getListPosts({url:`/related-articles?id=${s}`}),{posts:r}=n;for(let t of r)i("ADD_POST",M.Z._transformPost(t));i("SET_RELATED_ARTICLE_IDS_BY_POST_ID",{postId:s,ids:r.map((t=>t.id))})},CLEAR_LIST_POSTS:({state:t,commit:e},o)=>{const i=M.Z.getApiInfo(o);t.postIdsByUrl[i.url]&&e("CLEAR_LIST_POSTS",i.url)},UPDATE_LOAD_COUNT:({commit:t,getters:e,state:o},{apiInfo:i,nextCursor:s})=>{const n=o.loadCountByUrl[i.url]||1,r=s?"LoadList":"LoadListEnd",a=i.pageKey;L.default.track("PostList",r,a,"",{LoadedCount:n}),t("UPDATE_LOAD_COUNT",{loadCount:n+1,url:i.url})},UPDATE_VOTE_COUNT:({getters:t,commit:e},{postId:o,currentScore:i,newScore:s})=>{const n=t.GET_POST(o);n&&n.hasOwnProperty("id")&&e("UPDATE_VOTE_COUNT",B(B({},n),U.Z.recalculateVote(n,i,s)))},SET_CURRENT_API_INFO:({commit:t,dispatch:e},o)=>{t("SET_CURRENT_API_INFO",o)},UPDATE_POST_AUTO_PLAY:async({commit:t},e)=>{t("UPDATE_POST_AUTO_PLAY",e)},OP_PIN_COMMENT({commit:t},e){t("UPDATE_PINNED_COMMENT_COUNT",e)},UPDATE_AWARD_USERS:({getters:t,commit:e},{postId:o,user:i})=>{const s=t.GET_POST(o);if(!s||!s.hasOwnProperty("id"))return;const n=s.awardUsers||[];e("UPDATE_AWARD_USERS",B(B({},s),{},{awardUsers:[...n,i]}))}}}}()},strict:!1,plugins:H})},55407:(t,e,o)=>{"use strict";o.d(e,{Z:()=>p});var i=o(96156),s=o(1040),n=o(96414),r=o(39914).default;function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function c(t){for(var e=1;e{this.adPlacements[t]||e&&(this.adPlacements[t]=c(c({},e),{},{name:t,size:e.sizes[0]||[0,0]}))}))}reset(){this.renderedAdContainerIds=[],r.log("reset AdManager")}getAdContainer(t,e){const o=this.adPlacements[t];if(!o)return null;let i=e,{adTag:n,override:r}=o;if(o.occurrence&&null!==e&&(i=this.getAdPosition(o.occurrence,e),!i))return null;let a=null;r&&this.getAdOverride(r.occurrence,i)&&(a=r,n=a.adTag||n);const{nsfwTag:l}=o;if(s.Z.getters["app/NSFW_ADS"]){if(!l||a)return null;n=l}Array.isArray(n)&&(n=n[i?(i-1)%n.length:0]);const d=this.getAdContainerId(o,i);return{adPlacement:c(c(c({},o),a),{},{adTag:n}),adContainerId:d,adPosition:i}}_parseOccurrenceConfig(t){return t?t.split(",").map((t=>parseInt(t))).filter((t=>t)):[]}getAdPosition(t,e){const o=this._parseOccurrenceConfig(t);let i=1,s=0,n=null;for(;s<=e&&(n=o.shift()||n,n);){if(s+=n,s==e)return i;i++}return null}getAdOverride(t,e){const o=this._parseOccurrenceConfig(t);let i=0,s=null;for(;i<=e&&(s=o.shift()||s,s);)if(i+=s,i==e)return!0;return!1}getAdContainerId(t,e=null){const o=`jsid-ad-container-${t.name}`;return e?`${o}-${e}`:o}setTargeting(t){}destroyAd(t){r.log("AdManager.destroyAd",{adContainer:t});const{adContainerId:e}=t,o=document.querySelectorAll(`#${e} > *`),i=Array.from(o).map((function(t){return t.id}));r.log("AdManager.destroyAd",{adContainerEle:document.querySelector(`#${e}`),childIds:i}),Array.isArray(i)&&i.length>0&&n.Z.destroyAds(i);const s=this.renderedAdContainerIds.indexOf(e);s>-1&&this.renderedAdContainerIds.splice(s,1)}renderAd(t,e){const{adContainerId:o}=t;this.renderedAdContainerIds.includes(o)||this.renderedAdContainerIds.push(o)}refreshAd(t){document.visibilityState}}(function(t){for(var e=1;e{"use strict";o.r(e),o.d(e,{default:()=>r});var i=o(18309),s=o(41653),n=o(73726);const r={track:async(t,e,o,n,r={})=>{i.Z.track(t,e,o),s.default.trackEvent(t,e,o,n,r)},trackPage:async(t,e,o="",r={})=>{const a=(0,n.k)().pageKey||"";i.Z.track(t,e,a),s.default.trackEvent(t,e,a,o,r)},trackPageView:async t=>{i.Z.trackPageView(t),s.default.trackEvent("WEB_TRACKING","PAGEVIEW","","",{},document.location.origin+t)},trackException:async(t,e=!1)=>{i.Z.trackException(t,e)},setUserId:async t=>{i.Z.setUserId(t)},setGA4UserId:async t=>{i.Z.setGA4UserId(t)}}},13656:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});const i={HOME:"home",HOT:"hot",FRESH:"fresh",TRENDING:"trending",POSTS:"posts",LIKES:"likes",COMMENTS:"comments",SAVED:"saved",FORUM:"forum"}},81447:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(96156);function s(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function n(t){for(var e=1;e{"use strict";o.d(e,{Z:()=>i});const i={MAX_WIDTH:640,LIST_VIEW_WIDTH:500,LIST_VIEW_MAX_HEIGHT:500,POST_VIEW_WIDTH:640,POST_VIEW_MAX_HEIGHT:640,getPostViewMinHeight(t,e,o=!1){let i=t=t/e*this.POST_VIEW_WIDTH;return o&&t>this.POST_VIEW_MAX_HEIGHT&&(i=this.POST_VIEW_MAX_HEIGHT),i},getListViewPhoto(t,e){const o=this._calculateScaleByWidth(this.LIST_VIEW_WIDTH,t,e);return{minHeight:`${o.height}px`,padding:`0 ${this.MAX_WIDTH/2-o.width/2}px`}},getListViewCover(t,e){return{minHeight:`${this._calculateScaleByWidth(this.MAX_WIDTH,t,e).height}px`}},_calculateScaleByWidth:(t,e,o)=>({width:t,height:e*t/o}),getAnimatedPhoto(t,e,o){if(o){const o=this.getPostViewMinHeight(t,e,!0);return{width:e/t*o+"px",height:`${o}px`}}const i=this.MAX_WIDTH,s=this.LIST_VIEW_MAX_HEIGHT;let{width:n,height:r}=this._calculateScaleByWidth(i,t,e);return r>s&&(n=e/t*s,r=s),{width:`${n}px`,height:`${r}px`,padding:`0 ${i/2-n/2}px`}}}},53441:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>c});var i=o(67339),s=o.n(i),n=o(15451),r=o.n(n),a=o(4907);const c={isCurrentlyFocusedInTypeable:function(){const t=document.activeElement;if(!t||!t.tagName)return!1;const e=t.tagName.toLowerCase();return"input"==e||"textarea"==e},cookieCheckKey:"cchk",isCookieEnabled:function(){let t=a.U2(this.cookieCheckKey);return null!=t||(a.t8(this.cookieCheckKey,1),t=a.U2(this.cookieCheckKey),null!=t)},getPostDomId:function(t){return`jsid-post-${t}`},getPostId:function(t){return t.replace("jsid-post-","")},getStreamDomId:function(t){return`stream-${t}`},getStreamPos:function(t){return Number(t.replace("stream-",""))},getSpinnerHtml:function(){return'
'},getScrollTop:()=>r()().scrollTop,scrollTo(t,e=100){s().top(r()(),t,{duration:e})},scrollToTop(){this.scrollTo(0,300)}}},31536:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".loading-container[data-v-f8e61266]{position:relative}.loading-container .spinner-container[data-v-f8e61266]{position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%;background-color:rgba(0,0,0,.01)}.loading-container .spinner-container>*[data-v-f8e61266]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}",""]),t.exports=i},12251:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".attachment-files__container[data-v-24739ab9]{background:#f4f4f4;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;border:1px solid #e5e5e5;border-bottom:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}body.theme-dark .attachment-files__container[data-v-24739ab9]{background-color:#141414;border:1px solid #333;border-bottom:none}",""]),t.exports=i},8104:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".attachment-file[data-v-c0a976f4]{position:relative;margin-right:8px;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.attachment-file *[data-v-c0a976f4]{-webkit-box-sizing:border-box;box-sizing:border-box}.attachment-file.small .attachment-file__img-wrapper img[data-v-c0a976f4]{width:48px;height:48px}.attachment-file__img-wrapper[data-v-c0a976f4]{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:stretch;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch;-webkit-border-radius:4px;border-radius:4px;background-color:var(--palette-text-background)}.attachment-file__img-wrapper img[data-v-c0a976f4]{width:64px;height:64px;-o-object-fit:cover;object-fit:cover}.attachment-file__remove[data-v-c0a976f4]{position:absolute;width:16px;height:16px;top:-4px;right:-4px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.attachment-file__remove span[data-v-c0a976f4]{border:2px solid var(--palette-text-foreground);width:14px;height:14px;-webkit-border-radius:12px;border-radius:12px;background-color:var(--palette-text);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.attachment-file.small .attachment-file__loading[data-v-c0a976f4]{width:48px;height:48px}.attachment-file__loading[data-v-c0a976f4]{width:64px;height:64px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:var(--palette-text-background);-webkit-border-radius:4px;border-radius:4px}",""]),t.exports=i},45629:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".upload-button__wrapper[data-v-add150c8]{display:inline-block;margin:5px auto 0 10px;padding:0;border:none;background:none;overflow:hidden;position:relative;width:20px;height:20px}.upload-button__wrapper[data-v-add150c8] :hover{cursor:pointer}.upload-button__button[data-v-add150c8]{opacity:0;position:absolute;display:block;top:0;left:0;width:20px;height:20px;z-index:2;direction:ltr;font-size:14px}.upload-button__button[data-v-add150c8]::-webkit-file-upload-button{cursor:pointer}.upload-button__button[data-v-add150c8]:disabled{cursor:not-allowed}.upload-button__button[data-v-add150c8]:disabled::-webkit-file-upload-button{cursor:not-allowed}",""]),t.exports=i},52706:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".comment-input-area-content[data-v-ac49e860]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column nowrap;-ms-flex-flow:column nowrap;flex-flow:column nowrap;width:auto;background:var(--palette-text-foreground);z-index:0}.comment-input-area-content.focused .comment-input-area-content__input-area_textarea[data-v-ac49e860]{border-color:#0b6cda;-webkit-box-shadow:0 0 0 2px rgba(0,119,255,.1);box-shadow:0 0 0 2px rgba(0,119,255,.1)}body.theme-dark .comment-input-area-content.focused .comment-input-area-content__input-area_textarea[data-v-ac49e860]{border-color:#2585f4}.comment-input-area-content__input-area[data-v-ac49e860]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.comment-input-area-content__input-area_textarea[data-v-ac49e860]{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid var(--palette-text-light);-webkit-border-radius:4px;border-radius:4px;padding:8px 12px;padding-top:7px;width:100%;margin:0}.comment-input-area-content__input-area_textarea[data-v-ac49e860]::-webkit-input-placeholder{color:#999}.comment-input-area-content__input-area_textarea[data-v-ac49e860]::-moz-placeholder{color:#999}.comment-input-area-content__input-area_textarea[data-v-ac49e860]:-ms-input-placeholder{color:#999}.comment-input-area-content__input-area_textarea[data-v-ac49e860]::-ms-input-placeholder{color:#999}.comment-input-area-content__input-area_textarea[data-v-ac49e860]::placeholder{color:#999}",""]),t.exports=i},53192:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".change-delegate-select[data-v-a2e6520c]{margin:0;height:auto;-webkit-border-radius:2px;border-radius:2px;font-weight:normal;padding:0 6px;color:var(--palette-text-normal);border:1px solid var(--palette-text-light);background:var(--palette-text-foreground)}",""]),t.exports=i},35207:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".comment-input-area-footer[data-v-53e9751b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:12px 0 0 0}.comment-input-area-footer__actions-area[data-v-53e9751b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.comment-input-area-footer__actions-area_action[data-v-53e9751b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 2px !important}.comment-input-area-footer__actions-area_action[data-v-53e9751b]:first-child{margin-left:0 !important}.comment-input-area-footer__actions-area_action[data-v-53e9751b]:last-child{margin-right:0 !important}.comment-input-area-footer__actions-area_action.upload-attachment[data-v-53e9751b]{margin-left:0px !important;margin-right:0px !important;height:40px;width:40px;-webkit-border-radius:4px;border-radius:4px}.comment-input-area-footer__actions-area_action.upload-attachment[data-v-53e9751b] form{height:40px;width:40px;min-width:40px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.comment-input-area-footer__actions-area_action.upload-attachment[data-v-53e9751b] form input{height:40px;width:40px}.comment-input-area-footer__actions-area_action.upload-attachment[data-v-53e9751b]:hover{background:rgba(0,0,0,.06)}body.theme-dark .comment-input-area-footer__actions-area_action.upload-attachment[data-v-53e9751b]:hover{background:rgba(255,255,255,.12)}.comment-input-area-footer__actions-area_action.gif-attachment[data-v-53e9751b]{margin-left:0px !important;margin-right:0px !important;height:40px;width:40px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-border-radius:4px;border-radius:4px}.comment-input-area-footer__actions-area_action.gif-attachment[data-v-53e9751b] button{height:40px;width:40px}.comment-input-area-footer__actions-area_action.gif-attachment[data-v-53e9751b]:hover{background:rgba(0,0,0,.06)}body.theme-dark .comment-input-area-footer__actions-area_action.gif-attachment[data-v-53e9751b]:hover{background:rgba(255,255,255,.12)}.comment-input-area-footer__actions-area_action.remaining-characters[data-v-53e9751b]{color:#ff3b30}.comment-input-area-footer_attachments-list[data-v-53e9751b]{background-color:transparent;border:none;padding:0}body.theme-dark .comment-input-area-footer_attachments-list[data-v-53e9751b]{border:none}.cancel[data-v-53e9751b]{margin-right:4px}",""]),t.exports=i},9819:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,'.avatar-container[data-v-3754678e]{display:block;background-color:rgba(255,255,255,.2);-webkit-border-radius:50%;border-radius:50%;overflow:hidden;position:relative}.avatar-container[data-v-3754678e]:before{content:"";z-index:1;display:block;position:absolute;height:-webkit-calc(100% - 2px);height:calc(100% - 2px);width:-webkit-calc(100% - 2px);width:calc(100% - 2px);-webkit-border-radius:50%;border-radius:50%;border:1px solid rgba(0,0,0,.1)}',""]),t.exports=i},85079:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".comment-composer[data-v-10051742]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row nowrap;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.comment-composer__avatar[data-v-10051742]{margin-right:8px}.comment-composer__input-area[data-v-10051742]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column nowrap;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.offset[data-v-10051742] textarea{margin-top:2px !important}",""]),t.exports=i},96778:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".campaign-banner[data-v-9768a6b4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-border-radius:4px;border-radius:4px}.campaign-banner img[data-v-9768a6b4]{width:100%;height:100%;-webkit-border-radius:4px;border-radius:4px}",""]),t.exports=i},53263:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".home-tab-bar[data-v-8ae56474]{margin-bottom:10px;margin-top:-8px}.home-tab-bar__wrapper[data-v-8ae56474]{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--palette-text-foreground);z-index:5;width:100%}.home-tab-bar__wrapper.desktop[data-v-8ae56474]{width:-webkit-calc(728px + var(--main-margin));width:calc(728px + var(--main-margin));-webkit-transform:translateX(-webkit-calc(-1 * (44px + var(--main-margin) / 2)));-ms-transform:translateX(calc(-1 * (44px + var(--main-margin) / 2)));transform:translateX(calc(-1 * (44px + var(--main-margin) / 2)));padding-left:-webkit-calc(44px + var(--main-margin) / 2);padding-left:calc(44px + var(--main-margin) / 2);padding-right:-webkit-calc(44px + var(--main-margin) / 2);padding-right:calc(44px + var(--main-margin) / 2)}.home-tab-bar__wrapper.desktop .home-tab-bar__tab[data-v-8ae56474]{padding:0 16px 6px}.home-tab-bar__wrapper.desktop .home-tab-bar__container[data-v-8ae56474]{-webkit-box-pack:start;-webkit-justify-content:start;-ms-flex-pack:start;justify-content:start}.home-tab-bar__extra[data-v-8ae56474]{margin:0 12px}.home-tab-bar__container[data-v-8ae56474]{-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;width:100%;background-color:var(--palette-text-foreground);position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid var(--palette-border-line)}.home-tab-bar__extra[data-v-8ae56474]:last-child{opacity:0}.home-tab-bar__tab[data-v-8ae56474]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;height:36px;line-height:36px;margin-right:8px;color:var(--palette-text-normal);text-decoration:none;padding:6px 8px 6px;text-align:center;font-weight:700;white-space:nowrap;cursor:pointer;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.home-tab-bar__tab[data-v-8ae56474]:hover{color:var(--palette-text)}.home-tab-bar__tab[data-v-8ae56474]:active{opacity:.8}.home-tab-bar__tab.selected[data-v-8ae56474]{color:var(--palette-text);border-bottom:3px solid var(--palette-text)}.home-tab-bar__tab h2[data-v-8ae56474]{font-size:100%}.home-tab-bar__count[data-v-8ae56474]{font-weight:normal;margin-left:5px;font-size:12px}",""]),t.exports=i},37579:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"body.theme-dark .ui-base-icon[data-v-9ea500d2]{-webkit-filter:invert(100%);filter:invert(100%)}",""]),t.exports=i},51837:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"svg[data-v-62717f6e]{-webkit-animation:2s linear infinite svg-animation-62717f6e;animation:2s linear infinite svg-animation-62717f6e;max-width:100px}@-webkit-keyframes svg-animation-62717f6e{0%{-webkit-transform:rotateZ(0deg);transform:rotateZ(0deg)}100%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}}@keyframes svg-animation-62717f6e{0%{-webkit-transform:rotateZ(0deg);transform:rotateZ(0deg)}100%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}}circle[data-v-62717f6e]{-webkit-animation:1.4s ease-in-out infinite both circle-animation-62717f6e;animation:1.4s ease-in-out infinite both circle-animation-62717f6e;display:block;fill:transparent;stroke:currentColor;stroke-linecap:round;stroke-dasharray:283;stroke-dashoffset:280;stroke-width:10px;-webkit-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%}@-webkit-keyframes circle-animation-62717f6e{0%,25%{stroke-dashoffset:280;-webkit-transform:rotate(0);transform:rotate(0)}50%,75%{stroke-dashoffset:75;-webkit-transform:rotate(45deg);transform:rotate(45deg)}100%{stroke-dashoffset:280;-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes circle-animation-62717f6e{0%,25%{stroke-dashoffset:280;-webkit-transform:rotate(0);transform:rotate(0)}50%,75%{stroke-dashoffset:75;-webkit-transform:rotate(45deg);transform:rotate(45deg)}100%{stroke-dashoffset:280;-webkit-transform:rotate(360deg);transform:rotate(360deg)}}",""]),t.exports=i},80390:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"body.theme-dark .ui-base-icon[data-v-a1172736]{-webkit-filter:invert(100%);filter:invert(100%)}",""]),t.exports=i},34333:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"body.theme-dark .ui-base-icon[data-v-2a14d6e3]{-webkit-filter:invert(100%);filter:invert(100%)}",""]),t.exports=i},8349:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"body.theme-dark .ui-base-icon[data-v-73b709d4]{-webkit-filter:invert(100%);filter:invert(100%)}",""]),t.exports=i},89828:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".uikit-popup-menu[data-v-89cab77a]{position:relative;overflow:unset}.uikit-popup-menu .menu[data-v-89cab77a]{position:absolute;top:-webkit-calc(100% - 4px);top:calc(100% - 4px);right:4px;z-index:11}.uikit-popup-menu ul[data-v-89cab77a-s]{list-style-type:none;overflow:hidden;padding:4px 0;color:var(--palette-text);background-color:var(--palette-text-foreground);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.1);box-shadow:0 5px 10px rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:8px;border-radius:8px;border:1px solid var(--palette-border-line)}.uikit-popup-menu ul[data-v-89cab77a-s] li{display:block;height:36px}.uikit-popup-menu ul[data-v-89cab77a-s] li.active a{background-color:rgba(0,0,0,.1)}body.theme-dark .uikit-popup-menu ul[data-v-89cab77a-s] li.active a{background-color:rgba(255,255,255,.06)}.uikit-popup-menu ul[data-v-89cab77a-s] li a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:var(--palette-text) !important;line-height:36px;padding:0 16px;font-size:14px;position:relative}.uikit-popup-menu ul[data-v-89cab77a-s] li a:hover{background-color:rgba(0,0,0,.06)}body.theme-dark .uikit-popup-menu ul[data-v-89cab77a-s] li a:hover{background-color:rgba(255,255,255,.12)}.uikit-popup-menu ul[data-v-89cab77a-s] li a:active{background-color:rgba(0,0,0,.1)}body.theme-dark .uikit-popup-menu ul[data-v-89cab77a-s] li a:active{background-color:rgba(255,255,255,.06)}",""]),t.exports=i},60162:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".sensitive-mask[data-v-3ed16c72]{text-align:center;padding:24px 16px;z-index:0}.sensitive-mask__content[data-v-3ed16c72]{color:var(--palette-text)}.sensitive-mask__content__title[data-v-3ed16c72]{font-style:normal;font-weight:bold;text-align:center;font-size:18px;line-height:22px;color:var(--palette-text);margin-bottom:4px}.sensitive-mask__content p[data-v-3ed16c72]{font-style:normal;font-weight:normal;font-size:14px;line-height:20px;color:#999;text-align:center;margin-bottom:16px}.sensitive-mask__content p span[data-v-3ed16c72]{display:block;padding:0 4px}body.theme-dark .sensitive-mask__content p[data-v-3ed16c72]{color:gray}.sensitive-mask__content__link[data-v-3ed16c72]{cursor:pointer;width:auto;border:none;color:#0277ff;-webkit-box-shadow:none !important;box-shadow:none !important;background:transparent !important;-webkit-tap-highlight-color:transparent;outline:none}.sensitive-mask__content__btn[data-v-3ed16c72]{cursor:pointer;display:inline-block;padding:8px 16px;font-weight:700;background:rgba(0,0,0,.06);-webkit-border-radius:4px;border-radius:4px;border:none;color:var(--palette-text);width:auto}body.theme-dark .sensitive-mask__content__btn[data-v-3ed16c72]{background:rgba(255,255,255,.12)}",""]),t.exports=i},8771:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,'.signup-list-banner[data-v-5727ca7a]{text-align:center;padding:24px 0;z-index:0}.signup-list-banner__content[data-v-5727ca7a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:top;-webkit-align-items:top;-ms-flex-align:top;align-items:top}.signup-list-banner__content__logo[data-v-5727ca7a]{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgNDBDMCAxNy45MDg2IDE3LjkwODYgMCA0MCAwQzYyLjA5MTQgMCA4MCAxNy45MDg2IDgwIDQwQzgwIDYyLjA5MTQgNjIuMDkxNCA4MCA0MCA4MEMxNy45MDg2IDgwIDAgNjIuMDkxNCAwIDQwWiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MCA0NC42ODc1TDE5LjY4NzUgMzIuOTY4OFYyOC4yODEyTDQwIDE2LjU2MjVMNjAuMzEyNSAyOC4yODEyVjUxLjcxODhMNDAgNjMuNDM3NUwxOS42ODc1IDUxLjcxODhMMjcuODEyNSA0Ny4wMzEyTDQwIDU0LjA2MjVMNTIuMTg3NSA0Ny4wMzEyVjM3LjY1NjJMNDAgNDQuNjg3NVpNMzEuODc1IDMwLjYyNUw0MCAzNS4zMTI1TDQ4LjEyNSAzMC42MjVMNDAgMjUuOTM3NUwzMS44NzUgMzAuNjI1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==");background-repeat:no-repeat;width:80px;min-width:80px;height:80px;margin-right:16px;display:block}.signup-list-banner__content__description[data-v-5727ca7a]{display:block;text-align:left}.signup-list-banner__content__description .tagline[data-v-5727ca7a]{font-style:normal;font-weight:bold;font-size:24px;line-height:29px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:8px;color:var(--palette-text)}.signup-list-banner__content__description p[data-v-5727ca7a]{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;color:var(--palette-text)}.signup-list-banner__action[data-v-5727ca7a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:16px -4px 0}.signup-list-banner__action__btn[data-v-5727ca7a]{cursor:pointer;display:block;padding:10px 16px;font-size:14px;line-height:20px;font-style:normal;font-weight:bold;background:#f4f4f4;text-decoration:none;-webkit-border-radius:20px;border-radius:20px;color:#000;width:100%;margin:0 4px}.signup-list-banner__action__btn[data-v-5727ca7a]:hover{background-color:rgba(0,0,0,.06)}body.theme-dark .signup-list-banner__action__btn[data-v-5727ca7a]:hover{background-color:rgba(255,255,255,.8)}.signup-list-banner__action__btn[data-v-5727ca7a]:active{background-color:rgba(0,0,0,.1)}body.theme-dark .signup-list-banner__action__btn[data-v-5727ca7a]:active{background-color:rgba(255,255,255,.7)}.signup-list-banner__action__btn.signup[data-v-5727ca7a]{background:var(--palette-primary);color:#fff}.signup-list-banner__action__btn.signup[data-v-5727ca7a]:hover{background-color:var(--palette-primary-hover)}.signup-list-banner__action__btn.signup[data-v-5727ca7a]:active{background-color:var(--palette-primary-active)}',""]),t.exports=i},54415:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".signup-side-banner[data-v-636d5ce7]{text-align:center;padding:16px;border:1px solid rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:8px;border-radius:8px;z-index:0}.signup-side-banner__content[data-v-636d5ce7]{color:var(--palette-text)}.signup-side-banner__content h2[data-v-636d5ce7]{font-style:normal;font-weight:bold;font-size:20px;line-height:24px;display:block;text-align:center;color:var(--palette-text);margin-bottom:8px}.signup-side-banner__content p[data-v-636d5ce7]{font-style:normal;font-weight:normal;font-size:14px;line-height:20px;margin-bottom:16px;display:block;text-align:center;color:var(--palette-text)}.signup-side-banner__content__link[data-v-636d5ce7]{cursor:pointer;width:auto;border:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;line-height:20px;vertical-align:middle;font-weight:700;font-style:normal;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-decoration:none;padding:10px 16px;color:#fff;background:var(--palette-primary);-webkit-border-radius:20px;border-radius:20px;-webkit-box-shadow:none !important;box-shadow:none !important;-webkit-tap-highlight-color:transparent;outline:none}.signup-side-banner__content__link[data-v-636d5ce7]:hover{background-color:var(--palette-primary-hover)}.signup-side-banner__content__link[data-v-636d5ce7]:active{background-color:var(--palette-primary-active)}body.theme-dark .signup-side-banner[data-v-636d5ce7]{border-color:rgba(255,255,255,.2)}",""]),t.exports=i},58499:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,'.avatar__container[data-v-2f229102]{position:relative;width:100%;height:100%;background-color:var(--palette-text-background-hover);-webkit-border-radius:50%;border-radius:50%}.avatar__container img[data-v-2f229102]{-webkit-border-radius:50%;border-radius:50%;max-width:100%;max-height:100%;width:auto;height:auto}.avatar__container[data-v-2f229102]:before{content:"";z-index:1;display:block;position:absolute;height:-webkit-calc(100% - 2px);height:calc(100% - 2px);width:-webkit-calc(100% - 2px);width:calc(100% - 2px);-webkit-border-radius:50%;border-radius:50%;border:1px solid rgba(0,0,0,.1)}.avatar__container_deleted[data-v-2f229102]{background-color:#f4f4f4;border:1px solid rgba(0,0,0,.1);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-border-radius:24px;border-radius:24px}.avatar__container .ghost[data-v-2f229102]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-border-radius:50%;border-radius:50%;overflow:hidden}.avatar__container a.disabled[data-v-2f229102]{cursor:default}.avatar__online[data-v-2f229102]{display:block;z-index:2;position:absolute;background:#34c759;border:1px solid #fff;bottom:-1px;right:-1px;-webkit-border-radius:50%;border-radius:50%}body.theme-dark .avatar__online[data-v-2f229102]{border-color:#141414}',""]),t.exports=i},97299:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"a[data-v-16a453ef]{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:rgba(0,0,0,.6);text-decoration:none;border:1px solid rgba(0,0,0,.1);-webkit-border-radius:16px;border-radius:16px;padding:6px 12px;display:block}body.theme-dark a[data-v-16a453ef]{color:rgba(255,255,255,.6);border-color:rgba(255,255,255,.2)}a[data-v-16a453ef]:hover{background:var(--palette-text-foreground-hover)}a[data-v-16a453ef]:active{background:var(--palette-text-foreground-active)}a.trending[data-v-16a453ef]{border-color:rgba(52,199,89,.2);color:#34c759}a.trending[data-v-16a453ef]:hover{background:rgba(52,199,89,.1)}body.theme-dark a.trending[data-v-16a453ef]:hover{background:rgba(52,199,89,.2)}a.trending[data-v-16a453ef]:active{background:rgba(52,199,89,.2)}body.theme-dark a.trending[data-v-16a453ef]:active{background:rgba(52,199,89,.1)}body.theme-dark a.trending[data-v-16a453ef]{color:#34c759;border-color:rgba(52,199,89,.2)}",""]),t.exports=i},77190:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,'.tooltip[data-v-3e40882c]{-webkit-box-sizing:border-box;box-sizing:border-box;background:#07f;-webkit-border-radius:4px;border-radius:4px;max-width:240px;padding:10px 12px;font-size:14px;line-height:20px;color:#fff;z-index:12}.tooltip.hidden[data-v-3e40882c]{visibility:hidden;opacity:0;pointer-events:none}.tooltip .arrow[data-v-3e40882c],.tooltip .arrow[data-v-3e40882c]::before{position:absolute;width:8px;height:8px;background:inherit}.tooltip .arrow[data-v-3e40882c]{visibility:hidden}.tooltip .arrow[data-v-3e40882c]::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow[data-v-3e40882c]{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow[data-v-3e40882c]{top:-4px}.tooltip[data-popper-placement^=left]>.arrow[data-v-3e40882c]{right:-4px}.tooltip[data-popper-placement^=right]>.arrow[data-v-3e40882c]{left:-4px}',""]),t.exports=i},96112:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".semantic-button[data-v-ad46864a]{background:none;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit}.comment-action-color[data-v-ad46864a]{color:var(--palette-text-normal)}.comment-action-color[data-v-ad46864a]:hover{color:#555}body.theme-dark .comment-action-color[data-v-ad46864a]:hover{color:#bbb}.pin-comment-modal .content[data-v-ad46864a]{font-size:16px;line-height:24px}.pin-comment-modal .footer-btn-group[data-v-ad46864a]{text-align:right}.pin-comment-modal .ui-btn[data-v-ad46864a]{margin-left:8px}.pin-comment-modal .ui-btn[data-v-ad46864a]:first-child{margin-left:0}[data-v-ad46864a] .modal__footer,[data-v-ad46864a] .modal__content{padding:16px !important}@media(min-width: 1200px){[data-v-ad46864a] .modal__footer,[data-v-ad46864a] .modal__content{padding:24px !important;font-size:16px;line-height:24px}}",""]),t.exports=i},74691:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".comment-tab-bar__back-to-comments.ui-btn[data-v-833952d4]{padding:0;color:var(--palette-text-normal)}.comment-tab-bar__back-to-comments.ui-btn[data-v-833952d4]:hover{color:var(--palette-text)}",""]),t.exports=i},79706:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".block-content .ui-input[data-v-19b09672]{padding:16px 16px 0}.block-content__description[data-v-19b09672]{color:var(--palette-text-normal);padding:0 16px 16px}.block-content__content[data-v-19b09672]{max-height:432px;overflow-y:auto;padding:10px 16px;border-top:1px solid var(--palette-border-line)}.block-content__content[data-v-19b09672]::-webkit-scrollbar{width:0;opacity:0}.block-content__item[data-v-19b09672]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:8px;gap:12px}.block-content__item .name[data-v-19b09672]{width:90%;word-break:break-all}.block-content__item .remove-button[data-v-19b09672]{cursor:pointer;padding:4px;-webkit-border-radius:50%;border-radius:50%}.block-content__item .remove-button[data-v-19b09672]:hover{background-color:var(--palette-text-foreground-hover)}.block-content__item .remove-button[data-v-19b09672]:active{background-color:var(--palette-text-foreground-active)}.block-content__item[data-v-19b09672]:last-child{margin-bottom:0}.block-content__footer[data-v-19b09672]{border-top:1px solid var(--palette-border-line);padding:16px}.block-content__footer .ui-btn[data-v-19b09672]{width:100%}.block-content__empty[data-v-19b09672]{height:100px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:var(--palette-text-normal)}",""]),t.exports=i},29304:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".interest-item[data-v-19d9293c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:12px 16px;-webkit-border-radius:8px;border-radius:8px;background-color:var(--palette-text-background);margin-bottom:10px}.interest-item.active .ui-btn[data-v-19d9293c]{color:#fff;background-color:rgba(0,0,0,.1)}.interest-item.active .ui-btn[data-v-19d9293c]:hover{background-color:rgba(0,0,0,.2)}.interest-item.active .ui-btn[data-v-19d9293c]:active{background-color:rgba(0,0,0,.25)}.interest-item[data-v-19d9293c]:last-child{margin-bottom:0}.interest-item .profile[data-v-19d9293c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:14px}.interest-item .profile .emoji-icon[data-v-19d9293c]{font-size:40px}.interest-item img[data-v-19d9293c]{-webkit-border-radius:10px;border-radius:10px}.tag-item[data-v-19d9293c]{padding-bottom:16px}.tag-item .name[data-v-19d9293c]{font-size:20px;font-weight:bold;margin-bottom:10px}.tag-item .tag-container[data-v-19d9293c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:10px;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.tag-item .tag[data-v-19d9293c]{border:1px solid var(--palette-border-line);-webkit-border-radius:16px;border-radius:16px;padding:4px 14px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:20px;gap:6px}.tag-item .tag.active[data-v-19d9293c]{color:var(--palette-common-white);fill:var(--palette-common-white);background-color:var(--palette-common-black)}body.theme-dark .tag-item .tag.active[data-v-19d9293c]{background-color:var(--palette-common-white);color:#141414;fill:#141414}.tag-item .tag.active[data-v-19d9293c]:hover{opacity:.8;cursor:pointer}.tag-item .tag.active[data-v-19d9293c]:active{opacity:.9}.tag-item .tag[data-v-19d9293c]:not(.active):hover{background-color:var(--palette-text-foreground-hover);cursor:pointer}.tag-item .tag[data-v-19d9293c]:not(.active):active{background-color:var(--palette-text-foreground-active)}.tag-item .tag .plus[data-v-19d9293c]{font-size:20px;padding-bottom:2px}.tag-item[data-v-19d9293c]:not(:first-child){padding-top:16px;border-top:1px solid var(--palette-border-line)}.tag-item[data-v-19d9293c]:last-child{padding-bottom:0}.follow-page-modal[data-v-19d9293c] .modal{height:auto !important}.follow-page-modal[data-v-19d9293c] .modal-header__option{margin-right:16px;font-size:16px;font-weight:bold;cursor:pointer}.follow-page-modal[data-v-19d9293c] .modal-header__option:hover{opacity:.8}.follow-page-modal[data-v-19d9293c] .modal-header__option:active{opacity:.7}.follow-page-modal[data-v-19d9293c] .modal__footer{padding-bottom:16px !important}.follow-page-modal[data-v-19d9293c] .modal__content{padding-top:16px !important}.description[data-v-19d9293c]{margin-bottom:16px}",""]),t.exports=i},11498:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-award-users[data-v-b1a8469e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:20px}.post-award-users .award-text[data-v-b1a8469e]{color:var(--palette-text-normal);margin-right:4px;font-size:12px;line-height:14px}.post-award-users a[data-v-b1a8469e]{border:1px solid var(--palette-text-foreground);position:relative}.post-award-users a[data-v-b1a8469e]:nth-child(n+2){margin-left:-6px}.post-award-users .award-count[data-v-b1a8469e]{position:relative;background:var(--palette-text-background);-webkit-border-radius:14px;border-radius:14px;padding:3px 8px;margin-left:-6px}.post-award-users .award-avatars[data-v-b1a8469e]{height:22px}",""]),t.exports=i},81237:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-carousel-wrapper[data-v-8a063246]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:256px}.post-carousel[data-v-8a063246]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;overflow-x:hidden;overflow-y:hidden}.post-carousel.hovering[data-v-8a063246]{overflow-x:scroll}.post-carousel .post-carousel-content[data-v-8a063246]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:240px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;gap:16px}.post-carousel .post-carousel-content.padding[data-v-8a063246]{padding:0 16px}.chevron-wrapper[data-v-8a063246]{position:absolute;width:48px;height:48px;top:-webkit-calc(240px / 2 - 48px / 2);top:calc(240px / 2 - 48px / 2);-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;z-index:2}.chevron-wrapper.left[data-v-8a063246]{left:8px}.chevron-wrapper.right[data-v-8a063246]{right:8px}.chevron-wrapper .chevron[data-v-8a063246]{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;width:40px;height:40px;left:-webkit-calc(50% - 40px / 2);left:calc(50% - 40px / 2);top:-webkit-calc(50% - 40px / 2);top:calc(50% - 40px / 2);color:#000;background:#fff;border:1px solid rgba(0,0,0,.1);-webkit-border-radius:50%;border-radius:50%;-webkit-box-shadow:0px 0px 4px rgba(0,0,0,.1);box-shadow:0px 0px 4px rgba(0,0,0,.1)}body.theme-dark .chevron-wrapper .chevron[data-v-8a063246]{color:#fff;background:#333;border:none;-webkit-box-shadow:none;box-shadow:none}.chevron-wrapper .chevron svg[data-v-8a063246]{position:absolute;left:-webkit-calc(50% - 7px / 2);left:calc(50% - 7px / 2);top:-webkit-calc(50% - 10px / 2);top:calc(50% - 10px / 2)}",""]),t.exports=i},30489:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-carousel-post[data-v-66b9f9bb]{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;padding:0px 0px 4px;text-decoration:none;width:216px;height:240px;overflow:hidden;background:#fff;border:1px solid rgba(0,0,0,.1);-webkit-border-radius:8px;border-radius:8px}body.theme-dark .post-carousel-post[data-v-66b9f9bb]{background-color:#141414;border:1px solid rgba(255,255,255,.12)}.post-carousel-post picture[data-v-66b9f9bb]{width:100%;height:120px;overflow:hidden}.post-carousel-post img[data-v-66b9f9bb]{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 0;object-position:50% 0;width:100%;height:100%}.post-carousel-post .content[data-v-66b9f9bb]{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:116px;padding:12px 16px}.post-carousel-post .content .author-wrapper[data-v-66b9f9bb]{padding:2px 0}.post-carousel-post .content .author-wrapper .author[data-v-66b9f9bb]{font-weight:700;font-size:12px;line-height:16px;color:var(--palette-text) !important;text-decoration:none;margin-right:4px}.post-carousel-post .content .author-wrapper .icon[data-v-66b9f9bb]{display:inline-block;vertical-align:middle;width:20px;height:20px;-webkit-border-radius:10px;border-radius:10px;margin-right:8px;overflow:hidden}.post-carousel-post .content .author-wrapper .icon img.icon[data-v-66b9f9bb]{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.post-carousel-post .content .title[data-v-66b9f9bb]{margin-top:8px;font-weight:600;font-size:14px;line-height:20px;color:var(--palette-text) !important;display:block;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:pre-wrap;height:60px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;word-wrap:break-word}",""]),t.exports=i},55179:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-content-text-body__description[data-v-f6b10662]{white-space:pre-line;word-break:break-all;font-size:14px;line-height:20px;max-height:var(--0cd7d998);overflow:hidden}.post-content-text-body__description.expanded[data-v-f6b10662]{max-height:unset}.post-content-text-body__more[data-v-f6b10662]{color:var(--palette-primary);font-size:14px;line-height:20px;display:inline-block;margin-top:8px}.post-content-text-body__more[data-v-f6b10662]:hover{color:var(--palette-primary-hover);cursor:pointer}.post-content-text-body__more[data-v-f6b10662]:active{color:var(--palette-primary-active)}",""]),t.exports=i},33245:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-hidden__header[data-v-4ef9e8bc]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:var(--palette-text-normal)}.post-hidden__header__left[data-v-4ef9e8bc]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:8px}.post-hidden__header__right[data-v-4ef9e8bc]{cursor:pointer;padding:4px;-webkit-border-radius:50%;border-radius:50%}.post-hidden__header__right[data-v-4ef9e8bc]:hover{background-color:var(--palette-text-foreground-hover)}.post-hidden__header__right[data-v-4ef9e8bc]:active{background-color:var(--palette-text-foreground-active)}.post-hidden__content[data-v-4ef9e8bc]{font-size:20px;font-weight:bold;margin-top:14px;margin-bottom:14px}.post-hidden__action[data-v-4ef9e8bc]{padding:10px;margin-top:6px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:8px;cursor:pointer;-webkit-border-radius:4px;border-radius:4px;font-size:14px}.post-hidden__action[data-v-4ef9e8bc]:hover{background-color:var(--palette-text-foreground-hover)}.post-hidden__action[data-v-4ef9e8bc]:active{background-color:var(--palette-text-foreground-active)}.post-hidden__action .ui-base-icon[data-v-4ef9e8bc]{fill:#999}",""]),t.exports=i},75009:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,'.post-tab-bar[data-v-055faa3a]{min-height:70px}.post-tab-bar__wrapper[data-v-055faa3a]{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--palette-text-foreground)}.post-tab-bar__wrapper.fixed[data-v-055faa3a]{position:fixed;z-index:5;width:100%}.post-tab-bar__wrapper.fixed.desktop[data-v-055faa3a]{width:-webkit-calc(728px + var(--main-margin));width:calc(728px + var(--main-margin));-webkit-transform:translateX(-webkit-calc(-1 * (44px + var(--main-margin) / 2)));-ms-transform:translateX(calc(-1 * (44px + var(--main-margin) / 2)));transform:translateX(calc(-1 * (44px + var(--main-margin) / 2)));padding-left:-webkit-calc(44px + var(--main-margin) / 2);padding-left:calc(44px + var(--main-margin) / 2);padding-right:-webkit-calc(44px + var(--main-margin) / 2);padding-right:calc(44px + var(--main-margin) / 2)}.post-tab-bar__container[data-v-055faa3a]{-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;width:100%;background-color:var(--palette-text-foreground);position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:16px}.desktop .post-tab-bar__container[data-v-055faa3a]{padding:16px 0}.desktop.fixed .post-tab-bar__container[data-v-055faa3a]{padding:8px 0}.fixed .post-tab-bar__container[data-v-055faa3a]:after,.desktop .post-tab-bar__container[data-v-055faa3a]:after{content:"";position:absolute;bottom:-1px;left:0;width:100%;height:1px;background-color:var(--palette-text-light)}.post-tab-bar__tabs[data-v-055faa3a]{width:100%;max-width:100%}.post-tab-bar__tab[data-v-055faa3a]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;height:36px;line-height:36px;margin-right:8px;color:var(--palette-text);text-decoration:none;padding:0 16px;-webkit-border-radius:20px;border-radius:20px;text-align:center;font-weight:700;border:1px solid var(--palette-border-line);white-space:nowrap;cursor:pointer;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.post-tab-bar__tab[data-v-055faa3a]:hover{background-color:var(--palette-text-foreground-hover)}.post-tab-bar__tab[data-v-055faa3a]:active{background-color:var(--palette-text-background-hover)}.post-tab-bar__tab.selected[data-v-055faa3a]{background-color:var(--palette-text);color:var(--palette-text-foreground)}.post-tab-bar__tab.selected[data-v-055faa3a]:hover{background-color:rgba(0,0,0,.8)}body.theme-dark .post-tab-bar__tab.selected[data-v-055faa3a]:hover{background-color:rgba(255,255,255,.8)}.post-tab-bar__tab h2[data-v-055faa3a]{font-size:100%}.post-tab-bar__count[data-v-055faa3a]{font-weight:normal;margin-left:5px;font-size:12px}',""]),t.exports=i},37196:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".semantic-button[data-v-18ddd9ce]{background:none;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit}.comment-action-color[data-v-18ddd9ce]{color:var(--palette-text-normal)}.comment-action-color[data-v-18ddd9ce]:hover{color:#555}body.theme-dark .comment-action-color[data-v-18ddd9ce]:hover{color:#bbb}.related-articles-wrapper[data-v-18ddd9ce]{margin-bottom:16px}.related-articles-wrapper span[data-v-18ddd9ce]{display:block;font-weight:700;font-size:18px;line-height:32px;color:var(--palette-text);padding-top:16px;padding-bottom:16px}.related-articles-wrapper.mobile[data-v-18ddd9ce]{margin-bottom:0;background-color:var(--palette-text-foreground);border-bottom:1px solid var(--palette-text-light)}.related-articles-wrapper.mobile span[data-v-18ddd9ce]{font-size:16px;padding-left:16px}",""]),t.exports=i},85941:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".ui-noti-item[data-v-57d9cae4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:8px 16px;min-height:40px;background-color:var(--palette-secondary);color:var(--palette-text-normal);text-decoration:none}.ui-noti-item[data-v-57d9cae4] a{color:var(--palette-text-normal);text-decoration:none;font-weight:bold}.ui-noti-item.unread[data-v-57d9cae4]{background:none;color:var(--palette-text)}.ui-noti-item.unread[data-v-57d9cae4] a{color:var(--palette-text)}.ui-noti-item[data-v-57d9cae4]:hover{background-color:var(--palette-secondary)}.ui-noti-item__content[data-v-57d9cae4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ui-noti-item__text[data-v-57d9cae4]{margin-left:16px;font-size:14px}.ui-noti-item__icon[data-v-57d9cae4]{overflow:hidden;background-color:rgba(255,255,255,.13);min-width:40px;width:40px;height:40px}.ui-noti-item__icon.left[data-v-57d9cae4]{-webkit-border-radius:50%;border-radius:50%}.ui-noti-item__icon.right[data-v-57d9cae4]{-webkit-border-radius:4px;border-radius:4px}.ui-noti-item__icon img[data-v-57d9cae4]{width:40px;height:40px}.ui-noti-item__creation-time[data-v-57d9cae4]{color:#999;margin-left:4px}",""]),t.exports=i},69578:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".ui-customize-tags-item[data-v-4756da49]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:32px;margin-bottom:4px}.ui-customize-tags-item[data-v-4756da49]:last-of-type{margin-bottom:0}.ui-customize-tags-item__title[data-v-4756da49]{font-weight:400;font-size:14px;line-height:16px;color:var(--palette-text);text-decoration:none;cursor:pointer;padding:4px 0}.ui-customize-tags-item__actions[data-v-4756da49]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ui-customize-tags-item__action[data-v-4756da49]{margin-left:18px;cursor:pointer}.ui-customize-tags-item__action[data-v-4756da49]:first-of-type{margin-left:0}.ui-customize-tags-item__action .ui-base-icon[data-v-4756da49]{fill:rgba(0,0,0,.2)}body.theme-dark .ui-customize-tags-item__action .ui-base-icon[data-v-4756da49]{fill:rgba(255,255,255,.25)}.ui-customize-tags-item__action .ui-base-icon[data-v-4756da49]:hover{fill:rgba(0,0,0,.4)}body.theme-dark .ui-customize-tags-item__action .ui-base-icon[data-v-4756da49]:hover{fill:rgba(255,255,255,.4)}.ui-customize-tags-item__action .ui-base-icon.favorite[data-v-4756da49]{fill:#0b6cda}body.theme-dark .ui-customize-tags-item__action .ui-base-icon.favorite[data-v-4756da49]{fill:#0b6cda}.ui-customize-tags-item__action .ui-base-icon.favorite[data-v-4756da49]:hover{opacity:.7}.ui-customize-tags-item__action .ui-base-icon.hidden[data-v-4756da49]{fill:#ff3b30}body.theme-dark .ui-customize-tags-item__action .ui-base-icon.hidden[data-v-4756da49]{fill:#ff3b30}.ui-customize-tags-item__action .ui-base-icon.hidden[data-v-4756da49]:hover{opacity:.7}",""]),t.exports=i},38408:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".ui-customize-tags-section[data-v-02baa67c]{padding:12px 20px;border-top:1px solid var(--palette-text-background-hover)}.ui-customize-tags-section[data-v-02baa67c]:first-of-type{border-top:0}.ui-customize-tags-section__title[data-v-02baa67c]{font-weight:700;font-size:14px;line-height:24px;color:var(--palette-text-normal);display:inline-block;margin-bottom:4px}.ui-customize-tags-section__description[data-v-02baa67c]{font-weight:400;font-size:14px;line-height:16px;color:var(--palette-text-normal);padding:12px 0 8px 0}",""]),t.exports=i},83956:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".blocklist__wrapper[data-v-89d0aca4]{max-height:432px;overflow-y:auto;padding:10px 16px}.blocklist__wrapper[data-v-89d0aca4]::-webkit-scrollbar{width:0;opacity:0}.blocklist__empty[data-v-89d0aca4]{height:100px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.blocklist__empty p[data-v-89d0aca4]{color:var(--palette-text-normal);margin:0;padding:0}",""]),t.exports=i},88095:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".billboard[data-v-1e6a4a22]{min-width:728px;margin-bottom:16px;margin-left:-44px;-webkit-transform:scaleY(1);-ms-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;-webkit-transform-origin:top;-ms-transform-origin:top;transform-origin:top}.billboard.sticky[data-v-1e6a4a22]{position:-webkit-sticky;position:sticky;z-index:13;top:var(--15153907);opacity:var(--c2777286)}.billboard div[data-v-1e6a4a22]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-width:728px;min-height:90px;-webkit-transition:height .3s ease-out;-o-transition:height .3s ease-out;transition:height .3s ease-out}",""]),t.exports=i},89273:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".billboard-flexsider-ad[data-v-63e38555]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%;background-color:var(--palette-text-foreground)}",""]),t.exports=i},83864:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"div.background[data-v-439bdeaa]{position:fixed;width:100vw;height:100vh}div.background.full[data-v-439bdeaa]{background-image:var(--793d3b62);background-repeat:no-repeat;background-size:cover}div.background .side[data-v-439bdeaa]{position:absolute;width:var(--2b007da0);height:100vh;background-image:var(--793d3b62);background-repeat:repeat-y;top:49px;z-index:-1}div.background .container[data-v-439bdeaa]{width:-webkit-calc( 1036px + var(--main-margin) + var(--extra-width));width:calc( 1036px + var(--main-margin) + var(--extra-width));padding-left:16px;height:100vh;margin:0 auto;position:relative;background-color:var(--palette-text-foreground)}div.background .container.drawer[data-v-439bdeaa]{width:-webkit-calc( 1264px + var(--main-margin) + var(--extra-width));width:calc( 1264px + var(--main-margin) + var(--extra-width))}",""]),t.exports=i},30184:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"#individual-post[data-v-51d84f35]{margin-bottom:3.5rem}#individual-post header[data-v-51d84f35]{margin:1.5rem 0 .5rem}#individual-post header h1[data-v-51d84f35]{font-size:32px;line-height:40px;margin-bottom:.5rem}#individual-post header h3[data-v-51d84f35]{font-size:16px;margin-bottom:1.5rem;line-height:24px}",""]),t.exports=i},79056:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".drawer[data-v-29156987]{width:240px;height:-webkit-calc(100% - 48px);height:calc(100% - 48px);position:fixed;overflow:hidden;-ms-scroll-chaining:none;overscroll-behavior:contain;background-color:var(--palette-text-foreground);border-color:var(--palette-border-line);z-index:10;margin-top:1px}.drawer.full[data-v-29156987]{margin-top:48px;left:0;border-right:1px solid rgba(0,0,0,.1)}body.theme-dark .drawer[data-v-29156987]{background-color:#141414;border-color:rgba(255,255,255,.2)}.drawer .signup-side-banner[data-v-29156987]{margin:16px 8px 0 8px}.drawer.overlay[data-v-29156987]{left:0;border-right:1px solid rgba(0,0,0,.1);height:100%;z-index:14}.drawer .drawer-header[data-v-29156987]{background-color:var(--palette-text-foreground);width:220px;z-index:14;position:fixed;border-bottom:1px solid var(--palette-border-line)}.drawer .drawer-container[data-v-29156987]{width:100%;height:100%;overflow-y:scroll;will-change:transform}.drawer .drawer-container[data-v-29156987]::-webkit-scrollbar{width:0;opacity:0}.drawer .drawer-container.overlay[data-v-29156987]{margin-top:48px;height:-webkit-calc(100% - 48px);height:calc(100% - 48px)}.drawer .campaign-banner[data-v-29156987]{height:144px;margin-top:16px}.drawer-overlay[data-v-29156987]{background-color:rgba(0,0,0,.4);z-index:13;width:100%;height:100%;position:fixed}[data-v-29156987] section{margin:4px 0 8px}[data-v-29156987] section header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}[data-v-29156987] section header .h3{line-height:24px;height:24px;padding:4px 16px;color:#999;font-size:14px;font-weight:700;width:100%}[data-v-29156987] section header .button-clear,[data-v-29156987] section header .button-edit{font-weight:700;font-size:14px;padding:6px 16px;color:#999}[data-v-29156987] .label{color:var(--palette-text);font-size:14px;height:32px;line-height:20px;padding:6px 48px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:relative;-webkit-border-radius:2px;border-radius:2px;-webkit-transition:background-color .15s,padding-right .15s;-o-transition:background-color .15s,padding-right .15s;transition:background-color .15s,padding-right .15s;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}[data-v-29156987] .label.section{padding-left:16px}[data-v-29156987] .label.short{padding:6px 80px 6px 16px}[data-v-29156987] li{position:relative}[data-v-29156987] li.selected .label{background-color:rgba(0,0,0,.06)}[data-v-29156987] li:hover .label{background-color:rgba(0,0,0,.1)}[data-v-29156987] li:active .label{background-color:rgba(0,0,0,.2)}[data-v-29156987] li:active .button .icon{opacity:.4}[data-v-29156987] .icon{position:absolute;width:24px;height:24px;top:50%;margin-top:-12px}[data-v-29156987] .button{position:absolute;width:36px;height:32px;display:block;right:0;top:0;-webkit-transition:opacity .15s;-o-transition:opacity .15s;transition:opacity .15s;margin-right:12px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer}[data-v-29156987] .button .icon{opacity:.1;left:6px}[data-v-29156987] .button .icon:hover{opacity:.2}",""]),t.exports=i},67884:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"li .emoji-icon[data-v-9e307a68]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:24px;height:24px;font-size:24px}li .button .ui-base-icon[data-v-9e307a68]{fill:rgba(0,0,0,.2)}body.theme-dark li .button .ui-base-icon[data-v-9e307a68]{fill:rgba(255,255,255,.25)}li .button.favorite .ui-base-icon[data-v-9e307a68]{fill:#0b6cda}body.theme-dark li .button.favorite .ui-base-icon[data-v-9e307a68]{fill:#0b6cda}li .button.favorite:hover .ui-base-icon[data-v-9e307a68]{opacity:.7}li .button:not(.favorite):hover .ui-base-icon[data-v-9e307a68]{fill:rgba(0,0,0,.4)}body.theme-dark li .button:not(.favorite):hover .ui-base-icon[data-v-9e307a68]{fill:rgba(255,255,255,.4)}",""]),t.exports=i},1478:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".drawer-menu-item[data-v-6dbed18f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:34px;padding:6px 48px 6px 16px;color:var(--palette-text);font-size:14px;line-height:20px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-webkit-border-radius:2px;border-radius:2px;-webkit-transition:background-color .15s,padding-right .15s;-o-transition:background-color .15s,padding-right .15s;transition:background-color .15s,padding-right .15s;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.drawer-menu-item.bold[data-v-6dbed18f]{font-weight:700}.drawer-menu-item__icon[data-v-6dbed18f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:24px;min-width:24px;height:24px;margin-right:12px}.drawer-menu-item__icon[data-v-6dbed18f] .ui-base-icon{fill:#000}body.theme-dark .drawer-menu-item__icon[data-v-6dbed18f] .ui-base-icon{fill:#fff}.drawer-menu-item__icon[data-v-6dbed18f] img{-webkit-border-radius:4px;border-radius:4px}.drawer-menu-item__title[data-v-6dbed18f]{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}li[data-v-6dbed18f]{position:relative}li.selected .drawer-menu-item[data-v-6dbed18f]{background-color:rgba(0,0,0,.06)}li:hover .drawer-menu-item[data-v-6dbed18f]{background-color:rgba(0,0,0,.1)}li:active .drawer-menu-item[data-v-6dbed18f]{background-color:rgba(0,0,0,.2)}body.theme-dark li.selected .drawer-menu-item[data-v-6dbed18f]{background-color:rgba(255,255,255,.12)}body.theme-dark li:hover .drawer-menu-item[data-v-6dbed18f]{background-color:rgba(255,255,255,.2)}body.theme-dark li:active .drawer-menu-item[data-v-6dbed18f]{background-color:rgba(255,255,255,.3)}",""]),t.exports=i},32554:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".recaptcha[data-v-423d4b29]{margin-bottom:16px}",""]),t.exports=i},88467:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".profile .tab-bar[data-v-4b7f8452]{margin-top:12px}.profile-more[data-v-4b7f8452]{text-align:right;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:100%}.profile-more .button[data-v-4b7f8452]{display:block;padding:10px;position:relative;-webkit-transition:all linear .1s;-o-transition:all linear .1s;transition:all linear .1s}.profile-more li a[data-v-4b7f8452]{text-align:left;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;overflow:hidden}",""]),t.exports=i},60122:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".bottom-comment-composer[data-v-1416057c]{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;z-index:2;bottom:0;background-color:var(--palette-text-foreground);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:-webkit-calc(640px + 172px);width:calc(640px + 172px);-webkit-transform:translateX(-86px);-ms-transform:translateX(-86px);transform:translateX(-86px);padding-left:-webkit-calc(86px);padding-left:calc(86px);padding-right:-webkit-calc(86px);padding-right:calc(86px)}.bottom-comment-composer__container[data-v-1416057c]{width:640px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:10px 0;background-color:var(--palette-text-foreground);-webkit-box-shadow:var(--palette-text-foreground) 0px 32px 0px 32px,var(--palette-box-shadow-normal) 0px 0px 50px -16px;box-shadow:var(--palette-text-foreground) 0px 32px 0px 32px,var(--palette-box-shadow-normal) 0px 0px 50px -16px}body.theme-dark .bottom-comment-composer__container[data-v-1416057c]{-webkit-box-shadow:none;box-shadow:none}.bottom-comment-composer__button_container[data-v-1416057c]{margin-left:8px;margin-top:2px}.comment-composer[data-v-1416057c]{width:100%}",""]),t.exports=i},23320:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"li[data-v-361701b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:34px;-webkit-border-radius:4px;border-radius:4px;padding:0 12px;cursor:pointer}li[data-v-361701b8]:hover{background-color:var(--palette-text-foreground-hover)}li[data-v-361701b8]:active{background-color:var(--palette-text-foreground-active)}span[data-v-361701b8]{font-weight:bold;font-size:14px;line-height:20px;color:var(--palette-text-normal);text-align:center;padding:0 0 0 6px}a[data-v-361701b8]{fill:var(--palette-text-normal)}",""]),t.exports=i},18544:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-award-modal .title[data-v-eebae146]{font-weight:bold;font-size:24px;margin-bottom:8px}.post-award-modal .content[data-v-eebae146]{font-size:16px;line-height:24px;margin-top:8px}.post-award-modal .feedback[data-v-eebae146]{margin-top:8px;font-size:16px;line-height:24px}.post-award-modal .balance[data-v-eebae146]{background:var(--palette-text-foreground-hover);-webkit-border-radius:14px;border-radius:14px;padding:7px 16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:8px;margin-right:16px;font-weight:bold;font-size:16px;fill:var(--palette-text)}",""]),t.exports=i},88391:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".comment[data-v-9307a4a4]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:center;-webkit-border-radius:4px;border-radius:4px;padding:0 12px;height:34px;cursor:pointer}.comment span[data-v-9307a4a4]{padding:0 0 0 6px;color:var(--palette-text-normal);font-weight:bold;font-size:14px;line-height:20px;display:inline-block;text-align:start}.comment span.comment-text[data-v-9307a4a4]{padding-left:4px}.comment[data-v-9307a4a4]:hover{background-color:var(--palette-text-foreground-hover)}.comment[data-v-9307a4a4]:active{background-color:var(--palette-text-foreground-active)}",""]),t.exports=i},75996:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-content-text[data-v-36ab4a97]{color:var(--palette-text);text-decoration:none}",""]),t.exports=i},74487:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-header[data-v-3350a396]{margin-bottom:8px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.post-header .hide-post[data-v-3350a396]{cursor:pointer;padding:4px;-webkit-border-radius:50%;border-radius:50%;fill:var(--palette-text-normal);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-left:6px}.post-header .hide-post[data-v-3350a396]:hover{background-color:var(--palette-text-foreground-hover)}.post-header .hide-post[data-v-3350a396]:active{background-color:var(--palette-text-foreground-active)}.post-header__left[data-v-3350a396]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:8px}.post-header__left[data-v-3350a396] .post-view-header,.post-header__left[data-v-3350a396] .ui-post-creator{-webkit-box-flex:unset;-webkit-flex-grow:unset;-ms-flex-positive:unset;flex-grow:unset}",""]),t.exports=i},99162:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-afterbar-a[data-v-5b79dbca]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.post-page .post-award-users[data-v-5b79dbca]{margin-top:-2px;margin-bottom:8px}",""]),t.exports=i},31119:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-meta .separator[data-v-6fda51fe]{width:2px;height:2px;-webkit-border-radius:50%;border-radius:50%;background:var(--palette-text-normal);margin:2px 4px 0}.post-meta__list-view[data-v-6fda51fe]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.post-meta__list-view .image[data-v-6fda51fe]{height:24px;width:24px}.post-meta__list-view .image img[data-v-6fda51fe]{-webkit-border-radius:4px;border-radius:4px;width:100%;height:100%}.post-meta__list-view .name[data-v-6fda51fe]{margin-left:8px;font-weight:bold;color:var(--palette-text);font-size:14px;line-height:16px;text-decoration:none}.post-meta__list-view .creationTime[data-v-6fda51fe]{color:var(--palette-text-normal);font-size:12px;line-height:14px;margin-left:6px}.post-meta__list-view[data-v-6fda51fe] .ui-post-creator__icon{width:24px;height:24px;-webkit-border-radius:12px;border-radius:12px}.post-meta__list-view[data-v-6fda51fe] .ui-post-creator__author{font-size:14px}.post-meta__list-view[data-v-6fda51fe] .ui-post-creator__icon .ui-base-icon{width:24px !important;height:24px !important}.post-meta__post-view[data-v-6fda51fe]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.post-meta__post-view .image[data-v-6fda51fe]{height:40px;width:40px;margin-right:12px}.post-meta__post-view .image img[data-v-6fda51fe]{-webkit-border-radius:4px;border-radius:4px;width:100%;height:100%}.post-meta__post-view .name[data-v-6fda51fe]{font-weight:bold;color:var(--palette-text);font-size:16px;line-height:20px;text-decoration:none}.post-meta__post-view .creator[data-v-6fda51fe]{color:var(--palette-text-normal);font-size:12px;margin-top:4px;line-height:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.post-meta__post-view .creator a[data-v-6fda51fe]{color:var(--palette-text-normal);text-decoration:none}.post-meta.mobile .post-meta__post-view .image[data-v-6fda51fe]{height:32px;width:32px}.post-meta.mobile .post-meta__post-view .name[data-v-6fda51fe]{font-size:14px;line-height:16px}.post-meta.mobile .post-meta__post-view .creator[data-v-6fda51fe]{line-height:14px;margin-top:2px}",""]),t.exports=i},74095:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".button[data-v-085fa1ec]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-border-radius:10px;border-radius:10px;width:20px;height:20px;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.button[data-v-085fa1ec]:hover{background-color:rgba(0,0,0,.06)}body.theme-dark .button[data-v-085fa1ec]:hover{background-color:rgba(255,255,255,.06)}.button.active[data-v-085fa1ec]{background-color:rgba(0,0,0,.1)}.button.active .popup-icon.more[data-v-085fa1ec]{opacity:1}body.theme-dark .button.active[data-v-085fa1ec]{background-color:rgba(255,255,255,.1)}",""]),t.exports=i},50566:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"li[data-v-0ccc18a5]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:34px;-webkit-border-radius:4px;border-radius:4px;padding:0 12px;cursor:pointer}li[data-v-0ccc18a5]:hover{background-color:var(--palette-text-foreground-hover)}li[data-v-0ccc18a5]:active{background-color:var(--palette-text-foreground-active)}span[data-v-0ccc18a5]{font-weight:bold;font-size:14px;line-height:20px;color:var(--palette-text-normal);text-align:center;padding:0 0 0 6px;min-width:2ch}span.active[data-v-0ccc18a5]{color:var(--palette-text)}a[data-v-0ccc18a5]{fill:var(--palette-text-normal)}a[data-v-0ccc18a5]:hover{fill:rgba(0,0,0,.6)}body.theme-dark a[data-v-0ccc18a5]:hover{fill:rgba(255,255,255,.6)}a[data-v-0ccc18a5]:active{fill:rgba(0,0,0,.4)}body.theme-dark a[data-v-0ccc18a5]:active{fill:rgba(255,255,255,.4)}a.active[data-v-0ccc18a5]{fill:var(--palette-danger)}a.active[data-v-0ccc18a5]:hover{fill:var(--palette-danger-hover)}a.active[data-v-0ccc18a5]:active{fill:var(--palette-danger-active)}",""]),t.exports=i},54406:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-save-shortcut[data-v-1e7bfaa6]{cursor:pointer}.post-save-shortcut[data-v-1e7bfaa6]:hover{background-color:rgba(0,0,0,.06)}body.theme-dark .post-save-shortcut[data-v-1e7bfaa6]:hover{background-color:rgba(255,255,255,.12)}.post-save-shortcut[data-v-1e7bfaa6]:active{background-color:rgba(0,0,0,.1)}body.theme-dark .post-save-shortcut[data-v-1e7bfaa6]:active{background-color:rgba(255,255,255,.06)}",""]),t.exports=i},23106:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-sensitive-mask[data-v-3fb1d5ac]{position:relative;height:306px;width:100%;-webkit-border-radius:4px;border-radius:4px;background:var(--palette-secondary);color:#fff}.post-sensitive-mask__body[data-v-3fb1d5ac]{top:0;left:0;width:100%;height:100%;position:absolute;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;overflow:auto}",""]),t.exports=i},19470:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".share-bar[data-v-0c18b9a0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;height:100%;position:relative}.share-bar a[data-v-0c18b9a0]{margin-right:8px;width:34px;height:34px;-webkit-border-radius:4px;border-radius:4px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;fill:var(--palette-text-normal)}.share-bar a.whatsapp[data-v-0c18b9a0]:hover{fill:#fff;background-color:#65d072}.share-bar a.whatsapp[data-v-0c18b9a0]:active{fill:rgba(255,255,255,.6);background-color:rgba(101,208,114,.9)}.share-bar a.messenger[data-v-0c18b9a0]:hover{fill:#fff;background-color:#3875ea}.share-bar a.messenger[data-v-0c18b9a0]:active{fill:rgba(255,255,255,.6);background-color:rgba(56,117,234,.9)}",""]),t.exports=i},83401:(t,e,o)=>{var i=o(23645),s=o(61667),n=o(40163),r=i((function(t){return t[1]})),a=s(n);r.push([t.id,'ul li a[data-v-4e432bc4]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-indent:40px;padding:0}body.theme-dark ul li a[data-v-4e432bc4]{fill:#fff}ul li a[data-v-4e432bc4]:after{content:"";position:absolute;width:30px;height:30px;top:0;bottom:0;margin:auto 0;left:14px}ul li a.telegram[data-v-4e432bc4]:after{background:url('+a+") -660px -90px no-repeat;background-size:720px 120px}body.theme-dark ul li a.telegram[data-v-4e432bc4]:after{fill:#fff}ul li a.twitter[data-v-4e432bc4]:after{background:url("+a+") -360px -90px no-repeat;background-size:720px 120px}body.theme-dark ul li a.twitter[data-v-4e432bc4]:after{fill:#fff}ul li a.copy[data-v-4e432bc4]:after{background:url("+a+") -570px -60px no-repeat;background-size:720px 120px}body.theme-dark ul li a.copy[data-v-4e432bc4]:after{fill:#fff;background:url("+a+") -570px -30px no-repeat;background-size:720px 120px}ul li a.email[data-v-4e432bc4]:after{background:url("+a+") -600px -60px no-repeat;background-size:720px 120px}body.theme-dark ul li a.email[data-v-4e432bc4]:after{fill:#fff;background:url("+a+") -600px -30px no-repeat;background-size:720px 120px}ul li a.facebook[data-v-4e432bc4]:after{background:url("+a+") -90px -90px no-repeat;background-size:720px 120px}body.theme-dark ul li a.facebook[data-v-4e432bc4]:after{fill:#fff;background:url("+a+") -90px -90px no-repeat;background-size:720px 120px}ul li a.pinterest[data-v-4e432bc4]:after{background:url("+a+") -390px -90px no-repeat;background-size:720px 120px}body.theme-dark ul li a.pinterest[data-v-4e432bc4]:after{fill:#fff;background:url("+a+") -390px -90px no-repeat;background-size:720px 120px}.share-menu-button[data-v-4e432bc4]{-webkit-border-radius:4px;border-radius:4px;padding:0 8px;height:34px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;fill:var(--palette-text-normal);color:var(--palette-text-normal)}.share-menu-button span[data-v-4e432bc4]{margin-left:4px;font-weight:bold}.share-menu-button[data-v-4e432bc4]:hover{background-color:var(--palette-text-foreground-hover)}.share-menu-button[data-v-4e432bc4]:active{background-color:var(--palette-text-foreground-active)}",""]),t.exports=r},4556:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".signup-list-banner[data-v-fa703c26]{border-top:1px solid #f5f5f5}body.theme-dark .signup-list-banner[data-v-fa703c26]{border-color:rgba(255,255,255,.2)}",""]),t.exports=i},60577:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-tags[data-v-6c4005c6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:10px;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:14px 0 8px}",""]),t.exports=i},6581:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".ui-post-tags-section[data-v-0b1b15d8]{margin-top:8px;padding-top:4px;padding-bottom:4px}",""]),t.exports=i},34823:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,'.post-view-header[data-v-01562c16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;font-size:14px}.post-view-header__icon[data-v-01562c16]{position:relative;display:inline-block;vertical-align:middle;width:40px;height:40px;-webkit-border-radius:100%;border-radius:100%;overflow:hidden}.post-view-header__icon[data-v-01562c16]:before{content:"";z-index:1;display:block;position:absolute;height:-webkit-calc(100% - 2px);height:calc(100% - 2px);width:-webkit-calc(100% - 2px);width:calc(100% - 2px);-webkit-border-radius:50%;border-radius:50%;border:1px solid rgba(0,0,0,.1)}.post-view-header__icon.promoted[data-v-01562c16]{width:20px;height:20px}.post-view-header__icon img.icon[data-v-01562c16]{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.post-view-header__container[data-v-01562c16]{margin-left:12px}.post-view-header__head[data-v-01562c16]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.post-view-header__badge[data-v-01562c16]{margin-right:4px}.post-view-header__message[data-v-01562c16]{display:inline-block;vertical-align:middle;line-height:16px;color:var(--palette-text-normal)}.post-view-header__details[data-v-01562c16]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.post-view-header__details span[data-v-01562c16]{margin-right:4px}.post-view-header__creation[data-v-01562c16]{font-weight:400;font-size:12px;line-height:16px;color:var(--palette-text-normal);display:block;margin-top:4px}.post-view-header__emoji[data-v-01562c16]{font-weight:400;font-size:14px;line-height:16px}.post-view-header .post-view-header__author[data-v-01562c16]{font-weight:700;font-size:16px;color:var(--palette-text) !important;text-decoration:none;margin-right:4px}.post-view-header .post-view-header__author.promoted[data-v-01562c16]{font-size:12px;color:var(--palette-text-normal) !important}',""]),t.exports=i},85538:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"li[data-v-4ff3127c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:34px;-webkit-border-radius:4px;border-radius:4px;padding:0 8px}li[data-v-4ff3127c]:hover{cursor:pointer;background-color:var(--palette-text-foreground-hover)}li:hover a.upvote.grouped[data-v-4ff3127c]:not(.disabled){background-color:var(--palette-text-foreground-hover)}li[data-v-4ff3127c]:active{background-color:var(--palette-text-foreground-active)}li:active a.upvote.grouped[data-v-4ff3127c]:not(.disabled){background-color:var(--palette-text-foreground-active)}span[data-v-4ff3127c]{font-weight:bold;font-size:14px;line-height:20px;color:var(--palette-text-normal);text-align:center;padding:0 3px;min-width:2ch}span.active.upvote[data-v-4ff3127c]{color:var(--palette-primary)}span.active.downvote[data-v-4ff3127c]{color:var(--palette-danger)}a[data-v-4ff3127c]{padding:2px;-webkit-border-radius:4px;border-radius:4px;cursor:pointer;fill:var(--palette-text-normal)}a.grouped[data-v-4ff3127c]:hover{background-color:var(--palette-text-foreground-hover)}a.grouped[data-v-4ff3127c]:active{background-color:var(--palette-text-foreground-active)}a.active.upvote[data-v-4ff3127c]{fill:var(--palette-primary) !important}a.active.downvote[data-v-4ff3127c]{fill:var(--palette-danger) !important}",""]),t.exports=i},23527:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".related-post-list[data-v-0eb79e40]{margin-top:16px}",""]),t.exports=i},55653:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".blank-state[data-v-636755ca]{background-color:var(--palette-text-background);margin:20px 0;height:300px;overflow:hidden;-webkit-border-radius:2px;border-radius:2px}.blank-state .message[data-v-636755ca]{font-size:16px;text-align:center;font-weight:400;margin-top:140px;color:#999}#list-view-2[data-v-636755ca] .stream-container:first-child .sidebar{margin-top:var(--1f33c386)}",""]),t.exports=i},70496:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".ui-post-tags[data-v-7f40ae1b]{margin-bottom:4px}",""]),t.exports=i},36865:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".post-list-tag[data-v-43340a4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:10px;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:14px 0}",""]),t.exports=i},22071:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".sidebar[data-v-862fe5ec]{width:var(--sidebar-width);position:-webkit-sticky;position:sticky;top:var(--61630eca);float:right}[data-v-862fe5ec] .sidebar-content .sticky{margin-bottom:16px;position:-webkit-sticky;position:sticky;top:var(--61630eca)}[data-v-862fe5ec] .sidebar-content .block-ad{margin-bottom:8px}[data-v-862fe5ec] .sidebar-content .block-ad:last-child{height:auto;min-height:280px;max-height:600px}",""]),t.exports=i},82016:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,"[data-v-49e92e4a] .nav-wrap.full{max-width:100%}[data-v-49e92e4a] .nav-wrap.full .user-function .btn-primary{margin-right:10px}",""]),t.exports=i},44652:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".upload[data-v-d638517a]{float:right}.upload .ui-btn[data-v-d638517a]{padding-left:14px;padding-right:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.upload .ui-btn .ui-base-icon[data-v-d638517a]{margin-right:8px}.topbar-menu-container[data-v-d638517a]{position:absolute;right:0px;top:44px}",""]),t.exports=i},21330:(t,e,o)=>{var i=o(23645)((function(t){return t[1]}));i.push([t.id,".notilist-spiner[data-v-dbb3e524]{position:relative}",""]),t.exports=i},40163:(t,e,o)=>{t.exports=o.p+"img/sprite.png"},68946:(t,e,o)=>{"use strict";o.d(e,{Z:()=>l});var i=o(66252);const s={ref:"loadMore",style:{height:"1px"}};var n=o(92289),r=o(23279),a=o.n(r);const c={emits:["loadMore"],props:{threshold:{type:Number,default:500},root:{type:HTMLElement,default:null},overscroll:{type:Boolean,default:!1}},data:()=>({observer:null}),methods:{handler(t){(t[0]||{}).visibilityStatus===n.default.VISIBILITY_STATUS.enter&&this.$emit("loadMore")},reset(){this.observer.reset(),this.observer.observe(this.$refs.loadMore),this.overscroll&&this.overscrollLoadMore()},_overscrollLoadMore(){this.$refs.loadMore&&(window.scrollY{"use strict";o.d(e,{Z:()=>a});var i=o(66252);const s=["innerHTML"];var n=o(8062);const r={data:()=>({html:""}),watch:{async content(t,e){t!==e&&await this.render()}},props:["content"],methods:{async render(){this.html="",this.content.length&&(this.html=await n.Z.render(this.content))}},async created(){await this.render()}},a=(0,o(83744).Z)(r,[["render",function(t,e,o,n,r,a){return(0,i.wg)(),(0,i.iD)("div",{innerHTML:r.html},null,8,s)}]])},14742:(t,e,o)=>{"use strict";o.d(e,{Z:()=>p});var i=o(66252);const s={ref:"recaptcha"};var n=o(96156),r=o(32204),a=o(13036).default;function c(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const{mapGetters:l}=(0,r._p)("config"),d={emits:["ready"],computed:function(t){for(var e=1;e({retry:5}),methods:{getResponse(){const t=this.$refs.recaptcha.querySelector(".g-recaptcha-response");return t?t.value:null},renderCaptcha(){const{sitekey:t,theme:e}=this.config;if(window.grecaptcha&&window.grecaptcha.render&&t){if(!this.$refs.recaptcha)return;window.grecaptcha.render(this.$refs.recaptcha,{sitekey:t,theme:e}),this.$emit("ready")}else this.retry>0&&(this.retry-=1,setTimeout(this.renderCaptcha,1e3))}},async mounted(){this.$router&&await this.$router.isReady(),window.grecaptcha?this.renderCaptcha():a.loadScript("https://www.google.com/recaptcha/api.js?render=explicit").then((()=>this.renderCaptcha()))}},p=(0,o(83744).Z)(d,[["render",function(t,e,o,n,r,a){return(0,i.wg)(),(0,i.iD)("div",s,null,512)}]])},37728:(t,e,o)=>{"use strict";o.d(e,{Z:()=>ht});var i=o(66252),s=o(3577);const n={class:"comment-composer__input-area"};var r=o(96156),a=o(32204),c=o(53852),l=o(83304),d=o(84157),p=o(81573);function u(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function h(t){for(var e=1;e({composerId:(0,i.f3)("composerId")})};o(50847);var f=o(83744);const v=(0,f.Z)(g,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("Avatar"),l=(0,i.up)("IconGuest");return a.avatarUrl?((0,i.wg)(),(0,i.j4)(c,{key:0,avatarUrl:a.avatarUrl,size:o.size,isOnline:a.isOnline,style:(0,s.j5)(a.style),isAnonymous:t.canAnonymousComment(a.postId)},null,8,["avatarUrl","size","isOnline","style","isAnonymous"])):((0,i.wg)(),(0,i.iD)("a",{key:1,class:"avatar-container",style:(0,s.j5)(a.style)},[(0,i.Wm)(l,{size:o.size},null,8,["size"])],4))}],["__scopeId","data-v-3754678e"]]);var b=o(49963);const w={class:"comment-input-area-content__input-area"};var y=o(3480);const k={key:0,class:"attachment-files__container"},P={key:0,class:"attachment-file__img-wrapper"},O=["src"],_={key:1,class:"attachment-file__loading"};var I=o(73910);const C={name:"AttachmentListItem",emits:["onDelete"],inject:{smallAttachment:{default:!1}},props:["media"],components:{IconClose:o(53310).Z,IconSpinnerAnimated:I.Z}};o(6033);const S=(0,f.Z)(C,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("IconSpinnerAnimated"),l=(0,i.up)("IconClose");return(0,i.wg)(),(0,i.iD)("div",{class:(0,s.C_)(["attachment-file",{small:a.smallAttachment}])},[o.media?((0,i.wg)(),(0,i.iD)("div",P,[(0,i._)("img",{src:o.media.image.url},null,8,O)])):((0,i.wg)(),(0,i.iD)("div",_,[(0,i.Wm)(c,{radius:24})])),(0,i._)("a",{href:"javascript:void(0);",class:"attachment-file__remove",onClick:e[0]||(e[0]=e=>t.$emit("onDelete"))},[(0,i._)("span",null,[(0,i.Wm)(l,{size:"6",color:"var(--palette-text-foreground)"})])])],2)}],["__scopeId","data-v-c0a976f4"]]);function x(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function T(t){for(var e=1;e0}}),methods:T(T({},(0,d.nv)(p.kR,{deleteUploadedFile:"deleteAttachedFile"})),{},{deleteFile(t){this.deleteUploadedFile({itemID:this.itemID,fileID:t.id}),this.$emit("removeAttachment",this.itemID)}}),components:{AttachmentListItem:S}};o(33672);const A=(0,f.Z)(E,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("AttachmentListItem");return r.showAttachments?((0,i.wg)(),(0,i.iD)("div",k,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(r.files,(t=>((0,i.wg)(),(0,i.j4)(a,{media:t.uploadedMedia,onOnDelete:e=>r.deleteFile(t)},null,8,["media","onOnDelete"])))),256))])):(0,i.kq)("",!0)}],["__scopeId","data-v-24739ab9"]]);var D=o(73499),j=o(90117);function M(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function L(t){for(var e=1;e({focused:!1}),methods:L(L(L({},(0,d.nv)(p.cO,["setComposerMessage","setComposerFocused","setShouldFocusComposer"])),(0,d.nv)(p.kR,["pasteUpload"])),{},{enterComment(t){(t.ctrlKey||t.metaKey)&&(t.preventDefault(),this.$emit("submit"))},writeComment(){this.$emit("focus"),this.setComposerFocused({idKey:this.composerId,focused:!0}),D.Z.track(j.Z.writeComment(this.getViewMode))},clickTextField(){this.focusInput()},setCommentValue(t){"string"==typeof t&&this.setComposerMessage({idKey:this.composerId,message:t})},focusInput(){this.$refs.inputText&&this.$refs.inputText.$el.focus()},pasteHandler(t){this.pasteUpload({itemID:this.composerId,pasteEvent:t})}}),computed:L(L(L({},(0,d.rn)(p.cO,["getCommentComposerStateById","shouldFocusComposer"])),(0,d.rn)(p.jd,["getViewMode"])),{},{minHeight(){return this.isCollapsed?36:78},maxHeight(){return this.isCollapsed?36:150},inputValue(){return this.isCollapsed?"":this.composerMessage},placeholder(){return this.composerParent?"Leave a reply...":this.isForumPost?"Write your answer...":"Leave a comment..."},composerState(){return this.getCommentComposerStateById(this.composerId)},isReply(){var t;return(null===(t=this.composerState)||void 0===t?void 0:t.isReply)||!1},composerMessage(){return this.composerState.message},composerParent(){return this.composerState.parent},isFocused(){var t;return(null===(t=this.composerState)||void 0===t?void 0:t.isFocused)||!1},isDisabled(){return!this.isLoggedIn}})};o(33613);const Z=(0,f.Z)(U,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("TextareaAutosize");return(0,i.wg)(),(0,i.iD)("section",{class:(0,s.C_)(["comment-input-area-content",{focused:a.isFocused,collapsed:a.isCollapsed}])},[(0,i._)("div",w,[(0,i.Wm)(c,{class:"comment-input-area-content__input-area_textarea",rows:"1",ref:"inputText",value:a.inputValue,placeholder:a.placeholder,"min-height":a.minHeight,"max-height":a.maxHeight,disabled:a.isDisabled,onInput:a.setCommentValue,onClick:(0,b.iM)(a.clickTextField,["prevent"]),onKeydown:(0,b.D2)(a.enterComment,["enter","native"]),onFocus:a.writeComment,onFocusin:e[0]||(e[0]=e=>t.setComposerFocused({idKey:a.composerId,focused:!0})),onFocusout:e[1]||(e[1]=e=>t.setComposerFocused({idKey:a.composerId,focused:!1})),onPaste:a.pasteHandler},null,8,["value","placeholder","min-height","max-height","disabled","onInput","onClick","onKeydown","onFocus","onPaste"])])],2)}],["__scopeId","data-v-ac49e860"]]),R={class:"comment-input-area-footer"},N={key:1,class:"comment-input-area-footer__actions-area actions-area-secondary"},B={class:"comment-input-area-footer__actions-area actions-area-primary"},H={key:0,class:"comment-input-area-footer__actions-area_action remaining-characters"};var V=o(97392);const F={class:"upload-button__wrapper"},$={ref:"form"},G=["accept","disabled"];var z=o(60598),W=o(23376),K=o(48254).default;function q(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Y(t){for(var e=1;e({loading:!1}),props:{maxFileSize:{required:!1,type:Number,default:p.T},onlyMediaFiles:{required:!1,type:Boolean,default:!0},isDisabled:{required:!1,type:Boolean,default:!1},itemID:{required:!0,type:String},acceptedMediaTypes:{required:!1,type:Array,default:function(){return["image/gif","image/jpeg","image/png","video/webm","video/mp4"]}}},components:{IconCamera:z.Z},computed:{accept(){return this.acceptedMediaTypes.join(", ")}},methods:Y(Y({},(0,d.nv)(p.kR,["uploadFile"])),{},{async onFileSelected(){const t=this.$refs.files.files;if(0===t.length)return;const e=t[0];if(!this.validateFile(e))return K.trackCommentWarning("Media"),void this.$refs.form.reset();await this.uploadFile({file:e,itemID:this.itemID})},isValidFileSize(t){return t.size<=this.maxFileSize},isValidTypeOfFile(t){return!this.onlyMediaFiles||this.onlyMediaFiles&&this.acceptedMediaTypes.includes(t.type)},validateFile(t){let e=!0;if(!this.isValidFileSize(t)){const t=Math.floor(this.maxFileSize/1e6);(0,W.E)().showNotice(`File is too big! Please keep it under ${t}MBs`),e=!1}return this.isValidTypeOfFile(t)||((0,W.E)().showNotice("Please select photos, GIFs or MP4s"),e=!1),e}})};o(86573);const J=(0,f.Z)(Q,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("IconCamera");return(0,i.wg)(),(0,i.iD)("div",F,[(0,i._)("form",$,[(0,i._)("input",{class:"upload-button__button",type:"file",ref:"files",accept:r.accept,onChange:e[0]||(e[0]=t=>r.onFileSelected()),disabled:o.isDisabled},null,40,G),(0,i.Wm)(a,{size:"20",color:o.isDisabled?"#e5e5e5":"#999999"},null,8,["color"])],512)])}],["__scopeId","data-v-add150c8"]]),X=["value"],tt=["value"];function et(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ot(t){for(var e=1;e0}}),setup:()=>({composerId:(0,i.f3)("composerId")}),methods:ot(ot({},(0,d.nv)(p.cO,["setComposerDelegate"])),{},{changeDelegate(t){const e=t.srcElement||t.target,o=e.selectedIndex;this.setComposerDelegate({idKey:this.composerId,delegateUserId:e[o].value})}})};o(49318);const st=(0,f.Z)(it,[["render",function(t,e,o,n,r,a){return a.canShowDelegate?((0,i.wg)(),(0,i.iD)("select",{key:0,class:"change-delegate-select",onChange:e[0]||(e[0]=(...t)=>a.changeDelegate&&a.changeDelegate(...t))},[((0,i.wg)(),(0,i.iD)("option",{key:t.userInfo.userId,value:t.userInfo.userId},(0,s.zw)(t.userInfo.displayName)+" (Current user)",9,X)),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.userInfo.delegates,(t=>((0,i.wg)(),(0,i.iD)("option",{key:t.userId,value:t.userId},(0,s.zw)(t.displayName),9,tt)))),128))],32)):(0,i.kq)("",!0)}],["__scopeId","data-v-a2e6520c"]]);var nt=o(97554),rt=o(48254).default;function at(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ct(t){for(var e=1;e({isReaction:!1}),setup(){const t=(0,i.f3)("currentPostTab");return{composerId:(0,i.f3)("composerId"),currentPostTab:t}},components:{AttachmentList:A,AttachmentUploadButton:J,ChangeDelegateSelect:st,GeneralButton:V.Wo},computed:ct(ct(ct(ct(ct(ct({},(0,d.rn)(p.nk,{userInfo:"info"})),(0,d.rn)(p.$j,{appInfo:"info"})),(0,d.rn)(p.cO,["getCommentComposerStateById","isCommentSending"])),(0,d.rn)(p.jd,["isLocked","getViewMode","postKey"])),(0,d.rn)(p.kR,["isProcessingFile","getAttachedFiles"])),{},{remainingCharactersLimit(){return this.appInfo.maxMessageLength-this.composerMessage.length},disableSendButton(){return!!this.isLocked||this.isCommentSending||this.isFileProcessing||!this.composerMessage.length&&!this.files.length},files(){return this.getAttachedFiles(this.composerId)},showAttachments(){return this.files.length>0},composerState(){return this.getCommentComposerStateById(this.composerId)},isReply(){var t;return(null===(t=this.composerState)||void 0===t?void 0:t.isReply)||!1},composerMessage(){var t;return(null===(t=this.composerState)||void 0===t?void 0:t.message)||""},isFileProcessing(){return this.isProcessingFile(this.composerId)},actionText(){return this.isForumPost?"Answer":"Comment"}}),methods:ct(ct(ct(ct({},(0,d.nv)(p.jd,{setHighlightedCommentState:"setHighlightedCommentState"})),(0,d.nv)(p.cO,{clearComposer:"clearComposer",setComposerInactive:"setComposerInactive",_sendComposerMessage:"sendComposerMessage",setCommentSending:"setCommentSending"})),(0,d.nv)(p.kR,["uploadFile"])),{},{uploadReaction(t){this.uploadFile({file:t,itemID:this.composerId}),this.isReaction=!0},async sendComposerMessage(){this.setCommentSending(!0);try{const t=await this._sendComposerMessage({idKey:this.composerId});if(!t)return;const e=this.getViewMode===p.WF.LIST_VIEW;this.getViewMode,p.WF.POST_THREAD,this.currentPostTab,D.Z.track(this.isReply?j.Z.replyComment:e?j.Z.addInlineComment:j.Z.addComment),rt.trackPostComment(t,this.composerId,this.isReaction,this.position),this.isReaction=!1,e?(0,W.E)().showAction(`${this.actionText} posted.`,`View ${this.actionText}`,(()=>{this.$router.push({name:nt.Z.POST,params:{postId:this.composerId},hash:"#comment"}),this.setHighlightedCommentState({commentId:t}),rt.trackViewCommentClicked()})):(0,W.E)().showAction(`${this.actionText} posted.`,`View ${this.actionText}`,(()=>{this.setHighlightedCommentState({commentId:t}),rt.trackViewCommentClicked()})),this.$emit("success")}catch(t){if(t.response&&t.response.data){const{data:e}=t.response;(0,W.E)().showNotice(e.error),rt.trackCommentFail(t)}}finally{this.setCommentSending(!1)}},cancel(){this.$emit("cancel"),this.isReply&&(this.setComposerInactive(this.composerId),D.Z.track(j.Z.closeCommentInput)),this.clearComposer(this.composerId)}})};function dt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function pt(t){for(var e=1;ea.cancel()),color:"flat",label:"Cancel"}),(0,i.Wm)(p,{onClick:a.sendComposerMessage,disabled:a.disableSendButton,color:"primary",round:"light",label:"Post"},null,8,["onClick","disabled"])])])}],["__scopeId","data-v-53e9751b"]])},provide(){return{composerId:this.composerId}},inject:["isCollapsed"],computed:pt(pt({},(0,d.rn)(p.cO,["getCommentComposerStateById"])),{},{size(){let t=40;return this.isReply&&(t=24),t},composerState(){return this.getCommentComposerStateById(this.composerId)},isReply(){var t;return(null===(t=this.composerState)||void 0===t?void 0:t.isReply)||!1}}),methods:{sendMessage(){this.$refs.footer.sendComposerMessage()},expandComposer(){this.isCollapsed&&this.$emit("expand",!1)},toggleExpand(){this.$emit("expand",!this.isCollapsed)},onSuccess(){this.toggleExpand()}}};o(21109);const ht=(0,f.Z)(ut,[["render",function(t,e,o,r,a,c){const l=(0,i.up)("ComposerUserAvatar"),d=(0,i.up)("ComposerInputAreaContent"),p=(0,i.up)("ComposerInputAreaFooter");return(0,i.wg)(),(0,i.iD)("section",{class:"comment-composer",onClick:e[0]||(e[0]=t=>t.stopPropagation())},[(0,i.Wm)(l,{class:"comment-composer__avatar",size:c.size},null,8,["size"]),(0,i._)("section",n,[(0,i.Wm)(d,{class:(0,s.C_)(["comment-composer__input-area__content",{offset:!c.isReply}]),onSubmit:c.sendMessage,onClick:c.expandComposer,onFocus:c.expandComposer},null,8,["class","onSubmit","onClick","onFocus"]),c.isCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(p,{key:0,position:o.position,class:"comment-composer__input-area__footer",ref:"footer",onCancel:c.toggleExpand,onSuccess:c.onSuccess},null,8,["position","onCancel","onSuccess"]))])])}],["__scopeId","data-v-10051742"]])},10570:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{d:"M8.00002 25.3333C8.00002 26.8 9.20002 28 10.6667 28H21.3334C22.8 28 24 26.8 24 25.3333V9.33333H8.00002V25.3333ZM25.3334 5.33333H20.6667L19.3334 4H12.6667L11.3334 5.33333H6.66669V8H25.3334V5.33333Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 32 32",color:"#999999"},{default:(0,i.w5)((()=>[s])),_:1})}]])},66463:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.58 18 2 14.42 2 10C2 8.15 2.63 6.45 3.69 5.1L14.9 16.31C13.55 17.37 11.85 18 10 18ZM16.31 14.9L5.1 3.69C6.45 2.63 8.15 2 10 2C14.42 2 18 5.58 18 10C18 11.85 17.37 13.55 16.31 14.9Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 20 20"},{default:(0,i.w5)((()=>[s])),_:1})}]])},60598:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 0L5.17 2H2C0.9 2 0 2.9 0 4V16C0 17.1 0.9 18 2 18H18C19.1 18 20 17.1 20 16V4C20 2.9 19.1 2 18 2H14.83L13 0H7ZM10 15C7.24 15 5 12.76 5 10C5 7.24 7.24 5 10 5C12.76 5 15 7.24 15 10C15 12.76 12.76 15 10 15ZM9.99999 13.2C11.7673 13.2 13.2 11.7673 13.2 9.99999C13.2 8.23268 11.7673 6.79999 9.99999 6.79999C8.23268 6.79999 6.79999 8.23268 6.79999 9.99999C6.79999 11.7673 8.23268 13.2 9.99999 13.2Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 20 18",color:"#999999"},{default:(0,i.w5)((()=>[s])),_:1})}]])},89611:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{d:"M6.00003 11.17L1.83003 7L0.410034 8.41L6.00003 14L18 2L16.59 0.589996L6.00003 11.17Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 18 14"},{default:(0,i.w5)((()=>[s])),_:1})}]])},70876:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{d:"M10.59 1.52588e-05L12 1.41002L6 7.41002L0 1.41002L1.41 1.52588e-05L6 4.58002L10.59 1.52588e-05Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 12 8"},{default:(0,i.w5)((()=>[s])),_:1})}]])},53310:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 14 14",color:"#999999"},{default:(0,i.w5)((()=>[s])),_:1})}]])},30665:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 10H15.1716L10 15.1716L4.82843 10H8V2H12V10ZM14 0H6V8H0L10 18L20 8H14V0Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 20 18"},{default:(0,i.w5)((()=>[s])),_:1})}]])},84659:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 8H20L10 18L0 8H7V0H13V8Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 20 18"},{default:(0,i.w5)((()=>[s])),_:1})}]])},95918:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.666748 9.99996C0.666748 10.7333 1.26674 11.3333 2.00008 11.3333C2.73342 11.3333 3.33341 10.7333 3.33341 9.99996C3.33341 9.26662 2.73342 8.66663 2.00008 8.66663C1.26674 8.66663 0.666748 9.26662 0.666748 9.99996ZM0.666748 1.99996C0.666748 2.7333 1.26674 3.33329 2.00008 3.33329C2.73342 3.33329 3.33341 2.7333 3.33341 1.99996C3.33341 1.26662 2.73342 0.666626 2.00008 0.666626C1.26674 0.666626 0.666748 1.26662 0.666748 1.99996ZM2.00008 7.33329C1.26674 7.33329 0.666748 6.7333 0.666748 5.99996C0.666748 5.26662 1.26674 4.66663 2.00008 4.66663C2.73342 4.66663 3.33341 5.26662 3.33341 5.99996C3.33341 6.7333 2.73342 7.33329 2.00008 7.33329Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 4 12",color:"#999999"},{default:(0,i.w5)((()=>[s])),_:1})}]])},87031:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{d:"M8.33337 0H1.66671C0.933374 0 0.340041 0.6 0.340041 1.33333L0.333374 12L5.00004 10L9.66671 12V1.33333C9.66671 0.6 9.06671 0 8.33337 0ZM8.33337 10L5.00004 8.54667L1.66671 10V1.33333H8.33337V10Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 10 12",color:"#999999"},{default:(0,i.w5)((()=>[s])),_:1})}]])},73910:(t,e,o)=>{"use strict";o.d(e,{Z:()=>a});var i=o(66252);const s=["width","height"],n=[(t=>((0,i.dD)("data-v-62717f6e"),t=t(),(0,i.Cn)(),t))((()=>(0,i._)("circle",{cx:"50",cy:"50",r:"45"},null,-1)))],r={name:"IconSpinnerAnimated",props:{radius:{required:!0,type:Number}}};o(45366);const a=(0,o(83744).Z)(r,[["render",function(t,e,o,r,a,c){return(0,i.wg)(),(0,i.iD)("svg",{viewBox:"0 0 100 100",width:o.radius,height:o.radius,xmlns:"http://www.w3.org/2000/svg"},n,8,s)}],["__scopeId","data-v-62717f6e"]])},55086:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{d:"M8.33337 0H1.66671C0.933374 0 0.340041 0.6 0.340041 1.33333L0.333374 12L5.00004 10L9.66671 12V1.33333C9.66671 0.6 9.06671 0 8.33337 0Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 10 12",color:"#FF3B30"},{default:(0,i.w5)((()=>[s])),_:1})}]])},87262:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 8H15.1716L10 2.82843L4.82843 8H8V16H12V8ZM14 18H6V10H0L10 0L20 10H14V18Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 20 18"},{default:(0,i.w5)((()=>[s])),_:1})}]])},59661:(t,e,o)=>{"use strict";o.d(e,{Z:()=>r});var i=o(66252);const s=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 10H20L10 0L0 10H7V18H13V10Z"},null,-1),n={components:{BaseIcon:o(97392).su}},r=(0,o(83744).Z)(n,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(c,{viewBox:"0 0 20 18"},{default:(0,i.w5)((()=>[s])),_:1})}]])},99189:(t,e,o)=>{"use strict";o.d(e,{Z:()=>c});var i=o(66252),s=o(49963),n=o(3577);const r={class:"uikit-popup-menu"},a={props:{menuMinWidth:{type:Number,default:160},toggleMenuOnHover:{type:Boolean,default:!1}},computed:{menuStyle(){return{minWidth:`${this.menuMinWidth}px`}}},data:()=>({showMenu:!1}),methods:{toggleMenu(){this.showMenu=!this.showMenu},hideMenu(){this.showMenu=!1},delayHideMenu(){setTimeout(this.hideMenu,100)},onMouseEnter(){this.toggleMenuOnHover&&(this.showMenu=!0)},checkIsInsideElement(t,e,o){const i=o.getBoundingClientRect();return t>i.left&&ti.top&&el.toggleMenu&&l.toggleMenu(...t)),["stop"])),onMouseenter:e[1]||(e[1]=(...t)=>l.onMouseEnter&&l.onMouseEnter(...t)),onMouseleave:e[2]||(e[2]=(...t)=>l.onMouseLeave&&l.onMouseLeave(...t)),ref:"button"},[(0,i.WI)(t.$slots,"popupButton",{active:c.showMenu})],544),c.showMenu?(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{key:0,class:"menu",onClick:e[3]||(e[3]=(...t)=>l.delayHideMenu&&l.delayHideMenu(...t)),style:(0,n.j5)(l.menuStyle),ref:"menu",onMouseleave:e[4]||(e[4]=(...t)=>l.onMouseLeave&&l.onMouseLeave(...t))},[(0,i.WI)(t.$slots,"popupMenu")],36)),[[d,l.hideMenu]]):(0,i.kq)("",!0)])}],["__scopeId","data-v-89cab77a"]])},60068:(t,e,o)=>{"use strict";o.d(e,{Z:()=>v});var i=o(66252),s=o(49963);const n=t=>((0,i.dD)("data-v-3ed16c72"),t=t(),(0,i.Cn)(),t),r={class:"sensitive-mask"},a={class:"sensitive-mask__content"},c=n((()=>(0,i._)("div",{class:"sensitive-mask__content__title"},"Sensitive content",-1))),l=n((()=>(0,i._)("span",null," The following media includes potentially sensitive content. ",-1)));var d=o(96156),p=o(32204),u=o(40024);function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function m(t){for(var e=1;ep.onSettingsClick&&p.onSettingsClick(...t)),["stop"]))}," Change settings ")]),(0,i._)("span",{class:"sensitive-mask__content__btn",onClick:e[1]||(e[1]=(0,s.iM)(((...t)=>p.onUnmask&&p.onUnmask(...t)),["stop"]))},"View")])])}],["__scopeId","data-v-3ed16c72"]])},83304:(t,e,o)=>{"use strict";o.d(e,{Z:()=>p});var i=o(66252),s=o(3577);const n={key:0,class:"ghost"},r=["href"],a=["src"];var c=o(10570),l=o(90636);const d={name:"Avatar",props:{profileUrl:{type:String,default:null},avatarUrl:{type:String,required:!0},isOnline:{type:Boolean,default:!1},isDeleted:{type:Boolean,default:!1},isAnonymous:{type:Boolean,default:!1},size:{type:Number,default:40}},computed:{url(){return this.profileUrl?this.profileUrl:"javascript:void(0);"},onlineStyle(){const t=this.size>=32?10:8;return{height:`${t}px`,width:`${t}px`}}},components:{IconBin:c.Z,IconGhostAvatar:l.Z}};o(93257);const p=(0,o(83744).Z)(d,[["render",function(t,e,o,c,l,d){const p=(0,i.up)("IconGhostAvatar"),u=(0,i.up)("IconBin");return(0,i.wg)(),(0,i.iD)("div",{class:(0,s.C_)(["avatar__container",{avatar__container_deleted:o.isDeleted}])},[!o.isDeleted&&o.isAnonymous?((0,i.wg)(),(0,i.iD)("span",n,[(0,i.Wm)(p,{size:o.size},null,8,["size"])])):o.isDeleted?((0,i.wg)(),(0,i.j4)(u,{key:2,size:o.size-8},null,8,["size"])):((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i._)("a",{href:d.url,class:(0,s.C_)({disabled:!o.profileUrl})},[(0,i._)("img",{src:o.avatarUrl},null,8,a)],10,r),o.isOnline?((0,i.wg)(),(0,i.iD)("span",{key:0,class:"avatar__online",style:(0,s.j5)(d.onlineStyle)},null,4)):(0,i.kq)("",!0)],64))],2)}],["__scopeId","data-v-2f229102"]])},21287:(t,e,o)=>{"use strict";o.d(e,{Z:()=>c});var i=o(66252),s=o(49963),n=o(3577);const r=["href"],a={props:{tag:Object,urlRef:String,highlighted:Boolean},emits:["onClick"]};o(1094);const c=(0,o(83744).Z)(a,[["render",function(t,e,o,a,c,l){return(0,i.wg)(),(0,i.iD)("a",{href:`${o.tag.url}?ref=${o.urlRef}`,onClick:e[0]||(e[0]=(0,s.iM)((e=>t.$emit("onClick",o.tag)),["prevent"])),class:(0,n.C_)(o.highlighted?"trending":"")},(0,n.zw)(o.tag.key),11,r)}],["__scopeId","data-v-16a453ef"]])},36446:(t,e,o)=>{"use strict";o.d(e,{Z:()=>m});var i=o(66252),s=o(3577);const n={class:"post-award-users"},r=(t=>((0,i.dD)("data-v-b1a8469e"),t=t(),(0,i.Cn)(),t))((()=>(0,i._)("span",{class:"award-text"}," Cheered by ",-1))),a={class:"award-avatars"},c=["href"],l=["src"],d={key:0,class:"award-count"};var p=o(33360),u=o(98879);const h={props:{post:{type:Object,required:!0}},computed:{aggregatedAwardUsers(){if(!(0,p.LM)().isLoggedIn)return this.post.awardUsers.slice(0,3);const t=(0,p.LM)().user,e=this.post.awardUsers.filter((e=>e.userId!==t.userId)).slice(0,3);return(0,u.z)().sentAwards.includes(this.post.id)?[t,...e]:e},aggregatedCount(){return this.post.awardUsersCount-this.aggregatedAwardUsers.length}}};o(16565);const m=(0,o(83744).Z)(h,[["render",function(t,e,o,p,u,h){return(0,i.wg)(),(0,i.iD)("div",n,[r,(0,i._)("div",a,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(h.aggregatedAwardUsers,((t,e)=>((0,i.wg)(),(0,i.iD)("a",{href:t.profileUrl,target:"_blank",style:(0,s.j5)({display:"inline-block",borderRadius:"50%",zIndex:5-e,overflow:"hidden",width:"20px",height:"20px"})},[(0,i._)("img",{width:"20",height:"20",src:t.avatarUrl},null,8,l)],12,c)))),256))]),h.aggregatedCount>0?((0,i.wg)(),(0,i.iD)("span",d,"+"+(0,s.zw)(h.aggregatedCount),1)):(0,i.kq)("",!0)])}],["__scopeId","data-v-b1a8469e"]])},45975:(t,e,o)=>{"use strict";o.d(e,{Z:()=>P});var i=o(66252),s=o(3577);const n=["id"];var r=o(96156),a=o(55407),c=o(74347),l=o(23279),d=o.n(l),p=o(32204),u=o(49963),h=o(49012).default;function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function g(t){for(var e=1;e({isVisible:!1,rendered:!1,renderCallbacked:!1,pageYOffset:0,sticked:!1,stickOpacity:1,adRefresh:null}),props:{autoDismiss:{type:Number,default:0},hideContainer:{type:Function}},watch:{$route(t,e){this.isVisible=!1,this.rendered=!1,this.renderCallbacked=!1,this.pageYOffset=0,this.sticked=!1,this.clearAdRefresh()},stickOpacity(t){t||setTimeout((()=>{this.sticked=!0,this.stickOpacity=1}),500)}},methods:{renderAd(){this.rendered||(a.Z.renderAd(this.adContainer,{renderCallback:this.renderCallback.bind(this)}),this.rendered=!0,h.addEventListener("scroll",this.handleSticky),this.autoDismiss&&setTimeout(this.dismissAd,this.autoDismiss))},renderCallback(t){this.renderCallbacked=!0,this.createAdRefresh()},visibilityChanged(t){t&&this.renderAd(),this.isVisible=t},refreshAd(){this.isVisible&&this.rendered&&a.Z.refreshAd(this.adContainer)},_handleSticky(){this.pageYOffset=window.pageYOffset,this.renderCallbacked&&(h.removeEventListener("scroll",this.handleSticky),setTimeout((()=>this.stickOpacity=0),1500))},visibilityChange(){switch(document.visibilityState){case"visible":this.createAdRefresh();break;case"hidden":this.clearAdRefresh()}},createAdRefresh(){this.clearAdRefresh(),this.adRefresh=setInterval(this.refreshAd.bind(this),3e4)},clearAdRefresh(){this.adRefresh&&(clearInterval(this.adRefresh),this.adRefresh=null)},dismissAd(){a.Z.destroyAd(this.adContainer),"function"==typeof this.hideContainer?this.hideContainer():this.$refs.container.style.display="none"}},computed:g(g(g({},f(["topNavHeight"])),v(["isAdBlocked"])),{},{stickTop(){return`${this.topNavHeight}px`},isSticky(){return!this.isAdBlocked&&!(this.sticked||!this.renderCallbacked)&&this.pageYOffset>=this.topNavHeight},adContainer:()=>a.Z.getAdContainer("billboard"),adContainerId(){return this.adContainer&&this.adContainer.adContainerId||null}}),created(){this.handleSticky=d()(this._handleSticky,100),h.addEventListener("visibilitychange",this.visibilityChange)},unmounted(){h.removeEventListener("scroll",this.handleSticky)}},w=()=>{(0,u.sj)((t=>({15153907:t.stickTop,c2777286:t.stickOpacity})))},y=b.setup;b.setup=y?(t,e)=>(w(),y(t,e)):w;const k=b;o(62331);const P=(0,o(83744).Z)(k,[["render",function(t,e,o,r,a,c){const l=(0,i.Q2)("observe-visibility");return c.adContainer?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,s.C_)(["billboard",{sticky:c.isSticky}]),ref:"container"},[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{id:c.adContainerId,ref:"billboard",key:t.$route.fullPath},null,8,n)),[[l,{callback:c.visibilityChanged,throttle:1e3}]])],2)):(0,i.kq)("",!0)}],["__scopeId","data-v-1e6a4a22"]])},32462:(t,e,o)=>{"use strict";o.d(e,{Z:()=>g});var i=o(66252),s=o(3577);const n={key:0},r={class:"block-ad"},a=["id"];var c=o(96156),l=o(32204),d=o(39914).default;function p(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function u(t){for(var e=1;e({sizes:{}}),watch:{$route(){this.observeAds()},showAds(){this.observeAds()}},computed:u({},h({showAds:"SHOW_ADS"})),methods:{getAdRef(t){var e;return(null===(e=this.$refs[t])||void 0===e?void 0:e[0])||null},observeAds(){this.adContainers.forEach((t=>{const{adContainerId:e,adPlacement:o}=t,i=this.getAdRef(e);i&&this.$emit("observeAd",i,t,(t=>{d.log("ListAds::renderCallback",t.size),this.sizes[e]=t.size})),this.sizes[e]=o.size}))},destroyAds(){d.log("ListAds.destroyAds adContainers",this.adContainers),this.adContainers.forEach((t=>{const e=this.getAdRef(t.adContainerId);if(d.log("ListAds.destroyAds adContainer",t),d.log("ListAds.destroyAds adRef",e),e){const o=e.getAttribute("id");if(o&&o!==t.adContainerId)return void this.$emit("unobserveAd",e,u(u({},t),{},{adContainerId:o}));this.$emit("unobserveAd",e,t)}}))},getStyle(t){if(!this.reserveHeight)return null;const[e,o]=this.sizes[t]||[0,0];return o?{minHeight:`${o}px`}:void 0}},mounted(){this.observeAds()},beforeUnmount(){this.destroyAds()}},g=(0,o(83744).Z)(m,[["render",function(t,e,o,c,l,d){return t.showAds?((0,i.wg)(),(0,i.iD)("div",n,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.adContainers,(t=>((0,i.wg)(),(0,i.iD)("section",r,[(0,i._)("div",{id:t.adContainerId,ref_for:!0,ref:t.adContainerId,style:(0,s.j5)(d.getStyle(t.adContainerId))},null,12,a)])))),256))])):(0,i.kq)("",!0)}]])},15775:(t,e,o)=>{"use strict";o.d(e,{Z:()=>f});var i=o(66252),s=o(17375),n=o(96156),r=o(97392),a=o(55384),c=o(23376),l=o(97554),d=o(84157),p=o(33360);const u=["msg"];function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function m(t){for(var e=1;e{"use strict";o.d(e,{Z:()=>R});var i=o(66252);const s={class:"btn-vote left"},n={href:"javascript:void(0);"},r=(t=>((0,i.dD)("data-v-361701b8"),t=t(),(0,i.Cn)(),t))((()=>(0,i._)("span",null,"Cheers",-1)));var a=o(97392),c=o(55384),l=o(22922);const d=(0,i._)("path",{d:"M12 17H5V10.37C6.26 10.03 7.11 9.10002 7.77 8.38002C8.6 7.47002 9.08 7.00002 10 7.00002H12V17ZM7 0.0200195C5.11 0.0200195 3.49 1.13002 2.73 2.73002C1.15 3.26002 0 4.74002 0 6.50002C0 8.36002 1.28 9.91002 3 10.36V19H14V17H16C17.1 17 18 16.1 18 15V9.00002C18 7.90002 17.1 7.00002 16 7.00002H14.44C14.79 6.41002 15 5.73002 15 5.00002C15 2.79002 13.21 1.00002 11 1.00002C10.66 1.00002 10.34 1.05002 10.02 1.13002C9.2 0.45002 8.16 0.0200195 7 0.0200195ZM4 8.50002C2.9 8.50002 2 7.60002 2 6.50002C2 5.65002 2.55 4.90002 3.37 4.62002L4.17 4.35002L4.53 3.59002C5 2.62002 5.94 2.02002 7 2.02002C7.79 2.02002 8.39 2.37002 8.74 2.67002L9.52 3.32002C9.52 3.32002 10.16 3.00002 10.99 3.00002C12.09 3.00002 12.99 3.90002 12.99 5.00002H9.99C6.67 5.00002 6.15 8.50002 4 8.50002ZM14 15V9.00002H16V15H14Z"},null,-1),p={components:{BaseIcon:a.su}};var u=o(83744);const h=(0,u.Z)(p,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 18 19"},{default:(0,i.w5)((()=>[d])),_:1})}]]);var m=o(42550),g=o(3577);const f=t=>((0,i.dD)("data-v-eebae146"),t=t(),(0,i.Cn)(),t),v=(0,i.Uk)(" Send Cheers "),b={class:"balance"},w={style:{display:"flex",gap:"8px",justifyContent:"center",alignItems:"center"}},y=f((()=>(0,i._)("span",null,"Send Cheers",-1))),k=f((()=>(0,i._)("div",{class:"title"}," Cheers the OP for their contribution. ",-1))),P=f((()=>(0,i._)("div",{class:"content"}," If you think this post worth more than just an upvote. You can send a Cheers to OP, other users will see you gave Cheers to this post. Cheers are limited, use it wisely. ",-1))),O=f((()=>(0,i._)("div",{class:"feedback"},[(0,i._)("a",{href:"https://docs.google.com/forms/d/e/1FAIpQLScJ826Ve5QJwpTRYr8biYZx1pK8vOg2PnnEa-yf9hD1G08t2A/viewform",target:"_blank"}," Give feedback "),(0,i.Uk)(" on this feature. ")],-1)));var _=o(96156),I=o(60598),C=o(98879),S=o(73910),x=o(32204),T=o(33360),E=o(6049),A=o(48254);function D(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function j(t){for(var e=1;e({loading:!1}),components:{IconCheer:h,IconCamera:I.Z,ModalView:a.Rj,ModalHeader:a.xB,GeneralButton:a.Wo,IconSpinnerAnimated:S.Z},setup(){const{isMainPost:t}=(0,m.Z)();return{isMainPost:t,awardStore:(0,C.z)(),userStore:(0,T.LM)()}},computed:{balance(){return this.awardStore.balance}},methods:j(j({},M({updateAwardUsers:"UPDATE_AWARD_USERS"})),{},{async sendAward(){this.loading=!0;const t=await this.awardStore.sendAward(this.postId,1);"Success"===(null==t?void 0:t.meta.status)&&(E.n.trigger(),this.updateAwardUsers({postId:this.postId,user:this.userStore.user}),this.loading=!1,this.$emit("onClose"),await A.default.trackAwardSent(this.postId))}}),async mounted(){await this.awardStore.fetchAwardBalance()}};o(96857);const U=(0,u.Z)(L,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("IconCheer"),c=(0,i.up)("ModalHeader"),l=(0,i.up)("IconSpinnerAnimated"),d=(0,i.up)("GeneralButton"),p=(0,i.up)("ModalView");return(0,i.wg)(),(0,i.j4)(p,{class:"post-award-modal",onOnOverlayClick:e[1]||(e[1]=e=>t.$emit("onClose")),showFooter:!0,showFooterBorder:!0},{modalHeader:(0,i.w5)((()=>[(0,i.Wm)(c,{onClose:e[0]||(e[0]=e=>t.$emit("onClose")),showOptionButton:!0},{modalHeaderOption:(0,i.w5)((()=>[(0,i._)("div",b,[(0,i.Wm)(a,{size:"18"}),(0,i.Uk)(" "+(0,g.zw)(r.balance),1)])])),default:(0,i.w5)((()=>[v])),_:1})])),modalFooter:(0,i.w5)((()=>[(0,i.Wm)(d,{color:"primary",style:{width:"100%"},onClick:r.sendAward,disabled:n.loading||0===r.balance},{default:(0,i.w5)((()=>[(0,i._)("div",w,[n.loading?((0,i.wg)(),(0,i.j4)(l,{key:0,radius:14})):(0,i.kq)("",!0),y])])),_:1},8,["onClick","disabled"])])),default:(0,i.w5)((()=>[k,P,O])),_:1})}],["__scopeId","data-v-eebae146"]]),Z={mixins:[c.Z,l.Z],props:{postId:String},data:()=>({showAwardModal:!1}),components:{PostAwardModal:U,IconCheer:h,ModalView:a.Rj,ModalHeader:a.xB,GeneralButton:a.Wo},setup(){const{isMainPost:t}=(0,m.Z)();return{isMainPost:t}},methods:{openAwardModal(){A.default.trackAwardClicked(this.postId),this.showAwardModal=!0},closeAwardModal(){this.showAwardModal=!1}}};o(89941);const R=(0,u.Z)(Z,[["render",function(t,e,o,a,c,l){const d=(0,i.up)("IconCheer"),p=(0,i.up)("PostAwardModal");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("ul",s,[(0,i._)("li",{onClick:e[0]||(e[0]=(...t)=>l.openAwardModal&&l.openAwardModal(...t))},[(0,i._)("a",n,[(0,i.Wm)(d,{size:"18"})]),r])]),c.showAwardModal?((0,i.wg)(),(0,i.j4)(p,{key:0,onOnClose:l.closeAwardModal,postId:o.postId},null,8,["onOnClose","postId"])):(0,i.kq)("",!0)],64)}],["__scopeId","data-v-361701b8"]])},11110:(t,e,o)=>{"use strict";o.d(e,{Z:()=>Lt});var i=o(66252);const s={key:1},n={key:2},r={key:3},a={key:4},c={key:5};var l=o(96156),d=o(89060);const p={class:"post-view post-sensitive-mask"},u={class:"post-sensitive-mask__body"};var h=o(97554),m=o(60068),g=o(55384),f=o(68209),v=o(35827),b=o(42550);const w={mixins:[g.Z,f.Z],props:{post:Object},setup(){const{isMainPost:t}=(0,b.Z)();return{isMainPost:t}},components:{SensitiveMask:m.Z},methods:{onSettingsClick(){this.triggerSignup({action:v.f5,nextUrl:this.post.url})||this.$router.push({name:h.Z.SETTINGS})},onUnmask(){this.track(this.isMainPost?"PostAction":"PostList","TapUnmask",this.post.id),this.triggerSignup({action:v.dK,nextUrl:this.post.url})}}};o(69235);var y=o(83744);const k=(0,y.Z)(w,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("SensitiveMask");return(0,i.wg)(),(0,i.iD)("div",p,[(0,i._)("div",u,[(0,i.Wm)(a,{maskId:o.post.id,onOnUnmask:r.onUnmask,onOnSettingsClick:r.onSettingsClick},null,8,["maskId","onOnUnmask","onOnSettingsClick"])])])}],["__scopeId","data-v-3fb1d5ac"]]);var P=o(3577);const O={class:"image-post post-view"},_=["srcset"],I=["src","alt"],C=(0,i._)("div",{class:"post-read-more"},"Read post",-1);var S=o(8013),x=o(48267),T=o(22922),E=o(69937),A=o(71652).default,D=o(51931).default;const j={mixins:[x.Z,T.Z],components:{TapPost:E.Z},props:{postId:String,position:Number},computed:{displayType(){return this.hasLongPostCover?"image460c":"image460"},isArticle(){return this.post.type===A.TYPE_ARTICLE||this.isCollectionPage},isCollectionPage(){return this.post.type===A.TYPE_COLLECTION_PAGE},hasLongPostCover(){return this.post.hasLongPostCover},imageHeight(){return this.postImages[this.displayType].height},imageWidth(){return this.postImages[this.displayType].width},styleObj(){return this.canShowViewFullPageBtn?S.Z.getListViewCover(this.imageHeight,this.imageWidth):S.Z.getListViewPhoto(this.imageHeight,this.imageWidth)},imageUrl(){return this.postImages[this.displayType].url},imageWebpUrl(){return this.postImages[this.displayType].webpUrl},canShowViewFullPageBtn(){return this.hasLongPostCover||this.isArticle},imageEventKey(){return this.isArticle?"ArticlePostImage":this.hasLongPostCover?"LongPostImage":"PostImage"},buttonEventKey(){return this.isArticle?"ArticlePostViewFullPost":this.hasLongPostCover?"LongPostViewFullPost":"ViewFullPost"}},methods:{downloadFail(){D.downloadFail(this.imageUrl)}}},M=(0,y.Z)(j,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("TapPost");return(0,i.wg)(),(0,i.iD)("div",{class:(0,P.C_)({"read-more":r.canShowViewFullPageBtn})},[(0,i.Wm)(a,{href:t.postUrl,class:"badge-evt badge-track",postId:o.postId,position:o.position,feedId:t.feedId,target:"_blank",eventKey:r.imageEventKey},{default:(0,i.w5)((()=>[(0,i._)("div",O,[(0,i._)("picture",null,[r.imageWebpUrl?((0,i.wg)(),(0,i.iD)("source",{key:0,srcset:r.imageWebpUrl,type:"image/webp"},null,8,_)):(0,i.kq)("",!0),(0,i._)("img",{src:r.imageUrl,alt:t.postTitle,style:(0,P.j5)(r.styleObj),onErrorOnce:e[0]||(e[0]=(...t)=>r.downloadFail&&r.downloadFail(...t)),loading:"lazy"},null,44,I)])])])),_:1},8,["href","postId","position","feedId","eventKey"]),r.canShowViewFullPageBtn?((0,i.wg)(),(0,i.j4)(a,{key:0,class:"badge-evt",postId:o.postId,position:o.position,feedId:t.feedId,href:t.postUrl,target:"_blank",eventKey:r.buttonEventKey},{default:(0,i.w5)((()=>[C])),_:1},8,["postId","position","feedId","href","eventKey"])):(0,i.kq)("",!0)],2)}]]);var L=o(49963);const U=["data-instgrm-permalink"],Z=["alt"],R=["id","width","height","src"];var N=o(53441),B=o(18779),H=o(71652).default,V=o(29198).default,F=o(60028).default,$=o(13036).default;function G(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function z(t){for(var e=1;e({player:null,isPlaying:!1}),props:{postId:String,mediaId:String,streamId:String,position:Number},setup(){const{isMainPost:t}=(0,b.Z)();return{isMainPost:t}},watch:{postId(){this.removePlayer(),this.createPlayer()},autoPlayEvent(t,e){this.toggleVideo({action:t,mute:!0})},showCover(t,e){this.player||!t&&e&&this.createPlayer()}},computed:{isEmbedVideo(){return this.post.type===H.TYPE_EMBED_VIDEO},video(){return this.post.video},autoPlayEvent(){return this.post.autoPlayEvent},showCover(){return!this.isPlaying},styleObj(){return{[this.isEmbedVideo?"minHeight":"height"]:`${this.videoDimension.height}px`}},coverStyleObj(){let t={backgroundImage:`url('${this.postImages.image460.url}')`};return this.isEmbedVideo?z(z({},t),{},{backgroundSize:"cover",width:`${this.videoDimension.width}px`,height:`${this.videoDimension.height}px`}):t},videoDimension(){const t=S.Z.MAX_WIDTH;if(!this.isEmbedVideo)return{width:t,height:t/16*9};const{width:e,height:o}=this.postImages.image460;return{width:t,height:t*o/e}},playerId(){return this.isEmbedVideo||!this.player?null:this.player.getPlayerId()},videoSrc(){return this.isEmbedVideo?"Facebook"===this.video.id?`${this.video.embedUrl}&width=${this.videoDimension.width}`:this.video.embedUrl:`https://www.youtube.com/embed/${this.video.id}?modestbranding=1&iv_load_policy=3&rel=0&enablejsapi=1&start=${this.video.startTs}`},isInstagram(){return this.isEmbedVideo&&"Instagram"===this.video.source}},methods:{createPlayer(){this.isEmbedVideo||(this.player=new V({id:this.video.id,onStart:t=>{},onPause:t=>{},onSeek:t=>{},onPercentageChange:({percentage:t,isPlaying:e,time:o,duration:i})=>{F.onVideoTimeUpdate({key:this.postId,domId:N.default.getPostDomId(this.postId)},e,o,i,this.video.startTs)},onResume:t=>{},onEnded:()=>{},onReady:()=>{const t=this.isMedia?null:"play";this.toggleVideo({action:t,mute:!0})}}),this.$nextTick((()=>this.player.start())))},startPlayer(){this.isPlaying=!0},removePlayer(){this.player&&(this.player.stop(),this.player=null)},busEventTabChangeAction(t){this.toggleVideo({action:"pause"})},busEventTogglePlay(){if(this.isEmbedVideo)return void(this.isPlaying=!this.isPlaying);if(!this.player)return void this.startPlayer();const t=this.player.getCurrentState();t&&this.toggleVideo({action:t.isPlaying?"pause":"play"})},toggleVideo(t){this.isEmbedVideo?this.isPlaying="play"===t.action:this.player?(t.mute&&this.player.mute(),"play"===t.action&&this.player.play(),"pause"===t.action&&this.player.pause()):this.startPlayer()},onArchived(){this.removePlayer(),this.isPlaying=!1},async loadInstagramEmbed(){window.instgrm?this.$nextTick((()=>{window.instgrm.Embeds.process()})):$.loadScript("https://www.instagram.com/embed.js")}},created(){this.isMainPost&&this.startPlayer(),this.isInstagram&&this.loadInstagramEmbed()},mounted(){this.streamId&&B.Z.$on(`post::streamArchived::${this.streamId}`,this.onArchived),B.Z.$on("post::tabChangeAction",this.busEventTabChangeAction),B.Z.$on(`post::togglePlay::${this.postId}`,this.busEventTogglePlay)},beforeUnmount(){this.streamId&&B.Z.$off(`post::streamArchived::${this.streamId}`,this.onArchived),B.Z.$off("post::tabChangeAction",this.busEventTabChangeAction),B.Z.$off(`post::togglePlay::${this.postId}`,this.busEventTogglePlay)}},K=(0,y.Z)(W,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("TapPost");return(0,i.wg)(),(0,i.iD)("div",{class:(0,P.C_)(["youtube-post post-view",{media:t.isMedia}]),style:(0,P.j5)(r.styleObj)},[r.isInstagram?((0,i.wg)(),(0,i.iD)("blockquote",{key:0,class:"instagram-media",style:{width:"calc(100% - 2px)"},"data-instgrm-captioned":"","data-instgrm-permalink":`https://www.instagram.com/p/${r.video.id}/`},null,8,U)):r.showCover?((0,i.wg)(),(0,i.j4)(a,{key:1,href:t.postUrl,class:"badge-evt",postId:o.postId,position:o.position,feedId:t.feedId,eventKey:"PlayVideo"},{default:(0,i.w5)((()=>[(0,i._)("div",{class:(0,P.C_)({"youtube-thumb":!r.isEmbedVideo}),style:(0,P.j5)(r.coverStyleObj),alt:t.postTitle,onClick:e[0]||(e[0]=(0,L.iM)(((...t)=>r.startPlayer&&r.startPlayer(...t)),["stop","prevent"]))},null,14,Z),(0,i._)("span",{onClick:e[1]||(e[1]=(0,L.iM)(((...t)=>r.startPlayer&&r.startPlayer(...t)),["stop","prevent"])),class:"play"})])),_:1},8,["href","postId","position","feedId"])):((0,i.wg)(),(0,i.iD)("iframe",{key:o.postId,id:r.playerId,width:r.videoDimension.width,height:r.videoDimension.height,src:r.videoSrc,scrolling:"no",frameborder:"0",allowfullscreen:"",allow:"encrypted-media"},null,8,R))],6)}]]),q=["href","data-track"],Y=["poster","muted","autoplay"],Q=["src"],J=["src"],X=["src"],tt=["src"],et=["src"],ot={key:1,class:"length"},it={class:"play"};var st=o(17375),nt=o(76885),rt=o.n(nt),at=o(32204),ct=o(46296).default,lt=o(60028).default;const dt=["padding"];function pt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ut(t){for(var e=1;e({showDuration:!0,soundOn:!1,playing:!1,timeoutId:null,clicked:!1}),setup(){const{isMainPost:t}=(0,b.Z)();return{isMainPost:t}},watch:{postId(){const t=this.timeoutId;Object.assign(this.$data,this.$options.data()),this.startHideVideoDurationTimer(t)},autoPlayEvent(t,e){"play"===t?this.playing||this.$refs.videoPlayer.play():"pause"===t&&(this.playing&&this.$refs.videoPlayer.pause(),this.toggleSound({action:"off",track:!1})),!this.isMedia&&this.updatePostAutoPlay({autoPlayEvent:null,id:this.post.id})}},computed:ut(ut({},mt(["supportsH264","supportsH265","supportsVP9","supportsAV1"])),{},{posterUrl(){return rt()&&this.post.images.image460.webpUrl?this.post.images.image460.webpUrl:this.post.images.image460.url},mp4Path(){return this.post.images.image460sv.url},vp8Path(){return this.post.images.image460sv.vp8Url},vp9Path(){return this.post.images.image460sv.vp9Url},h265Path(){return this.post.images.image460sv.h265Url},av1Path(){return this.post.images.image460sv.av1Url},isAnimatedVideo(){return this.post.images.image460sv.hasAudio},videoDuration(){return this.post.images.image460sv.duration},autoPlayEvent(){return this.post.autoPlayEvent},autoplay(){return!this.isMedia&&this.isMainPost},playIconText(){return this.isAnimatedVideo?"Play":"GIF"},videoDurationText(){return ct.secondsToTimeDisplay(this.videoDuration)},canShowVideoDuration(){return this.isAnimatedVideo&&this.videoDuration>0&&this.showDuration},style(){const t=this.post.images.image460sv,e=S.Z.getAnimatedPhoto(t.height,t.width,this.isMainPost),{padding:o}=e,i=(0,st.Z)(e,dt);return{wrapper:this.isMainPost?null:e,video:i}}}),methods:ut(ut({},ht({updatePostAutoPlay:"UPDATE_POST_AUTO_PLAY"})),{},{onTimeUpdate(){if(!this.clicked&&this.isMainPost)return;const t=this.$refs.videoPlayer;t&<.onVideoTimeUpdate({key:this.post.id,domId:N.default.getPostDomId(this.post.id)},!t.paused,t.currentTime,t.duration,0)},onPlay(){this.playing=!0,this.showDuration=!0,this.startHideVideoDurationTimer()},onPause(){this.timeoutId&&clearTimeout(this.timeoutId),this.playing=!1,this.showDuration=!0},clickSoundIcon(t){t.stopPropagation(),t.preventDefault(),this.toggleSound()},toggleSound({action:t,track:e=!0}={}){this.soundOn="on"===t||"off"!==t&&!this.soundOn},toggleVideo(t,{track:e=!0}={}){this.$refs.videoPlayer.paused?(this.clicked=!0,this.toggleSound({action:"on",track:e}),this.$refs.videoPlayer.play()):this.isAnimatedVideo?this.toggleSound({track:e}):this.$refs.videoPlayer.pause()},startHideVideoDurationTimer(t){(t=t||this.timeoutId)&&clearTimeout(t),this.timeoutId=setTimeout((()=>{this.showDuration=!1}),3e3)},busEventTabChangeAction(t){this.$refs.videoPlayer.pause()},busEventTogglePlay(){this.toggleVideo()}}),mounted(){this.startHideVideoDurationTimer(),(this.autoplay||this.post.autoPlayEvent)&&(this.playing=!0,this.$refs.videoPlayer.play()),B.Z.$on("post::tabChangeAction",this.busEventTabChangeAction),B.Z.$on(`post::togglePlay::${this.post.id}`,this.busEventTogglePlay)},beforeUnmount(){B.Z.$off("post::tabChangeAction",this.busEventTabChangeAction),B.Z.$off(`post::togglePlay::${this.post.id}`,this.busEventTogglePlay)}},ft=(0,y.Z)(gt,[["render",function(t,e,o,s,n,r){return(0,i.wg)(),(0,i.iD)("a",{href:s.isMainPost?"javascript:void(0)":t.postUrl,"data-track":`post,p,,,d,${t.post.id},p`,class:"badge-track",target:"_blank",onClick:e[4]||(e[4]=(0,L.iM)(((...t)=>r.toggleVideo&&r.toggleVideo(...t)),["stop","prevent"]))},[(0,i._)("div",{class:(0,P.C_)(["post-view",[r.isAnimatedVideo?"video-post":"gif-post",{media:t.isMedia}]]),style:(0,P.j5)(r.style.wrapper)},[((0,i.wg)(),(0,i.iD)("video",{key:o.postId,onTimeupdate:e[0]||(e[0]=(...t)=>r.onTimeUpdate&&r.onTimeUpdate(...t)),onPlay:e[1]||(e[1]=(...t)=>r.onPlay&&r.onPlay(...t)),onPause:e[2]||(e[2]=(...t)=>r.onPause&&r.onPause(...t)),preload:"auto",poster:r.posterUrl,style:(0,P.j5)(r.style.video),loop:"",muted:!n.soundOn,autoplay:r.autoplay,ref:"videoPlayer"},[r.av1Path&&t.supportsAV1?((0,i.wg)(),(0,i.iD)("source",{key:0,src:r.av1Path,type:'video/mp4; codecs="av01.0.00M.08, opus"'},null,8,Q)):(0,i.kq)("",!0),r.h265Path&&t.supportsH265?((0,i.wg)(),(0,i.iD)("source",{key:1,src:r.h265Path,type:'video/mp4; codecs="hvc1"'},null,8,J)):(0,i.kq)("",!0),r.vp9Path&&t.supportsVP9?((0,i.wg)(),(0,i.iD)("source",{key:2,src:r.vp9Path,type:'video/webm; codecs="vp9, opus"'},null,8,X)):(0,i.kq)("",!0),(0,i._)("source",{src:r.mp4Path,type:"video/mp4"},null,8,tt),t.supportsH264?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("source",{key:3,src:r.vp8Path,type:"video/webm"},null,8,et))],44,Y)),r.isAnimatedVideo?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,P.C_)(["sound-toggle",[n.soundOn?"on":"off"]]),onClick:e[3]||(e[3]=(...t)=>r.clickSoundIcon&&r.clickSoundIcon(...t))},null,2)):(0,i.kq)("",!0),r.canShowVideoDuration?((0,i.wg)(),(0,i.iD)("p",ot,(0,P.zw)(r.videoDurationText),1)):(0,i.kq)("",!0),(0,i._)("div",{class:(0,P.C_)([n.playing?"hide":"presenting"])},[(0,i._)("span",it,(0,P.zw)(r.playIconText),1)],2)],6)],8,q)}]]);var vt=o(4572),bt=o(20985);const wt={key:0,class:"post-content-text"},yt={class:"post-content-text-body"},kt={key:0,class:"post-content-text-body__more"},Pt={props:{post:Object,collapsible:Boolean,threshold:{type:Number,default:5}},watch:{post(){this.checkDisplayLogic()}},data:()=>({expanded:!1,displayShowMore:!1}),computed:{maxHeight(){return 20*this.threshold+"px"}},methods:{checkDisplayLogic(){if(!this.collapsible)return void(this.expanded=!0);const t=this.$refs.content;if(!t)return;const{scrollHeight:e,clientHeight:o}=t;this.displayShowMore=e>o}},mounted(){this.checkDisplayLogic()}},Ot=()=>{(0,L.sj)((t=>({"0cd7d998":t.maxHeight})))},_t=Pt.setup;Pt.setup=_t?(t,e)=>(Ot(),_t(t,e)):Ot;const It=Pt;o(59539);const Ct=(0,y.Z)(It,[["render",function(t,e,o,s,n,r){return(0,i.wg)(),(0,i.iD)("div",yt,[(0,i._)("div",{class:(0,P.C_)(["post-content-text-body__description",n.expanded?"expanded":"collapsed"]),ref:"content"},(0,P.zw)(o.post.description),3),n.displayShowMore?((0,i.wg)(),(0,i.iD)("div",kt," Show more ")):(0,i.kq)("",!0)])}],["__scopeId","data-v-f6b10662"]]),St={components:{TapPost:E.Z,PostContentTextBody:Ct},mixins:[T.Z],props:{postId:String,position:Number},setup(){const{isMainPost:t}=(0,b.Z)();return{isMainPost:t}}};o(31996);const xt=(0,y.Z)(St,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("PostContentTextBody"),c=(0,i.up)("TapPost");return s.isMainPost?((0,i.wg)(),(0,i.iD)("div",wt,[(0,i.Wm)(a,{post:t.post,collapsible:!1},null,8,["post"])])):((0,i.wg)(),(0,i.j4)(c,{key:1,postId:o.postId,position:o.position,feedId:t.feedId,href:t.postUrl,target:"_blank",eventKey:"TextPostContent",class:"post-content-text"},{default:(0,i.w5)((()=>[(0,i.Wm)(a,{post:t.post,threshold:5,collapsible:!0},null,8,["post"])])),_:1},8,["postId","position","feedId","href"]))}],["__scopeId","data-v-36ab4a97"]]);var Tt=o(71652).default,Et=o(53441).default;function At(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Dt(t){for(var e=1;eDt({},Tt),setup(){const{isMainPost:t}=(0,b.Z)();return{isMainPost:t}},watch:{postId(){this.trackElement()}},props:{postId:String,streamId:String,position:Number,mediaId:String},computed:Dt(Dt({},jt({_showSensitiveMask:"SHOW_SENSITIVE_MASK"})),{},{showSensitiveCover(){return this.post.nsfw&&this._showSensitiveMask(this.postId)}}),methods:{trackElement(){this.isMedia||this.$nextTick((()=>{B.Z.$emit("tracking::trackElement",{domId:Et.getPostDomId(this.post.id),data:{key:this.post.id,sensitiveCover:this.showSensitiveCover,video:!this.showSensitiveCover&&this.post.type===this.TYPE_ANIMATED,youtube:!this.showSensitiveCover&&this.post.type===this.TYPE_VIDEO,position:this.position}})}))}},mounted(){this.trackElement()},components:{PostContentText:xt,PostContentPhoto:d.Z,PostListContentPhoto:M,PostContentVideo:K,PostContentAnimated:ft,PostContentArticle:vt.Z,PostSensitiveMask:k,Markdown:bt.Z}},Lt=(0,y.Z)(Mt,[["render",function(t,e,o,l,d,p){const u=(0,i.up)("PostSensitiveMask"),h=(0,i.up)("PostListContentPhoto"),m=(0,i.up)("PostContentPhoto"),g=(0,i.up)("PostContentAnimated"),f=(0,i.up)("PostContentVideo"),v=(0,i.up)("PostContentArticle"),b=(0,i.up)("PostContentText");return t.showSensitiveCover?((0,i.wg)(),(0,i.j4)(u,{key:0,post:t.post},null,8,["post"])):t.post.type===t.TYPE_PHOTO?((0,i.wg)(),(0,i.iD)("div",s,[t.isMainPost?((0,i.wg)(),(0,i.j4)(m,{key:1,postId:t.postId,mediaId:t.mediaId},null,8,["postId","mediaId"])):((0,i.wg)(),(0,i.j4)(h,{key:0,postId:t.postId,position:t.position},null,8,["postId","position"]))])):t.post.type===t.TYPE_ANIMATED?((0,i.wg)(),(0,i.iD)("div",n,[(0,i.Wm)(g,{postId:t.postId,mediaId:t.mediaId},null,8,["postId","mediaId"])])):[t.TYPE_VIDEO,t.TYPE_EMBED_VIDEO].includes(t.post.type)?((0,i.wg)(),(0,i.iD)("div",r,[(0,i.Wm)(f,{postId:t.postId,mediaId:t.mediaId,position:t.position,streamId:t.streamId},null,8,["postId","mediaId","position","streamId"])])):[t.TYPE_ARTICLE,t.TYPE_COLLECTION_PAGE].includes(t.post.type)?((0,i.wg)(),(0,i.iD)("div",a,[!t.isMainPost&&t.postImages.image460?((0,i.wg)(),(0,i.j4)(h,{key:0,postId:t.postId,position:t.position},null,8,["postId","position"])):t.isMainPost?((0,i.wg)(),(0,i.j4)(v,{key:1,postId:t.postId},null,8,["postId"])):(0,i.kq)("",!0)])):t.post.type===t.TYPE_TEXT?((0,i.wg)(),(0,i.iD)("div",c,[(0,i.Wm)(b,{postId:t.postId,position:t.position},null,8,["postId","position"])])):(0,i.kq)("",!0)}]])},4572:(t,e,o)=>{"use strict";o.d(e,{Z:()=>E});var i=o(66252);const s={class:"post-text-container"};var n=o(96156);const r=["innerHTML"],a={key:1};var c=o(8062),l=o(22922),d=o(48254);const p={data:()=>({html:""}),props:{postId:String,blockId:Number},mixins:[l.Z],computed:{block(){return this.post.article.blocks[this.blockId]}},methods:{attachTracking(){this.$refs.htmlRoot.querySelectorAll("a").forEach((t=>{t.addEventListener("click",(()=>{d.default.trackArticlePostLinkClicked(t.href,this.postId)}))}))}},watch:{html(t){t&&this.$nextTick(this.attachTracking)}},async created(){const t=this.block.content;t.length&&(this.html=await c.Z.render(t))}};var u=o(83744);const h=(0,u.Z)(p,[["render",function(t,e,o,s,n,c){return n.html?((0,i.wg)(),(0,i.iD)("div",{key:0,innerHTML:n.html,ref:"htmlRoot"},null,8,r)):((0,i.wg)(),(0,i.iD)("br",a))}]]);var m=o(3577);const g=["id"],f={key:0};var v=o(53441).default;const b={name:"PostContentArticleMedia",props:{postId:String,blockId:Number},mixins:[l.Z],computed:{block(){return this.post.article.blocks[this.blockId]},media(){return this.post.article.medias[this.block.mediaId]},postDomId(){return v.getPostDomId(this.media.id)}}},w=(0,u.Z)(b,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("PostContent");return(0,i.wg)(),(0,i.iD)("figure",{class:"img-container",id:r.postDomId},[(0,i.Wm)(a,{postId:o.postId,mediaId:r.media.id},null,8,["postId","mediaId"]),r.block.caption?((0,i.wg)(),(0,i.iD)("figcaption",f,(0,m.zw)(r.block.caption),1)):(0,i.kq)("",!0)],8,g)}]]);var y=o(74672),k=o(32204),P=o(92289).default,O=o(53441).default,_=o(71652).default;function I(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function C(t){for(var e=1;e"RichText"===t?h:"Media"===t?w:"div",createObserver(){this.observer=new P.VisibilityObserver(this.intersectHandler,-this.topNavHeight,0,.6)},intersectHandler(t){t.forEach((t=>{const e=O.getPostId(t.domId),o=t.intersectionRatio>=.6;o?this.updatePostAutoPlay({id:this.post.id,mediaId:e,autoPlayEvent:"play"}):!o&&t.intersectionRatio>0&&this.updatePostAutoPlay({id:this.post.id,mediaId:e,autoPlayEvent:"pause"})}))},resetObserver(){this.observer&&(this.observer.destroy(),this.observer=null)},init(){this.resetObserver(),this.$nextTick((()=>{this.createObserver();const t=this.post.article.medias;t&&Object.keys(t).forEach((e=>{if([_.TYPE_ANIMATED,_.TYPE_VIDEO,_.TYPE_EMBED_VIDEO].includes(t[e].type)){const t=document.getElementById(O.getPostDomId(e));this.observer.observe(t)}}))}))}}),mounted(){this.init()},unmounted(){this.resetObserver()}},E=(0,u.Z)(T,[["render",function(t,e,o,n,r,a){return(0,i.wg)(),(0,i.iD)("div",s,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.post.article.blocks,((e,s)=>((0,i.wg)(),(0,i.j4)((0,i.LL)(a.getBlockTypeComponent(e.type)),{key:`${t.post.id}-${s}`,blockId:s,postId:o.postId},null,8,["blockId","postId"])))),128))])}]])},89060:(t,e,o)=>{"use strict";o.d(e,{Z:()=>f});var i=o(66252),s=o(49963),n=o(3577);const r={class:"image-post post-view"},a={ref:"image"},c=["srcset"],l=["src","alt"],d=["innerHTML"],p=(0,i._)("a",{class:"close-button",href:"javascript: void(0);"},"Close",-1);var u=o(8013),h=o(22922),m=o(51931).default;const g={mixins:[h.Z],props:{postId:String,mediaId:String},data:()=>({zoomModal:!1,zoomHtml:null}),watch:{$route(){this.zoomModal=!1,this.zoomHtml=null},zoomModal(t){document.body.classList[t?"add":"remove"]("no-scroll")}},computed:{imageHeight(){return this.postImages[this._displayType].height},imageWidth(){return this.postImages[this._displayType].width},styleObj(){return{minHeight:`${u.Z.getPostViewMinHeight(this.imageHeight,this.imageWidth,!1)}px`}},isZoomPost(){return this.imageWidth>u.Z.POST_VIEW_WIDTH},imageUrl(){return this.postImages[this._displayType].url},imageWebpUrl(){return this.postImages[this._displayType].webpUrl}},methods:{zoomPost(){this.isZoomPost&&(this.zoomModal=!0,this.zoomHtml=this.$refs.image.outerHTML)},downloadFail(){m.downloadFail(this.imageUrl)}},created(){this._displayType="image700"}},f=(0,o(83744).Z)(g,[["render",function(t,e,o,u,h,m){return(0,i.wg)(),(0,i.iD)("a",{href:"javascript: void(0);",onClick:e[2]||(e[2]=(0,s.iM)(((...t)=>m.zoomPost&&m.zoomPost(...t)),["prevent"])),class:(0,n.C_)({zoomable:m.isZoomPost}),style:(0,n.j5)(m.styleObj)},[(0,i._)("div",r,[(0,i._)("picture",a,[m.imageWebpUrl?((0,i.wg)(),(0,i.iD)("source",{key:0,srcset:m.imageWebpUrl,type:"image/webp"},null,8,c)):(0,i.kq)("",!0),((0,i.wg)(),(0,i.iD)("img",{key:o.postId,src:m.imageUrl,alt:t.postTitle,style:(0,n.j5)(m.styleObj),onErrorOnce:e[0]||(e[0]=(...t)=>m.downloadFail&&m.downloadFail(...t)),loading:"lazy"},null,44,l))],512),h.zoomModal?((0,i.wg)(),(0,i.j4)(i.lR,{key:0,to:"body"},[(0,i._)("div",{class:"overlay-scroll-container",onClick:e[1]||(e[1]=t=>h.zoomModal=!1)},[(0,i._)("div",{class:"zoom-container",innerHTML:h.zoomHtml},null,8,d),p])])):(0,i.kq)("",!0)])],6)}]])},12463:(t,e,o)=>{"use strict";o.d(e,{Z:()=>bt});var i=o(66252);const s={class:"post-header"},n={class:"post-header__left"};var r=o(96156),a=o(97392),c=o(83155),l=o(22922),d=o(3577),p=o(49963);const u={key:0},h=["href"],m={key:1},g={key:2},f={key:3};var v=o(68209),b=o(99189),w=o(95918),y=o(84564),k=o.n(y),P=o(73949),O=o(89466),_=o(55384),I=o(35827),C=o(23376),S=o(18779),x=o(84157),T=o(33360),E=o(3058),A=o(42550),D=o(71652).default,j=o(48254).default;function M(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function L(t){for(var e=1;e[(0,i._)("a",{class:(0,d.C_)(["button",{active:t}]),href:"javascript:void(0);"},[(0,i.Wm)(a,{size:"12"})],2)])),popupMenu:(0,i.w5)((()=>[(0,i._)("ul",null,[r.downloadUrl?((0,i.wg)(),(0,i.iD)("li",u,[(0,i._)("a",{href:r.downloadUrl,onClick:e[0]||(e[0]=(...t)=>r.clickDownload&&r.clickDownload(...t)),download:""},"Download media",8,h)])):(0,i.kq)("",!0),r.showDelete?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("li",m,[(0,i._)("a",{href:"javascript:void(0);",onClick:e[1]||(e[1]=(0,p.iM)((t=>r.clickReport()),["prevent"]))},"Report post")])),r.showBlockUserOption?((0,i.wg)(),(0,i.iD)("li",g,[(0,i._)("a",{href:"javascript:void(0);",onClick:e[2]||(e[2]=(0,p.iM)((t=>r.clickBlockUser()),["prevent"]))},"Block @"+(0,d.zw)(r.blockData.username),1)])):(0,i.kq)("",!0),r.showDelete?((0,i.wg)(),(0,i.iD)("li",f,[(0,i._)("a",{href:"javascript:void(0);",onClick:e[3]||(e[3]=(0,p.iM)((t=>r.clickDelete()),["prevent"]))},"Delete post")])):(0,i.kq)("",!0)])])),_:1})}],["__scopeId","data-v-085fa1ec"]]);var N=o(87031),B=o(55086),H=o(48254).default;function V(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function F(t){for(var e=1;er.togglePost())},[r.isSavedPost?((0,i.wg)(),(0,i.j4)(a,{key:0,size:"12"})):((0,i.wg)(),(0,i.j4)(c,{key:1,size:"12"}))])}],["__scopeId","data-v-1e7bfaa6"]]),z=(0,i._)("path",{d:"M9.66683 1.27331L8.72683 0.333313L5.00016 4.05998L1.2735 0.333313L0.333496 1.27331L4.06016 4.99998L0.333496 8.72665L1.2735 9.66665L5.00016 5.93998L8.72683 9.66665L9.66683 8.72665L5.94016 4.99998L9.66683 1.27331Z"},null,-1),W={components:{BaseIcon:a.su}},K=(0,Z.Z)(W,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 10 10"},{default:(0,i.w5)((()=>[z])),_:1})}]]);var q=o(36446),Y=o(97554);const Q={key:0,class:"post-meta__post-view"},J=["href"],X=["src","alt"],tt=["href"],et={class:"creator"},ot=["href"],it=(t=>((0,i.dD)("data-v-6fda51fe"),t=t(),(0,i.Cn)(),t))((()=>(0,i._)("span",{class:"separator"},null,-1))),st={key:1,class:"post-meta__list-view"},nt=["href"],rt=["src","alt"],at=["href"],ct={class:"creationTime"};var lt=o(44356),dt=o(29962),pt=o(48254);const ut={props:{post:Object,isMainPost:Boolean,isDesktop:Boolean},setup:()=>({userStore:(0,T.LM)()}),computed:{isInterestPage(){return this.$route.name===Y.Z.INTEREST_POST_LIST},postInterest(){if(Array.isArray(this.post.interests)&&this.post.interests.length>0){const t=this.post.interests[0];return(0,lt.v)().getInterest(t)}},creationTime(){return dt.default.getTimeAgo(this.post.creationTs)},creatorUrl(){var t;return(null===(t=this.post.creator)||void 0===t?void 0:t.profileUrl)||"javascript:void(0);"}},methods:{clickCreator(t,e){pt.default.trackViewUser(t,e,"Post",null,this.isMainPost)},clickMetaCreator(){var t;const e=null===(t=this.post.creator)||void 0===t?void 0:t.accountId;e&&pt.default.trackViewUser(e,"User Name","Post",null,this.isMainPost)}},components:{PostCreator:a.TX,PostViewCreator:c.Z}};o(71398);const ht=(0,Z.Z)(ut,[["render",function(t,e,o,s,n,r){var a;const c=(0,i.up)("PostViewCreator"),l=(0,i.up)("PostCreator");return(0,i.wg)(),(0,i.iD)("div",{class:(0,d.C_)(["post-meta",o.isDesktop?"desktop":"mobile"])},[o.isMainPost?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[void 0!==r.postInterest?((0,i.wg)(),(0,i.iD)("div",Q,[(0,i._)("a",{href:r.postInterest.url,class:"image"},[(0,i._)("img",{src:r.postInterest.imageUrl,alt:r.postInterest.name},null,8,X)],8,J),(0,i._)("div",null,[(0,i._)("a",{class:"name",href:r.postInterest.url},(0,d.zw)(r.postInterest.name),9,tt),(0,i._)("div",et,[(0,i._)("a",{href:r.creatorUrl,onClick:e[0]||(e[0]=(...t)=>r.clickMetaCreator&&r.clickMetaCreator(...t))},(0,d.zw)((null===(a=o.post.creator)||void 0===a?void 0:a.username)||"9GAGGER"),9,ot),it,(0,i._)("span",null,(0,d.zw)(r.creationTime),1)])])])):((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[o.isDesktop?((0,i.wg)(),(0,i.j4)(c,{key:0,post:o.post,user:s.userStore.user,userUploads:s.userStore.uploads,onClickCreator:r.clickCreator},null,8,["post","user","userUploads","onClickCreator"])):((0,i.wg)(),(0,i.j4)(l,{key:1,post:o.post,user:s.userStore.user,userUploads:s.userStore.uploads,onClickCreator:r.clickCreator},null,8,["post","user","userUploads","onClickCreator"]))],64))],64)):((0,i.wg)(),(0,i.iD)("div",st,[r.isInterestPage||!r.isInterestPage&&void 0===r.postInterest?((0,i.wg)(),(0,i.j4)(l,{key:0,post:o.post,user:s.userStore.user,userUploads:s.userStore.uploads,onClickCreator:r.clickCreator},null,8,["post","user","userUploads","onClickCreator"])):((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i._)("a",{href:r.postInterest.url,class:"image"},[(0,i._)("img",{src:r.postInterest.imageUrl,alt:r.postInterest.name,loading:"lazy"},null,8,rt)],8,nt),(0,i._)("a",{class:"name",href:r.postInterest.url},(0,d.zw)(r.postInterest.name),9,at),(0,i._)("span",ct,(0,d.zw)(r.creationTime),1)],64))]))],2)}],["__scopeId","data-v-6fda51fe"]]);var mt=o(48254).default;function gt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ft(t){for(var e=1;e0;return this.$route.name!==Y.Z.INTEREST_LIST&&t}}),methods:{clickCreator(t,e){mt.trackViewUser(t,e,"Post",null,this.isMainPost)},clickHidePost(){this.triggerSignup({action:I.Jg})||(mt.trackHidePost(this.postId),S.Z.$emit(`post::hidePost::${this.postId}`),this.userStore.addToBlockPostsQueue(this.postId,"post"))}}};o(3537);const bt=(0,Z.Z)(vt,[["render",function(t,e,o,r,a,c){const l=(0,i.up)("PostMeta"),d=(0,i.up)("PostAwardUsers"),p=(0,i.up)("PostMoreMenu"),u=(0,i.up)("IconCross");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",n,[(0,i.Wm)(l,{post:t.post,isMainPost:r.isMainPost,isDesktop:!0},null,8,["post","isMainPost"]),t.post.awardUsers.length>0&&!r.isMainPost?((0,i.wg)(),(0,i.j4)(d,{key:0,post:t.post},null,8,["post"])):(0,i.kq)("",!0)]),(0,i.Wm)(p,{postId:o.postId},null,8,["postId"]),c.showHidePost?((0,i.wg)(),(0,i.j4)(u,{key:0,class:"hide-post",size:"12",onClick:c.clickHidePost},null,8,["onClick"])):(0,i.kq)("",!0)])}],["__scopeId","data-v-3350a396"]])},39182:(t,e,o)=>{"use strict";o.d(e,{Z:()=>y});var i=o(66252),s=o(3577);const n={class:"btn-vote left"};var r=o(96156),a=o(55384),c=o(22922),l=o(35827),d=o(23376),p=o(87031),u=o(55086),h=o(84157),m=o(33360),g=o(42550),f=o(48254);function v(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function b(t){for(var e=1;ec.onSave&&c.onSave(...t))},[(0,i._)("a",{class:(0,s.C_)(["save",{active:c.isSavedPost}]),href:"javascript:void(0);"},[c.isSavedPost?((0,i.wg)(),(0,i.j4)(d,{key:1,size:"18"})):((0,i.wg)(),(0,i.j4)(l,{key:0,size:"18"}))],2),(0,i._)("span",{class:(0,s.C_)({active:c.isSavedPost})},(0,s.zw)(c.saveButtonText),3)])])}],["__scopeId","data-v-0ccc18a5"]])},15682:(t,e,o)=>{"use strict";o.d(e,{Z:()=>L});var i=o(66252),s=o(49963);const n={class:"share-bar"},r=["data-track","data-evt","data-entry-id","data-position"],a=["data-track","data-evt","data-entry-id","data-position"];var c=o(7758),l=o(48267),d=o(3577);const p=t=>((0,i.dD)("data-v-4e432bc4"),t=t(),(0,i.Cn)(),t),u={key:0,class:"share-menu-button"},h=p((()=>(0,i._)("span",null,"Share",-1))),m=p((()=>(0,i._)("span",null,"Share",-1))),g=["href","data-track","data-evt","data-entry-id","data-position"],f=["data-track","data-evt","data-entry-id","data-position"],v=["data-track","data-evt","data-entry-id","data-position"],b=["data-track","data-evt","data-entry-id","data-position"],w=["data-track","data-evt","data-entry-id","data-position"];var y=o(99189);const k=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 8L12 16V10.9C11.3048 10.9 10.6386 10.9309 10 10.9936C7.66827 11.2225 4.70529 11.8745 3.04562 12.989C1.89095 13.7644 0.883087 14.7637 0 16C0.296972 14.5151 0.770332 13.0303 1.47246 11.6502C3.13461 8.38305 7.07881 5.70303 12 5V0L20 8ZM14 4.82843L17.1716 8L14 11.1716V8.9H12C9.92982 8.9 7.04936 9.15556 5.35205 9.69312C6.74135 8.36618 9.6437 7.35692 12.2828 6.9799L14 6.73459V4.82843Z"},null,-1);var P=o(97392);const O={components:{BaseIcon:P.su}};var _=o(83744);const I=(0,_.Z)(O,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 20 16"},{default:(0,i.w5)((()=>[k])),_:1})}]]);var C=o(42550);const S={mixins:[c.Z,l.Z],props:{postId:String,position:Number},setup(){const{isMainPost:t}=(0,C.Z)();return{isMainPost:t}},methods:{clickMenu(t){this.postId||t.stopPropagation()}},components:{PopupMenu:y.Z,IconShare:I}};o(76189);const x=(0,_.Z)(S,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("IconShare"),l=(0,i.up)("PopupMenu");return this.postId?((0,i.wg)(),(0,i.j4)(l,{key:1,"toggle-menu-on-hover":!0},{popupButton:(0,i.w5)((({active:t})=>[(0,i._)("div",{class:(0,d.C_)(["share-menu-button",{active:t}]),onMouseenter:e[0]||(e[0]=(...t)=>a.clickMenu&&a.clickMenu(...t))},[(0,i.Wm)(c,{size:"20",onClick:a.clickMenu},null,8,["onClick"]),m],34)])),popupMenu:(0,i.w5)((()=>[(0,i._)("ul",null,[(0,i._)("li",null,[(0,i._)("a",{class:"copy",href:"javascript:void(0);",onClick:e[1]||(e[1]=e=>t.shareCopy(n.isMainPost))}," Copy link ")]),(0,i._)("li",null,[(0,i._)("a",{class:"badge-evt badge-track email",href:t.getEmailShareUrl(t.postTitle,o.postId),onClick:e[2]||(e[2]=e=>t.shareEmail(n.isMainPost)),"data-track":t.getShareTrackingParams("email"),"data-evt":t.getShareEventParams("email"),"data-entry-id":o.postId,"data-position":o.position,target:"_blank"}," Email ",8,g)]),(0,i._)("li",null,[(0,i._)("a",{class:"badge-evt badge-track facebook",href:"javascript:void(0);",onClick:e[3]||(e[3]=(0,s.iM)((e=>t.shareFacebook(n.isMainPost)),["prevent"])),"data-track":t.getShareTrackingParams("facebook"),"data-evt":t.getShareEventParams("facebook"),"data-entry-id":o.postId,"data-position":o.position}," Facebook ",8,f)]),(0,i._)("li",null,[(0,i._)("a",{class:"badge-evt badge-track pinterest",href:"javascript:void(0);",onClick:e[4]||(e[4]=(0,s.iM)((e=>t.sharePinterest(n.isMainPost)),["prevent"])),"data-track":t.getShareTrackingParams("pinterest"),"data-evt":t.getShareEventParams("pinterest"),"data-entry-id":o.postId,"data-position":o.position}," Pinterest ",8,v)]),(0,i._)("li",null,[(0,i._)("a",{class:"badge-evt badge-track twitter",href:"javascript:void(0);",onClick:e[5]||(e[5]=(0,s.iM)((e=>t.shareTwitter(n.isMainPost)),["prevent"])),"data-track":t.getShareTrackingParams("twitter"),"data-evt":t.getShareEventParams("twitter"),"data-entry-id":o.postId,"data-position":o.position}," Twitter ",8,b)]),(0,i._)("li",null,[(0,i._)("a",{class:"badge-evt badge-track telegram",href:"javascript:void(0);",onClick:e[6]||(e[6]=(0,s.iM)((e=>t.shareTelegram(n.isMainPost)),["prevent"])),"data-track":t.getShareTrackingParams("telegram"),"data-evt":t.getShareEventParams("telegram"),"data-entry-id":o.postId,"data-position":o.position}," Telegram ",8,w)])])])),_:1})):((0,i.wg)(),(0,i.iD)("div",u,[(0,i.Wm)(c,{size:"20"}),h]))}],["__scopeId","data-v-4e432bc4"]]),T=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.625 9.95312C0.625 4.72787 4.71878 0.859375 10 0.859375C15.2812 0.859375 19.375 4.72787 19.375 9.95312C19.375 15.1784 15.2812 19.0469 10 19.0469C9.0514 19.0469 8.14131 18.9216 7.28622 18.6865C7.12 18.6408 6.94324 18.6537 6.7855 18.7233L4.92469 19.5447C4.43794 19.7596 3.88849 19.4134 3.87218 18.8815L3.82113 17.2139C3.81484 17.0084 3.72241 16.8164 3.56927 16.6793C1.74513 15.048 0.625 12.6863 0.625 9.95312ZM7.1242 8.24342L4.37029 12.6125C4.10601 13.0318 4.62141 13.5043 5.01623 13.2047L7.97438 10.9597C8.17448 10.8078 8.451 10.807 8.65194 10.9577L10.8423 12.6005C11.4996 13.0935 12.4376 12.9204 12.8757 12.2254L15.6296 7.8562C15.8939 7.43689 15.3785 6.96439 14.9836 7.26401L12.0255 9.50905C11.8254 9.66092 11.5489 9.66173 11.3479 9.51098L9.15759 7.86823C8.50031 7.3753 7.56225 7.54836 7.1242 8.24342Z"},null,-1),E={components:{BaseIcon:P.su}},A=(0,_.Z)(E,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 20 20"},{default:(0,i.w5)((()=>[T])),_:1})}]]),D=(0,i._)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.92594 0C12.5589 0.00115917 15.0302 1.02142 16.8888 2.87306C18.747 4.72482 19.77 7.18626 19.7691 9.80407C19.7668 15.2054 15.3508 19.6008 9.92594 19.6008H9.92589H9.92171C8.27444 19.6001 6.65573 19.1888 5.21804 18.4082L0 19.7704L1.39643 14.6939C0.535131 13.2083 0.0819923 11.5228 0.0826319 9.79617C0.0848129 4.39459 4.50023 0 9.92594 0ZM9.92275 17.9462H9.92594C14.4351 17.9462 18.1052 14.2932 18.1071 9.80346C18.1078 7.62759 17.2577 5.58171 15.7131 4.04269C14.1683 2.50367 12.1144 1.6556 9.92903 1.6547C5.41623 1.6547 1.74631 5.30721 1.74452 9.79682C1.74388 11.3353 2.17626 12.8336 2.99528 14.1302L3.19001 14.4382L2.3633 17.4429L5.45979 16.6346L5.75868 16.811C7.01458 17.553 8.45444 17.9454 9.92275 17.9462ZM6.91231 5.27775C7.08757 5.28489 7.28153 5.29305 7.46576 5.70083C7.59164 5.97954 7.80345 6.49907 7.97227 6.91317C8.09673 7.21844 8.19783 7.46642 8.22392 7.51838C8.28542 7.64083 8.32641 7.7838 8.24442 7.94732C8.23213 7.9718 8.22075 7.9949 8.20989 8.01697C8.1483 8.1421 8.10303 8.23406 7.99871 8.35561C7.95781 8.40316 7.91552 8.45437 7.87323 8.50559C7.78834 8.6084 7.70345 8.71122 7.62974 8.78444C7.50636 8.90651 7.37825 9.03916 7.52174 9.28405C7.66523 9.52919 8.15885 10.3307 8.88999 10.9797C9.67543 11.6769 10.3578 11.9718 10.7043 12.1216C10.7723 12.151 10.8274 12.1748 10.8678 12.195C11.1138 12.3174 11.2573 12.297 11.4007 12.1334C11.5442 11.9701 12.0153 11.4187 12.1793 11.1738C12.3433 10.9287 12.5073 10.9695 12.7327 11.0511C12.9582 11.1328 14.1673 11.7252 14.4133 11.8477C14.4613 11.8716 14.5062 11.8931 14.5478 11.9131C14.7194 11.9956 14.8353 12.0513 14.8848 12.1334C14.9463 12.2358 14.9463 12.7259 14.7413 13.2975C14.5363 13.8694 13.5322 14.4207 13.0812 14.4616C13.0378 14.4655 12.9947 14.4705 12.9503 14.4757C12.5336 14.5245 12.0076 14.5861 10.1299 13.8489C7.81952 12.9419 6.29614 10.694 5.98136 10.2295C5.95554 10.1914 5.93785 10.1653 5.92853 10.1529L5.92584 10.1494C5.7934 9.97316 4.92426 8.81686 4.92426 7.62045C4.92426 6.49281 5.481 5.9017 5.73714 5.62974C5.75465 5.61116 5.77075 5.59406 5.78517 5.57839C6.01052 5.33336 6.277 5.27201 6.44098 5.27201L6.46783 5.27201C6.6227 5.27199 6.77678 5.27197 6.91231 5.27775Z"},null,-1),j={components:{BaseIcon:P.su}},M={components:{PostShareMenu:x,IconMessenger:A,IconWhatsapp:(0,_.Z)(j,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 20 20"},{default:(0,i.w5)((()=>[D])),_:1})}]])},mixins:[c.Z,l.Z],props:{postId:String,position:Number},setup(){const{isMainPost:t}=(0,C.Z)();return{isMainPost:t}},methods:{clickWhatsappShare(){this.postId&&this.shareWhatsapp(this.isMainPost)},clickMessengerShare(){this.postId&&this.shareMessenger(this.isMainPost)}}};o(9469);const L=(0,_.Z)(M,[["render",function(t,e,o,c,l,d){const p=(0,i.up)("IconWhatsapp"),u=(0,i.up)("IconMessenger"),h=(0,i.up)("PostShareMenu");return(0,i.wg)(),(0,i.iD)("div",n,[(0,i._)("a",{class:"badge-evt badge-track whatsapp",href:"javascript:void(0);",onClick:e[0]||(e[0]=(0,s.iM)(((...t)=>d.clickWhatsappShare&&d.clickWhatsappShare(...t)),["prevent"])),"data-track":t.getShareTrackingParams("whatsapp"),"data-evt":t.getShareEventParams("whatsapp"),"data-entry-id":o.postId,"data-position":o.position},[(0,i.Wm)(p,{size:"20"})],8,r),(0,i._)("a",{class:"badge-evt badge-track messenger",href:"javascript:void(0);",onClick:e[1]||(e[1]=(0,s.iM)(((...t)=>d.clickMessengerShare&&d.clickMessengerShare(...t)),["prevent"])),"data-track":t.getShareTrackingParams("messenger"),"data-evt":t.getShareEventParams("messenger"),"data-entry-id":o.postId,"data-position":o.position},[(0,i.Wm)(u,{size:"20"})],8,a),(0,i.Wm)(h,{postId:o.postId,position:o.position},null,8,["postId","position"])])}],["__scopeId","data-v-0c18b9a0"]])},90112:(t,e,o)=>{"use strict";o.d(e,{Z:()=>h});var i=o(66252);const s={class:"post-tags"};var n=o(96156),r=o(48254),a=o(32204),c=o(21287);function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function d(t){for(var e=1;e"post-tag",trendingTags(){return this.getConfig("tags.trending")}}),methods:{onTagClick(t){r.default.trackClickTag(t.key,"Post",this.isMainPost,this.isTrendingTag(t))},isTrendingTag(t){return!!this.trendingTags.find((e=>e.key.toLowerCase()===t.key.toLowerCase()))}},components:{Tag:c.Z}};o(39939);const h=(0,o(83744).Z)(u,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("Tag");return(0,i.wg)(),(0,i.iD)("div",s,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.tags,(t=>((0,i.wg)(),(0,i.j4)(c,{tag:t,onOnClick:e=>a.onTagClick(t),highlighted:a.isTrendingTag(t),urlRef:a.ref},null,8,["tag","onOnClick","highlighted","urlRef"])))),256))])}],["__scopeId","data-v-6c4005c6"]])},83155:(t,e,o)=>{"use strict";o.d(e,{Z:()=>P});var i=o(66252),s=o(3577);const n={class:"post-view-header"},r=["href"],a={class:"post-view-header__container"},c={class:"post-view-header__head"},l=["href"],d={key:2,class:"post-view-header__details"},p={key:0,class:"post-view-header__emoji"},u={key:0,class:"post-view-header__creation"};var h=o(97392),m=o(26798),g=o(65157),f=o(90636),v=o(96512),b=o(43295),w=o(29962),y=o(23760);const k={extends:h.TX,name:"PostViewHeader",computed:{creationTime(){return w.default.getTimeAgo(this.post.creationTs,!0)},canShowCreationTime(){return!this.isPromoted&&this.creationTime},iconSize(){return this.isPromoted?20:40}},components:{IconPromoted:g.Z,IconGhostAvatar:f.Z,IconVerified:v.Z,IconGhost:b.Z,GeneralIcon:m.Z,ProBadge:y.Z}};o(99238);const P=(0,o(83744).Z)(k,[["render",function(t,e,o,h,m,g){const f=(0,i.up)("GeneralIcon"),v=(0,i.up)("IconVerified"),b=(0,i.up)("IconGhost"),w=(0,i.up)("ProBadge");return(0,i.wg)(),(0,i.iD)("div",n,[(0,i._)("a",{class:(0,s.C_)(["post-view-header__icon",{promoted:t.isPromoted}]),style:(0,s.j5)(t.linkStyle),href:t.creatorUrl,onClick:e[0]||(e[0]=(...e)=>t.onClickAvatar&&t.onClickAvatar(...e))},[t.creator.icon?((0,i.wg)(),(0,i.j4)((0,i.LL)(t.creator.icon),{key:0,size:g.iconSize},null,8,["size"])):((0,i.wg)(),(0,i.j4)(f,{key:1,src:t.creator.avatarUrl,size:"normal"},null,8,["src"]))],14,r),(0,i._)("div",a,[(0,i._)("div",c,[(0,i._)("a",{class:(0,s.C_)(["post-view-header__author",{promoted:t.isPromoted}]),style:(0,s.j5)(t.linkStyle),href:t.creatorUrl,onClick:e[1]||(e[1]=(...e)=>t.onClickUsername&&t.onClickUsername(...e))},(0,s.zw)(t.creator.name),15,l),t.creator.isVerifiedAccount?((0,i.wg)(),(0,i.j4)(v,{key:0,size:"16",class:"post-view-header__badge"})):(0,i.kq)("",!0),t.isMyAnonymous?((0,i.wg)(),(0,i.j4)(b,{key:1,size:"14",class:"post-view-header__badge"})):(0,i.kq)("",!0),t.creator.accountId?((0,i.wg)(),(0,i.iD)("div",d,[t.creator.emojiStatus?((0,i.wg)(),(0,i.iD)("span",p,(0,s.zw)(t.creator.emojiStatus)+" ",1)):(0,i.kq)("",!0),(0,i.Wm)(w,{user:t.creator},null,8,["user"])])):(0,i.kq)("",!0)]),g.canShowCreationTime?((0,i.wg)(),(0,i.iD)("span",u,"Posted "+(0,s.zw)(g.creationTime),1)):(0,i.kq)("",!0)])])}],["__scopeId","data-v-01562c16"]])},46154:(t,e,o)=>{"use strict";o.d(e,{Z:()=>T});var i=o(66252),s=o(3577),n=o(49963);const r={key:0,class:"btn-vote left"},a={key:1,class:"btn-vote left"};var c=o(96156),l=o(18779),d=o(32204),p=o(55384),u=o(48267),h=o(22922),m=o(46296),g=o(35827),f=(o(23376),o(30665)),v=o(87262),b=o(84157),w=o(33360),y=o(73726),k=o(42550),P=o(59661),O=o(84659),_=o(41653).default;function I(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function C(t){for(var e=1;ed.onVoteUp&&d.onVoteUp(...t))},[(0,i._)("a",{class:(0,s.C_)(["upvote seperated",{active:d.isUpVoted}]),href:"javascript:void(0);"},[d.isUpVoted?((0,i.wg)(),(0,i.j4)(p,{key:0,size:"20"})):((0,i.wg)(),(0,i.j4)(u,{key:1,size:"20"}))],2),(0,i._)("span",{class:(0,s.C_)(["upvote",{active:d.isUpVoted}])},(0,s.zw)(d.postUpVoteCount),3)]),(0,i._)("li",{onClick:e[1]||(e[1]=(...t)=>d.onVoteDown&&d.onVoteDown(...t))},[(0,i._)("a",{class:(0,s.C_)(["downvote seperated",{active:d.isDownVoted}]),href:"javascript:void(0);"},[d.isDownVoted?((0,i.wg)(),(0,i.j4)(h,{key:0,size:"20"})):((0,i.wg)(),(0,i.j4)(m,{key:1,size:"20"}))],2),(0,i._)("span",{class:(0,s.C_)(["downvote",{active:d.isDownVoted}])},(0,s.zw)(d.postDownVoteCount),3)])])):((0,i.wg)(),(0,i.iD)("ul",a,[(0,i._)("li",{onClick:e[5]||(e[5]=(0,n.iM)(((...t)=>d.onVoteUp&&d.onVoteUp(...t)),["stop"]))},[(0,i._)("a",{class:(0,s.C_)(["upvote grouped",{active:d.isUpVoted}]),href:"javascript:void(0);",ref:"upvote"},[d.isUpVoted?((0,i.wg)(),(0,i.j4)(p,{key:0,size:"20"})):((0,i.wg)(),(0,i.j4)(u,{key:1,size:"20"}))],2),(0,i._)("span",{class:(0,s.C_)(["upvote",{active:d.isUpVoted}])},(0,s.zw)(d.countDisplay),3),(0,i._)("a",{class:(0,s.C_)(["downvote grouped",{active:d.isDownVoted}]),onMouseenter:e[2]||(e[2]=(...t)=>d.onDownVoteHover&&d.onDownVoteHover(...t)),onMouseleave:e[3]||(e[3]=(...t)=>d.onDownVoteHoverLeave&&d.onDownVoteHoverLeave(...t)),onClick:e[4]||(e[4]=(0,n.iM)(((...t)=>d.onVoteDown&&d.onVoteDown(...t)),["stop"])),href:"javascript:void(0);"},[d.isDownVoted?((0,i.wg)(),(0,i.j4)(h,{key:0,size:"20"})):((0,i.wg)(),(0,i.j4)(m,{key:1,size:"20"}))],34)])]))}],["__scopeId","data-v-4ff3127c"]])},13061:(t,e,o)=>{"use strict";o.d(e,{Z:()=>ue});var i=o(66252),s=o(3577);const n=t=>((0,i.dD)("data-v-636755ca"),t=t(),(0,i.Cn)(),t),r={key:0,class:"blank-state"},a=n((()=>(0,i._)("div",{class:"message"},"Sorry! No posts were found",-1))),c={class:"stream-container"},l=["id"],d={class:"list-container"},p={class:"loading"},u={key:0,class:"btn spin"},h=[n((()=>(0,i._)("div",{class:"simple-spinner"},null,-1)))],m={key:1,class:"btn end"};var g=o(96156),f=o(68946);const v=["id"],b={class:"post-container"},w={class:"share right"},y=(t=>((0,i.dD)("data-v-7f40ae1b"),t=t(),(0,i.Cn)(),t))((()=>(0,i._)("div",{class:"clearfix"},null,-1)));var k=o(22922),P=o(12463),O=o(90112),_=o(46154),I=o(15682);const C={class:"btn-vote left"},S={class:"comment-text"};var x=o(69937),T=o(46296),E=o(18779),A=o(84157),D=o(81573),j=o(42550);const M=(0,i._)("path",{d:"M6.3 18C6.06131 18 5.83239 17.9052 5.6636 17.7364C5.49482 17.5676 5.4 17.3387 5.4 17.1V14.4H1.8C1.32261 14.4 0.864773 14.2104 0.527208 13.8728C0.189642 13.5352 0 13.0774 0 12.6V1.8C0 0.801 0.81 0 1.8 0H16.2C16.6774 0 17.1352 0.189642 17.4728 0.527208C17.8104 0.864773 18 1.32261 18 1.8V12.6C18 13.0774 17.8104 13.5352 17.4728 13.8728C17.1352 14.2104 16.6774 14.4 16.2 14.4H10.71L7.38 17.739C7.2 17.91 6.975 18 6.75 18H6.3ZM7.2 12.6V15.372L9.972 12.6H16.2V1.8H1.8V12.6H7.2Z"},null,-1);var L=o(97392);const U={components:{BaseIcon:L.su}};var Z=o(83744);const R=(0,Z.Z)(U,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 18 18",color:"#999999"},{default:(0,i.w5)((()=>[M])),_:1})}]]);var N=o(32204);function B(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function H(t){for(var e=1;e[(0,i.Wm)(c,{size:"18"}),(0,i._)("span",null,(0,s.zw)(a.postCommentsCount),1),(0,i._)("span",S,(0,s.zw)(a.postCommentText),1)])),_:1},8,["target","postId","position","feedId","href","isCollectionPage"])])])}],["__scopeId","data-v-9307a4a4"]]);var G=o(53441),z=o(11110),W=o(20985),K=o(97554),q=o(39182);const Y=t=>((0,i.dD)("data-v-4ef9e8bc"),t=t(),(0,i.Cn)(),t),Q={class:"post-hidden"},J={class:"post-hidden__header"},X={class:"post-hidden__header__left"},tt=Y((()=>(0,i._)("span",null,"Post hidden",-1))),et=Y((()=>(0,i._)("div",{class:"post-hidden__content"}," Thanks. 9GAG will use this to make your feed better. ",-1))),ot=Y((()=>(0,i._)("span",null,"Block words from title",-1))),it=Y((()=>(0,i._)("span",null,"Block tags",-1))),st=Y((()=>(0,i._)("span",null,"Report post",-1))),nt=(0,i._)("path",{d:"M10.83 6L14 9.16C14 9.11 14 9.05 14 9C14 8.20435 13.6839 7.44129 13.1213 6.87868C12.5587 6.31607 11.7956 6 11 6C10.94 6 10.89 6 10.83 6ZM6.53 6.8L8.08 8.35C8.03 8.56 8 8.77 8 9C8 9.79565 8.31607 10.5587 8.87868 11.1213C9.44129 11.6839 10.2044 12 11 12C11.22 12 11.44 11.97 11.65 11.92L13.2 13.47C12.53 13.8 11.79 14 11 14C9.67392 14 8.40215 13.4732 7.46447 12.5355C6.52678 11.5979 6 10.3261 6 9C6 8.21 6.2 7.47 6.53 6.8ZM1 1.27L3.28 3.55L3.73 4C2.08 5.3 0.78 7 0 9C1.73 13.39 6 16.5 11 16.5C12.55 16.5 14.03 16.2 15.38 15.66L15.81 16.08L18.73 19L20 17.73L2.27 0L1 1.27ZM11 4C12.3261 4 13.5979 4.52678 14.5355 5.46447C15.4732 6.40215 16 7.67392 16 9C16 9.64 15.87 10.26 15.64 10.82L18.57 13.75C20.07 12.5 21.27 10.86 22 9C20.27 4.61 16 1.5 11 1.5C9.6 1.5 8.26 1.75 7 2.2L9.17 4.35C9.74 4.13 10.35 4 11 4Z"},null,-1),rt={components:{BaseIcon:L.su}},at=(0,Z.Z)(rt,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 22 19",color:"#999999"},{default:(0,i.w5)((()=>[nt])),_:1})}]]),ct=(0,i._)("path",{d:"M9.4 2L9 0H0V17H2V10H7.6L8 12H15V2H9.4Z"},null,-1),lt={components:{BaseIcon:L.su}},dt=(0,Z.Z)(lt,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 15 17",color:"#999999"},{default:(0,i.w5)((()=>[ct])),_:1})}]]),pt=(0,i._)("path",{d:"M7.3335 1.33335C5.56683 1.33335 3.96683 1.99335 2.7335 3.06669L0.333496 0.666687V6.66669H6.3335L3.92016 4.25335C4.84683 3.48002 6.02683 3.00002 7.3335 3.00002C9.6935 3.00002 11.7002 4.54002 12.4002 6.66669L13.9802 6.14669C13.0535 3.35335 10.4335 1.33335 7.3335 1.33335Z"},null,-1),ut={components:{BaseIcon:L.su}},ht={components:{IconRevert:(0,Z.Z)(ut,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("BaseIcon");return(0,i.wg)(),(0,i.j4)(a,{viewBox:"0 0 14 7",color:"#999999"},{default:(0,i.w5)((()=>[pt])),_:1})}]]),IconReport:dt,IconBlock:o(66463).Z,IconHide:at},props:{postId:String},methods:{clickReport(){this.$emit("onReport")},clickMute(){this.$emit("onMute")},clickRevert(){this.$emit("onRevert")},clickBlockTag(){this.$emit("onBlockTag")}},emits:["onMute","onReport","onRevert","onBlockTag"]};o(73049);const mt=(0,Z.Z)(ht,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("IconHide"),c=(0,i.up)("IconRevert"),l=(0,i.up)("IconBlock"),d=(0,i.up)("IconReport");return(0,i.wg)(),(0,i.iD)("div",Q,[(0,i._)("div",J,[(0,i._)("div",X,[(0,i.Wm)(a,{size:"20"}),tt]),(0,i._)("div",{class:"post-hidden__header__right",onClick:e[0]||(e[0]=(...t)=>r.clickRevert&&r.clickRevert(...t))},[(0,i.Wm)(c,{size:"16"})])]),et,(0,i._)("div",{class:"post-hidden__action",onClick:e[1]||(e[1]=(...t)=>r.clickMute&&r.clickMute(...t))},[(0,i.Wm)(l,{size:"16"}),ot]),(0,i._)("div",{class:"post-hidden__action",onClick:e[2]||(e[2]=(...t)=>r.clickBlockTag&&r.clickBlockTag(...t))},[(0,i.Wm)(l,{size:"16"}),it]),(0,i._)("div",{class:"post-hidden__action",onClick:e[3]||(e[3]=(...t)=>r.clickReport&&r.clickReport(...t))},[(0,i.Wm)(d,{size:"16"}),st])])}],["__scopeId","data-v-4ef9e8bc"]]);var gt=o(35827),ft=o(55384),vt=o(89466),bt=o(33360),wt=o(48254),yt=o(63958),kt=o(71652).default;const Pt={mixins:[k.Z,ft.Z,vt.Z],props:{postId:String,position:Number,streamId:String,archived:Boolean},setup(){const{isRelatedPost:t,isMainPost:e}=(0,j.Z)();return{isRelatedPost:t,isMainPost:e,userStore:(0,bt.LM)()}},data:()=>({showComposer:!1,showPostHidden:!1}),computed:{showPostAward(){return!this.isCollectionPage&&this.userStore.isLoggedIn&&this.postId&&!this.userStore.uploads.includes(this.postId)},postDomId(){return G.default.getPostDomId(this.postId)},showDesc(){const t=[kt.TYPE_COLLECTION_PAGE,kt.TYPE_TEXT];return this.post.description&&""!==this.post.description&&!t.includes(this.post.type)},postTitleComponent(){return this.isRelatedPost?"h3":"h2"}},components:{PostHidden:mt,PostSave:q.Z,PostTags:O.Z,PostVote:_.Z,PostShare:I.Z,PostContent:z.Z,PostComment:$,PostHeader:P.Z,TapPost:x.Z,Markdown:W.Z,PostAward:yt.Z,PostInlineComment:(0,i.RC)((()=>o.e(261).then(o.bind(o,69513))))},methods:{showCommentComposer(){K.Z.LIST_VIEWS.includes(this.$route.name)&&this.postId&&!this.isCollectionPage&&(this.showComposer=!0)},handleClickTag(t){wt.default.trackClickTag(t.key,"Post",this.isMainPost)},togglePostHidden(){this.showPostHidden=!this.showPostHidden},onReportClick(){this.triggerSignup({action:gt.QF})||this.reportEntry(this.postId,this.isMainPost)},onMuteClick(){E.Z.$emit("Overlay::showMuteListModal")},onBlockTagClick(){E.Z.$emit("Overlay::showBlockTagModal",this.post)},onRevertClick(){(0,bt.LM)().revertBlockPost(this.postId),this.togglePostHidden(),wt.default.trackPostUnhidden(this.postId)}},mounted(){E.Z.$on(`post::hidePost::${this.postId}`,this.togglePostHidden)},unmounted(){E.Z.$off(`post::hidePost::${this.postId}`,this.togglePostHidden)}};o(210);const Ot=(0,Z.Z)(Pt,[["render",function(t,e,o,n,r,a){const c=(0,i.up)("PostHidden"),l=(0,i.up)("PostHeader"),d=(0,i.up)("TapPost"),p=(0,i.up)("PostContent"),u=(0,i.up)("Markdown"),h=(0,i.up)("PostTags"),m=(0,i.up)("PostVote"),g=(0,i.up)("PostComment"),f=(0,i.up)("PostAward"),k=(0,i.up)("PostSave"),P=(0,i.up)("PostShare"),O=(0,i.up)("PostInlineComment");return(0,i.wg)(),(0,i.iD)("article",{id:a.postDomId},[r.showPostHidden?((0,i.wg)(),(0,i.j4)(c,{key:0,postId:o.postId,onOnReport:a.onReportClick,onOnMute:a.onMuteClick,onOnRevert:a.onRevertClick,onOnBlockTag:a.onBlockTagClick},null,8,["postId","onOnReport","onOnMute","onOnRevert","onOnBlockTag"])):o.archived?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i._)("header",null,[(0,i.Wm)(l,{postId:o.postId},null,8,["postId"]),(0,i.Wm)(d,{class:"badge-evt badge-track",track:`post,v,,,d,${t.post.id},l`,postId:o.postId,position:o.position,feedId:t.feedId,href:t.postUrl,eventKey:"PostTitle",target:"_blank"},{default:(0,i.w5)((()=>[((0,i.wg)(),(0,i.j4)((0,i.LL)(a.postTitleComponent),null,{default:(0,i.w5)((()=>[(0,i.Uk)((0,s.zw)(t.postTitle),1)])),_:1}))])),_:1},8,["track","postId","position","feedId","href"])]),(0,i._)("div",b,[(0,i.Wm)(p,{postId:o.postId,position:o.position,streamId:o.streamId},null,8,["postId","position","streamId"]),a.showDesc?((0,i.wg)(),(0,i.j4)(u,{key:0,class:"post-text-container",content:t.post.description},null,8,["content"])):(0,i.kq)("",!0)]),(0,i.Wm)(h,{tags:t.post.tags,isMainPost:n.isMainPost},null,8,["tags","isMainPost"]),(0,i._)("div",{class:"post-afterbar-a",onClick:e[0]||(e[0]=(...t)=>a.showCommentComposer&&a.showCommentComposer(...t))},[(0,i.Wm)(m,{postId:o.postId,position:o.position,onOnVote:a.showCommentComposer},null,8,["postId","position","onOnVote"]),(0,i.Wm)(g,{postId:o.postId,position:o.position},null,8,["postId","position"]),a.showPostAward?((0,i.wg)(),(0,i.j4)(f,{key:0,postId:o.postId},null,8,["postId"])):(0,i.kq)("",!0),t.isCollectionPage?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(k,{key:1,postId:o.postId},null,8,["postId"])),(0,i._)("div",w,[(0,i.Wm)(P,{postId:o.postId,position:o.position},null,8,["postId","position"])]),y]),r.showComposer?((0,i.wg)(),(0,i.j4)(O,{key:0,postId:o.postId,post:t.post},null,8,["postId","post"])):(0,i.kq)("",!0)],64))],8,v)}],["__scopeId","data-v-7f40ae1b"]]);var _t=o(32462),It=o(90695),Ct=o(42175),St=o(92289).default;function xt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Tt(t){for(var e=1;e({adTags:["inline_ad"],preloadAdsMargin:1}),computed:Tt(Tt(Tt({},Et({adCampaign:"AD_CAMPAIGN"})),At({nsfwAds:"NSFW_ADS"})),Dt(["isAdBlocked"])),methods:{getAdItem(t){var e;if(this.$route&&"forum"===(null===(e=this.$route.params)||void 0===e?void 0:e.type))return null;const o=this.getAdContainers(t);if(o.length<1)return null;const{adContainerId:i}=o[0];return{type:"inlineAd",id:i,adContainers:o}},createAdObserver(){const t=this.preloadAdsMargin*Ct.Z.browserHeight();return new St.VisibilityObserver(this.adIntersectHandler,0,t,[0,.5])}}};var Mt=o(11186),Lt=o(86587);const Ut=(0,i.Uk)(" Create new account "),Zt={class:"signup-list-banner"},Rt=(t=>((0,i.dD)("data-v-5727ca7a"),t=t(),(0,i.Cn)(),t))((()=>(0,i._)("div",{class:"signup-list-banner__content"},[(0,i._)("div",{class:"signup-list-banner__content__logo"}),(0,i._)("div",{class:"signup-list-banner__content__description"},[(0,i._)("div",{class:"tagline"}," 9GAG is the largest meme community on the internet "),(0,i._)("p",null," This is the place to discover the latest memes for sharing and to grow your meme collection. ")])],-1))),Nt={class:"signup-list-banner__action"},Bt=(0,i.Uk)(" Log in "),Ht=(0,i.Uk)(" Sign up ");o(47642);const Vt={},Ft=(0,Z.Z)(Vt,[["render",function(t,e){return(0,i.wg)(),(0,i.iD)("div",Zt,[Rt,(0,i._)("div",Nt,[(0,i._)("a",{class:"signup-list-banner__action__btn",onClick:e[0]||(e[0]=e=>t.$emit("login",e)),href:"/login"},[(0,i.WI)(t.$slots,"buttonLogin",{},(()=>[Bt]),!0)]),(0,i._)("a",{class:"signup-list-banner__action__btn signup",onClick:e[1]||(e[1]=e=>t.$emit("signup",e)),href:"/signup"},[(0,i.WI)(t.$slots,"buttonSignup",{},(()=>[Ht]),!0)])])])}],["__scopeId","data-v-5727ca7a"]]);var $t=o(68209),Gt=o(48254).default;const zt={components:{SignupListBanner:Ft},mixins:[$t.Z],methods:{clickLogin(t){t.preventDefault(),t.stopPropagation(),E.Z.$emit("Overlay::showLogin"),this.trackLabel("SignUp","TapLogin","PostList"),Gt.trackClickLogin("Post List")},clickSignup(t){t.preventDefault(),t.stopPropagation(),E.Z.$emit("Overlay::showSignup"),this.trackLabel("SignUp","TapSignup","PostList"),Gt.trackClickSignup("Post List")}}};o(80957);const Wt=(0,Z.Z)(zt,[["render",function(t,e,o,s,n,r){const a=(0,i.up)("SignupListBanner");return(0,i.wg)(),(0,i.j4)(a,{class:"signup-list-banner",onLogin:r.clickLogin,onSignup:r.clickSignup},{buttonSignup:(0,i.w5)((()=>[Ut])),_:1},8,["onLogin","onSignup"])}],["__scopeId","data-v-fa703c26"]]);var Kt=o(73726),qt=o(96414),Yt=o(7517),Qt=o(49963),Jt=o(71652).default,Xt=o(39914).default,te=o(53441).default,ee=o(92289).default;function oe(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ie(t){for(var e=1;e({streamObserver:null,postObserver:null,postItemRefs:{},archivedStreams:{},archivedPosts:{},containerPadding:32,visibleStreamPos:0}),watch:{$route(t,e){this.resetObservers(),this.initData()},postIds(){this.resetLoadMore()}},setup(){const t=(0,Kt.k)();return{isCollectionPageRoute:(0,i.Fl)((()=>t.isRoute(K.Z.COLLECTION_PAGE)))}},computed:ie(ie(ie(ie({},ae(["topNavHeight"])),(0,A.rn)(bt.LM,["reports"])),se({posts:t=>t.posts,apiInfo(t){return this.listApiInfo||t.currentApiInfo||{}},postIds(t,e){return e.POST_LIST_IDS(this.apiInfo)},hasNoMorePost(t,e){return null===e.GET_CURSORS(this.apiInfo)},lastPosition(t){return t.lastPositionByUrl[this.apiInfo.url]||null}})),{},{streams(){const t=this.postIds;let e=0;const o=[];for(;ee<=this.visibleStreamPos))},listItemStreams(){const t=[];let e=0;return this.visibleStreams.forEach(((o,i)=>{const s=this.streamDomId(i),n={id:s,position:i,archived:!this.displayStream(s),style:this.streamStyle(s)},r=[];o.forEach((t=>{if(e+=1,!this.reports.includes(t)){const o={type:"post",id:t,position:e,postId:t};r.push(o)}}));const a=this.getAdItem(e);a&&r.push(a),n.items=r,t.push(n)})),t},infiniteLoadDistance(){const t=Ct.Z.browserHeight(),e=this.visibleStreamPos<2?1:2;return this.postIds.length?Math.max(300,t*e):300},listViewStyle(){return this.lastPosition?{minHeight:`${this.lastPosition.top}px`}:null},showSidebar(){return!!this.$route&&K.Z.LIST_VIEWS.includes(this.$route.name)},sidebarTopPadding(){return this.showSidebar?`-${this.headerHeight||0}px`:0}}),methods:ie(ie(ie({},ne({_updatePostAutoPlay:"UPDATE_POST_AUTO_PLAY",loadPosts:"LOAD_POSTS"})),(0,A.nv)(bt.LM,["updateUnInterestedPosts"])),{},{getStreamSize(t){if(Mt.Z.isBot())return 10;const e={0:2,1:3,standard:5};return e[t]?e[t]:e.standard},updatePostAutoPlay(t){if(!this.posts)return;const e=this.posts[t.id].type,o=this.postArchived(t.id);[Jt.TYPE_ANIMATED,Jt.TYPE_VIDEO,Jt.TYPE_EMBED_VIDEO].includes(e)&&!o&&this._updatePostAutoPlay(t)},async loadMorePosts(){return Xt.log("loadMorePosts(): load more posts"),await this.loadPosts({apiInfo:this.apiInfo})},loadMoreHandler(){const t=this.visibleStreamPos>=this.streams.length-1;if(!this.hasNoMorePost||!t)if(t)this.loadMorePosts().catch((t=>{t&&t.response||this.resetLoadMore()}));else{this.visibleStreamPos+=1;const t=this.visibleStreamPos,e=this.streamDomId(t);this.$nextTick((()=>{this.resetLoadMore(),this.streamObserver.observe(this.streamRef(e),{pos:t})}))}},resetLoadMore(){Xt.log("resetLoadMore"),this.$refs.loadMore&&this.$refs.loadMore.reset()},scrollToNextPost(){this.scrollToPost({direction:1})},scrollToPrevPost(){this.scrollToPost({direction:-1})},scrollToPost({direction:t}){const e=this.getVisibleItems();if(e[0]){const o=te.getPostId(e[0].domId),i=this.postIds.indexOf(o),s=i+t;-1!==i&&s>=0&&s{for(let t=0;t<=this.visibleStreamPos;t++){const e=this.streamDomId(t),o=this.streamRef(e);o&&this.streamObserver.observe(o,{pos:t})}}))},startObservers(){this.streamObserver||this.createStreamObserver(),this.postObserver||this.createPostObserver()},resetObservers(){this.streamObserver&&(this.streamObserver.destroy(),this.streamObserver=null),this.postObserver&&(this.postObserver.destroy(),this.postObserver=null)},streamDomId:t=>te.getStreamDomId(t),streamRef(t){var e;return(null===(e=this.$refs[t])||void 0===e?void 0:e[0])||null},displayStream(t){return!this.archivedStreams[t]},streamStyle(t){return{minHeight:this.archivedStreams[t]}},postsInStream(t){if(!this.streams)return[];const e=te.getStreamPos(t);return this.streams[e]||[]},postArchived(t){return this.archivedPosts[t]},createStreamObserver(){const t=Ct.Z.browserHeight(),e=3*t,o=4*t;this.streamObserver=new ee.VisibilityObserver(this.streamIntersectHandler,e,o)},streamIntersectHandler(t){t.forEach((t=>{const e=t.domId,o=this.postsInStream(e);if(t.visibilityStatus===ee.VISIBILITY_STATUS.enter)this.archivedStreams[e]=0,o.length>0&&o.forEach((t=>this.archivedPosts[t]=!1));else if(t.visibilityStatus===ee.VISIBILITY_STATUS.exit){const t=this.streamRef(e);if(!t)return;const i=window.getComputedStyle(t).height;this.archivedStreams[e]=i,o.length>0&&o.forEach((t=>this.archivedPosts[t]=!0)),E.Z.$emit(`post::streamArchived::${e}`)}}));const e=this.streamObserver&&this.streamObserver.getSortedVisibleItems()||[];if(!e.length)return;const o=e[e.length-1].data.pos;this.$emit("streamVisible",{url:this.apiInfo.url,stream:o,archivedStreams:ie({},this.archivedStreams)}),this.$nextTick((()=>{qt.Z.changePage()}))},createPostObserver(){this.postObserver=new ee.VisibilityObserver(this.postIntersectHandler,-this.topNavHeight,0,.6)},postIntersectHandler(t){t.forEach((t=>{const e=te.getPostId(t.domId),o=t.intersectionRatio>=.6;o?this.updatePostAutoPlay({id:e,autoPlayEvent:"play"}):!o&&t.intersectionRatio>0&&this.updatePostAutoPlay({id:e,autoPlayEvent:"pause"})}))},setPostItemRefs(t){t&&(this.postItemRefs[t.postId]=t,this.postObserver.observe(t.$el))},getContentHeight(t){const e=this.$refs[t];return e?e.$el&&e.$el.offsetHeight:null}}),created(){this.startObservers(),this.keyboardEvents={},["voteUp","voteDown","togglePlay","comment"].forEach((t=>{this.keyboardEvents[`post::${t}::inView`]=()=>{const e=this.getVisibleItems();e[0]&&E.Z.$emit(`post::${t}::${te.getPostId(e[0].domId)}`)}})),Object.entries(this.keyboardEvents).forEach((([t,e])=>E.Z.$on(t,e))),E.Z.$on("post::toNextListPost",this.scrollToNextPost),E.Z.$on("post::toPrevListPost",this.scrollToPrevPost)},beforeUpdate(){this.postItemRefs={}},mounted(){this.initData()},unmounted(){this.postItemRefs={},this.resetObservers(),Object.entries(this.keyboardEvents).forEach((([t,e])=>E.Z.$off(t,e))),this.keyboardEvents={},E.Z.$off("post::toNextListPost",this.scrollToNextPost),E.Z.$off("post::toPrevListPost",this.scrollToPrevPost)},components:{PostSignupListBanner:Wt,LoadMore:f.Z,PostListItem:Ot,ProfileBlankState:Lt.Z,PostListAds:_t.Z,Sidebar:Yt.Z}},le=()=>{(0,Qt.sj)((t=>({"1f33c386":t.sidebarTopPadding})))},de=ce.setup;ce.setup=de?(t,e)=>(le(),de(t,e)):le;const pe=ce;o(89381);const ue=(0,Z.Z)(pe,[["render",function(t,e,o,n,g,f){const v=(0,i.up)("PostListItem"),b=(0,i.up)("PostSignupListBanner"),w=(0,i.up)("Sidebar"),y=(0,i.up)("PostListAds"),k=(0,i.up)("LoadMore");return(0,i.wg)(),(0,i.iD)("section",{id:"list-view-2",style:(0,s.j5)(f.listViewStyle)},[t.hasNoMorePost&&0===t.postIds.length?((0,i.wg)(),(0,i.iD)("div",r,[(0,i.WI)(t.$slots,"blank-state",{},(()=>[a]),!0)])):((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(f.listItemStreams,(e=>((0,i.wg)(),(0,i.iD)("div",c,[(0,i._)("div",{class:"list-stream",id:e.id,ref_for:!0,ref:e.id,style:(0,s.j5)(e.style)},[(0,i._)("div",d,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.items,((o,s)=>((0,i.wg)(),(0,i.iD)(i.HY,{key:o.id},["post"===o.type?((0,i.wg)(),(0,i.j4)(v,{ref_for:!0,ref:f.setPostItemRefs,key:o.postId,postId:o.postId,position:o.position,streamId:e.id,archived:e.archived},null,8,["postId","position","streamId","archived"])):(0,i.kq)("",!0),t.showSignupBanner&&4===o.position?((0,i.wg)(),(0,i.j4)(b,{key:1})):(0,i.kq)("",!0)],64)))),128))]),f.showSidebar?((0,i.wg)(),(0,i.j4)(w,{key:0,getContentHeight:()=>f.getContentHeight(e.id)},null,8,["getContentHeight"])):(0,i.kq)("",!0)],12,l),"inlineAd"===e.items[e.items.length-1].type?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[e.archived?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(y,{class:"inline-ad-container list-view",key:e.items[e.items.length-1].id,adContainers:e.items[e.items.length-1].adContainers,onObserveAd:t.observeAd,onUnobserveAd:t.unobserveAd},null,8,["adContainers","onObserveAd","onUnobserveAd"]))],64)):(0,i.kq)("",!0)])))),256)),(0,i._)("div",p,[(0,i.Wm)(k,{ref:"loadMore",threshold:f.infiniteLoadDistance,onLoadMore:f.loadMoreHandler},null,8,["threshold","onLoadMore"]),n.isCollectionPageRoute?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[t.hasNoMorePost?((0,i.wg)(),(0,i.iD)("a",m,"No more posts")):((0,i.wg)(),(0,i.iD)("a",u,h))],64))])],64))],4)}],["__scopeId","data-v-636755ca"]])},86587:(t,e,o)=>{"use strict";o.d(e,{Z:()=>h});var i=o(66252),s=o(96156),n=o(48267),r=o(97392),a=o(84157),c=o(33360),l=o(48254).default;function d(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function p(t){for(var e=1;e{"use strict";o.d(e,{Z:()=>d});var i=o(66252);const s=["data-evt","data-entry-id","data-position"];var n=o(47526),r=o(42550),a=o(73726),c=o(48254).default;const l={props:{eventKey:String,postId:String,position:Number,feedId:String,isCollectionPage:Boolean},setup(){const{isRelatedPost:t}=(0,r.Z)();return{isRelatedPost:t}},computed:{getEntryEventParams(){return`PostList,TapPost,${(0,a.k)().pageKey},,${this.eventKey}`}},methods:{click(){this.$refs.anchor.click()},trackOpenPost(){this.postId&&!this.isCollectionPage&&(c.trackOpenPost(this.postId,{PostTitle:"Post Title",Comment:"Comment Button"}[this.eventKey]||null,this.isRelatedPost),n.Z.setFeedId(this.postId,this.feedId))}}},d=(0,o(83744).Z)(l,[["render",function(t,e,o,n,r,a){return(0,i.wg)(),(0,i.iD)("a",{"data-evt":a.getEntryEventParams,"data-entry-id":o.isCollectionPage?null:o.postId,"data-position":o.position,onClick:e[0]||(e[0]=(...t)=>a.trackOpenPost&&a.trackOpenPost(...t)),ref:"anchor"},[(0,i.WI)(t.$slots,"default")],8,s)}]])},7517:(t,e,o)=>{"use strict";o.d(e,{Z:()=>A});var i=o(66252),s=o(3577);const n={class:"sidebar",ref:"sidebar"},r={class:"sidebar-content"},a=["id"],c=(t=>((0,i.dD)("data-v-862fe5ec"),t=t(),(0,i.Cn)(),t))((()=>(0,i._)("div",{class:"clearfix"},null,-1)));var l=o(96156),d=o(32462),p=o(11186),u=o(32204),h=o(90695),m=o(92289).default;function g(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}const{mapState:f}=(0,u._p)("app"),v=["sidebar_1","sidebar_2"],b={extends:h.Z,data:()=>({adTags:v}),computed:function(t){for(var e=1;e({streamDomIds:[],contentHeight:0}),watch:{$route(){this.$nextTick((()=>{this.initData()}))}},computed:_(_(_({},I(["topNavHeight"])),C({showAds:"SHOW_ADS"})),{},{sidebarStreams(){const t=[];return this.streamDomIds.forEach(((e,o)=>{const i={streamDomId:e,steamContentDomId:this.steamContentDomId(e),adContainers:this.getAdContainers(o),style:this.streamStyle()};t.push(i)})),t},stickyBuffer(){return!this.showAds||p.Z.isBot()?0:this.contentHeight},stickTop(){return`${this.topNavHeight+16}px`}}),methods:{async initData(){this.streamDomIds=[],await this.$nextTick(),this.addStream(0),this.checkLoadMore()},streamDomId:t=>`sidebar-stream-${t}`,steamContentDomId:t=>`${t}-content`,streamRef(t){var e;return(null===(e=this.$refs[t])||void 0===e?void 0:e[0])||null},streamStyle(){return{minHeight:`${this.stickyBuffer}px`}},addStream(t){const e=this.streamDomId(t);this.streamDomIds.push(e)},_checkLoadMore(){const t=this.getContentHeight();t&&(this.contentHeight=t)}},mounted(){this.initData(),P.addEventListener("scroll",this.checkLoadMore)},unmounted(){P.removeEventListener("scroll",this.checkLoadMore)},created(){this.checkLoadMore=y()(this._checkLoadMore,100)},components:{SidebarAds:d.Z}},x=()=>{(0,k.sj)((t=>({"61630eca":t.stickTop})))},T=S.setup;S.setup=T?(t,e)=>(x(),T(t,e)):x;const E=S;o(1815);const A=(0,o(83744).Z)(E,[["render",function(t,e,o,l,d,p){const u=(0,i.up)("SidebarAds");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("section",n,[(0,i._)("div",r,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(p.sidebarStreams,((e,o)=>((0,i.wg)(),(0,i.iD)("div",{id:e.streamDomId,ref_for:!0,ref:e.streamDomId,style:(0,s.j5)(e.style)},[(0,i._)("div",{class:"sticky",ref_for:!0,ref:e.steamContentDomId},[t.showAds?((0,i.wg)(),(0,i.j4)(u,{key:0,adContainers:e.adContainers,onObserveAd:t.observeAd,onUnobserveAd:t.unobserveAd},null,8,["adContainers","onObserveAd","onUnobserveAd"])):(0,i.kq)("",!0)],512)],12,a)))),256))])],512),c],64)}],["__scopeId","data-v-862fe5ec"]])},87463:(t,e,o)=>{var i=o(31536);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("7f7d708e",i,!0,{})},33672:(t,e,o)=>{var i=o(12251);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("2bc06dcd",i,!0,{})},6033:(t,e,o)=>{var i=o(8104);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("7ea101fc",i,!0,{})},86573:(t,e,o)=>{var i=o(45629);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("53163020",i,!0,{})},33613:(t,e,o)=>{var i=o(52706);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("40bce3aa",i,!0,{})},49318:(t,e,o)=>{var i=o(53192);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("2282ef05",i,!0,{})},9713:(t,e,o)=>{var i=o(35207);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("39156f90",i,!0,{})},50847:(t,e,o)=>{var i=o(9819);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("27187df2",i,!0,{})},21109:(t,e,o)=>{var i=o(85079);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("c0141882",i,!0,{})},14171:(t,e,o)=>{var i=o(96778);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("3f52094c",i,!0,{})},4982:(t,e,o)=>{var i=o(53263);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("fb6ef722",i,!0,{})},46315:(t,e,o)=>{var i=o(37579);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("35a2027d",i,!0,{})},45366:(t,e,o)=>{var i=o(51837);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("a93c51b6",i,!0,{})},97463:(t,e,o)=>{var i=o(80390);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("3dcb3c6f",i,!0,{})},59737:(t,e,o)=>{var i=o(34333);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("0705fb55",i,!0,{})},70413:(t,e,o)=>{var i=o(8349);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("4444823b",i,!0,{})},35299:(t,e,o)=>{var i=o(89828);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("02abe998",i,!0,{})},58181:(t,e,o)=>{var i=o(60162);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("7039334e",i,!0,{})},47642:(t,e,o)=>{var i=o(8771);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1445db01",i,!0,{})},7478:(t,e,o)=>{var i=o(54415);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("6dfd7f7d",i,!0,{})},93257:(t,e,o)=>{var i=o(58499);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("4fbaf740",i,!0,{})},1094:(t,e,o)=>{var i=o(97299);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("3b87bfa0",i,!0,{})},46639:(t,e,o)=>{var i=o(77190);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("61f0a9c8",i,!0,{})},22530:(t,e,o)=>{var i=o(96112);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("11109555",i,!0,{})},44434:(t,e,o)=>{var i=o(74691);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("8c00c1f6",i,!0,{})},48083:(t,e,o)=>{var i=o(79706);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("01320066",i,!0,{})},62193:(t,e,o)=>{var i=o(29304);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("7fcdd53b",i,!0,{})},16565:(t,e,o)=>{var i=o(11498);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1ef8c5cd",i,!0,{})},36241:(t,e,o)=>{var i=o(81237);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("09e1de69",i,!0,{})},92105:(t,e,o)=>{var i=o(30489);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("3f1952c3",i,!0,{})},59539:(t,e,o)=>{var i=o(55179);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("277c528a",i,!0,{})},73049:(t,e,o)=>{var i=o(33245);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("489b4811",i,!0,{})},99220:(t,e,o)=>{var i=o(75009);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("8e8c66c6",i,!0,{})},10268:(t,e,o)=>{var i=o(37196);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("b7ae6ca6",i,!0,{})},96826:(t,e,o)=>{var i=o(85941);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1be12144",i,!0,{})},53677:(t,e,o)=>{var i=o(69578);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("a3e53b94",i,!0,{})},14164:(t,e,o)=>{var i=o(38408);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("120a39a0",i,!0,{})},90903:(t,e,o)=>{var i=o(83956);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("532ba85a",i,!0,{})},62331:(t,e,o)=>{var i=o(88095);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("0a1f2a2c",i,!0,{})},10274:(t,e,o)=>{var i=o(89273);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("3421cfaa",i,!0,{})},26668:(t,e,o)=>{var i=o(83864);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("3655580b",i,!0,{})},93259:(t,e,o)=>{var i=o(30184);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("4ce291a1",i,!0,{})},74693:(t,e,o)=>{var i=o(79056);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1ffa1fa0",i,!0,{})},46608:(t,e,o)=>{var i=o(67884);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("a50c3d54",i,!0,{})},25240:(t,e,o)=>{var i=o(1478);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("255c8c25",i,!0,{})},65445:(t,e,o)=>{var i=o(32554);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("11b7f6ae",i,!0,{})},91095:(t,e,o)=>{var i=o(88467);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("45fe2b3e",i,!0,{})},56532:(t,e,o)=>{var i=o(60122);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("68b3a8ee",i,!0,{})},89941:(t,e,o)=>{var i=o(23320);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("cf90e2a0",i,!0,{})},96857:(t,e,o)=>{var i=o(18544);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("3e214eaf",i,!0,{})},46748:(t,e,o)=>{var i=o(88391);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("72f7db52",i,!0,{})},31996:(t,e,o)=>{var i=o(75996);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1a0dba82",i,!0,{})},3537:(t,e,o)=>{var i=o(74487);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("69dce50c",i,!0,{})},83034:(t,e,o)=>{var i=o(99162);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("21aa9892",i,!0,{})},71398:(t,e,o)=>{var i=o(31119);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1d3b8504",i,!0,{})},95411:(t,e,o)=>{var i=o(74095);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1d8d999d",i,!0,{})},97530:(t,e,o)=>{var i=o(50566);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1f5ac008",i,!0,{})},29812:(t,e,o)=>{var i=o(54406);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("32ae2553",i,!0,{})},69235:(t,e,o)=>{var i=o(23106);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("88a6f8f6",i,!0,{})},9469:(t,e,o)=>{var i=o(19470);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("08d360b0",i,!0,{})},76189:(t,e,o)=>{var i=o(83401);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("a4da8dfe",i,!0,{})},80957:(t,e,o)=>{var i=o(4556);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("65ad1198",i,!0,{})},39939:(t,e,o)=>{var i=o(60577);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("37e6ada6",i,!0,{})},16747:(t,e,o)=>{var i=o(6581);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("0032ce6b",i,!0,{})},99238:(t,e,o)=>{var i=o(34823);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("7f0dfd70",i,!0,{})},45878:(t,e,o)=>{var i=o(85538);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("3748dbb8",i,!0,{})},60307:(t,e,o)=>{var i=o(23527);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("823355bc",i,!0,{})},89381:(t,e,o)=>{var i=o(55653);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("b18bd0ec",i,!0,{})},210:(t,e,o)=>{var i=o(70496);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("7ab61b60",i,!0,{})},23878:(t,e,o)=>{var i=o(36865);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("1cce61f0",i,!0,{})},1815:(t,e,o)=>{var i=o(22071);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("325a9bb6",i,!0,{})},7907:(t,e,o)=>{var i=o(82016);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("0545a631",i,!0,{})},13907:(t,e,o)=>{var i=o(44652);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("589c061b",i,!0,{})},46589:(t,e,o)=>{var i=o(21330);"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,o(45346).Z)("fc8c0816",i,!0,{})}},t=>{"use strict";t.O(0,[999],(()=>(16794,t(t.s=16794)))),t.O()}]);