"}.bind(l)),lookup:T,fillAttr:z,values:d,requireLeadingSpace:D,searchOpts:K,menuItemLimit:G,menuShowMinLength:Q}];else{if(!P)throw new Error("[Tribute] No collection specified.");this.autocompleteMode&&console.warn("Tribute in autocomplete mode does not work for collections"),this.collection=P.map((function(t){return{trigger:t.trigger||x,iframe:t.iframe||m,selectClass:t.selectClass||h,containerClass:t.containerClass||v,itemClass:t.itemClass||b,selectTemplate:(t.selectTemplate||e.defaultSelectTemplate).bind(l),menuItemTemplate:(t.menuItemTemplate||e.defaultMenuItemTemplate).bind(l),noMatchTemplate:function(t){return"string"==typeof t?""===t.trim()?null:t:"function"==typeof t?t.bind(l):O||function(){return"
No Match Found!
"}.bind(l)}(O),lookup:t.lookup||T,fillAttr:t.fillAttr||z,values:t.values,requireLeadingSpace:t.requireLeadingSpace,searchOpts:t.searchOpts||K,menuItemLimit:t.menuItemLimit||G,menuShowMinLength:t.menuShowMinLength||Q}}))}new a(this),new s(this),new o(this),new r(this)}return n(e,[{key:"triggers",value:function(){return this.collection.map((function(t){return t.trigger}))}},{key:"attach",value:function(t){if(!t)throw new Error("[Tribute] Must pass in a DOM node or NodeList.");if("undefined"!=typeof jQuery&&t instanceof jQuery&&(t=t.get()),t.constructor===NodeList||t.constructor===HTMLCollection||t.constructor===Array)for(var e=t.length,n=0;n",post:n.current.collection.searchOpts.post||"",skip:n.current.collection.searchOpts.skip,extract:function(t){if("string"==typeof n.current.collection.lookup)return t[n.current.collection.lookup];if("function"==typeof n.current.collection.lookup)return n.current.collection.lookup(t,n.current.mentionText);throw new Error("Invalid lookup attribute, lookup must be string or function.")}});n.current.collection.menuItemLimit&&(i=i.slice(0,n.current.collection.menuItemLimit)),n.current.filteredItems=i;var s=n.menu.querySelector("ul");if(n.range.positionMenuAtCaret(e),!i.length){var o=new CustomEvent("tribute-no-match",{detail:n.menu});return n.current.element.dispatchEvent(o),void("function"==typeof n.current.collection.noMatchTemplate&&!n.current.collection.noMatchTemplate()||!n.current.collection.noMatchTemplate?n.hideMenu():"function"==typeof n.current.collection.noMatchTemplate?s.innerHTML=n.current.collection.noMatchTemplate():s.innerHTML=n.current.collection.noMatchTemplate)}s.innerHTML="";var a=n.range.getDocument().createDocumentFragment();i.forEach((function(t,e){var i=n.range.getDocument().createElement("li");i.setAttribute("data-index",e),i.className=n.current.collection.itemClass,i.addEventListener("mousemove",(function(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],i=!0,s=!1,o=void 0;try{for(var a,r=t[Symbol.iterator]();!(i=(a=r.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return n}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(n._findLiTarget(t.target),2),i=(e[0],e[1]);0!==t.movementY&&n.events.setActiveLi(i)})),n.menuSelected===e&&i.classList.add(n.current.collection.selectClass),i.innerHTML=n.current.collection.menuItemTemplate(t),a.appendChild(i)})),s.appendChild(a)}};"function"==typeof this.current.collection.values?this.current.collection.values(this.current.mentionText,i):i(this.current.collection.values)}}},{key:"_findLiTarget",value:function(t){if(!t)return[];var e=t.getAttribute("data-index");return e?[t,e]:this._findLiTarget(t.parentNode)}},{key:"showMenuForCollection",value:function(t,e){t!==document.activeElement&&this.placeCaretAtEnd(t),this.current.collection=this.collection[e||0],this.current.externalTrigger=!0,this.current.element=t,t.isContentEditable?this.insertTextAtCursor(this.current.collection.trigger):this.insertAtCaret(t,this.current.collection.trigger),this.showMenuFor(t)}},{key:"placeCaretAtEnd",value:function(t){if(t.focus(),void 0!==window.getSelection&&void 0!==document.createRange){var e=document.createRange();e.selectNodeContents(t),e.collapse(!1);var n=window.getSelection();n.removeAllRanges(),n.addRange(e)}else if(void 0!==document.body.createTextRange){var i=document.body.createTextRange();i.moveToElementText(t),i.collapse(!1),i.select()}}},{key:"insertTextAtCursor",value:function(t){var e,n;(n=(e=window.getSelection()).getRangeAt(0)).deleteContents();var i=document.createTextNode(t);n.insertNode(i),n.selectNodeContents(i),n.collapse(!1),e.removeAllRanges(),e.addRange(n)}},{key:"insertAtCaret",value:function(t,e){var n=t.scrollTop,i=t.selectionStart,s=t.value.substring(0,i),o=t.value.substring(t.selectionEnd,t.value.length);t.value=s+e+o,i+=e.length,t.selectionStart=i,t.selectionEnd=i,t.focus(),t.scrollTop=n}},{key:"hideMenu",value:function(){this.menu&&(this.menu.style.cssText="display: none;",this.isActive=!1,this.menuSelected=0,this.current={})}},{key:"selectItemAtIndex",value:function(t,e){if("number"==typeof(t=parseInt(t))&&!isNaN(t)){var n=this.current.filteredItems[t],i=this.current.collection.selectTemplate(n);null!==i&&this.replaceText(i,e,n)}}},{key:"replaceText",value:function(t,e,n){this.range.replaceTriggerText(t,!0,!0,e,n)}},{key:"_append",value:function(t,e,n){if("function"==typeof t.values)throw new Error("Unable to append to values, as it is a function.");t.values=n?e:t.values.concat(e)}},{key:"append",value:function(t,e,n){var i=parseInt(t);if("number"!=typeof i)throw new Error("please provide an index for the collection to update.");var s=this.collection[i];this._append(s,e,n)}},{key:"appendCurrent",value:function(t,e){if(!this.isActive)throw new Error("No active state. Please use append instead and pass an index.");this._append(this.current.collection,t,e)}},{key:"detach",value:function(t){if(!t)throw new Error("[Tribute] Must pass in a DOM node or NodeList.");if("undefined"!=typeof jQuery&&t instanceof jQuery&&(t=t.get()),t.constructor===NodeList||t.constructor===HTMLCollection||t.constructor===Array)for(var e=t.length,n=0;n'+(this.current.collection.trigger+t.original[this.current.collection.fillAttr])+"":this.current.collection.trigger+t.original[this.current.collection.fillAttr]}},{key:"defaultMenuItemTemplate",value:function(t){return t.string}},{key:"inputTypes",value:function(){return["TEXTAREA","INPUT"]}}]),e}()}()},"5CDs":function(t,e,n){"use strict";n("z6B+")},6:function(t,e,n){t.exports=n("KqaD")},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var s,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(s=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(s)+")")}))}},"9wGH":function(t,e,n){"use strict";n.r(e);var i={props:["status"]},s=n("KHd+"),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",[n("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,(function(t,e){return n("b-carousel-slide",{key:t.id+"-media"},[n("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[n("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):n("div",[n("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,(function(t,e){return n("b-carousel-slide",{key:t.id+"-media"},[n("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[n("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)}),[],!1,null,null,null);e.default=o.exports},ArTN:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-64a93274] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n.content-label-wrapper[data-v-64a93274] {\n\tposition: relative;\n}\n.content-label[data-v-64a93274] {\n\tmargin: 0;\n\tposition: absolute;\n\ttop:50%;\n\tleft:50%;\n\ttransform: translate(-50%, -50%);\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 2;\n\tbackground: rgba(0, 0, 0, 0.2)\n}\n",""])},BF29:function(t,e,n){var i=n("Oa72");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},BUee:function(t,e,n){var i=n("DAU9");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},DAU9:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#storyContainer .story {\n\tmargin-right: 2rem;\n\twidth: 100%;\n\tmax-width: 60px;\n}\n.stories.carousel .story > .item-link > .item-preview {\n\theight: 60px;\n}\n#zuck-modal.with-effects {\n\twidth: 100%;\n}\n.stories.carousel .story > .item-link > .info .name {\n\tfont-weight: 500;\n\tfont-size: 11px;\n}\n.stories.carousel .story > .item-link > .info {\n}\n",""])},DXlh:function(t,e,n){var i=n("L3xL");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},FAM0:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.emoji-reactions .nav-item[data-v-96c0cee2] {\n\tfont-size: 1.2rem;\n\tpadding: 9px;\n\tcursor: pointer;\n}\n.emoji-reactions[data-v-96c0cee2]::-webkit-scrollbar {\n\twidth: 0px;\n\theight: 0px;\n\tbackground: transparent;\n}\n",""])},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var s=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(o).concat([s]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},s=0;s1&&void 0!==arguments[1]?arguments[1]:60;return _.truncate(t,{length:e})},replyFocus:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0!=$("body").hasClass("loggedIn")){if(!this.status.comments_disabled){this.replyToIndex=e,this.replyingToId=t.id,this.replyingToUsername=t.account.username,this.reply_to_profile_id=t.account.id;var i=t.account.local?"@"+t.account.username+" ":"@"+t.account.acct+" ";1==n&&(this.replyText=i),this.$refs.replyModal.show(),setTimeout((function(){$(".replyModalTextarea").focus()}),500)}}else this.redirect("/login?next="+encodeURIComponent(window.location.pathname))},commentSubmit:function(t,e){var n=this;this.replySending=!0;var i=t.id,s=this.replyText,o=this.config.uploader.max_caption_length;if(s.length>o)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+o+" characters or less.","error");axios.post("/i/comment",{item:i,comment:s,sensitive:this.replyNsfw}).then((function(t){n.replyText="",n.replies.push(t.data.entity),n.$refs.replyModal.hide()})),this.replySending=!1},timeAgo:function(t){return App.util.format.timeAgo(t)},fetchComments:function(){var t=this;console.log("Fetching comments...");var e="/api/v2/comments/"+this.status.account.id+"/status/"+this.status.id;axios.get(e).then((function(e){t.replies=e.data.data,t.pagination=e.data.meta.pagination})).catch((function(t){if(t.response)switch(t.response.status){case 401:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");break;default:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}else $(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))},loadMoreComments:function(){var t=this;if(1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){$(".load-more-link").addClass("d-none"),$(".postCommentsLoader").removeClass("d-none");var e=this.pagination.links.next;axios.get(e).then((function(e){var n=e.data.data;$(".postCommentsLoader").addClass("d-none");for(var i=0;i0?n("div",{staticClass:"cursor-pointer pb-2",on:{click:function(n){return t.toggleReplies(e)}}},[n("span",{staticClass:"show-reply-bar"}),t._v(" "),n("span",{staticClass:"comment-reaction small font-weight-bold"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?n("div",{staticClass:"comment-thread"},t._l(e.replies,(function(e,s){return n("div",{key:"cr"+e.id+"_"+i,staticClass:"py-1 media"},[n("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"25px",height:"25px"}}),t._v(" "),n("div",{staticClass:"media-body"},[n("p",{staticClass:"d-flex justify-content-between align-items-top read-more mb-0",staticStyle:{"overflow-y":"hidden"}},[n("span",{staticClass:"mr-2",staticStyle:{"font-size":"13px"}},[n("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(e.account.username))]),t._v(" "),n("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),n("span",[n("span",{on:{click:function(n){return t.likeReply(e,n)}}},[n("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})])])]),t._v(" "),n("p",{staticClass:"mb-0"},[t._o(n("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:e.url},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),1,"cr"+e.id+"_"+i),t._v(" "),e.favourites_count?n("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e()])])])})),0):t._e()])])]):t._e()})),t._v(" "),t.replies.length?t._e():n("div",[n("p",{staticClass:"text-center text-muted font-weight-bold small"},[t._v("No comments yet")])])],2)]),t._v(" "),n("div",{staticClass:"card-footer mb-3"},[n("div",{staticClass:"align-middle d-flex"},[n("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"36",height:"36"}}),t._v(" "),n("textarea",{staticClass:"form-control rounded-pill",staticStyle:{resize:"none","overflow-y":"hidden"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off",rows:"1",maxlength:"0"},on:{click:function(e){return t.replyFocus(t.status)}}})])])])])])]),t._v(" "),n("context-menu",{ref:"cMenu",attrs:{status:t.ctxMenuStatus,profile:t.profile}}),t._v(" "),n("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.status.account?"Reply to "+t.status.account.username+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[n("div",[n("vue-tribute",{attrs:{options:t.tributeSettings}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control replyModalTextarea",attrs:{rows:"4"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"border-top border-bottom my-2"},[n("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return n("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",[n("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[n("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t")])]),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[n("div",{staticClass:"custom-control custom-switch mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.replyNsfw,expression:"replyNsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replyNsfw)?t._i(t.replyNsfw,null)>-1:t.replyNsfw},on:{change:function(e){var n=t.replyNsfw,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.replyNsfw=n.concat([null])):o>-1&&(t.replyNsfw=n.slice(0,o).concat(n.slice(o+1)))}else t.replyNsfw=s}}}),t._v(" "),n("label",{class:[t.replyNsfw?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),n("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.commentSubmit(t.status,e)}}},[t._v("\n\t\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t\t")])])])],1)])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",{staticClass:"font-weight-bold mb-0 h5"},[this._v("Comments")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("i",{staticClass:"fas fa-cog fa-lg text-white"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"postCommentsLoader text-center py-2"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}],!1,null,"96c0cee2",null).exports;function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n40&&(this.loading=!1,t.complete());var n=!1;switch(this.scope){case"home":n="/api/pixelfed/v1/timelines/home";break;case"local":n="/api/pixelfed/v1/timelines/public";break;case"network":n="/api/pixelfed/v1/timelines/network"}axios.get(n,{params:{max_id:this.max_id,limit:6,recent_feed:this.recentFeed}}).then((function(n){if(n.data.length&&0==e.loading){var i=n.data,s=e;if(s.recentFeed&&-1!=s.ids.indexOf(i[0].id))return e.loading=!1,void t.complete();i.forEach((function(t,e){-1==s.ids.indexOf(t.id)&&(s.feed.push(t),s.ids.push(t.id))})),e.min_id=Math.max.apply(Math,l(e.ids)).toString(),e.max_id=Math.min.apply(Math,l(e.ids)).toString(),e.page+=1,t.loaded(),e.loading=!1}else t.complete()})).catch((function(n){e.loading=!1,t.complete()}))}},redirect:function(t){window.location.href=t},expRec:function(){var t=this;0!=this.config.ab.rec&&axios.get("/api/local/exp/rec").then((function(e){t.suggestions=e.data}))},expRecFollow:function(t,e){},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},hideSuggestions:function(){localStorage.setItem("pf_metro_ui.exp.rec",!1),this.showSuggestions=!1},emojiReaction:function(t){var e=event.target.innerText;0==this.replyText.length?(this.replyText=e+" ",$('textarea[name="comment"]').focus()):(this.replyText+=e+" ",$('textarea[name="comment"]').focus())},refreshSuggestions:function(){},fetchHashtagPosts:function(){var t=this;axios.get("/api/local/discover/tag/list").then((function(e){var n=e.data;if(0!=n.length){var i=n[Math.floor(Math.random(),n.length)];t.hashtagPostsName=i,axios.get("/api/v2/discover/tag",{params:{hashtag:i}}).then((function(e){e.data.tags.length>3&&(t.showHashtagPosts=!0,t.hashtagPosts=e.data.tags.splice(0,9))}))}}))},commentFocus:function(t,e){t.comments_disabled||(this.status=t,this.replies={},this.replyStatus={},this.replyText="",this.replyId=t.id,this.replyStatus=t,this.fetchStatusComments(t,""),$("nav").hide(),$("footer").hide(),$(".mobile-footer-spacer").attr("style","display:none !important"),$(".mobile-footer").attr("style","display:none !important"),this.currentLayout="comments",window.history.pushState({},"",this.statusUrl(t)))},fetchStatusComments:function(t,e){var n=this,i="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(i).then((function(t){n.replies=_.reverse(t.data.data),n.pagination=t.data.meta.pagination,n.replies.length>0&&$(".load-more-link").removeClass("d-none"),$(".postCommentsLoader").addClass("d-none"),$(".postCommentsContainer").removeClass("d-none")})).catch((function(t){if(t.response)switch(t.response.status){case 401:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");break;default:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}else $(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},formatCount:function(t){return App.util.format.count(t)},hasStory:function(){var t=this;axios.get("/api/stories/v0/exists/"+this.profile.id).then((function(e){t.userStory=e.data}))},rtw:function(){var t=this;this.mpPoller=setInterval((function(){var e=!1;switch(t.mpCount++,t.mpCount>10&&(t.mpInterval=3e4),t.mpCount>50&&(t.mpInterval=3e5),t.scope){case"home":e="/api/pixelfed/v1/timelines/home";break;case"local":e="/api/pixelfed/v1/timelines/public";break;case"network":e="/api/pixelfed/v1/timelines/network"}axios.get(e,{params:{max_id:0,limit:20,recent_feed:t.recentFeed}}).then((function(e){var n=t,i=t.feed.map((function(t){return t.id})),s=e.data.filter((function(t){return t.id>n.min_id&&-1==i.indexOf(t.id)})),o=s.map((function(t){return t.id}));Math.max.apply(Math,l(o)).toString()>t.min_id&&(t.morePostsAvailable=!0,t.mpData=s)}))}),this.mpInterval)},syncNewPosts:function(){var t,e=this.mpData,n=e.map((function(t){return t.id}));this.min_id=Math.max.apply(Math,l(n)).toString(),this.max_id=Math.min.apply(Math,l(n)).toString(),(t=this.feed).unshift.apply(t,l(e)),this.morePostsAvailable=!1,this.mpData=null},toggleReplies:function(t){if(t.thread)t.thread=!1;else{if(t.replies.length>0)return void(t.thread=!0);var e="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(e).then((function(e){t.replies=_.reverse(e.data.data),t.thread=!0}))}},replyFocus:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0!=$("body").hasClass("loggedIn")){if(!this.status.comments_disabled){this.replyToIndex=e,this.replyingToId=t.id,this.replyingToUsername=t.account.username,this.reply_to_profile_id=t.account.id;var i=t.account.local?"@"+t.account.username+" ":"@"+t.account.acct+" ";1==n&&(this.replyText=i),this.$refs.replyModal.show(),setTimeout((function(){$(".replyModalTextarea").focus()}),500)}}else this.redirect("/login?next="+encodeURIComponent(window.location.pathname))},alwaysViewOlderPosts:function(){window.localStorage.setItem("pf.feed:avop","always"),window.location.href="/"},setCurrentLayout:function(t){this.currentLayout=t},deleteStatus:function(t){this.feed=this.feed.filter((function(e){return e.id!=t}))}},beforeDestroy:function(){clearInterval(this.mpInterval)}},u=(n("xZDn"),Object(a.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",["feed"===t.currentLayout?n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[1==t.morePostsAvailable?n("div",{staticClass:"col-12 mt-5 pt-3 mb-3 fixed-top"},[n("p",{staticClass:"text-center"},[n("button",{staticClass:"btn btn-dark px-4 rounded-pill font-weight-bold shadow",on:{click:t.syncNewPosts}},[t._v("Load New Posts")])])]):t._e(),t._v(" "),n("div",{staticClass:"col-md-8 col-lg-8 px-0 mb-sm-3 timeline order-2 order-md-1"},[n("div",{staticStyle:{"margin-top":"-2px"}},[t.config.features.stories?n("story-component"):t._e()],1),t._v(" "),n("div",[t.loading?n("div",{staticClass:"text-center",staticStyle:{"padding-top":"10px"}},[t._m(0)]):t._e(),t._v(" "),t._l(t.feed,(function(e,i){return n("div",{key:"feed-"+i+"-"+e.id,attrs:{"data-status-id":e.id}},[0==i&&t.showTips&&!t.loading?n("div",{staticClass:"my-4 card-tips"},[n("announcements-card",{on:{"show-tips":function(e){t.showTips=e}}})],1):t._e(),t._v(" "),2==i&&1==t.showSuggestions&&t.suggestions.length?n("div",{staticClass:"card status-card rounded-0 shadow-none border"},[n("div",{staticClass:"card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0"},[n("h6",{staticClass:"text-muted font-weight-bold mb-0"},[t._v("Suggestions For You")]),t._v(" "),n("span",{staticClass:"cursor-pointer text-muted",on:{click:t.hideSuggestions}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body row mx-0"},t._l(t.suggestions,(function(e,i){return n("div",{staticClass:"col-12 col-md-4 mb-3"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body text-center pt-3"},[n("p",{staticClass:"mb-0"},[n("a",{attrs:{href:"/"+e.username}},[n("img",{staticClass:"img-fluid rounded-circle cursor-pointer",attrs:{src:e.avatar,width:"45px",height:"45px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})])]),t._v(" "),n("div",{staticClass:"py-3"},[n("p",{staticClass:"font-weight-bold text-dark cursor-pointer mb-0"},[n("a",{staticClass:"text-decoration-none text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),n("p",{staticClass:"small text-muted mb-0"},[t._v(t._s(e.message))])]),t._v(" "),n("p",{staticClass:"mb-0"},[n("a",{staticClass:"btn btn-primary btn-block font-weight-bold py-0",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])])])])})),0)]):t._e(),t._v(" "),4==i&&t.showHashtagPosts&&t.hashtagPosts.length?n("div",{staticClass:"card status-card rounded-0 shadow-none border border-top-0"},[n("div",{staticClass:"card-header bg-white border-0 mb-0"},[n("div",{staticClass:"d-flex align-items-center justify-content-between pt-2"},[n("div"),t._v(" "),n("div",[n("h6",{staticClass:"text-muted lead font-weight-bold mb-0"},[n("a",{attrs:{href:"/discover/tags/"+t.hashtagPostsName+"?src=tr"}},[t._v("#"+t._s(t.hashtagPostsName))])])]),t._v(" "),n("div",{staticClass:"cursor-pointer text-muted",on:{click:function(e){t.showHashtagPosts=!1}}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),t._m(1,!0)]),t._v(" "),n("div",{staticClass:"card-body row mx-0"},t._l(t.hashtagPosts,(function(e,i){return n("div",{staticClass:"col-4 p-1 hashtag-post-square"},[n("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.status.url}},[n("div",{staticClass:"square"},[e.status.sensitive?n("div",{staticClass:"square-content"},[t._m(2,!0),t._v(" "),n("blur-hash-canvas",{attrs:{width:"32",height:"32",hash:e.status.media_attachments[0].blurhash}})],1):n("div",{staticClass:"square-content"},[n("blur-hash-image",{attrs:{width:"32",height:"32",hash:e.status.media_attachments[0].blurhash,src:e.status.media_attachments[0].preview_url,onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})],1)])])])})),0)]):t._e(),t._v(" "),n("status-card",{class:{"border-top":0===i},attrs:{status:e,"reaction-bar":t.reactionBar},on:{"status-delete":t.deleteStatus,"comment-focus":t.commentFocus}})],1)})),t._v(" "),!t.loading&&t.feed.length?n("div",[n("div",{staticClass:"card rounded-0 border-top-0 status-card rounded-0 shadow-none border"},[n("div",{staticClass:"card-body py-5 my-5"},[n("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteTimeline}},[n("div",{attrs:{slot:"no-more"},slot:"no-more"},[t.recentFeed?n("div",[n("p",{staticClass:"text-center"},[n("i",{staticClass:"far fa-check-circle fa-8x text-lighter"})]),t._v(" "),n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You're All Caught Up!")]),t._v(" "),n("p",{staticClass:"text-center text-muted font-weight-light"},[t._v("You've seen all the new posts from the accounts you follow.")]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/?a=vop"}},[t._v("View Older Posts")])]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/"},on:{click:function(e){return e.preventDefault(),t.alwaysViewOlderPosts()}}},[t._v("Always show older posts on this device")])])]):n("div",[n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You've reached the end of this feed")]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/discover"}},[t._v("Discover new posts and people")])])])]),t._v(" "),n("div",{attrs:{slot:"no-results"},slot:"no-results"},[t.recentFeed?n("div",[n("p",{staticClass:"text-center"},[n("i",{staticClass:"far fa-check-circle fa-8x text-lighter"})]),t._v(" "),n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You're All Caught Up!")]),t._v(" "),n("p",{staticClass:"text-center text-muted font-weight-light"},[t._v("You've seen all the new posts from the accounts you follow.")]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/?a=vop"}},[t._v("View Older Posts")])]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/"},on:{click:function(e){return e.preventDefault(),t.alwaysViewOlderPosts()}}},[t._v("Always show older posts on this device")])])]):n("div",[n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You've reached the end of this feed")]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/discover"}},[t._v("Discover new posts and people")])])])])])],1)])]):t._e(),t._v(" "),t.loading||"home"!=t.scope||0!=t.feed.length?t._e():n("div",[n("div",{staticClass:"card rounded-0 mt-4 status-card rounded-0 shadow-none border"},["0"!=t.profile.following_count?n("div",{staticClass:"card-body py-5 my-5"},[t._m(3),t._v(" "),n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You're All Caught Up!")]),t._v(" "),n("p",{staticClass:"text-center text-muted font-weight-light"},[t._v("You've seen all the new posts from the accounts you follow.")]),t._v(" "),t._m(4),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/"},on:{click:function(e){return e.preventDefault(),t.alwaysViewOlderPosts()}}},[t._v("Always show older posts on this device")])])]):n("div",{staticClass:"card-body py-5 my-5"},[t._m(5),t._v(" "),n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("Hello "+t._s(t.profile.username))]),t._v(" "),n("p",{staticClass:"text-center text-muted font-weight-light"},[t._v("Accounts you follow will appear in this feed.")]),t._v(" "),t._m(6)])])]),t._v(" "),!t.loading&&"home"==t.scope&&t.recentFeed&&t.discover_feed.length?n("div",{staticClass:"pt-3"},[t._m(7)]):t._e(),t._v(" "),t._l(t.discover_feed,(function(e,i){return!t.loading&&"home"==t.scope&&t.recentFeed&&t.discover_feed.length?n("div",{key:"discover_feed-"+i+"-"+e.id,attrs:{"data-status-id":e.id}},[n("status-card",{class:{"border-top":0===i},attrs:{status:e,recommended:!0}})],1):t._e()})),t._v(" "),!t.loading&&t.emptyFeed?n("div",[t._m(8)]):t._e()],2)]),t._v(" "),n("div",{staticClass:"col-md-4 col-lg-4 my-4 order-1 order-md-2 d-none d-md-block"},[n("div",[n("div",{staticClass:"mb-4"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}]},[n("div",{staticClass:"pb-2"},[n("div",{staticClass:"media d-flex align-items-center"},[n("a",{staticClass:"mr-3",attrs:{href:t.userStory?"/stories/"+t.profile.acct:t.profile.url}},[t.userStory?n("div",{staticClass:"has-story cursor-pointer shadow-sm",on:{click:function(e){return t.storyRedirect()}}},[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"64px",height:"64px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]):n("div",[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"64px",height:"64px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})])]),t._v(" "),n("div",{staticClass:"media-body d-flex justify-content-between word-break"},[n("div",[n("p",{staticClass:"mb-0 px-0 font-weight-bold"},[n("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[t._v(t._s(t.profile.username||"loading..."))])]),t._v(" "),n("p",{staticClass:"my-0 text-muted pb-0"},[t._v(t._s(t.profile.display_name||"loading..."))])]),t._v(" "),t._m(9)])])])]),t._v(" "),n("div",{staticClass:"card-footer bg-transparent border-0 pt-0 pb-1"},[n("div",{staticClass:"d-flex justify-content-between text-center"},[n("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.redirect(t.profile.url)}}},[n("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.statuses_count)))]),t._v(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v("Posts")])]),t._v(" "),n("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.redirect(t.profile.url+"?md=followers")}}},[n("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.followers_count)))]),t._v(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v("Followers")])]),t._v(" "),n("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.redirect(t.profile.url+"?md=following")}}},[n("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.following_count)))]),t._v(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v("Following")])])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.modes.notify&&!t.loading,expression:"modes.notify == true && !loading"}],staticClass:"mb-4"},[n("notification-card")],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.showSuggestions&&t.suggestions.length&&t.config.ab&&1==t.config.ab.rec,expression:"showSuggestions == true && suggestions.length && config.ab && config.ab.rec == true"}],staticClass:"mb-4"},[n("div",{staticClass:"card shadow-none border"},[n("div",{staticClass:"card-header bg-white d-flex align-items-center justify-content-between"},[n("a",{ref:"suggestionRefresh",staticClass:"small text-muted cursor-pointer",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.refreshSuggestions(e)}}},[n("i",{staticClass:"fas fa-sync-alt"})]),t._v(" "),n("div",{staticClass:"small text-dark text-uppercase font-weight-bold"},[t._v("Suggestions")]),t._v(" "),n("div",{staticClass:"small text-muted cursor-pointer",on:{click:t.hideSuggestions}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body pt-0"},t._l(t.suggestions,(function(e,i){return n("div",{staticClass:"media align-items-center mt-3"},[n("a",{attrs:{href:"/"+e.username}},[n("img",{staticClass:"rounded-circle mr-3",attrs:{src:e.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),n("div",{staticClass:"media-body"},[n("p",{staticClass:"mb-0 font-weight-bold small"},[n("a",{staticClass:"text-decoration-none text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v(t._s(e.message))])]),t._v(" "),n("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])})),0)])]),t._v(" "),t._m(10)])])])]):t._e(),t._v(" "),t.replyStatus&&t.replyStatus.hasOwnProperty("id")?n("comment-card",{attrs:{status:t.replyStatus,profile:t.profile},on:{"current-layout":t.setCurrentLayout}}):t._e(),t._v(" "),n("div",{staticClass:"modal-stack"},[n("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.replyStatus.account?"Reply to "+t.replyStatus.account.username+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[n("div",[n("vue-tribute",{attrs:{options:t.tributeSettings}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control replyModalTextarea",attrs:{rows:"4"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"border-top border-bottom my-2"},[n("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return n("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",[n("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[n("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t\t\t")])]),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[n("div",{staticClass:"custom-control custom-switch mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.replyNsfw,expression:"replyNsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replyNsfw)?t._i(t.replyNsfw,null)>-1:t.replyNsfw},on:{change:function(e){var n=t.replyNsfw,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.replyNsfw=n.concat([null])):o>-1&&(t.replyNsfw=n.slice(0,o).concat(n.slice(o+1)))}else t.replyNsfw=s}}}),t._v(" "),n("label",{class:[t.replyNsfw?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),n("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.commentSubmit(t.status,e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t\t\t\t")])])])],1)]),t._v(" "),n("b-modal",{ref:"ctxStatusModal",attrs:{id:"ctx-status-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"xl","body-class":"list-group-flush p-0 m-0 rounded"}})],1)],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"small text-muted text-center mb-0"},[this._v("You follow this hashtag. "),e("a",{attrs:{href:"/site/kb/hashtags"}},[this._v("Learn more")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"info-overlay-text-label"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-eye-slash fa-lg p-2 d-flex-inline"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-check-circle fa-8x text-lighter"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/?a=vop"}},[this._v("View Older Posts")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-smile fa-8x text-lighter"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/discover"}},[this._v("Discover new posts and people")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"h5 font-weight-bold py-3 d-flex justify-content-between align-items-center"},[e("span",[this._v("Suggested Posts")]),this._v(" "),e("a",{staticClass:"small font-weight-bold",attrs:{href:"/?a=vop"}},[this._v("Older Posts")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card rounded-0 mt-3 status-card rounded-0 shadow-none border"},[e("div",{staticClass:"card-body py-5 my-5"},[e("p",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-battery-empty fa-8x text-lighter"})]),this._v(" "),e("p",{staticClass:"text-center h3 font-weight-light"},[this._v("empty_timeline.jpg")]),this._v(" "),e("p",{staticClass:"text-center text-muted font-weight-light"},[this._v("We cannot find any posts for this timeline.")]),this._v(" "),e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/discover"}},[this._v("Discover new posts and people")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ml-2"},[e("a",{staticClass:"text-muted",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-cog fa-lg"}),this._v(" "),e("span",{staticClass:"sr-only"},[this._v("User Settings")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",[n("div",{staticClass:"container px-0 pb-5"},[n("p",{staticClass:"mb-2 small text-justify"},[n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/about"}},[t._v("About")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/help"}},[t._v("Help")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/language"}},[t._v("Language")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/discover/places"}},[t._v("Places")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/privacy"}},[t._v("Privacy")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/terms"}},[t._v("Terms")])]),t._v(" "),n("p",{staticClass:"mb-0 text-uppercase text-muted small"},[n("a",{staticClass:"text-lighter",attrs:{href:"http://pixelfed.org",rel:"noopener",title:"","data-toggle":"tooltip"}},[t._v("Powered by Pixelfed")])])])])}],!1,null,"e9e40304",null));e.default=u.exports},KqaD:function(t,e,n){Vue.component("notification-card",n("x6yo").default),Vue.component("photo-presenter",n("d+I4").default),Vue.component("video-presenter",n("2Jpm").default),Vue.component("photo-album-presenter",n("Mrqh").default),Vue.component("video-album-presenter",n("9wGH").default),Vue.component("mixed-album-presenter",n("exej").default),Vue.component("post-menu",n("yric").default),Vue.component("timeline",n("KhVi").default),Vue.component("announcements-card",n("hoKv").default),Vue.component("story-component",n("oDnJ").default)},L3xL:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.postPresenterContainer[data-v-e9e40304] {\n\tdisplay: flex;\n\talign-items: center;\n\tbackground: #fff;\n}\n.word-break[data-v-e9e40304] {\n\tword-break: break-all;\n}\n.small .custom-control-label[data-v-e9e40304] {\n\tpadding-top: 3px;\n}\n/*.reply-btn {\n\tposition: absolute;\n\tbottom: 30px;\n\tright: 20px;\n\twidth: 60px;\n\ttext-align: center;\n\tfont-size: 13px;\n\tborder-radius: 0 3px 3px 0;\n}*/\n.reply-btn[disabled][data-v-e9e40304] {\n\topacity: .3;\n\tcolor: #3897f0;\n}\n.replyModalTextarea[data-v-e9e40304] {\n\tborder: none;\n\tfont-size: 18px;\n\tresize: none;\n\twhite-space: pre-wrap;\n\toutline: none;\n}\n.has-story[data-v-e9e40304] {\n\twidth: 64px;\n\theight: 64px;\n\tborder-radius: 50%;\n\tpadding: 2px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story img[data-v-e9e40304] {\n\twidth: 60px;\n\theight: 60px;\n\tborder-radius: 50%;\n\tpadding: 3px;\n\tbackground: #fff;\n}\n.has-story.has-story-sm[data-v-e9e40304] {\n\twidth: 32px;\n\theight: 32px;\n\tborder-radius: 50%;\n\tpadding: 2px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story.has-story-sm img[data-v-e9e40304] {\n\twidth: 28px;\n\theight: 28px;\n\tborder-radius: 50%;\n\tpadding: 3px;\n\tbackground: #fff;\n}\n#ctx-reply-modal .form-control[data-v-e9e40304]:focus {\n\tborder: none;\n\toutline: 0;\n\tbox-shadow: none;\n}\n",""])},Mrqh:function(t,e,n){"use strict";n.r(e);var i={props:["status"],data:function(){return{sensitive:this.status.sensitive,cursor:0}},created:function(){},beforeDestroy:function(){},methods:{toggleContentWarning:function(t){this.$emit("togglecw")},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();e.advancePage("backward"),e.$emit("navigation-click","backward")}if("39"==t.keyCode){t.preventDefault();e.advancePage("forward"),e.$emit("navigation-click","forward")}}}},s=(n("5CDs"),n("KHd+")),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",{staticClass:"content-label-wrapper"},[n("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),n("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),n("p",{staticClass:"text-center py-2"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This album may contain sensitive content.")+"\n\t\t")]),t._v(" "),n("p",{staticClass:"mb-0"},[n("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),n("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):n("div",{staticClass:"w-100 h-100 p-0"},[n("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,(function(e,i){return n("slide",{key:"px-carousel-"+e.id+"-"+i,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[n("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}}),t._v(" "),!t.status.sensitive&&t.sensitive?n("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",top:"0",right:"0","border-top-left-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){t.status.sensitive=!0}}},[n("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?n("p",{staticStyle:{"margin-bottom":"0",padding:"0 5px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",bottom:"0",right:"0","border-top-left-radius":"5px",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"}},[n("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),n("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.account.url}},[t._v("@"+t._s(t.status.account.username))]),t._v(" licensed under "),n("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.media_attachments[0].license.url}},[t._v(t._s(t.status.media_attachments[0].license.title))])]):t._e()])})),1)],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}],!1,null,"64a93274",null);e.default=o.exports},N0po:function(t,e,n){var i=n("US+e");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},OGcs:function(t,e,n){var i=n("SmGz");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},Oa72:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#storyContainer > .story[data-v-42243767] {\n\tmargin-right: 3rem;\n}\n",""])},OizH:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.text-lighter[data-v-0ed43037] {\n\tcolor:#B8C2CC !important;\n}\n.modal-body[data-v-0ed43037] {\n\tpadding: 0;\n}\n",""])},PhXe:function(t,e,n){"use strict";n("XfSO")},SmGz:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.content-label-wrapper[data-v-4b79c47a] {\n\tposition: relative;\n}\n.content-label[data-v-4b79c47a] {\n\tmargin: 0;\n\tposition: absolute;\n\ttop:50%;\n\tleft:50%;\n\ttransform: translate(-50%, -50%);\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 2;\n\tbackground: rgba(0, 0, 0, 0.2)\n}\n",""])},TbRl:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-148afe5e] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n.content-label-wrapper[data-v-148afe5e] {\n\tposition: relative;\n}\n.content-label[data-v-148afe5e] {\n\tmargin: 0;\n\tposition: absolute;\n\ttop:50%;\n\tleft:50%;\n\ttransform: translate(-50%, -50%);\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 2;\n\tbackground: rgba(0, 0, 0, 0.2)\n}\n",""])},"US+e":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.fade-enter-active[data-v-267be4b0], .fade-leave-active[data-v-267be4b0] {\n transition: opacity .5s;\n}\n.fade-enter[data-v-267be4b0], .fade-leave-to[data-v-267be4b0] {\n opacity: 0;\n}\n",""])},"Wz+I":function(t,e,n){"use strict";n("dKYQ")},XWj2:function(t,e,n){"use strict";n("OGcs")},XfSO:function(t,e,n){var i=n("FAM0");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},"aET+":function(t,e,n){var i,s,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===s&&(s=i.apply(this,arguments)),s}),r=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=r.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),c=null,d=0,u=[],m=n("9tPo");function p(t,e){for(var n=0;n=0&&u.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return n.nc}();i&&(t.attrs.nonce=i)}return b(e,t.attrs),f(t,e),e}function b(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function w(t,e){var n,i,s,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=d++;n=c||(c=g(e)),i=_.bind(null,n,a,!1),s=_.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",b(e,t.attrs),f(t,e),e}(e),i=k.bind(null,n,e),s=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),i=C.bind(null,n),s=function(){v(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else s()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return p(n,e),function(t){for(var i=[],s=0;s=1&&(this.showPrev=!0))},loadPrev:function(){this.showPrev&&(this.cursor-=1,this.announcement=this.announcements[this.cursor],0==this.cursor&&(this.showPrev=!1),this.cursor1})).catch((function(t){swal("Oops, Something went wrong","There was a problem with your request, please try again later.","error")}))}}},s=(n("t+jv"),n("KHd+")),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("transition",{attrs:{name:"fade"}},[t.announcements.length?n("div",{staticClass:"card border shadow-none mb-3"},[n("div",{staticClass:"card-header text-muted bg-white"},[n("i",{staticClass:"fas fa-bullhorn mr-2"}),t._v(" "),n("span",{staticClass:"text-weight-light"},[t._v("ANNOUNCEMENTS")]),t._v(" "),n("span",{staticClass:"float-right cursor-pointer",attrs:{title:"Close"},on:{click:t.close}},[n("i",{staticClass:"fas fa-times text-lighter"})])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"card-title mb-0"},[n("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.announcement.title))])]),t._v(" "),n("p",{staticClass:"card-text"},[n("span",{staticStyle:{"font-size":"13px"}},[t._v(t._s(t.announcement.summary))])]),t._v(" "),n("p",{staticClass:"d-flex align-items-center justify-content-between mb-0"},[t.announcement.url?n("a",{staticClass:"small font-weight-bold mb-0",attrs:{href:t.announcement.url}},[t._v("Read more")]):n("span"),t._v(" "),n("span",[n("span",{class:[t.showPrev?"btn btn-outline-secondary btn-sm py-0":"btn btn-outline-secondary btn-sm py-0 disabled"],attrs:{disabled:0==t.showPrev},on:{click:function(e){return t.loadPrev()}}},[n("i",{staticClass:"fas fa-chevron-left fa-sm"})]),t._v(" "),n("span",{staticClass:"btn btn-outline-success btn-sm py-0 mx-1",attrs:{title:"Mark as Read","data-toggle":"tooltip","data-placement":"bottom"},on:{click:function(e){return t.markAsRead()}}},[n("i",{staticClass:"fas fa-check fa-sm"})]),t._v(" "),n("span",{class:[t.showNext?"btn btn-outline-secondary btn-sm py-0":"btn btn-outline-secondary btn-sm py-0 disabled"],attrs:{disabled:0==t.showNext},on:{click:function(e){return t.loadNext()}}},[n("i",{staticClass:"fas fa-chevron-right fa-sm"})])])])])]):t._e()])],1)}),[],!1,null,"267be4b0",null);e.default=o.exports},jXBh:function(t,e,n){"use strict";n("mrrf")},mrrf:function(t,e,n){var i=n("OizH");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},oDnJ:function(t,e,n){"use strict";n.r(e);n("ptJt"),n("JWYy");var i=n("wnQX"),s={props:["list"],data:function(){return{show:!1,stories:{}}},mounted:function(){this.fetchStories()},methods:{fetchStories:function(){var t=this;axios.get("/api/stories/v0/recent").then((function(e){var n=e.data;if(e.data.length){var s=new i("storyContainer",{list:1==t.list,stories:n,localStorage:!0,callbacks:{onOpen:function(t,e){document.body.style.overflow="hidden",e()},onEnd:function(t,e){axios.post("/i/stories/viewed",{id:t}),e()},onClose:function(t,e){document.body.style.overflow="auto",e()}}});n.forEach((function(t){var e="/api/stories/v0/fetch/"+t.pid;axios.get(e).then((function(e){e.data.forEach((function(e){(new Image).src=e.src,s.addItem(t.id,e)}))}))}))}else t.show=!1})),this.show=!0}}},o=(n("eMox"),n("cNm7"),n("KHd+")),a=Object(o.a)(s,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[this.show?e("div",{staticClass:"card card-body p-0 border mt-md-4 mb-md-3 shadow-none"},[e("div",{class:[1==this.list?"mt-1 mr-3 mb-0 ml-1":"mx-3 mt-3 mb-0 pb-0"],attrs:{id:"storyContainer"}})]):this._e()])}),[],!1,null,"42243767",null);e.default=a.exports},ptJt:function(t,e,n){var i=n("zm0X");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},"t+jv":function(t,e,n){"use strict";n("N0po")},u1Rn:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".stories.snapgram .story > .item-link {\n text-decoration: none;\n color: #333;\n}\n.stories.snapgram .story > .item-link > .item-preview {\n border-radius: 50%;\n padding: 2px;\n background: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.stories.snapgram .story > .item-link > .item-preview img {\n border-radius: 50%;\n border: 3px solid #fff;\n}\n\n.stories.snapgram .story.seen {\n opacity: 0.75;\n}\n.stories.snapgram .story.seen > a > .item-preview {\n background: #999;\n}\n.stories.snapgram .story.seen > a {\n color: #999 !important;\n}\n",""])},wnQX:function(t,e,n){t.exports=(n=>{const i=function(t){return document.querySelectorAll(t)[0]},s=function(t,e){return t&&t[e]||""},o=function(t,e){if(t){const n=t.length;for(let i=0;i{t[i]=n})},r=function(t,e,n){const i=[n.toLowerCase(),"webkit"+n,"MS"+n,"o"+n];o(i,(n,i)=>{t.addEventListener(i,e,!1)})},l=function(t,e){r(t,e,"AnimationEnd")},c=function(t,e){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},d=function(t,e){const d=this,u=function(t,n){const i=function(t){return void 0!==t};return n?i(e[t])&&i(e[t][n])?e[t][n]:g[t][n]:i(e[t])?e[t]:g[t]},m=function(t,e){const n="RequestFullScreen";try{e?(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen().catch(()=>{}):(document.mozCancelFullScreen||document.mozCancelFullScreen)&&document.mozCancelFullScreen().catch(()=>{})):t.requestFullScreen?t.requestFullScreen():t["ms"+n]?t["ms"+n]():t["moz"+n]?t["moz"+n]():t["webkit"+n]&&t["webkit"+n]()}catch(t){console.warn("[Zuck.js] Can't access fullscreen")}},p=function(t,e,n,s){const o=e>0?1:-1,r=Math.abs(e)/i("#zuck-modal").offsetWidth*90*o;if(u("cubeEffect")){const t=0===r?"scale(0.95)":"scale(0.930,0.930)";if(a(i("#zuck-modal-content").style,"Transform",t),r<-90||r>90)return!1}const l=u("cubeEffect")?`rotateY(${r}deg)`:`translate3d(${e}px, 0, 0)`;t&&(a(t.style,"TransitionTimingFunction",s),a(t.style,"TransitionDuration",n+"ms"),a(t.style,"Transform",l))},h=function(t,e,n,i){let s=0,o=0;if(t){if(t.offsetParent)do{if(s+=t.offsetLeft,o+=t.offsetTop,t===i)break}while(t=t.offsetParent);e&&(o-=e),n&&(s-=n)}return[s,o]};"string"==typeof t&&(t=document.getElementById(t)),t.id||t.setAttribute("id","stories-"+Math.random().toString(36).substr(2,9));const f=function(t){t=1e3*Number(t);const e=new Date(t),n=e.getTime();let i=((new Date).getTime()-n)/1e3;const s=u("language","time"),a=[[60," "+s.seconds,1],[120,"1 "+s.minute,""],[3600," "+s.minutes,60],[7200,"1 "+s.hour,""],[86400," "+s.hours,3600],[172800," "+s.yesterday,""],[604800," "+s.days,86400]];let r=1;i<0&&(i=Math.abs(i),r=2);let l=!1;if(o(a,(t,e)=>{i`\n