(()=>{var e,t,n,r,o,i,s,a={88797:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={about:{mrf:{federation:e=>{const{normalize:t}=e;return t(["Federation"])},keyword:{keyword_policies:e=>{const{normalize:t}=e;return t(["Keyword policies"])},ftl_removal:e=>{const{normalize:t}=e;return t(['Removal from "The Whole Known Network" Timeline'])},reject:e=>{const{normalize:t}=e;return t(["Reject"])},replace:e=>{const{normalize:t}=e;return t(["Replace"])},is_replaced_by:e=>{const{normalize:t}=e;return t(["→"])}},mrf_policies:e=>{const{normalize:t}=e;return t(["Enabled MRF policies"])},mrf_policies_desc:e=>{const{normalize:t}=e;return t(["MRF policies manipulate the federation behaviour of the instance. The following policies are enabled:"])},simple:{simple_policies:e=>{const{normalize:t}=e;return t(["Instance-specific policies"])},instance:e=>{const{normalize:t}=e;return t(["Instance"])},reason:e=>{const{normalize:t}=e;return t(["Reason"])},not_applicable:e=>{const{normalize:t}=e;return t(["N/A"])},accept:e=>{const{normalize:t}=e;return t(["Accept"])},accept_desc:e=>{const{normalize:t}=e;return t(["This instance only accepts messages from the following instances:"])},reject:e=>{const{normalize:t}=e;return t(["Reject"])},reject_desc:e=>{const{normalize:t}=e;return t(["This instance will not accept messages from the following instances:"])},quarantine:e=>{const{normalize:t}=e;return t(["Quarantine"])},quarantine_desc:e=>{const{normalize:t}=e;return t(["This instance will send only public posts to the following instances:"])},ftl_removal:e=>{const{normalize:t}=e;return t(['Removal from "Known Network" Timeline'])},ftl_removal_desc:e=>{const{normalize:t}=e;return t(['This instance removes these instances from "Known Network" timeline:'])},media_removal:e=>{const{normalize:t}=e;return t(["Media Removal"])},media_removal_desc:e=>{const{normalize:t}=e;return t(["This instance removes media from posts on the following instances:"])},media_nsfw:e=>{const{normalize:t}=e;return t(["Media force-set as sensitive"])},media_nsfw_desc:e=>{const{normalize:t}=e;return t(["This instance forces media to be set sensitive in posts on the following instances:"])}}},staff:e=>{const{normalize:t}=e;return t(["Staff"])}},announcements:{page_header:e=>{const{normalize:t}=e;return t(["Announcements"])},title:e=>{const{normalize:t}=e;return t(["Announcement"])},mark_as_read_action:e=>{const{normalize:t}=e;return t(["Mark as read"])},post_form_header:e=>{const{normalize:t}=e;return t(["Post announcement"])},post_placeholder:e=>{const{normalize:t}=e;return t(["Type your announcement content here..."])},post_action:e=>{const{normalize:t}=e;return t(["Post"])},post_error:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Error: ",n(r("error"))])},close_error:e=>{const{normalize:t}=e;return t(["Close"])},delete_action:e=>{const{normalize:t}=e;return t(["Delete"])},start_time_prompt:e=>{const{normalize:t}=e;return t(["Start time: "])},end_time_prompt:e=>{const{normalize:t}=e;return t(["End time: "])},all_day_prompt:e=>{const{normalize:t}=e;return t(["This is an all-day event"])},published_time_display:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Published at ",n(r("time"))])},start_time_display:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Starts at ",n(r("time"))])},end_time_display:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Ends at ",n(r("time"))])},edit_action:e=>{const{normalize:t}=e;return t(["Edit"])},submit_edit_action:e=>{const{normalize:t}=e;return t(["Submit"])},cancel_edit_action:e=>{const{normalize:t}=e;return t(["Cancel"])},inactive_message:e=>{const{normalize:t}=e;return t(["This announcement is inactive"])}},shoutbox:{title:e=>{const{normalize:t}=e;return t(["Shoutbox"])}},domain_mute_card:{mute:e=>{const{normalize:t}=e;return t(["Mute"])},mute_progress:e=>{const{normalize:t}=e;return t(["Muting…"])},unmute:e=>{const{normalize:t}=e;return t(["Unmute"])},unmute_progress:e=>{const{normalize:t}=e;return t(["Unmuting…"])}},exporter:{export:e=>{const{normalize:t}=e;return t(["Export"])},processing:e=>{const{normalize:t}=e;return t(["Processing, you'll soon be asked to download your file"])}},features_panel:{shout:e=>{const{normalize:t}=e;return t(["Shoutbox"])},pleroma_chat_messages:e=>{const{normalize:t}=e;return t(["Pleroma Chat"])},gopher:e=>{const{normalize:t}=e;return t(["Gopher"])},media_proxy:e=>{const{normalize:t}=e;return t(["Media proxy"])},scope_options:e=>{const{normalize:t}=e;return t(["Scope options"])},text_limit:e=>{const{normalize:t}=e;return t(["Text limit"])},title:e=>{const{normalize:t}=e;return t(["Features"])},who_to_follow:e=>{const{normalize:t}=e;return t(["Who to follow"])},upload_limit:e=>{const{normalize:t}=e;return t(["Upload limit"])}},finder:{error_fetching_user:e=>{const{normalize:t}=e;return t(["Error fetching user"])},find_user:e=>{const{normalize:t}=e;return t(["Find user"])}},general:{apply:e=>{const{normalize:t}=e;return t(["Apply"])},submit:e=>{const{normalize:t}=e;return t(["Submit"])},more:e=>{const{normalize:t}=e;return t(["More"])},loading:e=>{const{normalize:t}=e;return t(["Loading…"])},generic_error:e=>{const{normalize:t}=e;return t(["An error occured"])},generic_error_message:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["An error occured: ",n(r(0))])},error_retry:e=>{const{normalize:t}=e;return t(["Please try again"])},retry:e=>{const{normalize:t}=e;return t(["Try again"])},optional:e=>{const{normalize:t}=e;return t(["optional"])},show_more:e=>{const{normalize:t}=e;return t(["Show more"])},show_less:e=>{const{normalize:t}=e;return t(["Show less"])},never_show_again:e=>{const{normalize:t}=e;return t(["Never show again"])},dismiss:e=>{const{normalize:t}=e;return t(["Dismiss"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},disable:e=>{const{normalize:t}=e;return t(["Disable"])},enable:e=>{const{normalize:t}=e;return t(["Enable"])},confirm:e=>{const{normalize:t}=e;return t(["Confirm"])},verify:e=>{const{normalize:t}=e;return t(["Verify"])},close:e=>{const{normalize:t}=e;return t(["Close"])},undo:e=>{const{normalize:t}=e;return t(["Undo"])},yes:e=>{const{normalize:t}=e;return t(["Yes"])},no:e=>{const{normalize:t}=e;return t(["No"])},peek:e=>{const{normalize:t}=e;return t(["Peek"])},scroll_to_top:e=>{const{normalize:t}=e;return t(["Scroll to top"])},role:{admin:e=>{const{normalize:t}=e;return t(["Admin"])},moderator:e=>{const{normalize:t}=e;return t(["Moderator"])}},unpin:e=>{const{normalize:t}=e;return t(["Unpin item"])},pin:e=>{const{normalize:t}=e;return t(["Pin item"])},flash_content:e=>{const{normalize:t}=e;return t(["Click to show Flash content using Ruffle (Experimental, may not work)."])},flash_security:e=>{const{normalize:t}=e;return t(["Note that this can be potentially dangerous since Flash content is still arbitrary code."])},flash_fail:e=>{const{normalize:t}=e;return t(["Failed to load flash content, see console for details."])},scope_in_timeline:{direct:e=>{const{normalize:t}=e;return t(["Direct"])},private:e=>{const{normalize:t}=e;return t(["Followers-only"])},public:e=>{const{normalize:t}=e;return t(["Public"])},unlisted:e=>{const{normalize:t}=e;return t(["Unlisted"])}}},image_cropper:{crop_picture:e=>{const{normalize:t}=e;return t(["Crop picture"])},save:e=>{const{normalize:t}=e;return t(["Save"])},save_without_cropping:e=>{const{normalize:t}=e;return t(["Save without cropping"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])}},importer:{submit:e=>{const{normalize:t}=e;return t(["Submit"])},success:e=>{const{normalize:t}=e;return t(["Imported successfully."])},error:e=>{const{normalize:t}=e;return t(["An error occured while importing this file."])}},login:{login:e=>{const{normalize:t}=e;return t(["Log in"])},description:e=>{const{normalize:t}=e;return t(["Log in with OAuth"])},logout:e=>{const{normalize:t}=e;return t(["Log out"])},password:e=>{const{normalize:t}=e;return t(["Password"])},placeholder:e=>{const{normalize:t}=e;return t(["e.g. lain"])},register:e=>{const{normalize:t}=e;return t(["Register"])},username:e=>{const{normalize:t}=e;return t(["Username"])},hint:e=>{const{normalize:t}=e;return t(["Log in to join the discussion"])},authentication_code:e=>{const{normalize:t}=e;return t(["Authentication code"])},enter_recovery_code:e=>{const{normalize:t}=e;return t(["Enter a recovery code"])},enter_two_factor_code:e=>{const{normalize:t}=e;return t(["Enter a two-factor code"])},recovery_code:e=>{const{normalize:t}=e;return t(["Recovery code"])},heading:{totp:e=>{const{normalize:t}=e;return t(["Two-factor authentication"])},recovery:e=>{const{normalize:t}=e;return t(["Two-factor recovery"])}}},media_modal:{previous:e=>{const{normalize:t}=e;return t(["Previous"])},next:e=>{const{normalize:t}=e;return t(["Next"])},counter:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("current"))," / ",n(r("total"))])},hide:e=>{const{normalize:t}=e;return t(["Close media viewer"])}},nav:{about:e=>{const{normalize:t}=e;return t(["About"])},administration:e=>{const{normalize:t}=e;return t(["Administration"])},back:e=>{const{normalize:t}=e;return t(["Back"])},friend_requests:e=>{const{normalize:t}=e;return t(["Follow requests"])},mentions:e=>{const{normalize:t}=e;return t(["Mentions"])},interactions:e=>{const{normalize:t}=e;return t(["Interactions"])},dms:e=>{const{normalize:t}=e;return t(["Direct messages"])},public_tl:e=>{const{normalize:t}=e;return t(["Public timeline"])},timeline:e=>{const{normalize:t}=e;return t(["Timeline"])},home_timeline:e=>{const{normalize:t}=e;return t(["Home timeline"])},twkn:e=>{const{normalize:t}=e;return t(["Known Network"])},bookmarks:e=>{const{normalize:t}=e;return t(["Bookmarks"])},user_search:e=>{const{normalize:t}=e;return t(["User Search"])},search:e=>{const{normalize:t}=e;return t(["Search"])},who_to_follow:e=>{const{normalize:t}=e;return t(["Who to follow"])},preferences:e=>{const{normalize:t}=e;return t(["Preferences"])},timelines:e=>{const{normalize:t}=e;return t(["Timelines"])},chats:e=>{const{normalize:t}=e;return t(["Chats"])},lists:e=>{const{normalize:t}=e;return t(["Lists"])},edit_nav_mobile:e=>{const{normalize:t}=e;return t(["Customize navigation bar"])},edit_pinned:e=>{const{normalize:t}=e;return t(["Edit pinned items"])},edit_finish:e=>{const{normalize:t}=e;return t(["Done editing"])},mobile_sidebar:e=>{const{normalize:t}=e;return t(["Toggle mobile sidebar"])},mobile_notifications:e=>{const{normalize:t}=e;return t(["Open notifications"])},mobile_notifications:e=>{const{normalize:t}=e;return t(["Open notifications (there are unread ones)"])},mobile_notifications_close:e=>{const{normalize:t}=e;return t(["Close notifications"])},announcements:e=>{const{normalize:t}=e;return t(["Announcements"])}},notifications:{broken_favorite:e=>{const{normalize:t}=e;return t(["Unknown status, searching for it…"])},error:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Error fetching notifications: ",n(r(0))])},favorited_you:e=>{const{normalize:t}=e;return t(["favorited your status"])},followed_you:e=>{const{normalize:t}=e;return t(["followed you"])},follow_request:e=>{const{normalize:t}=e;return t(["wants to follow you"])},load_older:e=>{const{normalize:t}=e;return t(["Load older notifications"])},notifications:e=>{const{normalize:t}=e;return t(["Notifications"])},read:e=>{const{normalize:t}=e;return t(["Read!"])},repeated_you:e=>{const{normalize:t}=e;return t(["repeated your status"])},no_more_notifications:e=>{const{normalize:t}=e;return t(["No more notifications"])},migrated_to:e=>{const{normalize:t}=e;return t(["migrated to"])},reacted_with:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["reacted with ",n(r(0))])},submitted_report:e=>{const{normalize:t}=e;return t(["submitted a report"])},poll_ended:e=>{const{normalize:t}=e;return t(["poll has ended"])}},polls:{add_poll:e=>{const{normalize:t}=e;return t(["Add poll"])},add_option:e=>{const{normalize:t}=e;return t(["Add option"])},option:e=>{const{normalize:t}=e;return t(["Option"])},votes:e=>{const{normalize:t}=e;return t(["votes"])},people_voted_count:e=>{const{normalize:t,interpolate:n,named:r,plural:o}=e;return o([t([n(r("count"))," person voted"]),t([n(r("count"))," people voted"])])},votes_count:e=>{const{normalize:t,interpolate:n,named:r,plural:o}=e;return o([t([n(r("count"))," vote"]),t([n(r("count"))," votes"])])},vote:e=>{const{normalize:t}=e;return t(["Vote"])},type:e=>{const{normalize:t}=e;return t(["Poll type"])},single_choice:e=>{const{normalize:t}=e;return t(["Single choice"])},multiple_choices:e=>{const{normalize:t}=e;return t(["Multiple choices"])},expiry:e=>{const{normalize:t}=e;return t(["Poll age"])},expires_in:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Poll ends in ",n(r(0))])},expired:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Poll ended ",n(r(0))," ago"])},not_enough_options:e=>{const{normalize:t}=e;return t(["Too few unique options in poll"])}},emoji:{stickers:e=>{const{normalize:t}=e;return t(["Stickers"])},emoji:e=>{const{normalize:t}=e;return t(["Emoji"])},keep_open:e=>{const{normalize:t}=e;return t(["Keep picker open"])},search_emoji:e=>{const{normalize:t}=e;return t(["Search for an emoji"])},add_emoji:e=>{const{normalize:t}=e;return t(["Insert emoji"])},custom:e=>{const{normalize:t}=e;return t(["Custom emoji"])},unicode:e=>{const{normalize:t}=e;return t(["Unicode emoji"])},unicode_groups:{activities:e=>{const{normalize:t}=e;return t(["Activities"])},"animals-and-nature":e=>{const{normalize:t}=e;return t(["Animals & Nature"])},flags:e=>{const{normalize:t}=e;return t(["Flags"])},"food-and-drink":e=>{const{normalize:t}=e;return t(["Food & Drink"])},objects:e=>{const{normalize:t}=e;return t(["Objects"])},"people-and-body":e=>{const{normalize:t}=e;return t(["People & Body"])},"smileys-and-emotion":e=>{const{normalize:t}=e;return t(["Smileys & Emotion"])},symbols:e=>{const{normalize:t}=e;return t(["Symbols"])},"travel-and-places":e=>{const{normalize:t}=e;return t(["Travel & Places"])}},load_all_hint:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Loaded first ",n(r("saneAmount"))," emoji, loading all emoji may cause performance issues."])},load_all:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Loading all ",n(r("emojiAmount"))," emoji"])},regional_indicator:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Regional indicator ",n(r("letter"))])}},errors:{storage_unavailable:e=>{const{normalize:t}=e;return t(["Pleroma could not access browser storage. Your login or your local settings won't be saved and you might encounter unexpected issues. Try enabling cookies."])}},interactions:{favs_repeats:e=>{const{normalize:t}=e;return t(["Repeats and favorites"])},follows:e=>{const{normalize:t}=e;return t(["New follows"])},emoji_reactions:e=>{const{normalize:t}=e;return t(["Emoji Reactions"])},reports:e=>{const{normalize:t}=e;return t(["Reports"])},moves:e=>{const{normalize:t}=e;return t(["User migrates"])},load_older:e=>{const{normalize:t}=e;return t(["Load older interactions"])}},post_status:{edit_status:e=>{const{normalize:t}=e;return t(["Edit status"])},new_status:e=>{const{normalize:t}=e;return t(["Post new status"])},account_not_locked_warning:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Your account is not ",n(r(0)),". Anyone can follow you to view your follower-only posts."])},account_not_locked_warning_link:e=>{const{normalize:t}=e;return t(["locked"])},attachments_sensitive:e=>{const{normalize:t}=e;return t(["Mark attachments as sensitive"])},media_description:e=>{const{normalize:t}=e;return t(["Media description"])},content_type:{"text/plain":e=>{const{normalize:t}=e;return t(["Plain text"])},"text/html":e=>{const{normalize:t}=e;return t(["HTML"])},"text/markdown":e=>{const{normalize:t}=e;return t(["Markdown"])},"text/bbcode":e=>{const{normalize:t}=e;return t(["BBCode"])}},content_warning:e=>{const{normalize:t}=e;return t(["Subject (optional)"])},default:e=>{const{normalize:t}=e;return t(["Just landed in L.A."])},direct_warning_to_all:e=>{const{normalize:t}=e;return t(["This post will be visible to all the mentioned users."])},direct_warning_to_first_only:e=>{const{normalize:t}=e;return t(["This post will only be visible to the mentioned users at the beginning of the message."])},edit_remote_warning:e=>{const{normalize:t}=e;return t(["Other remote instances may not support editing and unable to receive the latest version of your post."])},edit_unsupported_warning:e=>{const{normalize:t}=e;return t(["Pleroma does not support editing mentions or polls."])},posting:e=>{const{normalize:t}=e;return t(["Posting"])},post:e=>{const{normalize:t}=e;return t(["Post"])},preview:e=>{const{normalize:t}=e;return t(["Preview"])},preview_empty:e=>{const{normalize:t}=e;return t(["Empty"])},empty_status_error:e=>{const{normalize:t}=e;return t(["Can't post an empty status with no files"])},media_description_error:e=>{const{normalize:t}=e;return t(["Failed to update media, try again"])},scope_notice:{public:e=>{const{normalize:t}=e;return t(["This post will be visible to everyone"])},private:e=>{const{normalize:t}=e;return t(["This post will be visible to your followers only"])},unlisted:e=>{const{normalize:t}=e;return t(["This post will not be visible in Public Timeline and The Whole Known Network"])}},scope:{direct:e=>{const{normalize:t}=e;return t(["Direct - post to mentioned users only"])},private:e=>{const{normalize:t}=e;return t(["Followers-only - post to followers only"])},public:e=>{const{normalize:t}=e;return t(["Public - post to public timelines"])},unlisted:e=>{const{normalize:t}=e;return t(["Unlisted - do not post to public timelines"])}}},registration:{bio_optional:e=>{const{normalize:t}=e;return t(["Bio (optional)"])},email:e=>{const{normalize:t}=e;return t(["Email"])},email_optional:e=>{const{normalize:t}=e;return t(["Email (optional)"])},fullname:e=>{const{normalize:t}=e;return t(["Display name"])},password_confirm:e=>{const{normalize:t}=e;return t(["Password confirmation"])},registration:e=>{const{normalize:t}=e;return t(["Registration"])},token:e=>{const{normalize:t}=e;return t(["Invite token"])},captcha:e=>{const{normalize:t}=e;return t(["CAPTCHA"])},new_captcha:e=>{const{normalize:t}=e;return t(["Click the image to get a new captcha"])},username_placeholder:e=>{const{normalize:t}=e;return t(["e.g. lain"])},fullname_placeholder:e=>{const{normalize:t}=e;return t(["e.g. Lain Iwakura"])},bio_placeholder:e=>{const{normalize:t}=e;return t(["e.g.\nHi, I'm Lain.\nI’m an anime girl living in suburban Japan. You may know me from the Wired."])},reason:e=>{const{normalize:t}=e;return t(["Reason to register"])},reason_placeholder:e=>{const{normalize:t}=e;return t(["This instance approves registrations manually.\nLet the administration know why you want to register."])},register:e=>{const{normalize:t}=e;return t(["Register"])},validations:{username_required:e=>{const{normalize:t}=e;return t(["cannot be left blank"])},fullname_required:e=>{const{normalize:t}=e;return t(["cannot be left blank"])},email_required:e=>{const{normalize:t}=e;return t(["cannot be left blank"])},password_required:e=>{const{normalize:t}=e;return t(["cannot be left blank"])},password_confirmation_required:e=>{const{normalize:t}=e;return t(["cannot be left blank"])},password_confirmation_match:e=>{const{normalize:t}=e;return t(["should be the same as password"])}},email_language:e=>{const{normalize:t}=e;return t(["In which language do you want to receive emails from the server?"])}},remote_user_resolver:{remote_user_resolver:e=>{const{normalize:t}=e;return t(["Remote user resolver"])},searching_for:e=>{const{normalize:t}=e;return t(["Searching for"])},error:e=>{const{normalize:t}=e;return t(["Not found."])}},report:{reporter:e=>{const{normalize:t}=e;return t(["Reporter:"])},reported_user:e=>{const{normalize:t}=e;return t(["Reported user:"])},reported_statuses:e=>{const{normalize:t}=e;return t(["Reported statuses:"])},notes:e=>{const{normalize:t}=e;return t(["Notes:"])},state:e=>{const{normalize:t}=e;return t(["State:"])},state_open:e=>{const{normalize:t}=e;return t(["Open"])},state_closed:e=>{const{normalize:t}=e;return t(["Closed"])},state_resolved:e=>{const{normalize:t}=e;return t(["Resolved"])}},selectable_list:{select_all:e=>{const{normalize:t}=e;return t(["Select all"])}},settings:{app_name:e=>{const{normalize:t}=e;return t(["App name"])},expert_mode:e=>{const{normalize:t}=e;return t(["Show advanced"])},save:e=>{const{normalize:t}=e;return t(["Save changes"])},security:e=>{const{normalize:t}=e;return t(["Security"])},setting_changed:e=>{const{normalize:t}=e;return t(["Setting is different from default"])},setting_server_side:e=>{const{normalize:t}=e;return t(["This setting is tied to your profile and affects all sessions and clients"])},enter_current_password_to_confirm:e=>{const{normalize:t}=e;return t(["Enter your current password to confirm your identity"])},post_look_feel:e=>{const{normalize:t}=e;return t(["Posts Look & Feel"])},mention_links:e=>{const{normalize:t}=e;return t(["Mention links"])},mfa:{otp:e=>{const{normalize:t}=e;return t(["OTP"])},setup_otp:e=>{const{normalize:t}=e;return t(["Setup OTP"])},wait_pre_setup_otp:e=>{const{normalize:t}=e;return t(["presetting OTP"])},confirm_and_enable:e=>{const{normalize:t}=e;return t(["Confirm & enable OTP"])},title:e=>{const{normalize:t}=e;return t(["Two-factor Authentication"])},generate_new_recovery_codes:e=>{const{normalize:t}=e;return t(["Generate new recovery codes"])},warning_of_generate_new_codes:e=>{const{normalize:t}=e;return t(["When you generate new recovery codes, your old codes won’t work anymore."])},recovery_codes:e=>{const{normalize:t}=e;return t(["Recovery codes."])},waiting_a_recovery_codes:e=>{const{normalize:t}=e;return t(["Receiving backup codes…"])},recovery_codes_warning:e=>{const{normalize:t}=e;return t(["Write the codes down or save them somewhere secure - otherwise you won't see them again. If you lose access to your 2FA app and recovery codes you'll be locked out of your account."])},authentication_methods:e=>{const{normalize:t}=e;return t(["Authentication methods"])},scan:{title:e=>{const{normalize:t}=e;return t(["Scan"])},desc:e=>{const{normalize:t}=e;return t(["Using your two-factor app, scan this QR code or enter text key:"])},secret_code:e=>{const{normalize:t}=e;return t(["Key"])}},verify:{desc:e=>{const{normalize:t}=e;return t(["To enable two-factor authentication, enter the code from your two-factor app:"])}}},lists_navigation:e=>{const{normalize:t}=e;return t(["Show lists in navigation"])},allow_following_move:e=>{const{normalize:t}=e;return t(["Allow auto-follow when following account moves"])},attachmentRadius:e=>{const{normalize:t}=e;return t(["Attachments"])},attachments:e=>{const{normalize:t}=e;return t(["Attachments"])},avatar:e=>{const{normalize:t}=e;return t(["Avatar"])},avatarAltRadius:e=>{const{normalize:t}=e;return t(["Avatars (notifications)"])},avatarRadius:e=>{const{normalize:t}=e;return t(["Avatars"])},background:e=>{const{normalize:t}=e;return t(["Background"])},bio:e=>{const{normalize:t}=e;return t(["Bio"])},email_language:e=>{const{normalize:t}=e;return t(["Language for receiving emails from the server"])},block_export:e=>{const{normalize:t}=e;return t(["Block export"])},block_export_button:e=>{const{normalize:t}=e;return t(["Export your blocks to a csv file"])},block_import:e=>{const{normalize:t}=e;return t(["Block import"])},block_import_error:e=>{const{normalize:t}=e;return t(["Error importing blocks"])},blocks_imported:e=>{const{normalize:t}=e;return t(["Blocks imported! Processing them will take a while."])},mute_export:e=>{const{normalize:t}=e;return t(["Mute export"])},mute_export_button:e=>{const{normalize:t}=e;return t(["Export your mutes to a csv file"])},mute_import:e=>{const{normalize:t}=e;return t(["Mute import"])},mute_import_error:e=>{const{normalize:t}=e;return t(["Error importing mutes"])},mutes_imported:e=>{const{normalize:t}=e;return t(["Mutes imported! Processing them will take a while."])},import_mutes_from_a_csv_file:e=>{const{normalize:t}=e;return t(["Import mutes from a csv file"])},account_backup:e=>{const{normalize:t}=e;return t(["Account backup"])},account_backup_description:e=>{const{normalize:t}=e;return t(["This allows you to download an archive of your account information and your posts, but they cannot yet be imported into a Pleroma account."])},account_backup_table_head:e=>{const{normalize:t}=e;return t(["Backup"])},download_backup:e=>{const{normalize:t}=e;return t(["Download"])},backup_not_ready:e=>{const{normalize:t}=e;return t(["This backup is not ready yet."])},remove_backup:e=>{const{normalize:t}=e;return t(["Remove"])},list_backups_error:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Error fetching backup list: ",n(r("error"))])},add_backup:e=>{const{normalize:t}=e;return t(["Create a new backup"])},added_backup:e=>{const{normalize:t}=e;return t(["Added a new backup."])},add_backup_error:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Error adding a new backup: ",n(r("error"))])},blocks_tab:e=>{const{normalize:t}=e;return t(["Blocks"])},bot:e=>{const{normalize:t}=e;return t(["This is a bot account"])},btnRadius:e=>{const{normalize:t}=e;return t(["Buttons"])},cBlue:e=>{const{normalize:t}=e;return t(["Blue (Reply, follow)"])},cGreen:e=>{const{normalize:t}=e;return t(["Green (Retweet)"])},cOrange:e=>{const{normalize:t}=e;return t(["Orange (Favorite)"])},cRed:e=>{const{normalize:t}=e;return t(["Red (Cancel)"])},change_email:e=>{const{normalize:t}=e;return t(["Change email"])},change_email_error:e=>{const{normalize:t}=e;return t(["There was an issue changing your email."])},changed_email:e=>{const{normalize:t}=e;return t(["Email changed successfully!"])},change_password:e=>{const{normalize:t}=e;return t(["Change password"])},change_password_error:e=>{const{normalize:t}=e;return t(["There was an issue changing your password."])},changed_password:e=>{const{normalize:t}=e;return t(["Password changed successfully!"])},chatMessageRadius:e=>{const{normalize:t}=e;return t(["Chat message"])},collapse_subject:e=>{const{normalize:t}=e;return t(["Collapse posts with subjects"])},composing:e=>{const{normalize:t}=e;return t(["Composing"])},confirm_new_password:e=>{const{normalize:t}=e;return t(["Confirm new password"])},current_password:e=>{const{normalize:t}=e;return t(["Current password"])},mutes_and_blocks:e=>{const{normalize:t}=e;return t(["Mutes and Blocks"])},data_import_export_tab:e=>{const{normalize:t}=e;return t(["Data import / export"])},default_vis:e=>{const{normalize:t}=e;return t(["Default visibility scope"])},delete_account:e=>{const{normalize:t}=e;return t(["Delete account"])},delete_account_description:e=>{const{normalize:t}=e;return t(["Permanently delete your data and deactivate your account."])},delete_account_error:e=>{const{normalize:t}=e;return t(["There was an issue deleting your account. If this persists please contact your instance administrator."])},delete_account_instructions:e=>{const{normalize:t}=e;return t(["Type your password in the input below to confirm account deletion."])},account_alias:e=>{const{normalize:t}=e;return t(["Account aliases"])},account_alias_table_head:e=>{const{normalize:t}=e;return t(["Alias"])},list_aliases_error:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Error fetching aliases: ",n(r("error"))])},hide_list_aliases_error_action:e=>{const{normalize:t}=e;return t(["Close"])},remove_alias:e=>{const{normalize:t}=e;return t(["Remove this alias"])},new_alias_target:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Add a new alias (e.g. ",n(r("example")),")"])},added_alias:e=>{const{normalize:t}=e;return t(["Alias is added."])},add_alias_error:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Error adding alias: ",n(r("error"))])},move_account:e=>{const{normalize:t}=e;return t(["Move account"])},move_account_notes:e=>{const{normalize:t}=e;return t(["If you want to move the account somewhere else, you must go to your target account and add an alias pointing here."])},move_account_target:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Target account (e.g. ",n(r("example")),")"])},moved_account:e=>{const{normalize:t}=e;return t(["Account is moved."])},move_account_error:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Error moving account: ",n(r("error"))])},discoverable:e=>{const{normalize:t}=e;return t(["Allow discovery of this account in search results and other services"])},domain_mutes:e=>{const{normalize:t}=e;return t(["Domains"])},avatar_size_instruction:e=>{const{normalize:t}=e;return t(["The recommended minimum size for avatar images is 150x150 pixels."])},pad_emoji:e=>{const{normalize:t}=e;return t(["Pad emoji with spaces when adding from picker"])},emoji_reactions_on_timeline:e=>{const{normalize:t}=e;return t(["Show emoji reactions on timeline"])},export_theme:e=>{const{normalize:t}=e;return t(["Save preset"])},filtering:e=>{const{normalize:t}=e;return t(["Filtering"])},wordfilter:e=>{const{normalize:t}=e;return t(["Wordfilter"])},filtering_explanation:e=>{const{normalize:t}=e;return t(["All statuses containing these words will be muted, one per line"])},word_filter_and_more:e=>{const{normalize:t}=e;return t(["Word filter and more..."])},follow_export:e=>{const{normalize:t}=e;return t(["Follow export"])},follow_export_button:e=>{const{normalize:t}=e;return t(["Export your follows to a csv file"])},follow_import:e=>{const{normalize:t}=e;return t(["Follow import"])},follow_import_error:e=>{const{normalize:t}=e;return t(["Error importing followers"])},follows_imported:e=>{const{normalize:t}=e;return t(["Follows imported! Processing them will take a while."])},accent:e=>{const{normalize:t}=e;return t(["Accent"])},foreground:e=>{const{normalize:t}=e;return t(["Foreground"])},general:e=>{const{normalize:t}=e;return t(["General"])},hide_attachments_in_convo:e=>{const{normalize:t}=e;return t(["Hide attachments in conversations"])},hide_attachments_in_tl:e=>{const{normalize:t}=e;return t(["Hide attachments in timeline"])},hide_media_previews:e=>{const{normalize:t}=e;return t(["Hide media previews"])},hide_muted_posts:e=>{const{normalize:t}=e;return t(["Hide posts of muted users"])},mute_bot_posts:e=>{const{normalize:t}=e;return t(["Mute bot posts"])},hide_bot_indication:e=>{const{normalize:t}=e;return t(["Hide bot indication in posts"])},hide_all_muted_posts:e=>{const{normalize:t}=e;return t(["Hide muted posts"])},max_thumbnails:e=>{const{normalize:t}=e;return t(["Maximum amount of thumbnails per post (empty = no limit)"])},hide_isp:e=>{const{normalize:t}=e;return t(["Hide instance-specific panel"])},hide_shoutbox:e=>{const{normalize:t}=e;return t(["Hide instance shoutbox"])},right_sidebar:e=>{const{normalize:t}=e;return t(["Reverse order of columns"])},navbar_column_stretch:e=>{const{normalize:t}=e;return t(["Stretch navbar to columns width"])},always_show_post_button:e=>{const{normalize:t}=e;return t(["Always show floating New Post button"])},hide_wallpaper:e=>{const{normalize:t}=e;return t(["Hide instance wallpaper"])},preload_images:e=>{const{normalize:t}=e;return t(["Preload images"])},use_one_click_nsfw:e=>{const{normalize:t}=e;return t(["Open NSFW attachments with just one click"])},hide_post_stats:e=>{const{normalize:t}=e;return t(["Hide post statistics (e.g. the number of favorites)"])},hide_user_stats:e=>{const{normalize:t}=e;return t(["Hide user statistics (e.g. the number of followers)"])},hide_filtered_statuses:e=>{const{normalize:t}=e;return t(["Hide all filtered posts"])},hide_wordfiltered_statuses:e=>{const{normalize:t}=e;return t(["Hide word-filtered statuses"])},hide_muted_threads:e=>{const{normalize:t}=e;return t(["Hide muted threads"])},import_blocks_from_a_csv_file:e=>{const{normalize:t}=e;return t(["Import blocks from a csv file"])},import_followers_from_a_csv_file:e=>{const{normalize:t}=e;return t(["Import follows from a csv file"])},import_theme:e=>{const{normalize:t}=e;return t(["Load preset"])},inputRadius:e=>{const{normalize:t}=e;return t(["Input fields"])},checkboxRadius:e=>{const{normalize:t}=e;return t(["Checkboxes"])},instance_default:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["(default: ",n(r("value")),")"])},instance_default_simple:e=>{const{normalize:t}=e;return t(["(default)"])},interface:e=>{const{normalize:t}=e;return t(["Interface"])},interfaceLanguage:e=>{const{normalize:t}=e;return t(["Interface language"])},invalid_theme_imported:e=>{const{normalize:t}=e;return t(["The selected file is not a supported Pleroma theme. No changes to your theme were made."])},limited_availability:e=>{const{normalize:t}=e;return t(["Unavailable in your browser"])},links:e=>{const{normalize:t}=e;return t(["Links"])},lock_account_description:e=>{const{normalize:t}=e;return t(["Restrict your account to approved followers only"])},loop_video:e=>{const{normalize:t}=e;return t(["Loop videos"])},loop_video_silent_only:e=>{const{normalize:t}=e;return t(['Loop only videos without sound (i.e. Mastodon\'s "gifs")'])},mutes_tab:e=>{const{normalize:t}=e;return t(["Mutes"])},play_videos_in_modal:e=>{const{normalize:t}=e;return t(["Play videos in a popup frame"])},file_export_import:{backup_restore:e=>{const{normalize:t}=e;return t(["Settings backup"])},backup_settings:e=>{const{normalize:t}=e;return t(["Backup settings to file"])},backup_settings_theme:e=>{const{normalize:t}=e;return t(["Backup settings and theme to file"])},restore_settings:e=>{const{normalize:t}=e;return t(["Restore settings from file"])},errors:{invalid_file:e=>{const{normalize:t}=e;return t(["The selected file is not a supported Pleroma settings backup. No changes were made."])},file_too_new:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Incompatile major version: ",n(r("fileMajor")),", this PleromaFE (settings ver ",n(r("feMajor")),") is too old to handle it"])},file_too_old:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Incompatile major version: ",n(r("fileMajor")),", file version is too old and not supported (min. set. ver. ",n(r("feMajor")),")"])},file_slightly_new:e=>{const{normalize:t}=e;return t(["File minor version is different, some settings might not load"])}}},profile_fields:{label:e=>{const{normalize:t}=e;return t(["Profile metadata"])},add_field:e=>{const{normalize:t}=e;return t(["Add field"])},name:e=>{const{normalize:t}=e;return t(["Label"])},value:e=>{const{normalize:t}=e;return t(["Content"])}},account_privacy:e=>{const{normalize:t}=e;return t(["Privacy"])},use_contain_fit:e=>{const{normalize:t}=e;return t(["Don't crop the attachment in thumbnails"])},name:e=>{const{normalize:t}=e;return t(["Name"])},name_bio:e=>{const{normalize:t}=e;return t(["Name & bio"])},new_email:e=>{const{normalize:t}=e;return t(["New email"])},new_password:e=>{const{normalize:t}=e;return t(["New password"])},posts:e=>{const{normalize:t}=e;return t(["Posts"])},user_profiles:e=>{const{normalize:t}=e;return t(["User Profiles"])},notification_visibility:e=>{const{normalize:t}=e;return t(["Types of notifications to show"])},notification_visibility_follows:e=>{const{normalize:t}=e;return t(["Follows"])},notification_visibility_likes:e=>{const{normalize:t}=e;return t(["Favorites"])},notification_visibility_mentions:e=>{const{normalize:t}=e;return t(["Mentions"])},notification_visibility_repeats:e=>{const{normalize:t}=e;return t(["Repeats"])},notification_visibility_moves:e=>{const{normalize:t}=e;return t(["User Migrates"])},notification_visibility_emoji_reactions:e=>{const{normalize:t}=e;return t(["Reactions"])},notification_visibility_polls:e=>{const{normalize:t}=e;return t(["Ends of polls you voted in"])},no_rich_text_description:e=>{const{normalize:t}=e;return t(["Strip rich text formatting from all posts"])},no_blocks:e=>{const{normalize:t}=e;return t(["No blocks"])},no_mutes:e=>{const{normalize:t}=e;return t(["No mutes"])},hide_favorites_description:e=>{const{normalize:t}=e;return t(["Don't show list of my favorites (people still get notified)"])},hide_follows_description:e=>{const{normalize:t}=e;return t(["Don't show who I'm following"])},hide_followers_description:e=>{const{normalize:t}=e;return t(["Don't show who's following me"])},hide_follows_count_description:e=>{const{normalize:t}=e;return t(["Don't show follow count"])},hide_followers_count_description:e=>{const{normalize:t}=e;return t(["Don't show follower count"])},show_admin_badge:e=>{const{normalize:t}=e;return t(['Show "Admin" badge in my profile'])},show_moderator_badge:e=>{const{normalize:t}=e;return t(['Show "Moderator" badge in my profile'])},nsfw_clickthrough:e=>{const{normalize:t}=e;return t(["Hide sensitive/NSFW media"])},oauth_tokens:e=>{const{normalize:t}=e;return t(["OAuth tokens"])},token:e=>{const{normalize:t}=e;return t(["Token"])},refresh_token:e=>{const{normalize:t}=e;return t(["Refresh token"])},valid_until:e=>{const{normalize:t}=e;return t(["Valid until"])},revoke_token:e=>{const{normalize:t}=e;return t(["Revoke"])},panelRadius:e=>{const{normalize:t}=e;return t(["Panels"])},pause_on_unfocused:e=>{const{normalize:t}=e;return t(["Pause when tab is not focused"])},presets:e=>{const{normalize:t}=e;return t(["Presets"])},profile_background:e=>{const{normalize:t}=e;return t(["Profile background"])},profile_banner:e=>{const{normalize:t}=e;return t(["Profile banner"])},profile_tab:e=>{const{normalize:t}=e;return t(["Profile"])},radii_help:e=>{const{normalize:t}=e;return t(["Set up interface edge rounding (in pixels)"])},replies_in_timeline:e=>{const{normalize:t}=e;return t(["Replies in timeline"])},reply_visibility_all:e=>{const{normalize:t}=e;return t(["Show all replies"])},reply_visibility_following:e=>{const{normalize:t}=e;return t(["Only show replies directed at me or users I'm following"])},reply_visibility_self:e=>{const{normalize:t}=e;return t(["Only show replies directed at me"])},reply_visibility_following_short:e=>{const{normalize:t}=e;return t(["Show replies to my follows"])},reply_visibility_self_short:e=>{const{normalize:t}=e;return t(["Show replies to self only"])},autohide_floating_post_button:e=>{const{normalize:t}=e;return t(["Automatically hide New Post button (mobile)"])},saving_err:e=>{const{normalize:t}=e;return t(["Error saving settings"])},saving_ok:e=>{const{normalize:t}=e;return t(["Settings saved"])},search_user_to_block:e=>{const{normalize:t}=e;return t(["Search whom you want to block"])},search_user_to_mute:e=>{const{normalize:t}=e;return t(["Search whom you want to mute"])},security_tab:e=>{const{normalize:t}=e;return t(["Security"])},scope_copy:e=>{const{normalize:t}=e;return t(["Copy scope when replying (DMs are always copied)"])},minimal_scopes_mode:e=>{const{normalize:t}=e;return t(["Minimize post scope selection options"])},set_new_avatar:e=>{const{normalize:t}=e;return t(["Set new avatar"])},set_new_profile_background:e=>{const{normalize:t}=e;return t(["Set new profile background"])},set_new_profile_banner:e=>{const{normalize:t}=e;return t(["Set new profile banner"])},reset_avatar:e=>{const{normalize:t}=e;return t(["Reset avatar"])},reset_profile_background:e=>{const{normalize:t}=e;return t(["Reset profile background"])},reset_profile_banner:e=>{const{normalize:t}=e;return t(["Reset profile banner"])},reset_avatar_confirm:e=>{const{normalize:t}=e;return t(["Do you really want to reset the avatar?"])},reset_banner_confirm:e=>{const{normalize:t}=e;return t(["Do you really want to reset the banner?"])},reset_background_confirm:e=>{const{normalize:t}=e;return t(["Do you really want to reset the background?"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},subject_input_always_show:e=>{const{normalize:t}=e;return t(["Always show subject field"])},subject_line_behavior:e=>{const{normalize:t}=e;return t(["Copy subject when replying"])},subject_line_email:e=>{const{normalize:t}=e;return t(['Like email: "re: subject"'])},subject_line_mastodon:e=>{const{normalize:t}=e;return t(["Like mastodon: copy as is"])},subject_line_noop:e=>{const{normalize:t}=e;return t(["Do not copy"])},conversation_display:e=>{const{normalize:t}=e;return t(["Conversation display style"])},conversation_display_tree:e=>{const{normalize:t}=e;return t(["Tree-style"])},conversation_display_tree_quick:e=>{const{normalize:t}=e;return t(["Tree view"])},disable_sticky_headers:e=>{const{normalize:t}=e;return t(["Don't stick column headers to top of the screen"])},show_scrollbars:e=>{const{normalize:t}=e;return t(["Show side column's scrollbars"])},third_column_mode:e=>{const{normalize:t}=e;return t(["When there's enough space, show third column containing"])},third_column_mode_none:e=>{const{normalize:t}=e;return t(["Don't show third column at all"])},third_column_mode_notifications:e=>{const{normalize:t}=e;return t(["Notifications column"])},third_column_mode_postform:e=>{const{normalize:t}=e;return t(["Main post form and navigation"])},columns:e=>{const{normalize:t}=e;return t(["Columns"])},column_sizes:e=>{const{normalize:t}=e;return t(["Column sizes"])},column_sizes_sidebar:e=>{const{normalize:t}=e;return t(["Sidebar"])},column_sizes_content:e=>{const{normalize:t}=e;return t(["Content"])},column_sizes_notifs:e=>{const{normalize:t}=e;return t(["Notifications"])},tree_advanced:e=>{const{normalize:t}=e;return t(["Allow more flexible navigation in tree view"])},tree_fade_ancestors:e=>{const{normalize:t}=e;return t(["Display ancestors of the current status in faint text"])},conversation_display_linear:e=>{const{normalize:t}=e;return t(["Linear-style"])},conversation_display_linear_quick:e=>{const{normalize:t}=e;return t(["Linear view"])},conversation_other_replies_button:e=>{const{normalize:t}=e;return t(['Show the "other replies" button'])},conversation_other_replies_button_below:e=>{const{normalize:t}=e;return t(["Below statuses"])},conversation_other_replies_button_inside:e=>{const{normalize:t}=e;return t(["Inside statuses"])},max_depth_in_thread:e=>{const{normalize:t}=e;return t(["Maximum number of levels in thread to display by default"])},post_status_content_type:e=>{const{normalize:t}=e;return t(["Post status content type"])},sensitive_by_default:e=>{const{normalize:t}=e;return t(["Mark posts as sensitive by default"])},stop_gifs:e=>{const{normalize:t}=e;return t(["Pause animated images until you hover on them"])},streaming:e=>{const{normalize:t}=e;return t(["Automatically show new posts when scrolled to the top"])},auto_update:e=>{const{normalize:t}=e;return t(["Show new posts automatically"])},user_mutes:e=>{const{normalize:t}=e;return t(["Users"])},useStreamingApi:e=>{const{normalize:t}=e;return t(["Receive posts and notifications real-time"])},use_websockets:e=>{const{normalize:t}=e;return t(["Use websockets (Realtime updates)"])},text:e=>{const{normalize:t}=e;return t(["Text"])},theme:e=>{const{normalize:t}=e;return t(["Theme"])},theme_help:e=>{const{normalize:t}=e;return t(["Use hex color codes (#rrggbb) to customize your color theme."])},theme_help_v2_1:e=>{const{normalize:t}=e;return t(['You can also override certain component\'s colors and opacity by toggling the checkbox, use "Clear all" button to clear all overrides.'])},theme_help_v2_2:e=>{const{normalize:t}=e;return t(["Icons underneath some entries are background/text contrast indicators, hover over for detailed info. Please keep in mind that when using transparency contrast indicators show the worst possible case."])},tooltipRadius:e=>{const{normalize:t}=e;return t(["Tooltips/alerts"])},type_domains_to_mute:e=>{const{normalize:t}=e;return t(["Search domains to mute"])},upload_a_photo:e=>{const{normalize:t}=e;return t(["Upload a photo"])},user_settings:e=>{const{normalize:t}=e;return t(["User Settings"])},values:{false:e=>{const{normalize:t}=e;return t(["no"])},true:e=>{const{normalize:t}=e;return t(["yes"])}},virtual_scrolling:e=>{const{normalize:t}=e;return t(["Optimize timeline rendering"])},use_at_icon:e=>{const{normalize:t}=e;return t(["Display ","@"," symbol as an icon instead of text"])},mention_link_display:e=>{const{normalize:t}=e;return t(["Display mention links"])},mention_link_display_short:e=>{const{normalize:t}=e;return t(["always as short names (e.g. ","@","foo)"])},mention_link_display_full_for_remote:e=>{const{normalize:t}=e;return t(["as full names only for remote users (e.g. ","@","foo","@","example.org)"])},mention_link_display_full:e=>{const{normalize:t}=e;return t(["always as full names (e.g. ","@","foo","@","example.org)"])},mention_link_use_tooltip:e=>{const{normalize:t}=e;return t(["Show user card when clicking mention links"])},mention_link_show_avatar:e=>{const{normalize:t}=e;return t(["Show user avatar beside the link"])},mention_link_show_avatar_quick:e=>{const{normalize:t}=e;return t(["Show user avatar next to mentions"])},mention_link_fade_domain:e=>{const{normalize:t}=e;return t(["Fade domains (e.g. ","@","example.org in ","@","foo","@","example.org)"])},mention_link_bolden_you:e=>{const{normalize:t}=e;return t(["Highlight mention of you when you are mentioned"])},user_popover_avatar_action:e=>{const{normalize:t}=e;return t(["Popover avatar click action"])},user_popover_avatar_action_zoom:e=>{const{normalize:t}=e;return t(["Zoom the avatar"])},user_popover_avatar_action_close:e=>{const{normalize:t}=e;return t(["Close the popover"])},user_popover_avatar_action_open:e=>{const{normalize:t}=e;return t(["Open profile"])},user_popover_avatar_overlay:e=>{const{normalize:t}=e;return t(["Show user popover over user avatar"])},fun:e=>{const{normalize:t}=e;return t(["Fun"])},greentext:e=>{const{normalize:t}=e;return t(["Meme arrows"])},show_yous:e=>{const{normalize:t}=e;return t(["Show (You)s"])},notifications:e=>{const{normalize:t}=e;return t(["Notifications"])},notification_setting_filters:e=>{const{normalize:t}=e;return t(["Filters"])},notification_setting_block_from_strangers:e=>{const{normalize:t}=e;return t(["Block notifications from users who you do not follow"])},notification_setting_privacy:e=>{const{normalize:t}=e;return t(["Privacy"])},notification_setting_hide_notification_contents:e=>{const{normalize:t}=e;return t(["Hide the sender and contents of push notifications"])},notification_mutes:e=>{const{normalize:t}=e;return t(["To stop receiving notifications from a specific user, use a mute."])},notification_blocks:e=>{const{normalize:t}=e;return t(["Blocking a user stops all notifications as well as unsubscribes them."])},enable_web_push_notifications:e=>{const{normalize:t}=e;return t(["Enable web push notifications"])},more_settings:e=>{const{normalize:t}=e;return t(["More settings"])},style:{switcher:{keep_color:e=>{const{normalize:t}=e;return t(["Keep colors"])},keep_shadows:e=>{const{normalize:t}=e;return t(["Keep shadows"])},keep_opacity:e=>{const{normalize:t}=e;return t(["Keep opacity"])},keep_roundness:e=>{const{normalize:t}=e;return t(["Keep roundness"])},keep_fonts:e=>{const{normalize:t}=e;return t(["Keep fonts"])},save_load_hint:e=>{const{normalize:t}=e;return t(['"Keep" options preserve currently set options when selecting or loading themes, it also stores said options when exporting a theme. When all checkboxes unset, exporting theme will save everything.'])},reset:e=>{const{normalize:t}=e;return t(["Reset"])},clear_all:e=>{const{normalize:t}=e;return t(["Clear all"])},clear_opacity:e=>{const{normalize:t}=e;return t(["Clear opacity"])},load_theme:e=>{const{normalize:t}=e;return t(["Load theme"])},keep_as_is:e=>{const{normalize:t}=e;return t(["Keep as is"])},use_snapshot:e=>{const{normalize:t}=e;return t(["Old version"])},use_source:e=>{const{normalize:t}=e;return t(["New version"])},help:{upgraded_from_v2:e=>{const{normalize:t}=e;return t(["PleromaFE has been upgraded, theme could look a little bit different than you remember."])},v2_imported:e=>{const{normalize:t}=e;return t(["File you imported was made for older FE. We try to maximize compatibility but there still could be inconsistencies."])},future_version_imported:e=>{const{normalize:t}=e;return t(["File you imported was made in newer version of FE."])},older_version_imported:e=>{const{normalize:t}=e;return t(["File you imported was made in older version of FE."])},snapshot_present:e=>{const{normalize:t}=e;return t(["Theme snapshot is loaded, so all values are overriden. You can load theme's actual data instead."])},snapshot_missing:e=>{const{normalize:t}=e;return t(["No theme snapshot was in the file so it could look different than originally envisioned."])},fe_upgraded:e=>{const{normalize:t}=e;return t(["PleromaFE's theme engine upgraded after version update."])},fe_downgraded:e=>{const{normalize:t}=e;return t(["PleromaFE's version rolled back."])},migration_snapshot_ok:e=>{const{normalize:t}=e;return t(["Just to be safe, theme snapshot loaded. You can try loading theme data."])},migration_napshot_gone:e=>{const{normalize:t}=e;return t(["For whatever reason snapshot was missing, some stuff could look different than you remember."])},snapshot_source_mismatch:e=>{const{normalize:t}=e;return t(["Versions conflict: most likely FE was rolled back and updated again, if you changed theme using older version of FE you most likely want to use old version, otherwise use new version."])}}},common:{color:e=>{const{normalize:t}=e;return t(["Color"])},opacity:e=>{const{normalize:t}=e;return t(["Opacity"])},contrast:{hint:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Contrast ratio is ",n(r("ratio")),", it ",n(r("level"))," ",n(r("context"))])},level:{aa:e=>{const{normalize:t}=e;return t(["meets Level AA guideline (minimal)"])},aaa:e=>{const{normalize:t}=e;return t(["meets Level AAA guideline (recommended)"])},bad:e=>{const{normalize:t}=e;return t(["doesn't meet any accessibility guidelines"])}},context:{"18pt":e=>{const{normalize:t}=e;return t(["for large (18pt+) text"])},text:e=>{const{normalize:t}=e;return t(["for text"])}}}},common_colors:{_tab_label:e=>{const{normalize:t}=e;return t(["Common"])},main:e=>{const{normalize:t}=e;return t(["Common colors"])},foreground_hint:e=>{const{normalize:t}=e;return t(['See "Advanced" tab for more detailed control'])},rgbo:e=>{const{normalize:t}=e;return t(["Icons, accents, badges"])}},advanced_colors:{_tab_label:e=>{const{normalize:t}=e;return t(["Advanced"])},alert:e=>{const{normalize:t}=e;return t(["Alert background"])},alert_error:e=>{const{normalize:t}=e;return t(["Error"])},alert_warning:e=>{const{normalize:t}=e;return t(["Warning"])},alert_neutral:e=>{const{normalize:t}=e;return t(["Neutral"])},post:e=>{const{normalize:t}=e;return t(["Posts/User bios"])},badge:e=>{const{normalize:t}=e;return t(["Badge background"])},popover:e=>{const{normalize:t}=e;return t(["Tooltips, menus, popovers"])},badge_notification:e=>{const{normalize:t}=e;return t(["Notification"])},panel_header:e=>{const{normalize:t}=e;return t(["Panel header"])},top_bar:e=>{const{normalize:t}=e;return t(["Top bar"])},borders:e=>{const{normalize:t}=e;return t(["Borders"])},buttons:e=>{const{normalize:t}=e;return t(["Buttons"])},inputs:e=>{const{normalize:t}=e;return t(["Input fields"])},faint_text:e=>{const{normalize:t}=e;return t(["Faded text"])},underlay:e=>{const{normalize:t}=e;return t(["Underlay"])},wallpaper:e=>{const{normalize:t}=e;return t(["Wallpaper"])},poll:e=>{const{normalize:t}=e;return t(["Poll graph"])},icons:e=>{const{normalize:t}=e;return t(["Icons"])},highlight:e=>{const{normalize:t}=e;return t(["Highlighted elements"])},pressed:e=>{const{normalize:t}=e;return t(["Pressed"])},selectedPost:e=>{const{normalize:t}=e;return t(["Selected post"])},selectedMenu:e=>{const{normalize:t}=e;return t(["Selected menu item"])},disabled:e=>{const{normalize:t}=e;return t(["Disabled"])},toggled:e=>{const{normalize:t}=e;return t(["Toggled"])},tabs:e=>{const{normalize:t}=e;return t(["Tabs"])},chat:{incoming:e=>{const{normalize:t}=e;return t(["Incoming"])},outgoing:e=>{const{normalize:t}=e;return t(["Outgoing"])},border:e=>{const{normalize:t}=e;return t(["Border"])}}},radii:{_tab_label:e=>{const{normalize:t}=e;return t(["Roundness"])}},shadows:{_tab_label:e=>{const{normalize:t}=e;return t(["Shadow and lighting"])},component:e=>{const{normalize:t}=e;return t(["Component"])},override:e=>{const{normalize:t}=e;return t(["Override"])},shadow_id:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Shadow #",n(r("value"))])},blur:e=>{const{normalize:t}=e;return t(["Blur"])},spread:e=>{const{normalize:t}=e;return t(["Spread"])},inset:e=>{const{normalize:t}=e;return t(["Inset"])},hintV3:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["For shadows you can also use the ",n(r(0))," notation to use other color slot."])},filter_hint:{always_drop_shadow:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Warning, this shadow always uses ",n(r(0))," when browser supports it."])},drop_shadow_syntax:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0))," does not support ",n(r(1))," parameter and ",n(r(2))," keyword."])},avatar_inset:e=>{const{normalize:t}=e;return t(["Please note that combining both inset and non-inset shadows on avatars might give unexpected results with transparent avatars."])},spread_zero:e=>{const{normalize:t}=e;return t(["Shadows with spread > 0 will appear as if it was set to zero"])},inset_classic:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Inset shadows will be using ",n(r(0))])}},components:{panel:e=>{const{normalize:t}=e;return t(["Panel"])},panelHeader:e=>{const{normalize:t}=e;return t(["Panel header"])},topBar:e=>{const{normalize:t}=e;return t(["Top bar"])},avatar:e=>{const{normalize:t}=e;return t(["User avatar (in profile view)"])},avatarStatus:e=>{const{normalize:t}=e;return t(["User avatar (in post display)"])},popup:e=>{const{normalize:t}=e;return t(["Popups and tooltips"])},button:e=>{const{normalize:t}=e;return t(["Button"])},buttonHover:e=>{const{normalize:t}=e;return t(["Button (hover)"])},buttonPressed:e=>{const{normalize:t}=e;return t(["Button (pressed)"])},buttonPressedHover:e=>{const{normalize:t}=e;return t(["Button (pressed+hover)"])},input:e=>{const{normalize:t}=e;return t(["Input field"])}}},fonts:{_tab_label:e=>{const{normalize:t}=e;return t(["Fonts"])},help:e=>{const{normalize:t}=e;return t(['Select font to use for elements of UI. For "custom" you have to enter exact font name as it appears in system.'])},components:{interface:e=>{const{normalize:t}=e;return t(["Interface"])},input:e=>{const{normalize:t}=e;return t(["Input fields"])},post:e=>{const{normalize:t}=e;return t(["Post text"])},postCode:e=>{const{normalize:t}=e;return t(["Monospaced text in a post (rich text)"])}},family:e=>{const{normalize:t}=e;return t(["Font name"])},size:e=>{const{normalize:t}=e;return t(["Size (in px)"])},weight:e=>{const{normalize:t}=e;return t(["Weight (boldness)"])},custom:e=>{const{normalize:t}=e;return t(["Custom"])}},preview:{header:e=>{const{normalize:t}=e;return t(["Preview"])},content:e=>{const{normalize:t}=e;return t(["Content"])},error:e=>{const{normalize:t}=e;return t(["Example error"])},button:e=>{const{normalize:t}=e;return t(["Button"])},text:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["A bunch of more ",n(r(0))," and ",n(r(1))])},mono:e=>{const{normalize:t}=e;return t(["content"])},input:e=>{const{normalize:t}=e;return t(["Just landed in L.A."])},faint_link:e=>{const{normalize:t}=e;return t(["helpful manual"])},fine_print:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Read our ",n(r(0))," to learn nothing useful!"])},header_faint:e=>{const{normalize:t}=e;return t(["This is fine"])},checkbox:e=>{const{normalize:t}=e;return t(["I have skimmed over terms and conditions"])},link:e=>{const{normalize:t}=e;return t(["a nice lil' link"])}}},version:{title:e=>{const{normalize:t}=e;return t(["Version"])},backend_version:e=>{const{normalize:t}=e;return t(["Backend version"])},frontend_version:e=>{const{normalize:t}=e;return t(["Frontend version"])}}},time:{unit:{days:e=>{const{normalize:t,interpolate:n,list:r,plural:o}=e;return o([t([n(r(0))," day"]),t([n(r(0))," days"])])},days_short:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0)),"d"])},hours:e=>{const{normalize:t,interpolate:n,list:r,plural:o}=e;return o([t([n(r(0))," hour"]),t([n(r(0))," hours"])])},hours_short:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0)),"h"])},minutes:e=>{const{normalize:t,interpolate:n,list:r,plural:o}=e;return o([t([n(r(0))," minute"]),t([n(r(0))," minutes"])])},minutes_short:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0)),"min"])},months:e=>{const{normalize:t,interpolate:n,list:r,plural:o}=e;return o([t([n(r(0))," month"]),t([n(r(0))," months"])])},months_short:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0)),"mo"])},seconds:e=>{const{normalize:t,interpolate:n,list:r,plural:o}=e;return o([t([n(r(0))," second"]),t([n(r(0))," seconds"])])},seconds_short:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0)),"s"])},weeks:e=>{const{normalize:t,interpolate:n,list:r,plural:o}=e;return o([t([n(r(0))," week"]),t([n(r(0))," weeks"])])},weeks_short:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0)),"w"])},years:e=>{const{normalize:t,interpolate:n,list:r,plural:o}=e;return o([t([n(r(0))," year"]),t([n(r(0))," years"])])},years_short:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0)),"y"])}},in_future:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["in ",n(r(0))])},in_past:e=>{const{normalize:t,interpolate:n,list:r}=e;return t([n(r(0))," ago"])},now:e=>{const{normalize:t}=e;return t(["just now"])},now_short:e=>{const{normalize:t}=e;return t(["now"])}},timeline:{collapse:e=>{const{normalize:t}=e;return t(["Collapse"])},conversation:e=>{const{normalize:t}=e;return t(["Conversation"])},error:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Error fetching timeline: ",n(r(0))])},load_older:e=>{const{normalize:t}=e;return t(["Load older statuses"])},no_retweet_hint:e=>{const{normalize:t}=e;return t(["Post is marked as followers-only or direct and cannot be repeated"])},repeated:e=>{const{normalize:t}=e;return t(["repeated"])},show_new:e=>{const{normalize:t}=e;return t(["Show new"])},reload:e=>{const{normalize:t}=e;return t(["Reload"])},up_to_date:e=>{const{normalize:t}=e;return t(["Up-to-date"])},no_more_statuses:e=>{const{normalize:t}=e;return t(["No more statuses"])},no_statuses:e=>{const{normalize:t}=e;return t(["No statuses"])},socket_reconnected:e=>{const{normalize:t}=e;return t(["Realtime connection established"])},socket_broke:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Realtime connection lost: CloseEvent code ",n(r(0))])},quick_view_settings:e=>{const{normalize:t}=e;return t(["Quick view settings"])},quick_filter_settings:e=>{const{normalize:t}=e;return t(["Quick filter settings"])}},status:{favorites:e=>{const{normalize:t}=e;return t(["Favorites"])},repeats:e=>{const{normalize:t}=e;return t(["Repeats"])},delete:e=>{const{normalize:t}=e;return t(["Delete status"])},edit:e=>{const{normalize:t}=e;return t(["Edit status"])},edited_at:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["(last edited ",n(r("time")),")"])},pin:e=>{const{normalize:t}=e;return t(["Pin on profile"])},unpin:e=>{const{normalize:t}=e;return t(["Unpin from profile"])},pinned:e=>{const{normalize:t}=e;return t(["Pinned"])},bookmark:e=>{const{normalize:t}=e;return t(["Bookmark"])},unbookmark:e=>{const{normalize:t}=e;return t(["Unbookmark"])},delete_confirm:e=>{const{normalize:t}=e;return t(["Do you really want to delete this status?"])},reply_to:e=>{const{normalize:t}=e;return t(["Reply to"])},mentions:e=>{const{normalize:t}=e;return t(["Mentions"])},replies_list:e=>{const{normalize:t}=e;return t(["Replies:"])},replies_list_with_others:e=>{const{normalize:t,interpolate:n,named:r,plural:o}=e;return o([t(["Replies (+",n(r("numReplies"))," other):"]),t(["Replies (+",n(r("numReplies"))," others):"])])},mute_conversation:e=>{const{normalize:t}=e;return t(["Mute conversation"])},unmute_conversation:e=>{const{normalize:t}=e;return t(["Unmute conversation"])},status_unavailable:e=>{const{normalize:t}=e;return t(["Status unavailable"])},copy_link:e=>{const{normalize:t}=e;return t(["Copy link to status"])},external_source:e=>{const{normalize:t}=e;return t(["External source"])},thread_muted:e=>{const{normalize:t}=e;return t(["Thread muted"])},thread_muted_and_words:e=>{const{normalize:t}=e;return t([", has words:"])},show_full_subject:e=>{const{normalize:t}=e;return t(["Show full subject"])},hide_full_subject:e=>{const{normalize:t}=e;return t(["Hide full subject"])},show_content:e=>{const{normalize:t}=e;return t(["Show content"])},hide_content:e=>{const{normalize:t}=e;return t(["Hide content"])},status_deleted:e=>{const{normalize:t}=e;return t(["This post was deleted"])},nsfw:e=>{const{normalize:t}=e;return t(["NSFW"])},expand:e=>{const{normalize:t}=e;return t(["Expand"])},you:e=>{const{normalize:t}=e;return t(["(You)"])},plus_more:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["+",n(r("number"))," more"])},many_attachments:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Post has ",n(r("number"))," attachment(s)"])},collapse_attachments:e=>{const{normalize:t}=e;return t(["Collapse attachments"])},show_all_attachments:e=>{const{normalize:t}=e;return t(["Show all attachments"])},show_attachment_in_modal:e=>{const{normalize:t}=e;return t(["Show in media modal"])},show_attachment_description:e=>{const{normalize:t}=e;return t(["Preview description (open attachment for full description)"])},hide_attachment:e=>{const{normalize:t}=e;return t(["Hide attachment"])},remove_attachment:e=>{const{normalize:t}=e;return t(["Remove attachment"])},attachment_stop_flash:e=>{const{normalize:t}=e;return t(["Stop Flash player"])},move_up:e=>{const{normalize:t}=e;return t(["Shift attachment left"])},move_down:e=>{const{normalize:t}=e;return t(["Shift attachment right"])},open_gallery:e=>{const{normalize:t}=e;return t(["Open gallery"])},thread_hide:e=>{const{normalize:t}=e;return t(["Hide this thread"])},thread_show:e=>{const{normalize:t}=e;return t(["Show this thread"])},thread_show_full:e=>{const{normalize:t,interpolate:n,named:r,plural:o}=e;return o([t(["Show everything under this thread (",n(r("numStatus"))," status in total, max depth ",n(r("depth")),")"]),t(["Show everything under this thread (",n(r("numStatus"))," statuses in total, max depth ",n(r("depth")),")"])])},thread_show_full_with_icon:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("icon"))," ",n(r("text"))])},thread_follow:e=>{const{normalize:t,interpolate:n,named:r,plural:o}=e;return o([t(["See the remaining part of this thread (",n(r("numStatus"))," status in total)"]),t(["See the remaining part of this thread (",n(r("numStatus"))," statuses in total)"])])},thread_follow_with_icon:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("icon"))," ",n(r("text"))])},ancestor_follow:e=>{const{normalize:t,interpolate:n,named:r,plural:o}=e;return o([t(["See ",n(r("numReplies"))," other reply under this status"]),t(["See ",n(r("numReplies"))," other replies under this status"])])},ancestor_follow_with_icon:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("icon"))," ",n(r("text"))])},show_all_conversation_with_icon:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("icon"))," ",n(r("text"))])},show_all_conversation:e=>{const{normalize:t,interpolate:n,named:r,plural:o}=e;return o([t(["Show full conversation (",n(r("numStatus"))," other status)"]),t(["Show full conversation (",n(r("numStatus"))," other statuses)"])])},show_only_conversation_under_this:e=>{const{normalize:t}=e;return t(["Only show replies to this status"])},status_history:e=>{const{normalize:t}=e;return t(["Status history"])}},user_card:{approve:e=>{const{normalize:t}=e;return t(["Approve"])},block:e=>{const{normalize:t}=e;return t(["Block"])},blocked:e=>{const{normalize:t}=e;return t(["Blocked!"])},deactivated:e=>{const{normalize:t}=e;return t(["Deactivated"])},deny:e=>{const{normalize:t}=e;return t(["Deny"])},edit_profile:e=>{const{normalize:t}=e;return t(["Edit profile"])},favorites:e=>{const{normalize:t}=e;return t(["Favorites"])},follow:e=>{const{normalize:t}=e;return t(["Follow"])},follow_cancel:e=>{const{normalize:t}=e;return t(["Cancel request"])},follow_sent:e=>{const{normalize:t}=e;return t(["Request sent!"])},follow_progress:e=>{const{normalize:t}=e;return t(["Requesting…"])},follow_unfollow:e=>{const{normalize:t}=e;return t(["Unfollow"])},followees:e=>{const{normalize:t}=e;return t(["Following"])},followers:e=>{const{normalize:t}=e;return t(["Followers"])},following:e=>{const{normalize:t}=e;return t(["Following!"])},follows_you:e=>{const{normalize:t}=e;return t(["Follows you!"])},hidden:e=>{const{normalize:t}=e;return t(["Hidden"])},its_you:e=>{const{normalize:t}=e;return t(["It's you!"])},media:e=>{const{normalize:t}=e;return t(["Media"])},mention:e=>{const{normalize:t}=e;return t(["Mention"])},message:e=>{const{normalize:t}=e;return t(["Message"])},mute:e=>{const{normalize:t}=e;return t(["Mute"])},muted:e=>{const{normalize:t}=e;return t(["Muted"])},per_day:e=>{const{normalize:t}=e;return t(["per day"])},remote_follow:e=>{const{normalize:t}=e;return t(["Remote follow"])},remove_follower:e=>{const{normalize:t}=e;return t(["Remove follower"])},report:e=>{const{normalize:t}=e;return t(["Report"])},statuses:e=>{const{normalize:t}=e;return t(["Statuses"])},subscribe:e=>{const{normalize:t}=e;return t(["Subscribe"])},unsubscribe:e=>{const{normalize:t}=e;return t(["Unsubscribe"])},unblock:e=>{const{normalize:t}=e;return t(["Unblock"])},unblock_progress:e=>{const{normalize:t}=e;return t(["Unblocking…"])},block_progress:e=>{const{normalize:t}=e;return t(["Blocking…"])},unmute:e=>{const{normalize:t}=e;return t(["Unmute"])},unmute_progress:e=>{const{normalize:t}=e;return t(["Unmuting…"])},mute_progress:e=>{const{normalize:t}=e;return t(["Muting…"])},hide_repeats:e=>{const{normalize:t}=e;return t(["Hide repeats"])},show_repeats:e=>{const{normalize:t}=e;return t(["Show repeats"])},bot:e=>{const{normalize:t}=e;return t(["Bot"])},admin_menu:{moderation:e=>{const{normalize:t}=e;return t(["Moderation"])},grant_admin:e=>{const{normalize:t}=e;return t(["Grant Admin"])},revoke_admin:e=>{const{normalize:t}=e;return t(["Revoke Admin"])},grant_moderator:e=>{const{normalize:t}=e;return t(["Grant Moderator"])},revoke_moderator:e=>{const{normalize:t}=e;return t(["Revoke Moderator"])},activate_account:e=>{const{normalize:t}=e;return t(["Activate account"])},deactivate_account:e=>{const{normalize:t}=e;return t(["Deactivate account"])},delete_account:e=>{const{normalize:t}=e;return t(["Delete account"])},force_nsfw:e=>{const{normalize:t}=e;return t(["Mark all posts as NSFW"])},strip_media:e=>{const{normalize:t}=e;return t(["Remove media from posts"])},force_unlisted:e=>{const{normalize:t}=e;return t(["Force posts to be unlisted"])},sandbox:e=>{const{normalize:t}=e;return t(["Force posts to be followers-only"])},disable_remote_subscription:e=>{const{normalize:t}=e;return t(["Disallow following user from remote instances"])},disable_any_subscription:e=>{const{normalize:t}=e;return t(["Disallow following user at all"])},quarantine:e=>{const{normalize:t}=e;return t(["Disallow user posts from federating"])},delete_user:e=>{const{normalize:t}=e;return t(["Delete user"])},delete_user_data_and_deactivate_confirmation:e=>{const{normalize:t}=e;return t(["This will permanently delete the data from this account and deactivate it. Are you absolutely sure?"])}},highlight:{disabled:e=>{const{normalize:t}=e;return t(["No highlight"])},solid:e=>{const{normalize:t}=e;return t(["Solid bg"])},striped:e=>{const{normalize:t}=e;return t(["Striped bg"])},side:e=>{const{normalize:t}=e;return t(["Side stripe"])}},note:e=>{const{normalize:t}=e;return t(["Note"])},note_blank:e=>{const{normalize:t}=e;return t(["(None)"])},edit_note:e=>{const{normalize:t}=e;return t(["Edit note"])},edit_note_apply:e=>{const{normalize:t}=e;return t(["Apply"])},edit_note_cancel:e=>{const{normalize:t}=e;return t(["Cancel"])}},user_profile:{timeline_title:e=>{const{normalize:t}=e;return t(["User timeline"])},profile_does_not_exist:e=>{const{normalize:t}=e;return t(["Sorry, this profile does not exist."])},profile_loading_error:e=>{const{normalize:t}=e;return t(["Sorry, there was an error loading this profile."])}},user_reporting:{title:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Reporting ",n(r(0))])},add_comment_description:e=>{const{normalize:t}=e;return t(["The report will be sent to your instance moderators. You can provide an explanation of why you are reporting this account below:"])},additional_comments:e=>{const{normalize:t}=e;return t(["Additional comments"])},forward_description:e=>{const{normalize:t}=e;return t(["The account is from another server. Send a copy of the report there as well?"])},forward_to:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Forward to ",n(r(0))])},submit:e=>{const{normalize:t}=e;return t(["Submit"])},generic_error:e=>{const{normalize:t}=e;return t(["An error occurred while processing your request."])}},who_to_follow:{more:e=>{const{normalize:t}=e;return t(["More"])},who_to_follow:e=>{const{normalize:t}=e;return t(["Who to follow"])}},tool_tip:{media_upload:e=>{const{normalize:t}=e;return t(["Upload media"])},repeat:e=>{const{normalize:t}=e;return t(["Repeat"])},reply:e=>{const{normalize:t}=e;return t(["Reply"])},favorite:e=>{const{normalize:t}=e;return t(["Favorite"])},add_reaction:e=>{const{normalize:t}=e;return t(["Add Reaction"])},user_settings:e=>{const{normalize:t}=e;return t(["User Settings"])},accept_follow_request:e=>{const{normalize:t}=e;return t(["Accept follow request"])},reject_follow_request:e=>{const{normalize:t}=e;return t(["Reject follow request"])},bookmark:e=>{const{normalize:t}=e;return t(["Bookmark"])},toggle_expand:e=>{const{normalize:t}=e;return t(["Expand or collapse notification to show post in full"])},toggle_mute:e=>{const{normalize:t}=e;return t(["Expand or collapse notification to reveal muted content"])}},upload:{error:{base:e=>{const{normalize:t}=e;return t(["Upload failed."])},message:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Upload failed: ",n(r(0))])},file_too_big:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["File too big [",n(r("filesize")),n(r("filesizeunit"))," / ",n(r("allowedsize")),n(r("allowedsizeunit")),"]"])},default:e=>{const{normalize:t}=e;return t(["Try again later"])}},file_size_units:{B:e=>{const{normalize:t}=e;return t(["B"])},KiB:e=>{const{normalize:t}=e;return t(["KiB"])},MiB:e=>{const{normalize:t}=e;return t(["MiB"])},GiB:e=>{const{normalize:t}=e;return t(["GiB"])},TiB:e=>{const{normalize:t}=e;return t(["TiB"])}}},search:{people:e=>{const{normalize:t}=e;return t(["People"])},hashtags:e=>{const{normalize:t}=e;return t(["Hashtags"])},person_talking:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," person talking"])},people_talking:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," people talking"])},no_results:e=>{const{normalize:t}=e;return t(["No results"])},no_more_results:e=>{const{normalize:t}=e;return t(["No more results"])},load_more:e=>{const{normalize:t}=e;return t(["Load more results"])}},password_reset:{forgot_password:e=>{const{normalize:t}=e;return t(["Forgot password?"])},password_reset:e=>{const{normalize:t}=e;return t(["Password reset"])},instruction:e=>{const{normalize:t}=e;return t(["Enter your email address or username. We will send you a link to reset your password."])},placeholder:e=>{const{normalize:t}=e;return t(["Your email or username"])},check_email:e=>{const{normalize:t}=e;return t(["Check your email for a link to reset your password."])},return_home:e=>{const{normalize:t}=e;return t(["Return to the home page"])},too_many_requests:e=>{const{normalize:t}=e;return t(["You have reached the limit of attempts, try again later."])},password_reset_disabled:e=>{const{normalize:t}=e;return t(["Password reset is disabled. Please contact your instance administrator."])},password_reset_required:e=>{const{normalize:t}=e;return t(["You must reset your password to log in."])},password_reset_required_but_mailer_is_disabled:e=>{const{normalize:t}=e;return t(["You must reset your password, but password reset is disabled. Please contact your instance administrator."])}},chats:{you:e=>{const{normalize:t}=e;return t(["You:"])},message_user:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Message ",n(r("nickname"))])},delete:e=>{const{normalize:t}=e;return t(["Delete"])},chats:e=>{const{normalize:t}=e;return t(["Chats"])},new:e=>{const{normalize:t}=e;return t(["New Chat"])},empty_message_error:e=>{const{normalize:t}=e;return t(["Cannot post empty message"])},more:e=>{const{normalize:t}=e;return t(["More"])},delete_confirm:e=>{const{normalize:t}=e;return t(["Do you really want to delete this message?"])},error_loading_chat:e=>{const{normalize:t}=e;return t(["Something went wrong when loading the chat."])},error_sending_message:e=>{const{normalize:t}=e;return t(["Something went wrong when sending the message."])},empty_chat_list_placeholder:e=>{const{normalize:t}=e;return t(["You don't have any chats yet. Start a new chat!"])}},lists:{lists:e=>{const{normalize:t}=e;return t(["Lists"])},new:e=>{const{normalize:t}=e;return t(["New List"])},title:e=>{const{normalize:t}=e;return t(["List title"])},search:e=>{const{normalize:t}=e;return t(["Search users"])},create:e=>{const{normalize:t}=e;return t(["Create"])},save:e=>{const{normalize:t}=e;return t(["Save changes"])},delete:e=>{const{normalize:t}=e;return t(["Delete list"])},following_only:e=>{const{normalize:t}=e;return t(["Limit to Following"])},manage_lists:e=>{const{normalize:t}=e;return t(["Manage lists"])},manage_members:e=>{const{normalize:t}=e;return t(["Manage list members"])},add_members:e=>{const{normalize:t}=e;return t(["Search for more users"])},remove_from_list:e=>{const{normalize:t}=e;return t(["Remove from list"])},add_to_list:e=>{const{normalize:t}=e;return t(["Add to list"])},is_in_list:e=>{const{normalize:t}=e;return t(["Already in list"])},editing_list:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Editing list ",n(r("listTitle"))])},creating_list:e=>{const{normalize:t}=e;return t(["Creating new list"])},update_title:e=>{const{normalize:t}=e;return t(["Save Title"])},really_delete:e=>{const{normalize:t}=e;return t(["Really delete list?"])},error:e=>{const{normalize:t,interpolate:n,list:r}=e;return t(["Error manipulating lists: ",n(r(0))])}},file_type:{audio:e=>{const{normalize:t}=e;return t(["Audio"])},video:e=>{const{normalize:t}=e;return t(["Video"])},image:e=>{const{normalize:t}=e;return t(["Image"])},file:e=>{const{normalize:t}=e;return t(["File"])}},display_date:{today:e=>{const{normalize:t}=e;return t(["Today"])}},update:{big_update_title:e=>{const{normalize:t}=e;return t(["Please bear with us"])},big_update_content:e=>{const{normalize:t}=e;return t(["We haven't had a release in a while, so things might look and feel different than what you're used to."])},update_bugs:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Please report any issues and bugs on ",n(r("pleromaGitlab")),", as we have changed a lot, and although we test thoroughly and use development versions ourselves, we may have missed some things. We welcome your feedback and suggestions on issues you might encounter, or how to improve Pleroma and Pleroma-FE."])},update_bugs_gitlab:e=>{const{normalize:t}=e;return t(["Pleroma GitLab"])},update_changelog:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["For more details on what's changed, see ",n(r("theFullChangelog")),"."])},update_changelog_here:e=>{const{normalize:t}=e;return t(["the full changelog"])},art_by:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Art by ",n(r("linkToArtist"))])}},unicode_domain_indicator:{tooltip:e=>{const{normalize:t}=e;return t(["This domain contains non-ascii characters."])}}}},1395:(e,t,n)=>{var r={"./af.json":[44919,6355],"./am.json":[53139,5119],"./ar.json":[44557,9873],"./ar_SA.json":[23450,7360],"./as.json":[44359,3377],"./ast.json":[13764,7569],"./az.json":[86459,2342],"./be.json":[50866,7304],"./bg.json":[26219,3974],"./bn.json":[69178,9064],"./br.json":[67871,6148],"./bs.json":[75340,8134],"./ca.json":[86914,4691],"./ccp.json":[73872,1162],"./ceb.json":[64478,9790],"./chr.json":[61017,6869],"./ckb.json":[56412,2656],"./cs.json":[8888,4710],"./cy.json":[25392,6272],"./da.json":[35042,1596],"./de.json":[35169,6226],"./de_CH.json":[28246,7164],"./doi.json":[59784,4209],"./dsb.json":[60634,1790],"./el.json":[98338,7879],"./en.json":[74990,5728],"./en_001.json":[62736,577],"./en_AU.json":[2597,9360],"./en_CA.json":[1516,4879],"./en_GB.json":[84830,50],"./en_IN.json":[71809,8988],"./es.json":[61148,6831],"./es_419.json":[25696,8873],"./es_MX.json":[11915,2699],"./es_US.json":[87826,3313],"./et.json":[66641,3276],"./eu.json":[6541,2992],"./fa.json":[43305,5521],"./fi.json":[40752,420],"./fil.json":[26843,1236],"./fo.json":[43032,8995],"./fr.json":[80898,2223],"./fr_CA.json":[54515,1821],"./ga.json":[66572,4571],"./gd.json":[9185,6116],"./gl.json":[23840,6126],"./gu.json":[85811,7261],"./ha.json":[91566,227],"./ha_NE.json":[3400,5304],"./he.json":[26260,5548],"./hi.json":[18136,5968],"./hi_Latn.json":[95638,3056],"./hr.json":[77435,2861],"./hsb.json":[15758,8015],"./hu.json":[2727,4902],"./hy.json":[8397,6344],"./ia.json":[49796,6936],"./id.json":[56635,9465],"./ig.json":[26406,9895],"./is.json":[51391,7300],"./it.json":[54879,8970],"./ja.json":[2971,1290],"./jv.json":[18644,2479],"./ka.json":[71255,6068],"./kab.json":[92892,9780],"./kk.json":[46419,2873],"./kl.json":[2227,2397],"./km.json":[65729,1404],"./kn.json":[65611,278],"./ko.json":[67080,2966],"./kok.json":[47209,2599],"./ku.json":[18738,2883],"./ky.json":[89690,4785],"./lb.json":[3929,4770],"./lo.json":[19778,7464],"./lt.json":[41683,7169],"./lv.json":[54873,8898],"./mai.json":[11781,1613],"./mi.json":[11569,6701],"./mk.json":[67589,9921],"./ml.json":[24415,2685],"./mn.json":[50512,4718],"./mni.json":[81597,5401],"./mr.json":[97747,1911],"./ms.json":[81588,9924],"./mt.json":[25081,9399],"./my.json":[8608,6790],"./ne.json":[8572,9377],"./nl.json":[52355,6773],"./nn.json":[52874,9414],"./no.json":[48005,9979],"./or.json":[26728,1012],"./pa.json":[15042,6946],"./pa_Arab.json":[43578,9994],"./pcm.json":[91163,5104],"./pl.json":[61335,1095],"./ps.json":[51828,678],"./pt.json":[38543,5041],"./pt_PT.json":[8063,1546],"./qu.json":[15821,8031],"./rm.json":[5014,5887],"./ro.json":[34064,9864],"./ru.json":[95222,8395],"./rw.json":[12710,346],"./sa.json":[69343,2243],"./sat.json":[51243,7855],"./sc.json":[1319,2874],"./sd.json":[67728,6826],"./si.json":[5044,4354],"./sk.json":[45626,2350],"./sl.json":[76091,1553],"./so.json":[93761,625],"./sq.json":[1230,4368],"./sr.json":[60445,3887],"./sr_Cyrl_BA.json":[38940,6060],"./sr_Latn.json":[21650,8681],"./sr_Latn_BA.json":[78328,5115],"./su.json":[54395,1959],"./sv.json":[3418,3241],"./sw.json":[11958,7585],"./sw_KE.json":[35001,3994],"./ta.json":[92930,7897],"./te.json":[8748,4786],"./tg.json":[20999,313],"./th.json":[23900,3951],"./ti.json":[368,3568],"./tk.json":[88770,1780],"./to.json":[95781,1584],"./tr.json":[92619,9978],"./tt.json":[87782,2569],"./ug.json":[19005,9757],"./uk.json":[82057,9871],"./ur.json":[13889,6797],"./uz.json":[45108,1056],"./vi.json":[97099,5224],"./wo.json":[9923,7303],"./xh.json":[29064,786],"./yo.json":[11971,8732],"./yo_BJ.json":[64533,9926],"./yue.json":[40648,1452],"./yue_Hans.json":[24800,4424],"./zh.json":[34626,457],"./zh_Hant.json":[82560,2767],"./zh_Hant_HK.json":[47677,1044],"./zu.json":[73784,9319]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n.t(o,19)))}o.keys=()=>Object.keys(r),o.id=1395,e.exports=o},19003:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u});var r=n(15861),o=n(93433),i=n(4942),s=n(64687),a=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;tt.displayText?.5:-.5;return t.score-e.score+n}))}},p=function(e){var t=e.dispatch,n=e.state,o=[],i="",s=null,c=null,l=function(e){return c&&c(),new Promise((function(n,r){s=setTimeout((function(){(function(e){return t("searchUsers",{query:e})})(e).then(n).catch(r)}),300),c=function(){clearTimeout(s),n([])}}))};return function(){var e=(0,r.Z)(a().mark((function e(t){var r,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.toLowerCase().substr(1),i!==r){e.next=3;break}return e.abrupt("return",o);case 3:if(o=[],i=r,r.includes("@")){e.next=8;break}return e.next=8,l(r);case 8:return s=n.users.users.filter((function(e){return e.screen_name.toLowerCase().startsWith(r)||e.name.toLowerCase().startsWith(r)})).slice(0,20).sort((function(e,t){var n=0,o=0;return n+=e.screen_name.toLowerCase().startsWith(r)?2:0,o+=t.screen_name.toLowerCase().startsWith(r)?2:0,n+=e.name.toLowerCase().startsWith(r)?1:0,10*((o+=t.name.toLowerCase().startsWith(r)?1:0)-n)+(e.name>t.name?1:-1)+(e.screen_name>t.screen_name?1:-1)})).map((function(e){return{user:e,displayText:e.screen_name_ui,detailText:e.name,imageUrl:e.profile_image_url_original,replacement:"@"+e.screen_name+" "}})),o=s||[],e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},92820:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(93433),o=n(29439),i=n(44925),s=n(42348),a=n.n(s),c=n(27955),l=n.n(c),u=n(66252);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n|<(\w+)\s?.*?\/?>)/gi.exec(e);return t&&(t[1]||t[2])},m=function(e,t){var n=e.substring(1,e.length-1).replace(new RegExp("^"+h(e)),"").replace(/\/?$/,"").trim(),r=Array.from(n.matchAll(/([a-z0-9-]+)(?:=("[^"]+?"|'[^']+?'))?/gi)).map((function(e){var t=(0,o.Z)(e,3);return t[0],[t[1],t[2]]})).map((function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];return r?[n,r.substring(1,r.length-1)]:[n,!0]}));return Object.fromEntries(r.filter(t||function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1],i=n.toLowerCase();return"style"!==i&&("class"!==i||"greentext"===r||"cyantext"===r)}))},f=function(e,t,n){for(var r=[],o="",i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),n=[],r=[["",n]],o="",i=null,s=function(){return r[r.length-1][1]},a=function(){""!==o&&(s().push(o),o="")},c=function(e){s().push([e])},u=function(e){var t=s(),n=[l()(e),[]];r.push(n),t.push(n)},d=function(e){var t=r[r.length-1];h(r[r.length-1][0])===h(e)?(t.push(e),r.pop()):s().push(e)},p=0;p"!==m&&null!==i)i+=m;else if(">"===m&&null!==i){var f=i+=m;i=null;var g=h(f);"/"===f[1]?d(f):t.has(g)||"/"===f[f.length-2]?c(f):u(f)}else o+=m}return i&&(o+=i),a(),n}(t).map((function t(r,i,a,l){if("string"==typeof r){var p=""===r.trim();return r.includes("\n")&&(n=null),p?(s=r,i!==a.length-1&&null!==n?r.trim():r):(n=null,r.includes(":")&&(r=["",f(r,e.emoji,(function(e){var t=e.shortcode,n=e.url;return(0,u.Wm)(w.Z,{class:"emoji img",src:n,title:":".concat(t,":"),alt:":".concat(t,":")},null)}))]),r)}if(Array.isArray(r)){var v=r,y=(0,o.Z)(v,3),_=y[0],k=y[1],S=y[2],j=h(_),O=m(_,(function(){return!0})),C=m(_),z=null===n||k&&"string"==typeof k[0]&&k[0].match(/^\s/)?"":s;switch(j){case"br":n=null;break;case"img":return["",[z,(I=_,(0,u.Wm)(w.Z,(0,u.dG)(m(I),{class:"img"}),null))],""];case"a":if(!e.handleLinks)break;if(O.class&&O.class.includes("mention"))return function(t,r){var o=P(t,r,g++);return o.notifying=e.attentions.some((function(e){return e.statusnet_profile_url===o.url})),c.push(o),null===n&&(n=[]),n.push(o),n.length>b.d&&d.push(o),1===n.length?(0,u.Wm)(b.Z,{mentions:n},null):""}(C,k);n=null;break;case"span":if(e.handleLinks&&O.class&&O.class.includes("h-card"))return["",k.map(t),""]}return void 0!==k?["",[z,[_,k.map(t),S]],""]:["",[z,r],""]}var I})),k=(0,r.Z)(_).reverse().map((function t(n,s,c,d){var f;if("string"==typeof n)return""===n.trim()?n:(y||(y=!0),l()(n));if(Array.isArray(n)){var g=(0,o.Z)(n,2),w=g[0],b=g[1],_=""===w?"":h(w);switch(_){case"a":if(!e.handleLinks)break;var k=m(w,(function(){return!0})),S=m(w,(function(){return!0}));if(k.class&&k.class.includes("hashtag")||"tag"===k.rel)return function(e,t,n){var r=P(e,t,v++),o=(r.index,(0,i.Z)(r,O));p.push(o),n||a.push(o);var s=o.url,c=o.tag,l=o.content;return(0,u.Wm)(j,{url:s,tag:c,content:l},null)}(S,b,y);S.target="_blank";var C=(0,r.Z)(b).reverse().map(t).reverse();return(0,u.Wm)("a",S,[C]);case"":return(0,r.Z)(b).reverse().map(t).reverse()}if(void 0!==b){var z=Array.isArray(b)?(0,r.Z)(b).reverse().map(t).reverse():b;return(0,u.Wm)(_,m(w),"function"==typeof(f=z)||"[object Object]"===Object.prototype.toString.call(f)&&!(0,u.lA)(f)?z:{default:function(){return[z]}})}return(0,u.Wm)(_,null,null)}return n})).reverse(),S=(0,u.Wm)("span",{class:"RichContent"},[k]),C={lastTags:a,writtenMentions:c,writtenTags:p,invisibleMentions:d};return this.$emit("parseReady",C),S}};var P=function(e,t,n){var r=t.map((function e(t){return"string"==typeof t?t:t[1].map(e).join("")})).join("");return{index:n,url:e.href,tag:e["data-tag"],content:a()(t).join(""),textContent:r}},z=function(e,t){var n=new Set(["p","div"]),o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),o=new Set(["address","article","aside","blockquote","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","ol","p","pre","section","table","ul"]),i=new Set(["br"]),s=new Set([].concat((0,r.Z)(o.values()),(0,r.Z)(i.values()))),a=new Set(s),c=g(n);try{for(c.s();!(e=c.n()).done;){var l=e.value;a.delete(l)}}catch(e){c.e(e)}finally{c.f()}for(var u=new Set([].concat((0,r.Z)(a.values()),(0,r.Z)(n.values()))),d=[],p=[],m="",f=null,v=function(){m.trim().length>0?d.push({level:[].concat(p),text:m}):d.push(m),m=""},w=function(e){v(),d.push(e)},b=function(e){v(),d.push(e),p.unshift(h(e))},y=function(e){p[0]===h(e)?(v(),d.push(e),p.shift()):m+=e},_=0;_"!==k&&null!==f)f+=k;else if(">"===k&&null!==f){var S=f+=k;f=null;var j=h(S);u.has(j)?i.has(j)?w(S):a.has(j)?"/"===S[1]?y(S):"/"===S[S.length-2]?w(S):b(S):m+=S:m+=S}else"\n"===k?w(k):m+=k}return f&&(m+=f),v(),d}(e);return{newHtml:o.reverse().map((function(e,r,o){if(!e.text)return e;var i=e.text;if(t&&e.level.every((function(e){return n.has(e)}))&&(i.includes(">")||i.includes("<"))){var s=i.replace(/<[^>]+?>/gi,"").replace(/@\w+/gi,"").trim();if(s.startsWith(">"))return"".concat(i,"");if(s.startsWith("<"))return"".concat(i,"")}return i})).reverse().join("")}}},79354:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4942),o=n(66252),i=n(989),s=n(57810);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var c=function(e){return e.findIndex((function(e){return e.props}))};const l={name:"TabSwitcher",props:{renderOnlyFocused:{required:!1,type:Boolean,default:!1},onSwitch:{required:!1,type:Function,default:void 0},activeTab:{required:!1,type:String,default:void 0},scrollableTabs:{required:!1,type:Boolean,default:!1},sideTabBar:{required:!1,type:Boolean,default:!1},bodyScrollLock:{required:!1,type:Boolean,default:!1}},data:function(){return{active:c(this.slots())}},computed:function(e){for(var t=1;t{var t={ja:"ja_pedantic"};e.exports={languages:["ar","ca","cs","de","eo","en","es","et","eu","fi","fr","ga","he","hu","it","ja","ja_easy","ko","nb","nl","oc","pl","pt","ro","ru","sk","te","uk","zh","zh_Hant"],langCodeToJsonName:function(e){return t[e]||e},langCodeToCldrName:function(e){return e},ensureFinalFallback:function(e){var t=Array.isArray(e)?e:[e];return t.includes("en")?t:t.concat(["en"])}}},72617:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r,o=n(15861),i=n(64687),s=n.n(i),a=n(8312),c=function(e){return n(27650)("./".concat((0,a.langCodeToJsonName)(e),".json"))};const l={languages:a.languages,default:{en:n(88797).default},setLanguage:(r=(0,o.Z)(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n,!a.languages.includes(o)){e.next=5;break}return e.next=3,c(n);case 3:r=e.sent,t.setLocaleMessage(n,r.default);case 5:t.locale=n;case 6:case"end":return e.stop()}var o}),e)}))),function(e,t){return r.apply(this,arguments)})}},78892:(e,t,n)=>{"use strict";var r=n(15861),o=n(64687),i=n.n(o),s=n(989),a=(n(67810),n(73152));try{new EventTarget}catch(e){window.EventTarget=a.Z}const c={state:{settingsModalState:"hidden",settingsModalLoaded:!1,settingsModalTargetTab:null,settings:{currentSaveStateNotice:null,noticeClearTimeout:null,notificationPermission:null},browserSupport:{cssFilter:window.CSS&&window.CSS.supports&&(window.CSS.supports("filter","drop-shadow(0 0)")||window.CSS.supports("-webkit-filter","drop-shadow(0 0)"))},layoutType:"normal",globalNotices:[],layoutHeight:0,lastTimeline:null},mutations:{settingsSaved:function(e,t){var n=t.success,r=t.error;n?(e.noticeClearTimeout&&clearTimeout(e.noticeClearTimeout),e.settings.currentSaveStateNotice={error:!1,data:n},e.settings.noticeClearTimeout=setTimeout((function(){return delete e.settings.currentSaveStateNotice}),2e3)):e.settings.currentSaveStateNotice={error:!0,errorData:r}},setNotificationPermission:function(e,t){e.notificationPermission=t},setLayoutType:function(e,t){e.layoutType=t},closeSettingsModal:function(e){e.settingsModalState="hidden"},togglePeekSettingsModal:function(e){switch(e.settingsModalState){case"minimized":return void(e.settingsModalState="visible");case"visible":return void(e.settingsModalState="minimized");default:throw new Error("Illegal minimization state of settings modal")}},openSettingsModal:function(e){e.settingsModalState="visible",e.settingsModalLoaded||(e.settingsModalLoaded=!0)},setSettingsModalTargetTab:function(e,t){e.settingsModalTargetTab=t},pushGlobalNotice:function(e,t){e.globalNotices.push(t)},removeGlobalNotice:function(e,t){e.globalNotices=e.globalNotices.filter((function(e){return e!==t}))},setLayoutHeight:function(e,t){e.layoutHeight=t},setLayoutWidth:function(e,t){e.layoutWidth=t},setLastTimeline:function(e,t){e.lastTimeline=t}},actions:{setPageTitle:function(e){var t=e.rootState,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";document.title="".concat(n," ").concat(t.instance.name)},settingsSaved:function(e,t){var n=e.commit;e.dispatch,n("settingsSaved",{success:t.success,error:t.error})},setNotificationPermission:function(e,t){(0,e.commit)("setNotificationPermission",t)},closeSettingsModal:function(e){(0,e.commit)("closeSettingsModal")},openSettingsModal:function(e){(0,e.commit)("openSettingsModal")},togglePeekSettingsModal:function(e){(0,e.commit)("togglePeekSettingsModal")},clearSettingsModalTargetTab:function(e){(0,e.commit)("setSettingsModalTargetTab",null)},openSettingsModalTab:function(e,t){var n=e.commit;n("setSettingsModalTargetTab",t),n("openSettingsModal")},pushGlobalNotice:function(e,t){var n=e.commit,r=e.dispatch,o=e.state,i=t.messageKey,s=t.messageArgs,a=void 0===s?{}:s,c=t.level,l=void 0===c?"error":c,u=t.timeout,d=void 0===u?0:u;n("pushGlobalNotice",{messageKey:i,messageArgs:a,level:l});var p=o.globalNotices[o.globalNotices.length-1];return d&&setTimeout((function(){return r("removeGlobalNotice",p)}),d),p},removeGlobalNotice:function(e,t){(0,e.commit)("removeGlobalNotice",t)},setLayoutHeight:function(e,t){(0,e.commit)("setLayoutHeight",t)},setLayoutWidth:function(e,t){var n=e.commit,r=e.state,o=e.rootGetters,i=e.rootState,s=t;void 0!==t?n("setLayoutWidth",t):s=r.layoutWidth;var a=s<=800?"mobile":"normal";"none"!==o.mergedConfig.thirdColumnMode&&i.users.currentUser?n("setLayoutType",s>=1300?"wide":a):n("setLayoutType",a)},setLastTimeline:function(e,t){(0,e.commit)("setLastTimeline",t)}}};var l=n(29439),u=n(93433),d=n(4942),p=n(77394),h=n(40454),m=n(77776),f=n(85565),g=n(8312);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;tr?1:nt?1:0})):["utf"],replacement:":".concat(n,": ")}})).sort(d),n("setInstanceOption",{name:"customEmoji",value:p}),t.next=17;break;case 16:throw o;case 17:t.next=23;break;case 19:t.prev=19,t.t0=t.catch(1),console.warn("Can't load custom emojis"),console.warn(t.t0);case 23:case"end":return t.stop()}}),t,null,[[1,19]])})))()},setTheme:function(e,t){var n=e.commit,r=e.rootState;n("setInstanceOption",{name:"theme",value:t}),(0,p.I3)(t).then((function(e){if(n("setInstanceOption",{name:"themeData",value:e}),!r.config.customTheme){var t=e.source;!e.theme||t&&t.themeEngineVersion===h.we?(0,p._v)(t):(0,p._v)(e.theme)}}))},fetchEmoji:function(e){var t=e.dispatch,n=e.state;n.customEmojiFetched||(n.customEmojiFetched=!0,t("getCustomEmoji")),n.emojiFetched||(n.emojiFetched=!0,t("getStaticEmoji"))},getKnownDomains:function(e){return(0,r.Z)(i().mark((function t(){var n,r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.rootState,t.prev=1,t.next=4,m.ZP.fetchKnownDomains({credentials:r.users.currentUser.credentials});case 4:o=t.sent,n("setKnownDomains",o),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.warn("Can't load known domains"),console.warn(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,8]])})))()}}};var j=n(14176),O=n.n(j),C=n(1469),P=n.n(C),z=n(10928),I=n.n(z),D=n(8804),x=n.n(D),T=n(82492),$=n.n(T),U=n(22762),M=n.n(U),A=n(84753),L=n.n(A),E=n(13311),F=n.n(E),R=n(30998),N=n.n(R),q=n(66073),Z=n.n(q),W=n(12571),B=n.n(W),H=n(82729),V=n.n(H),K=n(52230);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return{statuses:[],statusesObject:{},faves:[],visibleStatuses:[],visibleStatusesObject:{},newStatusCount:0,maxId:0,minId:0,minVisibleId:0,loading:!1,followers:[],friends:[],userId:e,flushMarker:0}},Q=function(){return{desktopNotificationSilence:!0,maxId:0,minId:Number.POSITIVE_INFINITY,data:[],idStore:{},loading:!1}},X=function(){return{allStatuses:[],allStatusesObject:{},conversationsObject:{},maxId:0,notifications:Q(),favorites:new Set,timelines:{mentions:J(),public:J(),user:J(),favorites:J(),media:J(),publicAndExternal:J(),friends:J(),tag:J(),dms:J(),bookmarks:J(),list:J()}}},ee=function(e,t,n){var r=t[n.id];return r?($()(r,O()(n,(function(e,t){return null===e||"user"===t}))),r.attachments.splice(r.attachments.length),{item:r,new:!1}):(function(e){e.deleted=!1,e.attachments=e.attachments||[]}(n),e.push(n),t[n.id]=n,{item:n,new:!0})},te=function(e,t){var n=Number(e.id),r=Number(t.id),o=!Number.isNaN(n),i=!Number.isNaN(r);return o&&i?n>r?-1:1:o&&!i?1:!o&&i||e.id>t.id?-1:1},ne=function(e){return e.visibleStatuses=e.visibleStatuses.sort(te),e.statuses=e.statuses.sort(te),e.minVisibleId=(I()(e.visibleStatuses)||{}).id,e},re=function(e,t){var n=ee(e.allStatuses,e.allStatusesObject,t);if(n.new){var r=n.item,o=e.conversationsObject,i=r.statusnet_conversation_id;o[i]?o[i].push(r):o[i]=[r]}return n},oe=function(e,t){e.notifications.maxId=t.id>e.notifications.maxId?t.id:e.notifications.maxId,e.notifications.minId=t.id0?M()(n,"id").id:0),g=p.minId||(n.length>0?L()(n,"id").id:0),v=i&&(g>m.maxId||0===m.maxId)&&n.length>0,w=i&&(f0;if(!l&&v&&(m.maxId=g),!l&&w&&(m.minId=f),"user"!==i&&"media"!==i||m.userId===u){var b=function(t,n){var r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=re(e,t),c=s.item;if(s.new){if("status"===c.type&&F()(c.attentions,{id:a.id})){var l=e.timelines.mentions;m!==l&&(ee(l.statuses,l.statusesObject,c),l.newStatusCount+=1,ne(l))}if("direct"===c.visibility){var u=e.timelines.dms;ee(u.statuses,u.statusesObject,c),u.newStatusCount+=1,ne(u)}}return i&&o&&(r=ee(m.statuses,m.statusesObject,c)),i&&n?ee(m.visibleStatuses,m.visibleStatusesObject,c):i&&o&&r.new&&(m.newStatusCount+=1),c},y={status:function(e){b(e,o)},edit:function(e){b(e,o)},retweet:function(e){var t=b(e.retweeted_status,!1,!1);(i&&F()(m.statuses,(function(e){return e.retweeted_status?e.id===t.id||e.retweeted_status.id===t.id:e.id===t.id}))?b(e,!1,!1):b(e,o)).retweeted_status=t},favorite:function(t){e.favorites.has(t.id)||(e.favorites.add(t.id),function(e,t){var n=F()(h,{id:e.in_reply_to_status_id});n&&(e.user.id===a.id?n.favorited=!0:n.fave_num+=1)}(t))},deletion:function(t){var n=t.uri,r=F()(h,{uri:n});r&&(function(e,t){V()(e.allStatuses,{id:t.id}),V()(e.notifications.data,(function(e){return e.action.id===t.id}));var n=t.statusnet_conversation_id;e.conversationsObject[n]&&V()(e.conversationsObject[n],{id:t.id})}(e,r),i&&(V()(m.statuses,{uri:n}),V()(m.visibleStatuses,{uri:n})))},follow:function(e){},default:function(e){console.log("unknown status type"),console.log(e)}};Z()(n,(function(e){var t=e.type;(y[t]||y.default)(e)})),i&&"bookmarks"!==i&&ne(m)}},addNewNotifications:function(e,t){var n=t.dispatch,r=t.notifications,o=(t.older,t.visibleNotificationTypes,t.rootGetters,t.newNotificationSideEffects);Z()(r,(function(t){if(!(0,K.nU)(t))return console.error("Invalid notification:",t),void oe(e,t);(0,K.Gr)(t.type)&&(t.action=re(e,t.action).item,t.status=t.status&&re(e,t.status).item),"pleroma:report"===t.type&&n("addReport",t.report),"pleroma:emoji_reaction"===t.type&&n("fetchEmojiReactionsBy",t.status.id),e.notifications.idStore.hasOwnProperty(t.id)?t.seen&&(e.notifications.idStore[t.id].seen=!0):(oe(e,t),e.notifications.data.push(t),e.notifications.idStore[t.id]=t,o(t))}))},removeStatus:function(e,t){var n=t.timeline,r=t.userId,o=e.timelines[n];r&&(V()(o.statuses,{user:{id:r}}),V()(o.visibleStatuses,{user:{id:r}}),o.minVisibleId=o.visibleStatuses.length>0?I()(o.visibleStatuses).id:0,o.maxId=o.statuses.length>0?x()(o.statuses).id:0)},showNewStatuses:function(e,t){var n=t.timeline,r=e.timelines[n];r.newStatusCount=0,r.visibleStatuses=B()(r.statuses,0,50),r.minVisibleId=I()(r.visibleStatuses).id,r.minId=r.minVisibleId,r.visibleStatusesObject={},Z()(r.visibleStatuses,(function(e){r.visibleStatusesObject[e.id]=e}))},resetStatuses:function(e){var t=X();Object.entries(t).forEach((function(t){var n=(0,l.Z)(t,2),r=n[0],o=n[1];e[r]=o}))},clearTimeline:function(e,t){var n=t.timeline,r=t.excludeUserId,o=void 0!==r&&r?e.timelines[n].userId:void 0;e.timelines[n]=J(o)},clearNotifications:function(e){e.notifications=Q()},setFavorited:function(e,t){var n=t.status,r=t.value,o=e.allStatusesObject[n.id];o.favorited!==r&&(r?o.fave_num++:o.fave_num--),o.favorited=r},setFavoritedConfirm:function(e,t){var n=t.status,r=t.user,o=e.allStatusesObject[n.id];o.favorited=n.favorited,o.fave_num=n.fave_num;var i=N()(o.favoritedBy,{id:r.id});-1===i||o.favorited?-1===i&&o.favorited&&o.favoritedBy.push(r):o.favoritedBy.splice(i,1)},setMutedStatus:function(e,t){var n=e.allStatusesObject[t.id];n.thread_muted=t.thread_muted,void 0!==n.thread_muted&&e.conversationsObject[n.statusnet_conversation_id].forEach((function(e){e.thread_muted=n.thread_muted}))},setRetweeted:function(e,t){var n=t.status,r=t.value,o=e.allStatusesObject[n.id];o.repeated!==r&&(r?o.repeat_num++:o.repeat_num--),o.repeated=r},setRetweetedConfirm:function(e,t){var n=t.status,r=t.user,o=e.allStatusesObject[n.id];o.repeated=n.repeated,o.repeat_num=n.repeat_num;var i=N()(o.rebloggedBy,{id:r.id});-1===i||o.repeated?-1===i&&o.repeated&&o.rebloggedBy.push(r):o.rebloggedBy.splice(i,1)},setBookmarked:function(e,t){var n=t.status,r=t.value;e.allStatusesObject[n.id].bookmarked=r},setBookmarkedConfirm:function(e,t){var n=t.status;e.allStatusesObject[n.id].bookmarked=n.bookmarked},setDeleted:function(e,t){var n=t.status,r=e.allStatusesObject[n.id];r&&(r.deleted=!0)},setManyDeleted:function(e,t){Object.values(e.allStatusesObject).forEach((function(e){t(e)&&(e.deleted=!0)}))},setLoading:function(e,t){var n=t.timeline,r=t.value;e.timelines[n].loading=r},setNsfw:function(e,t){var n=t.id,r=t.nsfw;e.allStatusesObject[n].nsfw=r},setNotificationsLoading:function(e,t){var n=t.value;e.notifications.loading=n},setNotificationsSilence:function(e,t){var n=t.value;e.notifications.desktopNotificationSilence=n},markNotificationsAsSeen:function(e){Z()(e.notifications.data,(function(e){e.seen=!0}))},markSingleNotificationAsSeen:function(e,t){var n=t.id,r=F()(e.notifications.data,(function(e){return e.id===n}));r&&(r.seen=!0)},dismissNotification:function(e,t){var n=t.id;e.notifications.data=e.notifications.data.filter((function(e){return e.id!==n}))},dismissNotifications:function(e,t){var n=t.finder;e.notifications.data=e.notifications.data.filter((function(e){return n}))},updateNotification:function(e,t){var n=t.id,r=t.updater,o=F()(e.notifications.data,(function(e){return e.id===n}));o&&r(o)},queueFlush:function(e,t){var n=t.timeline,r=t.id;e.timelines[n].flushMarker=r},queueFlushAll:function(e){Object.keys(e.timelines).forEach((function(t){e.timelines[t].flushMarker=e.timelines[t].maxId}))},addRepeats:function(e,t){var n=t.id,r=t.rebloggedByUsers,o=t.currentUser,i=e.allStatusesObject[n];i.rebloggedBy=r.filter((function(e){return e})),i.repeat_num=i.rebloggedBy.length,i.repeated=!!i.rebloggedBy.find((function(e){var t=e.id;return o.id===t}))},addFavs:function(e,t){var n=t.id,r=t.favoritedByUsers,o=t.currentUser,i=e.allStatusesObject[n];i.favoritedBy=r.filter((function(e){return e})),i.fave_num=i.favoritedBy.length,i.favorited=!!i.favoritedBy.find((function(e){var t=e.id;return o.id===t}))},addEmojiReactionsBy:function(e,t){var n=t.id,r=t.emojiReactions;t.currentUser,e.allStatusesObject[n].emoji_reactions=r},addOwnReaction:function(e,t){var n=t.id,r=t.emoji,o=t.currentUser,i=e.allStatusesObject[n],s=N()(i.emoji_reactions,{name:r}),a=i.emoji_reactions[s]||{name:r,count:0,accounts:[]},c=Y(Y({},a),{},{count:a.count+1,me:!0,accounts:[].concat((0,u.Z)(a.accounts),[o])});s>=0?i.emoji_reactions[s]=c:i.emoji_reactions=[].concat((0,u.Z)(i.emoji_reactions),[c])},removeOwnReaction:function(e,t){var n=t.id,r=t.emoji,o=t.currentUser,i=e.allStatusesObject[n],s=N()(i.emoji_reactions,{name:r});if(!(s<0)){var a=i.emoji_reactions[s],c=a.accounts||[],l=Y(Y({},a),{},{count:a.count-1,me:!1,accounts:c.filter((function(e){return e.id!==o.id}))});l.count>0?i.emoji_reactions[s]=l:i.emoji_reactions=i.emoji_reactions.filter((function(e){return e.name!==r}))}},updateStatusWithPoll:function(e,t){var n=t.id,r=t.poll;e.allStatusesObject[n].poll=r},setVirtualHeight:function(e,t){var n=t.statusId,r=t.height;e.allStatusesObject[n].virtualHeight=r}},se={state:X(),actions:{addNewStatuses:function(e,t){var n=e.rootState,r=e.commit,o=t.statuses,i=t.showImmediately,s=void 0!==i&&i,a=t.timeline,c=void 0!==a&&a,l=t.noIdUpdate,u=void 0!==l&&l,d=t.userId,p=t.pagination;r("addNewStatuses",{statuses:o,showImmediately:s,timeline:c,noIdUpdate:u,user:n.users.currentUser,userId:d,pagination:p})},addNewNotifications:function(e,t){var n=t.notifications,r=t.older;(0,e.commit)("addNewNotifications",{dispatch:e.dispatch,notifications:n,older:r,rootGetters:e.rootGetters,newNotificationSideEffects:function(t){(0,K.nJ)(e,t)}})},setNotificationsLoading:function(e,t){e.rootState,(0,e.commit)("setNotificationsLoading",{value:t.value})},setNotificationsSilence:function(e,t){e.rootState,(0,e.commit)("setNotificationsSilence",{value:t.value})},fetchStatus:function(e,t){var n=e.rootState,r=e.dispatch;return n.api.backendInteractor.fetchStatus({id:t}).then((function(e){return r("addNewStatuses",{statuses:[e]})}))},fetchStatusSource:function(e,t){var n=e.rootState;return e.dispatch,m.ZP.fetchStatusSource({id:t.id,credentials:n.users.currentUser.credentials})},fetchStatusHistory:function(e,t){return e.rootState,e.dispatch,m.ZP.fetchStatusHistory({status:t})},deleteStatus:function(e,t){var n=e.rootState;(0,e.commit)("setDeleted",{status:t}),m.ZP.deleteStatus({id:t.id,credentials:n.users.currentUser.credentials})},deleteStatusById:function(e,t){var n=e.rootState;(0,e.commit)("setDeleted",{status:n.statuses.allStatusesObject[t]})},markStatusesAsDeleted:function(e,t){(0,e.commit)("setManyDeleted",t)},favorite:function(e,t){var n=e.rootState,r=e.commit;r("setFavorited",{status:t,value:!0}),n.api.backendInteractor.favorite({id:t.id}).then((function(e){return r("setFavoritedConfirm",{status:e,user:n.users.currentUser})}))},unfavorite:function(e,t){var n=e.rootState,r=e.commit;r("setFavorited",{status:t,value:!1}),n.api.backendInteractor.unfavorite({id:t.id}).then((function(e){return r("setFavoritedConfirm",{status:e,user:n.users.currentUser})}))},fetchPinnedStatuses:function(e,t){var n=e.rootState,r=e.dispatch;n.api.backendInteractor.fetchPinnedStatuses({id:t}).then((function(e){return r("addNewStatuses",{statuses:e,timeline:"user",userId:t,showImmediately:!0,noIdUpdate:!0})}))},pinStatus:function(e,t){var n=e.rootState,r=e.dispatch;return n.api.backendInteractor.pinOwnStatus({id:t}).then((function(e){return r("addNewStatuses",{statuses:[e]})}))},unpinStatus:function(e,t){var n=e.rootState,r=e.dispatch;n.api.backendInteractor.unpinOwnStatus({id:t}).then((function(e){return r("addNewStatuses",{statuses:[e]})}))},muteConversation:function(e,t){var n=e.rootState,r=e.commit;return n.api.backendInteractor.muteConversation({id:t}).then((function(e){return r("setMutedStatus",e)}))},unmuteConversation:function(e,t){var n=e.rootState,r=e.commit;return n.api.backendInteractor.unmuteConversation({id:t}).then((function(e){return r("setMutedStatus",e)}))},retweet:function(e,t){var n=e.rootState,r=e.commit;r("setRetweeted",{status:t,value:!0}),n.api.backendInteractor.retweet({id:t.id}).then((function(e){return r("setRetweetedConfirm",{status:e.retweeted_status,user:n.users.currentUser})}))},unretweet:function(e,t){var n=e.rootState,r=e.commit;r("setRetweeted",{status:t,value:!1}),n.api.backendInteractor.unretweet({id:t.id}).then((function(e){return r("setRetweetedConfirm",{status:e,user:n.users.currentUser})}))},bookmark:function(e,t){var n=e.rootState,r=e.commit;r("setBookmarked",{status:t,value:!0}),n.api.backendInteractor.bookmarkStatus({id:t.id}).then((function(e){r("setBookmarkedConfirm",{status:e})}))},unbookmark:function(e,t){var n=e.rootState,r=e.commit;r("setBookmarked",{status:t,value:!1}),n.api.backendInteractor.unbookmarkStatus({id:t.id}).then((function(e){r("setBookmarkedConfirm",{status:e})}))},queueFlush:function(e,t){e.rootState,(0,e.commit)("queueFlush",{timeline:t.timeline,id:t.id})},queueFlushAll:function(e){e.rootState,(0,e.commit)("queueFlushAll")},markNotificationsAsSeen:function(e){var t=e.rootState;(0,e.commit)("markNotificationsAsSeen"),m.ZP.markNotificationsAsSeen({id:t.statuses.notifications.maxId,credentials:t.users.currentUser.credentials})},markSingleNotificationAsSeen:function(e,t){var n=e.rootState,r=e.commit,o=t.id;r("markSingleNotificationAsSeen",{id:o}),m.ZP.markNotificationsAsSeen({single:!0,id:o,credentials:n.users.currentUser.credentials})},dismissNotificationLocal:function(e,t){e.rootState,(0,e.commit)("dismissNotification",{id:t.id})},dismissNotification:function(e,t){var n=e.rootState,r=e.commit,o=t.id;r("dismissNotification",{id:o}),n.api.backendInteractor.dismissNotification({id:o})},updateNotification:function(e,t){e.rootState,(0,e.commit)("updateNotification",{id:t.id,updater:t.updater})},fetchFavsAndRepeats:function(e,t){var n=e.rootState,r=e.commit;Promise.all([n.api.backendInteractor.fetchFavoritedByUsers({id:t}),n.api.backendInteractor.fetchRebloggedByUsers({id:t})]).then((function(e){var o=(0,l.Z)(e,2),i=o[0],s=o[1];r("addFavs",{id:t,favoritedByUsers:i,currentUser:n.users.currentUser}),r("addRepeats",{id:t,rebloggedByUsers:s,currentUser:n.users.currentUser})}))},reactWithEmoji:function(e,t){var n=e.rootState,r=e.dispatch,o=e.commit,i=t.id,s=t.emoji,a=n.users.currentUser;a&&(o("addOwnReaction",{id:i,emoji:s,currentUser:a}),n.api.backendInteractor.reactWithEmoji({id:i,emoji:s}).then((function(e){r("fetchEmojiReactionsBy",i)})))},unreactWithEmoji:function(e,t){var n=e.rootState,r=e.dispatch,o=e.commit,i=t.id,s=t.emoji,a=n.users.currentUser;a&&(o("removeOwnReaction",{id:i,emoji:s,currentUser:a}),n.api.backendInteractor.unreactWithEmoji({id:i,emoji:s}).then((function(e){r("fetchEmojiReactionsBy",i)})))},fetchEmojiReactionsBy:function(e,t){var n=e.rootState,r=e.commit;n.api.backendInteractor.fetchEmojiReactions({id:t}).then((function(e){r("addEmojiReactionsBy",{id:t,emojiReactions:e,currentUser:n.users.currentUser})}))},fetchFavs:function(e,t){var n=e.rootState,r=e.commit;n.api.backendInteractor.fetchFavoritedByUsers({id:t}).then((function(e){return r("addFavs",{id:t,favoritedByUsers:e,currentUser:n.users.currentUser})}))},fetchRepeats:function(e,t){var n=e.rootState,r=e.commit;n.api.backendInteractor.fetchRebloggedByUsers({id:t}).then((function(e){return r("addRepeats",{id:t,rebloggedByUsers:e,currentUser:n.users.currentUser})}))},search:function(e,t){var n=t.q,r=t.resolve,o=t.limit,i=t.offset,s=t.following,a=t.type;return e.rootState.api.backendInteractor.search2({q:n,resolve:r,limit:o,offset:i,following:s,type:a}).then((function(t){return e.commit("addNewUsers",t.accounts),e.commit("addNewStatuses",{statuses:t.statuses}),t}))},setVirtualHeight:function(e,t){(0,e.commit)("setVirtualHeight",{statusId:t.statusId,height:t.height})}},mutations:ie};const ae=se;var ce={setLists:function(e,t){e.allLists=t},setList:function(e,t){var n=t.listId,r=t.title;e.allListsObject[n]||(e.allListsObject[n]={accountIds:[]}),e.allListsObject[n].title=r;var o=F()(e.allLists,{id:n});o?o.title=r:e.allLists.push({id:n,title:r})},setListAccounts:function(e,t){var n=t.listId,r=t.accountIds;e.allListsObject[n]||(e.allListsObject[n]={accountIds:[]}),e.allListsObject[n].accountIds=r},addListAccount:function(e,t){var n=t.listId,r=t.accountId;e.allListsObject[n]||(e.allListsObject[n]={accountIds:[]}),e.allListsObject[n].accountIds.push(r)},removeListAccount:function(e,t){var n=t.listId,r=t.accountId;e.allListsObject[n]||(e.allListsObject[n]={accountIds:[]});var o=e.allListsObject[n].accountIds,i=new Set(o);i.delete(r),e.allListsObject[n].accountIds=(0,u.Z)(i)},deleteList:function(e,t){var n=t.listId;delete e.allListsObject[n],V()(e.allLists,(function(e){return e.id===n}))}},le={state:{allLists:[],allListsObject:{}},mutations:ce,actions:{setLists:function(e,t){(0,e.commit)("setLists",t)},createList:function(e,t){var n=e.rootState,r=e.commit,o=t.title;return n.api.backendInteractor.createList({title:o}).then((function(e){return r("setList",{listId:e.id,title:o}),e}))},fetchList:function(e,t){var n=e.rootState,r=e.commit,o=t.listId;return n.api.backendInteractor.getList({listId:o}).then((function(e){return r("setList",{listId:e.id,title:e.title})}))},fetchListAccounts:function(e,t){var n=e.rootState,r=e.commit,o=t.listId;return n.api.backendInteractor.getListAccounts({listId:o}).then((function(e){return r("setListAccounts",{listId:o,accountIds:e})}))},setList:function(e,t){var n=e.rootState,r=e.commit,o=t.listId,i=t.title;n.api.backendInteractor.updateList({listId:o,title:i}),r("setList",{listId:o,title:i})},setListAccounts:function(e,t){var n=e.rootState,r=e.commit,o=t.listId,i=t.accountIds,s=n.lists.allListsObject[o].accountIds||[],a=i.filter((function(e){return!s.includes(e)})),c=s.filter((function(e){return!i.includes(e)}));r("setListAccounts",{listId:o,accountIds:i}),a.length>0&&n.api.backendInteractor.addAccountsToList({listId:o,accountIds:a}),c.length>0&&n.api.backendInteractor.removeAccountsFromList({listId:o,accountIds:c})},addListAccount:function(e,t){var n=e.rootState,r=e.commit,o=t.listId,i=t.accountId;return n.api.backendInteractor.addAccountsToList({listId:o,accountIds:[i]}).then((function(e){return r("addListAccount",{listId:o,accountId:i}),e}))},removeListAccount:function(e,t){var n=e.rootState,r=e.commit,o=t.listId,i=t.accountId;return n.api.backendInteractor.removeAccountsFromList({listId:o,accountIds:[i]}).then((function(e){return r("removeListAccount",{listId:o,accountId:i}),e}))},deleteList:function(e,t){var n=e.rootState,r=e.commit,o=t.listId;n.api.backendInteractor.deleteList({listId:o}),r("deleteList",{listId:o})}},getters:{findListTitle:function(e){return function(t){if(e.allListsObject[t])return e.allListsObject[t].title}},findListAccounts:function(e){return function(t){return(0,u.Z)(e.allListsObject[t].accountIds)}}}};const ue=le;var de=n(44908),pe=n.n(de),he=n(57043),me=n.n(he),fe=n(30236),ge=n.n(fe),ve=n(35161),we=n.n(ve),be=n(39693),ye=n.n(be),_e=n(68929),ke=n.n(_e),Se=n(22626),je=function(e){var t=e.store,n=e.credentials,r=e.timeline,o=void 0===r?"friends":r,i=e.older,s=void 0!==i&&i,a=e.showImmediately,c=void 0!==a&&a,l=e.userId,u=void 0!==l&&l,d=e.listId,p=void 0!==d&&d,h=e.tag,f=void 0!==h&&h,g=e.until,v=e.since,w={timeline:o,credentials:n},b=t.rootState||t.state,y=t.getters,_=b.statuses.timelines[ke()(o)],k=y.mergedConfig,S=k.hideMutedPosts,j=k.replyVisibility,O=!!b.users.currentUser;s?w.until=g||_.minId:void 0===v?w.since=_.maxId:null!==v&&(w.since=v),w.userId=u,w.listId=p,w.tag=f,w.withMuted=!S,O&&["friends","public","publicAndExternal"].includes(o)&&(w.replyVisibility=j);var C=_.statuses.length;return m.ZP.fetchTimeline(w).then((function(e){if(e.errors)throw new Error("".concat(e.status," ").concat(e.statusText));var n=e.data,r=e.pagination;return!s&&n.length>=20&&!_.loading&&C>0&&t.dispatch("queueFlush",{timeline:o,id:_.maxId}),function(e){var t=e.store,n=e.statuses,r=e.timeline,o=e.showImmediately,i=e.userId,s=e.listId,a=e.pagination,c=ke()(r);t.dispatch("addNewStatuses",{timeline:c,userId:i,listId:s,statuses:n,showImmediately:o,pagination:a})}({store:t,statuses:n,timeline:o,showImmediately:c,userId:u,listId:p,pagination:r}),{statuses:n,pagination:r}})).catch((function(e){t.dispatch("pushGlobalNotice",{level:"error",messageKey:"timeline.error",messageArgs:[e.message],timeout:5e3})}))},Oe={fetchAndUpdate:je,startFetching:function(e){var t=e.timeline,n=void 0===t?"friends":t,r=e.credentials,o=e.store,i=e.userId,s=void 0!==i&&i,a=e.listId,c=void 0!==a&&a,l=e.tag,u=void 0!==l&&l,d=(o.rootState||o.state).statuses.timelines[ke()(n)],p=0===d.visibleStatuses.length;return d.userId=s,d.listId=c,je({timeline:n,credentials:r,store:o,showImmediately:p,userId:s,listId:c,tag:u}),(0,Se.F)((function(){return je({timeline:n,credentials:r,store:o,userId:s,listId:c,tag:u})}),1e4)}};const Ce=Oe;var Pe=n(15568);const ze=function(e){var t=e.credentials,n=e.store,r=function(){return function(e){var t=e.store,n=e.credentials;return m.ZP.fetchFollowRequests({credentials:n}).then((function(e){t.commit("setFollowRequests",e),t.commit("addNewUsers",e)}),(function(){})).catch((function(){}))}({credentials:t,store:n})};return r(),(0,Se.F)(r,1e4)};var Ie={startFetching:function(e){var t=e.credentials,n=e.store,r=function(){return function(e){var t=e.store,n=e.credentials;return m.ZP.fetchLists({credentials:n}).then((function(e){t.commit("setLists",e)}),(function(){})).catch((function(){}))}({credentials:t,store:n})};return r(),(0,Se.F)(r,24e4)}};const De=Ie;function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return Promise.all(t.map((function(t){return Je(e,t)})))},unblockUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Promise.all(t.map((function(t){return Qe(e,t)})))},editUserNote:function(e,t){return function(e,t){var n=t.id,r=t.comment;return e.rootState.api.backendInteractor.editUserNote({id:n,comment:r}).then((function(t){return e.commit("updateUserRelationship",[t])}))}(e,t)},fetchMutes:function(e){return e.rootState.api.backendInteractor.fetchMutes().then((function(t){return e.commit("saveMuteIds",we()(t,"id")),e.commit("addNewUsers",t),t}))},muteUser:function(e,t){return Xe(e,t)},unmuteUser:function(e,t){return et(e,t)},hideReblogs:function(e,t){return function(e,t){return e.rootState.api.backendInteractor.followUser({id:t,reblogs:!1}).then((function(t){e.commit("updateUserRelationship",[t])}))}(e,t)},showReblogs:function(e,t){return function(e,t){return e.rootState.api.backendInteractor.followUser({id:t,reblogs:!0}).then((function(t){return e.commit("updateUserRelationship",[t])}))}(e,t)},muteUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Promise.all(t.map((function(t){return Xe(e,t)})))},unmuteUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Promise.all(t.map((function(t){return et(e,t)})))},fetchDomainMutes:function(e){return e.rootState.api.backendInteractor.fetchDomainMutes().then((function(t){return e.commit("saveDomainMutes",t),t}))},muteDomain:function(e,t){return tt(e,t)},unmuteDomain:function(e,t){return nt(e,t)},muteDomains:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Promise.all(t.map((function(t){return tt(e,t)})))},unmuteDomains:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Promise.all(t.map((function(t){return nt(e,t)})))},fetchFriends:function(e,t){var n=e.rootState,r=e.commit,o=n.users.usersObject[t],i=I()(o.friendIds);return n.api.backendInteractor.fetchFriends({id:t,maxId:i}).then((function(e){return r("addNewUsers",e),r("saveFriendIds",{id:t,friendIds:we()(e,"id")}),e}))},fetchFollowers:function(e,t){var n=e.rootState,r=e.commit,o=n.users.usersObject[t],i=I()(o.followerIds);return n.api.backendInteractor.fetchFollowers({id:t,maxId:i}).then((function(e){return r("addNewUsers",e),r("saveFollowerIds",{id:t,followerIds:we()(e,"id")}),e}))},clearFriends:function(e,t){(0,e.commit)("clearFriends",t)},clearFollowers:function(e,t){(0,e.commit)("clearFollowers",t)},subscribeUser:function(e,t){var n=e.rootState,r=e.commit;return n.api.backendInteractor.subscribeUser({id:t}).then((function(e){return r("updateUserRelationship",[e])}))},unsubscribeUser:function(e,t){var n=e.rootState,r=e.commit;return n.api.backendInteractor.unsubscribeUser({id:t}).then((function(e){return r("updateUserRelationship",[e])}))},toggleActivationStatus:function(e,t){var n=e.rootState,r=e.commit,o=t.user;(o.deactivated?n.api.backendInteractor.activateUser:n.api.backendInteractor.deactivateUser)({user:o}).then((function(e){var t=!e.is_active;r("updateActivationStatus",{user:e,deactivated:t})}))},registerPushNotifications:function(e){var t=e.state.currentUser.credentials,n=e.rootState.instance.vapidPublicKey;!function(e,t,n,r){Be()&&He().then((function(n){return function(e,t,n){if(!t)return Promise.reject(new Error("Web Push is disabled in config"));if(!n)return Promise.reject(new Error("VAPID public key is not found"));var r,o,i,s={userVisibleOnly:!0,applicationServerKey:(r=n,o=(r+"=".repeat((4-r.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),i=window.atob(o),Uint8Array.from((0,u.Z)(i).map((function(e){return e.charCodeAt(0)}))))};return e.pushManager.subscribe(s)}(n,e,t)})).then((function(e){return function(e,t,n){return window.fetch("/api/v1/push/subscription/",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({subscription:e,data:{alerts:{follow:n.follows,favourite:n.likes,mention:n.mentions,reblog:n.repeats,move:n.moves}}})}).then((function(e){if(!e.ok)throw new Error("Bad status code from server.");return e.json()})).then((function(e){if(!e.id)throw new Error("Bad response from server.");return e}))}(e,n,r)})).catch((function(e){return console.warn("Failed to setup Web Push Notifications: ".concat(e.message))}))}(e.rootState.config.webPushNotifications,n,t,e.rootState.config.notificationVisibility)},unregisterPushNotifications:function(e){var t;t=e.state.currentUser.credentials,Be()&&Promise.all([Ve(t),He().then((function(e){return function(e){return e.pushManager.getSubscription().then((function(e){if(null!==e)return e.unsubscribe()}))}(e).then((function(t){return[e,t]}))})).then((function(e){var t=(0,l.Z)(e,2),n=t[0];return t[1]||console.warn("Push subscription cancellation wasn't successful, killing SW anyway..."),n.unregister().then((function(e){e||console.warn("Failed to kill SW")}))}))]).catch((function(e){return console.warn("Failed to disable Web Push Notifications: ".concat(e.message))}))},addNewUsers:function(e,t){(0,e.commit)("addNewUsers",t)},addNewStatuses:function(e,t){var n=t.statuses,r=we()(n,"user"),o=ye()(we()(n,"retweeted_status.user"));e.commit("addNewUsers",r),e.commit("addNewUsers",o),Z()(n,(function(t){e.commit("setUserForStatus",t),e.commit("setPinnedToUser",t)})),Z()(ye()(we()(n,"retweeted_status")),(function(t){e.commit("setUserForStatus",t),e.commit("setPinnedToUser",t)}))},addNewNotifications:function(e,t){var n=t.notifications,r=we()(n,"from_profile"),o=we()(n,"target").filter((function(e){return e})),i=n.map((function(e){return e.id}));e.commit("addNewUsers",r),e.commit("addNewUsers",o);var s=e.rootState.statuses.notifications.idStore,a=Object.entries(s).filter((function(e){var t=(0,l.Z)(e,2),n=t[0];return t[1],i.includes(n)})).map((function(e){var t=(0,l.Z)(e,2);return t[0],t[1]}));Z()(a,(function(t){e.commit("setUserForNotification",t)}))},searchUsers:function(e,t){var n=e.rootState,r=e.commit,o=t.query;return n.api.backendInteractor.searchUsers({query:o}).then((function(e){return r("addNewUsers",e),e}))},signUp:function(e,t){return(0,r.Z)(i().mark((function n(){var r,o,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit("signUpPending"),r=e.rootState,n.prev=2,n.next=5,r.api.backendInteractor.register({params:Ge({},t)});case 5:o=n.sent,e.commit("signUpSuccess"),e.commit("setToken",o.access_token),e.dispatch("loginUser",o.access_token),n.next=16;break;case 11:throw n.prev=11,n.t0=n.catch(2),s=n.t0.message,e.commit("signUpFailure",s),n.t0;case 16:case"end":return n.stop()}}),n,null,[[2,11]])})))()},getCaptcha:function(e){return(0,r.Z)(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.rootState.api.backendInteractor.getCaptcha());case 1:case"end":return t.stop()}}),t)})))()},logout:function(e){var t=e.rootState,n=t.oauth,r=t.instance,o=Ge(Ge({},n),{},{commit:e.commit,instance:r.server});return qe.getOrCreateApp(o).then((function(e){var t={app:e,instance:o.instance,token:n.userToken};return qe.revokeToken(t)})).then((function(){e.commit("clearCurrentUser"),e.dispatch("disconnectFromSocket"),e.commit("clearToken"),e.dispatch("stopFetchingTimeline","friends"),e.commit("setBackendInteractor",$e(e.getters.getToken())),e.dispatch("stopFetchingNotifications"),e.dispatch("stopFetchingLists"),e.dispatch("stopFetchingFollowRequests"),e.commit("clearNotifications"),e.commit("resetStatuses"),e.dispatch("resetChats"),e.dispatch("setLastTimeline","public-timeline"),e.dispatch("setLayoutWidth",Ue()),e.dispatch("setLayoutHeight",Me()),e.commit("clearServerSideStorage")}))},loginUser:function(e,t){return new Promise((function(n,r){var o=e.commit;o("beginLogin"),e.rootState.api.backendInteractor.verifyCredentials(t).then((function(i){if(i.error){var s=i.error;o("endLogin"),401===s.status?r(new Error("Wrong username or password")):r(new Error("An error occurred, please try again"))}else{var a=i;a.credentials=t,a.blockIds=[],a.muteIds=[],a.domainMutes=[],o("setCurrentUser",a),o("setServerSideStorage",a),o("addNewUsers",[a]),e.dispatch("fetchEmoji"),(c=window.Notification,c?"default"===c.permission?c.requestPermission():Promise.resolve(c.permission):Promise.resolve(null)).then((function(e){return o("setNotificationPermission",e)})),o("setBackendInteractor",$e(t)),e.dispatch("pushServerSideStorage"),a.token&&(e.dispatch("setWsToken",a.token),e.dispatch("initializeSocket")),e.dispatch("startFetchingLists"),a.locked&&e.dispatch("startFetchingFollowRequests"),e.getters.mergedConfig.useStreamingApi?(e.dispatch("fetchTimeline",{timeline:"friends",since:null}),e.dispatch("fetchNotifications",{since:null}),e.dispatch("enableMastoSockets",!0).catch((function(e){console.error("Failed initializing MastoAPI Streaming socket",e)})).then((function(){e.dispatch("fetchChats",{latest:!0}),setTimeout((function(){return e.dispatch("setNotificationsSilence",!1)}),1e4)}))):(e.dispatch("startFetchingTimeline",{timeline:"friends"}),e.dispatch("startFetchingNotifications"),e.dispatch("startFetchingChats")),e.dispatch("fetchMutes"),e.dispatch("setLayoutWidth",Ue()),e.dispatch("setLayoutHeight",Me()),e.rootState.api.backendInteractor.fetchFriends({id:a.id}).then((function(e){return o("addNewUsers",e)}))}var c;o("endLogin"),n()})).catch((function(e){console.log(e),o("endLogin"),r(new Error("Failed to connect to server, try again"))}))}))}}};const it=ot;var st=n(36459),at=n(87462),ct=n(44925),lt=n(64689),ut=function(e,t){if(t.lastMessage&&(e.rootState.chats.currentChatId!==t.id||document.hidden)&&e.rootState.users.currentUser.id!==t.lastMessage.account_id){var n={tag:t.lastMessage.id,title:t.account.name,icon:t.account.profile_image_url,body:t.lastMessage.content};t.lastMessage.attachment&&"image"===t.lastMessage.attachment.type&&(n.image=t.lastMessage.attachment.preview_url),(0,lt.w)(e.rootState,n)}},dt=n(90837),pt=["timeline"];function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t0&&e._version>0},en=function(e){e.prefsStorage=e.prefsStorage||{simple:{},collections:{}},Object.entries(Gt.prefsStorage.simple).forEach((function(t){var n=(0,l.Z)(t,2),r=n[0],o=n[1];"number"!=typeof o&&"boolean"!=typeof o&&(console.warn("Preference simple.".concat(r," as invalid type, reinitializing")),$t()(e.prefsStorage.simple,r,Gt.prefsStorage.simple[r]))})),Object.entries(Gt.prefsStorage.collections).forEach((function(t){var n=(0,l.Z)(t,2),r=n[0],o=n[1];Array.isArray(o)||(console.warn("Preference collections.".concat(r," as invalid type, reinitializing")),$t()(e.prefsStorage.collections,r,Gt.prefsStorage.collections[r]))}))},tn=function(){for(var e=arguments.length,t=new Array(e),n=0;nt.timestamp?1:-1})),n.startsWith("collections")){var o,i=St()(r,(function(e){return"removeFromCollection"===e.operation}));return o=i>0?r.slice(i):r,bt()(o,(function(e,t){return e.path===t.path&&e.operation===t.operation&&"addToCollection"===e.operation&&e.args[0]===t.args[0]}))}return n.startsWith("simple")?_t()(r):r}));return Pt()(i).sort((function(e,t){return e.timestamp>t.timestamp?1:-1}))},nn={clearServerSideStorage:function(e,t){Ht({},Mt()(Gt))},setServerSideStorage:function(e,t){var n=t.storage;e.raw=n;var r=e.cache;r&&r._user!==t.fqn&&(console.warn("cache belongs to another user! reinitializing local cache!"),r=null);var o=function(e,t){var n={recent:null,stale:null,needUpload:!1},r=Xt(e||{}),o=Xt(t||{});return!o&&r?(n.needUpload=!0,console.debug("Nothing valid stored on server, assuming cache to be source of truth"),n.recent=e,n.stale=t):!r&&o?(console.debug("Valid storage on server found, no local cache found, using live as source of truth"),n.recent=t,n.stale=e):r&&o?(console.debug("Both sources have valid data, figuring things out..."),t._timestamp===e._timestamp&&t._version===e._version?(console.debug("Same version/timestamp on both source, source of truth irrelevant"),n.recent=e,n.stale=t):(console.debug("Different timestamp, figuring out which one is more recent"),t._timestamp1&&(console.debug("Local cached data has newer version, seeing if there any reverse migrations that can be applied"),window._PLEROMA_HOTPATCH&&window._PLEROMA_HOTPATCH.reverseMigrations)?(console.debug("Found hotpatch migration, applying"),window._PLEROMA_HOTPATCH.reverseMigrations.call({},"serverSideStorage",{from:e._version,to:1},e)):e):e}(r),n),i=o.recent,s=o.stale,a=o.needsUpload,c=t.created_at>Vt,d=c?Yt:Gt.flagStorage,p=!1;if(null===i&&(console.debug("Data is empty, initializing for ".concat(c?"new":"existing"," user")),i=Qt({flagStorage:Ht({},d),prefsStorage:Ht({},Gt.prefsStorage)})),!a&&i&&s){console.debug("Checking if data needs merging...");var h=i,m=(h._timestamp,h._version,(0,ct.Z)(h,Zt)),f=(s._timestamp,s._version,(0,ct.Z)(s,Wt));p=!Lt()(m,f),console.debug("Data ".concat(p?"needs":"doesn't need"," merging"))}var g,v,w=function(e,t){return Array.from(new Set([].concat((0,u.Z)(Object.keys((0,Et.IU)((e||{}).flagStorage||{}))),(0,u.Z)(Object.keys((0,Et.IU)((t||{}).flagStorage||{}))))))}(i,s);p?(console.debug("Merging the data..."),g=function(e,t,n){return t.flagStorage?e.flagStorage?Object.fromEntries(n.map((function(n){var r=e.flagStorage[n],o=t.flagStorage[n];return[n,Number((r>o?r:o)||0)]}))):t.flagStorage:e.flagStorage}(i,s,w),en(i),en(s),v=function(e,t,n){if(!t)return e;if(!e)return t;var r=e._journal,o=(0,ct.Z)(e,qt),i=t._journal,s=Ht({},o),a=tn(i,r);return a.forEach((function(e){var t=e.path,n=(e.timestamp,e.operation),r=(e.command,e.args);if(t.startsWith("_"))console.error("journal contains entry to edit internal (starts with _) field '".concat(t,"', something is incorrect here, ignoring."));else switch(n){case"set":$t()(s,t,r[0]);break;case"addToCollection":$t()(s,t,Array.from(new Set(xt()(s,t)).add(r[0])));break;case"removeFromCollection":var o=new Set(xt()(s,t));o.delete(r[0]),$t()(s,t,Array.from(o));break;case"reorderCollection":var i=(0,l.Z)(r,2),a=i[0],c=i[1];$t()(s,t,Jt(xt()(s,t),a,c));break;default:console.error("Unknown journal operation: '".concat(n,"', did we forget to run reverse migrations beforehand?"))}})),Ht(Ht({},s),{},{_journal:a})}(i.prefsStorage,s.prefsStorage)):(g=i.flagStorage,v=i.prefsStorage),g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt.flagStorage,n=Ht({},e),r=Object.keys(e);if(e.reset>=1e3&&e.reset<=Kt){console.debug("Received command to trim the flags");var o=new Set(Object.keys(t));n={},r.forEach((function(t){o.has(t)&&(n[t]=e[t])})),e.reset===Kt&&(console.debug("Received command to reset the flags"),Object.keys(t).forEach((function(e){n[e]=0})))}else e.reset>0&&e.reset<9e3&&(console.debug("Received command to reset the flags"),r.forEach((function(e){n[e]=0})));return n.reset=0,n}(g),i.flagStorage=Ht(Ht({},d),g),i.prefsStorage=Ht(Ht({},Gt.prefsStorage),v),e.dirty=p||a,e.cache=i,s&&i&&!e.dirty&&(e.cache._timestamp=Math.min(s._timestamp,i._timestamp)),e.flagStorage=e.cache.flagStorage,e.prefsStorage=e.cache.prefsStorage},setFlag:function(e,t){var n=t.flag,r=t.value;e.flagStorage[n]=r,e.dirty=!0},setPreference:function(e,t){var n=t.path,r=t.value;n.startsWith("_")?console.error("tried to edit internal (starts with _) field '".concat(n,"', ignoring.")):($t()(e.prefsStorage,n,r),e.prefsStorage._journal=[].concat((0,u.Z)(e.prefsStorage._journal),[{operation:"set",path:n,args:[r],timestamp:Date.now()}]),e.dirty=!0)},addCollectionPreference:function(e,t){var n=t.path,r=t.value;if(n.startsWith("_"))console.error("tried to edit internal (starts with _) field '".concat(n,"', ignoring."));else{var o=new Set(xt()(e.prefsStorage,n));o.add(r),$t()(e.prefsStorage,n,(0,u.Z)(o)),e.prefsStorage._journal=[].concat((0,u.Z)(e.prefsStorage._journal),[{operation:"addToCollection",path:n,args:[r],timestamp:Date.now()}]),e.dirty=!0}},removeCollectionPreference:function(e,t){var n=t.path,r=t.value;if(n.startsWith("_"))console.error("tried to edit internal (starts with _) field '".concat(n,"', ignoring."));else{var o=new Set(xt()(e.prefsStorage,n));o.delete(r),$t()(e.prefsStorage,n,(0,u.Z)(o)),e.prefsStorage._journal=[].concat((0,u.Z)(e.prefsStorage._journal),[{operation:"removeFromCollection",path:n,args:[r],timestamp:Date.now()}]),e.dirty=!0}},reorderCollectionPreference:function(e,t){var n=t.path,r=t.value,o=t.movement;if(n.startsWith("_"))console.error("tried to edit internal (starts with _) field '".concat(n,"', ignoring."));else{var i=xt()(e.prefsStorage,n),s=Jt(i,r,o);$t()(e.prefsStorage,n,s),e.prefsStorage._journal=[].concat((0,u.Z)(e.prefsStorage._journal),[{operation:"arrangeCollection",path:n,args:[r],timestamp:Date.now()}]),e.dirty=!0}},updateCache:function(e,t){var n=t.username;e.prefsStorage._journal=tn(e.prefsStorage._journal),e.cache=Qt({flagStorage:(0,Et.IU)(e.flagStorage),prefsStorage:(0,Et.IU)(e.prefsStorage)},n)}};const rn={state:Ht({},Mt()(Gt)),mutations:nn,actions:{pushServerSideStorage:function(e){var t=e.state,n=e.rootState,r=e.commit,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.force,s=void 0!==i&&i,a=t.dirty||s;if(console.log(a),a){r("updateCache",{username:n.users.currentUser.fqn});var c={pleroma_settings_store:{"pleroma-fe":t.cache}};n.api.backendInteractor.updateProfile({params:c}).then((function(e){r("setServerSideStorage",e),t.dirty=!1}))}}}},on={state:{messages:[],channel:{state:""},joined:!1},mutations:{setChannel:function(e,t){e.channel=t},addMessage:function(e,t){e.messages.push(t),e.messages=e.messages.slice(-19,20)},setMessages:function(e,t){e.messages=t.slice(-19,20)},setJoined:function(e,t){e.joined=t}},actions:{initializeShout:function(e,t){var n=t.channel("chat:public");n.joinPush.receive("ok",(function(){e.commit("setJoined",!0)})),n.onClose((function(){e.commit("setJoined",!1)})),n.onError((function(){e.commit("setJoined",!1)})),n.on("new_msg",(function(t){e.commit("addMessage",t)})),n.on("messages",(function(t){var n=t.messages;e.commit("setMessages",n)})),n.join(),e.commit("setChannel",n)}}},sn={state:{clientId:!1,clientSecret:!1,appToken:!1,userToken:!1},mutations:{setClientData:function(e,t){var n=t.clientId,r=t.clientSecret;e.clientId=n,e.clientSecret=r},setAppToken:function(e,t){e.appToken=t},setToken:function(e,t){e.userToken=t},clearToken:function(e){e.userToken=!1,delete e.token}},getters:{getToken:function(e){return function(){return e.userToken||e.token||e.appToken}},getUserToken:function(e){return function(){return e.userToken||e.token}}}};var an="password",cn="token",ln="totp",un="recovery",dn=function(e){e.strategy=e.initStrategy,e.settings={}};const pn={namespaced:!0,state:{settings:{},strategy:an,initStrategy:an},getters:{settings:function(e,t){return e.settings},requiredPassword:function(e,t,n){return e.strategy===an},requiredToken:function(e,t,n){return e.strategy===cn},requiredTOTP:function(e,t,n){return e.strategy===ln},requiredRecovery:function(e,t,n){return e.strategy===un}},mutations:{setInitialStrategy:function(e,t){t&&(e.initStrategy=t,e.strategy=t)},requirePassword:function(e){e.strategy=an},requireToken:function(e){e.strategy=cn},requireMFA:function(e,t){var n=t.settings;e.settings=n,e.strategy=ln},requireRecovery:function(e){e.strategy=un},requireTOTP:function(e){e.strategy=ln},abortMFA:function(e){dn(e)}},actions:{login:function(e,t){return(0,r.Z)(i().mark((function n(){var r,o,s,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,s=e.commit,a=t.access_token,s("setToken",a,{root:!0}),n.next=5,o("loginUser",a,{root:!0});case 5:dn(r);case 6:case"end":return n.stop()}}),n)})))()}}};var hn=n(58394),mn=new Set(["image","video","audio","flash"]),fn={state:{media:[],currentIndex:0,activated:!1},mutations:{setMedia:function(e,t){e.media=t},setCurrentMedia:function(e,t){e.activated=!0,e.currentIndex=t},close:function(e){e.activated=!1}},actions:{setMedia:function(e,t){var n=e.commit,r=t.filter((function(e){var t=hn.Z.fileType(e.mimetype);return mn.has(t)}));n("setMedia",r)},setCurrentMedia:function(e,t){(0,e.commit)("setCurrentMedia",e.state.media.indexOf(t)||0)},closeMediaViewer:function(e){(0,e.commit)("close")}}};const gn=fn,vn={state:{tokens:[]},actions:{fetchTokens:function(e){var t=e.rootState,n=e.commit;t.api.backendInteractor.fetchOAuthTokens().then((function(e){n("swapTokens",e)}))},revokeToken:function(e,t){var n=e.rootState,r=e.commit,o=e.state;n.api.backendInteractor.revokeOAuthToken({id:t}).then((function(e){201===e.status&&r("swapTokens",o.tokens.filter((function(e){return e.id!==t})))}))}},mutations:{swapTokens:function(e,t){e.tokens=t}}};var wn=n(63105),bn=n.n(wn),yn={state:{reportModal:{userId:null,statuses:[],preTickedIds:[],activated:!1},reports:{}},mutations:{openUserReportingModal:function(e,t){var n=t.userId,r=t.statuses,o=t.preTickedIds;e.reportModal.userId=n,e.reportModal.statuses=r,e.reportModal.preTickedIds=o,e.reportModal.activated=!0},closeUserReportingModal:function(e){e.reportModal.activated=!1},setReportState:function(e,t){var n=t.id,r=t.state;e.reports[n].state=r},addReport:function(e,t){e.reports[t.id]=t}},actions:{openUserReportingModal:function(e,t){var n=e.rootState,r=e.commit,o=t.userId,i=t.statusIds,s=void 0===i?[]:i,a=s.map((function(e){return n.statuses.allStatusesObject[e]})),c=s,l=a.concat(bn()(n.statuses.allStatuses,(function(e){return e.user.id===o&&!c.includes(e.id)})));r("openUserReportingModal",{userId:o,statuses:l,preTickedIds:c})},closeUserReportingModal:function(e){(0,e.commit)("closeUserReportingModal")},setReportState:function(e,t){var n=e.commit,r=e.dispatch,o=e.rootState,i=t.id,s=t.state,a=o.reports.reports[i].state;n("setReportState",{id:i,state:s}),o.api.backendInteractor.setReportState({id:i,state:s}).catch((function(e){console.error("Failed to set report state",e),r("pushGlobalNotice",{level:"error",messageKey:"general.generic_error_message",messageArgs:[e.message],timeout:5e3}),n("setReportState",{id:i,state:a})}))},addReport:function(e,t){(0,e.commit)("addReport",t)}}};const _n=yn;const kn={state:{trackedPolls:{},pollsObject:{}},mutations:{mergeOrAddPoll:function(e,t){var n=e.pollsObject[t.id];t.expired=Date.now()>Date.parse(t.expires_at),e.pollsObject[t.id]=n?$()(n,t):t},trackPoll:function(e,t){var n=e.trackedPolls[t];e.trackedPolls[t]=n?n+1:1},untrackPoll:function(e,t){var n=e.trackedPolls[t];e.trackedPolls[t]=n?n-1:0}},actions:{mergeOrAddPoll:function(e,t){(0,e.commit)("mergeOrAddPoll",t)},updateTrackedPoll:function(e,t){var n=e.rootState,r=e.dispatch,o=e.commit;n.api.backendInteractor.fetchPoll({pollId:t}).then((function(e){setTimeout((function(){n.polls.trackedPolls[t]&&r("updateTrackedPoll",t)}),3e4),o("mergeOrAddPoll",e)}))},trackPoll:function(e,t){var n=e.rootState,r=e.commit,o=e.dispatch;n.polls.trackedPolls[t]||setTimeout((function(){return o("updateTrackedPoll",t)}),3e4),r("trackPoll",t)},untrackPoll:function(e,t){(0,e.commit)("untrackPoll",t)},votePoll:function(e,t){var n=e.rootState,r=e.commit,o=(t.id,t.pollId),i=t.choices;return n.api.backendInteractor.vote({pollId:o,choices:i}).then((function(e){return r("mergeOrAddPoll",e),e}))}}},Sn={state:{params:null,modalActivated:!1},mutations:{openPostStatusModal:function(e,t){e.params=t,e.modalActivated=!0},closePostStatusModal:function(e){e.modalActivated=!1}},actions:{openPostStatusModal:function(e,t){(0,e.commit)("openPostStatusModal",t)},closePostStatusModal:function(e){(0,e.commit)("closePostStatusModal")}}},jn={state:{params:null,modalActivated:!1},mutations:{openEditStatusModal:function(e,t){e.params=t,e.modalActivated=!0},closeEditStatusModal:function(e){e.modalActivated=!1}},actions:{openEditStatusModal:function(e,t){(0,e.commit)("openEditStatusModal",t)},closeEditStatusModal:function(e){(0,e.commit)("closeEditStatusModal")}}},On={state:{params:{},modalActivated:!1},mutations:{openStatusHistoryModal:function(e,t){e.params=t,e.modalActivated=!0},closeStatusHistoryModal:function(e){e.modalActivated=!1}},actions:{openStatusHistoryModal:function(e,t){(0,e.commit)("openStatusHistoryModal",t)},closeStatusHistoryModal:function(e){(0,e.commit)("closeStatusHistoryModal")}}};var Cn=n(73303),Pn=n.n(Cn),zn=n(75472),In=n.n(zn),Dn=n(71002),xn=n(73955),Tn=n.n(xn),$n=n(89734),Un=n.n($n);function Mn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return An(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?An(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function An(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.maxId)&&o&&(e.maxId=r.id),e.idIndex[r.id]||function(e,t){if(t.idempotency_key)return e.idempotencyKeyIndex[t.idempotency_key]}(e,r)||(e.lastSeenMessageId0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=void 0===t?"vuex-lz":t,r=e.paths,o=void 0===r?[]:r,i=e.getState,s=void 0===i?function(e,t){return t.getItem(e)}:i,a=e.setState,c=void 0===a?function(e,t,n){return Jn?n.setItem(e,t):(console.log("waiting for old state to be loaded..."),Promise.resolve())}:a,l=e.reducer,u=void 0===l?Qn:l,d=e.storage,p=void 0===d?er:d,h=e.subscriber,m=void 0===h?function(e){return function(t){return e.subscribe(t)}}:h;return s(n,p).then((function(e){return function(t){try{if(null!==e&&"object"===(0,Dn.Z)(e)){var r=e.users||{};r.usersObject={};var i=r.users||[];Z()(i,(function(e){r.usersObject[e.id]=e})),e.users=r,t.replaceState(Gn()({},t.state,e))}Jn=!0}catch(e){console.log("Couldn't load state"),console.error(e),Jn=!0}m(t)((function(e,r){try{Xn.includes(e.type)&&c(n,u(Mt()(r),o),p).then((function(n){void 0!==n&&("setOption"!==e.type&&"setCurrentUser"!==e.type||t.dispatch("settingsSaved",{success:n}))}),(function(n){"setOption"!==e.type&&"setCurrentUser"!==e.type||t.dispatch("settingsSaved",{error:n})}))}catch(e){console.log("Couldn't persist state:"),console.log(e)}}))}}))}const nr=function(e){e.subscribe((function(t,n){var r=n.instance.vapidPublicKey,o=n.config.webPushNotifications,i="granted"===n.interface.notificationPermission,s=n.users.currentUser,a="setCurrentUser"===t.type,c="setInstanceOption"===t.type&&"vapidPublicKey"===t.payload.name,l="setNotificationPermission"===t.type&&"granted"===t.payload,u="setOption"===t.type&&"webPushNotifications"===t.payload.name,d="setOption"===t.type&&"notificationVisibility"===t.payload.name;if(a||c||l||u||d){if(s&&r&&i&&o)return e.dispatch("registerPushNotifications");if(u&&!o)return e.dispatch("unregisterPushNotifications")}}))};var rr=n(72617),or=n(49963),ir=n(28339),sr=n(20425),ar=n.n(sr),cr=n(57810),lr=n(66252),ur=n(3577),dr=(0,lr._)("div",{id:"app_bg_wrapper",class:"app-bg-wrapper"},null,-1),pr=(0,lr._)("div",{class:"underlay"},null,-1),hr=(0,lr._)("div",{id:"notifs-sidebar"},null,-1),mr={key:0,class:"login-hint panel panel-default"},fr=(0,lr._)("div",{id:"modal"},null,-1),gr={class:"user-panel"},vr={key:"user-panel-signed",class:"panel panel-default signed-in"},wr={class:"login panel panel-default"},br={class:"panel-heading"},yr={class:"panel-body"},_r={class:"form-group"},kr={for:"username"},Sr=["disabled","placeholder"],jr={class:"form-group"},Or={for:"password"},Cr=["disabled"],Pr={class:"form-group"},zr={key:1,class:"form-group"},Ir={class:"form-group"},Dr={class:"login-bottom"},xr=["disabled"],Tr={key:0,class:"form-group"},$r={class:"alert error"};function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=n.isActive,o=n.href,i=n.navigate;return[(0,lr._)("li",(0,lr.dG)({class:["NavigationEntry menu-item",{"-active":r}]},e.$attrs),[((0,lr.wg)(),(0,lr.j4)((0,lr.LL)(e.routeTo?"a":"button"),{class:"main-link button-unstyled",href:o,onClick:i},{default:(0,lr.w5)((function(){return[(0,lr._)("span",null,[e.item.icon?((0,lr.wg)(),(0,lr.j4)(s,{key:0,"fixed-width":"",class:"fa-scale-110 menu-icon",icon:e.item.icon},null,8,["icon"])):(0,lr.kq)("",!0)]),e.item.iconLetter?((0,lr.wg)(),(0,lr.iD)("span",$o,(0,ur.zw)(e.item.iconLetter),1)):(0,lr.kq)("",!0),(0,lr._)("span",Uo,(0,ur.zw)(e.item.labelRaw||e.$t(e.item.label)),1)]})),_:2},1032,["href","onClick"])),(0,lr.WI)(e.$slots,"default"),e.item.badgeGetter&&e.getters[e.item.badgeGetter]?((0,lr.wg)(),(0,lr.iD)("div",Mo,(0,ur.zw)(e.getters[e.item.badgeGetter]),1)):(0,lr.kq)("",!0),e.showPin&&e.currentUser?((0,lr.wg)(),(0,lr.iD)("button",{key:1,type:"button",class:"button-unstyled extra-button",title:e.$t(e.isPinned?"general.unpin":"general.pin"),"aria-pressed":!!e.isPinned,onClick:t[0]||(t[0]=(0,or.iM)((function(t){return e.togglePin(e.item.name)}),["stop","prevent"]))},[e.showPin&&e.currentUser?((0,lr.wg)(),(0,lr.j4)(s,{key:0,"fixed-width":"",class:(0,ur.C_)(["fa-scale-110",{veryfaint:!e.isPinned(e.item.name)}]),transform:e.isPinned(e.item.name)?"":"rotate-45",icon:"thumbtack"},null,8,["class","transform"])):(0,lr.kq)("",!0)],8,Ao)):(0,lr.kq)("",!0)],16)]})),_:3},8,["to"])}]]);var Bo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.hasChats,r=t.hasAnnouncements,o=t.isFederating,i=t.isPrivate,s=t.currentUser;return e.filter((function(e){var t=e.criteria,a=e.anon,c=e.anonRoute,l=new Set(t||[]);return!(!o&&l.has("federating")||!s&&i&&l.has("!private")||!(s||a||c)||!(s&&s.locked||!l.has("lockedUser"))||!n&&l.has("chats")||!r&&l.has("announcements"))}))},Ho=function(e){return e.lists.allLists.map((function(e){return{name:"list-"+e.id,routeObject:{name:"lists-timeline",params:{id:e.id}},labelRaw:e.title,iconLetter:e.title[0]}}))};function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ko={props:["showPin"],components:{NavigationEntry:Wo},computed:function(e){for(var t=1;tt.scrollHeight&&this.$nextTick((function(){t&&(t.scrollTop=t.scrollHeight-t.offsetHeight)}))}}},ns=(0,Lr.Z)(ts,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("FAIcon"),a=(0,lr.up)("router-link");return e.collapsed&&e.floating?((0,lr.wg)(),(0,lr.iD)("div",Qi,[(0,lr._)("div",Xi,[(0,lr._)("div",{class:"panel-heading -stub timeline-heading shout-heading",onClick:t[3]||(t[3]=(0,or.iM)((function(){return e.togglePanel&&e.togglePanel.apply(e,arguments)}),["stop","prevent"]))},[(0,lr._)("div",es,[(0,lr.Wm)(s,{class:"icon",icon:"bullhorn"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("shoutbox.title")),1)])])])])):((0,lr.wg)(),(0,lr.iD)("div",qi,[(0,lr._)("div",Zi,[(0,lr._)("div",{class:(0,ur.C_)(["panel-heading timeline-heading",{"shout-heading":e.floating}]),onClick:t[0]||(t[0]=(0,or.iM)((function(){return e.togglePanel&&e.togglePanel.apply(e,arguments)}),["stop","prevent"]))},[(0,lr._)("div",Wi,[(0,lr.Uk)((0,ur.zw)(e.$t("shoutbox.title"))+" ",1),e.floating?((0,lr.wg)(),(0,lr.j4)(s,{key:0,icon:"times",class:"close-icon"})):(0,lr.kq)("",!0)])],2),(0,lr._)("div",Bi,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.messages,(function(t){return(0,lr.wg)(),(0,lr.iD)("div",{key:t.id,class:"shout-message"},[(0,lr._)("span",Hi,[(0,lr._)("img",{src:t.author.avatar},null,8,Vi)]),(0,lr._)("div",Ki,[(0,lr.Wm)(a,{class:"shout-name",to:e.userProfileLink(t.author)},{default:(0,lr.w5)((function(){return[(0,lr.Uk)((0,ur.zw)(t.author.username),1)]})),_:2},1032,["to"]),Gi,(0,lr._)("span",Yi,(0,ur.zw)(t.text),1)])])})),128))]),(0,lr._)("div",Ji,[(0,lr.wy)((0,lr._)("textarea",{"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.currentMessage=t}),class:"shout-input-textarea",rows:"1",onKeyup:t[2]||(t[2]=(0,or.D2)((function(t){return e.submit(e.currentMessage)}),["enter"]))},null,544),[[or.nr,e.currentMessage]])])])]))}]]);var rs=["src","alt","title"],os=["src","alt","title"],is=["title"],ss=["title"],as=["title"],cs={key:6,class:"description"},ls={class:"counter"},us={key:7,class:"loading-spinner"},ds=n(19236),ps=n(34133),hs=n(782);const ms={methods:{setTransform:function(e){var t=e.scale,n=e.x,r=e.y;this.$el.setTransform({scale:t,x:n,y:r})}},created:function(){hs.Z}},fs=(0,Lr.Z)(ms,[["render",function(e,t,n,r,o,i){return(0,lr.wg)(),(0,lr.iD)("pinch-zoom",(0,lr.dG)({class:"pinch-zoom-parent"},e.$attrs,(0,lr.mx)(e.$listeners,!0)),[(0,lr.WI)(e.$slots,"default")],16)}]]);var gs=n(15671),vs=n(43144),ws=function(e,t){return[t[0]-e[0],t[1]-e[1]]},bs=function(e){return[(t=e.touches[0]).screenX,t.screenY];var t},ys=function(e){return[e.clientX,e.clientY]},_s=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},ks=function(e){return[e[1],-e[0]]},Ss=function(e,t){return e[0]*t[0]+e[1]*t[1]},js=function(e,t){var n=Ss(e,t)/Ss(t,t);return[n*t[0],n*t[1]]};const Os={DIRECTION_LEFT:[-1,0],DIRECTION_RIGHT:[1,0],DIRECTION_UP:[0,-1],DIRECTION_DOWN:[0,1],swipeGesture:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return{direction:e,onSwipe:t,threshold:n,perpendicularTolerance:r,_startPos:[0,0],_swiping:!1}},beginSwipe:function(e,t){t._startPos=bs(e),t._swiping=!0},updateSwipe:function(e,t){if(t._swiping){var n=ws(t._startPos,bs(e));if(!(_s(n)0,n=js(r,t.direction),o=ks(t.direction),i=js(r,o);return _s(n)*t.perpendicularTolerance<_s(i)?0:e?1:-1}();this._swiped&&this.swipeEndCallback(o),this._reset(),_s(r)>=this.disableClickThreshold()&&"mouse"===e.pointerType&&(this._preventNextClick=!0)}}},{key:"click",value:function(e){this._preventNextClick||this.swipelessClickCallback(),this._reset()}}]),e}()},Cs={props:{direction:{type:Array},threshold:{type:Function,default:function(){return 30}},perpendicularTolerance:{type:Number,default:1}},methods:{handlePointerDown:function(e){this.$gesture.start(e)},handlePointerMove:function(e){this.$gesture.move(e)},handlePointerUp:function(e){this.$gesture.end(e)},handlePointerCancel:function(e){this.$gesture.cancel(e)},handleNativeClick:function(e){this.$gesture.click(e)},preview:function(e){this.$emit("preview-requested",e)},end:function(e){this.$emit("swipe-finished",e)},click:function(){this.$emit("swipeless-clicked")},cancel:function(){this.$emit("swipe-canceled")}},created:function(){this.$gesture=new Os.SwipeAndClickGesture({direction:this.direction,threshold:this.threshold,perpendicularTolerance:this.perpendicularTolerance,swipePreviewCallback:this.preview,swipeEndCallback:this.end,swipeCancelCallback:this.cancel,swipelessClickCallback:this.click})}},Ps=(0,Lr.Z)(Cs,[["render",function(e,t,n,r,o,i){return(0,lr.wg)(),(0,lr.iD)("div",(0,lr.dG)(e.$attrs,{onPointerdown:t[0]||(t[0]=function(){return e.handlePointerDown&&e.handlePointerDown.apply(e,arguments)}),onPointermove:t[1]||(t[1]=function(){return e.handlePointerMove&&e.handlePointerMove.apply(e,arguments)}),onPointerup:t[2]||(t[2]=function(){return e.handlePointerUp&&e.handlePointerUp.apply(e,arguments)}),onPointercancel:t[3]||(t[3]=function(){return e.handlePointerCancel&&e.handlePointerCancel.apply(e,arguments)}),onClick:t[4]||(t[4]=function(){return e.handleNativeClick&&e.handleNativeClick.apply(e,arguments)})}),[(0,lr.WI)(e.$slots,"default")],16)}]]);var zs=n(12394);Rt.vI.add(Nt.A35,Nt._tD,Nt.IJ7,Nt.NBC);const Is={components:{StillImage:ds.Z,VideoAttachment:ps.Z,PinchZoom:fs,SwipeClick:Ps,Modal:Ft.Z,Flash:zs.Z},data:function(){return{loading:!1,swipeDirection:Os.DIRECTION_LEFT,swipeThreshold:function(){return window.innerWidth*(1/4)},pinchZoomMinScale:1,pinchZoomScaleResetLimit:1.2}},computed:{showing:function(){return this.$store.state.mediaViewer.activated},media:function(){return this.$store.state.mediaViewer.media},description:function(){return this.currentMedia.description},currentIndex:function(){return this.$store.state.mediaViewer.currentIndex},currentMedia:function(){return this.media[this.currentIndex]},canNavigate:function(){return this.media.length>1},type:function(){return this.currentMedia?this.getType(this.currentMedia):null}},methods:{getType:function(e){return hn.Z.fileType(e.mimetype)},hide:function(){var e=this;setTimeout((function(){e.$store.dispatch("closeMediaViewer")}),100)},hideIfNotSwiped:function(e){var t=this.$refs.swipeClick;t?t.$gesture.click(e):this.hide()},goPrev:function(){if(this.canNavigate){var e=0===this.currentIndex?this.media.length-1:this.currentIndex-1,t=this.media[e];"image"===this.getType(t)&&(this.loading=!0),this.$store.dispatch("setCurrentMedia",t)}},goNext:function(){if(this.canNavigate){var e=this.currentIndex===this.media.length-1?0:this.currentIndex+1,t=this.media[e];"image"===this.getType(t)&&(this.loading=!0),this.$store.dispatch("setCurrentMedia",t)}},onImageLoaded:function(){this.loading=!1},handleSwipePreview:function(e){this.$refs.pinchZoom.setTransform({scale:1,x:e[0],y:0})},handleSwipeEnd:function(e){this.$refs.pinchZoom.setTransform({scale:1,x:0,y:0}),e>0?this.goNext():e<0&&this.goPrev()},handleKeyupEvent:function(e){this.showing&&27===e.keyCode&&this.hide()},handleKeydownEvent:function(e){this.showing&&(39===e.keyCode?this.goNext():37===e.keyCode&&this.goPrev())}},mounted:function(){window.addEventListener("popstate",this.hide),document.addEventListener("keyup",this.handleKeyupEvent),document.addEventListener("keydown",this.handleKeydownEvent)},unmounted:function(){window.removeEventListener("popstate",this.hide),document.removeEventListener("keyup",this.handleKeyupEvent),document.removeEventListener("keydown",this.handleKeydownEvent)}},Ds=(0,Lr.Z)(Is,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("PinchZoom"),a=(0,lr.up)("SwipeClick"),c=(0,lr.up)("VideoAttachment"),l=(0,lr.up)("Flash"),u=(0,lr.up)("FAIcon"),d=(0,lr.up)("Modal");return e.showing?((0,lr.wg)(),(0,lr.j4)(d,{key:0,class:"media-modal-view",onBackdropClicked:e.hideIfNotSwiped},{default:(0,lr.w5)((function(){return["image"===e.type?((0,lr.wg)(),(0,lr.j4)(a,{key:0,ref:"swipeClick",class:"modal-image-container",direction:e.swipeDirection,threshold:e.swipeThreshold,onPreviewRequested:e.handleSwipePreview,onSwipeFinished:e.handleSwipeEnd,onSwipelessClicked:e.hide},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(s,{ref:"pinchZoom",class:"modal-image-container-inner",selector:".modal-image","reach-min-scale-strategy":"reset","stop-propagate-handled":"stop-propgate-handled","allow-pan-min-scale":e.pinchZoomMinScale,"min-scale":e.pinchZoomMinScale,"reset-to-min-scale-limit":e.pinchZoomScaleResetLimit},{default:(0,lr.w5)((function(){return[(0,lr._)("img",{class:(0,ur.C_)([{loading:e.loading},"modal-image"]),src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description,onLoad:t[0]||(t[0]=function(){return e.onImageLoaded&&e.onImageLoaded.apply(e,arguments)})},null,42,rs)]})),_:1},8,["allow-pan-min-scale","min-scale","reset-to-min-scale-limit"])]})),_:1},8,["direction","threshold","onPreviewRequested","onSwipeFinished","onSwipelessClicked"])):(0,lr.kq)("",!0),"video"===e.type?((0,lr.wg)(),(0,lr.j4)(c,{key:1,class:"modal-image",attachment:e.currentMedia,controls:!0},null,8,["attachment"])):(0,lr.kq)("",!0),"audio"===e.type?((0,lr.wg)(),(0,lr.iD)("audio",{key:2,class:"modal-image",src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description,controls:""},null,8,os)):(0,lr.kq)("",!0),"flash"===e.type?((0,lr.wg)(),(0,lr.j4)(l,{key:3,class:"modal-image",src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description},null,8,["src","alt","title"])):(0,lr.kq)("",!0),e.canNavigate?((0,lr.wg)(),(0,lr.iD)("button",{key:4,title:e.$t("media_modal.previous"),class:"modal-view-button modal-view-button-arrow modal-view-button-arrow--prev",onClick:t[1]||(t[1]=(0,or.iM)((function(){return e.goPrev&&e.goPrev.apply(e,arguments)}),["stop","prevent"]))},[(0,lr.Wm)(u,{class:"button-icon arrow-icon",icon:"chevron-left"})],8,is)):(0,lr.kq)("",!0),e.canNavigate?((0,lr.wg)(),(0,lr.iD)("button",{key:5,title:e.$t("media_modal.next"),class:"modal-view-button modal-view-button-arrow modal-view-button-arrow--next",onClick:t[2]||(t[2]=(0,or.iM)((function(){return e.goNext&&e.goNext.apply(e,arguments)}),["stop","prevent"]))},[(0,lr.Wm)(u,{class:"button-icon arrow-icon",icon:"chevron-right"})],8,ss)):(0,lr.kq)("",!0),(0,lr._)("button",{class:"modal-view-button modal-view-button-hide",title:e.$t("media_modal.hide"),onClick:t[3]||(t[3]=(0,or.iM)((function(){return e.hide&&e.hide.apply(e,arguments)}),["stop","prevent"]))},[(0,lr.Wm)(u,{class:"button-icon",icon:"times"})],8,as),e.description?((0,lr.wg)(),(0,lr.iD)("span",cs,(0,ur.zw)(e.description),1)):(0,lr.kq)("",!0),(0,lr._)("span",ls,(0,ur.zw)(e.$tc("media_modal.counter",e.currentIndex+1,{current:e.currentIndex+1,total:e.media.length})),1),e.loading?((0,lr.wg)(),(0,lr.iD)("span",us,[(0,lr.Wm)(u,{spin:"",icon:"circle-notch",size:"5x"})])):(0,lr.kq)("",!0)]})),_:1},8,["onBackdropClicked"])):(0,lr.kq)("",!0)}]]);var xs={key:1,class:"side-drawer-logo-wrapper"},Ts=["src"],$s={key:0},Us={key:0,class:"badge badge-notification"},Ms={key:0},As={key:0,class:"badge badge-notification"},Ls={href:"/pleroma/admin/#/login-pleroma",target:"_blank"},Es={key:0,class:"badge badge-notification"};function Fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rs(e){for(var t=1;t0?((0,lr.wg)(),(0,lr.iD)("span",As,(0,ur.zw)(e.followRequestCount),1)):(0,lr.kq)("",!0)]})),_:1})])):(0,lr.kq)("",!0),e.shout?((0,lr.wg)(),(0,lr.iD)("li",{key:1,onClick:t[7]||(t[7]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr.Wm)(c,{to:{name:"shout-panel"}},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bullhorn"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("shoutbox.title")),1)]})),_:1})])):(0,lr.kq)("",!0)])):(0,lr.kq)("",!0),(0,lr._)("ul",null,[e.currentUser||!e.privateMode?((0,lr.wg)(),(0,lr.iD)("li",{key:0,onClick:t[8]||(t[8]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr.Wm)(c,{to:{name:"search"}},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"search"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("nav.search")),1)]})),_:1})])):(0,lr.kq)("",!0),e.currentUser&&e.suggestionsEnabled?((0,lr.wg)(),(0,lr.iD)("li",{key:1,onClick:t[9]||(t[9]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr.Wm)(c,{to:{name:"who-to-follow"}},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"user-plus"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("nav.who_to_follow")),1)]})),_:1})])):(0,lr.kq)("",!0),(0,lr._)("li",{onClick:t[11]||(t[11]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr._)("button",{class:"button-unstyled -link -fullwidth",onClick:t[10]||(t[10]=function(){return e.openSettingsModal&&e.openSettingsModal.apply(e,arguments)})},[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"cog"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("settings.settings")),1)])]),(0,lr._)("li",{onClick:t[12]||(t[12]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr.Wm)(c,{to:{name:"about"}},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"info-circle"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("nav.about")),1)]})),_:1})]),e.currentUser&&"admin"===e.currentUser.role?((0,lr.wg)(),(0,lr.iD)("li",{key:2,onClick:t[13]||(t[13]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr._)("a",Ls,[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"tachometer-alt"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("nav.administration")),1)])])):(0,lr.kq)("",!0),e.currentUser&&e.supportsAnnouncements?((0,lr.wg)(),(0,lr.iD)("li",{key:3,onClick:t[14]||(t[14]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr.Wm)(c,{to:{name:"announcements"}},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bullhorn"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("nav.announcements"))+" ",1),e.unreadAnnouncementCount?((0,lr.wg)(),(0,lr.iD)("span",Es,(0,ur.zw)(e.unreadAnnouncementCount),1)):(0,lr.kq)("",!0)]})),_:1})])):(0,lr.kq)("",!0),e.currentUser?((0,lr.wg)(),(0,lr.iD)("li",{key:4,onClick:t[15]||(t[15]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr.Wm)(c,{to:{name:"edit-navigation"}},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"compass"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("nav.edit_nav_mobile")),1)]})),_:1})])):(0,lr.kq)("",!0),e.currentUser?((0,lr.wg)(),(0,lr.iD)("li",{key:5,onClick:t[17]||(t[17]=function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)})},[(0,lr._)("button",{class:"button-unstyled -link -fullwidth",onClick:t[16]||(t[16]=function(){return e.doLogout&&e.doLogout.apply(e,arguments)})},[(0,lr.Wm)(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"sign-out-alt"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("login.logout")),1)])])):(0,lr.kq)("",!0)])],34),(0,lr._)("div",{class:(0,ur.C_)(["side-drawer-click-outside",{"side-drawer-click-outside-closed":e.closed}]),onClick:t[20]||(t[20]=(0,or.iM)((function(){return e.toggleDrawer&&e.toggleDrawer.apply(e,arguments)}),["stop","prevent"]))},null,2)],2)}]]);var Zs=["title"],Ws=n(23279),Bs=n.n(Ws);Rt.vI.add(Nt.IwR);var Hs=new Set(["chats","chat","lists-edit"]);const Vs={data:function(){return{hidden:!1,scrollingDown:!1,inputActive:!1,oldScrollPos:0,amountScrolled:0}},created:function(){this.autohideFloatingPostButton&&this.activateFloatingPostButtonAutohide(),window.addEventListener("resize",this.handleOSK)},unmounted:function(){this.autohideFloatingPostButton&&this.deactivateFloatingPostButtonAutohide(),window.removeEventListener("resize",this.handleOSK)},computed:{isLoggedIn:function(){return!!this.$store.state.users.currentUser},isHidden:function(){return!!Hs.has(this.$route.name)||this.autohideFloatingPostButton&&(this.hidden||this.inputActive)},isPersistent:function(){return!!this.$store.getters.mergedConfig.alwaysShowNewPostButton},autohideFloatingPostButton:function(){return!!this.$store.getters.mergedConfig.autohideFloatingPostButton}},watch:{autohideFloatingPostButton:function(e){e?this.activateFloatingPostButtonAutohide():this.deactivateFloatingPostButtonAutohide()}},methods:{activateFloatingPostButtonAutohide:function(){window.addEventListener("scroll",this.handleScrollStart),window.addEventListener("scroll",this.handleScrollEnd)},deactivateFloatingPostButtonAutohide:function(){window.removeEventListener("scroll",this.handleScrollStart),window.removeEventListener("scroll",this.handleScrollEnd)},openPostForm:function(){this.$store.dispatch("openPostStatusModal")},handleOSK:function(){var e=window.innerWidth<350,t=e&&window.innerHeight<345,n=!e&&window.innerWidth<450&&window.innerHeight<560;this.inputActive=!(!t&&!n)},handleScrollStart:Bs()((function(){window.scrollY>this.oldScrollPos?this.hidden=!0:this.hidden=!1,this.oldScrollPos=window.scrollY}),100,{leading:!0,trailing:!1}),handleScrollEnd:Bs()((function(){this.hidden=!1,this.oldScrollPos=window.scrollY}),100,{leading:!1,trailing:!0})}},Ks=(0,Lr.Z)(Vs,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("FAIcon");return e.isLoggedIn?((0,lr.wg)(),(0,lr.iD)("button",{key:0,class:(0,ur.C_)(["MobilePostButton button-default new-status-button",{hidden:e.isHidden,"always-show":e.isPersistent}]),title:e.$t("post_status.new_status"),onClick:t[0]||(t[0]=function(){return e.openPostForm&&e.openPostForm.apply(e,arguments)})},[(0,lr.Wm)(s,{icon:"pen"})],10,Zs)):(0,lr.kq)("",!0)}]]);var Gs={class:"MobileNav"},Ys={class:"item"},Js=["title","aria-expanaded"],Qs={key:0,class:"alert-dot"},Xs={class:"item right"},ea=["title"],ta={key:0,class:"alert-dot"},na={class:"mobile-notifications-header"},ra={class:"title"},oa=(0,lr._)("span",{class:"spacer"},null,-1),ia=["title"],sa=["title"],aa=n(2302);function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function la(e){for(var t=1;t0,n+r>=o&&this.$refs.notifications.fetchOlderNotifications()}},watch:{$route:function(){this.closeMobileNotifications()}}},da=(0,Lr.Z)(ua,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("FAIcon"),a=(0,lr.up)("NavigationPins"),c=(0,lr.up)("FALayers"),l=(0,lr.up)("SideDrawer");return(0,lr.wg)(),(0,lr.iD)("div",Gs,[(0,lr._)("nav",{id:"nav",class:"mobile-nav",onClick:t[2]||(t[2]=function(t){return e.scrollToTop()})},[(0,lr._)("div",Ys,[(0,lr._)("button",{class:"button-unstyled mobile-nav-button",title:e.$t("nav.mobile_sidebar"),"aria-expanaded":e.$refs.sideDrawer&&!e.$refs.sideDrawer.closed,onClick:t[0]||(t[0]=(0,or.iM)((function(t){return e.toggleMobileSidebar()}),["stop","prevent"]))},[(0,lr.Wm)(s,{class:"fa-scale-110 fa-old-padding",icon:"bars"}),e.unreadChatCount&&!e.chatsPinned||e.unreadAnnouncementCount?((0,lr.wg)(),(0,lr.iD)("div",Qs)):(0,lr.kq)("",!0)],8,Js),(0,lr.Wm)(a,{class:"pins"})]),(0,lr.Uk)(),(0,lr._)("div",Xs,[e.currentUser?((0,lr.wg)(),(0,lr.iD)("button",{key:0,class:"button-unstyled mobile-nav-button",title:e.unseenNotificationsCount?e.$t("nav.mobile_notifications_unread_active"):e.$t("nav.mobile_notifications"),onClick:t[1]||(t[1]=(0,or.iM)((function(t){return e.openMobileNotifications()}),["stop","prevent"]))},[(0,lr.Wm)(s,{class:"fa-scale-110 fa-old-padding",icon:"bell"}),e.unseenNotificationsCount?((0,lr.wg)(),(0,lr.iD)("div",ta)):(0,lr.kq)("",!0)],8,ea)):(0,lr.kq)("",!0)])]),e.currentUser?((0,lr.wg)(),(0,lr.iD)("aside",{key:0,class:(0,ur.C_)(["mobile-notifications-drawer",{"-closed":!e.notificationsOpen}]),onTouchstart:t[6]||(t[6]=(0,or.iM)((function(){return e.notificationsTouchStart&&e.notificationsTouchStart.apply(e,arguments)}),["stop"])),onTouchmove:t[7]||(t[7]=(0,or.iM)((function(){return e.notificationsTouchMove&&e.notificationsTouchMove.apply(e,arguments)}),["stop"]))},[(0,lr._)("div",na,[(0,lr._)("span",ra,(0,ur.zw)(e.$t("notifications.notifications")),1),oa,e.notificationsAtTop?((0,lr.wg)(),(0,lr.iD)("button",{key:0,class:"button-unstyled mobile-nav-button",title:e.$t("general.scroll_to_top"),onClick:t[3]||(t[3]=(0,or.iM)((function(){return e.scrollMobileNotificationsToTop&&e.scrollMobileNotificationsToTop.apply(e,arguments)}),["stop","prevent"]))},[(0,lr.Wm)(c,{class:"fa-scale-110 fa-old-padding-layer"},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(s,{icon:"arrow-up"}),(0,lr.Wm)(s,{icon:"minus",transform:"up-7"})]})),_:1})],8,ia)):(0,lr.kq)("",!0),(0,lr._)("button",{class:"button-unstyled mobile-nav-button",title:e.$t("nav.mobile_notifications_close"),onClick:t[4]||(t[4]=(0,or.iM)((function(t){return e.closeMobileNotifications(!0)}),["stop","prevent"]))},[(0,lr.Wm)(s,{class:"fa-scale-110 fa-old-padding",icon:"times"})],8,sa)]),(0,lr._)("div",{id:"mobile-notifications",ref:"mobileNotifications",class:"mobile-notifications",onScroll:t[5]||(t[5]=function(){return e.onScroll&&e.onScroll.apply(e,arguments)})},null,544)],34)):(0,lr.kq)("",!0),(0,lr.Wm)(l,{ref:"sideDrawer",logout:e.logout},null,8,["logout"])])}]]);var pa={class:"inner-nav"},ha={class:"item sitename"},ma=["src"],fa={class:"item right actions"},ga=(0,lr._)("span",{class:"spacer"},null,-1),va=["title"],wa=["placeholder"],ba=(0,lr._)("span",{class:"spacer"},null,-1),ya=(0,lr._)("span",{class:"spacer"},null,-1);Rt.vI.add(Nt.NBC,Nt.wn1);const _a={data:function(){return{searchTerm:void 0,hidden:!0,error:!1}},watch:{$route:function(e){"search"===e.name&&(this.searchTerm=e.query.query)}},methods:{find:function(e){this.$router.push({name:"search",query:{query:e}}),this.$refs.searchInput.focus()},toggleHidden:function(){var e=this;this.hidden=!this.hidden,this.$emit("toggled",this.hidden),this.$nextTick((function(){e.hidden||e.$refs.searchInput.focus()}))}}},ka=(0,Lr.Z)(_a,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("FAIcon");return(0,lr.wg)(),(0,lr.iD)("div",{class:(0,ur.C_)(["SearchBar",{"-expanded":!e.hidden}])},[e.hidden?((0,lr.wg)(),(0,lr.iD)("button",{key:0,class:"button-unstyled nav-icon",title:e.$t("nav.search"),type:"button",onClick:t[0]||(t[0]=(0,or.iM)((function(){return e.toggleHidden&&e.toggleHidden.apply(e,arguments)}),["prevent","stop"]))},[(0,lr.Wm)(s,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"search"})],8,va)):((0,lr.wg)(),(0,lr.iD)(lr.HY,{key:1},[(0,lr.wy)((0,lr._)("input",{id:"search-bar-input",ref:"searchInput","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.searchTerm=t}),class:"search-bar-input",placeholder:e.$t("nav.search"),type:"text",onKeyup:t[2]||(t[2]=(0,or.D2)((function(t){return e.find(e.searchTerm)}),["enter"]))},null,40,wa),[[or.nr,e.searchTerm]]),(0,lr._)("button",{class:"button-default search-button",type:"submit",onClick:t[3]||(t[3]=function(t){return e.find(e.searchTerm)})},[(0,lr.Wm)(s,{"fixed-width":"",icon:"search"})]),(0,lr._)("button",{class:"button-unstyled cancel-search",type:"button",onClick:t[4]||(t[4]=(0,or.iM)((function(){return e.toggleHidden&&e.toggleHidden.apply(e,arguments)}),["prevent","stop"]))},[(0,lr.Wm)(s,{"fixed-width":"",icon:"times",class:"cancel-icon fa-scale-110 fa-old-padding"})]),ba,ya],64))],2)}]]);Rt.vI.add(Nt.$Wj,Nt.jLD,Nt.J9Y,Nt.lXL,Nt.qmU,Nt.FKd,Nt.Acd,Nt.wn1,Nt.HLz,Nt.b7W,Nt.sqG);const Sa={components:{SearchBar:ka},data:function(){return{searchBarHidden:!0,supportsMask:window.CSS&&window.CSS.supports&&(window.CSS.supports("mask-size","contain")||window.CSS.supports("-webkit-mask-size","contain")||window.CSS.supports("-moz-mask-size","contain")||window.CSS.supports("-ms-mask-size","contain")||window.CSS.supports("-o-mask-size","contain"))}},computed:{enableMask:function(){return this.supportsMask&&this.$store.state.instance.logoMask},logoStyle:function(){return{visibility:this.enableMask?"hidden":"visible"}},logoMaskStyle:function(){return this.enableMask?{"mask-image":"url(".concat(this.$store.state.instance.logo,")")}:{"background-color":this.enableMask?"":"transparent"}},logoBgStyle:function(){return Object.assign({margin:"".concat(this.$store.state.instance.logoMargin," 0"),opacity:this.searchBarHidden?1:0},this.enableMask?{}:{"background-color":this.enableMask?"":"transparent"})},logo:function(){return this.$store.state.instance.logo},sitename:function(){return this.$store.state.instance.name},hideSitename:function(){return this.$store.state.instance.hideSitename},logoLeft:function(){return this.$store.state.instance.logoLeft},currentUser:function(){return this.$store.state.users.currentUser},privateMode:function(){return this.$store.state.instance.private}},methods:{scrollToTop:function(){window.scrollTo(0,0)},logout:function(){this.$router.replace("/main/public"),this.$store.dispatch("logout")},onSearchBarToggled:function(e){this.searchBarHidden=e},openSettingsModal:function(){this.$store.dispatch("openSettingsModal")}}},ja=(0,Lr.Z)(Sa,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("router-link"),a=(0,lr.up)("search-bar"),c=(0,lr.up)("FAIcon");return(0,lr.wg)(),(0,lr.iD)("nav",{id:"nav",class:(0,ur.C_)(["DesktopNav",{"-logoLeft":e.logoLeft}]),onClick:t[4]||(t[4]=function(t){return e.scrollToTop()})},[(0,lr._)("div",pa,[(0,lr._)("div",ha,[e.hideSitename?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.j4)(s,{key:0,class:"site-name",to:{name:"root"},"active-class":"home"},{default:(0,lr.w5)((function(){return[(0,lr.Uk)((0,ur.zw)(e.sitename),1)]})),_:1}))]),(0,lr.Wm)(s,{class:"logo",to:{name:"root"},style:(0,ur.j5)(e.logoBgStyle)},{default:(0,lr.w5)((function(){return[(0,lr._)("div",{class:"mask",style:(0,ur.j5)(e.logoMaskStyle)},null,4),(0,lr._)("img",{src:e.logo,style:(0,ur.j5)(e.logoStyle)},null,12,ma)]})),_:1},8,["style"]),(0,lr._)("div",fa,[e.currentUser||!e.privateMode?((0,lr.wg)(),(0,lr.j4)(a,{key:0,onToggled:e.onSearchBarToggled,onClick:t[0]||(t[0]=(0,or.iM)((function(){}),["stop"]))},null,8,["onToggled"])):(0,lr.kq)("",!0),(0,lr._)("button",{class:"button-unstyled nav-icon",onClick:t[1]||(t[1]=function(){return e.openSettingsModal&&e.openSettingsModal.apply(e,arguments)})},[(0,lr.Wm)(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"cog",title:e.$t("nav.preferences")},null,8,["title"])]),e.currentUser&&"admin"===e.currentUser.role?((0,lr.wg)(),(0,lr.iD)("a",{key:1,href:"/pleroma/admin/#/login-pleroma",class:"nav-icon",target:"_blank",onClick:t[2]||(t[2]=(0,or.iM)((function(){}),["stop"]))},[(0,lr.Wm)(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"tachometer-alt",title:e.$t("nav.administration")},null,8,["title"])])):(0,lr.kq)("",!0),ga,e.currentUser?((0,lr.wg)(),(0,lr.iD)("button",{key:2,class:"button-unstyled nav-icon",onClick:t[3]||(t[3]=(0,or.iM)((function(){return e.logout&&e.logout.apply(e,arguments)}),["prevent"]))},[(0,lr.Wm)(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"sign-out-alt",title:e.$t("login.logout")},null,8,["title"])])):(0,lr.kq)("",!0)])])],2)}]]);var Oa={class:"user-reporting-panel panel"},Ca={class:"panel-heading"},Pa={class:"panel-body"},za={class:"user-reporting-panel-left"},Ia=["placeholder"],Da={key:0},xa=["disabled"],Ta={key:0,class:"alert error"},$a={class:"user-reporting-panel-right"},Ua={class:"status-fadein user-reporting-panel-sitem"},Ma=n(87482),Aa=n(83293),La=n(12061);function Ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Fa={components:{Status:Ma.default,List:Aa.Z,Checkbox:oi.Z,Modal:Ft.Z,UserLink:La.Z},data:function(){return{comment:"",forward:!1,statusIdsToReport:[],processing:!1,error:!1}},computed:{reportModal:function(){return this.$store.state.reports.reportModal},isLoggedIn:function(){return!!this.$store.state.users.currentUser},isOpen:function(){return this.isLoggedIn&&this.reportModal.activated},userId:function(){return this.reportModal.userId},user:function(){return this.$store.getters.findUser(this.userId)},remoteInstance:function(){return!this.user.is_local&&this.user.screen_name.substr(this.user.screen_name.indexOf("@")+1)},statuses:function(){return this.reportModal.statuses},preTickedIds:function(){return this.reportModal.preTickedIds}},watch:{userId:"resetState",preTickedIds:function(e){this.statusIdsToReport=e}},methods:{resetState:function(){this.comment="",this.forward=!1,this.statusIdsToReport=this.preTickedIds,this.processing=!1,this.error=!1},closeModal:function(){this.$store.dispatch("closeUserReportingModal")},reportUser:function(){var e=this;this.processing=!0,this.error=!1;var t={userId:this.userId,comment:this.comment,forward:this.forward,statusIds:this.statusIdsToReport};this.$store.state.api.backendInteractor.reportUser(function(e){for(var t=1;t0?((0,lr.wg)(),(0,lr.iD)("div",Xa,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.history,(function(e){return(0,lr.wg)(),(0,lr.j4)(s,{key:e.id,statusoid:e,"is-preview":!0,class:"conversation-status status-fadein panel-body"},null,8,["statusoid"])})),128))])):(0,lr.kq)("",!0)])])]})),_:1},8,["onBackdropClicked"])):(0,lr.kq)("",!0)}]]);var nc={class:"global-notice-list"},rc={class:"notice-message"},oc=["onClick"];Rt.vI.add(Nt.NBC);const ic={computed:{notices:function(){return this.$store.state.interface.globalNotices}},methods:{closeNotice:function(e){this.$store.dispatch("removeGlobalNotice",e)}}},sc=(0,Lr.Z)(ic,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("FAIcon");return(0,lr.wg)(),(0,lr.iD)("div",nc,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.notices,(function(t,n){return(0,lr.wg)(),(0,lr.iD)("div",{key:n,class:(0,ur.C_)(["alert global-notice",(0,d.Z)({},"global-"+t.level,!0)])},[(0,lr._)("div",rc,(0,ur.zw)(e.$t(t.messageKey,t.messageArgs)),1),(0,lr._)("button",{class:"button-unstyled close-notice",onClick:function(n){return e.closeNotice(t)}},[(0,lr.Wm)(s,{class:"fa-scale-110 fa-old-padding",icon:"times"})],8,oc)],2)})),128))])}]]);function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const cc={name:"app",components:{UserPanel:jo,NavPanel:ci,Notifications:(0,lr.RC)((function(){return Promise.resolve().then(n.bind(n,2302))})),InstanceSpecificPanel:mi,FeaturesPanel:Pi,WhoToFollowPanel:Ni,ShoutPanel:ns,MediaModal:Ds,SideDrawer:qs,MobilePostStatusButton:Ks,MobileNav:da,DesktopNav:ja,SettingsModal:(0,lr.RC)((function(){return n.e(1325).then(n.bind(n,51325))})),UpdateNotification:(0,lr.RC)((function(){return n.e(6464).then(n.bind(n,16464))})),UserReportingModal:Ra,PostStatusModal:Ga,EditStatusModal:Ba,StatusHistoryModal:tc,GlobalNoticeList:sc},data:function(){return{mobileActivePanel:"timeline"}},created:function(){var e=this.$store.getters.mergedConfig.interfaceLanguage;this.$store.dispatch("setOption",{name:"interfaceLanguage",value:e}),window.addEventListener("resize",this.updateMobileState)},unmounted:function(){window.removeEventListener("resize",this.updateMobileState)},computed:function(e){for(var t=1;t=1?e:1},streamingEnabled:function(){return this.mergedConfig.useStreamingApi&&this.mastoUserSocketStatus===m._z.JOINED},displayStyle:function(){return this.$store.getters.mergedConfig.conversationDisplay},isTreeView:function(){return!this.isLinearView},treeViewIsSimple:function(){return!this.$store.getters.mergedConfig.conversationTreeAdvanced},isLinearView:function(){return"linear"===this.displayStyle},shouldFadeAncestors:function(){return this.$store.getters.mergedConfig.conversationTreeFadeAncestors},otherRepliesButtonPosition:function(){return this.$store.getters.mergedConfig.conversationOtherRepliesButton},showOtherRepliesButtonBelowStatus:function(){return"below"===this.otherRepliesButtonPosition},showOtherRepliesButtonInsideStatus:function(){return"inside"===this.otherRepliesButtonPosition},suspendable:function(){return this.isTreeView?Object.entries(this.statusContentProperties).every((function(e){var t=(0,l.Z)(e,2),n=(t[0],t[1]);return!n.replying&&0===n.mediaPlaying.length})):!this.$refs.statusComponent||!this.$refs.statusComponent[0]||this.$refs.statusComponent.every((function(e){return e.suspendable}))},hideStatus:function(){return this.virtualHidden&&this.suspendable},status:function(){return this.$store.state.statuses.allStatusesObject[this.statusId]},originalStatusId:function(){return this.status.retweeted_status?this.status.retweeted_status.id:this.statusId},conversationId:function(){return this.getConversationId(this.statusId)},conversation:function(){if(!this.status)return[];if(!this.isExpanded)return[this.status];var e=Mc()(this.$store.state.statuses.conversationsObject[this.conversationId]),t=N()(e,{id:this.originalStatusId});return-1!==t&&(e[t]=this.status),function(e,t){return(e="retweet"===t.type?bn()(e,(function(e){return"retweet"===e.type||e.id!==t.retweeted_status.id})):bn()(e,(function(e){return"retweet"!==e.type}))).filter((function(e){return e})).sort(rl)}(e,this.status)},statusMap:function(){return this.conversation.reduce((function(e,t){return e[t.id]=t,e}),{})},threadTree:function(){var e=this,t=this.conversation.reduce((function(e,t,n){return e[t.id]=n,e}),{}),n=function n(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o.map((function(o){return s[o]?[]:(s[o]=!0,[{status:e.conversation[t[o]],id:o,depth:i},n(r,r[o],i+1,s)].reduce((function(e,t){return e.concat(t)}),[]))})).reduce((function(e,t){return e.concat(t)}),[])}(this.conversation.reduce((function(t,n){var r=n.id;return t.forest[r]=e.getReplies(r).map((function(e){return e.id})),t}),{forest:{}}).forest,this.topLevel.map((function(e){return e.id})));return n},replyIds:function(){var e=this;return this.conversation.map((function(e){return e.id})).reduce((function(t,n){return t[n]=(e.replies[n]||[]).map((function(e){return e.id})),t}),{})},totalReplyCount:function(){var e=this,t={};return this.conversation.map((function(e){return e.id})).map((function n(r){return t[r]||(t[r]=1+e.replyIds[r].map((function(e){return n(e)})).reduce((function(e,t){return e+t}),0)),t[r]})),Object.keys(t).reduce((function(e,n){return e[n]=t[n]-1,e}),{})},totalReplyDepth:function(){var e=this,t={};return this.conversation.map((function(e){return e.id})).map((function n(r){return t[r]||(t[r]=1+e.replyIds[r].map((function(e){return n(e)})).reduce((function(e,t){return e>t?e:t}),0)),t[r]})),Object.keys(t).reduce((function(e,n){return e[n]=t[n]-1,e}),{})},depths:function(){return this.threadTree.reduce((function(e,t){return e[t.id]=t.depth,e}),{})},topLevel:function(){var e=this;return this.conversation.reduce((function(t,n){return t.filter((function(t){return-1===e.getReplies(n.id).map((function(e){return e.id})).indexOf(t.id)}))}),this.conversation)},otherTopLevelCount:function(){return this.topLevel.length-1},showingTopLevel:function(){return this.canDive&&this.diveRoot?[this.statusMap[this.diveRoot]]:this.topLevel},diveRoot:function(){var e=this.inlineDivePosition||this.statusId;return this.parentOf(e)?e:null},diveDepth:function(){return this.canDive&&this.diveRoot?this.depths[this.diveRoot]:0},diveMode:function(){return this.canDive&&!!this.diveRoot},shouldShowAllConversationButton:function(){return this.isTreeView&&this.isExpanded&&this.diveMode&&this.topLevel.length>1},shouldShowAncestors:function(){return this.isTreeView&&this.isExpanded&&this.ancestorsOf(this.diveRoot).length},replies:function(){var e=1;return Le()(this.conversation,(function(t,n){var r=n.id,o=n.in_reply_to_status_id;return o&&(t[o]=t[o]||[],t[o].push({name:"#".concat(e),id:r})),e++,t}),{})},isExpanded:function(){return!(!this.expanded&&!this.isPage)},hiddenStyle:function(){var e=this.status&&this.status.virtualHeight||"120px";return this.virtualHidden?{height:e}:{}},threadDisplayStatus:function(){var e=this;return this.conversation.reduce((function(t,n){var r=n.id,o=e.depths[r],i=e.threadDisplayStatusObject[r]?e.threadDisplayStatusObject[r]:o-e.diveDepth<=e.maxDepthToShowByDefault?"showing":"hidden";return t[r]=i,t}),{})},statusContentProperties:function(){var e=this;return this.conversation.reduce((function(t,n){var r,o=n.id,i=(r={showingTall:!1,expandingSubject:!1,showingLongSubject:!1,isReplying:!1,mediaPlaying:[]},e.statusContentPropertiesObject[o]?nl(nl({},r),e.statusContentPropertiesObject[o]):r);return t[o]=i,t}),{})},canDive:function(){return this.isTreeView&&this.isExpanded},focused:function(){var e=this;return function(t){return e.isExpanded&&t===e.highlight}},maybeHighlight:function(){return this.isExpanded?this.highlight:null}},(0,s.Se)(["mergedConfig"])),(0,s.rn)({mastoUserSocketStatus:function(e){return e.api.mastoUserSocketStatus}})),components:{Status:Ma.default,ThreadTree:Rc,QuickFilterSettings:Kc,QuickViewSettings:el},watch:{statusId:function(e,t){var n=this.getConversationId(e),r=this.getConversationId(t);n&&r&&n===r?this.setHighlight(this.originalStatusId):this.fetchConversation()},expanded:function(e){e?this.fetchConversation():this.resetDisplayState()},virtualHidden:function(e){this.$store.dispatch("setVirtualHeight",{statusId:this.statusId,height:"".concat(this.$el.clientHeight,"px")})}},methods:{fetchConversation:function(){var e=this;this.status?this.$store.state.api.backendInteractor.fetchConversation({id:this.statusId}).then((function(t){var n=t.ancestors,r=t.descendants;e.$store.dispatch("addNewStatuses",{statuses:n}),e.$store.dispatch("addNewStatuses",{statuses:r}),e.setHighlight(e.originalStatusId)})):this.$store.state.api.backendInteractor.fetchStatus({id:this.statusId}).then((function(t){e.$store.dispatch("addNewStatuses",{statuses:[t]}),e.fetchConversation()}))},getReplies:function(e){return this.replies[e]||[]},getHighlight:function(){return this.isExpanded?this.highlight:null},setHighlight:function(e){e&&(this.highlight=e,this.streamingEnabled||this.$store.dispatch("fetchStatus",e),this.$store.dispatch("fetchFavsAndRepeats",e),this.$store.dispatch("fetchEmojiReactionsBy",e))},toggleExpanded:function(){this.expanded=!this.expanded},getConversationId:function(e){var t=this.$store.state.statuses.allStatusesObject[e];return xt()(t,"retweeted_status.statusnet_conversation_id",xt()(t,"statusnet_conversation_id"))},setThreadDisplay:function(e,t){this.threadDisplayStatusObject=nl(nl({},this.threadDisplayStatusObject),{},(0,d.Z)({},e,t))},toggleThreadDisplay:function(e){var t="showing"===this.threadDisplayStatus[e]?"hidden":"showing";this.setThreadDisplay(e,t)},setThreadDisplayRecursively:function(e,t){var n=this;this.setThreadDisplay(e,t),this.getReplies(e).map((function(e){return e.id})).map((function(e){return n.setThreadDisplayRecursively(e,t)}))},showThreadRecursively:function(e){this.setThreadDisplayRecursively(e,"showing")},setStatusContentProperty:function(e,t,n){this.statusContentPropertiesObject=nl(nl({},this.statusContentPropertiesObject),{},(0,d.Z)({},e,nl(nl({},this.statusContentPropertiesObject[e]),{},(0,d.Z)({},t,n))))},toggleStatusContentProperty:function(e,t){this.setStatusContentProperty(e,t,!this.statusContentProperties[e][t])},leastVisibleAncestor:function(e){for(var t=e,n=this.parentOf(t);t;){if("showing"===this.threadDisplayStatus[n])return t;n=this.parentOf(n),t=this.parentOf(t)}return this.topLevel[0]?this.topLevel[0].id:void 0},diveIntoStatus:function(e,t){this.tryScrollTo(e)},diveToTopLevel:function(){this.tryScrollTo(this.topLevelAncestorOrSelfId(this.diveRoot)||this.topLevel[0].id)},undive:function(){this.inlineDivePosition=null,this.setHighlight(this.statusId)},tryScrollTo:function(e){var t=this;e&&(this.isPage?this.$router.push({name:"conversation",params:{id:e}}):this.inlineDivePosition=e,this.$nextTick((function(){t.setHighlight(e)})))},goToCurrent:function(){this.tryScrollTo(this.diveRoot||this.topLevel[0].id)},statusById:function(e){return this.statusMap[e]},parentOf:function(e){var t=this.statusById(e);if(t){var n=t.in_reply_to_status_id;if(this.statusMap[n])return n}},parentOrSelf:function(e){return this.parentOf(e)||e},ancestorsOf:function(e){for(var t=[],n=this.parentOf(e);n;)t.unshift(this.statusMap[n]),n=this.parentOf(n);return t},topLevelAncestorOrSelfId:function(e){for(var t=e,n=this.parentOf(e);n;)t=this.parentOf(t),n=this.parentOf(n);return t},resetDisplayState:function(){this.undive(),this.threadDisplayStatusObject={}}}},il=(0,Lr.Z)(ol,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("QuickFilterSettings"),a=(0,lr.up)("QuickViewSettings"),c=(0,lr.up)("FAIcon"),l=(0,lr.up)("i18n-t"),u=(0,lr.up)("status"),d=(0,lr.up)("thread-tree");return e.hideStatus?((0,lr.wg)(),(0,lr.iD)("div",{key:1,style:(0,ur.j5)(e.hiddenStyle)},null,4)):((0,lr.wg)(),(0,lr.iD)("div",{key:0,style:(0,ur.j5)(e.hiddenStyle),class:(0,ur.C_)(["Conversation",{"-expanded":e.isExpanded,panel:e.isExpanded}])},[e.isExpanded?((0,lr.wg)(),(0,lr.iD)("div",Oc,[(0,lr._)("span",Cc,(0,ur.zw)(e.$t("timeline.conversation")),1),e.collapsable?((0,lr.wg)(),(0,lr.iD)("button",{key:0,class:"button-unstyled -link",onClick:t[0]||(t[0]=(0,or.iM)((function(){return e.toggleExpanded&&e.toggleExpanded.apply(e,arguments)}),["prevent"]))},(0,ur.zw)(e.$t("timeline.collapse")),1)):(0,lr.kq)("",!0),e.collapsable?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.j4)(s,{key:1,conversation:!0,class:"rightside-button"})),e.collapsable?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.j4)(a,{key:2,conversation:!0,class:"rightside-button"}))])):(0,lr.kq)("",!0),(0,lr._)("div",Pc,[e.isTreeView?((0,lr.wg)(),(0,lr.iD)("div",zc,[e.shouldShowAllConversationButton?((0,lr.wg)(),(0,lr.iD)("div",Ic,[(0,lr.Wm)(l,{keypath:"status.show_all_conversation_with_icon",tag:"button",class:"button-unstyled -link",scope:"global",onClick:(0,or.iM)(e.diveToTopLevel,["prevent"])},{icon:(0,lr.w5)((function(){return[(0,lr.Wm)(c,{icon:"angle-double-left"})]})),text:(0,lr.w5)((function(){return[(0,lr._)("span",null,(0,ur.zw)(e.$tc("status.show_all_conversation",e.otherTopLevelCount,{numStatus:e.otherTopLevelCount})),1)]})),_:1},8,["onClick"])])):(0,lr.kq)("",!0),e.shouldShowAncestors?((0,lr.wg)(),(0,lr.iD)("div",Dc,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.ancestorsOf(e.diveRoot),(function(t){return(0,lr.wg)(),(0,lr.iD)("article",{key:t.id,class:(0,ur.C_)(["thread-ancestor",{"thread-ancestor-has-other-replies":e.getReplies(t.id).length>1,"-faded":e.shouldFadeAncestors}])},[(0,lr.Wm)(u,{ref_for:!0,ref:"statusComponent","inline-expanded":e.collapsable&&e.isExpanded,statusoid:t,expandable:!e.isExpanded,"show-pinned":e.pinnedStatusIdsObject&&e.pinnedStatusIdsObject[t.id],focused:e.focused(t.id),"in-conversation":e.isExpanded,highlight:e.getHighlight(),replies:e.getReplies(t.id),"in-profile":e.inProfile,"profile-user-id":e.profileUserId,class:"conversation-status status-fadein panel-body","simple-tree":e.treeViewIsSimple,"toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"show-other-replies-as-button":e.showOtherRepliesButtonInsideStatus,dive:function(){return e.diveIntoStatus(t.id)},"controlled-showing-tall":e.statusContentProperties[t.id].showingTall,"controlled-expanding-subject":e.statusContentProperties[t.id].expandingSubject,"controlled-showing-long-subject":e.statusContentProperties[t.id].showingLongSubject,"controlled-replying":e.statusContentProperties[t.id].replying,"controlled-media-playing":e.statusContentProperties[t.id].mediaPlaying,"controlled-toggle-showing-tall":function(){return e.toggleStatusContentProperty(t.id,"showingTall")},"controlled-toggle-expanding-subject":function(){return e.toggleStatusContentProperty(t.id,"expandingSubject")},"controlled-toggle-showing-long-subject":function(){return e.toggleStatusContentProperty(t.id,"showingLongSubject")},"controlled-toggle-replying":function(){return e.toggleStatusContentProperty(t.id,"replying")},"controlled-set-media-playing":function(n){return e.toggleStatusContentProperty(t.id,"mediaPlaying",n)},onGoto:e.setHighlight,onToggleExpanded:e.toggleExpanded},null,8,["inline-expanded","statusoid","expandable","show-pinned","focused","in-conversation","highlight","replies","in-profile","profile-user-id","simple-tree","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","show-other-replies-as-button","dive","controlled-showing-tall","controlled-expanding-subject","controlled-showing-long-subject","controlled-replying","controlled-media-playing","controlled-toggle-showing-tall","controlled-toggle-expanding-subject","controlled-toggle-showing-long-subject","controlled-toggle-replying","controlled-set-media-playing","onGoto","onToggleExpanded"]),e.showOtherRepliesButtonBelowStatus&&e.getReplies(t.id).length>1?((0,lr.wg)(),(0,lr.iD)("div",xc,[(0,lr._)("div",Tc,[(0,lr.Wm)(l,{tag:"button",scope:"global",keypath:"status.ancestor_follow_with_icon",class:"button-unstyled -link thread-tree-show-replies-button",onClick:(0,or.iM)((function(n){return e.diveIntoStatus(t.id)}),["prevent"])},{icon:(0,lr.w5)((function(){return[(0,lr.Wm)(c,{icon:"angle-double-right"})]})),text:(0,lr.w5)((function(){return[(0,lr._)("span",null,(0,ur.zw)(e.$tc("status.ancestor_follow",e.getReplies(t.id).length-1,{numReplies:e.getReplies(t.id).length-1})),1)]})),_:2},1032,["onClick"])])])):(0,lr.kq)("",!0)],2)})),128))])):(0,lr.kq)("",!0),((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.showingTopLevel,(function(t){return(0,lr.wg)(),(0,lr.j4)(d,{key:t.id,ref_for:!0,ref:"statusComponent",depth:0,status:t,"in-profile":e.inProfile,conversation:e.conversation,collapsable:e.collapsable,"is-expanded":e.isExpanded,"pinned-status-ids-object":e.pinnedStatusIdsObject,"profile-user-id":e.profileUserId,focused:e.focused,"get-replies":e.getReplies,highlight:e.maybeHighlight,"set-highlight":e.setHighlight,"toggle-expanded":e.toggleExpanded,simple:e.treeViewIsSimple,"toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"status-content-properties":e.statusContentProperties,"set-status-content-property":e.setStatusContentProperty,"toggle-status-content-property":e.toggleStatusContentProperty,dive:e.canDive?e.diveIntoStatus:void 0},null,8,["status","in-profile","conversation","collapsable","is-expanded","pinned-status-ids-object","profile-user-id","focused","get-replies","highlight","set-highlight","toggle-expanded","simple","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","status-content-properties","set-status-content-property","toggle-status-content-property","dive"])})),128))])):(0,lr.kq)("",!0),e.isLinearView?((0,lr.wg)(),(0,lr.iD)("div",$c,[(0,lr._)("article",null,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.conversation,(function(t){return(0,lr.wg)(),(0,lr.j4)(u,{key:t.id,ref_for:!0,ref:"statusComponent","inline-expanded":e.collapsable&&e.isExpanded,statusoid:t,expandable:!e.isExpanded,"show-pinned":e.pinnedStatusIdsObject&&e.pinnedStatusIdsObject[t.id],focused:e.focused(t.id),"in-conversation":e.isExpanded,highlight:e.getHighlight(),replies:e.getReplies(t.id),"in-profile":e.inProfile,"profile-user-id":e.profileUserId,class:"conversation-status status-fadein panel-body","toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"status-content-properties":e.statusContentProperties,"set-status-content-property":e.setStatusContentProperty,"toggle-status-content-property":e.toggleStatusContentProperty,onGoto:e.setHighlight,onToggleExpanded:e.toggleExpanded},null,8,["inline-expanded","statusoid","expandable","show-pinned","focused","in-conversation","highlight","replies","in-profile","profile-user-id","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","status-content-properties","set-status-content-property","toggle-status-content-property","onGoto","onToggleExpanded"])})),128))])])):(0,lr.kq)("",!0)])],6))}]]);var sl={key:1},al={class:"button-unstyled title timeline-menu-title"},cl={class:"timeline-title"};function ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t=e.timeline.minId&&t.id<=e.timeline.maxId}))},filteredPinnedStatusIds:function(){var e=this;return(this.pinnedStatusIds||[]).filter((function(t){return e.timeline.statusesObject[t]}))},newStatusCount:function(){return this.timeline.newStatusCount},showLoadButton:function(){return this.timeline.newStatusCount>0||0!==this.timeline.flushMarker},loadButtonString:function(){return 0!==this.timeline.flushMarker?this.$t("timeline.reload"):"".concat(this.$t("timeline.show_new")," (").concat(this.newStatusCount,")")},mobileLoadButtonString:function(){return 0!==this.timeline.flushMarker?"+":this.newStatusCount>99?"∞":this.newStatusCount},classes:function(){var e=this.embedded?["-nonpanel"]:["panel","panel-default"];return this.blockingClicks&&(e=e.concat(["-blocked","_misclick-prevention"])),{root:e,header:["timeline-heading"].concat(this.embedded?[]:["panel-heading","-sticky"]),body:["timeline-body"].concat(this.embedded?[]:["panel-body"]),footer:["timeline-footer"].concat(this.embedded?[]:["panel-footer"])}},pinnedStatusIdsObject:function(){return kc()(this.pinnedStatusIds)},statusesToDisplay:function(){var e=this.timeline.visibleStatuses.length,t=Math.ceil(Math.max(3,window.innerHeight/80)),n=this.virtualScrollIndex-this.filteredPinnedStatusIds.length,r=Math.max(0,n-t),o=Math.min(e,n+t);return this.timeline.visibleStatuses.slice(r,o).map((function(e){return e.id}))},virtualScrollingEnabled:function(){return this.$store.getters.mergedConfig.virtualScrolling}},(0,s.rn)({mobileLayout:function(e){return"mobile"===e.interface.layoutType}})),created:function(){var e=this.$store,t=e.state.users.currentUser.credentials,n=0===this.timeline.visibleStatuses.length;if(window.addEventListener("scroll",this.handleScroll),e.state.api.fetchers[this.timelineName])return!1;Ce.fetchAndUpdate({store:e,credentials:t,timeline:this.timelineName,showImmediately:n,userId:this.userId,listId:this.listId,tag:this.tag})},mounted:function(){void 0!==document.hidden&&(document.addEventListener("visibilitychange",this.handleVisibilityChange,!1),this.unfocused=document.hidden),window.addEventListener("keydown",this.handleShortKey),setTimeout(this.determineVisibleStatuses,250)},unmounted:function(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("keydown",this.handleShortKey),void 0!==document.hidden&&document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1),this.$store.commit("setLoading",{timeline:this.timelineName,value:!1})},methods:{scrollToTop:function(){window.scrollTo({top:this.$el.offsetTop})},stopBlockingClicks:Bs()((function(){this.blockingClicks=!1}),1e3),blockClicksTemporarily:function(){this.blockingClicks||(this.blockingClicks=!0),this.stopBlockingClicks()},handleShortKey:function(e){["textarea","input"].includes(e.target.tagName.toLowerCase())||"."===e.key&&this.showNewStatuses()},showNewStatuses:function(){0!==this.timeline.flushMarker?(this.$store.commit("clearTimeline",{timeline:this.timelineName,excludeUserId:!0}),this.$store.commit("queueFlush",{timeline:this.timelineName,id:0}),this.fetchOlderStatuses()):(this.blockClicksTemporarily(),this.$store.commit("showNewStatuses",{timeline:this.timelineName}),this.paused=!1),window.scrollTo({top:0})},fetchOlderStatuses:jc()((function(){var e=this,t=this.$store,n=t.state.users.currentUser.credentials;t.commit("setLoading",{timeline:this.timelineName,value:!0}),Ce.fetchAndUpdate({store:t,credentials:n,timeline:this.timelineName,older:!0,showImmediately:!0,userId:this.userId,listId:this.listId,tag:this.tag}).then((function(t){var n=t.statuses;n&&0===n.length&&(e.bottomedOut=!0)})).finally((function(){return t.commit("setLoading",{timeline:e.timelineName,value:!1})}))}),1e3,void 0),determineVisibleStatuses:function(){if(this.$refs.timeline&&this.virtualScrollingEnabled){var e=this.$refs.timeline.children,t=Math.max(0,Math.min(this.virtualScrollIndex,e.length-1));if(0!==e.length){var n=Math.max(document.body.offsetHeight,window.pageYOffset),r=window.pageYOffset+.5*window.innerHeight,o=Math.floor(e.length*(r/n)),i=e[o].getBoundingClientRect().y,s=e[t].getBoundingClientRect().y;for(Math.abs(i)>s&&(o=t,i=s);i<-20&&owindow.innerHeight+100&&o>0;)i-=e[--o].offsetHeight;this.virtualScrollIndex=o}}},scrollLoad:function(e){var t=document.body.getBoundingClientRect(),n=Math.max(t.height,-t.y);!1===this.timeline.loading&&this.$el.offsetHeight>0&&window.innerHeight+window.pageYOffset>=n-750&&this.fetchOlderStatuses()},handleScroll:jc()((function(e){this.showScrollTop=this.$el.offsetTop0){var t=document.documentElement;!((window.pageYOffset||t.scrollTop)-(t.clientTop||0)<15)||this.paused||this.unfocused&&this.$store.getters.mergedConfig.pauseOnUnfocused?this.paused=!0:this.showNewStatuses()}}}};const fl=ml,gl=(0,Lr.Z)(fl,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("TimelineMenu"),a=(0,lr.up)("FAIcon"),c=(0,lr.up)("FALayers"),l=(0,lr.up)("QuickFilterSettings"),u=(0,lr.up)("QuickViewSettings"),d=(0,lr.up)("conversation");return(0,lr.wg)(),(0,lr.iD)("div",{class:(0,ur.C_)(["Timeline",e.classes.root])},[(0,lr._)("div",{class:(0,ur.C_)(e.classes.header)},[e.embedded?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.j4)(s,{key:0,"timeline-name":e.timelineName},null,8,["timeline-name"])),e.showScrollTop&&!e.embedded?((0,lr.wg)(),(0,lr.iD)("div",uc,[(0,lr._)("button",{class:"button-unstyled scroll-to-top-button",type:"button",title:e.$t("general.scroll_to_top"),onClick:t[0]||(t[0]=function(){return e.scrollToTop&&e.scrollToTop.apply(e,arguments)})},[(0,lr.Wm)(c,{class:"fa-scale-110 fa-old-padding-layer"},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(a,{icon:"arrow-up"}),(0,lr.Wm)(a,{icon:"minus",transform:"up-7"})]})),_:1})],8,dc)])):(0,lr.kq)("",!0),e.mobileLayout&&!e.embedded?((0,lr.wg)(),(0,lr.iD)(lr.HY,{key:2},[e.showLoadButton?((0,lr.wg)(),(0,lr.iD)("div",pc,[(0,lr._)("button",{class:"button-unstyled loadmore-button",title:e.loadButtonString,onClick:t[1]||(t[1]=(0,or.iM)((function(){return e.showNewStatuses&&e.showNewStatuses.apply(e,arguments)}),["prevent"]))},[(0,lr.Wm)(a,{"fixed-width":"",icon:"circle-plus"}),(0,lr._)("div",mc,(0,ur.zw)(e.mobileLoadButtonString),1)],8,hc)])):e.embedded?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.iD)("div",{key:1,class:"loadmore-text faint veryfaint rightside-icon",title:e.$t("timeline.up_to_date"),"aria-disabled":!0,onClick:t[2]||(t[2]=(0,or.iM)((function(){}),["prevent"]))},[(0,lr.Wm)(a,{"fixed-width":"",icon:"check"})],8,fc))],64)):((0,lr.wg)(),(0,lr.iD)(lr.HY,{key:3},[e.showLoadButton?((0,lr.wg)(),(0,lr.iD)("button",{key:0,class:"button-default loadmore-button",onClick:t[3]||(t[3]=(0,or.iM)((function(){return e.showNewStatuses&&e.showNewStatuses.apply(e,arguments)}),["prevent"]))},(0,ur.zw)(e.loadButtonString),1)):e.embedded?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.iD)("div",{key:1,class:"loadmore-text faint",onClick:t[4]||(t[4]=(0,or.iM)((function(){}),["prevent"]))},(0,ur.zw)(e.$t("timeline.up_to_date")),1))],64)),e.embedded?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.j4)(l,{key:4,class:"rightside-button"})),e.embedded?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.j4)(u,{key:5,class:"rightside-button"}))],2),(0,lr._)("div",{class:(0,ur.C_)(e.classes.body)},[(0,lr._)("div",gc,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.filteredPinnedStatusIds,(function(t){return(0,lr.wg)(),(0,lr.j4)(d,{key:t+"-pinned",role:"listitem",class:"status-fadein","status-id":t,collapsable:!0,"pinned-status-ids-object":e.pinnedStatusIdsObject,"in-profile":e.inProfile,"profile-user-id":e.userId},null,8,["status-id","pinned-status-ids-object","in-profile","profile-user-id"])})),128)),((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.filteredVisibleStatuses,(function(t){return(0,lr.wg)(),(0,lr.j4)(d,{key:t.id,role:"listitem",class:"status-fadein","status-id":t.id,collapsable:!0,"in-profile":e.inProfile,"profile-user-id":e.userId,"virtual-hidden":e.virtualScrollingEnabled&&!e.statusesToDisplay.includes(t.id)},null,8,["status-id","in-profile","profile-user-id","virtual-hidden"])})),128))],512)],2),(0,lr._)("div",{class:(0,ur.C_)(e.classes.footer)},[((0,lr.wg)(),(0,lr.j4)(lr.lR,{to:e.footerSlipgate,disabled:!e.embedded||!e.footerSlipgate},[0===e.count?((0,lr.wg)(),(0,lr.iD)("div",vc,(0,ur.zw)(e.$t("timeline.no_statuses")),1)):e.bottomedOut?((0,lr.wg)(),(0,lr.iD)("div",wc,(0,ur.zw)(e.$t("timeline.no_more_statuses")),1)):e.timeline.loading?((0,lr.wg)(),(0,lr.iD)("div",yc,[(0,lr.Wm)(a,{icon:"circle-notch",spin:"",size:"lg"})])):((0,lr.wg)(),(0,lr.iD)("button",{key:2,class:"button-unstyled -link",onClick:t[5]||(t[5]=(0,or.iM)((function(t){return e.fetchOlderStatuses()}),["prevent"]))},[(0,lr._)("div",bc,(0,ur.zw)(e.$t("timeline.load_older")),1)]))],8,["to","disabled"]))],2)],2)}]]),vl={components:{Timeline:gl},computed:{timeline:function(){return this.$store.state.statuses.timelines.public}},created:function(){this.$store.dispatch("startFetchingTimeline",{timeline:"public"})},unmounted:function(){this.$store.dispatch("stopFetchingTimeline","public")}},wl=(0,Lr.Z)(vl,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("Timeline");return(0,lr.wg)(),(0,lr.j4)(s,{title:e.$t("nav.public_tl"),timeline:e.timeline,"timeline-name":"public"},null,8,["title","timeline"])}]]),bl={components:{Timeline:gl},computed:{timeline:function(){return this.$store.state.statuses.timelines.publicAndExternal}},created:function(){this.$store.dispatch("startFetchingTimeline",{timeline:"publicAndExternal"})},unmounted:function(){this.$store.dispatch("stopFetchingTimeline","publicAndExternal")}},yl=(0,Lr.Z)(bl,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("Timeline");return(0,lr.wg)(),(0,lr.j4)(s,{title:e.$t("nav.twkn"),timeline:e.timeline,"timeline-name":"publicAndExternal"},null,8,["title","timeline"])}]]),_l={components:{Timeline:gl},computed:{timeline:function(){return this.$store.state.statuses.timelines.friends}}},kl=(0,Lr.Z)(_l,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("Timeline");return(0,lr.wg)(),(0,lr.j4)(s,{title:e.$t("nav.timeline"),timeline:e.timeline,"timeline-name":"friends"},null,8,["title","timeline"])}]]),Sl={created:function(){this.$store.commit("clearTimeline",{timeline:"tag"}),this.$store.dispatch("startFetchingTimeline",{timeline:"tag",tag:this.tag})},components:{Timeline:gl},computed:{tag:function(){return this.$route.params.tag},timeline:function(){return this.$store.state.statuses.timelines.tag}},watch:{tag:function(){this.$store.commit("clearTimeline",{timeline:"tag"}),this.$store.dispatch("startFetchingTimeline",{timeline:"tag",tag:this.tag})}},unmounted:function(){this.$store.dispatch("stopFetchingTimeline","tag")}},jl=(0,Lr.Z)(Sl,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("Timeline");return(0,lr.wg)(),(0,lr.j4)(s,{title:e.tag,timeline:e.timeline,"timeline-name":"tag",tag:e.tag},null,8,["title","timeline","tag"])}]]),Ol={computed:{timeline:function(){return this.$store.state.statuses.timelines.bookmarks}},components:{Timeline:gl},unmounted:function(){this.$store.commit("clearTimeline",{timeline:"bookmarks"})}},Cl=(0,Lr.Z)(Ol,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("Timeline");return(0,lr.wg)(),(0,lr.j4)(s,{title:e.$t("nav.bookmarks"),timeline:e.timeline,"timeline-name":"bookmarks"},null,8,["title","timeline"])}]]),Pl={components:{Conversation:il},computed:{statusId:function(){return this.$route.params.id}}},zl=(0,Lr.Z)(Pl,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("conversation");return(0,lr.wg)(),(0,lr.j4)(s,{collapsable:!1,"is-page":"true","status-id":e.statusId},null,8,["status-id"])}]]);var Il={class:"panel panel-default"},Dl={class:"panel-heading"},xl={class:"title"},Tl=["label"],$l=["label"],Ul=["label"],Ml=["label"],Al=["label"],Ll=["label"],El=n(79354),Fl={mentions:["mention"],"likes+repeats":["repeat","like"],follows:["follow"],reactions:["pleroma:emoji_reaction"],reports:["pleroma:report"],moves:["move"]};const Rl={data:function(){return{allowFollowingMove:this.$store.state.users.currentUser.allow_following_move,filterMode:Fl.mentions,canSeeReports:this.$store.state.users.currentUser.privileges.includes("reports_manage_reports")}},methods:{onModeSwitch:function(e){this.filterMode=Fl[e]}},components:{Notifications:aa.default,TabSwitcher:El.Z}},Nl=(0,Lr.Z)(Rl,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("tab-switcher"),a=(0,lr.up)("Notifications");return(0,lr.wg)(),(0,lr.iD)("div",Il,[(0,lr._)("div",Dl,[(0,lr._)("div",xl,(0,ur.zw)(e.$t("nav.interactions")),1)]),(0,lr.Wm)(s,{ref:"tabSwitcher","on-switch":e.onModeSwitch},{default:(0,lr.w5)((function(){return[(0,lr._)("span",{key:"mentions",label:e.$t("nav.mentions")},null,8,Tl),(0,lr._)("span",{key:"likes+repeats",label:e.$t("interactions.favs_repeats")},null,8,$l),(0,lr._)("span",{key:"follows",label:e.$t("interactions.follows")},null,8,Ul),(0,lr._)("span",{key:"reactions",label:e.$t("interactions.emoji_reactions")},null,8,Ml),e.canSeeReports?((0,lr.wg)(),(0,lr.iD)("span",{key:"reports",label:e.$t("interactions.reports")},null,8,Al)):(0,lr.kq)("",!0),e.allowFollowingMove?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.iD)("span",{key:"moves",label:e.$t("interactions.moves")},null,8,Ll))]})),_:1},8,["on-switch"]),(0,lr.Wm)(a,{ref:"notifications","no-heading":!0,"minimal-mode":!0,"filter-mode":e.filterMode},null,8,["filter-mode"])])}]]),ql={computed:{timeline:function(){return this.$store.state.statuses.timelines.dms}},components:{Timeline:gl}},Zl=(0,Lr.Z)(ql,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("Timeline");return(0,lr.wg)(),(0,lr.j4)(s,{title:e.$t("nav.dms"),timeline:e.timeline,"timeline-name":"dms"},null,8,["title","timeline"])}]]);var Wl={key:0},Bl={key:1,class:"chat-list panel panel-default"},Hl={class:"panel-heading -sticky"},Vl={class:"title"},Kl={class:"panel-body"},Gl={key:0,class:"timeline"},Yl={key:1,class:"emtpy-chat-list-alert"},Jl={class:"chat-list-item-left"},Ql={class:"chat-list-item-center"},Xl={class:"heading"},eu={key:0,class:"name-and-account-name"},tu=(0,lr._)("span",{class:"heading-right"},null,-1),nu={class:"time-wrapper"},ru={class:"chat-preview"},ou={key:0,class:"badge badge-notification unread-chat-count"},iu=n(33288),su=n(62312),au=n(55432),cu=n(1840),lu=["title"],uu=n(92820);const du={name:"ChatTitle",components:{UserAvatar:su.default,RichContent:uu.Z,UserPopover:(0,lr.RC)((function(){return Promise.resolve().then(n.bind(n,78873))}))},props:["user","withAvatar"],computed:{title:function(){return this.user?this.user.screen_name_ui:""},htmlTitle:function(){return this.user?this.user.name_html:""}}},pu=(0,Lr.Z)(du,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("UserAvatar"),a=(0,lr.up)("UserPopover"),c=(0,lr.up)("RichContent");return(0,lr.wg)(),(0,lr.iD)("div",{class:"chat-title",title:e.title},[e.withAvatar&&e.user?((0,lr.wg)(),(0,lr.j4)(a,{key:0,class:"avatar-container","user-id":e.user.id},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(s,{class:"titlebar-avatar",user:e.user},null,8,["user"])]})),_:1},8,["user-id"])):(0,lr.kq)("",!0),e.user?((0,lr.wg)(),(0,lr.j4)(c,{key:1,class:"username",title:"@"+(e.user&&e.user.screen_name_ui),html:e.htmlTitle,emoji:e.user.emoji||[]},null,8,["title","html","emoji"])):(0,lr.kq)("",!0)],8,lu)}]]);function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mu(e){for(var t=1;t".concat(this.$t("chats.you")," ").concat(r):r;return{summary:"",emojis:t,raw_html:o,text:o,attachments:[]}}}),methods:{openChat:function(e){this.chat.id&&this.$router.push({name:"chat",params:{username:this.currentUser.screen_name,recipient_id:this.chat.account.id}})}}},gu=(0,Lr.Z)(fu,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("UserAvatar"),a=(0,lr.up)("ChatTitle"),c=(0,lr.up)("Timeago"),l=(0,lr.up)("StatusBody");return(0,lr.wg)(),(0,lr.iD)("div",{class:"chat-list-item",onClickCapture:t[0]||(t[0]=(0,or.iM)((function(){return e.openChat&&e.openChat.apply(e,arguments)}),["prevent"]))},[(0,lr._)("div",Jl,[(0,lr.Wm)(s,{user:e.chat.account,height:"48px",width:"48px"},null,8,["user"])]),(0,lr._)("div",Ql,[(0,lr._)("div",Xl,[e.chat.account?((0,lr.wg)(),(0,lr.iD)("span",eu,[(0,lr.Wm)(a,{user:e.chat.account},null,8,["user"])])):(0,lr.kq)("",!0),tu,(0,lr._)("div",nu,[(0,lr.Wm)(c,{time:e.chat.updated_at,"auto-update":60},null,8,["time"])])]),(0,lr._)("div",ru,[(0,lr.Wm)(l,{class:"chat-preview-body",status:e.messageForStatusContent,"single-line":!0},null,8,["status"]),e.chat.unread>0?((0,lr.wg)(),(0,lr.iD)("div",ou,(0,ur.zw)(e.chat.unread),1)):(0,lr.kq)("",!0)])])],32)}]]);var vu={class:"panel-default panel chat-new"},wu={ref:"header",class:"panel-heading"},bu={class:"input-wrap"},yu={class:"input-search"},_u={class:"member-list"},ku=["onClickCapture"],Su=n(85267);function ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ou(e){for(var t=1;t0?((0,lr.wg)(),(0,lr.iD)("div",Gl,[(0,lr.Wm)(c,{items:e.sortedChatList},{item:(0,lr.w5)((function(e){var t=e.item;return[((0,lr.wg)(),(0,lr.j4)(a,{key:t.id,compact:!1,chat:t},null,8,["chat"]))]})),_:1},8,["items"])])):((0,lr.wg)(),(0,lr.iD)("div",Yl,[(0,lr._)("span",null,(0,ur.zw)(e.$t("chats.empty_chat_list_placeholder")),1)]))])]))}]]);var $u={class:"chat-view"},Uu={class:"chat-view-inner"},Mu={ref:"inner",class:"panel-default panel chat-view-body"},Au={ref:"header",class:"panel-heading -sticky chat-view-heading"},Lu={class:"title text-center"},Eu={key:1,class:"chat-loading-error"},Fu={class:"alert error"},Ru={ref:"footer",class:"panel-body footer"},Nu={key:0,class:"badge badge-notification unread-chat-count unread-message-count"},qu={key:0,class:"avatar-wrapper"},Zu={class:"chat-message-inner"},Wu={class:"dropdown-menu"},Bu=["title"],Hu={class:"created-at"},Vu={key:1,class:"chat-message-date-separator"},Ku=n(74722),Gu=n(99822),Yu=n(87887),Ju=n(39776);const Qu={name:"Timeago",props:["date"],computed:{displayDate:function(){var e=new Date;return e.setHours(0,0,0,0),this.date.getTime()===e.getTime()?this.$t("display_date.today"):this.date.toLocaleDateString(Ju.Z.internalToBrowserLocale(this.$i18n.locale),{day:"numeric",month:"long"})}}},Xu=(0,Lr.Z)(Qu,[["render",function(e,t,n,r,o,i){return(0,lr.wg)(),(0,lr.iD)("time",null,(0,ur.zw)(i.displayDate),1)}]]);function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t0}},(0,s.rn)({betterShadow:function(e){return e.interface.browserSupport.cssFilter},currentUser:function(e){return e.users.currentUser},restrictedNicknames:function(e){return e.instance.restrictedNicknames}})),{},{popoverMarginStyle:function(){return this.isCurrentUser?{}:{left:50}}},(0,s.Se)(["mergedConfig","findUser"])),data:function(){return{hovered:!1,menuOpened:!1}},methods:{onHover:function(e){this.$emit("hover",{isHovered:e,messageChainId:this.chatViewItem.messageChainId})},deleteMessage:function(){var e=this;return(0,r.Z)(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.confirm(e.$t("chats.delete_confirm"))){t.next=4;break}return t.next=4,e.$store.dispatch("deleteChatMessage",{messageId:e.chatViewItem.data.id,chatId:e.chatViewItem.data.chat_id});case 4:e.hovered=!1,e.menuOpened=!1;case 6:case"end":return t.stop()}}),t)})))()}}},rd=(0,Lr.Z)(nd,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("UserAvatar"),a=(0,lr.up)("UserPopover"),c=(0,lr.up)("FAIcon"),l=(0,lr.up)("Popover"),u=(0,lr.up)("StatusContent"),d=(0,lr.up)("ChatMessageDate");return e.isMessage?((0,lr.wg)(),(0,lr.iD)("div",{key:0,class:(0,ur.C_)(["chat-message-wrapper",{"hovered-message-chain":e.hoveredMessageChain}]),onMouseover:t[5]||(t[5]=function(t){return e.onHover(!0)}),onMouseleave:t[6]||(t[6]=function(t){return e.onHover(!1)})},[(0,lr._)("div",{class:(0,ur.C_)(["chat-message",[{outgoing:e.isCurrentUser,incoming:!e.isCurrentUser}]])},[e.isCurrentUser?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.iD)("div",qu,[e.chatViewItem.isHead?((0,lr.wg)(),(0,lr.j4)(a,{key:0,"user-id":e.author.id},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(s,{compact:!0,"better-shadow":e.betterShadow,user:e.author},null,8,["better-shadow","user"])]})),_:1},8,["user-id"])):(0,lr.kq)("",!0)])),(0,lr._)("div",Zu,[(0,lr._)("div",{class:"status-body",style:(0,ur.j5)({"min-width":e.message.attachment?"80%":""})},[(0,lr._)("div",{class:(0,ur.C_)(["media status",{"without-attachment":!e.hasAttachment,pending:e.chatViewItem.data.pending,error:e.chatViewItem.data.error}]),style:{position:"relative"},onMouseenter:t[3]||(t[3]=function(t){return e.hovered=!0}),onMouseleave:t[4]||(t[4]=function(t){return e.hovered=!1})},[(0,lr._)("div",{class:(0,ur.C_)(["chat-message-menu",{visible:e.hovered||e.menuOpened}])},[(0,lr.Wm)(l,{trigger:"click",placement:"top","bound-to-selector":".chat-view-inner","bound-to":{x:"container"},margin:e.popoverMarginStyle,onShow:t[1]||(t[1]=function(t){return e.menuOpened=!0}),onClose:t[2]||(t[2]=function(t){return e.menuOpened=!1})},{content:(0,lr.w5)((function(){return[(0,lr._)("div",Wu,[(0,lr._)("button",{class:"button-default dropdown-item dropdown-item-icon",onClick:t[0]||(t[0]=function(){return e.deleteMessage&&e.deleteMessage.apply(e,arguments)})},[(0,lr.Wm)(c,{icon:"times"}),(0,lr.Uk)(" "+(0,ur.zw)(e.$t("chats.delete")),1)])])]})),trigger:(0,lr.w5)((function(){return[(0,lr._)("button",{class:"button-default menu-icon",title:e.$t("chats.more")},[(0,lr.Wm)(c,{icon:"ellipsis-h"})],8,Bu)]})),_:1},8,["margin"])],2),(0,lr.Wm)(u,{class:"message-content",status:e.messageForStatusContent,"full-content":!0},{footer:(0,lr.w5)((function(){return[(0,lr._)("span",Hu,(0,ur.zw)(e.createdAt),1)]})),_:1},8,["status"])],34)],4)])],2)],34)):((0,lr.wg)(),(0,lr.iD)("div",Vu,[(0,lr.Wm)(d,{date:e.chatViewItem.date},null,8,["date"])]))}]]);var od=function(){return{scrollTop:window.scrollY,scrollHeight:document.documentElement.scrollHeight,offsetHeight:window.innerHeight}};function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sd(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.delayed,r=void 0!==n&&n;r?setTimeout((function(){e.handleResize(sd(sd({},t),{},{delayed:!1}))}),100):this.$nextTick((function(){var t=od().offsetHeight,n=(void 0===t?void 0:t)-e.lastScrollPosition.offsetHeight;0===n||e.bottomedOut()||e.$nextTick((function(){window.scrollBy({top:-Math.trunc(n)})})),e.lastScrollPosition=od()}))},scrollDown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.behavior,n=void 0===t?"auto":t,r=e.forceRead,o=void 0!==r&&r;this.$nextTick((function(){window.scrollTo({top:document.documentElement.scrollHeight,behavior:n})})),o&&this.readChat()},readChat:function(){if(this.currentChatMessageService&&this.currentChatMessageService.maxId&&!document.hidden){var e=this.currentChatMessageService.maxId;this.$store.dispatch("readChat",{id:this.currentChat.id,lastReadId:e})}},bottomedOut:function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=window.scrollY+e;return document.documentElement.scrollHeight-window.innerHeight<=t}(e)},reachedTop:function(){return window.scrollY<=0},cullOlderCheck:function(){var e=this;window.setTimeout((function(){e.bottomedOut(10)&&e.$store.dispatch("cullOlderMessages",e.currentChatMessageService.chatId)}),5e3)},handleScroll:jc()((function(){var e=this;this.lastScrollPosition=od(),this.currentChat&&(this.reachedTop()?this.fetchChat({maxId:this.currentChatMessageService.minId}):this.bottomedOut(10)?(this.jumpToBottomButtonVisible=!1,this.cullOlderCheck(),this.newMessageCount>0&&window.setTimeout((function(){e.$el&&e.readChat()}),1500)):this.jumpToBottomButtonVisible=!0)}),200),handleScrollUp:function(e){var t,n,r=od();window.scrollTo({top:(t=e,n=r,t.scrollTop+(n.scrollHeight-t.scrollHeight))})},fetchChat:function(e){var t=this,n=e.isFirstFetch,r=void 0!==n&&n,o=e.fetchLatest,i=void 0!==o&&o,s=e.maxId,a=this.currentChatMessageService;if(a&&(!i||!this.streamingEnabled)){var c=a.chatId,l=!!s,u=i&&a.maxId;return this.backendInteractor.chatMessages({id:c,maxId:s,sinceId:u}).then((function(e){r&&En.clear(a);var n=od();t.$store.dispatch("addChatMessages",{chatId:c,messages:e}).then((function(){t.$nextTick((function(){l&&t.handleScrollUp(n),!(document.documentElement.scrollHeight>window.innerHeight)&&e.length>0&&t.fetchChat({maxId:t.currentChatMessageService.minId})}))}))}))}},startFetching:function(){var e=this;return(0,r.Z)(i().mark((function t(){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.findOpenedChatByRecipientId(e.recipientId)){t.next=12;break}return t.prev=2,t.next=5,e.backendInteractor.getOrCreateChat({accountId:e.recipientId});case 5:n=t.sent,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(2),console.error("Error creating or getting a chat",t.t0),e.errorLoadingChat=!0;case 12:n&&(e.$nextTick((function(){e.scrollDown({forceRead:!0})})),e.$store.dispatch("addOpenedChat",{chat:n}),e.doStartFetching());case 13:case"end":return t.stop()}}),t,null,[[2,8]])})))()},doStartFetching:function(){var e=this;this.$store.dispatch("startFetchingCurrentChat",{fetcher:function(){return(0,Se.F)((function(){return e.fetchChat({fetchLatest:!0})}),5e3)}}),this.fetchChat({isFirstFetch:!0})},handleAttachmentPosting:function(){var e=this;this.$nextTick((function(){e.handleResize(),e.scrollDown({forceRead:!0})}))},sendMessage:function(e){var t=this,n=e.status,r=e.media,o=e.idempotencyKey,i={id:this.currentChat.id,content:n,idempotencyKey:o};r[0]&&(i.mediaId=r[0].id);var s=function(e){var t=e.attachments,n=e.userId,r=e.idempotencyKey,o={content:e.content,chat_id:e.chatId,created_at:new Date,id:"".concat((new Date).getTime()),attachments:t,account_id:n,idempotency_key:r,emojis:[],pending:!0,isNormalized:!0};return t[0]&&(o.attachment=t[0]),o}({attachments:r,chatId:this.currentChat.id,content:n,userId:this.currentUser.id,idempotencyKey:o});return this.$store.dispatch("addChatMessages",{chatId:this.currentChat.id,messages:[s]}).then((function(){t.handleAttachmentPosting()})),this.doSendMessage({params:i,fakeMessage:s,retriesLeft:10})},doSendMessage:function(e){var t=this,n=e.params,r=e.fakeMessage,o=e.retriesLeft,i=void 0===o?10:o;if(!(i<=0))return this.backendInteractor.sendChatMessage(n).then((function(e){return t.$store.dispatch("addChatMessages",{chatId:t.currentChat.id,updateMaxId:!1,messages:[sd(sd({},e),{},{fakeId:r.id})]}),e})).catch((function(e){return console.error("Error sending message",e),t.$store.dispatch("handleMessageError",{chatId:t.currentChat.id,fakeId:r.id,isRetry:10!==i}),(e.statusCode>=500&&e.statusCode<600||"Failed to fetch"===e.message)&&(t.messageRetriers[r.id]=setTimeout((function(){t.doSendMessage({params:n,fakeMessage:r,retriesLeft:i-1})}),1e3*Math.pow(2,10-i))),{}})),Promise.resolve(r)},goBack:function(){this.$router.push({name:"chats",params:{username:this.currentUser.screen_name}})}}};const cd=ad,ld=(0,Lr.Z)(cd,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("FAIcon"),a=(0,lr.up)("ChatTitle"),c=(0,lr.up)("ChatMessage"),l=(0,lr.up)("PostStatusForm");return(0,lr.wg)(),(0,lr.iD)("div",$u,[(0,lr._)("div",Uu,[(0,lr._)("div",Mu,[(0,lr._)("div",Au,[(0,lr._)("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},[(0,lr.Wm)(s,{size:"lg",icon:"chevron-left"})]),(0,lr._)("div",Lu,[(0,lr.Wm)(a,{user:e.recipient,"with-avatar":!0},null,8,["user"])])],512),(0,lr._)("div",{class:"message-list",style:(0,ur.j5)({height:e.scrollableContainerHeight})},[e.errorLoadingChat?((0,lr.wg)(),(0,lr.iD)("div",Eu,[(0,lr._)("div",Fu,(0,ur.zw)(e.$t("chats.error_loading_chat")),1)])):((0,lr.wg)(!0),(0,lr.iD)(lr.HY,{key:0},(0,lr.Ko)(e.chatViewItems,(function(t){return(0,lr.wg)(),(0,lr.j4)(c,{key:t.id,author:e.recipient,"chat-view-item":t,"hovered-message-chain":t.messageChainId===e.hoveredMessageChainId,onHover:e.onMessageHover},null,8,["author","chat-view-item","hovered-message-chain","onHover"])})),128))],4),(0,lr._)("div",Ru,[(0,lr._)("div",{class:(0,ur.C_)(["jump-to-bottom-button",{visible:e.jumpToBottomButtonVisible}]),onClick:t[1]||(t[1]=function(t){return e.scrollDown({behavior:"smooth"})})},[(0,lr._)("span",null,[(0,lr.Wm)(s,{icon:"chevron-down"}),e.newMessageCount?((0,lr.wg)(),(0,lr.iD)("div",Nu,(0,ur.zw)(e.newMessageCount),1)):(0,lr.kq)("",!0)])],2),(0,lr.Wm)(l,{"disable-subject":!0,"disable-scope-selector":!0,"disable-notice":!0,"disable-lock-warning":!0,"disable-polls":!0,"disable-sensitivity-checkbox":!0,"disable-submit":e.errorLoadingChat||!e.currentChat,"disable-preview":!0,"optimistic-posting":!0,"post-handler":e.sendMessage,"submit-on-enter":!e.mobileLayout,"preserve-focus":!e.mobileLayout,"auto-focus":!e.mobileLayout,placeholder:e.formPlaceholder,"file-limit":1,"max-height":"160","emoji-picker-placement":"top",onResize:e.handleResize},null,8,["disable-submit","post-handler","submit-on-enter","preserve-focus","auto-focus","placeholder","onResize"])],512)],512)])])}]]);var ud={key:0,class:"user-profile panel panel-default"},dd={key:0,class:"user-profile-fields"},pd=["title"],hd=["title"],md=["label","disabled"],fd=["label","disabled"],gd={key:1,class:"panel user-profile-placeholder"},vd={class:"panel-heading"},wd={class:"title"},bd={class:"panel-body"},yd={key:0},_d={class:"follow-card-content-container"},kd={key:0,class:"faint"},Sd={key:0,class:"follow-card-follow-button"},jd=n(72895),Od=n(13046),Cd=["disabled","title"];const Pd={props:["relationship"],data:function(){return{inProgress:!1}},computed:{label:function(){return this.inProgress?this.$t("user_card.follow_progress"):this.$t("user_card.remove_follower")}},methods:{onClick:function(){var e=this;this.inProgress=!0,this.$store.dispatch("removeUserFromFollowers",this.relationship.id).then((function(){e.inProgress=!1}))}}},zd=(0,Lr.Z)(Pd,[["render",function(e,t,n,r,o,i){return(0,lr.wg)(),(0,lr.iD)("button",{class:(0,ur.C_)(["btn button-default follow-button",{toggled:e.inProgress}]),disabled:e.inProgress,title:e.$t("user_card.remove_follower"),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},(0,ur.zw)(e.label),11,Cd)}]]),Id={props:["user","noFollowsYou"],components:{BasicUserCard:Su.Z,RemoteFollow:jd.Z,FollowButton:Od.Z,RemoveFollowerButton:zd},computed:{isMe:function(){return this.$store.state.users.currentUser.id===this.user.id},loggedIn:function(){return this.$store.state.users.currentUser},relationship:function(){return this.$store.getters.relationship(this.user.id)}}},Dd=(0,Lr.Z)(Id,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("RemoteFollow"),a=(0,lr.up)("FollowButton"),c=(0,lr.up)("RemoveFollowerButton"),l=(0,lr.up)("basic-user-card");return(0,lr.wg)(),(0,lr.j4)(l,{user:e.user},{default:(0,lr.w5)((function(){return[(0,lr._)("div",_d,[e.isMe||!e.noFollowsYou&&e.relationship.followed_by?((0,lr.wg)(),(0,lr.iD)("span",kd,(0,ur.zw)(e.isMe?e.$t("user_card.its_you"):e.$t("user_card.follows_you")),1)):(0,lr.kq)("",!0),e.loggedIn?e.isMe?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.iD)(lr.HY,{key:2},[(0,lr.Wm)(a,{relationship:e.relationship,"label-following":e.$t("user_card.follow_unfollow"),class:"follow-card-follow-button",user:e.user},null,8,["relationship","label-following","user"]),e.noFollowsYou&&e.relationship.followed_by?((0,lr.wg)(),(0,lr.j4)(c,{key:0,relationship:e.relationship,class:"follow-card-button"},null,8,["relationship"])):(0,lr.kq)("",!0)],64)):((0,lr.wg)(),(0,lr.iD)(lr.HY,{key:1},[e.relationship.following?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.iD)("div",Sd,[(0,lr.Wm)(s,{user:e.user},null,8,["user"])]))],64))])]})),_:1},8,["user"])}]]);var xd=n(41609),Td=n.n(xd),$d=n(13562);function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Md(e){for(var t=1;t0&&window.innerHeight+window.pageYOffset>=n-750&&this.fetchEntries()}},render:function(){var t,n=Md(Md({},this.$props),{},(0,d.Z)({},i,this.entries)),r=this.$slots;return(0,lr.Wm)("div",{class:"with-load-more"},[(0,lr.Wm)(e,n,(t=r,"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,lr.lA)(t)?r:{default:function(){return[r]}})),(0,lr.Wm)("div",{class:"with-load-more-footer"},[this.error&&(0,lr.Wm)("button",{onClick:this.fetchEntries,class:"button-unstyled -link -fullwidth alert error"},[this.$t("general.generic_error")]),!this.error&&this.loading&&(0,lr.Wm)(cr.GN,{spin:!0,icon:"circle-notch"},null),!this.error&&!this.loading&&!this.bottomedOut&&(0,lr.Wm)("a",{onClick:this.fetchEntries},[this.$t("general.more")])])])}}}};Rt.vI.add(Nt.IJ7);var Ld=Ad({fetch:function(e,t){return t.dispatch("fetchFollowers",e.userId)},select:function(e,t){return xt()(t.getters.findUser(e.userId),"followerIds",[]).map((function(e){return t.getters.findUser(e)}))},destroy:function(e,t){return t.dispatch("clearFollowers",e.userId)},childPropName:"items",additionalPropNames:["userId"]})(Aa.Z),Ed=Ad({fetch:function(e,t){return t.dispatch("fetchFriends",e.userId)},select:function(e,t){return xt()(t.getters.findUser(e.userId),"friendIds",[]).map((function(e){return t.getters.findUser(e)}))},destroy:function(e,t){return t.dispatch("clearFriends",e.userId)},childPropName:"items",additionalPropNames:["userId"]})(Aa.Z),Fd="statuses";const Rd={data:function(){return{error:!1,userId:null,tab:Fd,footerRef:null}},created:function(){var e=this.$route.params;this.load({name:e.name,id:e.id}),this.tab=xt()(this.$route,"query.tab",Fd)},unmounted:function(){this.stopFetching()},computed:{timeline:function(){return this.$store.state.statuses.timelines.user},favorites:function(){return this.$store.state.statuses.timelines.favorites},media:function(){return this.$store.state.statuses.timelines.media},isUs:function(){return this.userId&&this.$store.state.users.currentUser.id&&this.userId===this.$store.state.users.currentUser.id},user:function(){return this.$store.getters.findUser(this.userId)},isExternal:function(){return"external-user-profile"===this.$route.name},followsTabVisible:function(){return this.isUs||!this.user.hide_follows},followersTabVisible:function(){return this.isUs||!this.user.hide_followers}},methods:{setFooterRef:function(e){this.footerRef=e},load:function(e){var t=this,n=function(e,n){n!==t.$store.state.statuses.timelines[e].userId&&t.$store.commit("clearTimeline",{timeline:e}),t.$store.dispatch("startFetchingTimeline",{timeline:e,userId:n})},r=function(e){t.userId=e,n("user",e),n("media",e),t.isUs&&n("favorites",e),t.$store.dispatch("fetchPinnedStatuses",e)};this.userId=null,this.error=!1;var o=e.id,i=e.name,s=o?this.$store.getters.findUser(o):this.$store.getters.findUserByName(i);s?r(s.id):(o?this.$store.dispatch("fetchUser",o):this.$store.dispatch("fetchUserByName",i)).then((function(e){var t=e.id;return r(t)})).catch((function(e){var n=xt()(e,"error.error");t.error="No user with such user_id"===n?t.$t("user_profile.profile_does_not_exist"):n||t.$t("user_profile.profile_loading_error")}))},stopFetching:function(){this.$store.dispatch("stopFetchingTimeline","user"),this.$store.dispatch("stopFetchingTimeline","favorites"),this.$store.dispatch("stopFetchingTimeline","media")},switchUser:function(e){this.stopFetching(),this.load(e)},onTabSwitch:function(e){this.tab=e,this.$router.replace({query:{tab:e}})},linkClicked:function(e){var t=e.target;"SPAN"===t.tagName&&(t=t.parentNode),"A"===t.tagName&&window.open(t.href,"_blank")}},watch:{"$route.params.id":function(e){e&&this.switchUser({id:e})},"$route.params.name":function(e){e&&this.switchUser({name:e})},"$route.query":function(e){this.tab=e.tab||Fd}},components:{UserCard:_o.Z,Timeline:gl,FollowerList:Ld,FriendList:Ed,FollowCard:Dd,TabSwitcher:El.Z,Conversation:il,RichContent:uu.Z}},Nd=(0,Lr.Z)(Rd,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("UserCard"),a=(0,lr.up)("RichContent"),c=(0,lr.up)("Timeline"),l=(0,lr.up)("FollowCard"),u=(0,lr.up)("FriendList"),d=(0,lr.up)("FollowerList"),p=(0,lr.up)("tab-switcher"),h=(0,lr.up)("FAIcon");return(0,lr.wg)(),(0,lr.iD)("div",null,[e.user?((0,lr.wg)(),(0,lr.iD)("div",ud,[(0,lr.Wm)(s,{"user-id":e.userId,switcher:!0,selected:e.timeline.viewing,"avatar-action":"zoom",rounded:"top","has-note-editor":!0},null,8,["user-id","selected"]),e.user.fields_html&&e.user.fields_html.length>0?((0,lr.wg)(),(0,lr.iD)("div",dd,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.user.fields_html,(function(t,n){return(0,lr.wg)(),(0,lr.iD)("dl",{key:n,class:"user-profile-field"},[(0,lr._)("dt",{title:e.user.fields_text[n].name,class:"user-profile-field-name"},[(0,lr.Wm)(a,{html:t.name,emoji:e.user.emoji},null,8,["html","emoji"])],8,pd),(0,lr._)("dd",{title:e.user.fields_text[n].value,class:"user-profile-field-value"},[(0,lr.Wm)(a,{html:t.value,emoji:e.user.emoji},null,8,["html","emoji"])],8,hd)])})),128))])):(0,lr.kq)("",!0),(0,lr.Wm)(p,{"active-tab":e.tab,"render-only-focused":!0,"on-switch":e.onTabSwitch},{default:(0,lr.w5)((function(){return[(0,lr.Wm)(c,{key:"statuses",label:e.$t("user_card.statuses"),count:e.user.statuses_count,embedded:!0,title:e.$t("user_profile.timeline_title"),timeline:e.timeline,"timeline-name":"user","user-id":e.userId,"pinned-status-ids":e.user.pinnedStatusIds,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","count","title","timeline","user-id","pinned-status-ids","footer-slipgate"]),e.followsTabVisible?((0,lr.wg)(),(0,lr.iD)("div",{key:"followees",label:e.$t("user_card.followees"),disabled:!e.user.friends_count},[(0,lr.Wm)(u,{"user-id":e.userId},{item:(0,lr.w5)((function(e){var t=e.item;return[(0,lr.Wm)(l,{user:t},null,8,["user"])]})),_:1},8,["user-id"])],8,md)):(0,lr.kq)("",!0),e.followersTabVisible?((0,lr.wg)(),(0,lr.iD)("div",{key:"followers",label:e.$t("user_card.followers"),disabled:!e.user.followers_count},[(0,lr.Wm)(d,{"user-id":e.userId},{item:(0,lr.w5)((function(t){var n=t.item;return[(0,lr.Wm)(l,{user:n,"no-follows-you":e.isUs},null,8,["user","no-follows-you"])]})),_:1},8,["user-id"])],8,fd)):(0,lr.kq)("",!0),(0,lr.Wm)(c,{key:"media",label:e.$t("user_card.media"),disabled:!e.media.visibleStatuses.length,embedded:!0,title:e.$t("user_card.media"),"timeline-name":"media",timeline:e.media,"user-id":e.userId,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","disabled","title","timeline","user-id","footer-slipgate"]),e.isUs?((0,lr.wg)(),(0,lr.j4)(c,{key:"favorites",label:e.$t("user_card.favorites"),disabled:!e.favorites.visibleStatuses.length,embedded:!0,title:e.$t("user_card.favorites"),"timeline-name":"favorites",timeline:e.favorites,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","disabled","title","timeline","footer-slipgate"])):(0,lr.kq)("",!0)]})),_:1},8,["active-tab","on-switch"]),(0,lr._)("div",{ref:e.setFooterRef,class:"panel-footer"},null,512)])):((0,lr.wg)(),(0,lr.iD)("div",gd,[(0,lr._)("div",vd,[(0,lr._)("div",wd,(0,ur.zw)(e.$t("settings.profile_tab")),1)]),(0,lr._)("div",bd,[e.error?((0,lr.wg)(),(0,lr.iD)("span",yd,(0,ur.zw)(e.error),1)):((0,lr.wg)(),(0,lr.j4)(h,{key:1,spin:"",icon:"circle-notch"}))])]))])}]]);var qd={class:"panel panel-default"},Zd={class:"panel-heading"},Wd={class:"title"},Bd={class:"search-input-container"},Hd=["placeholder"],Vd={key:0,class:"text-center loading-icon"},Kd={key:1},Gd={class:"search-nav-heading"},Yd=["label"],Jd=["label"],Qd=["label"],Xd={class:"panel-body"},ep={key:0},tp={class:"new-status-notification text-center"},np={key:1,class:"text-center loading-icon"},rp={key:2,class:"search-result-heading"},op={key:1},ip={key:0,class:"search-result-heading"},sp={key:2},ap={key:0,class:"search-result-heading"},cp={class:"hashtag"},lp={key:0},up={key:0},dp={key:1},pp={key:0,class:"count"},hp=(0,lr._)("div",{class:"search-result-footer text-center panel-footer faint"},null,-1),mp=n(45578),fp=n.n(mp);Rt.vI.add(Nt.IJ7,Nt.wn1);const gp={components:{FollowCard:Dd,Conversation:il,Status:Ma.default,TabSwitcher:El.Z},props:["query"],data:function(){return{loaded:!1,loading:!1,searchTerm:this.query||"",userIds:[],statuses:[],hashtags:[],currenResultTab:"statuses",statusesOffset:0,lastStatusFetchCount:0,lastQuery:""}},computed:{users:function(){var e=this;return this.userIds.map((function(t){return e.$store.getters.findUser(t)}))},visibleStatuses:function(){var e=this.$store.state.statuses.allStatusesObject;return this.statuses.filter((function(t){return e[t.id]&&!e[t.id].deleted}))}},mounted:function(){this.search(this.query)},watch:{query:function(e){this.searchTerm=e,this.search(e)}},methods:{newQuery:function(e){this.$router.push({name:"search",query:{query:e}}),this.$refs.searchInput.focus()},search:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e?(this.loading=!0,this.$refs.searchInput.blur(),this.lastQuery!==e&&(this.userIds=[],this.hashtags=[],this.statuses=[],this.statusesOffset=0,this.lastStatusFetchCount=0),this.$store.dispatch("search",{q:e,resolve:!0,offset:this.statusesOffset,type:n}).then((function(n){t.loading=!1;var r=t.statuses.length;t.userIds=t.userIds.concat(we()(n.accounts,"id")),t.statuses=fp()(t.statuses.concat(n.statuses),"id"),t.hashtags=t.hashtags.concat(n.hashtags),t.currenResultTab=t.getActiveTab(),t.loaded=!0,t.statusesOffset=t.statuses.length,t.lastStatusFetchCount=t.statuses.length-r,t.lastQuery=e}))):this.loading=!1},resultCount:function(e){var t=this[e].length;return 0===t?"":" (".concat(t,")")},onResultTabSwitch:function(e){this.currenResultTab=e},getActiveTab:function(){return this.visibleStatuses.length>0?"statuses":this.users.length>0?"people":this.hashtags.length>0?"hashtags":"statuses"},lastHistoryRecord:function(e){return e.history&&e.history[0]}}},vp=(0,Lr.Z)(gp,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("FAIcon"),a=(0,lr.up)("tab-switcher"),c=(0,lr.up)("Status"),l=(0,lr.up)("FollowCard"),u=(0,lr.up)("router-link");return(0,lr.wg)(),(0,lr.iD)("div",qd,[(0,lr._)("div",Zd,[(0,lr._)("div",Wd,(0,ur.zw)(e.$t("nav.search")),1)]),(0,lr._)("div",Bd,[(0,lr.wy)((0,lr._)("input",{ref:"searchInput","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.searchTerm=t}),class:"search-input",placeholder:e.$t("nav.search"),onKeyup:t[1]||(t[1]=(0,or.D2)((function(t){return e.newQuery(e.searchTerm)}),["enter"]))},null,40,Hd),[[or.nr,e.searchTerm]]),(0,lr._)("button",{class:"btn button-default search-button",type:"submit",onClick:t[2]||(t[2]=function(t){return e.newQuery(e.searchTerm)})},[(0,lr.Wm)(s,{icon:"search"})])]),e.loading&&0==e.statusesOffset?((0,lr.wg)(),(0,lr.iD)("div",Vd,[(0,lr.Wm)(s,{icon:"circle-notch",spin:"",size:"lg"})])):e.loaded?((0,lr.wg)(),(0,lr.iD)("div",Kd,[(0,lr._)("div",Gd,[(0,lr.Wm)(a,{ref:"tabSwitcher","on-switch":e.onResultTabSwitch,"active-tab":e.currenResultTab},{default:(0,lr.w5)((function(){return[(0,lr._)("span",{key:"statuses",label:e.$t("user_card.statuses")+e.resultCount("visibleStatuses")},null,8,Yd),(0,lr._)("span",{key:"people",label:e.$t("search.people")+e.resultCount("users")},null,8,Jd),(0,lr._)("span",{key:"hashtags",label:e.$t("search.hashtags")+e.resultCount("hashtags")},null,8,Qd)]})),_:1},8,["on-switch","active-tab"])])])):(0,lr.kq)("",!0),(0,lr._)("div",Xd,["statuses"===e.currenResultTab?((0,lr.wg)(),(0,lr.iD)("div",ep,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.visibleStatuses,(function(e){return(0,lr.wg)(),(0,lr.j4)(c,{key:e.id,collapsable:!1,expandable:!1,compact:!1,class:"search-result",statusoid:e,"no-heading":!1},null,8,["statusoid"])})),128)),!e.loading&&e.loaded&&e.lastStatusFetchCount>0?((0,lr.wg)(),(0,lr.iD)("button",{key:0,class:"more-statuses-button button-unstyled -link -fullwidth",onClick:t[3]||(t[3]=(0,or.iM)((function(t){return e.search(e.searchTerm,"statuses")}),["prevent"]))},[(0,lr._)("div",tp,(0,ur.zw)(e.$t("search.load_more")),1)])):e.loading&&e.statusesOffset>0?((0,lr.wg)(),(0,lr.iD)("div",np,[(0,lr.Wm)(s,{icon:"circle-notch",spin:"",size:"lg"})])):(0,lr.kq)("",!0),0!==e.visibleStatuses.length&&0!==e.lastStatusFetchCount||e.loading||!e.loaded?(0,lr.kq)("",!0):((0,lr.wg)(),(0,lr.iD)("div",rp,[(0,lr._)("h4",null,(0,ur.zw)(0===e.visibleStatuses.length?e.$t("search.no_results"):e.$t("search.no_more_results")),1)]))])):"people"===e.currenResultTab?((0,lr.wg)(),(0,lr.iD)("div",op,[0===e.users.length&&!e.loading&&e.loaded?((0,lr.wg)(),(0,lr.iD)("div",ip,[(0,lr._)("h4",null,(0,ur.zw)(e.$t("search.no_results")),1)])):(0,lr.kq)("",!0),((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.users,(function(e){return(0,lr.wg)(),(0,lr.j4)(l,{key:e.id,user:e,class:"list-item search-result"},null,8,["user"])})),128))])):"hashtags"===e.currenResultTab?((0,lr.wg)(),(0,lr.iD)("div",sp,[0===e.hashtags.length&&!e.loading&&e.loaded?((0,lr.wg)(),(0,lr.iD)("div",ap,[(0,lr._)("h4",null,(0,ur.zw)(e.$t("search.no_results")),1)])):(0,lr.kq)("",!0),((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.hashtags,(function(t){return(0,lr.wg)(),(0,lr.iD)("div",{key:t.url,class:"status trend search-result"},[(0,lr._)("div",cp,[(0,lr.Wm)(u,{to:{name:"tag-timeline",params:{tag:t.name}}},{default:(0,lr.w5)((function(){return[(0,lr.Uk)(" #"+(0,ur.zw)(t.name),1)]})),_:2},1032,["to"]),e.lastHistoryRecord(t)?((0,lr.wg)(),(0,lr.iD)("div",lp,[1==e.lastHistoryRecord(t).accounts?((0,lr.wg)(),(0,lr.iD)("span",up,(0,ur.zw)(e.$t("search.person_talking",{count:e.lastHistoryRecord(t).accounts})),1)):((0,lr.wg)(),(0,lr.iD)("span",dp,(0,ur.zw)(e.$t("search.people_talking",{count:e.lastHistoryRecord(t).accounts})),1))])):(0,lr.kq)("",!0)]),e.lastHistoryRecord(t)?((0,lr.wg)(),(0,lr.iD)("div",pp,(0,ur.zw)(e.lastHistoryRecord(t).uses),1)):(0,lr.kq)("",!0)])})),128))])):(0,lr.kq)("",!0)]),hp])}]]);var wp={class:"settings panel panel-default"},bp={class:"panel-heading"},yp={class:"panel-body"},_p={class:"container"},kp={class:"text-fields"},Sp={class:"form--label",for:"sign-up-username"},jp=["disabled","placeholder"],Op={key:0,class:"form-error"},Cp={key:0},Pp={class:"form--label",for:"sign-up-fullname"},zp=["disabled","placeholder"],Ip={key:1,class:"form-error"},Dp={key:0},xp={class:"form--label",for:"email"},Tp=["disabled","aria-required"],$p={key:2,class:"form-error"},Up={key:0},Mp={class:"form-group"},Ap={class:"form--label",for:"bio"},Lp=["disabled","placeholder"],Ep={class:"form--label",for:"sign-up-password"},Fp=["disabled"],Rp={key:3,class:"form-error"},Np={key:0},qp={class:"form--label",for:"sign-up-password-confirmation"},Zp=["disabled"],Wp={key:4,class:"form-error"},Bp={key:0},Hp={key:1},Vp={key:5,class:"form-group"},Kp={class:"form--label",for:"reason"},Gp=["disabled","placeholder"],Yp={key:6,id:"captcha-group",class:"form-group"},Jp={class:"form--label",for:"captcha-label"},Qp=["src"],Xp=["disabled"],eh={key:7,class:"form-group"},th={for:"token"},nh={class:"form-group"},rh=["disabled"],oh=["innerHTML"],ih={key:0,class:"form-group"},sh={class:"alert error"},ah=n(54028),ch=n(35332);function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uh(e){for(var t=1;t0?((0,lr.wg)(),(0,lr.iD)("div",{key:0,label:e.$t("lists.manage_members"),class:"members-list"},[(0,lr._)("div",yf,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.membersUsers,(function(t){return(0,lr.wg)(),(0,lr.iD)("div",{key:t.id,class:"member"},[(0,lr.Wm)(c,{user:t},{default:(0,lr.w5)((function(){return[(0,lr._)("button",{class:"btn button-default follow-button",onClick:function(n){return e.toggleRemoveMember(t)}},(0,ur.zw)(e.isRemoved(t)?e.$t("general.undo"):e.$t("lists.remove_from_list")),9,_f)]})),_:2},1032,["user"])])})),128))])],8,bf)):(0,lr.kq)("",!0),(0,lr._)("div",{class:"search-list",label:e.$t("lists.add_members")},[(0,lr.Wm)(l,{onResults:e.onSearchResults,onLoading:e.onSearchLoading,onLoadingDone:e.onSearchLoadingDone},null,8,["onResults","onLoading","onLoadingDone"]),e.searchLoading?((0,lr.wg)(),(0,lr.iD)("div",Sf,[(0,lr.Wm)(u)])):((0,lr.wg)(),(0,lr.iD)("div",jf,[((0,lr.wg)(!0),(0,lr.iD)(lr.HY,null,(0,lr.Ko)(e.searchUsers,(function(t){return(0,lr.wg)(),(0,lr.iD)("div",{key:t.id,class:"member"},[(0,lr.Wm)(c,{user:t},{default:(0,lr.w5)((function(){return[e.membersUserIds.includes(t.id)?((0,lr.wg)(),(0,lr.iD)("span",Of,(0,ur.zw)(e.$t("lists.is_in_list")),1)):(0,lr.kq)("",!0),e.membersUserIds.includes(t.id)?((0,lr.wg)(),(0,lr.iD)("button",{key:2,class:"btn button-default follow-button",onClick:function(n){return e.toggleRemoveMember(t)}},(0,ur.zw)(e.isRemoved(t)?e.$t("general.undo"):e.$t("lists.remove_from_list")),9,Pf)):((0,lr.wg)(),(0,lr.iD)("button",{key:1,class:"btn button-default follow-button",onClick:function(n){return e.toggleAddFromSearch(t)}},(0,ur.zw)(e.isAdded(t)?e.$t("general.undo"):e.$t("lists.add_to_list")),9,Cf))]})),_:2},1032,["user"])])})),128))]))],8,kf)]})),_:1})]),(0,lr._)("div",zf,[If,e.id?e.reallyDelete?((0,lr.wg)(),(0,lr.iD)(lr.HY,{key:2},[(0,lr.Uk)((0,ur.zw)(e.$t("lists.really_delete"))+" ",1),(0,lr._)("button",{class:"btn button-default footer-button",onClick:t[5]||(t[5]=function(){return e.deleteList&&e.deleteList.apply(e,arguments)})},(0,ur.zw)(e.$t("general.yes")),1),(0,lr._)("button",{class:"btn button-default footer-button",onClick:t[6]||(t[6]=function(t){return e.reallyDelete=!1})},(0,ur.zw)(e.$t("general.no")),1)],64)):((0,lr.wg)(),(0,lr.iD)("button",{key:1,class:"btn button-default footer-button",onClick:t[4]||(t[4]=function(t){return e.reallyDelete=!0})},(0,ur.zw)(e.$t("lists.delete")),1)):((0,lr.wg)(),(0,lr.iD)("button",{key:0,class:"btn button-default footer-button",onClick:t[3]||(t[3]=function(){return e.createList&&e.createList.apply(e,arguments)})},(0,ur.zw)(e.$t("lists.create")),1))])])}]]);var Zf={class:"panel panel-default announcements-page"},Wf={class:"panel-heading"},Bf={class:"panel-body"},Hf={key:0},Vf={class:"post-form"},Kf={class:"heading"},Gf={class:"body"},Yf={class:"footer"},Jf=["disabled"],Qf={key:0,class:"alert error"},Xf={class:"announcement"},eg={class:"heading"},tg={class:"body"},ng={class:"footer"},rg={key:0,class:"times"},og={key:0},ig={key:1},sg={key:2},ag={key:1,class:"actions"},cg=["disabled","title"],lg={key:2,class:"actions"},ug={key:0,class:"alert error"},dg={class:"announcement-editor"},pg=["placeholder","disabled"],hg={class:"announcement-metadata"},mg={for:"announcement-start-time"},fg=["type","disabled"],gg={class:"announcement-metadata"},vg={for:"announcement-end-time"},wg=["type","disabled"],bg={class:"announcement-metadata"},yg={for:"announcement-all-day"};const _g={components:{Checkbox:oi.Z},props:{announcement:Object,disabled:Boolean}},kg=(0,Lr.Z)(_g,[["render",function(e,t,n,r,o,i){var s=(0,lr.up)("Checkbox");return(0,lr.wg)(),(0,lr.iD)("div",dg,[(0,lr.wy)((0,lr._)("textarea",{ref:"textarea","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.announcement.content=t}),class:"post-textarea",rows:"1",cols:"1",placeholder:e.$t("announcements.post_placeholder"),disabled:e.disabled},null,8,pg),[[or.nr,e.announcement.content]]),(0,lr._)("span",hg,[(0,lr._)("label",mg,(0,ur.zw)(e.$t("announcements.start_time_prompt")),1),(0,lr.wy)((0,lr._)("input",{id:"announcement-start-time","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.announcement.startsAt=t}),type:e.announcement.allDay?"date":"datetime-local",disabled:e.disabled},null,8,fg),[[or.YZ,e.announcement.startsAt]])]),(0,lr._)("span",gg,[(0,lr._)("label",vg,(0,ur.zw)(e.$t("announcements.end_time_prompt")),1),(0,lr.wy)((0,lr._)("input",{id:"announcement-end-time","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.announcement.endsAt=t}),type:e.announcement.allDay?"date":"datetime-local",disabled:e.disabled},null,8,wg),[[or.YZ,e.announcement.endsAt]])]),(0,lr._)("span",bg,[(0,lr.Wm)(s,{id:"announcement-all-day",modelValue:e.announcement.allDay,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.announcement.allDay=t}),disabled:e.disabled},null,8,["modelValue","disabled"]),(0,lr._)("label",yg,(0,ur.zw)(e.$t("announcements.all_day_prompt")),1)])])}]]);function Sg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jg(e){for(var t=1;t{"use strict";n.d(t,{Oi:()=>h,W2:()=>p,ZP:()=>m});var r=n(4942),o=n(29439),i=n(6258),s=n(77394),a=n(72617),c=n(39776);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(i);try{for(a.s();!(n=a.n()).done;){var c=n.value;o.has(c)&&s.add(c)}}catch(e){a.e(e)}finally{a.f()}s.forEach((function(e){return r("setOption",{name:e,value:t[e]})}))},setHighlight:function(e,t){var n=e.commit;e.dispatch,n("setHighlight",{user:t.user,color:t.color,type:t.type})},setOption:function(e,t){var n=e.commit,r=e.dispatch,o=e.state,l=t.name,u=t.value;switch(n("setOption",{name:l,value:u}),l){case"theme":(0,s.bY)(u);break;case"sidebarColumnWidth":case"contentColumnWidth":case"notifsColumnWidth":(0,s.mg)(o);break;case"customTheme":case"customThemeSource":(0,s._v)(u);break;case"interfaceLanguage":a.Z.setLanguage(this.getters.i18n,u),r("loadUnicodeEmojiData",u),i.Z.set("userLanguage",c.Z.internalToBackendLocale(u));break;case"thirdColumnMode":r("setLayoutWidth",void 0)}}}}},65405:(e,t,n)=>{"use strict";n.d(t,{W2:()=>h,ZP:()=>m});var r=n(29439),o=n(4942),i=n(36968),s=n.n(i),a=n(27361),c=n.n(a);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u=function(e,t){var n=e.rootState,r=e.commit,o=t.path,i=t.value,a={};return s()(a,o,i),n.api.backendInteractor.updateProfile({params:a}).then((function(e){r("addNewUsers",[e]),r("setCurrentUser",e)}))},d=function(e,t){var n=e.rootState,r=e.commit,o=t.path,i=t.value,a=t.oldValue,c={};return s()(c,o,i),n.api.backendInteractor.updateNotificationSettings({settings:c}).then((function(e){"success"===e.status?r("confirmServerSideOption",{name,value:i}):r("confirmServerSideOption",{name,value:a})}))},p={defaultScope:"source.privacy",defaultNSFW:"source.sensitive",stripRichContent:{get:"source.pleroma.no_rich_text",set:"no_rich_text"},locked:"locked",acceptChatMessages:{get:"pleroma.accepts_chat_messages",set:"accepts_chat_messages"},allowFollowingMove:{get:"pleroma.allow_following_move",set:"allow_following_move"},discoverable:{get:"source.pleroma.discoverable",set:"discoverable"},hideFavorites:{get:"pleroma.hide_favorites",set:"hide_favorites"},hideFollowers:{get:"pleroma.hide_followers",set:"hide_followers"},hideFollows:{get:"pleroma.hide_follows",set:"hide_follows"},hideFollowersCount:{get:"pleroma.hide_followers_count",set:"hide_followers_count"},hideFollowsCount:{get:"pleroma.hide_follows_count",set:"hide_follows_count"},webPushHideContents:{get:"pleroma.notification_settings.hide_notification_contents",set:"hide_notification_contents",api:d},blockNotificationsFromStrangers:{get:"pleroma.notification_settings.block_from_strangers",set:"block_from_strangers",api:d}},h=Object.fromEntries(Object.keys(p).map((function(e){return[e,null]})));const m={state:function(e){for(var t=1;t{"use strict";n.d(t,{ro:()=>Ue,_z:()=>Ae,ZP:()=>Le,pR:()=>xe});var r=n(15861),o=n(44925),i=n(29439),s=n(4942),a=n(27361),c=n.n(a),l=n(10928),u=n.n(l),d=n(57043),p=n.n(d),h=n(35161),m=n.n(h),f=n(66073),g=n.n(f),v=n(64687),w=n.n(v),b=n(27742),y=n(71002),_=n(43144),k=n(15671),S=n(97326),j=n(60136),O=n(82963),C=n(61120),P=n(72407),z=n(93433),I=n(48403),D=n.n(I);function x(e,t,n,r){this.name="StatusCodeError",this.statusCode=e,this.message=e+" - "+(JSON&&JSON.stringify?JSON.stringify(t):t),this.error=t,this.options=n,this.response=r,Error.captureStackTrace&&Error.captureStackTrace(this)}x.prototype=Object.create(Error.prototype),x.prototype.constructor=x;var T=function(e){(0,j.Z)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,C.Z)(t);if(n){var o=(0,C.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,O.Z)(this,e)});function o(e){var t,n;(0,k.Z)(this,o),t=r.call(this),Error.captureStackTrace&&Error.captureStackTrace((0,S.Z)(t));try{if("string"==typeof e&&(e=JSON.parse(e)).hasOwnProperty("error")&&(e=JSON.parse(e.error)),"object"===(0,y.Z)(e)){var s=JSON.parse(e.error);s.ap_id&&(s.username=s.ap_id,delete s.ap_id),t.message=(n=s,Object.entries(n).reduce((function(e,t){var n=(0,i.Z)(t,2),r=n[0],o=n[1].reduce((function(e,t){return e+[D()(r.replace(/_/g," ")),t].join(" ")+". "}),"");return[].concat((0,z.Z)(e),[o])}),[]))}else t.message=e}catch(n){t.message=e}return t}return(0,_.Z)(o)}((0,P.Z)(Error)),$=["nickname"],U=["id","credentials"];function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:function(e){return e};e.addEventListener(t,(function(e){s.dispatchEvent(new CustomEvent(t,{detail:n(e)}))}))};return a.addEventListener("open",(function(e){console.debug("[WS][".concat(i,"] Socket connected"),e)})),a.addEventListener("error",(function(e){console.debug("[WS][".concat(i,"] Socket errored"),e)})),a.addEventListener("close",(function(e){console.debug("[WS][".concat(i,"] Socket disconnected with code ").concat(e.code),e)})),c(a,"open"),c(a,"close"),c(a,"message",r),c(a,"error"),s.close=function(){a.close(1e3,"Shutting down socket")},s.getState=function(){return a.readyState},s},Me=function(e){var t=e.data;if(t){var n=JSON.parse(t),r=n.event,o=n.payload;if(!Te.has(r)&&!$e.has(r))return console.warn("Unknown event",e),null;if("delete"===r)return{event:r,id:o};var i=o?JSON.parse(o):null;return"update"===r||"status.update"===r?{event:r,status:(0,b.Wn)(i)}:"notification"===r?{event:r,notification:(0,b.eM)(i)}:"pleroma:chat_update"===r?{event:r,chatUpdate:(0,b._J)(i)}:void 0}},Ae=Object.freeze({JOINED:1,CLOSED:2,ERROR:3,DISABLED:4,STARTING:5,STARTING_INITIAL:6});const Le={verifyCredentials:function(e){return Oe("/api/v1/accounts/verify_credentials",{headers:Pe(e)}).then((function(e){return e.ok?e.json():{error:e}})).then((function(e){return e.error?e:(0,b.nL)(e)}))},fetchTimeline:function(e){var t=e.timeline,n=e.credentials,r=e.since,o=void 0!==r&&r,i=e.until,s=void 0!==i&&i,a=e.userId,c=void 0!==a&&a,l=e.listId,u=void 0!==l&&l,d=e.tag,p=void 0!==d&&d,h=e.withMuted,f=void 0!==h&&h,g=e.replyVisibility,v=void 0===g?"all":g,w=e.includeTypes,y=void 0===w?[]:w,_="notifications"===t,k=[],S={public:B,friends:"/api/v1/timelines/home",dms:"/api/v1/timelines/direct",notifications:"/api/v1/notifications",publicAndExternal:B,user:V,media:V,list:G,favorites:"/api/v1/favourites",tag:J,bookmarks:"/api/v1/bookmarks"}[t];"user"!==t&&"media"!==t||(S=S(c)),"list"===t&&(S=S(u)),o&&k.push(["since_id",o]),s&&k.push(["max_id",s]),p&&(S=S(p)),"media"===t&&k.push(["only_media",1]),"public"===t&&k.push(["local",!0]),"public"!==t&&"publicAndExternal"!==t||k.push(["only_media",!1]),"favorites"!==t&&"bookmarks"!==t&&k.push(["with_muted",f]),"all"!==v&&k.push(["reply_visibility",v]),y.length>0&&y.forEach((function(e){k.push(["include_types[]",e])})),k.push(["limit",20]);var j=m()(k,(function(e){return"".concat(e[0],"=").concat(e[1])})).join("&");S+="?".concat(j);var O="",C="",P={};return Oe(S,{headers:Pe(n)}).then((function(e){return O=e.status,C=e.statusText,P=(0,b.Nw)(e.headers.get("Link"),{flakeId:"bookmarks"!==t&&"notifications"!==t}),e})).then((function(e){return e.json()})).then((function(e){return e.errors?(e.status=O,e.statusText=C,e):{data:e.map(_?b.eM:b.Wn),pagination:P}}))},fetchPinnedStatuses:function(e){var t=e.id,n=e.credentials,r=V(t)+"?pinned=true";return Ce({url:r,credentials:n}).then((function(e){return e.map(b.Wn)}))},fetchConversation:function(e){var t=e.id,n=e.credentials,r=function(e){return"/api/v1/statuses/".concat(e,"/context")}(t);return Oe(r,{headers:Pe(n)}).then((function(e){if(e.ok)return e;throw new Error("Error fetching timeline",e)})).then((function(e){return e.json()})).then((function(e){var t=e.ancestors,n=e.descendants;return{ancestors:t.map(b.Wn),descendants:n.map(b.Wn)}}))},fetchStatus:function(e){var t=e.id,n=e.credentials,r=H(t);return Oe(r,{headers:Pe(n)}).then((function(e){if(e.ok)return e;throw new Error("Error fetching timeline",e)})).then((function(e){return e.json()})).then((function(e){return(0,b.Wn)(e)}))},fetchStatusSource:function(e){var t=e.id,n=e.credentials,r=function(e){return"/api/v1/statuses/".concat(e,"/source")}(t);return Oe(r,{headers:Pe(n)}).then((function(e){if(e.ok)return e;throw new Error("Error fetching source",e)})).then((function(e){return e.json()})).then((function(e){return(0,b.P7)(e)}))},fetchStatusHistory:function(e){var t,n=e.status,r=e.credentials,o=(t=n.id,"/api/v1/statuses/".concat(t,"/history"));return Ce({url:o,credentials:r}).then((function(e){return e.reverse(),e.map((function(e){return e.originalStatus=n,(0,b.Wn)(e)}))}))},fetchFriends:Ie,exportFriends:function(e){var t=e.id,n=e.credentials;return new Promise(function(){var e=(0,r.Z)(w().mark((function e(r,o){var i,s,a,c;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,i=[],s=!0;case 3:if(!s){e.next=12;break}return a=i.length>0?u()(i).id:void 0,e.next=7,Ie({id:t,maxId:a,credentials:n});case 7:c=e.sent,i=p()(i,c),0===c.length&&(s=!1),e.next=3;break;case 12:r(i),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),o(e.t0);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t,n){return e.apply(this,arguments)}}())},fetchFollowers:function(e){var t=e.id,n=e.maxId,r=e.sinceId,o=e.limit,i=void 0===o?20:o,s=e.credentials,a=function(e){return"/api/v1/accounts/".concat(e,"/followers")}(t),c=[n&&"max_id=".concat(n),r&&"since_id=".concat(r),i&&"limit=".concat(i),"with_relationships=true"].filter((function(e){return e})).join("&");return Oe(a+=c?"?"+c:"",{headers:Pe(s)}).then((function(e){return e.json()})).then((function(e){return e.map(b.nL)}))},followUser:function(e){var t=e.id,n=e.credentials,r=(0,o.Z)(e,U),i=function(e){return"/api/v1/accounts/".concat(e,"/follow")}(t),s={};return void 0!==r.reblogs&&(s.reblogs=r.reblogs),Oe(i,{body:JSON.stringify(s),headers:A(A({},Pe(n)),{},{"Content-Type":"application/json"}),method:"POST"}).then((function(e){return e.json()}))},unfollowUser:function(e){var t=e.id,n=e.credentials,r=function(e){return"/api/v1/accounts/".concat(e,"/unfollow")}(t);return Oe(r,{headers:Pe(n),method:"POST"}).then((function(e){return e.json()}))},pinOwnStatus:function(e){var t=e.id,n=e.credentials;return Ce({url:le(t),credentials:n,method:"POST"}).then((function(e){return(0,b.Wn)(e)}))},unpinOwnStatus:function(e){var t=e.id,n=e.credentials;return Ce({url:ue(t),credentials:n,method:"POST"}).then((function(e){return(0,b.Wn)(e)}))},muteConversation:function(e){var t=e.id,n=e.credentials;return Ce({url:de(t),credentials:n,method:"POST"}).then((function(e){return(0,b.Wn)(e)}))},unmuteConversation:function(e){var t=e.id,n=e.credentials;return Ce({url:pe(t),credentials:n,method:"POST"}).then((function(e){return(0,b.Wn)(e)}))},blockUser:function(e){var t=e.id,n=e.credentials;return Oe(function(e){return"/api/v1/accounts/".concat(e,"/block")}(t),{headers:Pe(n),method:"POST"}).then((function(e){return e.json()}))},unblockUser:function(e){var t=e.id,n=e.credentials;return Oe(function(e){return"/api/v1/accounts/".concat(e,"/unblock")}(t),{headers:Pe(n),method:"POST"}).then((function(e){return e.json()}))},removeUserFromFollowers:function(e){var t=e.id,n=e.credentials;return Oe(function(e){return"/api/v1/accounts/".concat(e,"/remove_from_followers")}(t),{headers:Pe(n),method:"POST"}).then((function(e){return e.json()}))},editUserNote:function(e){var t=e.id,n=e.credentials,r=e.comment;return Ce({url:ne(t),credentials:n,payload:{comment:r},method:"POST"})},fetchUser:ze,fetchUserByName:function(e){var t=e.name,n=e.credentials;return Ce({url:"/api/v1/accounts/lookup",credentials:n,params:{acct:t}}).then((function(e){return e.id})).catch((function(e){if(e&&404===e.statusCode)return t;throw e})).then((function(e){return ze({id:e,credentials:n})}))},fetchUserRelationship:function(e){var t=e.id,n=e.credentials,r="".concat("/api/v1/accounts/relationships","/?id=").concat(t);return Oe(r,{headers:Pe(n)}).then((function(e){return new Promise((function(t,n){return e.json().then((function(o){return e.ok?t(o):n(new x(e.status,o,{url:r},e))}))}))}))},favorite:function(e){var t=e.id,n=e.credentials;return Ce({url:N(t),method:"POST",credentials:n}).then((function(e){return(0,b.Wn)(e)}))},unfavorite:function(e){var t=e.id,n=e.credentials;return Ce({url:q(t),method:"POST",credentials:n}).then((function(e){return(0,b.Wn)(e)}))},retweet:function(e){var t=e.id,n=e.credentials;return Ce({url:Z(t),method:"POST",credentials:n}).then((function(e){return(0,b.Wn)(e)}))},unretweet:function(e){var t=e.id,n=e.credentials;return Ce({url:W(t),method:"POST",credentials:n}).then((function(e){return(0,b.Wn)(e)}))},bookmarkStatus:function(e){var t=e.id,n=e.credentials;return Ce({url:re(t),headers:Pe(n),method:"POST"})},unbookmarkStatus:function(e){var t=e.id,n=e.credentials;return Ce({url:oe(t),headers:Pe(n),method:"POST"})},postStatus:function(e){var t=e.credentials,n=e.status,r=e.spoilerText,o=e.visibility,i=e.sensitive,s=e.poll,a=e.mediaIds,c=void 0===a?[]:a,l=e.inReplyToStatusId,u=e.contentType,d=e.preview,p=e.idempotencyKey,h=new FormData,m=s.options||[];if(h.append("status",n),h.append("source","Pleroma FE"),r&&h.append("spoiler_text",r),o&&h.append("visibility",o),i&&h.append("sensitive",i),u&&h.append("content_type",u),c.forEach((function(e){h.append("media_ids[]",e)})),m.some((function(e){return""!==e}))){var f={expires_in:s.expiresIn,multiple:s.multiple};Object.keys(f).forEach((function(e){h.append("poll[".concat(e,"]"),f[e])})),m.forEach((function(e){h.append("poll[options][]",e)}))}l&&h.append("in_reply_to_id",l),d&&h.append("preview","true");var g=Pe(t);return p&&(g["idempotency-key"]=p),Oe("/api/v1/statuses",{body:h,method:"POST",headers:g}).then((function(e){return e.json()})).then((function(e){return e.error?e:(0,b.Wn)(e)}))},editStatus:function(e){var t=e.id,n=e.credentials,r=e.status,o=e.spoilerText,i=e.sensitive,s=e.poll,a=e.mediaIds,c=void 0===a?[]:a,l=e.contentType,u=new FormData,d=s.options||[];if(u.append("status",r),o&&u.append("spoiler_text",o),i&&u.append("sensitive",i),l&&u.append("content_type",l),c.forEach((function(e){u.append("media_ids[]",e)})),d.some((function(e){return""!==e}))){var p={expires_in:s.expiresIn,multiple:s.multiple};Object.keys(p).forEach((function(e){u.append("poll[".concat(e,"]"),p[e])})),d.forEach((function(e){u.append("poll[options][]",e)}))}var h=Pe(n);return Oe(H(t),{body:u,method:"PUT",headers:h}).then((function(e){return e.json()})).then((function(e){return e.error?e:(0,b.Wn)(e)}))},deleteStatus:function(e){var t=e.id,n=e.credentials;return Oe(function(e){return"/api/v1/statuses/".concat(e)}(t),{headers:Pe(n),method:"DELETE"})},uploadMedia:function(e){var t=e.formData,n=e.credentials;return Oe(ie,{body:t,method:"POST",headers:Pe(n)}).then((function(e){return e.json()})).then((function(e){return(0,b.cO)(e)}))},setMediaDescription:function(e){var t=e.id,n=e.description,r=e.credentials;return Ce({url:"".concat(ie,"/").concat(t),method:"PUT",headers:Pe(r),payload:{description:n}}).then((function(e){return(0,b.cO)(e)}))},fetchMutes:function(e){var t=e.credentials;return Ce({url:"/api/v1/mutes/",credentials:t}).then((function(e){return e.map(b.nL)}))},muteUser:function(e){var t=e.id,n=e.credentials;return Ce({url:Q(t),credentials:n,method:"POST"})},unmuteUser:function(e){var t=e.id,n=e.credentials;return Ce({url:X(t),credentials:n,method:"POST"})},subscribeUser:function(e){var t=e.id,n=e.credentials;return Ce({url:ee(t),credentials:n,method:"POST"})},unsubscribeUser:function(e){var t=e.id,n=e.credentials;return Ce({url:te(t),credentials:n,method:"POST"})},fetchBlocks:function(e){var t=e.credentials;return Ce({url:"/api/v1/blocks/",credentials:t}).then((function(e){return e.map(b.nL)}))},fetchOAuthTokens:function(e){var t=e.credentials;return Oe("/api/oauth_tokens.json",{headers:Pe(t)}).then((function(e){if(e.ok)return e.json();throw new Error("Error fetching auth tokens",e)}))},revokeOAuthToken:function(e){var t=e.id,n=e.credentials,r="/api/oauth_tokens/".concat(t);return Oe(r,{headers:Pe(n),method:"DELETE"})},tagUser:function(e){var t=e.tag,n=e.credentials,r={nicknames:[e.user.screen_name],tags:[t]},o=Pe(n);return o["Content-Type"]="application/json",Oe(E,{method:"PUT",headers:o,body:JSON.stringify(r)})},untagUser:function(e){var t=e.tag,n=e.credentials,r={nicknames:[e.user.screen_name],tags:[t]},o=Pe(n);return o["Content-Type"]="application/json",Oe(E,{method:"DELETE",headers:o,body:JSON.stringify(r)})},deleteUser:function(e){var t=e.credentials,n=e.user.screen_name,r=Pe(t);return Oe("".concat("/api/pleroma/admin/users","?nickname=").concat(n),{method:"DELETE",headers:r})},addRight:function(e){var t=e.right,n=e.credentials,r=e.user.screen_name;return Oe(F(r,t),{method:"POST",headers:Pe(n),body:{}})},deleteRight:function(e){var t=e.right,n=e.credentials,r=e.user.screen_name;return Oe(F(r,t),{method:"DELETE",headers:Pe(n),body:{}})},activateUser:function(e){var t=e.credentials,n=e.user.screen_name;return Ce({url:"/api/pleroma/admin/users/activate",method:"PATCH",credentials:t,payload:{nicknames:[n]}}).then((function(e){return c()(e,"users.0")}))},deactivateUser:function(e){var t=e.credentials,n=e.user.screen_name;return Ce({url:"/api/pleroma/admin/users/deactivate",method:"PATCH",credentials:t,payload:{nicknames:[n]}}).then((function(e){return c()(e,"users.0")}))},register:function(e){var t=e.params,n=e.credentials,r=t.nickname,i=(0,o.Z)(t,$);return Oe("/api/v1/accounts",{method:"POST",headers:A(A({},Pe(n)),{},{"Content-Type":"application/json"}),body:JSON.stringify(A({nickname:r,locale:"en_US",agreement:!0},i))}).then((function(e){return e.ok?e.json():e.json().then((function(e){throw new T(e)}))}))},getCaptcha:function(){return Oe("/api/pleroma/captcha").then((function(e){return e.json()}))},updateProfileImages:function(e){var t=e.credentials,n=e.avatar,r=void 0===n?null:n,o=e.avatarName,i=void 0===o?null:o,s=e.banner,a=void 0===s?null:s,c=e.background,l=void 0===c?null:c,u=new FormData;return null!==r&&(null!==i?u.append("avatar",r,i):u.append("avatar",r)),null!==a&&u.append("header",a),null!==l&&u.append("pleroma_background_image",l),Oe(ce,{headers:Pe(t),method:"PATCH",body:u}).then((function(e){return e.json()})).then((function(e){if(e.error)throw new Error(e.error);return(0,b.nL)(e)}))},updateProfile:function(e){var t=e.credentials,n=e.params;return Ce({url:ce,method:"PATCH",payload:n,credentials:t}).then((function(e){return(0,b.nL)(e)}))},importMutes:function(e){var t=e.file,n=e.credentials,r=new FormData;return r.append("list",t),Oe("/api/pleroma/mutes_import",{body:r,method:"POST",headers:Pe(n)}).then((function(e){return e.ok}))},importBlocks:function(e){var t=e.file,n=e.credentials,r=new FormData;return r.append("list",t),Oe("/api/pleroma/blocks_import",{body:r,method:"POST",headers:Pe(n)}).then((function(e){return e.ok}))},importFollows:function(e){var t=e.file,n=e.credentials,r=new FormData;return r.append("list",t),Oe("/api/pleroma/follow_import",{body:r,method:"POST",headers:Pe(n)}).then((function(e){return e.ok}))},deleteAccount:function(e){var t=e.credentials,n=e.password,r=new FormData;return r.append("password",n),Oe("/api/pleroma/delete_account",{body:r,method:"POST",headers:Pe(t)}).then((function(e){return e.json()}))},changeEmail:function(e){var t=e.credentials,n=e.email,r=e.password,o=new FormData;return o.append("email",n),o.append("password",r),Oe("/api/pleroma/change_email",{body:o,method:"POST",headers:Pe(t)}).then((function(e){return e.json()}))},moveAccount:function(e){var t=e.credentials,n=e.password,r=e.targetAccount,o=new FormData;return o.append("password",n),o.append("target_account",r),Oe("/api/pleroma/move_account",{body:o,method:"POST",headers:Pe(t)}).then((function(e){return e.json()}))},addAlias:function(e){var t=e.credentials,n=e.alias;return Ce({url:L,method:"PUT",credentials:t,payload:{alias:n}})},deleteAlias:function(e){var t=e.credentials,n=e.alias;return Ce({url:L,method:"DELETE",credentials:t,payload:{alias:n}})},listAliases:function(e){var t=e.credentials;return Ce({url:L,method:"GET",credentials:t,params:{_cacheBooster:(new Date).getTime()}})},changePassword:function(e){var t=e.credentials,n=e.password,r=e.newPassword,o=e.newPasswordConfirmation,i=new FormData;return i.append("password",n),i.append("new_password",r),i.append("new_password_confirmation",o),Oe("/api/pleroma/change_password",{body:i,method:"POST",headers:Pe(t)}).then((function(e){return e.json()}))},settingsMFA:function(e){var t=e.credentials;return Oe("/api/pleroma/accounts/mfa",{headers:Pe(t),method:"GET"}).then((function(e){return e.json()}))},mfaDisableOTP:function(e){var t=e.credentials,n=e.password,r=new FormData;return r.append("password",n),Oe("/api/pleroma/accounts/mfa/totp",{body:r,method:"DELETE",headers:Pe(t)}).then((function(e){return e.json()}))},generateMfaBackupCodes:function(e){var t=e.credentials;return Oe("/api/pleroma/accounts/mfa/backup_codes",{headers:Pe(t),method:"GET"}).then((function(e){return e.json()}))},mfaSetupOTP:function(e){var t=e.credentials;return Oe("/api/pleroma/accounts/mfa/setup/totp",{headers:Pe(t),method:"GET"}).then((function(e){return e.json()}))},mfaConfirmOTP:function(e){var t=e.credentials,n=e.password,r=e.token,o=new FormData;return o.append("password",n),o.append("code",r),Oe("/api/pleroma/accounts/mfa/confirm/totp",{body:o,headers:Pe(t),method:"POST"}).then((function(e){return e.json()}))},addBackup:function(e){var t=e.credentials;return Ce({url:_e,method:"POST",credentials:t})},listBackups:function(e){var t=e.credentials;return Ce({url:_e,method:"GET",credentials:t,params:{_cacheBooster:(new Date).getTime()}})},fetchFollowRequests:function(e){var t=e.credentials;return Oe("/api/v1/follow_requests",{headers:Pe(t)}).then((function(e){return e.json()})).then((function(e){return e.map(b.nL)}))},fetchLists:function(e){var t=e.credentials;return Oe("/api/v1/lists",{headers:Pe(t)}).then((function(e){return e.json()}))},createList:function(e){var t=e.title,n=e.credentials,r=Pe(n);return r["Content-Type"]="application/json",Oe("/api/v1/lists",{headers:r,method:"POST",body:JSON.stringify({title:t})}).then((function(e){return e.json()}))},getList:function(e){var t=e.listId,n=e.credentials,r=K(t);return Oe(r,{headers:Pe(n)}).then((function(e){return e.json()}))},updateList:function(e){var t=e.listId,n=e.title,r=e.credentials,o=K(t),i=Pe(r);return i["Content-Type"]="application/json",Oe(o,{headers:i,method:"PUT",body:JSON.stringify({title:n})})},getListAccounts:function(e){var t=e.listId,n=e.credentials,r=Y(t);return Oe(r,{headers:Pe(n)}).then((function(e){return e.json()})).then((function(e){return e.map((function(e){return e.id}))}))},addAccountsToList:function(e){var t=e.listId,n=e.accountIds,r=e.credentials,o=Y(t),i=Pe(r);return i["Content-Type"]="application/json",Oe(o,{headers:i,method:"POST",body:JSON.stringify({account_ids:n})})},removeAccountsFromList:function(e){var t=e.listId,n=e.accountIds,r=e.credentials,o=Y(t),i=Pe(r);return i["Content-Type"]="application/json",Oe(o,{headers:i,method:"DELETE",body:JSON.stringify({account_ids:n})})},deleteList:function(e){var t=e.listId,n=e.credentials,r=K(t);return Oe(r,{method:"DELETE",headers:Pe(n)})},approveUser:function(e){var t=e.id,n=e.credentials,r=function(e){return"/api/v1/follow_requests/".concat(e,"/authorize")}(t);return Oe(r,{headers:Pe(n),method:"POST"}).then((function(e){return e.json()}))},denyUser:function(e){var t=e.id,n=e.credentials,r=function(e){return"/api/v1/follow_requests/".concat(e,"/reject")}(t);return Oe(r,{headers:Pe(n),method:"POST"}).then((function(e){return e.json()}))},suggestions:function(e){var t=e.credentials;return Oe("/api/v1/suggestions",{headers:Pe(t)}).then((function(e){return e.json()}))},markNotificationsAsSeen:function(e){var t=e.id,n=e.credentials,r=e.single,o=void 0!==r&&r,i=new FormData;return o?i.append("id",t):i.append("max_id",t),Oe("/api/v1/pleroma/notifications/read",{body:i,headers:Pe(n),method:"POST"}).then((function(e){return e.json()}))},dismissNotification:function(e){var t=e.credentials,n=e.id;return Ce({url:R(n),method:"POST",payload:{id:n},credentials:t})},vote:function(e){var t,n=e.pollId,r=e.choices,o=e.credentials;return(new FormData).append("choices",r),Ce({url:(t=encodeURIComponent(n),"/api/v1/polls/".concat(t,"/votes")),method:"POST",credentials:o,payload:{choices:r}})},fetchPoll:function(e){var t,n=e.pollId,r=e.credentials;return Ce({url:(t=encodeURIComponent(n),"/api/v1/polls/".concat(t)),method:"GET",credentials:r})},fetchFavoritedByUsers:function(e){var t=e.id,n=e.credentials;return Ce({url:se(t),method:"GET",credentials:n}).then((function(e){return e.map(b.nL)}))},fetchRebloggedByUsers:function(e){var t=e.id,n=e.credentials;return Ce({url:ae(t),method:"GET",credentials:n}).then((function(e){return e.map(b.nL)}))},fetchEmojiReactions:function(e){var t=e.id,n=e.credentials;return Ce({url:fe(t),credentials:n}).then((function(e){return e.map((function(e){return e.accounts=e.accounts.map(b.nL),e}))}))},reactWithEmoji:function(e){var t=e.id,n=e.emoji,r=e.credentials;return Ce({url:ge(t,n),method:"PUT",credentials:r}).then(b.Wn)},unreactWithEmoji:function(e){var t=e.id,n=e.emoji,r=e.credentials;return Ce({url:ve(t,n),method:"DELETE",credentials:r}).then(b.Wn)},reportUser:function(e){var t=e.credentials,n=e.userId,r=e.statusIds,o=e.comment,i=e.forward;return Ce({url:"/api/v1/reports",method:"POST",payload:{account_id:n,status_ids:r,comment:o,forward:i},credentials:t})},updateNotificationSettings:function(e){var t=e.credentials,n=e.settings,r=new FormData;return g()(n,(function(e,t){r.append(t,e)})),Oe("/api/pleroma/notification_settings",{headers:Pe(t),method:"PUT",body:r}).then((function(e){return e.json()}))},search2:function(e){var t=e.credentials,n=e.q,r=e.resolve,o=e.limit,i=e.offset,s=e.following,a=e.type,c="/api/v2/search",l=[];n&&l.push(["q",encodeURIComponent(n)]),r&&l.push(["resolve",r]),o&&l.push(["limit",o]),i&&l.push(["offset",i]),s&&l.push(["following",!0]),a&&l.push(["following",a]),l.push(["with_relationships",!0]);var u=m()(l,(function(e){return"".concat(e[0],"=").concat(e[1])})).join("&");return c+="?".concat(u),Oe(c,{headers:Pe(t)}).then((function(e){if(e.ok)return e;throw new Error("Error fetching search result",e)})).then((function(e){return e.json()})).then((function(e){return e.accounts=e.accounts.slice(0,o).map((function(e){return(0,b.nL)(e)})),e.statuses=e.statuses.slice(0,o).map((function(e){return(0,b.Wn)(e)})),e}))},searchUsers:function(e){var t=e.credentials,n=e.query;return Ce({url:"/api/v1/accounts/search",params:{q:n,resolve:!0},credentials:t}).then((function(e){return e.map(b.nL)}))},fetchKnownDomains:function(e){var t=e.credentials;return Ce({url:"/api/v1/instance/peers",credentials:t})},fetchDomainMutes:function(e){var t=e.credentials;return Ce({url:he,credentials:t})},muteDomain:function(e){var t=e.domain,n=e.credentials;return Ce({url:he,method:"POST",payload:{domain:t},credentials:n})},unmuteDomain:function(e){var t=e.domain,n=e.credentials;return Ce({url:he,method:"DELETE",payload:{domain:t},credentials:n})},chats:function(e){var t=e.credentials;return Oe("/api/v1/pleroma/chats",{headers:Pe(t)}).then((function(e){return e.json()})).then((function(e){return{chats:e.map(b._J).filter((function(e){return e}))}}))},getOrCreateChat:function(e){var t,n=e.accountId,r=e.credentials;return Ce({url:(t=n,"/api/v1/pleroma/chats/by-account-id/".concat(t)),method:"POST",credentials:r})},chatMessages:function(e){var t=e.id,n=e.credentials,r=e.maxId,o=e.sinceId,i=e.limit,s=void 0===i?20:i,a=we(t),c=[r&&"max_id=".concat(r),o&&"since_id=".concat(o),s&&"limit=".concat(s)].filter((function(e){return e})).join("&");return Ce({url:a+=c?"?"+c:"",method:"GET",credentials:n})},sendChatMessage:function(e){var t=e.id,n=e.content,r=e.mediaId,o=void 0===r?null:r,i=e.idempotencyKey,s=e.credentials,a={content:n};o&&(a.media_id=o);var c={};return i&&(c["idempotency-key"]=i),Ce({url:we(t),method:"POST",payload:a,credentials:s,headers:c})},readChat:function(e){var t=e.id,n=e.lastReadId,r=e.credentials;return Ce({url:be(t),method:"POST",payload:{last_read_id:n},credentials:r})},deleteChatMessage:function(e){var t=e.chatId,n=e.messageId,r=e.credentials;return Ce({url:ye(t,n),method:"DELETE",credentials:r})},setReportState:function(e){var t=e.id,n=e.state,r=e.credentials;return Oe("/api/pleroma/admin/reports",{headers:A(A({},Pe(r)),{},{Accept:"application/json","Content-Type":"application/json"}),method:"PATCH",body:JSON.stringify({reports:[{id:t,state:n}]})}).then((function(e){if(e.status>=500)throw Error(e.statusText);return e.status>=400?e.json():e})).then((function(e){if(e.errors)throw Error(e.errors[0].message)}))},fetchUserInLists:function(e){var t=e.id,n=e.credentials,r=function(e){return"/api/v1/accounts/".concat(e,"/lists")}(t);return Oe(r,{headers:Pe(n)}).then((function(e){return e.json()}))},fetchAnnouncements:function(e){var t=e.credentials;return Ce({url:"/api/v1/announcements",credentials:t})},dismissAnnouncement:function(e){var t=e.id,n=e.credentials;return Ce({url:me(t),credentials:n,method:"POST"})},postAnnouncement:function(e){var t=e.credentials,n=e.content,r=e.startsAt,o=e.endsAt,i=e.allDay;return Ce({url:"/api/v1/pleroma/admin/announcements",credentials:t,method:"POST",payload:De({content:n,startsAt:r,endsAt:o,allDay:i})})},editAnnouncement:function(e){var t=e.id,n=e.credentials,r=e.content,o=e.startsAt,i=e.endsAt,s=e.allDay;return Ce({url:ke(t),credentials:n,method:"PATCH",payload:De({content:r,startsAt:o,endsAt:i,allDay:s})})},deleteAnnouncement:function(e){var t=e.id,n=e.credentials;return Ce({url:Se(t),credentials:n,method:"DELETE"})},adminFetchAnnouncements:function(e){var t=e.credentials;return Ce({url:"/api/v1/pleroma/admin/announcements",credentials:t})}}},21865:(e,t,n)=>{"use strict";n.d(t,{CO:()=>l,Rx:()=>m,Tj:()=>h,_I:()=>v,a4:()=>g,aj:()=>p,ov:()=>u,pP:()=>b,uu:()=>w,wK:()=>f});var r=n(4942),o=n(29439),i=n(71002),s=n(97332);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t255?255:e})),a=(0,o.Z)(s,3);return e=a[0],t=a[1],n=a[2],"#".concat(((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1))}},u=function(e){var t=function(e){return"rgb".split("").reduce((function(t,n){return t[n]=function(e){var t=e/255;return t<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}(e[n]),t}),{})}(e);return.2126*t.r+.7152*t.g+.0722*t.b},d=function(e,t){var n=u(e),r=u(t),i=n>r?[n,r]:[r,n],s=(0,o.Z)(i,2);return(s[0]+.05)/(s[1]+.05)},p=function(e,t,n){return d(m(n,t),e)},h=function(e,t,n){return 1===t||void 0===t?e:"rgb".split("").reduce((function(r,o){return r[o]=e[o]*t+n[o]*(1-t),r}),{})},m=function(e,t){return t.reduce((function(e,t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return h(r,i,e)}),e)},f=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},g=function(e,t){return"rgb".split("").reduce((function(n,r){return n[r]=(e[r]+t[r])/2,n}),{})},v=function(e){return"rgba(".concat(Math.floor(e.r),", ").concat(Math.floor(e.g),", ").concat(Math.floor(e.b),", ").concat(e.a,")")},w=function(e,t,n){if(d(e,t)<4.5){var r=void 0!==t.a?{a:t.a}:{},o=Object.assign(r,(0,s.Xp)(t).rgb);return!n&&d(e,o)<4.5?(0,s.wo)(e,t).rgb:o}return t},b=function(e,t){var n={};if("object"===(0,i.Z)(e))n=e;else if("string"==typeof e){if(!e.startsWith("#"))return e;n=f(e)}return v(c(c({},n),{},{a:t}))}},13562:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(23560),o=n.n(r),i=function(e){return function(e){return o()(e)?e.options:e}(e).props}},27483:(e,t,n)=>{"use strict";n.d(t,{EB:()=>o,GV:()=>u,_F:()=>d,kr:()=>i,x4:()=>s});var r=1e3,o=6e4,i=60*o,s=24*i,a=7*s,c=30*s,l=365.25*s,u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;"string"==typeof e&&(e=Date.parse(e));var n=Date.now()>e?Math.floor:Math.ceil,u=Math.abs(Date.now()-e),d={num:n(u/l),key:"time.unit.years"};return u1&&void 0!==arguments[1]?arguments[1]:1,n=u(e,t);return n.key+="_short",n}},64689:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var r=function(e,t){if("Notification"in window&&"granted"===window.Notification.permission&&!e.statuses.notifications.desktopNotificationSilence){var n=new window.Notification(t.title,t);setTimeout(n.close.bind(n),5e3)}}},27742:(e,t,n)=>{"use strict";n.d(t,{Nw:()=>w,P7:()=>m,UB:()=>y,Wn:()=>f,_J:()=>b,cO:()=>h,eM:()=>g,nL:()=>p});var r=n(4942),o=n(95573),i=n.n(o),s=n(28490),a=n.n(s),c=n(52230),l=n(35748);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t]*>/g,"")),value:unescape(e.value.replace(/<[^>]*>/g,""))}})),t.profile_image_url=e.avatar,t.profile_image_url_original=e.avatar,t.cover_photo=e.header,t.friends_count=e.following_count,t.bot=e.bot,e.pleroma){e.pleroma.settings_store&&(t.storage=e.pleroma.settings_store["pleroma-fe"]);var o=e.pleroma.relationship;t.background_image=e.pleroma.background_image,t.favicon=e.pleroma.favicon,t.token=e.pleroma.chat_token,o&&(t.relationship=o),t.allow_following_move=e.pleroma.allow_following_move,t.hide_follows=e.pleroma.hide_follows,t.hide_followers=e.pleroma.hide_followers,t.hide_follows_count=e.pleroma.hide_follows_count,t.hide_followers_count=e.pleroma.hide_followers_count,t.rights={moderator:e.pleroma.is_moderator,admin:e.pleroma.is_admin},t.rights.admin?t.role="admin":t.rights.moderator?t.role="moderator":t.role="member",e.pleroma.privileges?t.privileges=e.pleroma.privileges:e.pleroma.is_admin?t.privileges=["users_read","users_manage_invites","users_manage_activation_state","users_manage_tags","users_manage_credentials","users_delete","messages_read","messages_delete","instances_delete","reports_manage_reports","moderation_log_read","announcements_manage_announcements","emoji_manage_emoji","statistics_read"]:e.pleroma.is_moderator?t.privileges=["messages_delete","reports_manage_reports"]:t.privileges=[]}e.source&&(t.description=e.source.note,t.default_scope=e.source.privacy,t.fields=e.source.fields,e.source.pleroma&&(t.no_rich_text=e.source.pleroma.no_rich_text,t.show_role=e.source.pleroma.show_role,t.discoverable=e.source.pleroma.discoverable)),t.is_local=!t.screen_name.includes("@")}else t.screen_name=e.screen_name,t.name=e.name,t.name_html=e.name_html,t.description=e.description,t.description_html=e.description_html,t.profile_image_url=e.profile_image_url,t.profile_image_url_original=e.profile_image_url_original,t.cover_photo=e.cover_photo,t.friends_count=e.friends_count,t.statusnet_profile_url=e.statusnet_profile_url,t.is_local=e.is_local,t.role=e.role,t.show_role=e.show_role,e.rights&&(t.rights={moderator:e.rights.delete_others_notice,admin:e.rights.admin}),t.no_rich_text=e.no_rich_text,t.default_scope=e.default_scope,t.hide_follows=e.hide_follows,t.hide_followers=e.hide_followers,t.hide_follows_count=e.hide_follows_count,t.hide_followers_count=e.hide_followers_count,t.background_image=e.background_image,t.token=e.token,t.relationship={muting:e.muted,blocking:e.statusnet_blocking,followed_by:e.follows_you,following:e.following};if(t.created_at=new Date(e.created_at),t.locked=e.locked,t.followers_count=e.followers_count,t.statuses_count=e.statuses_count,e.pleroma&&(t.follow_request_count=e.pleroma.follow_request_count,t.tags=e.pleroma.tags,t.deactivated=void 0!==e.pleroma.is_active?!e.pleroma.is_active:e.pleroma.deactivated,t.notification_settings=e.pleroma.notification_settings,t.unread_chat_count=e.pleroma.unread_chat_count),t.tags=t.tags||[],t.rights=t.rights||{},t.notification_settings=t.notification_settings||{},t.screen_name_ui=t.screen_name,t.screen_name&&t.screen_name.includes("@")){var s=t.screen_name.split("@"),a=l.Z.toUnicode(s[1]);a!==s[1]?(t.screen_name_ui_contains_non_ascii=!0,t.screen_name_ui=[s[0],a].join("@")):t.screen_name_ui_contains_non_ascii=!1}return t},h=function(e){var t={};return Object.prototype.hasOwnProperty.call(e,"oembed")?t.mimetype=e.mimetype:(t.mimetype=e.pleroma?e.pleroma.mime_type:e.type,t.meta=e.meta,t.id=e.id),t.url=e.url,t.large_thumb_url=e.preview_url,t.description=e.description,t},m=function(e){var t={};return t.text=e.text,t.spoiler_text=e.spoiler_text,t.content_type=e.content_type,t},f=function e(t){var n={},r=Object.prototype.hasOwnProperty.call(t,"account");if(r){if(n.favorited=t.favourited,n.fave_num=t.favourites_count,n.repeated=t.reblogged,n.repeat_num=t.reblogs_count,n.bookmarked=t.bookmarked,n.type=t.reblog?"retweet":"status",n.nsfw=t.sensitive,n.raw_html=t.content,n.emojis=t.emojis,n.tags=t.tags,n.edited_at=t.edited_at,t.pleroma){var o=t.pleroma;n.text=o.content?t.pleroma.content["text/plain"]:t.content,n.summary=o.spoiler_text?t.pleroma.spoiler_text["text/plain"]:t.spoiler_text,n.statusnet_conversation_id=t.pleroma.conversation_id,n.is_local=o.local,n.in_reply_to_screen_name=t.pleroma.in_reply_to_account_acct,n.thread_muted=o.thread_muted,n.emoji_reactions=o.emoji_reactions,n.parent_visible=void 0===o.parent_visible||o.parent_visible}else n.text=t.content,n.summary=t.spoiler_text;n.in_reply_to_status_id=t.in_reply_to_id,n.in_reply_to_user_id=t.in_reply_to_account_id,n.replies_count=t.replies_count,"retweet"===n.type&&(n.retweeted_status=e(t.reblog)),n.summary_raw_html=i()(t.spoiler_text),n.external_url=t.url,n.poll=t.poll,n.poll&&(n.poll.options=(n.poll.options||[]).map((function(e){return d(d({},e),{},{title_html:i()(e.title)})}))),n.pinned=t.pinned,n.muted=t.muted}else n.favorited=t.favorited,n.fave_num=t.fave_num,n.repeated=t.repeated,n.repeat_num=t.repeat_num,n.type=function(e){return e.is_post_verb?"status":e.retweeted_status?"retweet":"string"==typeof e.uri&&e.uri.match(/(fave|objectType=Favourite)/)||"string"==typeof e.text&&e.text.match(/favorited/)?"favorite":e.text.match(/deleted notice {{tag/)||e.qvitter_delete_notice?"deletion":e.text.match(/started following/)||"follow"===e.activity_type?"follow":"unknown"}(t),void 0===t.nsfw?(n.nsfw=v(t),t.retweeted_status&&(n.nsfw=t.retweeted_status.nsfw)):n.nsfw=t.nsfw,n.raw_html=t.statusnet_html,n.text=t.text,n.in_reply_to_status_id=t.in_reply_to_status_id,n.in_reply_to_user_id=t.in_reply_to_user_id,n.in_reply_to_screen_name=t.in_reply_to_screen_name,n.statusnet_conversation_id=t.statusnet_conversation_id,"retweet"===n.type&&(n.retweeted_status=e(t.retweeted_status)),n.summary=t.summary,n.summary_html=t.summary_html,n.external_url=t.external_url,n.is_local=t.is_local;n.id=String(t.id),n.visibility=t.visibility,n.card=t.card,n.created_at=new Date(t.created_at),n.in_reply_to_status_id=n.in_reply_to_status_id?String(n.in_reply_to_status_id):null,n.in_reply_to_user_id=n.in_reply_to_user_id?String(n.in_reply_to_user_id):null,n.user=p(r?t.account:t.user),n.attentions=((r?t.mentions:t.attentions)||[]).map(p),n.attachments=((r?t.media_attachments:t.attachments)||[]).map(h);var s=r?t.reblog:t.retweeted_status;return s&&(n.retweeted_status=e(s)),n.favoritedBy=[],n.rebloggedBy=[],Object.prototype.hasOwnProperty.call(t,"originalStatus")&&Object.assign(n,t.originalStatus),n},g=function(e){var t={};if(Object.prototype.hasOwnProperty.call(e,"ntype")){var n=f(e.notice);t.type=e.ntype,t.seen=Boolean(e.is_seen),t.status="like"===t.type?f(e.notice.favorited_status):n,t.action=n,t.from_profile="pleroma:chat_mention"===t.type?p(e.account):p(e.from_profile)}else t.type={favourite:"like",reblog:"repeat"}[e.type]||e.type,t.seen=e.pleroma.is_seen,t.status=(0,c.Gr)(t.type)?f(e.status):null,t.action=t.status,t.target="move"!==t.type?null:p(e.target),t.from_profile=p(e.account),t.emoji=e.emoji,e.report&&(t.report=e.report,t.report.content=e.report.content,t.report.acct=p(e.report.account),t.report.actor=p(e.report.actor),t.report.statuses=e.report.statuses.map(f));return t.created_at=new Date(e.created_at),t.id=parseInt(e.id),t},v=function(e){return(e.tags||[]).includes("nsfw")||!!(e.text||"").match(/#nsfw/i)},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.flakeId,r=a()(e);if(r){var o=r.next.max_id,i=r.prev.min_id;return{maxId:n?o:parseInt(o,10),minId:n?i:parseInt(i,10)}}},b=function(e){var t={};return t.id=e.id,t.account=p(e.account),t.unread=e.unread,t.lastMessage=y(e.last_message),t.updated_at=new Date(e.updated_at),t},y=function(e){if(e){if(e.isNormalized)return e;var t=e;return t.id=e.id,t.created_at=new Date(e.created_at),t.chat_id=e.chat_id,t.emojis=e.emojis,t.content=e.content,e.attachment?t.attachments=[h(e.attachment)]:t.attachments=[],t.pending=!!e.pending,t.error=!1,t.idempotency_key=e.idempotency_key,t.isNormalized=!0,t}}},49753:(e,t,n)=>{"use strict";var r,o,i,s,a;n.d(t,{Z:()=>c});const c=(r=[],o=128,i=128,s=function(e){return e.complete&&0!==e.naturalHeight},{initFaviconService:function(){document.querySelectorAll('link[rel="icon"]').forEach((function(e){if(e){var t=document.createElement("canvas");t.width=o,t.height=i;var n=new Image;n.crossOrigin="anonymous",n.src=e.href;var s=t.getContext("2d");r.push({favcanvas:t,favimg:n,favcontext:s,favicon:e})}}))},clearFaviconBadge:a=function(){0!==r.length&&r.forEach((function(e){var t=e.favimg,n=e.favcanvas,r=e.favcontext,a=e.favicon;t&&r&&a&&(r.clearRect(0,0,o,i),s(t)&&r.drawImage(t,0,0,t.width,t.height,0,0,o,i),a.href=n.toDataURL("image/png"))}))},drawFaviconBadge:function(){0!==r.length&&(a(),r.forEach((function(e){var t=e.favimg,n=e.favcanvas,r=e.favcontext,a=e.favicon;if(t&&r&&r){var c=getComputedStyle(document.body),l="".concat(c.getPropertyValue("--badgeNotification")||"rgb(240, 100, 100)");s(t)&&r.drawImage(t,0,0,t.width,t.height,0,0,o,i),r.fillStyle=l,r.beginPath(),r.arc(96,32,32,0,2*Math.PI,!1),r.fill(),a.href=n.toDataURL("image/png")}})))}})},65079:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={fileSizeFormat:function(e){var t=["B","KiB","MiB","GiB","TiB"],n=e;if(n<1)return n+" "+t[0];var r=Math.min(Math.floor(Math.log(n)/Math.log(1024)),t.length-1);return{num:n=1*(n/Math.pow(1024,r)).toFixed(2),unit:t[r]}}}},58394:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=function(e){return e.match(/flash/)?"flash":e.match(/text\/html/)?"html":e.match(/image/)?"image":e.match(/video/)?"video":e.match(/audio/)?"audio":"unknown"};const o={fileType:r,fileMatchesSomeType:function(e,t){return e.some((function(e){return r(t.mimetype)===e}))}}},39776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(35161),o=n.n(r),i=n(72617),s=n(2900),a={ja_easy:"ja",zh_Hant:"zh-HANT",zh:"zh-Hans"},c=function(e){return a[e]||e},l=function(e){var t={ja_easy:"やさしいにほんご",zh:"简体中文",zh_Hant:"繁體中文"}[e]||s.Z.getNativeName(e),n=c(e);return t.charAt(0).toLocaleUpperCase(n)+t.slice(1)},u=o()(i.Z.languages,(function(e){return{code:e,name:l(e)}})).sort((function(e,t){return e.name.localeCompare(t.name)}));const d={internalToBrowserLocale:c,internalToBackendLocale:function(e){return c(e).replace("_","-")},languages:u,getLanguageName:l}},52230:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>d,G2:()=>w,Gr:()=>m,Km:()=>b,nJ:()=>v,nU:()=>f});var r=n(64721),o=n.n(r),i=n(89734),s=n.n(i),a=n(63105),c=n.n(a),l=n(67828),u=n(64689),d=function(e){return e.state.statuses.notifications.data},p=function(e){var t=e.rootState||e.state;return[t.config.notificationVisibility.likes&&"like",t.config.notificationVisibility.mentions&&"mention",t.config.notificationVisibility.repeats&&"repeat",t.config.notificationVisibility.follows&&"follow",t.config.notificationVisibility.followRequest&&"follow_request",t.config.notificationVisibility.moves&&"move",t.config.notificationVisibility.emojiReactions&&"pleroma:emoji_reaction",t.config.notificationVisibility.reports&&"pleroma:report",t.config.notificationVisibility.polls&&"poll"].filter((function(e){return e}))},h=["like","mention","repeat","pleroma:emoji_reaction","poll"],m=function(e){return o()(h,e)},f=function(e){return!(m(e.type)&&!e.status)},g=function(e,t){var n=Number(e.id),r=Number(t.id),o=!Number.isNaN(n),i=!Number.isNaN(r);return o&&i?n>r?-1:1:o&&!i?1:!o&&i||e.id>t.id?-1:1},v=function(e,t){var n=e.rootState||e.state;if(!t.seen&&p(e).includes(t.type)&&("mention"!==t.type||!function(e,t){if(t.status)return t.status.muted||(0,l.u)(t.status,e.rootGetters.mergedConfig.muteWords).length>0}(e,t))){var r=y(t,e.rootGetters.i18n);(0,u.w)(n,r)}},w=function(e,t){var n=d(e).map((function(e){return e})).sort(g);return(n=s()(n,"seen")).filter((function(n){return(t||p(e)).includes(n.type)}))},b=function(e){return c()(w(e),(function(e){return!e.seen}))},y=function(e,t){var n,r={tag:e.id},o=e.status,i=e.from_profile.name;switch(r.title=i,r.icon=e.from_profile.profile_image_url,e.type){case"like":n="favorited_you";break;case"repeat":n="repeated_you";break;case"follow":n="followed_you";break;case"move":n="migrated_to";break;case"follow_request":n="follow_request";break;case"pleroma:report":n="submitted_report";break;case"poll":n="poll_ended"}return"pleroma:emoji_reaction"===e.type?r.body=t.t("notifications.reacted_with",[e.emoji]):n?r.body=t.t("notifications."+n):m(e.type)&&(r.body=e.status.text),o&&o.attachments&&o.attachments.length>0&&!o.nsfw&&o.attachments[0].mimetype.startsWith("image/")&&(r.image=o.attachments[0].url),r}},15568:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(93433),o=n(77776),i=n(22626),s=["mention","favourite","reblog","follow","move","pleroma:emoji_reaction","pleroma:report"],a=function(e){var t=e.store,n=e.credentials,o=e.older,i=void 0!==o&&o,a=e.since,l={credentials:n},u=t.getters,d=(t.rootState||t.state).statuses.notifications,p=u.mergedConfig.hideMutedPosts;if(l.includeTypes=s,l.withMuted=!p,l.timeline="notifications",i)return d.minId!==Number.POSITIVE_INFINITY&&(l.until=d.minId),c({store:t,args:l,older:i});void 0===a&&d.maxId!==Number.POSITIVE_INFINITY?l.since=d.maxId:null!==a&&(l.since=a);var h=c({store:t,args:l,older:i}),m=d.data,f=m.filter((function(e){return e.seen})).map((function(e){return e.id}));return m.length-f.length>0&&f.length>0&&(l.since=Math.max.apply(Math,(0,r.Z)(f)),c({store:t,args:l,older:i})),h},c=function(e){var t=e.store,n=e.args,r=e.older;return o.ZP.fetchTimeline(n).then((function(e){if(e.errors)throw new Error("".concat(e.status," ").concat(e.statusText));var n=e.data;return function(e){var t=e.notifications,n=e.older;e.store.dispatch("addNewNotifications",{notifications:t,older:n})}({store:t,notifications:n,older:r}),n})).catch((function(e){t.dispatch("pushGlobalNotice",{level:"error",messageKey:"notifications.error",messageArgs:[e.message],timeout:5e3}),console.error(e)}))};const l={fetchAndUpdate:a,startFetching:function(e){var t=e.credentials,n=e.store;setTimeout((function(){return n.dispatch("setNotificationsSilence",!1)}),1e4);var r=function(){return a({credentials:t,store:n})};return r(),(0,i.F)(r,1e4)}}},67952:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var r=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.top,s=void 0===i?0:i,a=r.left,c=void 0===a?0:a,l=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u={top:s+t.offsetTop,left:c+t.offsetLeft};if(!l&&t!==window){var d=o(t),p=d.topPadding,h=d.leftPadding;u.top+=l?0:p,u.left+=l?0:h}if(t.offsetParent&&"sticky"!==window.getComputedStyle(t.offsetParent).position&&(n===window||n.contains(t.offsetParent)||n===t.offsetParent))return e(t.offsetParent,n,u,!1);if(n!==window){var m=o(n),f=m.topPadding,g=m.leftPadding;u.top+=f,u.left+=g}return u},o=function(e){var t=window.getComputedStyle(e)["padding-top"],n=Number(t.substring(0,t.length-2)),r=window.getComputedStyle(e)["padding-left"];return{topPadding:n,leftPadding:Number(r.substring(0,r.length-2))}}},22626:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var r=function(e,t){var n=!1,r=null;return r=window.setTimeout((function o(){var i=e();i&&i.finally?i.finally((function(){n||(r=window.setTimeout(o,t))})):console.warn("promiseInterval: promise call did not return a promise, stopping interval.")}),t),{stop:function(){n=!0,window.clearTimeout(r)}}}},67828:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(63105),o=n.n(r),i=function(e,t){var n=e.text.toLowerCase(),r=e.summary.toLowerCase();return o()(t,(function(e){return n.includes(e.toLowerCase())||r.includes(e.toLowerCase())}))}},7257:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(35161),o=n.n(r),i=n(77776);const s={postStatus:function(e){var t=e.store,n=e.status,r=e.spoilerText,s=e.visibility,a=e.sensitive,c=e.poll,l=e.media,u=void 0===l?[]:l,d=e.inReplyToStatusId,p=void 0===d?void 0:d,h=e.contentType,m=void 0===h?"text/plain":h,f=e.preview,g=void 0!==f&&f,v=e.idempotencyKey,w=void 0===v?"":v,b=o()(u,"id");return i.ZP.postStatus({credentials:t.state.users.currentUser.credentials,status:n,spoilerText:r,visibility:s,sensitive:a,mediaIds:b,inReplyToStatusId:p,contentType:m,poll:c,preview:g,idempotencyKey:w}).then((function(e){return e.error||g||t.dispatch("addNewStatuses",{statuses:[e],timeline:"friends",showImmediately:!0,noIdUpdate:!0}),e})).catch((function(e){return{error:e.message}}))},editStatus:function(e){var t=e.store,n=e.statusId,r=e.status,s=e.spoilerText,a=e.sensitive,c=e.poll,l=e.media,u=void 0===l?[]:l,d=e.contentType,p=void 0===d?"text/plain":d,h=o()(u,"id");return i.ZP.editStatus({id:n,credentials:t.state.users.currentUser.credentials,status:r,spoilerText:s,sensitive:a,poll:c,mediaIds:h,contentType:p}).then((function(e){return e.error||t.dispatch("addNewStatuses",{statuses:[e],timeline:"friends",showImmediately:!0,noIdUpdate:!0}),e})).catch((function(e){return console.error("Error editing status",e),{error:e.message}}))},uploadMedia:function(e){var t=e.store,n=e.formData,r=t.state.users.currentUser.credentials;return i.ZP.uploadMedia({credentials:r,formData:n})},setMediaDescription:function(e){var t=e.store,n=e.id,r=e.description,o=t.state.users.currentUser.credentials;return i.ZP.setMediaDescription({credentials:o,id:n,description:r})}}},77394:(e,t,n)=>{"use strict";n.d(t,{H2:()=>P,I3:()=>$,LP:()=>b,Ot:()=>v,RC:()=>D,_v:()=>h,bY:()=>U,dE:()=>x,gm:()=>z,l9:()=>T,lD:()=>y,m:()=>_,mg:()=>g,vp:()=>C});var r=n(71002),o=n(93433),i=n(4942),s=n(29439),a=n(97332),c=n(21865),l=n(40454),u=n(85565);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t{"use strict";n.d(t,{em:()=>a,k0:()=>i,wB:()=>s});var r=n(97332),o=n(21865),i={undelay:null,topBar:null,badge:null,profileTint:null,fg:null,bg:"underlay",highlight:"bg",panel:"bg",popover:"bg",selectedMenu:"popover",btn:"bg",btnPanel:"panel",btnTopBar:"topBar",input:"bg",inputPanel:"panel",inputTopBar:"topBar",alert:"bg",alertPanel:"panel",poll:"bg",chatBg:"underlay",chatMessage:"chatBg"},s={profileTint:.5,alert:.5,input:.5,faint:.5,underlay:.15,alertPopup:.95},a={bg:{depends:[],opacity:"bg",priority:1},wallpaper:{depends:["bg"],color:function(e,t){return(0,r.Xu)(-2*e,t).rgb}},fg:{depends:[],priority:1},text:{depends:[],layer:"bg",opacity:null,priority:1},underlay:{default:"#000000",opacity:"underlay"},link:{depends:["accent"],priority:1},accent:{depends:["link"],priority:1},faint:{depends:["text"],opacity:"faint"},faintLink:{depends:["link"],opacity:"faint"},postFaintLink:{depends:["postLink"],opacity:"faint"},cBlue:"#0000ff",cRed:"#FF0000",cGreen:"#00FF00",cOrange:"#E3FF00",profileBg:{depends:["bg"],color:function(e,t){return{r:Math.floor(.53*t.r),g:Math.floor(.56*t.g),b:Math.floor(.59*t.b)}}},profileTint:{depends:["bg"],layer:"profileTint",opacity:"profileTint"},highlight:{depends:["bg"],color:function(e,t){return(0,r.Xu)(5*e,t).rgb}},highlightLightText:{depends:["lightText"],layer:"highlight",textColor:!0},highlightPostLink:{depends:["postLink"],layer:"highlight",textColor:"preserve"},highlightFaintText:{depends:["faint"],layer:"highlight",textColor:!0},highlightFaintLink:{depends:["faintLink"],layer:"highlight",textColor:"preserve"},highlightPostFaintLink:{depends:["postFaintLink"],layer:"highlight",textColor:"preserve"},highlightText:{depends:["text"],layer:"highlight",textColor:!0},highlightLink:{depends:["link"],layer:"highlight",textColor:"preserve"},highlightIcon:{depends:["highlight","highlightText"],color:function(e,t,n){return(0,o.a4)(t,n)}},popover:{depends:["bg"],opacity:"popover"},popoverLightText:{depends:["lightText"],layer:"popover",textColor:!0},popoverPostLink:{depends:["postLink"],layer:"popover",textColor:"preserve"},popoverFaintText:{depends:["faint"],layer:"popover",textColor:!0},popoverFaintLink:{depends:["faintLink"],layer:"popover",textColor:"preserve"},popoverPostFaintLink:{depends:["postFaintLink"],layer:"popover",textColor:"preserve"},popoverText:{depends:["text"],layer:"popover",textColor:!0},popoverLink:{depends:["link"],layer:"popover",textColor:"preserve"},popoverIcon:{depends:["popover","popoverText"],color:function(e,t,n){return(0,o.a4)(t,n)}},selectedPost:"--highlight",selectedPostFaintText:{depends:["highlightFaintText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostLightText:{depends:["highlightLightText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostPostLink:{depends:["highlightPostLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostFaintLink:{depends:["highlightFaintLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostText:{depends:["highlightText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostLink:{depends:["highlightLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostIcon:{depends:["selectedPost","selectedPostText"],color:function(e,t,n){return(0,o.a4)(t,n)}},selectedMenu:{depends:["bg"],color:function(e,t){return(0,r.Xu)(5*e,t).rgb}},selectedMenuLightText:{depends:["highlightLightText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuFaintText:{depends:["highlightFaintText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuFaintLink:{depends:["highlightFaintLink"],layer:"selectedMenu",variant:"selectedMenu",textColor:"preserve"},selectedMenuText:{depends:["highlightText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuLink:{depends:["highlightLink"],layer:"selectedMenu",variant:"selectedMenu",textColor:"preserve"},selectedMenuIcon:{depends:["selectedMenu","selectedMenuText"],color:function(e,t,n){return(0,o.a4)(t,n)}},selectedMenuPopover:{depends:["popover"],color:function(e,t){return(0,r.Xu)(5*e,t).rgb}},selectedMenuPopoverLightText:{depends:["selectedMenuLightText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverFaintText:{depends:["selectedMenuFaintText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverFaintLink:{depends:["selectedMenuFaintLink"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:"preserve"},selectedMenuPopoverText:{depends:["selectedMenuText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverLink:{depends:["selectedMenuLink"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:"preserve"},selectedMenuPopoverIcon:{depends:["selectedMenuPopover","selectedMenuText"],color:function(e,t,n){return(0,o.a4)(t,n)}},lightText:{depends:["text"],layer:"bg",textColor:"preserve",color:function(e,t){return(0,r.Xu)(20*e,t).rgb}},postLink:{depends:["link"],layer:"bg",textColor:"preserve"},postGreentext:{depends:["cGreen"],layer:"bg",textColor:"preserve"},postCyantext:{depends:["cBlue"],layer:"bg",textColor:"preserve"},border:{depends:["fg"],opacity:"border",color:function(e,t){return(0,r.Xu)(2*e,t).rgb}},poll:{depends:["accent","bg"],copacity:"poll",color:function(e,t,n){return(0,o.Tj)(t,.4,n)}},pollText:{depends:["text"],layer:"poll",textColor:!0},icon:{depends:["bg","text"],inheritsOpacity:!1,color:function(e,t,n){return(0,o.a4)(t,n)}},fgText:{depends:["text"],layer:"fg",textColor:!0},fgLink:{depends:["link"],layer:"fg",textColor:"preserve"},panel:{depends:["fg"],opacity:"panel"},panelText:{depends:["text"],layer:"panel",textColor:!0},panelFaint:{depends:["fgText"],layer:"panel",opacity:"faint",textColor:!0},panelLink:{depends:["fgLink"],layer:"panel",textColor:"preserve"},topBar:"--fg",topBarText:{depends:["fgText"],layer:"topBar",textColor:!0},topBarLink:{depends:["fgLink"],layer:"topBar",textColor:"preserve"},tab:{depends:["btn"]},tabText:{depends:["btnText"],layer:"btn",textColor:!0},tabActiveText:{depends:["text"],layer:"bg",textColor:!0},btn:{depends:["fg"],variant:"btn",opacity:"btn"},btnText:{depends:["fgText"],layer:"btn",textColor:!0},btnPanelText:{depends:["btnText"],layer:"btnPanel",variant:"btn",textColor:!0},btnTopBarText:{depends:["btnText"],layer:"btnTopBar",variant:"btn",textColor:!0},btnPressed:{depends:["btn"],layer:"btn"},btnPressedText:{depends:["btnText"],layer:"btn",variant:"btnPressed",textColor:!0},btnPressedPanel:{depends:["btnPressed"],layer:"btn"},btnPressedPanelText:{depends:["btnPanelText"],layer:"btnPanel",variant:"btnPressed",textColor:!0},btnPressedTopBar:{depends:["btnPressed"],layer:"btn"},btnPressedTopBarText:{depends:["btnTopBarText"],layer:"btnTopBar",variant:"btnPressed",textColor:!0},btnToggled:{depends:["btn"],layer:"btn",color:function(e,t){return(0,r.Xu)(20*e,t).rgb}},btnToggledText:{depends:["btnText"],layer:"btn",variant:"btnToggled",textColor:!0},btnToggledPanelText:{depends:["btnPanelText"],layer:"btnPanel",variant:"btnToggled",textColor:!0},btnToggledTopBarText:{depends:["btnTopBarText"],layer:"btnTopBar",variant:"btnToggled",textColor:!0},btnDisabled:{depends:["btn","bg"],color:function(e,t,n){return(0,o.Tj)(t,.25,n)}},btnDisabledText:{depends:["btnText","btnDisabled"],layer:"btn",variant:"btnDisabled",color:function(e,t,n){return(0,o.Tj)(t,.25,n)}},btnDisabledPanelText:{depends:["btnPanelText","btnDisabled"],layer:"btnPanel",variant:"btnDisabled",color:function(e,t,n){return(0,o.Tj)(t,.25,n)}},btnDisabledTopBarText:{depends:["btnTopBarText","btnDisabled"],layer:"btnTopBar",variant:"btnDisabled",color:function(e,t,n){return(0,o.Tj)(t,.25,n)}},input:{depends:["fg"],opacity:"input"},inputText:{depends:["text"],layer:"input",textColor:!0},inputPanelText:{depends:["panelText"],layer:"inputPanel",variant:"input",textColor:!0},inputTopbarText:{depends:["topBarText"],layer:"inputTopBar",variant:"input",textColor:!0},alertError:{depends:["cRed"],opacity:"alert"},alertErrorText:{depends:["text"],layer:"alert",variant:"alertError",textColor:!0},alertErrorPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertError",textColor:!0},alertWarning:{depends:["cOrange"],opacity:"alert"},alertWarningText:{depends:["text"],layer:"alert",variant:"alertWarning",textColor:!0},alertWarningPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertWarning",textColor:!0},alertSuccess:{depends:["cGreen"],opacity:"alert"},alertSuccessText:{depends:["text"],layer:"alert",variant:"alertSuccess",textColor:!0},alertSuccessPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertSuccess",textColor:!0},alertNeutral:{depends:["text"],opacity:"alert"},alertNeutralText:{depends:["text"],layer:"alert",variant:"alertNeutral",color:function(e,t){return(0,r.Xp)(t).rgb},textColor:!0},alertNeutralPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertNeutral",textColor:!0},alertPopupError:{depends:["alertError"],opacity:"alertPopup"},alertPopupErrorText:{depends:["alertErrorText"],layer:"popover",variant:"alertPopupError",textColor:!0},alertPopupWarning:{depends:["alertWarning"],opacity:"alertPopup"},alertPopupWarningText:{depends:["alertWarningText"],layer:"popover",variant:"alertPopupWarning",textColor:!0},alertPopupSuccess:{depends:["alertSuccess"],opacity:"alertPopup"},alertPopupSuccessText:{depends:["alertSuccessText"],layer:"popover",variant:"alertPopupSuccess",textColor:!0},alertPopupNeutral:{depends:["alertNeutral"],opacity:"alertPopup"},alertPopupNeutralText:{depends:["alertNeutralText"],layer:"popover",variant:"alertPopupNeutral",textColor:!0},badgeNotification:"--cRed",badgeNotificationText:{depends:["text","badgeNotification"],layer:"badge",variant:"badgeNotification",textColor:"bw"},badgeNeutral:"--cGreen",badgeNeutralText:{depends:["text","badgeNeutral"],layer:"badge",variant:"badgeNeutral",textColor:"bw"},chatBg:{depends:["bg"]},chatMessageIncomingBg:{depends:["chatBg"]},chatMessageIncomingText:{depends:["text"],layer:"chatMessage",variant:"chatMessageIncomingBg",textColor:!0},chatMessageIncomingLink:{depends:["link"],layer:"chatMessage",variant:"chatMessageIncomingBg",textColor:"preserve"},chatMessageIncomingBorder:{depends:["border"],opacity:"border",color:function(e,t){return(0,r.Xu)(2*e,t).rgb}},chatMessageOutgoingBg:{depends:["chatMessageIncomingBg"],color:function(e,t){return(0,r.Xu)(5*e,t).rgb}},chatMessageOutgoingText:{depends:["text"],layer:"chatMessage",variant:"chatMessageOutgoingBg",textColor:!0},chatMessageOutgoingLink:{depends:["link"],layer:"chatMessage",variant:"chatMessageOutgoingBg",textColor:"preserve"},chatMessageOutgoingBorder:{depends:["chatMessageOutgoingBg"],opacity:"border",color:function(e,t){return(0,r.Xu)(2*e,t).rgb}}}},40454:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>y,AV:()=>v,EC:()=>k,NI:()=>_,we:()=>p,xb:()=>m});var r=n(4942),o=n(29439),i=n(71002),s=n(93433),a=n(97332),c=n(21865),l=n(44551);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:l.k0,n=[e],r=t[e];r;)n.unshift(r),r=t[r];return n},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return h(e).map((function(i){return[i===e?r[t]:r[i],i===e?o[n]||1:o[i]]}))},f=function(e,t){var n=t[e];if("string"==typeof n&&n.startsWith("--"))return[n.substring(2)];if(null===n)return[];var r=n.depends,o=n.layer,i=n.variant,a=o?h(o).map((function(e){return e===o?i||o:e})):[];return Array.isArray(r)?[].concat((0,s.Z)(r),(0,s.Z)(a)):(0,s.Z)(a)},g=function(e){return"object"===(0,i.Z)(e)?e:{depends:e.startsWith("--")?[e.substring(2)]:[],default:e.startsWith("#")?e:void 0}},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.em,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=g(t[e]);if(null!==r.opacity){if(r.opacity)return r.opacity;var o=function r(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[e],a=n(o,t)[0];if(void 0!==a){var c=t[a];if(void 0!==c)return c.opacity||null===c?c.opacity:c.depends&&i.includes(a)?r(a,[].concat((0,s.Z)(i),[a])):null}};return r.depends?o(e):void 0}},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.em,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=g(t[e]);if(l.k0[e])return e;if(null!==r.layer){if(r.layer)return r.layer;var o=function r(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[e],a=n(o,t)[0];if(void 0!==a){var c=t[a];if(void 0!==c)return c.layer||null===c?c.layer:c.depends?r(c,[].concat((0,s.Z)(i),[a])):null}};return r.depends?o(e):void 0}},b=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.em,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f,n=Object.keys(e),r=new Set(n),o=new Set,i=new Set,s=[].concat(n),a=[],c=function n(s){if(r.has(s))r.delete(s),o.add(s),t(s,e).forEach(n),o.delete(s),i.add(s),a.push(s);else if(o.has(s))console.debug("Cyclic depenency in topoSort, ignoring"),a.push(s);else if(!i.has(s))throw new Error("Unintended condition in topoSort!")};s.length>0;)c(s.pop());return a.map((function(e,t){return{data:e,index:t}})).sort((function(n,r){var o=n.data,i=n.index,s=r.data,a=r.index,c=t(o,e).length,l=t(s,e).length;return c===l||0!==l&&0!==c?i-a:0===c&&0!==l?-1:0===l&&0!==c?1:0})).map((function(e){return e.data}))}(Object.entries(l.em).sort((function(e,t){var n=(0,o.Z)(e,2),r=(n[0],n[1]),i=(0,o.Z)(t,2),s=(i[0],i[1]);return(r&&r.priority||0)-(s&&s.priority||0)})).reduce((function(e,t){var n=(0,o.Z)(t,2),i=n[0],s=n[1];return d(d({},e),{},(0,r.Z)({},i,s))}),{})),y=Object.entries(l.em).reduce((function(e,t){var n=(0,o.Z)(t,2),i=n[0],a=(n[1],v(i,l.em,f));return a?d(d({},e),{},(0,r.Z)({},a,{defaultValue:l.wB[a]||1,affectedSlots:[].concat((0,s.Z)(e[a]&&e[a].affectedSlots||[]),[i])})):e}),{}),_=function(e,t,n){if("string"!=typeof e||!e.startsWith("--"))return e;var r=null,i=e.split(/,/g).map((function(e){return e.trim()})),s=(0,o.Z)(i,2),c=s[0],l=s[1];return r=t(c.substring(2)),l&&(r=(0,a.Xu)(Number.parseFloat(l)*n,r).rgb),r},k=function(e,t){return b.reduce((function(n,o){var i,u=n.colors,p=n.opacity,h=e[o],b=g(l.em[o]),k=f(o,l.em),S=!!b.textColor,j=b.variant||b.layer;i=S?(0,c.Rx)(d({},u[k[0]]||(0,a.OQ)(e[o]||"#FF00FF").rgb),m(w(o)||"bg",j||"bg",v(j),u,p)):j&&j!==o?u[j]||(0,a.OQ)(e[j]).rgb:u.bg||(0,a.OQ)(e.bg);var O=(0,c.ov)(i)<.5?1:-1,C=null;if(h){var P=h;if("transparent"===P){var z=m(w(o),o,v(o)||o,u,p).slice(0,-1);P=d(d({},(0,c.Rx)((0,a.OQ)("#FF00FF").rgb,z)),{},{a:0})}else"string"==typeof h&&h.startsWith("--")?P=_(h,(function(t){return u[t]||e[t]}),O):"string"==typeof h&&h.startsWith("#")&&(P=(0,a.OQ)(P).rgb);C=d({},P)}else if(b.default)C=(0,a.OQ)(b.default).rgb;else{var I=b.color||function(e,t){return d({},t)};if(b.textColor)if("bw"===b.textColor)C=(0,a.wo)(i).rgb;else{var D=d({},u[k[0]]);b.color&&(D=I.apply(void 0,[O].concat((0,s.Z)(k.map((function(e){return d({},u[e])})))))),C=(0,c.uu)(i,d({},D),"preserve"===b.textColor)}else C=I.apply(void 0,[O].concat((0,s.Z)(k.map((function(e){return d({},u[e])})))))}if(!C)throw new Error("Couldn't generate color for "+o);var x=b.opacity||v(o),T=b.opacity;if(null===T)C.a=1;else if("transparent"===h)C.a=0;else{var $=T&&void 0!==t[x],U=k[0],M=U&&u[U];T||!M||b.textColor||null===T?M||x?M&&0===M.a?C.a=0:C.a=Number($?t[x]:(y[x]||{}).defaultValue):delete C.a:C.a=M.a}return(Number.isNaN(C.a)||void 0===C.a)&&(C.a=1),x?{colors:d(d({},u),{},(0,r.Z)({},o,C)),opacity:d(d({},p),{},(0,r.Z)({},x,C.a))}:{colors:d(d({},u),{},(0,r.Z)({},o,C)),opacity:p}}),{colors:{},opacity:{}})}},95052:(e,t,n)=>{"use strict";n.d(t,{M:()=>c,q:()=>a});var r=n(4942),o=n(21865);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>i});var r=n(64721),o=n.n(r);const i=function(e,t,n){var r=!t||function(e){return e&&e.includes("@")}(t)||o()(n,t);return{name:r?"external-user-profile":"user-profile",params:r?{id:e}:{name:t}}}},74722:(e,t,n)=>{"use strict";n.d(t,{Z:()=>W});var r=n(66252),o=n(3577),i=n(49963),s=["href","alt","title"],a={key:1,class:"attachment-buttons"},c=["placeholder"],l={key:1},u={class:"attachment-wrapper"},d=["href","alt","title"],p=["src"],h={key:1,class:"attachment-buttons"},m=["title"],f=["title"],g=["title"],v=["title"],w=["title"],b=["title"],y=["title"],_=["href"],k=["href"],S=["href"],j=["src","alt","title"],O={key:0,class:"image"},C=["src"],P={class:"text"},z=["href"],I=["innerHTML"],D=["href"],x=["placeholder"],T={key:1},$=n(4942),U=n(19236),M=n(12394),A=n(34133);const L=n.p+"static/img/nsfw.2958239.png";var E=n(58394),F=n(989),R=n(9382),N=n(84131);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}R.vI.add(N.gMD,N.Xig,N.VmB,N.IyC,N.aQp,N.NBC,N.Bg$,N.N7g,N.I7k,N.UJf,N.S3c);const Z={props:["attachment","description","hideDescription","nsfw","size","setMedia","remove","shiftUp","shiftDn","edit"],data:function(){return{localDescription:this.description||this.attachment.description,nsfwImage:this.$store.state.instance.nsfwCensorImage||L,hideNsfwLocal:this.$store.getters.mergedConfig.hideNsfw,preloadImage:this.$store.getters.mergedConfig.preloadImage,loading:!1,img:"image"===E.Z.fileType(this.attachment.mimetype)&&document.createElement("img"),modalOpen:!1,showHidden:!1,flashLoaded:!1,showDescription:!1}},components:{Flash:M.Z,StillImage:U.Z,VideoAttachment:A.Z},computed:function(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>c});var r=n(66252),o={class:"avatars"},i=n(62312),s=n(4493);const a={props:["users"],computed:{slicedUsers:function(){return this.users?this.users.slice(0,15):[]}},components:{UserAvatar:i.default},methods:{userProfileLink:function(e){return(0,s.Z)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},c=(0,n(83744).Z)(a,[["render",function(e,t,n,i,s,a){var c=(0,r.up)("UserAvatar"),l=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("div",o,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.slicedUsers,(function(t){return(0,r.wg)(),(0,r.j4)(l,{key:t.id,to:e.userProfileLink(t),class:"avatars-item"},{default:(0,r.w5)((function(){return[(0,r.Wm)(c,{user:t,class:"avatar-small"},null,8,["user"])]})),_:2},1032,["to"])})),128))])}]])},85267:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(66252),o=n(49963),i={class:"basic-user-card"},s={class:"basic-user-card-collapsed-content"},a=["title"],c=n(78873),l=n(62312),u=n(12061),d=n(92820),p=n(4493);const h={props:["user"],components:{UserPopover:c.default,UserAvatar:l.default,RichContent:d.Z,UserLink:u.Z},methods:{userProfileLink:function(e){return(0,p.Z)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},m=(0,n(83744).Z)(h,[["render",function(e,t,n,c,l,u){var d=(0,r.up)("UserAvatar"),p=(0,r.up)("UserPopover"),h=(0,r.up)("router-link"),m=(0,r.up)("RichContent"),f=(0,r.up)("user-link");return(0,r.wg)(),(0,r.iD)("div",i,[(0,r.Wm)(h,{to:e.userProfileLink(e.user),onClick:t[1]||(t[1]=(0,o.iM)((function(){}),["prevent"]))},{default:(0,r.w5)((function(){return[(0,r.Wm)(p,{"user-id":e.user.id,"overlay-centers":!0,"overlay-centers-selector":".avatar"},{default:(0,r.w5)((function(){return[(0,r.Wm)(d,{class:"user-avatar avatar",user:e.user,onClick:t[0]||(t[0]=(0,o.iM)((function(){}),["prevent"]))},null,8,["user"])]})),_:1},8,["user-id"])]})),_:1},8,["to"]),(0,r._)("div",s,[(0,r._)("div",{title:e.user.name,class:"basic-user-card-user-name"},[(0,r.Wm)(m,{class:"basic-user-card-user-name-value",html:e.user.name,emoji:e.user.emoji},null,8,["html","emoji"])],8,a),(0,r._)("div",null,[(0,r.Wm)(f,{class:"basic-user-card-screen-name",user:e.user},null,8,["user"])]),(0,r.WI)(e.$slots,"default")])])}]])},40151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(66252),o=n(3577),i=["disabled","checked","indeterminate"],s=(0,r._)("i",{class:"checkbox-indicator"},null,-1),a={key:0,class:"label"};const c={props:["modelValue","indeterminate","disabled"],emits:["update:modelValue"]},l=(0,n(83744).Z)(c,[["render",function(e,t,n,c,l,u){return(0,r.wg)(),(0,r.iD)("label",{class:(0,o.C_)(["checkbox",{disabled:n.disabled,indeterminate:n.indeterminate}])},[(0,r._)("input",{type:"checkbox",disabled:n.disabled,checked:n.modelValue,indeterminate:n.indeterminate,onChange:t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t.target.checked)})},null,40,i),s,e.$slots.default?((0,r.wg)(),(0,r.iD)("span",a,[(0,r.WI)(e.$slots,"default")])):(0,r.kq)("",!0)],2)}]])},38658:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ke});var r=n(66252),o=n(3577),i=n(49963),s={ref:"hiddenOverlayCaret",class:"caret"},a={ref:"panel-body",class:"autocomplete-panel-body"},c=["onClick"],l={class:"image"},u=["src"],d={key:1},p={class:"label"},h={key:0,class:"displayText"},m={key:1,class:"displayText"},f={class:"detailText"},g=n(4942),v=n(44925),w=n(15861),b=n(93433),y=n(69572),_=n.n(y),k=n(64687),S=n.n(k),j=n(13311),O=n.n(j),C=n(54061),P=n.n(C),z=function(e){return P()(e,(function(e,t){var n={word:t,start:0,end:t.length};if(e.length>0){var r=e.pop();n.start+=r.end,n.end+=r.end,e.push(r)}return e.push(n),e}),[])},I=function(e){for(var t=[],n="",r=0;rt}))},x=function(e,t,n){return e.slice(0,t.start)+n+e.slice(t.end)};var T={class:"heading"},$={ref:"header",class:"emoji-tabs"},U=["title","onClick"],M={key:0,class:"emoji-picker-header-image"},A={key:0,class:"additional-tabs"},L=["title"],E={key:0,class:"content"},F={class:"emoji-search"},R=["placeholder"],N=["title","onClick"],q={key:0,class:"emoji-picker-emoji -unicode"},Z={class:"keep-open"},W={key:0,class:"stickers-content"},B=n(29439),H=n(92742),V=n.n(H),K=n(23279),G=n.n(K),Y=n(40151),J=n(49874),Q=n(19236),X=n(8312),ee=n(7059),te=n.n(ee),ne=n(9382),re=n(84131);function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ni&&s(n+7-r.clientWidth)},highlight:function(e){var t=this,n=this.groupRefs["group-"+e].offsetTop;this.setShowStickers(!1),this.activeGroup=e,this.$nextTick((function(){t.$refs["emoji-groups"].scrollTop=n+1}))},updateScrolledClass:function(e){e.scrollTop<=5?this.groupsScrolledClass="scrolled-top":e.scrollTop>=e.scrollTopMax-5?this.groupsScrolledClass="scrolled-bottom":this.groupsScrolledClass="scrolled-middle"},toggleStickers:function(){this.showingStickers=!this.showingStickers},setShowStickers:function(e){this.showingStickers=e},filterByKeyword:function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(""===t)return e;var o,i=t.toLowerCase(),s=[],a=se(e);try{for(a.s();!(o=a.n()).done;){var c=o.value,l=le(c,n,r).map((function(e){return e.toLowerCase().indexOf(i)})).filter((function(e){return e>-1})),u=l.length?Math.min.apply(Math,(0,b.Z)(l)):-1;u>-1&&(Array.isArray(s[u])||(s[u]=[]),s[u].push(c))}}catch(e){a.e(e)}finally{a.f()}return s.flat()}(e,t,this.languages,this.maybeLocalizedEmojiName)},initializeLazyLoad:function(){var e=this;this.destroyLazyLoad(),this.$nextTick((function(){e.$lozad=te()(".still-image.emoji-picker-emoji",{load:function(t){var n=t.getAttribute("data-emoji-name"),r=e.emojiRefs[n];r&&r.loadLazy()}}),e.$lozad.observe()}))},waitForDomAndInitializeLazyLoad:function(){var e=this;this.$nextTick((function(){return e.initializeLazyLoad()}))},destroyLazyLoad:function(){this.$lozad&&(this.$lozad.observer&&this.$lozad.observer.disconnect(),this.$lozad.mutationObserver&&this.$lozad.mutationObserver.disconnect())},onShowing:function(){var e=this,t=this.contentLoaded;this.$nextTick((function(){e.$refs.search.focus()})),this.contentLoaded=!0,this.waitForDomAndInitializeLazyLoad(),this.filteredEmojiGroups=this.getFilteredEmojiGroups(),t||this.$nextTick((function(){e.defaultGroup&&e.highlight(e.defaultGroup)}))},getFilteredEmojiGroups:function(){var e=this;return this.allEmojiGroups.map((function(t){return ie(ie({},t),{},{emojis:e.filterByKeyword(t.emojis,V()(e.keyword))})})).filter((function(e){return e.emojis.length>0}))}},watch:{keyword:function(){this.onScroll(),this.debouncedHandleKeywordChange()},allCustomGroups:function(){this.waitForDomAndInitializeLazyLoad(),this.filteredEmojiGroups=this.getFilteredEmojiGroups()}},destroyed:function(){this.destroyLazyLoad()},computed:{activeGroupView:function(){return this.showingStickers?"":this.activeGroup},stickersAvailable:function(){return this.$store.state.instance.stickers?this.$store.state.instance.stickers.length>0:0},allCustomGroups:function(){return this.$store.getters.groupedCustomEmojis},defaultGroup:function(){return Object.keys(this.allCustomGroups)[0]},unicodeEmojiGroups:function(){var e=this;return this.$store.getters.standardEmojiGroupList.map((function(t){return{id:"standard-".concat(t.id),text:e.$t("emoji.unicode_groups.".concat(t.id)),icon:ce[t.id],emojis:t.emojis}}))},allEmojiGroups:function(){return Object.entries(this.allCustomGroups).map((function(e){var t=(0,B.Z)(e,2);return t[0],t[1]})).concat(this.unicodeEmojiGroups)},stickerPickerEnabled:function(){return 0!==(this.$store.state.instance.stickers||[]).length},debouncedHandleKeywordChange:function(){var e=this;return G()((function(){e.waitForDomAndInitializeLazyLoad(),e.filteredEmojiGroups=e.getFilteredEmojiGroups()}),500)},languages:function(){return(0,X.ensureFinalFallback)(this.$store.getters.mergedConfig.interfaceLanguage)},maybeLocalizedEmojiName:function(){var e=this;return function(t){if(!t.annotations)return t.displayText;if(t.displayTextI18n)return e.$t(t.displayTextI18n.key,t.displayTextI18n.args);var n,r=se(e.languages);try{for(r.s();!(n=r.n()).done;){var o,i=n.value;if(null!==(o=t.annotations[i])&&void 0!==o&&o.name)return t.annotations[i].name}}catch(e){r.e(e)}finally{r.f()}return t.displayText}}}};var de=n(83744);const pe=(0,de.Z)(ue,[["render",function(e,t,n,s,a,c){var l=(0,r.up)("still-image"),u=(0,r.up)("FAIcon"),d=(0,r.up)("Checkbox"),p=(0,r.up)("sticker-picker"),h=(0,r.up)("Popover");return(0,r.wg)(),(0,r.j4)(h,{ref:"popover",trigger:"click","popover-class":"emoji-picker popover-default",onShow:e.onPopoverShown,onClose:e.onPopoverClosed},{content:(0,r.w5)((function(){return[(0,r._)("div",T,[(0,r._)("span",$,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.filteredEmojiGroups,(function(t){return(0,r.wg)(),(0,r.iD)("span",{ref_for:!0,ref:e.setGroupRef("group-header-"+t.id),key:t.id,class:(0,o.C_)(["emoji-tabs-item",{active:e.activeGroupView===t.id}]),title:t.text,onClick:(0,i.iM)((function(n){return e.highlight(t.id)}),["prevent"])},[t.image?((0,r.wg)(),(0,r.iD)("span",M,[(0,r.Wm)(l,{alt:t.text,src:t.image},null,8,["alt","src"])])):((0,r.wg)(),(0,r.j4)(u,{key:1,icon:t.icon,"fixed-width":""},null,8,["icon"]))],10,U)})),128))],512),e.stickerPickerEnabled?((0,r.wg)(),(0,r.iD)("span",A,[(0,r._)("span",{class:(0,o.C_)(["stickers-tab-icon additional-tabs-item",{active:e.showingStickers}]),title:e.$t("emoji.stickers"),onClick:t[0]||(t[0]=(0,i.iM)((function(){return e.toggleStickers&&e.toggleStickers.apply(e,arguments)}),["prevent"]))},[(0,r.Wm)(u,{icon:"sticky-note","fixed-width":""})],10,L)])):(0,r.kq)("",!0)]),e.contentLoaded?((0,r.wg)(),(0,r.iD)("div",E,[(0,r._)("div",{class:(0,o.C_)(["emoji-content",{hidden:e.showingStickers}])},[(0,r._)("div",F,[(0,r.wy)((0,r._)("input",{ref:"search","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.keyword=t}),type:"text",class:"form-control",placeholder:e.$t("emoji.search_emoji"),onInput:t[2]||(t[2]=function(e){return e.target.composing=!1})},null,40,R),[[i.nr,e.keyword]])]),(0,r._)("div",{ref:"emoji-groups",class:(0,o.C_)(["emoji-groups",e.groupsScrolledClass]),onScroll:t[3]||(t[3]=function(){return e.onScroll&&e.onScroll.apply(e,arguments)})},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.filteredEmojiGroups,(function(t){return(0,r.wg)(),(0,r.iD)("div",{key:t.id,class:"emoji-group"},[(0,r._)("h6",{ref_for:!0,ref:e.setGroupRef("group-"+t.id),class:"emoji-group-title"},(0,o.zw)(t.text),513),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.emojis,(function(n){return(0,r.wg)(),(0,r.iD)("span",{key:t.id+n.displayText,title:e.maybeLocalizedEmojiName(n),class:"emoji-item",onClick:(0,i.iM)((function(t){return e.onEmoji(n)}),["stop","prevent"])},[n.imageUrl?((0,r.wg)(),(0,r.j4)(l,{key:1,ref_for:!0,ref:e.setEmojiRef(t.id+n.displayText),class:"emoji-picker-emoji -custom","data-src":n.imageUrl,"data-emoji-name":t.id+n.displayText},null,8,["data-src","data-emoji-name"])):((0,r.wg)(),(0,r.iD)("span",q,(0,o.zw)(n.replacement),1))],8,N)})),128)),(0,r._)("span",{ref_for:!0,ref:e.setGroupRef("group-end-"+t.id)},null,512)])})),128))],34),(0,r._)("div",Z,[(0,r.Wm)(d,{modelValue:e.keepOpen,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.keepOpen=t})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,o.zw)(e.$t("emoji.keep_open")),1)]})),_:1},8,["modelValue"])])],2),e.showingStickers?((0,r.wg)(),(0,r.iD)("div",W,[(0,r.Wm)(p,{onUploaded:e.onStickerUploaded,onUploadFailed:e.onStickerUploadFailed},null,8,["onUploaded","onUploadFailed"])])):(0,r.kq)("",!0)])):(0,r.kq)("",!0)]})),_:1},8,["onShow","onClose"])}]]);var he,me=n(42262),fe=n(67952),ge=n(5737),ve=["imageUrl"];function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&!this.pickerShown&&!this.temporarilyHideSuggestions},textAtCaret:function(){var e;return null===(e=this.wordAtCaret)||void 0===e?void 0:e.word},wordAtCaret:function(){if(this.modelValue&&this.caret)return D(this.modelValue,this.caret-1)||{}},languages:function(){return(0,X.ensureFinalFallback)(this.$store.getters.mergedConfig.interfaceLanguage)},maybeLocalizedEmojiNamesAndKeywords:function(){var e=this;return function(t){var n=[t.displayText],r=[];return t.displayTextI18n&&n.push(e.$t(t.displayTextI18n.key,t.displayTextI18n.args)),t.annotations&&e.languages.forEach((function(e){var o,i;n.push(null===(o=t.annotations[e])||void 0===o?void 0:o.name),r.push.apply(r,(0,b.Z)((null===(i=t.annotations[e])||void 0===i?void 0:i.keywords)||[]))})),{names:n.filter((function(e){return e})),keywords:r.filter((function(e){return e}))}}},maybeLocalizedEmojiName:function(){var e=this;return function(t){if(!t.annotations)return t.displayText;if(t.displayTextI18n)return e.$t(t.displayTextI18n.key,t.displayTextI18n.args);var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(e.languages);try{for(r.s();!(n=r.n()).done;){var o,i=n.value;if(null!==(o=t.annotations[i])&&void 0!==o&&o.name)return t.annotations[i].name}}catch(e){r.e(e)}finally{r.f()}return t.displayText}},onInputScroll:function(){this.$refs.hiddenOverlay.scrollTo({top:this.input.scrollTop,left:this.input.scrollLeft})}},mounted:function(){var e=this.$refs,t=e.root,n=e.hiddenOverlayCaret,r=e.suggestorPopover,o=t.querySelector(".emoji-input > input")||t.querySelector(".emoji-input > textarea");if(o){this.input=o,this.caretEl=n,r.setAnchorEl?(r.setAnchorEl(this.caretEl),this.$refs.picker.setAnchorEl(this.caretEl)):console.warn("setAnchorEl not found, are we in a unit test?");var i=getComputedStyle(this.input);this.overlayStyle.padding=i.padding,this.overlayStyle.border=i.border,this.overlayStyle.margin=i.margin,this.overlayStyle.lineHeight=i.lineHeight,this.overlayStyle.fontFamily=i.fontFamily,this.overlayStyle.fontSize=i.fontSize,this.overlayStyle.wordWrap=i.wordWrap,this.overlayStyle.whiteSpace=i.whiteSpace,this.resize(),o.addEventListener("blur",this.onBlur),o.addEventListener("focus",this.onFocus),o.addEventListener("paste",this.onPaste),o.addEventListener("keyup",this.onKeyUp),o.addEventListener("keydown",this.onKeyDown),o.addEventListener("click",this.onClickInput),o.addEventListener("transitionend",this.onTransition),o.addEventListener("input",this.onInput),o.addEventListener("scroll",this.onInputScroll)}},unmounted:function(){var e=this.input;e&&(e.removeEventListener("blur",this.onBlur),e.removeEventListener("focus",this.onFocus),e.removeEventListener("paste",this.onPaste),e.removeEventListener("keyup",this.onKeyUp),e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("click",this.onClickInput),e.removeEventListener("transitionend",this.onTransition),e.removeEventListener("input",this.onInput),e.removeEventListener("scroll",this.onInputScroll))},watch:{showSuggestions:function(e,t){this.$emit("shown",e),e?this.$refs.suggestorPopover.showPopover():this.$refs.suggestorPopover.hidePopover()},textAtCaret:(he=(0,w.Z)(S().mark((function e(t){var n,r;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t){e.next=2;break}return e.abrupt("return");case 2:if(n=t.charAt(0),t!==n){e.next=6;break}return this.suggestions=[],e.abrupt("return");case 6:return e.next=8,this.suggest(t,this.maybeLocalizedEmojiNamesAndKeywords);case 8:if(r=e.sent,!(this.textAtCaret!==t||r.length<=0)){e.next=12;break}return this.suggestions=[],e.abrupt("return");case 12:this.suggestions=_()(r,5).map((function(e){var t=e.imageUrl;return be(be({},(0,v.Z)(e,ve)),{},{img:t||""})}));case 13:case"end":return e.stop()}}),e,this)}))),function(e){return he.apply(this,arguments)})},methods:{triggerShowPicker:function(){var e=this;this.$nextTick((function(){e.$refs.picker.showPicker(),e.scrollIntoView()})),this.disableClickOutside=!0,setTimeout((function(){e.disableClickOutside=!1}),0)},togglePicker:function(){this.input.focus(),this.pickerShown?this.$refs.picker.hidePicker():(this.scrollIntoView(),this.$refs.picker.showPicker(),this.$refs.picker.startEmojiLoad())},replace:function(e){var t=x(this.modelValue,this.wordAtCaret,e);this.$emit("update:modelValue",t),this.caret=0},insert:function(e){var t=e.insertion,n=e.keepOpen,r=e.surroundingSpace,o=void 0===r||r,i=this.modelValue.substring(0,this.caret)||"",s=this.modelValue.substring(this.caret)||"",a=/\s/,c=o&&!a.exec(i.slice(-1))&&i.length&&this.padEmoji>0?" ":"",l=o&&!a.exec(s[0])&&this.padEmoji?" ":"",u=[i,c,t,l,s].join("");this.$emit("update:modelValue",u);var d=this.caret+(t+l+c).length;n||this.input.focus(),this.$nextTick((function(){this.input.setSelectionRange(d,d),this.caret=d}))},replaceText:function(e,t){var n=this.suggestions.length||0;if(1!==this.textAtCaret.length&&(n>0||t)){var r=(t||this.suggestions[this.highlighted]).replacement,o=x(this.modelValue,this.wordAtCaret,r);this.$emit("update:modelValue",o),this.highlighted=0;var i=this.wordAtCaret.start+r.length;this.$nextTick((function(){this.input.focus(),this.input.setSelectionRange(i,i),this.caret=i})),e.preventDefault()}},cycleBackward:function(e){(this.suggestions.length||0)>1?(this.highlighted-=1,this.highlighted<0&&(this.highlighted=this.suggestions.length-1),e.preventDefault()):this.highlighted=0},cycleForward:function(e){var t=this.suggestions.length||0;t>1?(this.highlighted+=1,this.highlighted>=t&&(this.highlighted=0),e.preventDefault()):this.highlighted=0},scrollIntoView:function(){var e=this,t=this.$refs.picker.$el,n=this.$el.closest(".sidebar-scroller")||this.$el.closest(".post-form-modal-view")||window,r=n===window?n.scrollY:n.scrollTop,o=r+(n===window?n.innerHeight:n.offsetHeight),i=t.offsetHeight+(0,fe.y)(t,n).top,s=r+Math.max(0,i-o);n===window?n.scroll(0,s):n.scrollTop=s,this.$nextTick((function(){var t=e.input.offsetHeight,n=e.$refs.picker;n.$el.getBoundingClientRect().bottom>window.innerHeight&&(n.$el.style.top="auto",n.$el.style.bottom=t+"px")}))},onPickerShown:function(){this.pickerShown=!0},onPickerClosed:function(){this.pickerShown=!1},onBlur:function(e){var t=this;this.blurTimeout=setTimeout((function(){t.focused=!1,t.setCaret(e)}),200)},onClick:function(e,t){this.replaceText(e,t)},onFocus:function(e){this.blurTimeout&&(clearTimeout(this.blurTimeout),this.blurTimeout=null),this.focused=!0,this.setCaret(e),this.temporarilyHideSuggestions=!1},onKeyUp:function(e){var t=e.key;this.setCaret(e),this.temporarilyHideSuggestions="Escape"===t},onPaste:function(e){this.setCaret(e)},onKeyDown:function(e){var t=this,n=e.ctrlKey,r=e.shiftKey,o=e.key;this.newlineOnCtrlEnter&&n&&"Enter"===o&&(this.insert({insertion:"\n",surroundingSpace:!1}),e.stopPropagation(),e.preventDefault(),this.$nextTick((function(){t.input.blur(),t.input.focus()}))),this.temporarilyHideSuggestions||("Tab"===o&&(r?this.cycleBackward(e):this.cycleForward(e)),"ArrowUp"===o?this.cycleBackward(e):"ArrowDown"===o&&this.cycleForward(e),"Enter"===o&&(n||this.replaceText(e))),"Escape"===o&&(this.temporarilyHideSuggestions||this.input.focus())},onInput:function(e){this.setCaret(e),this.$emit("update:modelValue",e.target.value)},onStickerUploaded:function(e){this.$emit("sticker-uploaded",e)},onStickerUploadFailed:function(e){this.$emit("sticker-upload-Failed",e)},setCaret:function(e){var t=this,n=e.target.selectionStart;this.caret=n,this.$nextTick((function(){t.$refs.suggestorPopover.updateStyles()}))},resize:function(){}}},ke=(0,de.Z)(_e,[["render",function(e,t,n,g,v,w){var b=(0,r.up)("FAIcon"),y=(0,r.up)("EmojiPicker"),_=(0,r.up)("UnicodeDomainIndicator"),k=(0,r.up)("Popover");return(0,r.wg)(),(0,r.iD)("div",{ref:"root",class:(0,o.C_)(["emoji-input",{"with-picker":!e.hideEmojiButton}])},[(0,r.WI)(e.$slots,"default"),(0,r._)("div",{ref:"hiddenOverlay",class:"hidden-overlay",style:(0,o.j5)(e.overlayStyle)},[(0,r._)("span",null,(0,o.zw)(e.preText),1),(0,r._)("span",s,"x",512),(0,r._)("span",null,(0,o.zw)(e.postText),1)],4),e.enableEmojiPicker?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[e.hideEmojiButton?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("button",{key:0,class:"button-unstyled emoji-picker-icon",type:"button",onClick:t[0]||(t[0]=(0,i.iM)((function(){return e.togglePicker&&e.togglePicker.apply(e,arguments)}),["prevent"]))},[(0,r.Wm)(b,{icon:["far","smile-beam"]})])),e.enableEmojiPicker?((0,r.wg)(),(0,r.j4)(y,{key:1,ref:"picker","enable-sticker-picker":e.enableStickerPicker,class:"emoji-picker-panel",onEmoji:e.insert,onStickerUploaded:e.onStickerUploaded,onStickerUploadFailed:e.onStickerUploadFailed,onShow:e.onPickerShown,onClose:e.onPickerClosed},null,8,["enable-sticker-picker","onEmoji","onStickerUploaded","onStickerUploadFailed","onShow","onClose"])):(0,r.kq)("",!0)],64)):(0,r.kq)("",!0),(0,r.Wm)(k,{ref:"suggestorPopover",class:"autocomplete-panel",placement:"bottom"},{content:(0,r.w5)((function(){return[(0,r._)("div",a,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.suggestions,(function(t,n){return(0,r.wg)(),(0,r.iD)("div",{key:n,class:(0,o.C_)(["autocomplete-item",{highlighted:n===e.highlighted}]),onClick:(0,i.iM)((function(n){return e.onClick(n,t)}),["stop","prevent"])},[(0,r._)("span",l,[t.img?((0,r.wg)(),(0,r.iD)("img",{key:0,src:t.img},null,8,u)):((0,r.wg)(),(0,r.iD)("span",d,(0,o.zw)(t.replacement),1))]),(0,r._)("div",p,[t.user?((0,r.wg)(),(0,r.iD)("span",h,[(0,r.Uk)((0,o.zw)(t.displayText),1),(0,r.Wm)(_,{user:t.user,at:!1},null,8,["user"])])):(0,r.kq)("",!0),t.user?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("span",m,(0,o.zw)(e.maybeLocalizedEmojiName(t)),1)),(0,r._)("span",f,(0,o.zw)(t.detailText),1)])],10,c)})),128))],512)]})),_:1},512)],2)}]])},12394:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r,o=n(66252),i=n(3577),s={class:"Flash"},a={key:0,class:"label"},c={key:1,class:"label"},l={key:2,class:"label"};const u=(r=null,{getRuffle:function(){return new Promise((function(e,t){if(r)e(r);else{window.RufflePlayer={},window.RufflePlayer.config={polyfills:!1,publicPath:"/static/ruffle"};var n=document.createElement("script");n.src="/static/ruffle/ruffle.js",n.type="text/javascript",n.onerror=function(e){t(e)},n.onabort=function(e){t(e)},n.oncancel=function(e){t(e)},n.onload=function(){r=window.RufflePlayer,e(r)},document.body.appendChild(n)}}))}});var d=n(9382),p=n(84131);d.vI.add(p.Bg$,p.eHv);const h={props:["src"],data:function(){return{player:!1,loaded:!1,ruffleInstance:null}},methods:{openPlayer:function(){var e=this;this.player||(this.player="hidden",u.getRuffle().then((function(t){var n=t.newest().createPlayer();n.config={letterbox:"on"},e.$refs.container.appendChild(n),n.style.width="100%",n.style.height="100%",n.load(e.src).then((function(){e.player=!0})).catch((function(t){console.error("Error loading ruffle",t),e.player="error"})),e.ruffleInstance=n,e.$emit("playerOpened")})))},closePlayer:function(){this.ruffleInstance&&this.ruffleInstance.remove(),this.player=!1,this.$emit("playerClosed")}}},m=(0,n(83744).Z)(h,[["render",function(e,t,n,r,u,d){var p=(0,o.up)("FAIcon");return(0,o.wg)(),(0,o.iD)("div",s,[!0===e.player||"hidden"===e.player?((0,o.wg)(),(0,o.iD)("div",{key:0,ref:"container",class:(0,i.C_)(["player",{hidden:"hidden"===e.player}])},null,2)):(0,o.kq)("",!0),!0!==e.player?((0,o.wg)(),(0,o.iD)("button",{key:1,class:"button-unstyled placeholder",onClick:t[0]||(t[0]=function(){return e.openPlayer&&e.openPlayer.apply(e,arguments)})},["hidden"===e.player?((0,o.wg)(),(0,o.iD)("span",a,(0,i.zw)(e.$t("general.loading")),1)):(0,o.kq)("",!0),"error"===e.player?((0,o.wg)(),(0,o.iD)("span",c,(0,i.zw)(e.$t("general.flash_fail")),1)):((0,o.wg)(),(0,o.iD)("span",l,[(0,o._)("p",null,(0,i.zw)(e.$t("general.flash_content")),1),(0,o._)("p",null,[(0,o.Wm)(p,{icon:"exclamation-triangle"}),(0,o.Uk)(" "+(0,i.zw)(e.$t("general.flash_security")),1)])]))])):(0,o.kq)("",!0)])}]])},13046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(66252),o=n(3577),i=["disabled","title"],s=n(29439),a=function e(t,n,r){return new Promise((function(e,o){setTimeout((function(){r.state.api.backendInteractor.fetchUserRelationship({id:n}).then((function(e){return r.commit("updateUserRelationship",[e]),e})).then((function(n){return e([n.following,n.requested,n.locked,t])})).catch((function(e){return o(e)}))}),500)})).then((function(t){var o=(0,s.Z)(t,4),i=o[0],a=o[1],c=o[2],l=o[3];i||c&&a||!(l<=3)||e(++l,n,r)}))},c=function(e,t){return new Promise((function(n,r){t.state.api.backendInteractor.followUser({id:e}).then((function(e){if(t.commit("updateUserRelationship",[e]),!(e.following||e.locked&&e.requested))return a(1,e,t).then((function(){n()}));n()}))}))};const l={props:["relationship","user","labelFollowing","buttonClass"],data:function(){return{inProgress:!1}},computed:{isPressed:function(){return this.inProgress||this.relationship.following},title:function(){return this.inProgress||this.relationship.following?this.$t("user_card.follow_unfollow"):this.relationship.requested?this.$t("user_card.follow_cancel"):this.$t("user_card.follow")},label:function(){return this.inProgress?this.$t("user_card.follow_progress"):this.relationship.following?this.labelFollowing||this.$t("user_card.following"):this.relationship.requested?this.$t("user_card.follow_sent"):this.$t("user_card.follow")},disabled:function(){return this.inProgress||this.user.deactivated}},methods:{onClick:function(){this.relationship.following||this.relationship.requested?this.unfollow():this.follow()},follow:function(){var e=this;this.inProgress=!0,c(this.relationship.id,this.$store).then((function(){e.inProgress=!1}))},unfollow:function(){var e=this,t=this.$store;this.inProgress=!0,function(e,t){return new Promise((function(n,r){t.state.api.backendInteractor.unfollowUser({id:e}).then((function(e){t.commit("updateUserRelationship",[e]),n({updated:e})}))}))}(this.relationship.id,t).then((function(){e.inProgress=!1,t.commit("removeStatus",{timeline:"friends",userId:e.relationship.id})}))}}},u=(0,n(83744).Z)(l,[["render",function(e,t,n,s,a,c){return(0,r.wg)(),(0,r.iD)("button",{class:(0,o.C_)(["btn button-default follow-button",{toggled:e.isPressed}]),disabled:e.disabled,title:e.title,onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},(0,o.zw)(e.label),11,i)}]])},99822:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(66252),o=n(3577),i={class:"gallery-rows"},s={key:0,class:"many-attachments"},a={class:"many-attachments-text"},c={class:"many-attachments-buttons"},l={key:0,class:"many-attachments-button"},u={key:1,class:"many-attachments-button"},d={key:2,class:"many-attachments-button"},p=n(93433),h=n(36968),m=n.n(h),f=n(73303),g=n.n(f);const v={props:["attachments","limitRows","descriptions","limit","nsfw","setMedia","size","editable","removeAttachment","shiftUpAttachment","shiftDnAttachment","editAttachment","grid"],data:function(){return{sizes:{},hidingLong:!0}},components:{Attachment:n(74722).Z},computed:{rows:function(){var e=this;if(!this.attachments)return[];var t=this.limit>0?this.attachments.slice(0,this.limit):this.attachments;return"hide"===this.size?t.map((function(e){return{minimal:!0,items:[e]}})):this.grid?[{grid:!0,items:t}]:t.reduce((function(t,n,r){if(n.mimetype.includes("audio"))return[].concat((0,p.Z)(t),[{audio:!0,items:[n]},{items:[]}]);if(!(n.mimetype.includes("image")||n.mimetype.includes("video")||n.mimetype.includes("flash")))return[].concat((0,p.Z)(t),[{minimal:!0,items:[n]},{items:[]}]);var o=e.attachments.length-r+1,i=t[t.length-1].items;return i.push(n),i.length>=3&&o>3?[].concat((0,p.Z)(t),[{items:[]}]):t}),[{items:[]}]).filter((function(e){return e.items.length>0}))},attachmentsDimensionalScore:function(){return this.rows.reduce((function(e,t){var n=0;return t.minimal?n+=1/8:t.audio?n+=1/4:n+=1/(t.items.length+.6),e+n}),0)},tooManyAttachments:function(){return!this.editable&&"small"!==this.size&&("hide"===this.size?this.attachments.length>8:this.attachmentsDimensionalScore>1)}},methods:{onNaturalSizeLoad:function(e){var t=e.id,n=e.width,r=e.height;m()(this.sizes,t,{width:n,height:r})},rowStyle:function(e){return e.audio?{"padding-bottom":"25%"}:e.minimal||e.grid?void 0:{"padding-bottom":"".concat(100/(e.items.length+.6),"%")}},itemStyle:function(e,t){var n=this,r=g()(t,(function(e){return n.getAspectRatio(e.id)}));return{flex:"".concat(this.getAspectRatio(e)/r," 1 0%")}},getAspectRatio:function(e){var t=this.sizes[e];return t?t.width/t.height:1},toggleHidingLong:function(e){this.hidingLong=e},openGallery:function(){this.$store.dispatch("setMedia",this.attachments),this.$store.dispatch("setCurrentMedia",this.attachments[0])},onMedia:function(){this.$store.dispatch("setMedia",this.attachments)}}},w=(0,n(83744).Z)(v,[["render",function(e,t,n,p,h,m){var f=(0,r.up)("Attachment");return(0,r.wg)(),(0,r.iD)("div",{ref:"galleryContainer",class:(0,o.C_)(["Gallery",{"-long":e.tooManyAttachments&&e.hidingLong}])},[(0,r._)("div",i,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.rows,(function(t,n){return(0,r.wg)(),(0,r.iD)("div",{key:n,class:(0,o.C_)(["gallery-row",{"-audio":t.audio,"-minimal":t.minimal,"-grid":e.grid}]),style:(0,o.j5)(e.rowStyle(t))},[(0,r._)("div",{class:(0,o.C_)(["gallery-row-inner",{"-grid":e.grid}])},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.items,(function(i,s){return(0,r.wg)(),(0,r.j4)(f,{key:i.id,class:"gallery-item",nsfw:e.nsfw,attachment:i,size:e.size,editable:e.editable,remove:e.removeAttachment,"shift-up":!(0===s&&0===n)&&e.shiftUpAttachment,"shift-dn":!(s===t.items.length-1&&n===e.rows.length-1)&&e.shiftDnAttachment,edit:e.editAttachment,description:e.descriptions&&e.descriptions[i.id],"hide-description":"small"===e.size||e.tooManyAttachments&&e.hidingLong,style:(0,o.j5)(e.itemStyle(i.id,t.items)),onSetMedia:e.onMedia,onNaturalSizeLoad:e.onNaturalSizeLoad},null,8,["nsfw","attachment","size","editable","remove","shift-up","shift-dn","edit","description","hide-description","style","onSetMedia","onNaturalSizeLoad"])})),128))],2)],6)})),128))]),e.tooManyAttachments?((0,r.wg)(),(0,r.iD)("div",s,[(0,r._)("div",a,(0,o.zw)(e.$t("status.many_attachments",{number:e.attachments.length})),1),(0,r._)("div",c,[e.hidingLong?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("span",l,[(0,r._)("button",{class:"button-unstyled -link",onClick:t[0]||(t[0]=function(t){return e.toggleHidingLong(!0)})},(0,o.zw)(e.$t("status.collapse_attachments")),1)])),e.hidingLong?((0,r.wg)(),(0,r.iD)("span",u,[(0,r._)("button",{class:"button-unstyled -link",onClick:t[1]||(t[1]=function(t){return e.toggleHidingLong(!1)})},(0,o.zw)(e.$t("status.show_all_attachments")),1)])):(0,r.kq)("",!0),e.hidingLong?((0,r.wg)(),(0,r.iD)("span",d,[(0,r._)("button",{class:"button-unstyled -link",onClick:t[2]||(t[2]=function(){return e.openGallery&&e.openGallery.apply(e,arguments)})},(0,o.zw)(e.$t("status.open_gallery")),1)])):(0,r.kq)("",!0)])])):(0,r.kq)("",!0)],2)}]])},80034:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(66252),o=n(3577),i={for:"interface-language-switcher"},s=["value"],a=n(39776);const c={components:{Select:n(44313).Z},props:{promptText:{type:String,required:!0},language:{type:String,required:!0},setLanguage:{type:Function,required:!0}},computed:{languages:function(){return a.Z.languages},controlledLanguage:{get:function(){return this.language},set:function(e){this.setLanguage(e)}}},methods:{getLanguageName:function(e){return a.Z.getLanguageName(e)}}},l=(0,n(83744).Z)(c,[["render",function(e,t,n,a,c,l){var u=(0,r.up)("Select");return(0,r.wg)(),(0,r.iD)("div",null,[(0,r._)("label",i,(0,o.zw)(n.promptText),1),(0,r.Uk)(" "+(0,o.zw)(" ")+" "),(0,r.Wm)(u,{id:"interface-language-switcher",modelValue:l.controlledLanguage,"onUpdate:modelValue":t[0]||(t[0]=function(e){return l.controlledLanguage=e})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(l.languages,(function(e){return(0,r.wg)(),(0,r.iD)("option",{key:e.code,value:e.code},(0,o.zw)(e.name),9,s)})),128))]})),_:1},8,["modelValue"])])}]])},87887:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(66252),o=n(3577),i=["href"],s={key:0,class:"card-image"},a=["src"],c={class:"card-content"},l={class:"card-host faint"},u={key:0,class:"nsfw-alert alert warning"},d={class:"card-title"},p={key:0,class:"card-description"},h=n(4942);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const f={name:"LinkPreview",props:["card","size","nsfw"],data:function(){return{imageLoaded:!1}},computed:function(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>a});var r=n(66252),o={class:"list"},i={key:0,class:"list-empty-content faint"};const s={props:{items:{type:Array,default:function(){return[]}},getKey:{type:Function,default:function(e){return e.id}}}},a=(0,n(83744).Z)(s,[["render",function(e,t,n,s,a,c){return(0,r.wg)(),(0,r.iD)("div",o,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.items,(function(t){return(0,r.wg)(),(0,r.iD)("div",{key:n.getKey(t),class:"list-item"},[(0,r.WI)(e.$slots,"item",{item:t})])})),128)),0===n.items.length&&e.$slots.empty?((0,r.wg)(),(0,r.iD)("div",i,[(0,r.WI)(e.$slots,"empty")])):(0,r.kq)("",!0)])}]])},20460:(e,t,n)=>{"use strict";n.d(t,{Z:()=>z});var r=n(66252),o=n(3577),i=n(49963),s={class:"MentionLink"},a=["href","innerHTML"],c=["href"],l={class:"shortName"},u=["innerHTML"],d=["innerHTML"],p={ref:"full",class:"full"},h=["innerHTML"],m=["innerHTML"],f=n(44925),g=n(4942),v=n(4493),w=n(989),b=n(95052),y=n(62312),_=n(42262),k=n(9382),S=n(84131),j=["backgroundColor","backgroundPosition","backgroundImage"];function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t{"use strict";n.d(t,{d:()=>p,Z:()=>m});var r=n(66252),o=n(3577),i={class:"MentionsLine"},s={key:0,class:"extraMentions"},a={key:0,class:"fullExtraMentions"},c=n(4942),l=n(20460),u=n(989);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var p=5;const h={name:"MentionsLine",props:{mentions:{required:!0,type:Array}},data:function(){return{expanded:!1}},components:{MentionLink:l.Z},computed:function(e){for(var t=1;t0}},(0,u.Se)(["mergedConfig"])),methods:{toggleShowMore:function(){this.expanded=!this.expanded}}},m=(0,n(83744).Z)(h,[["render",function(e,t,n,c,l,u){var d=(0,r.up)("MentionLink");return(0,r.wg)(),(0,r.iD)("span",i,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.mentionsComputed,(function(e){return(0,r.wg)(),(0,r.j4)(d,{key:e.index,class:"mention-link",content:e.content,url:e.url},null,8,["content","url"])})),128)),e.manyMentions?((0,r.wg)(),(0,r.iD)("span",s,[e.expanded?((0,r.wg)(),(0,r.iD)("span",a,[(0,r.Uk)((0,o.zw)(" ")),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.extraMentions,(function(e){return(0,r.wg)(),(0,r.j4)(d,{key:e.index,class:"mention-link",content:e.content,url:e.url},null,8,["content","url"])})),128))])):(0,r.kq)("",!0),e.expanded?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("button",{key:1,class:"button-unstyled showMoreLess",onClick:t[0]||(t[0]=function(){return e.toggleShowMore&&e.toggleShowMore.apply(e,arguments)})},(0,o.zw)(e.$t("status.plus_more",{number:e.extraMentions.length})),1)),e.expanded?((0,r.wg)(),(0,r.iD)("button",{key:2,class:"button-unstyled showMoreLess",onClick:t[1]||(t[1]=function(){return e.toggleShowMore&&e.toggleShowMore.apply(e,arguments)})},(0,o.zw)(e.$t("general.show_less")),1)):(0,r.kq)("",!0)])):(0,r.kq)("",!0)])}]])},58312:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(66252),o=n(3577),i=n(49963);const s={provide:{popoversZLayer:"modals"},props:{isOpen:{type:Boolean,default:!0},noBackground:{type:Boolean,default:!1}},computed:{classes:function(){return{"modal-background":!this.noBackground,open:this.isOpen}}}},a=(0,n(83744).Z)(s,[["render",function(e,t,n,s,a,c){var l=(0,r.Q2)("body-scroll-lock");return(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["modal-view",c.classes]),onClick:t[0]||(t[0]=(0,i.iM)((function(t){return e.$emit("backdropClicked")}),["self"]))},[(0,r.WI)(e.$slots,"default")],2)),[[i.F8,n.isOpen],[l,n.isOpen&&!n.noBackground]])}]])},2302:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Me});var r=n(66252),o=n(3577),i=n(49963),s={key:0,class:"notifications-heading panel-heading -sticky"},a={class:"title"},c={key:0,class:"badge badge-notification unseen-count"},l={key:0,class:"rightside-button"},u=["title"],d={class:"panel-body",role:"feed"},p=(0,r._)("div",{class:"notification-overlay"},null,-1),h={class:"panel-footer"},m={key:0,class:"new-status-notification text-center faint"},f={class:"new-status-notification text-center"},g={key:2,class:"new-status-notification text-center"},v=n(4942),w=n(989),b={key:0},y={key:1},_={key:0,class:"Notification container -muted"},k=["href"],S={class:"notification-right"},j={class:"notification-details"},O={class:"name-and-action"},C={key:0},P=["title"],z={key:2},I={key:3},D={key:4},x={key:5},T={key:6},$={key:7},U={class:"emoji-reaction-emoji"},M={key:8},A={key:9},L={key:0,class:"timeago"},E=["title","aria-expanded"],F={key:1,class:"timeago"},R={class:"faint"},N=["title","aria-expanded"],q={key:0,class:"follow-text"},Z={key:0,style:{"white-space":"nowrap"}},W=["title"],B=["title"],H={key:1,class:"move-text"},V=n(33288),K=n(87482),G=n(62312),Y=n(27073),J=n(1840),Q={class:"Report"},X={class:"reported-user"},ee={class:"reporter"},te={class:"report-state"},ne=["value"],re={key:0},oe={class:"reported-status-heading"},ie={class:"reported-status-name"},se={key:1},ae=n(44313),ce=n(4493);const le={props:["reportId"],components:{Select:ae.Z,StatusContent:V.Z,Timeago:J.Z},computed:{report:function(){return this.$store.state.reports.reports[this.reportId]||{}},state:{get:function(){return this.report.state},set:function(e){this.setReportState(e)}}},methods:{generateUserProfileLink:function(e){return(0,ce.Z)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},setReportState:function(e){return this.$store.dispatch("setReportState",{id:this.report.id,state:e})}}};var ue=n(83744);const de=(0,ue.Z)(le,[["render",function(e,t,n,i,s,a){var c=(0,r.up)("router-link"),l=(0,r.up)("Select"),u=(0,r.up)("RichContent"),d=(0,r.up)("Timeago"),p=(0,r.up)("status-content");return(0,r.wg)(),(0,r.iD)("div",Q,[(0,r._)("div",X,[(0,r._)("span",null,(0,o.zw)(e.$t("report.reported_user")),1),(0,r.Wm)(c,{to:e.generateUserProfileLink(e.report.acct)},{default:(0,r.w5)((function(){return[(0,r.Uk)(" @"+(0,o.zw)(e.report.acct.screen_name),1)]})),_:1},8,["to"])]),(0,r._)("div",ee,[(0,r._)("span",null,(0,o.zw)(e.$t("report.reporter")),1),(0,r.Wm)(c,{to:e.generateUserProfileLink(e.report.actor)},{default:(0,r.w5)((function(){return[(0,r.Uk)(" @"+(0,o.zw)(e.report.actor.screen_name),1)]})),_:1},8,["to"])]),(0,r._)("div",te,[(0,r._)("span",null,(0,o.zw)(e.$t("report.state")),1),(0,r.Wm)(l,{id:e.report-e.state,modelValue:e.state,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.state=t}),class:"form-control"},{default:(0,r.w5)((function(){return[((0,r.wg)(),(0,r.iD)(r.HY,null,(0,r.Ko)(["open","closed","resolved"],(function(t){return(0,r._)("option",{key:t,value:t},(0,o.zw)(e.$t("report.state_"+t)),9,ne)})),64))]})),_:1},8,["id","modelValue"])]),(0,r.Wm)(u,{class:"report-content",html:e.report.content,emoji:[]},null,8,["html"]),e.report.statuses.length?((0,r.wg)(),(0,r.iD)("div",re,[(0,r._)("small",null,(0,o.zw)(e.$t("report.reported_statuses")),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.report.statuses,(function(e){return(0,r.wg)(),(0,r.j4)(c,{key:e.id,to:{name:"conversation",params:{id:e.id}},class:"reported-status"},{default:(0,r.w5)((function(){return[(0,r._)("div",oe,[(0,r._)("span",ie,(0,o.zw)(e.user.name),1),(0,r.Wm)(d,{time:e.created_at,"auto-update":240,class:"faint"},null,8,["time"])]),(0,r.Wm)(p,{status:e},null,8,["status"])]})),_:2},1032,["to"])})),128))])):(0,r.kq)("",!0),e.report.notes.length?((0,r.wg)(),(0,r.iD)("div",se,[(0,r._)("small",null,(0,o.zw)(e.$t("report.notes")),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.report.notes,(function(e){return(0,r.wg)(),(0,r.iD)("div",{key:e.id,class:"note"},[(0,r._)("span",null,(0,o.zw)(e.content),1),(0,r.Wm)(d,{time:e.created_at,"auto-update":240,class:"faint"},null,8,["time"])])})),128))])):(0,r.kq)("",!0)])}]]);var pe=n(12061),he=n(92820),me=n(78873),fe=n(52230),ge=n(95052),ve=n(9382),we=n(84131);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}ve.vI.add(we.LEp,we.NBC,we.Tab,we.x5v,we.FKd,we.ILF,we.Aq,we.gmr,we.TTL,we.V9$);var ye={data:function(){return{statusExpanded:!1,betterShadow:this.$store.state.interface.browserSupport.cssFilter,unmuted:!1}},props:["notification"],components:{StatusContent:V.Z,UserAvatar:G.default,UserCard:Y.Z,Timeago:J.Z,Status:K.default,Report:de,RichContent:he.Z,UserPopover:me.default,UserLink:pe.Z},methods:{toggleStatusExpanded:function(){this.statusExpanded=!this.statusExpanded},generateUserProfileLink:function(e){return(0,ce.Z)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},getUser:function(e){return this.$store.state.users.usersObject[e.from_profile.id]},toggleMute:function(){this.unmuted=!this.unmuted},approveUser:function(){this.$store.state.api.backendInteractor.approveUser({id:this.user.id}),this.$store.dispatch("removeFollowRequest",this.user),this.$store.dispatch("markSingleNotificationAsSeen",{id:this.notification.id}),this.$store.dispatch("updateNotification",{id:this.notification.id,updater:function(e){e.type="follow"}})},denyUser:function(){var e=this;this.$store.state.api.backendInteractor.denyUser({id:this.user.id}).then((function(){e.$store.dispatch("dismissNotificationLocal",{id:e.notification.id}),e.$store.dispatch("removeFollowRequest",e.user)}))}},computed:function(e){for(var t=1;t0?(xe.Z.drawFaviconBadge(),this.$store.dispatch("setPageTitle","(".concat(e,")"))):(xe.Z.clearFaviconBadge(),this.$store.dispatch("setPageTitle",""))},teleportTarget:function(){var e=this;this.$nextTick((function(){e.scrollerRef.removeEventListener("scroll",e.updateScrollPosition),e.scrollerRef=e.$refs.root.closest(".column.-scrollable"),e.scrollerRef||(e.scrollerRef=e.$refs.root.closest(".mobile-notifications")),e.scrollerRef.addEventListener("scroll",e.updateScrollPosition),e.updateScrollPosition()}))}},methods:{scrollToTop:function(){this.scrollerRef.scrollTo({top:this.$refs.root.offsetTop})},updateScrollPosition:function(){this.showScrollTop=this.$refs.root.offsetTopt&&(this.seenToDisplayCount=t);var n=this.$store,r=n.state.users.currentUser.credentials;n.commit("setNotificationsLoading",{value:!0}),De.Z.fetchAndUpdate({store:n,credentials:r,older:!0}).then((function(t){n.commit("setNotificationsLoading",{value:!1}),0===t.length&&(e.bottomedOut=!0),e.seenToDisplayCount+=t.length}))}}}}},Ue=(0,ue.Z)($e,[["render",function(e,t,n,v,w,b){var y=(0,r.up)("FAIcon"),_=(0,r.up)("FALayers"),k=(0,r.up)("NotificationFilters"),S=(0,r.up)("notification");return(0,r.wg)(),(0,r.j4)(r.lR,{disabled:e.minimalMode||e.disableTeleport,to:e.teleportTarget},[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.noHeading?"div":"aside"),{ref:"root",class:(0,o.C_)([{minimal:e.minimalMode},"Notifications"])},{default:(0,r.w5)((function(){return[(0,r._)("div",{class:(0,o.C_)(e.mainClass)},[e.noHeading?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",s,[(0,r._)("div",a,[(0,r.Uk)((0,o.zw)(e.$t("notifications.notifications"))+" ",1),e.unseenCount?((0,r.wg)(),(0,r.iD)("span",c,(0,o.zw)(e.unseenCount),1)):(0,r.kq)("",!0)]),e.showScrollTop?((0,r.wg)(),(0,r.iD)("div",l,[(0,r._)("button",{class:"button-unstyled scroll-to-top-button",type:"button",title:e.$t("general.scroll_to_top"),onClick:t[0]||(t[0]=function(){return e.scrollToTop&&e.scrollToTop.apply(e,arguments)})},[(0,r.Wm)(_,{class:"fa-scale-110 fa-old-padding-layer"},{default:(0,r.w5)((function(){return[(0,r.Wm)(y,{icon:"arrow-up"}),(0,r.Wm)(y,{icon:"minus",transform:"up-7"})]})),_:1})],8,u)])):(0,r.kq)("",!0),e.unseenCount?((0,r.wg)(),(0,r.iD)("button",{key:1,class:"button-default read-button",type:"button",onClick:t[1]||(t[1]=(0,i.iM)((function(){return e.markAsSeen&&e.markAsSeen.apply(e,arguments)}),["prevent"]))},(0,o.zw)(e.$t("notifications.read")),1)):(0,r.kq)("",!0),(0,r.Wm)(k,{class:"rightside-button"})])),(0,r._)("div",d,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.notificationsToDisplay,(function(t){return(0,r.wg)(),(0,r.iD)("div",{key:t.id,role:"listitem",class:(0,o.C_)(["notification",{unseen:!e.minimalMode&&!t.seen}])},[p,(0,r.Wm)(S,{notification:t},null,8,["notification"])],2)})),128))]),(0,r._)("div",h,[e.bottomedOut?((0,r.wg)(),(0,r.iD)("div",m,(0,o.zw)(e.$t("notifications.no_more_notifications")),1)):e.loading?((0,r.wg)(),(0,r.iD)("div",g,[(0,r.Wm)(y,{icon:"circle-notch",spin:"",size:"lg"})])):((0,r.wg)(),(0,r.iD)("button",{key:1,class:"button-unstyled -link -fullwidth",onClick:t[2]||(t[2]=(0,i.iM)((function(t){return e.fetchOlderNotifications()}),["prevent"]))},[(0,r._)("div",f,(0,o.zw)(e.minimalMode?e.$t("interactions.load_older"):e.$t("notifications.load_older")),1)]))])],2)]})),_:1},8,["class"]))],8,["disabled","to"])}]]),Me=Ue},96786:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(66252),o=n(3577),i={class:"panel-loading"},s={class:"loading-text"},a=n(9382),c=n(84131);a.vI.add(c.IJ7);const l={},u=(0,n(83744).Z)(l,[["render",function(e,t,n,a,c,l){var u=(0,r.up)("FAIcon");return(0,r.wg)(),(0,r.iD)("div",i,[(0,r._)("span",s,[(0,r.Wm)(u,{icon:"circle-notch",spin:"",size:"3x"}),(0,r.Uk)(" "+(0,o.zw)(e.$t("general.loading")),1)])])}]])},49874:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(66252),o=n(49963),i=n(3577);const s={name:"Popover",props:{trigger:String,placement:String,boundTo:Object,boundToSelector:String,margin:Object,offset:Object,popoverClass:String,removePadding:Boolean,disabled:Boolean,overlayCenters:Boolean,overlayCentersSelector:String,stayOnClick:Boolean,triggerAttrs:{type:Object,default:{}}},inject:["popoversZLayer"],data:function(){return{anchorEl:null,teleport:!1,lockReEntry:!1,hidden:!0,styles:{},oldSize:{width:0,height:0},scrollable:null,graceTimeout:null,parentPopover:null,disableClickOutside:!1,childrenShown:new Set}},methods:{setAnchorEl:function(e){this.anchorEl=e,this.updateStyles()},containerBoundingClientRect:function(){return(this.boundToSelector?this.$el.closest(this.boundToSelector):this.$el.offsetParent).getBoundingClientRect()},updateStyles:function(){if(this.hidden)this.styles={};else{var e=this.anchorEl||this.$refs.trigger&&this.$refs.trigger.children[0]||this.$el,t=e.offsetHeight||e.clientHeight,n=e.offsetWidth||e.clientWidth,r=e.getBoundingClientRect(),o=getComputedStyle(e),i=parseFloat(o.paddingTop),s=parseFloat(o.paddingBottom),a=parseFloat(o.paddingRight),c=parseFloat(o.paddingLeft),l=r.left+.5*n,u=r.top+.5*t,d=this.$refs.content,p=this.overlayCenters?this.$refs.content.querySelector(this.overlayCentersSelector):null,h=this.boundTo&&("container"===this.boundTo.x||"container"===this.boundTo.y)&&this.containerBoundingClientRect(),m=this.margin||{},f=this.boundTo&&"container"===this.boundTo.x?{min:h.left+(m.left||0),max:h.right-(m.right||0)}:{min:0+(m.left||10),max:window.innerWidth-(m.right||10)},g=this.boundTo&&"container"===this.boundTo.y?{min:h.top+(m.top||0),max:h.bottom-(m.bottom||0)}:{min:0+(m.top||50),max:window.innerHeight-(m.bottom||5)},v=0,w=0;if(p){var b=d.getBoundingClientRect(),y=p.getBoundingClientRect(),_=y.left-b.left,k=y.top-b.top;v=-_-.5*p.offsetWidth,w=-k-.5*p.offsetHeight}else v=-.5*d.offsetWidth,w=-.5*d.offsetHeight;var S=l+v,j=S+d.offsetWidth,O=u+w,C=O+d.offsetHeight;Sf.max&&(v-=j-f.max),Og.max&&(w-=C-g.max);var P=0,z=0;if(p)P=l+v,z=u+w;else if("right"!==this.placement&&"left"!==this.placement){var I="bottom"!==this.placement,D=u-.5*t+(this.removePadding?i:0),x=u+.5*t-(this.removePadding?s:0);x+d.offsetHeight>g.max&&(I=!0),D-d.offsetHeightf.max&&($=!0),U-d.offsetWidth0||(this.hidePopover(),this.parentPopover&&this.parentPopover.onClickOutside(e))},onScroll:function(e){this.updateStyles()},onResize:function(e){this.updateStyles()},onChildPopoverState:function(e,t){t?this.childrenShown.add(e):this.childrenShown.delete(e)}},updated:function(){var e=this.$refs.content;e&&(this.oldSize.width===e.offsetWidth&&this.oldSize.height===e.offsetHeight||(this.updateStyles(),this.oldSize={width:e.offsetWidth,height:e.offsetHeight}))},mounted:function(){this.teleport=!0;var e=this.$refs.trigger.closest(".column.-scrollable")||this.$refs.trigger.closest(".mobile-notifications");e||(e=window),this.scrollable=e;for(var t=this.$parent;t&&"Popover"!==t.$.type.name;)t=t.$parent;this.parentPopover=t},beforeUnmount:function(){this.hidePopover()}},a=(0,n(83744).Z)(s,[["render",function(e,t,n,s,a,c){return(0,r.wg)(),(0,r.iD)("span",{onMouseenter:t[4]||(t[4]=function(){return e.onMouseenter&&e.onMouseenter.apply(e,arguments)}),onMouseleave:t[5]||(t[5]=function(){return e.onMouseleave&&e.onMouseleave.apply(e,arguments)})},[(0,r._)("button",(0,r.dG)({ref:"trigger",class:"button-unstyled popover-trigger-button",type:"button"},e.triggerAttrs,{onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})}),[(0,r.WI)(e.$slots,"trigger")],16),((0,r.wg)(),(0,r.j4)(r.lR,{disabled:!e.teleport,to:"#popovers"},[(0,r.Wm)(o.uT,{name:"fade"},{default:(0,r.w5)((function(){return[e.hidden?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",{key:0,ref:"content",style:(0,i.j5)(e.styles),class:(0,i.C_)(["popover",e.popoverClass||"popover-default"]),onMouseenter:t[1]||(t[1]=function(){return e.onMouseenterContent&&e.onMouseenterContent.apply(e,arguments)}),onMouseleave:t[2]||(t[2]=function(){return e.onMouseleaveContent&&e.onMouseleaveContent.apply(e,arguments)}),onClick:t[3]||(t[3]=function(){return e.onClickContent&&e.onClickContent.apply(e,arguments)})},[(0,r.WI)(e.$slots,"content",{class:"popover-inner",close:e.hidePopover})],38))]})),_:3})],8,["disabled"]))],32)}]])},33580:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ae});var r=n(66252),o=n(49963),i=n(3577),s={ref:"form",class:"post-status-form"},a={class:"form-group"},c={key:1,class:"visibility-notice notice-dismissible"},l={key:2,class:"visibility-notice notice-dismissible"},u={key:3,class:"visibility-notice notice-dismissible"},d={key:4,class:"visibility-notice"},p={key:0},h={key:1},m={key:5,class:"visibility-notice edit-warning"},f={key:6,class:"preview-heading faint"},g={class:"preview-spinner"},v={key:7,class:"preview-container"},w={key:0,class:"preview-status"},b={key:1,class:"preview-status preview-error"},y=["placeholder","disabled"],_=["placeholder","disabled"],k={key:9,class:"visibility-tray"},S={key:1,class:"text-format"},j=["value"],O={key:2,class:"text-format"},C={class:"only-format"},P={ref:"bottom",class:"form-bottom"},z={class:"form-bottom-left"},I=["title"],D=["title"],x={key:0,disabled:"",class:"btn button-default"},T={key:1,disabled:"",class:"btn button-default"},$=["disabled"],U={key:1,class:"alert error"},M={key:3,class:"upload_settings"},A=n(15861),L=n(4942),E=n(93433),F=n(23279),R=n.n(F),N=n(45578),q=n.n(N),Z=n(35161),W=n.n(Z),B=n(43063),H=n.n(B),V=n(64687),K=n.n(V),G=n(7257),Y=["title"],J=["disabled"],Q=n(65079),X=n(9382),ee=n(84131);function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}},methods:{uploadFile:function(e){var t=this,n=this.$store;if(e.size>n.state.instance.uploadlimit){var r=Q.Z.fileSizeFormat(e.size),o=Q.Z.fileSizeFormat(n.state.instance.uploadlimit);t.$emit("upload-failed","file_too_big",{filesize:r.num,filesizeunit:r.unit,allowedsize:o.num,allowedsizeunit:o.unit})}else{var i=new FormData;i.append("file",e),t.$emit("uploading"),t.uploadCount++,G.Z.uploadMedia({store:n,formData:i}).then((function(e){t.$emit("uploaded",e),t.decreaseUploadCount()}),(function(e){console.error("Error uploading file",e),t.$emit("upload-failed","default"),t.decreaseUploadCount()}))}},decreaseUploadCount:function(){this.uploadCount--,0===this.uploadCount&&this.$emit("all-uploaded")},clearFile:function(){var e=this;this.uploadReady=!1,this.$nextTick((function(){e.uploadReady=!0}))},multiUpload:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.uploadFile(r)}}catch(e){n.e(e)}finally{n.f()}},change:function(e){var t=e.target;this.multiUpload(t.files)}},props:["dropFiles","disabled"],watch:{dropFiles:function(e){this.uploading||this.multiUpload(e)}}};var re=n(83744);const oe=(0,re.Z)(ne,[["render",function(e,t,n,o,s,a){var c=(0,r.up)("FAIcon");return(0,r.wg)(),(0,r.iD)("label",{class:(0,i.C_)(["media-upload",{disabled:e.disabled}]),title:e.$t("tool_tip.media_upload")},[e.uploading?((0,r.wg)(),(0,r.j4)(c,{key:0,class:"progress-icon",icon:"circle-notch",spin:""})):(0,r.kq)("",!0),e.uploading?(0,r.kq)("",!0):((0,r.wg)(),(0,r.j4)(c,{key:1,class:"new-icon",icon:"upload"})),e.uploadReady?((0,r.wg)(),(0,r.iD)("input",{key:2,class:"hidden-input-file",disabled:e.disabled,type:"file",multiple:"true",onChange:t[0]||(t[0]=function(){return e.change&&e.change.apply(e,arguments)})},null,40,J)):(0,r.kq)("",!0)],10,Y)}]]);var ie=n(4078),se=n(38658),ae={key:0,class:"poll-form"},ce={class:"input-container"},le=["id","onUpdate:modelValue","placeholder","maxlength","onKeydown"],ue=["onClick"],de={class:"poll-type-expiry"},pe=["title"],he={value:"single"},me={value:"multiple"},fe=["title"],ge=["min","max"],ve=["value"],we=n(44908),be=n.n(we),ye=n(27483),_e=n(44313);X.vI.add(ee.NBC,ee.r8p);const ke={components:{Select:_e.Z},name:"PollForm",props:["visible"],data:function(){return{pollType:"single",options:["",""],expiryAmount:10,expiryUnit:"minutes"}},computed:{pollLimits:function(){return this.$store.state.instance.pollLimits},maxOptions:function(){return this.pollLimits.max_options},maxLength:function(){return this.pollLimits.max_option_chars},expiryUnits:function(){var e=this,t=this.convertExpiryFromUnit;return["minutes","hours","days"].filter((function(n){return e.pollLimits.max_expiration>=t(n,1)}))},minExpirationInCurrentUnit:function(){return Math.ceil(this.convertExpiryToUnit(this.expiryUnit,this.pollLimits.min_expiration))},maxExpirationInCurrentUnit:function(){return Math.floor(this.convertExpiryToUnit(this.expiryUnit,this.pollLimits.max_expiration))}},methods:{clear:function(){this.pollType="single",this.options=["",""],this.expiryAmount=10,this.expiryUnit="minutes"},nextOption:function(e){var t=this.$el.querySelector("#poll-".concat(e+1));t?t.focus():this.addOption()&&this.$nextTick((function(){this.nextOption(e)}))},addOption:function(){return this.options.length2&&(this.options.splice(e,1),this.updatePollToParent())},convertExpiryToUnit:function(e,t){switch(e){case"minutes":return 1e3*t/ye.EB;case"hours":return 1e3*t/ye.kr;case"days":return 1e3*t/ye.x4}},convertExpiryFromUnit:function(e,t){switch(e){case"minutes":return.001*t*ye.EB;case"hours":return.001*t*ye.kr;case"days":return.001*t*ye.x4}},expiryAmountChange:function(){this.expiryAmount=Math.max(this.minExpirationInCurrentUnit,this.expiryAmount),this.expiryAmount=Math.min(this.maxExpirationInCurrentUnit,this.expiryAmount),this.updatePollToParent()},updatePollToParent:function(){var e=this.convertExpiryFromUnit(this.expiryUnit,this.expiryAmount),t=be()(this.options.filter((function(e){return""!==e})));t.length<2?this.$emit("update-poll",{error:this.$t("polls.not_enough_options")}):this.$emit("update-poll",{options:t,multiple:"multiple"===this.pollType,expiresIn:e})}}},Se=(0,re.Z)(ke,[["render",function(e,t,n,s,a,c){var l=(0,r.up)("FAIcon"),u=(0,r.up)("Select");return e.visible?((0,r.wg)(),(0,r.iD)("div",ae,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.options,(function(n,i){return(0,r.wg)(),(0,r.iD)("div",{key:i,class:"poll-option"},[(0,r._)("div",ce,[(0,r.wy)((0,r._)("input",{id:"poll-".concat(i),"onUpdate:modelValue":function(t){return e.options[i]=t},size:"1",class:"poll-option-input",type:"text",placeholder:e.$t("polls.option"),maxlength:e.maxLength,onChange:t[0]||(t[0]=function(){return e.updatePollToParent&&e.updatePollToParent.apply(e,arguments)}),onKeydown:(0,o.D2)((0,o.iM)((function(t){return e.nextOption(i)}),["stop","prevent"]),["enter"])},null,40,le),[[o.nr,e.options[i]]])]),e.options.length>2?((0,r.wg)(),(0,r.iD)("button",{key:0,class:"delete-option button-unstyled -hover-highlight",onClick:function(t){return e.deleteOption(i)}},[(0,r.Wm)(l,{icon:"times"})],8,ue)):(0,r.kq)("",!0)])})),128)),e.options.length0?s.join(" ")+" ":""}({user:this.repliedUser,attentions:this.attentions},n)}var r=this.copyMessageScope&&t||"direct"===this.copyMessageScope?this.copyMessageScope:this.$store.state.users.currentUser.default_scope,o=this.$store.getters.mergedConfig,i=o.postContentType,s=o.sensitiveByDefault,a={spoilerText:this.subject||"",status:e,nsfw:!!s,files:[],poll:{},mediaDescriptions:{},visibility:r,contentType:i};if(this.statusId){var c=this.statusContentType||i;a={spoilerText:this.subject||"",status:this.statusText||"",nsfw:this.statusIsSensitive||!!s,files:this.statusFiles||[],poll:this.statusPoll||{},mediaDescriptions:this.statusMediaDescriptions||{},visibility:this.statusScope||r,contentType:c}}return{dropFiles:[],uploadingFiles:!1,error:null,posting:!1,highlighted:0,newStatus:a,caret:0,pollFormVisible:!1,showDropIcon:"hide",dropStopTimeout:null,preview:null,previewLoading:!1,emojiInputShown:!1,idempotencyKey:""}},computed:$e($e({users:function(){return this.$store.state.users.users},userDefaultScope:function(){return this.$store.state.users.currentUser.default_scope},showAllScopes:function(){return!this.mergedConfig.minimalScopesMode},emojiUserSuggestor:function(){return(0,Ie.ZP)({emoji:[].concat((0,E.Z)(this.$store.getters.standardEmojiList),(0,E.Z)(this.$store.state.instance.customEmoji)),store:this.$store})},emojiSuggestor:function(){return(0,Ie.ZP)({emoji:[].concat((0,E.Z)(this.$store.getters.standardEmojiList),(0,E.Z)(this.$store.state.instance.customEmoji))})},emoji:function(){return this.$store.getters.standardEmojiList||[]},customEmoji:function(){return this.$store.state.instance.customEmoji||[]},statusLength:function(){return this.newStatus.status.length},spoilerTextLength:function(){return this.newStatus.spoilerText.length},statusLengthLimit:function(){return this.$store.state.instance.textlimit},hasStatusLengthLimit:function(){return this.statusLengthLimit>0},charactersLeft:function(){return this.statusLengthLimit-(this.statusLength+this.spoilerTextLength)},isOverLengthLimit:function(){return this.hasStatusLengthLimit&&this.charactersLeft<0},minimalScopesMode:function(){return this.$store.state.instance.minimalScopesMode},alwaysShowSubject:function(){return this.mergedConfig.alwaysShowSubjectInput},postFormats:function(){return this.$store.state.instance.postFormats||[]},safeDMEnabled:function(){return this.$store.state.instance.safeDM},pollsAvailable:function(){return this.$store.state.instance.pollsAvailable&&this.$store.state.instance.pollLimits.max_options>=2&&!0!==this.disablePolls},hideScopeNotice:function(){return this.disableNotice||this.$store.getters.mergedConfig.hideScopeNotice},pollContentError:function(){return this.pollFormVisible&&this.newStatus.poll&&this.newStatus.poll.error},showPreview:function(){return!this.disablePreview&&(!!this.preview||this.previewLoading)},emptyStatus:function(){return""===this.newStatus.status.trim()&&0===this.newStatus.files.length},uploadFileLimitReached:function(){return this.newStatus.files.length>=this.fileLimit},isEdit:function(){return void 0!==this.statusId&&""!==this.statusId.trim()}},(0,De.Se)(["mergedConfig"])),(0,De.rn)({mobileLayout:function(e){return e.interface.mobileLayout}})),watch:{newStatus:{deep:!0,handler:function(){this.statusChanged()}}},methods:{statusChanged:function(){this.autoPreview(),this.updateIdempotencyKey()},clearStatus:function(){var e=this,t=this.newStatus;this.newStatus={status:"",spoilerText:"",files:[],visibility:t.visibility,contentType:t.contentType,poll:{},mediaDescriptions:{}},this.pollFormVisible=!1,this.$refs.mediaUpload&&this.$refs.mediaUpload.clearFile(),this.clearPollForm(),this.preserveFocus&&this.$nextTick((function(){e.$refs.textarea.focus()}));var n=this.$el.querySelector("textarea");n.style.height="auto",n.style.height=void 0,this.error=null,this.preview&&this.previewStatus()},postStatus:function(e,t){var n=arguments,r=this;return(0,A.Z)(K().mark((function o(){var i,s;return K().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n.length>2&&void 0!==n[2]&&n[2],!r.posting||r.optimisticPosting){o.next=3;break}return o.abrupt("return");case 3:if(!r.disableSubmit){o.next=5;break}return o.abrupt("return");case 5:if(!r.emojiInputShown){o.next=7;break}return o.abrupt("return");case 7:if(r.submitOnEnter&&(e.stopPropagation(),e.preventDefault()),!r.optimisticPosting||!r.emptyStatus&&!r.isOverLengthLimit){o.next=10;break}return o.abrupt("return");case 10:if(!r.emptyStatus){o.next=13;break}return r.error=r.$t("post_status.empty_status_error"),o.abrupt("return");case 13:if(i=r.pollFormVisible?r.newStatus.poll:{},!r.pollContentError){o.next=17;break}return r.error=r.pollContentError,o.abrupt("return");case 17:return r.posting=!0,o.prev=18,o.next=21,r.setAllMediaDescriptions();case 21:o.next=28;break;case 23:return o.prev=23,o.t0=o.catch(18),r.error=r.$t("post_status.media_description_error"),r.posting=!1,o.abrupt("return");case 28:s={status:t.status,spoilerText:t.spoilerText||null,visibility:t.visibility,sensitive:t.nsfw,media:t.files,store:r.$store,inReplyToStatusId:r.replyTo,contentType:t.contentType,poll:i,idempotencyKey:r.idempotencyKey},(r.postHandler?r.postHandler:G.Z.postStatus)(s).then((function(e){e.error?r.error=e.error:(r.clearStatus(),r.$emit("posted",e)),r.posting=!1}));case 31:case"end":return o.stop()}}),o,null,[[18,23]])})))()},previewStatus:function(){var e=this;if(this.emptyStatus&&""===this.newStatus.spoilerText.trim())return this.preview={error:this.$t("post_status.preview_empty")},void(this.previewLoading=!1);var t=this.newStatus;this.previewLoading=!0,G.Z.postStatus({status:t.status,spoilerText:t.spoilerText||null,visibility:t.visibility,sensitive:t.nsfw,media:[],store:this.$store,inReplyToStatusId:this.replyTo,contentType:t.contentType,poll:{},preview:!0}).then((function(t){e.previewLoading&&(t.error?e.preview={error:t.error}:e.preview=t)})).catch((function(t){e.preview={error:t}})).finally((function(){e.previewLoading=!1}))},debouncePreviewStatus:R()((function(){this.previewStatus()}),500),autoPreview:function(){this.preview&&(this.previewLoading=!0,this.debouncePreviewStatus())},closePreview:function(){this.preview=null,this.previewLoading=!1},togglePreview:function(){this.showPreview?this.closePreview():this.previewStatus()},addMediaFile:function(e){this.newStatus.files.push(e),this.$emit("resize",{delayed:!0})},removeMediaFile:function(e){var t=this.newStatus.files.indexOf(e);this.newStatus.files.splice(t,1),this.$emit("resize")},editAttachment:function(e,t){this.newStatus.mediaDescriptions[e.id]=t},shiftUpMediaFile:function(e){var t=this.newStatus.files,n=this.newStatus.files.indexOf(e);t.splice(n,1),t.splice(n-1,0,e)},shiftDnMediaFile:function(e){var t=this.newStatus.files,n=this.newStatus.files.indexOf(e);t.splice(n,1),t.splice(n+1,0,e)},uploadFailed:function(e,t){t=t||{},this.error=this.$t("upload.error.base")+" "+this.$t("upload.error."+e,t)},startedUploadingFiles:function(){this.uploadingFiles=!0},finishedUploadingFiles:function(){this.$emit("resize"),this.uploadingFiles=!1},type:function(e){return Pe.Z.fileType(e.mimetype)},paste:function(e){this.autoPreview(),this.resize(e),e.clipboardData.files.length>0&&(e.preventDefault(),this.dropFiles=[e.clipboardData.files[0]])},fileDrop:function(e){e.dataTransfer&&e.dataTransfer.types.includes("Files")&&(e.preventDefault(),this.dropFiles=e.dataTransfer.files,clearTimeout(this.dropStopTimeout),this.showDropIcon="hide")},fileDragStop:function(e){var t=this;clearTimeout(this.dropStopTimeout),this.showDropIcon="fade",this.dropStopTimeout=setTimeout((function(){return t.showDropIcon="hide"}),500)},fileDrag:function(e){e.dataTransfer.dropEffect=this.uploadFileLimitReached?"none":"copy",e.dataTransfer&&e.dataTransfer.types.includes("Files")&&(clearTimeout(this.dropStopTimeout),this.showDropIcon="show")},onEmojiInputInput:function(e){var t=this;this.$nextTick((function(){t.resize(t.$refs.textarea)}))},resize:function(e){var t=e.target||e;if(t instanceof window.Element){if(""===t.value)return t.style.height=null,void this.$emit("resize");var n=this.$refs.form,r=this.$refs.bottom,o=window.getComputedStyle(r)["padding-bottom"],i=Ue(o),s=this.$el.closest(".column.-scrollable")||this.$el.closest(".post-form-modal-view")||window,a=window.getComputedStyle(t)["padding-top"],c=window.getComputedStyle(t)["padding-bottom"],l=Ue(a)+Ue(c),u=Ue(t.style.height),d=s===window?s.scrollY:s.scrollTop,p=s===window?s.innerHeight:s.offsetHeight,h=d+p;t.style.height="auto";var m=Math.floor(t.scrollHeight-l),f=this.maxHeight?Math.min(m,this.maxHeight):m;Math.abs(f-u)<=1&&(f=u),t.style.height="".concat(f,"px"),this.$emit("resize",f);var g=r.offsetHeight+(0,ze.y)(r,s).top+i,v=h1?((0,r.wg)(),(0,r.iD)("div",S,[(0,r.Wm)(W,{id:"post-content-type",modelValue:e.newStatus.contentType,"onUpdate:modelValue":t[15]||(t[15]=function(t){return e.newStatus.contentType=t}),class:"form-control"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.postFormats,(function(t){return(0,r.wg)(),(0,r.iD)("option",{key:t,value:t},(0,i.zw)(e.$t('post_status.content_type["'.concat(t,'"]'))),9,j)})),128))]})),_:1},8,["modelValue"])])):(0,r.kq)("",!0),1===e.postFormats.length&&"text/plain"!==e.postFormats[0]?((0,r.wg)(),(0,r.iD)("div",O,[(0,r._)("span",C,(0,i.zw)(e.$t('post_status.content_type["'.concat(e.postFormats[0],'"]'))),1)])):(0,r.kq)("",!0)]))]),e.pollsAvailable?((0,r.wg)(),(0,r.j4)(B,{key:0,ref:"pollForm",visible:e.pollFormVisible,onUpdatePoll:e.setPoll},null,8,["visible","onUpdatePoll"])):(0,r.kq)("",!0),(0,r._)("div",P,[(0,r._)("div",z,[(0,r.Wm)(H,{ref:"mediaUpload",class:"media-upload-icon","drop-files":e.dropFiles,disabled:e.uploadFileLimitReached,onUploading:e.startedUploadingFiles,onUploaded:e.addMediaFile,onUploadFailed:e.uploadFailed,onAllUploaded:e.finishedUploadingFiles},null,8,["drop-files","disabled","onUploading","onUploaded","onUploadFailed","onAllUploaded"]),(0,r._)("button",{class:"emoji-icon button-unstyled",title:e.$t("emoji.add_emoji"),onClick:t[16]||(t[16]=function(){return e.showEmojiPicker&&e.showEmojiPicker.apply(e,arguments)})},[(0,r.Wm)(R,{icon:"smile-beam"})],8,I),e.pollsAvailable?((0,r.wg)(),(0,r.iD)("button",{key:0,class:(0,i.C_)(["poll-icon button-unstyled",{selected:e.pollFormVisible}]),title:e.$t("polls.add_poll"),onClick:t[17]||(t[17]=function(){return e.togglePollForm&&e.togglePollForm.apply(e,arguments)})},[(0,r.Wm)(R,{icon:"poll-h"})],10,D)):(0,r.kq)("",!0)]),e.posting?((0,r.wg)(),(0,r.iD)("button",x,(0,i.zw)(e.$t("post_status.posting")),1)):e.isOverLengthLimit?((0,r.wg)(),(0,r.iD)("button",T,(0,i.zw)(e.$t("post_status.post")),1)):((0,r.wg)(),(0,r.iD)("button",{key:2,disabled:e.uploadingFiles||e.disableSubmit,class:"btn button-default",onTouchstart:t[18]||(t[18]=(0,o.iM)((function(t){return e.postStatus(t,e.newStatus)}),["stop","prevent"])),onClick:t[19]||(t[19]=(0,o.iM)((function(t){return e.postStatus(t,e.newStatus)}),["stop","prevent"]))},(0,i.zw)(e.$t("post_status.post")),41,$))],512),(0,r.wy)((0,r._)("div",{style:(0,i.j5)({animation:"show"===e.showDropIcon?"fade-in 0.25s":"fade-out 0.5s"}),class:"drop-indicator",onDragleave:t[20]||(t[20]=function(){return e.fileDragStop&&e.fileDragStop.apply(e,arguments)}),onDrop:t[21]||(t[21]=(0,o.iM)((function(){return e.fileDrop&&e.fileDrop.apply(e,arguments)}),["stop"]))},[(0,r.Wm)(R,{icon:e.uploadFileLimitReached?"ban":"upload"},null,8,["icon"])],36),[[o.F8,"hide"!==e.showDropIcon]]),e.error?((0,r.wg)(),(0,r.iD)("div",U,[(0,r.Uk)(" Error: "+(0,i.zw)(e.error)+" ",1),(0,r._)("button",{class:"button-unstyled",onClick:t[22]||(t[22]=function(){return e.clearError&&e.clearError.apply(e,arguments)})},[(0,r.Wm)(R,{class:"fa-scale-110 fa-old-padding",icon:"times"})])])):(0,r.kq)("",!0),e.newStatus.files&&e.newStatus.files.length>0?((0,r.wg)(),(0,r.j4)(V,{key:2,class:"attachments",grid:!0,nsfw:!1,attachments:e.newStatus.files,descriptions:e.newStatus.mediaDescriptions,"set-media":function(){return e.$store.dispatch("setMedia",e.newStatus.files)},editable:!0,"edit-attachment":e.editAttachment,"remove-attachment":e.removeMediaFile,"shift-up-attachment":e.newStatus.files.length>1&&e.shiftUpMediaFile,"shift-dn-attachment":e.newStatus.files.length>1&&e.shiftDnMediaFile,onPlay:t[23]||(t[23]=function(t){return e.$emit("mediaplay",e.attachment.id)}),onPause:t[24]||(t[24]=function(t){return e.$emit("mediapause",e.attachment.id)})},null,8,["attachments","descriptions","set-media","edit-attachment","remove-attachment","shift-up-attachment","shift-dn-attachment"])):(0,r.kq)("",!0),e.newStatus.files.length>0&&!e.disableSensitivityCheckbox?((0,r.wg)(),(0,r.iD)("div",M,[(0,r.Wm)(K,{modelValue:e.newStatus.nsfw,"onUpdate:modelValue":t[25]||(t[25]=function(t){return e.newStatus.nsfw=t})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("post_status.attachments_sensitive")),1)]})),_:1},8,["modelValue"])])):(0,r.kq)("",!0)],32)],512)}]])},99507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(66252),o=["disabled"];const i={props:{disabled:{type:Boolean},click:{type:Function,default:function(){return Promise.resolve()}}},data:function(){return{progress:!1}},methods:{onClick:function(){var e=this;this.progress=!0,this.click().then((function(){e.progress=!1}))}}},s=(0,n(83744).Z)(i,[["render",function(e,t,n,i,s,a){return(0,r.wg)(),(0,r.iD)("button",{disabled:s.progress||n.disabled,onClick:t[0]||(t[0]=function(){return a.onClick&&a.onClick.apply(a,arguments)})},[s.progress&&e.$slots.progress?(0,r.WI)(e.$slots,"progress",{key:0}):(0,r.WI)(e.$slots,"default",{key:1})],8,o)}]])},72895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(66252),o=n(3577),i={class:"remote-follow"},s=["action"],a=["value"],c=(0,r._)("input",{type:"hidden",name:"profile",value:""},null,-1),l={click:"submit",class:"button-default remote-button"};const u={props:["user"],computed:{subscribeUrl:function(){var e=new URL(this.user.statusnet_profile_url);return"".concat(e.protocol,"//").concat(e.host,"/main/ostatus")}}},d=(0,n(83744).Z)(u,[["render",function(e,t,n,u,d,p){return(0,r.wg)(),(0,r.iD)("div",i,[(0,r._)("form",{method:"POST",action:e.subscribeUrl},[(0,r._)("input",{type:"hidden",name:"nickname",value:e.user.screen_name},null,8,a),c,(0,r._)("button",l,(0,o.zw)(e.$t("user_card.remote_follow")),1)],8,s)])}]])},4078:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(66252),o=n(3577),i={key:0,class:"ScopeSelector"},s=["title"],a=["title"],c=["title"],l=["title"],u=n(9382),d=n(84131);u.vI.add(d.FU$,d.g4A,d.byT,d._1N);const p={props:["showAll","userDefault","originalScope","initialScope","onScopeChange"],data:function(){return{currentScope:this.initialScope}},computed:{showNothing:function(){return!(this.showPublic||this.showUnlisted||this.showPrivate||this.showDirect)},showPublic:function(){return"direct"!==this.originalScope&&this.shouldShow("public")},showUnlisted:function(){return"direct"!==this.originalScope&&this.shouldShow("unlisted")},showPrivate:function(){return"direct"!==this.originalScope&&this.shouldShow("private")},showDirect:function(){return this.shouldShow("direct")},css:function(){return{public:{selected:"public"===this.currentScope},unlisted:{selected:"unlisted"===this.currentScope},private:{selected:"private"===this.currentScope},direct:{selected:"direct"===this.currentScope}}}},methods:{shouldShow:function(e){return this.showAll||this.currentScope===e||this.originalScope===e||this.userDefault===e||"direct"===e},changeVis:function(e){this.currentScope=e,this.onScopeChange&&this.onScopeChange(e)}}},h=(0,n(83744).Z)(p,[["render",function(e,t,n,u,d,p){var h=(0,r.up)("FAIcon");return e.showNothing?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",i,[e.showDirect?((0,r.wg)(),(0,r.iD)("button",{key:0,class:(0,o.C_)(["button-unstyled scope",e.css.direct]),title:e.$t("post_status.scope.direct"),type:"button",onClick:t[0]||(t[0]=function(t){return e.changeVis("direct")})},[(0,r.Wm)(h,{icon:"envelope",class:"fa-scale-110 fa-old-padding"})],10,s)):(0,r.kq)("",!0),(0,r.Uk)(" "+(0,o.zw)(" ")+" "),e.showPrivate?((0,r.wg)(),(0,r.iD)("button",{key:1,class:(0,o.C_)(["button-unstyled scope",e.css.private]),title:e.$t("post_status.scope.private"),type:"button",onClick:t[1]||(t[1]=function(t){return e.changeVis("private")})},[(0,r.Wm)(h,{icon:"lock",class:"fa-scale-110 fa-old-padding"})],10,a)):(0,r.kq)("",!0),(0,r.Uk)(" "+(0,o.zw)(" ")+" "),e.showUnlisted?((0,r.wg)(),(0,r.iD)("button",{key:2,class:(0,o.C_)(["button-unstyled scope",e.css.unlisted]),title:e.$t("post_status.scope.unlisted"),type:"button",onClick:t[2]||(t[2]=function(t){return e.changeVis("unlisted")})},[(0,r.Wm)(h,{icon:"lock-open",class:"fa-scale-110 fa-old-padding"})],10,c)):(0,r.kq)("",!0),(0,r.Uk)(" "+(0,o.zw)(" ")+" "),e.showPublic?((0,r.wg)(),(0,r.iD)("button",{key:3,class:(0,o.C_)(["button-unstyled scope",e.css.public]),title:e.$t("post_status.scope.public"),type:"button",onClick:t[3]||(t[3]=function(t){return e.changeVis("public")})},[(0,r.Wm)(h,{icon:"globe",class:"fa-scale-110 fa-old-padding"})],10,l)):(0,r.kq)("",!0)]))}]])},44313:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(66252),o=n(3577),i=["disabled","value"],s=n(9382),a=n(84131);s.vI.add(a.ptq);const c={emits:["update:modelValue"],props:["modelValue","disabled","unstyled","kind"]},l=(0,n(83744).Z)(c,[["render",function(e,t,n,s,a,c){var l=(0,r.up)("FAIcon");return(0,r.wg)(),(0,r.iD)("label",{class:(0,o.C_)(["Select input",{disabled:e.disabled,unstyled:e.unstyled}])},[(0,r._)("select",{disabled:e.disabled,value:e.modelValue,onChange:t[0]||(t[0]=function(t){return e.$emit("update:modelValue",t.target.value)})},[(0,r.WI)(e.$slots,"default")],40,i),(0,r.Uk)(" "+(0,o.zw)(" ")+" "),(0,r.Wm)(l,{class:"select-down-icon",icon:"chevron-down"})],2)}]])},87482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Qt});var r=n(66252),o=n(3577),i=n(49963),s={key:0,class:"alert error"},a={key:1,class:"status-container muted"},c={class:"status-username"},l={key:0,class:"mute-thread"},u={key:1,class:"mute-thread"},d=["title"],p={key:0,class:"pin"},h={class:"faint"},m={class:"right-side faint"},f=["title"],g=["data-tags"],v={key:0,class:"left-side"},w=["href"],b={class:"right-side"},y={key:0,class:"status-heading"},_={class:"heading-name-row"},k={class:"heading-left"},S=["title"],j=["title"],O=["src"],C={class:"heading-right"},P=["title"],z=["title"],I=["title","aria-expanded"],D=["title"],x={key:0,class:"heading-reply-row"},T={key:0,class:"glued-label reply-glued-label"},$=["aria-label"],U={class:"reply-to-text"},M={key:1,class:"reply-to-no-popover"},A={class:"reply-to-text"},L={key:1,class:"glued-label"},E=["aria-label"],F={class:"mentions-text"},R={key:1,class:"heading-edited-row"},N={key:1,class:"replies"},q=["title"],Z={key:1,class:"faint"},W=["onClick"],B={key:0,class:"favs-repeated-users"},H={class:"stats"},V={class:"stat-count"},K={class:"stat-title"},G={class:"stat-number"},Y={class:"stat-count"},J={class:"stat-title"},Q={class:"stat-number"},X={class:"avatar-row"},ee={key:3,class:"status-actions"},te={key:3,class:"gravestone"},ne={class:"left-side"},re={class:"right-side"},oe={class:"deleted-text"},ie={key:4,class:"status-container reply-form"},se=n(4942),ae=n(45578),ce=n.n(ae),le=n(27955),ue=n.n(le),de={class:"ReplyButton"},pe=["title"],he=["href"],me={key:2,class:"action-counter"},fe=n(9382),ge=n(84131);fe.vI.add(ge.Lh7,ge.r8p,ge.NBC);const ve={name:"ReplyButton",props:["status","replying"],computed:{loggedIn:function(){return!!this.$store.state.users.currentUser},remoteInteractionLink:function(){return this.$store.getters.remoteInteractionLink({statusId:this.status.id})}}};var we=n(83744);const be=(0,we.Z)(ve,[["render",function(e,t,n,s,a,c){var l=(0,r.up)("FAIcon"),u=(0,r.up)("FALayers");return(0,r.wg)(),(0,r.iD)("div",de,[e.loggedIn?((0,r.wg)(),(0,r.iD)("button",{key:0,class:(0,o.C_)(["button-unstyled interactive",{"-active":e.replying}]),title:e.$t("tool_tip.reply"),onClick:t[0]||(t[0]=(0,i.iM)((function(t){return e.$emit("toggle")}),["prevent"]))},[(0,r.Wm)(u,{class:"fa-old-padding-layer"},{default:(0,r.w5)((function(){return[(0,r.Wm)(l,{class:"fa-scale-110",icon:"reply"}),e.replying?((0,r.wg)(),(0,r.j4)(l,{key:1,class:"focus-marker",transform:"shrink-6 up-8 right-11",icon:"times"})):((0,r.wg)(),(0,r.j4)(l,{key:0,class:"focus-marker",transform:"shrink-6 up-8 right-11",icon:"plus"}))]})),_:1})],10,pe)):((0,r.wg)(),(0,r.iD)("a",{key:1,class:"button-unstyled interactive",target:"_blank",role:"button",href:e.remoteInteractionLink},[(0,r.Wm)(l,{icon:"reply",class:"fa-scale-110 fa-old-padding",title:e.$t("tool_tip.reply")},null,8,["title"])],8,he)),e.status.replies_count>0?((0,r.wg)(),(0,r.iD)("span",me,(0,o.zw)(e.status.replies_count),1)):(0,r.kq)("",!0)])}]]);var ye={class:"FavoriteButton"},_e=["title"],ke=["href"],Se={key:2,class:"action-counter"},je=n(989),Oe=n(5737);function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t0?((0,r.wg)(),(0,r.iD)("span",Se,(0,o.zw)(e.status.fave_num),1)):(0,r.kq)("",!0)])}]]);var De={class:"reaction-picker-filter"},xe=["placeholder"],Te={class:"reaction-picker"},$e=["title","onClick"],Ue=(0,r._)("div",{class:"reaction-picker-divider"},null,-1),Me=["title","onClick"],Ae=(0,r._)("div",{class:"reaction-bottom-fader"},null,-1),Le=["title"],Ee=n(71002),Fe=n(93433),Re=n(92742),Ne=n.n(Re),qe=n(49874),Ze=n(8312);function We(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1})),a=s.length?Math.min.apply(Math,(0,Fe.Z)(s)):-1;a>-1&&(Array.isArray(r[a])||(r[a]=[]),r[a].push(i))}}catch(e){o.e(e)}finally{o.f()}return{v:r.flat()}}();if("object"===(0,Ee.Z)(t))return t.v}return this.$store.getters.standardEmojiList||[]},mergedConfig:function(){return this.$store.getters.mergedConfig}}},Ve=(0,we.Z)(He,[["render",function(e,t,n,s,a,c){var l=(0,r.up)("FAIcon"),u=(0,r.up)("FALayers"),d=(0,r.up)("Popover");return(0,r.wg)(),(0,r.j4)(d,{trigger:"click",class:"ReactButton",placement:"top",offset:{y:5},"bound-to":{x:"container"},"remove-padding":"","popover-class":"ReactButton popover-default",onShow:e.onShow,onClose:e.onClose},{content:(0,r.w5)((function(n){var s=n.close;return[(0,r._)("div",De,[(0,r.wy)((0,r._)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.filterWord=t}),size:"1",placeholder:e.$t("emoji.search_emoji"),onInput:t[1]||(t[1]=function(e){return e.target.composing=!1})},null,40,xe),[[i.nr,e.filterWord]])]),(0,r._)("div",Te,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.commonEmojis,(function(t){return(0,r.wg)(),(0,r.iD)("span",{key:t.replacement,class:"emoji-button",title:e.maybeLocalizedEmojiName(t),onClick:function(n){return e.addReaction(n,t.replacement,s)}},(0,o.zw)(t.replacement),9,$e)})),128)),Ue,((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.emojis,(function(t,n){return(0,r.wg)(),(0,r.iD)("span",{key:n,class:"emoji-button",title:e.maybeLocalizedEmojiName(t),onClick:function(n){return e.addReaction(n,t.replacement,s)}},(0,o.zw)(t.replacement),9,Me)})),128)),Ae])]})),trigger:(0,r.w5)((function(){return[(0,r._)("span",{class:"button-unstyled popover-trigger",title:e.$t("tool_tip.add_reaction")},[(0,r.Wm)(u,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(l,{class:"fa-scale-110 fa-old-padding",icon:["far","smile-beam"]}),(0,r.wy)((0,r.Wm)(l,{class:"focus-marker",transform:"shrink-6 up-9 right-17",icon:"plus"},null,512),[[i.F8,!e.expanded]]),(0,r.wy)((0,r.Wm)(l,{class:"focus-marker",transform:"shrink-6 up-9 right-17",icon:"times"},null,512),[[i.F8,e.expanded]])]})),_:1})],8,Le)]})),_:1},8,["onShow","onClose"])}]]);var Ke={class:"RetweetButton"},Ge=["title"],Ye={key:1},Je=["href"],Qe={key:3,class:"no-event"};fe.vI.add(ge.x5v,ge.r8p,ge.Kl4,ge.LEp);const Xe={props:["status","loggedIn","visibility"],data:function(){return{animated:!1}},methods:{retweet:function(){var e=this;this.status.repeated?this.$store.dispatch("unretweet",{id:this.status.id}):this.$store.dispatch("retweet",{id:this.status.id}),this.animated=!0,setTimeout((function(){e.animated=!1}),500)}},computed:{mergedConfig:function(){return this.$store.getters.mergedConfig},remoteInteractionLink:function(){return this.$store.getters.remoteInteractionLink({statusId:this.status.id})}}},et=(0,we.Z)(Xe,[["render",function(e,t,n,s,a,c){var l=(0,r.up)("FAIcon"),u=(0,r.up)("FALayers");return(0,r.wg)(),(0,r.iD)("div",Ke,["private"!==e.visibility&&"direct"!==e.visibility&&e.loggedIn?((0,r.wg)(),(0,r.iD)("button",{key:0,class:(0,o.C_)(["button-unstyled interactive",e.status.repeated&&"-repeated"]),title:e.$t("tool_tip.repeat"),onClick:t[0]||(t[0]=(0,i.iM)((function(t){return e.retweet()}),["prevent"]))},[(0,r.Wm)(u,{class:"fa-old-padding-layer"},{default:(0,r.w5)((function(){return[(0,r.Wm)(l,{class:"fa-scale-110",icon:"retweet",spin:e.animated},null,8,["spin"]),e.status.repeated?((0,r.wg)(),(0,r.j4)(l,{key:0,class:"active-marker",transform:"shrink-6 up-9 right-12",icon:"check"})):(0,r.kq)("",!0),e.status.repeated?((0,r.wg)(),(0,r.j4)(l,{key:2,class:"focus-marker",transform:"shrink-6 up-9 right-12",icon:"minus"})):((0,r.wg)(),(0,r.j4)(l,{key:1,class:"focus-marker",transform:"shrink-6 up-9 right-12",icon:"plus"}))]})),_:1})],10,Ge)):e.loggedIn?((0,r.wg)(),(0,r.iD)("span",Ye,[(0,r.Wm)(l,{class:"fa-scale-110 fa-old-padding",icon:"lock",title:e.$t("timeline.no_retweet_hint")},null,8,["title"])])):((0,r.wg)(),(0,r.iD)("a",{key:2,class:"button-unstyled interactive",target:"_blank",role:"button",href:e.remoteInteractionLink},[(0,r.Wm)(l,{class:"fa-scale-110 fa-old-padding",icon:"retweet",title:e.$t("tool_tip.repeat")},null,8,["title"])],8,Je)),!e.mergedConfig.hidePostStats&&e.status.repeat_num>0?((0,r.wg)(),(0,r.iD)("span",Qe,(0,o.zw)(e.status.repeat_num),1)):(0,r.kq)("",!0)])}]]);var tt={class:"dropdown-menu"},nt=["onClick"],rt=["onClick"],ot=["onClick"],it=["onClick"],st=["onClick"],at=["onClick"],ct=["onClick"],lt=["onClick"],ut=["href"],dt=["onClick"],pt={class:"button-unstyled popover-trigger"};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}fe.vI.add(ge.cNd,ge.xVw,Oe.xVw,ge.Aq,ge.RP7,ge.EfQ,ge.Xjp,Oe.RrC,ge.qO$,ge.r8p,ge.NBC);const mt={props:["status"],components:{Popover:qe.default},data:function(){return{expanded:!1}},methods:{onShow:function(){this.expanded=!0},onClose:function(){this.expanded=!1},deleteStatus:function(){window.confirm(this.$t("status.delete_confirm"))&&this.$store.dispatch("deleteStatus",{id:this.status.id})},pinStatus:function(){var e=this;this.$store.dispatch("pinStatus",this.status.id).then((function(){return e.$emit("onSuccess")})).catch((function(t){return e.$emit("onError",t.error.error)}))},unpinStatus:function(){var e=this;this.$store.dispatch("unpinStatus",this.status.id).then((function(){return e.$emit("onSuccess")})).catch((function(t){return e.$emit("onError",t.error.error)}))},muteConversation:function(){var e=this;this.$store.dispatch("muteConversation",this.status.id).then((function(){return e.$emit("onSuccess")})).catch((function(t){return e.$emit("onError",t.error.error)}))},unmuteConversation:function(){var e=this;this.$store.dispatch("unmuteConversation",this.status.id).then((function(){return e.$emit("onSuccess")})).catch((function(t){return e.$emit("onError",t.error.error)}))},copyLink:function(){var e=this;navigator.clipboard.writeText(this.statusLink).then((function(){return e.$emit("onSuccess")})).catch((function(t){return e.$emit("onError",t.error.error)}))},bookmarkStatus:function(){var e=this;this.$store.dispatch("bookmark",{id:this.status.id}).then((function(){return e.$emit("onSuccess")})).catch((function(t){return e.$emit("onError",t.error.error)}))},unbookmarkStatus:function(){var e=this;this.$store.dispatch("unbookmark",{id:this.status.id}).then((function(){return e.$emit("onSuccess")})).catch((function(t){return e.$emit("onError",t.error.error)}))},reportStatus:function(){this.$store.dispatch("openUserReportingModal",{userId:this.status.user.id,statusIds:[this.status.id]})},editStatus:function(){var e=this;this.$store.dispatch("fetchStatusSource",{id:this.status.id}).then((function(t){return e.$store.dispatch("openEditStatusModal",{statusId:e.status.id,subject:t.spoiler_text,statusText:t.text,statusIsSensitive:e.status.nsfw,statusPoll:e.status.poll,statusFiles:(0,Fe.Z)(e.status.attachments),visibility:e.status.visibility,statusContentType:t.content_type})}))},showStatusHistory:function(){var e=function(e){for(var t=1;t12},emojiReactions:function(){return this.showAll?this.status.emoji_reactions:this.status.emoji_reactions.slice(0,12)},showMoreString:function(){return"+".concat(this.status.emoji_reactions.length-12)},accountsForEmoji:function(){return this.status.emoji_reactions.reduce((function(e,t){return e[t.name]=t.accounts||[],e}),{})},loggedIn:function(){return!!this.$store.state.users.currentUser}},methods:{toggleShowAll:function(){this.showAll=!this.showAll},reactedWith:function(e){return this.status.emoji_reactions.find((function(t){return t.name===e})).me},fetchEmojiReactionsByIfMissing:function(){this.status.emoji_reactions.find((function(e){return!e.accounts}))&&this.$store.dispatch("fetchEmojiReactionsBy",this.status.id)},reactWith:function(e){this.$store.dispatch("reactWithEmoji",{id:this.status.id,emoji:e})},unreact:function(e){this.$store.dispatch("unreactWithEmoji",{id:this.status.id,emoji:e})},emojiOnClick:function(e,t){this.loggedIn&&(this.reactedWith(e)?this.unreact(e):this.reactWith(e))}}},Ft=(0,we.Z)(Et,[["render",function(e,t,n,i,s,a){var c=(0,r.up)("UserListPopover");return(0,r.wg)(),(0,r.iD)("div",Mt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.emojiReactions,(function(n){return(0,r.wg)(),(0,r.j4)(c,{key:n.name,users:e.accountsForEmoji[n.name]},{default:(0,r.w5)((function(){return[(0,r._)("button",{class:(0,o.C_)(["emoji-reaction btn button-default",{"-picked-reaction":e.reactedWith(n.name),"not-clickable":!e.loggedIn}]),onClick:function(t){return e.emojiOnClick(n.name,t)},onMouseenter:t[0]||(t[0]=function(t){return e.fetchEmojiReactionsByIfMissing()})},[(0,r._)("span",Lt,(0,o.zw)(n.name),1),(0,r._)("span",null,(0,o.zw)(n.count),1)],42,At)]})),_:2},1032,["users"])})),128)),e.tooManyReactions?((0,r.wg)(),(0,r.iD)("a",{key:0,class:"emoji-reaction-expand faint",href:"javascript:void(0)",onClick:t[1]||(t[1]=function(){return e.toggleShowAll&&e.toggleShowAll.apply(e,arguments)})},(0,o.zw)(e.showAll?e.$t("general.show_less"):e.showMoreString),1)):(0,r.kq)("",!0)])}]]);var Rt=n(12061),Nt=n(21268),qt=n(20460),Zt=n(4493),Wt=n(95052),Bt=n(67828);function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t0},muted:function(){if(this.statusoid.user.id===this.currentUser.id)return!1;var e=this.userIsMuted||status.thread_muted||this.muteWordHits.length>0||this.muteBotStatuses&&this.botStatus&&!this.compact;return!this.unmuted&&!this.shouldNotMute&&e},userIsMuted:function(){if(this.statusoid.user.id===this.currentUser.id)return!1;var e=this.status,t=e.reblog,n=this.$store.getters.relationship(e.user.id),r=t&&this.$store.getters.relationship(t.user.id);return e.muted||t&&t.muted||n.muting||r&&r.muting},shouldNotMute:function(){var e=this.status,t=e.reblog;return(this.inProfile&&(!t&&e.user.id===this.profileUserId||t&&t.user.id===this.profileUserId)||this.inConversation&&e.thread_muted)&&!this.muteWordHits.length>0},hideMutedUsers:function(){return this.mergedConfig.hideMutedPosts},hideMutedThreads:function(){return this.mergedConfig.hideMutedThreads},hideFilteredStatuses:function(){return this.mergedConfig.hideFilteredStatuses},hideWordFilteredPosts:function(){return this.mergedConfig.hideWordFilteredPosts},hideStatus:function(){return!this.shouldNotMute&&(this.muted&&this.hideFilteredStatuses||this.userIsMuted&&this.hideMutedUsers||this.status.thread_muted&&this.hideMutedThreads||this.muteWordHits.length>0&&this.hideWordFilteredPosts)},isFocused:function(){return!!this.focused||!!this.inConversation&&this.status.id===this.highlight},isReply:function(){return!(!this.status.in_reply_to_status_id||!this.status.in_reply_to_user_id)},replyToName:function(){if(this.status.in_reply_to_screen_name)return this.status.in_reply_to_screen_name;var e=this.$store.getters.findUser(this.status.in_reply_to_user_id);return e&&e.screen_name_ui},replySubject:function(){if(!this.status.summary)return"";var e=ue()(this.status.summary),t=this.mergedConfig.subjectLineBehavior,n=e.match(/^re[: ]/i);return"noop"!==t&&n||"masto"===t?e:"email"===t?"re: ".concat(e):"noop"===t?"":void 0},combinedFavsAndRepeatsUsers:function(){var e=[].concat(this.statusFromGlobalRepository.favoritedBy,this.statusFromGlobalRepository.rebloggedBy);return ce()(e,"id")},tags:function(){return this.status.tags.filter((function(e){return e.hasOwnProperty("name")})).map((function(e){return e.name})).join(" ")},hidePostStats:function(){return this.mergedConfig.hidePostStats},muteBotStatuses:function(){return this.mergedConfig.muteBotStatuses},hideBotIndication:function(){return this.mergedConfig.hideBotIndication},currentUser:function(){return this.$store.state.users.currentUser},betterShadow:function(){return this.$store.state.interface.browserSupport.cssFilter},mergedConfig:function(){return this.$store.getters.mergedConfig},isSuspendable:function(){return!this.replying&&0===this.mediaPlaying.length},inThreadForest:function(){return!!this.controlledThreadDisplayStatus},threadShowing:function(){return"showing"===this.controlledThreadDisplayStatus},visibilityLocalized:function(){return this.$i18n.t("general.scope_in_timeline."+this.status.visibility)},isEdited:function(){return null!==this.status.edited_at},editingAvailable:function(){return this.$store.state.instance.editingAvailable}}),methods:{visibilityIcon:function(e){switch(e){case"private":return"lock";case"unlisted":return"lock-open";case"direct":return"envelope";default:return"globe"}},showError:function(e){this.error=e},clearError:function(){this.error=void 0},toggleReplying:function(){var e,t,n,r;e=this,t=Gt("replying"),n="controlledToggle".concat(t),r="uncontrolled".concat(t),e[n]?e[n]():e[r]=!e[r]},gotoOriginal:function(e){this.inConversation&&this.$emit("goto",e)},toggleExpanded:function(){this.$emit("toggleExpanded")},toggleMute:function(){this.unmuted=!this.unmuted},toggleUserExpanded:function(){this.userExpanded=!this.userExpanded},generateUserProfileLink:function(e,t){return(0,Zt.Z)(e,t,this.$store.state.instance.restrictedNicknames)},addMediaPlaying:function(e){Yt(this,"mediaPlaying",this.mediaPlaying.concat(e))},removeMediaPlaying:function(e){Yt(this,"mediaPlaying",this.mediaPlaying.filter((function(t){return t!==e})))},setHeadTailLinks:function(e){this.headTailLinks=e},toggleThreadDisplay:function(){this.controlledToggleThreadDisplay()},scrollIfHighlighted:function(e){var t=e;if(this.status.id===t){var n=this.$el.getBoundingClientRect();n.top<100||n.height>=window.innerHeight-50?window.scrollBy(0,n.top-100):n.bottom>window.innerHeight-50&&window.scrollBy(0,n.bottom-window.innerHeight+50)}}},watch:{highlight:function(e){this.scrollIfHighlighted(e)},"status.repeat_num":function(e){this.isFocused&&this.statusFromGlobalRepository.rebloggedBy&&this.statusFromGlobalRepository.rebloggedBy.length!==e&&this.$store.dispatch("fetchRepeats",this.status.id)},"status.fave_num":function(e){this.isFocused&&this.statusFromGlobalRepository.favoritedBy&&this.statusFromGlobalRepository.favoritedBy.length!==e&&this.$store.dispatch("fetchFavs",this.status.id)},isSuspendable:function(e){this.suspendable=e}}},Qt=(0,we.Z)(Jt,[["render",function(e,t,n,se,ae,ce){var le=(0,r.up)("FAIcon"),ue=(0,r.up)("user-link"),de=(0,r.up)("UserAvatar"),pe=(0,r.up)("RichContent"),he=(0,r.up)("router-link"),me=(0,r.up)("UserPopover"),fe=(0,r.up)("Timeago"),ge=(0,r.up)("StatusPopover"),ve=(0,r.up)("MentionLink"),we=(0,r.up)("MentionsLine"),be=(0,r.up)("i18n-t"),ye=(0,r.up)("StatusContent"),_e=(0,r.up)("UserListPopover"),ke=(0,r.up)("AvatarList"),Se=(0,r.up)("EmojiReactions"),je=(0,r.up)("reply-button"),Oe=(0,r.up)("retweet-button"),Ce=(0,r.up)("favorite-button"),Pe=(0,r.up)("ReactButton"),ze=(0,r.up)("extra-buttons"),Ie=(0,r.up)("PostStatusForm");return e.hideStatus?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",{key:0,ref:"root",class:(0,o.C_)(["Status",[{"-focused":e.isFocused},{"-conversation":e.inlineExpanded}]])},[e.error?((0,r.wg)(),(0,r.iD)("div",s,[(0,r.Uk)((0,o.zw)(e.error)+" ",1),(0,r._)("span",{class:"fa-scale-110 fa-old-padding",onClick:t[0]||(t[0]=function(){return e.clearError&&e.clearError.apply(e,arguments)})},[(0,r.Wm)(le,{icon:"times"})])])):(0,r.kq)("",!0),e.muted&&!e.isPreview?((0,r.wg)(),(0,r.iD)("div",a,[(0,r._)("small",c,[e.muted&&e.retweet?((0,r.wg)(),(0,r.j4)(le,{key:0,class:"fa-scale-110 fa-old-padding repeat-icon",icon:"retweet"})):(0,r.kq)("",!0),(0,r.Wm)(ue,{user:e.status.user,at:!1},null,8,["user"])]),e.showReasonMutedThread?((0,r.wg)(),(0,r.iD)("small",l,(0,o.zw)(e.$t("status.thread_muted")),1)):(0,r.kq)("",!0),e.showReasonMutedThread&&e.muteWordHits.length>0?((0,r.wg)(),(0,r.iD)("small",u,(0,o.zw)(e.$t("status.thread_muted_and_words")),1)):(0,r.kq)("",!0),(0,r._)("small",{class:"mute-words",title:e.muteWordHits.join(", ")},(0,o.zw)(e.muteWordHits.join(", ")),9,d),(0,r._)("button",{class:"unmute button-unstyled",onClick:t[1]||(t[1]=(0,i.iM)((function(){return e.toggleMute&&e.toggleMute.apply(e,arguments)}),["prevent"]))},[(0,r.Wm)(le,{icon:"eye-slash",class:"fa-scale-110 fa-old-padding"})])])):((0,r.wg)(),(0,r.iD)(r.HY,{key:2},[e.showPinned?((0,r.wg)(),(0,r.iD)("div",p,[(0,r.Wm)(le,{icon:"thumbtack",class:"faint"}),(0,r._)("span",h,(0,o.zw)(e.$t("status.pinned")),1)])):(0,r.kq)("",!0),!e.retweet||e.noHeading||e.inConversation?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",{key:1,class:(0,o.C_)([[e.repeaterClass,{highlighted:e.repeaterStyle}],"status-container repeat-info"]),style:(0,o.j5)([e.repeaterStyle])},[e.retweet?((0,r.wg)(),(0,r.j4)(de,{key:0,class:"left-side repeater-avatar",bot:e.rtBotIndicator,"better-shadow":e.betterShadow,user:e.statusoid.user},null,8,["bot","better-shadow","user"])):(0,r.kq)("",!0),(0,r._)("div",m,[(0,r._)("span",{class:"status-username repeater-name",title:e.retweeter},[e.retweeterHtml?((0,r.wg)(),(0,r.j4)(he,{key:0,to:e.retweeterProfileLink},{default:(0,r.w5)((function(){return[(0,r.Wm)(pe,{html:e.retweeterHtml,emoji:e.retweeterUser.emoji},null,8,["html","emoji"])]})),_:1},8,["to"])):((0,r.wg)(),(0,r.j4)(he,{key:1,to:e.retweeterProfileLink},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,o.zw)(e.retweeter),1)]})),_:1},8,["to"]))],8,f),(0,r.Uk)(" "+(0,o.zw)(" ")+" "),(0,r.Wm)(le,{icon:"retweet",class:"repeat-icon",title:e.$t("tool_tip.repeat")},null,8,["title"]),(0,r.Uk)(" "+(0,o.zw)(e.$t("timeline.repeated")),1)])],6)),e.deleted?((0,r.wg)(),(0,r.iD)("div",te,[(0,r._)("div",ne,[(0,r.Wm)(de,{class:"post-avatar",compact:e.compact,bot:e.botIndicator},null,8,["compact","bot"])]),(0,r._)("div",re,[(0,r._)("div",oe,(0,o.zw)(e.$t("status.status_deleted")),1),e.replying?((0,r.wg)(),(0,r.j4)(je,{key:0,replying:e.replying,status:e.status,onToggle:e.toggleReplying},null,8,["replying","status","onToggle"])):(0,r.kq)("",!0)])])):((0,r.wg)(),(0,r.iD)("div",{key:2,class:(0,o.C_)([[e.userClass,{highlighted:e.userStyle,"-repeat":e.retweet&&!e.inConversation}],"status-container"]),style:(0,o.j5)([e.userStyle]),"data-tags":e.tags},[e.noHeading?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",v,[(0,r._)("a",{href:e.$router.resolve(e.userProfileLink).href,onClick:t[2]||(t[2]=(0,i.iM)((function(){}),["prevent"]))},[(0,r.Wm)(me,{"user-id":e.status.user.id,"overlay-centers":!0},{default:(0,r.w5)((function(){return[(0,r.Wm)(de,{class:"post-avatar",bot:e.botIndicator,compact:e.compact,"better-shadow":e.betterShadow,user:e.status.user},null,8,["bot","compact","better-shadow","user"])]})),_:1},8,["user-id"])],8,w)])),(0,r._)("div",b,[e.noHeading?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",y,[(0,r._)("div",_,[(0,r._)("div",k,[e.status.user.name_html?((0,r.wg)(),(0,r.iD)("h4",{key:0,class:"status-username",title:e.status.user.name},[(0,r.Wm)(pe,{html:e.status.user.name,emoji:e.status.user.emoji},null,8,["html","emoji"])],8,S)):((0,r.wg)(),(0,r.iD)("h4",{key:1,class:"status-username",title:e.status.user.name},(0,o.zw)(e.status.user.name),9,j)),(0,r.Wm)(ue,{class:"account-name",title:e.status.user.screen_name_ui,user:e.status.user,at:!1},null,8,["title","user"]),e.status.user&&e.status.user.favicon?((0,r.wg)(),(0,r.iD)("img",{key:2,class:"status-favicon",src:e.status.user.favicon},null,8,O)):(0,r.kq)("",!0)]),(0,r._)("span",C,[(0,r.Wm)(he,{class:"timeago faint-link",to:{name:"conversation",params:{id:e.status.id}}},{default:(0,r.w5)((function(){return[(0,r.Wm)(fe,{time:e.status.created_at,"auto-update":60},null,8,["time"])]})),_:1},8,["to"]),e.status.visibility?((0,r.wg)(),(0,r.iD)("span",{key:0,class:"visibility-icon",title:e.visibilityLocalized},[(0,r.Wm)(le,{"fixed-width":"",class:"fa-scale-110",icon:e.visibilityIcon(e.status.visibility)},null,8,["icon"])],8,P)):(0,r.kq)("",!0),e.expandable&&!e.isPreview?((0,r.wg)(),(0,r.iD)("button",{key:1,class:"button-unstyled",title:e.$t("status.expand"),onClick:t[3]||(t[3]=(0,i.iM)((function(){return e.toggleExpanded&&e.toggleExpanded.apply(e,arguments)}),["prevent"]))},[(0,r.Wm)(le,{"fixed-width":"",class:"fa-scale-110",icon:"plus-square"})],8,z)):(0,r.kq)("",!0),e.unmuted?((0,r.wg)(),(0,r.iD)("button",{key:2,class:"button-unstyled",onClick:t[4]||(t[4]=(0,i.iM)((function(){return e.toggleMute&&e.toggleMute.apply(e,arguments)}),["prevent"]))},[(0,r.Wm)(le,{"fixed-width":"",icon:"eye-slash",class:"fa-scale-110"})])):(0,r.kq)("",!0),e.inThreadForest&&e.replies&&e.replies.length&&!e.simpleTree?((0,r.wg)(),(0,r.iD)("button",{key:3,class:"button-unstyled",title:e.threadShowing?e.$t("status.thread_hide"):e.$t("status.thread_show"),"aria-expanded":e.threadShowing?"true":"false",onClick:t[5]||(t[5]=(0,i.iM)((function(){return e.toggleThreadDisplay&&e.toggleThreadDisplay.apply(e,arguments)}),["prevent"]))},[(0,r.Wm)(le,{"fixed-width":"",class:"fa-scale-110",icon:e.threadShowing?"chevron-up":"chevron-down"},null,8,["icon"])],8,I)):(0,r.kq)("",!0),e.dive&&!e.simpleTree?((0,r.wg)(),(0,r.iD)("button",{key:4,class:"button-unstyled",title:e.$t("status.show_only_conversation_under_this"),onClick:t[6]||(t[6]=(0,i.iM)((function(){return e.dive&&e.dive.apply(e,arguments)}),["prevent"]))},[(0,r.Wm)(le,{"fixed-width":"",class:"fa-scale-110",icon:"angle-double-right"})],8,D)):(0,r.kq)("",!0)])]),e.isReply||e.hasMentionsLine?((0,r.wg)(),(0,r.iD)("div",x,[e.isReply?((0,r.wg)(),(0,r.iD)("span",T,[e.isPreview?((0,r.wg)(),(0,r.iD)("span",M,[(0,r._)("span",A,(0,o.zw)(e.$t("status.reply_to")),1)])):((0,r.wg)(),(0,r.j4)(ge,{key:0,"status-id":e.status.parent_visible&&e.status.in_reply_to_status_id,class:(0,o.C_)(["reply-to-popover",{"-strikethrough":!e.status.parent_visible}]),style:{"min-width":"0"}},{default:(0,r.w5)((function(){return[(0,r._)("button",{class:"button-unstyled reply-to","aria-label":e.$t("tool_tip.reply"),onClick:t[7]||(t[7]=(0,i.iM)((function(t){return e.gotoOriginal(e.status.in_reply_to_status_id)}),["prevent"]))},[(0,r.Wm)(le,{class:"fa-scale-110 fa-old-padding",icon:"reply",flip:"horizontal"}),(0,r.Uk)(" "+(0,o.zw)(" ")+" "),(0,r._)("span",U,(0,o.zw)(e.$t("status.reply_to")),1)],8,$)]})),_:1},8,["status-id","class"])),(0,r.Wm)(ve,{content:e.replyToName,url:e.replyProfileLink,"user-id":e.status.in_reply_to_user_id,"user-screen-name":e.status.in_reply_to_screen_name},null,8,["content","url","user-id","user-screen-name"])])):(0,r.kq)("",!0),e.hasMentionsLine?((0,r.wg)(),(0,r.iD)("span",L,[(0,r._)("span",{class:"mentions","aria-label":e.$t("tool_tip.mentions"),onClick:t[8]||(t[8]=(0,i.iM)((function(t){return e.gotoOriginal(e.status.in_reply_to_status_id)}),["prevent"]))},[(0,r._)("span",F,(0,o.zw)(e.$t("status.mentions")),1)],8,E),e.hasMentionsLine?((0,r.wg)(),(0,r.j4)(we,{key:0,mentions:e.mentionsLine.slice(0,1),class:"mentions-line-first"},null,8,["mentions"])):(0,r.kq)("",!0)])):(0,r.kq)("",!0),(0,r.Uk)(" "+(0,o.zw)(" ")+" "),e.hasMentionsLine?((0,r.wg)(),(0,r.j4)(we,{key:2,mentions:e.mentionsLine.slice(1),class:"mentions-line"},null,8,["mentions"])):(0,r.kq)("",!0)])):(0,r.kq)("",!0),e.isEdited&&e.editingAvailable&&!e.isPreview?((0,r.wg)(),(0,r.iD)("div",R,[(0,r.Wm)(be,{keypath:"status.edited_at",tag:"span"},{time:(0,r.w5)((function(){return[(0,r.Wm)(fe,{"template-key":"time.in_past",time:e.status.edited_at,"auto-update":60,"long-format":!0},null,8,["time"])]})),_:1})])):(0,r.kq)("",!0)])),(0,r.Wm)(ye,{ref:"content",status:e.status,"no-heading":e.noHeading,highlight:e.highlight,focused:e.isFocused,"controlled-showing-tall":e.controlledShowingTall,"controlled-expanding-subject":e.controlledExpandingSubject,"controlled-showing-long-subject":e.controlledShowingLongSubject,"controlled-toggle-showing-tall":e.controlledToggleShowingTall,"controlled-toggle-expanding-subject":e.controlledToggleExpandingSubject,"controlled-toggle-showing-long-subject":e.controlledToggleShowingLongSubject,onMediaplay:t[9]||(t[9]=function(t){return e.addMediaPlaying(t)}),onMediapause:t[10]||(t[10]=function(t){return e.removeMediaPlaying(t)}),onParseReady:e.setHeadTailLinks},null,8,["status","no-heading","highlight","focused","controlled-showing-tall","controlled-expanding-subject","controlled-showing-long-subject","controlled-toggle-showing-tall","controlled-toggle-expanding-subject","controlled-toggle-showing-long-subject","onParseReady"]),e.inConversation&&!e.isPreview&&e.replies&&e.replies.length?((0,r.wg)(),(0,r.iD)("div",N,[e.showOtherRepliesAsButton&&e.replies.length>1?((0,r.wg)(),(0,r.iD)("button",{key:0,class:"button-unstyled -link faint",title:e.$tc("status.ancestor_follow",e.replies.length-1,{numReplies:e.replies.length-1}),onClick:t[11]||(t[11]=(0,i.iM)((function(){return e.dive&&e.dive.apply(e,arguments)}),["prevent"]))},(0,o.zw)(e.$tc("status.replies_list_with_others",e.replies.length-1,{numReplies:e.replies.length-1})),9,q)):((0,r.wg)(),(0,r.iD)("span",Z,(0,o.zw)(e.$t("status.replies_list")),1)),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.replies,(function(t){return(0,r.wg)(),(0,r.j4)(ge,{key:t.id,"status-id":t.id},{default:(0,r.w5)((function(){return[(0,r._)("button",{class:"button-unstyled -link reply-link",onClick:(0,i.iM)((function(n){return e.gotoOriginal(t.id)}),["prevent"])},(0,o.zw)(t.name),9,W)]})),_:2},1032,["status-id"])})),128))])):(0,r.kq)("",!0),(0,r.Wm)(i.uT,{name:"fade"},{default:(0,r.w5)((function(){return[!e.hidePostStats&&e.isFocused&&e.combinedFavsAndRepeatsUsers.length>0?((0,r.wg)(),(0,r.iD)("div",B,[(0,r._)("div",H,[e.statusFromGlobalRepository.rebloggedBy&&e.statusFromGlobalRepository.rebloggedBy.length>0?((0,r.wg)(),(0,r.j4)(_e,{key:0,users:e.statusFromGlobalRepository.rebloggedBy},{default:(0,r.w5)((function(){return[(0,r._)("div",V,[(0,r._)("a",K,(0,o.zw)(e.$t("status.repeats")),1),(0,r._)("div",G,(0,o.zw)(e.statusFromGlobalRepository.rebloggedBy.length),1)])]})),_:1},8,["users"])):(0,r.kq)("",!0),e.statusFromGlobalRepository.favoritedBy&&e.statusFromGlobalRepository.favoritedBy.length>0?((0,r.wg)(),(0,r.j4)(_e,{key:1,users:e.statusFromGlobalRepository.favoritedBy},{default:(0,r.w5)((function(){return[(0,r._)("div",Y,[(0,r._)("a",J,(0,o.zw)(e.$t("status.favorites")),1),(0,r._)("div",Q,(0,o.zw)(e.statusFromGlobalRepository.favoritedBy.length),1)])]})),_:1},8,["users"])):(0,r.kq)("",!0),(0,r._)("div",X,[(0,r.Wm)(ke,{users:e.combinedFavsAndRepeatsUsers},null,8,["users"])])])])):(0,r.kq)("",!0)]})),_:1}),!e.mergedConfig.emojiReactionsOnTimeline&&!e.isFocused||e.noHeading||e.isPreview?(0,r.kq)("",!0):((0,r.wg)(),(0,r.j4)(Se,{key:2,status:e.status},null,8,["status"])),e.noHeading||e.isPreview?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",ee,[(0,r.Wm)(je,{replying:e.replying,status:e.status,onToggle:e.toggleReplying},null,8,["replying","status","onToggle"]),(0,r.Wm)(Oe,{visibility:e.status.visibility,"logged-in":e.loggedIn,status:e.status},null,8,["visibility","logged-in","status"]),(0,r.Wm)(Ce,{"logged-in":e.loggedIn,status:e.status},null,8,["logged-in","status"]),e.loggedIn?((0,r.wg)(),(0,r.j4)(Pe,{key:0,status:e.status},null,8,["status"])):(0,r.kq)("",!0),(0,r.Wm)(ze,{status:e.status,onOnError:e.showError,onOnSuccess:e.clearError},null,8,["status","onOnError","onOnSuccess"])]))])],14,g)),e.replying?((0,r.wg)(),(0,r.iD)("div",ie,[(0,r.Wm)(Ie,{class:"reply-body","reply-to":e.status.id,attentions:e.status.attentions,"replied-user":e.status.user,"copy-message-scope":e.status.visibility,subject:e.replySubject,onPosted:e.toggleReplying},null,8,["reply-to","attentions","replied-user","copy-message-scope","subject","onPosted"])])):(0,r.kq)("",!0)],64))],2))}]])},33288:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var r=n(66252),o=n(3577),i={key:0},s={key:1},a={key:3,class:"link-preview media-body"},c=n(4942),l=n(74722),u=["title"],d={class:"option-result-label"},p={class:"result-percentage"},h=["onClick"],m=["disabled","value"],f=["disabled","value"],g={class:"option-vote"},v={class:"footer faint"},w=["disabled"],b={class:"total"},y=n(35161),_=n.n(y),k=n(84486),S=n.n(k),j=n(1840),O=n(92820);const C={name:"Poll",props:["basePoll","emoji"],components:{Timeago:j.Z,RichContent:O.Z},data:function(){return{loading:!1,choices:[]}},created:function(){this.$store.state.polls.pollsObject[this.pollId]||this.$store.dispatch("mergeOrAddPoll",this.basePoll),this.$store.dispatch("trackPoll",this.pollId)},unmounted:function(){this.$store.dispatch("untrackPoll",this.pollId)},computed:{pollId:function(){return this.basePoll.id},poll:function(){return this.$store.state.polls.pollsObject[this.pollId]||{}},options:function(){return this.poll&&this.poll.options||[]},expiresAt:function(){return this.poll&&this.poll.expires_at||0},expired:function(){return this.poll&&this.poll.expired||!1},loggedIn:function(){return this.$store.state.users.currentUser},showResults:function(){return this.poll.voted||this.expired||!this.loggedIn},totalVotesCount:function(){return this.poll.votes_count},containerClass:function(){return{loading:this.loading}},choiceIndices:function(){return this.choices.map((function(e,t){return e&&t})).filter((function(e){return"number"==typeof e}))},isDisabled:function(){var e=0===this.choiceIndices.length;return this.loading||e}},methods:{percentageForOption:function(e){return 0===this.totalVotesCount?0:Math.round(e/this.totalVotesCount*100)},resultTitle:function(e){return"".concat(e.votes_count,"/").concat(this.totalVotesCount," ").concat(this.$t("polls.votes"))},fetchPoll:function(){this.$store.dispatch("refreshPoll",{id:this.statusId,pollId:this.poll.id})},activateOption:function(e){var t=this.$el.querySelectorAll("input"),n=this.$el.querySelector('input[value="'.concat(e,'"]'));this.poll.multiple?n.checked=!n.checked:(S()(t,(function(e){e.checked=!1})),n.checked=!0),this.choices=_()(t,(function(e){return e.checked}))},optionId:function(e){return"poll".concat(this.poll.id,"-").concat(e)},vote:function(){var e=this;0!==this.choiceIndices.length&&(this.loading=!0,this.$store.dispatch("votePoll",{id:this.statusId,pollId:this.poll.id,choices:this.choiceIndices}).then((function(t){e.loading=!1})))}}};var P=n(83744);const z=(0,P.Z)(C,[["render",function(e,t,n,i,s,a){var c=(0,r.up)("RichContent"),l=(0,r.up)("Timeago"),y=(0,r.up)("i18n-t");return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["poll",e.containerClass])},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.options,(function(t,n){return(0,r.wg)(),(0,r.iD)("div",{key:n,class:"poll-option"},[e.showResults?((0,r.wg)(),(0,r.iD)("div",{key:0,title:e.resultTitle(t),class:"option-result"},[(0,r._)("div",d,[(0,r._)("span",p,(0,o.zw)(e.percentageForOption(t.votes_count))+"% ",1),(0,r.Wm)(c,{html:t.title_html,"handle-links":!1,emoji:e.emoji},null,8,["html","emoji"])]),(0,r._)("div",{class:"result-fill",style:(0,o.j5)({width:"".concat(e.percentageForOption(t.votes_count),"%")})},null,4)],8,u)):((0,r.wg)(),(0,r.iD)("div",{key:1,onClick:function(t){return e.activateOption(n)}},[e.poll.multiple?((0,r.wg)(),(0,r.iD)("input",{key:0,type:"checkbox",disabled:e.loading,value:n},null,8,m)):((0,r.wg)(),(0,r.iD)("input",{key:1,type:"radio",disabled:e.loading,value:n},null,8,f)),(0,r._)("label",g,[(0,r.Wm)(c,{html:t.title_html,"handle-links":!1,emoji:e.emoji},null,8,["html","emoji"])])],8,h))])})),128)),(0,r._)("div",v,[e.showResults?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("button",{key:0,class:"btn button-default poll-vote-button",type:"button",disabled:e.isDisabled,onClick:t[0]||(t[0]=function(){return e.vote&&e.vote.apply(e,arguments)})},(0,o.zw)(e.$t("polls.vote")),9,w)),(0,r._)("div",b,["number"==typeof e.poll.voters_count?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[(0,r.Uk)((0,o.zw)(e.$tc("polls.people_voted_count",e.poll.voters_count,{count:e.poll.voters_count}))+" ·  ",1)],64)):((0,r.wg)(),(0,r.iD)(r.HY,{key:1},[(0,r.Uk)((0,o.zw)(e.$tc("polls.votes_count",e.poll.votes_count,{count:e.poll.votes_count}))+" ·  ",1)],64))]),(0,r._)("span",null,[(0,r.Wm)(y,{scope:"global",keypath:e.expired?"polls.expired":"polls.expires_in"},{default:(0,r.w5)((function(){return[(0,r.Wm)(l,{time:e.expiresAt,"auto-update":60,"now-threshold":0},null,8,["time"])]})),_:1},8,["keypath"])])])],2)}]]);var I=n(99822),D=n(49963),x={class:"body"},T=n(58394),$=n(989),U=n(9382),M=n(84131);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}U.vI.add(M.gMD,M.Xig,M.VmB,M.nNP,M.Mm7);const L={name:"StatusContent",props:["compact","status","focused","noHeading","fullContent","singleLine","showingTall","expandingSubject","showingLongSubject","toggleShowingTall","toggleExpandingSubject","toggleShowingLongSubject"],data:function(){return{postLength:this.status.text.length,parseReadyDone:!1}},computed:function(e){for(var t=1;t20},longSubject:function(){return this.status.summary.length>240},mightHideBecauseSubject:function(){return!!this.status.summary&&this.localCollapseSubjectDefault},mightHideBecauseTall:function(){return this.tallStatus&&!(this.status.summary&&this.localCollapseSubjectDefault)},hideSubjectStatus:function(){return this.mightHideBecauseSubject&&!this.expandingSubject},hideTallStatus:function(){return this.mightHideBecauseTall&&!this.showingTall},showingMore:function(){return this.mightHideBecauseTall&&this.showingTall||this.mightHideBecauseSubject&&this.expandingSubject},attachmentTypes:function(){return this.status.attachments.map((function(e){return T.Z.fileType(e.mimetype)}))}},(0,$.Se)(["mergedConfig"])),components:{RichContent:O.Z},mounted:function(){var e=this;this.status.attentions&&this.status.attentions.forEach((function(t){var n=t.id;e.$store.dispatch("fetchUserIfMissing",n)}))},methods:{onParseReady:function(e){var t=this;if(!this.parseReadyDone){this.parseReadyDone=!0,this.$emit("parseReady",e);var n=e.writtenMentions,r=e.invisibleMentions;n.filter((function(e){return!e.notifying})).forEach((function(e){var n=e.content,r=e.url,o=n.replace(/<[^>]+?>/gi,"");if(o.startsWith("@")){var i=o.slice(1),s=r.replace(/^https?:\/\//,"").replace(/\/.+?$/,"");t.$store.dispatch("fetchUserIfMissing","".concat(i,"@").concat(s))}})),this.postLength=r.reduce((function(e,t){return e-t.textContent.length-1}),this.postLength)}},toggleShowMore:function(){this.mightHideBecauseTall?this.toggleShowingTall():this.mightHideBecauseSubject&&this.toggleExpandingSubject()},generateTagLink:function(e){return"/tag/".concat(e)}}},E=(0,P.Z)(L,[["render",function(e,t,n,i,s,a){var c=(0,r.up)("RichContent"),l=(0,r.up)("FAIcon");return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["StatusBody",{"-compact":e.compact}])},[(0,r._)("div",x,[e.status.summary_raw_html?((0,r.wg)(),(0,r.iD)("div",{key:0,class:(0,o.C_)(["summary-wrapper",{"-tall":e.longSubject&&!e.showingLongSubject}])},[(0,r.Wm)(c,{class:"media-body summary",html:e.status.summary_raw_html,emoji:e.status.emojis},null,8,["html","emoji"]),(0,r.wy)((0,r._)("button",{class:"button-unstyled -link tall-subject-hider",onClick:t[0]||(t[0]=(0,D.iM)((function(){return e.toggleShowingLongSubject&&e.toggleShowingLongSubject.apply(e,arguments)}),["prevent"]))},(0,o.zw)(e.$t("status.hide_full_subject")),513),[[D.F8,e.longSubject&&e.showingLongSubject]]),(0,r.wy)((0,r._)("button",{class:"button-unstyled -link tall-subject-hider",onClick:t[1]||(t[1]=(0,D.iM)((function(){return e.toggleShowingLongSubject&&e.toggleShowingLongSubject.apply(e,arguments)}),["prevent"]))},(0,o.zw)(e.$t("status.show_full_subject")),513),[[D.F8,e.longSubject&&!e.showingLongSubject]])],2)):(0,r.kq)("",!0),(0,r._)("div",{class:(0,o.C_)([{"-tall-status":e.hideTallStatus},"text-wrapper"])},[(0,r.wy)((0,r._)("button",{class:(0,o.C_)(["button-unstyled -link tall-status-hider",{"-focused":e.focused}]),onClick:t[2]||(t[2]=(0,D.iM)((function(){return e.toggleShowMore&&e.toggleShowMore.apply(e,arguments)}),["prevent"]))},(0,o.zw)(e.$t("general.show_more")),3),[[D.F8,e.hideTallStatus]]),e.hideSubjectStatus||e.singleLine&&e.status.summary_raw_html?(0,r.kq)("",!0):((0,r.wg)(),(0,r.j4)(c,{key:0,class:(0,o.C_)([{"-single-line":e.singleLine},"text media-body"]),html:e.status.raw_html,emoji:e.status.emojis,"handle-links":!0,greentext:e.mergedConfig.greentext,attentions:e.status.attentions,onParseReady:e.onParseReady},null,8,["class","html","emoji","greentext","attentions","onParseReady"])),(0,r.wy)((0,r._)("button",{class:"button-unstyled -link cw-status-hider",onClick:t[3]||(t[3]=(0,D.iM)((function(){return e.toggleShowMore&&e.toggleShowMore.apply(e,arguments)}),["prevent"]))},[(0,r.Uk)((0,o.zw)(e.$t("status.show_content"))+" ",1),e.attachmentTypes.includes("image")?((0,r.wg)(),(0,r.j4)(l,{key:0,icon:"image"})):(0,r.kq)("",!0),e.attachmentTypes.includes("video")?((0,r.wg)(),(0,r.j4)(l,{key:1,icon:"video"})):(0,r.kq)("",!0),e.attachmentTypes.includes("audio")?((0,r.wg)(),(0,r.j4)(l,{key:2,icon:"music"})):(0,r.kq)("",!0),e.attachmentTypes.includes("unknown")?((0,r.wg)(),(0,r.j4)(l,{key:3,icon:"file"})):(0,r.kq)("",!0),e.status.poll&&e.status.poll.options?((0,r.wg)(),(0,r.j4)(l,{key:4,icon:"poll-h"})):(0,r.kq)("",!0),e.status.card?((0,r.wg)(),(0,r.j4)(l,{key:5,icon:"link"})):(0,r.kq)("",!0)],512),[[D.F8,e.hideSubjectStatus]]),(0,r.wy)((0,r._)("button",{class:"button-unstyled -link status-unhider",onClick:t[4]||(t[4]=(0,D.iM)((function(){return e.toggleShowMore&&e.toggleShowMore.apply(e,arguments)}),["prevent"]))},(0,o.zw)(e.tallStatus?e.$t("general.show_less"):e.$t("status.hide_content")),513),[[D.F8,e.showingMore&&!e.fullContent]])],2)]),e.hideSubjectStatus?(0,r.kq)("",!0):(0,r.WI)(e.$slots,"default",{key:0})],2)}]]);var F=n(87887);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;tthis.maxThumbnails?"hide":"normal"},maxThumbnails:function(){return this.mergedConfig.maxThumbnails}},(0,$.Se)(["mergedConfig"])),(0,$.rn)({currentUser:function(e){return e.users.currentUser}})),components:{Attachment:l.Z,Poll:z,Gallery:I.Z,LinkPreview:F.Z,StatusBody:E},methods:{toggleShowingTall:function(){W(this,"showingTall")},toggleExpandingSubject:function(){W(this,"expandingSubject")},toggleShowingLongSubject:function(){W(this,"showingLongSubject")},setMedia:function(){var e=this,t="hide"===this.attachmentSize?this.status.attachments:this.galleryAttachments;return function(){return e.$store.dispatch("setMedia",t)}}}},H=(0,P.Z)(B,[["render",function(e,t,n,c,l,u){var d=(0,r.up)("Poll"),p=(0,r.up)("FAIcon"),h=(0,r.up)("gallery"),m=(0,r.up)("link-preview"),f=(0,r.up)("StatusBody");return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["StatusContent",{"-compact":e.compact}])},[(0,r.WI)(e.$slots,"header"),(0,r.Wm)(f,{status:e.status,compact:e.compact,"single-line":e.singleLine,"showing-tall":e.showingTall,"expanding-subject":e.expandingSubject,"showing-long-subject":e.showingLongSubject,"toggle-showing-tall":e.toggleShowingTall,"toggle-expanding-subject":e.toggleExpandingSubject,"toggle-showing-long-subject":e.toggleShowingLongSubject,onParseReady:t[2]||(t[2]=function(t){return e.$emit("parseReady",t)})},{default:(0,r.w5)((function(){return[e.status.poll&&e.status.poll.options&&!e.compact?((0,r.wg)(),(0,r.iD)("div",i,[(0,r.Wm)(d,{"base-poll":e.status.poll,emoji:e.status.emojis},null,8,["base-poll","emoji"])])):e.status.poll&&e.status.poll.options&&e.compact?((0,r.wg)(),(0,r.iD)("div",s,[(0,r.Wm)(p,{icon:"poll-h",size:"2x"})])):(0,r.kq)("",!0),0!==e.status.attachments.length?((0,r.wg)(),(0,r.j4)(h,{key:2,class:"attachments media-body",nsfw:e.nsfwClickthrough,attachments:e.status.attachments,limit:e.compact?1:0,size:e.attachmentSize,onPlay:t[0]||(t[0]=function(t){return e.$emit("mediaplay",e.attachment.id)}),onPause:t[1]||(t[1]=function(t){return e.$emit("mediapause",e.attachment.id)})},null,8,["nsfw","attachments","limit","size"])):(0,r.kq)("",!0),!e.status.card||e.noHeading||e.compact?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("div",a,[(0,r.Wm)(m,{card:e.status.card,size:e.attachmentSize,nsfw:e.nsfwClickthrough},null,8,["card","size","nsfw"])]))]})),_:1},8,["status","compact","single-line","showing-tall","expanding-subject","showing-long-subject","toggle-showing-tall","toggle-expanding-subject","toggle-showing-long-subject"]),(0,r.WI)(e.$slots,"footer")],2)}]])},19236:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(66252),o=n(3577),i={key:0,ref:"canvas"},s=["alt","title","data-src","src","referrerpolicy"];const a={props:["src","referrerpolicy","mimetype","imageLoadError","imageLoadHandler","alt","height","width","dataSrc"],data:function(){return{realSrc:this.src,stopGifs:this.$store.getters.mergedConfig.stopGifs}},computed:{animated:function(){return!!this.realSrc&&this.stopGifs&&("image/gif"===this.mimetype||this.realSrc.endsWith(".gif"))},style:function(){var e=function(e){return/\d$/.test(e)?e+"px":e};return{height:this.height?e(this.height):null,width:this.width?e(this.width):null}}},methods:{loadLazy:function(){this.dataSrc&&(this.realSrc=this.dataSrc)},onLoad:function(){if(this.realSrc){var e=this.$refs.src;if(e){this.imageLoadHandler&&this.imageLoadHandler(e);var t=this.$refs.canvas;if(t){var n=e.naturalWidth,r=e.naturalHeight;t.width=n,t.height=r,t.getContext("2d").drawImage(e,0,0,n,r)}}}},onError:function(){this.imageLoadError&&this.imageLoadError()}},watch:{src:function(){this.realSrc=this.src},dataSrc:function(){this.$el.removeAttribute("data-loaded")}}},c=(0,n(83744).Z)(a,[["render",function(e,t,n,a,c,l){return(0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)(["still-image",{animated:e.animated}]),style:(0,o.j5)(e.style)},[e.animated?((0,r.wg)(),(0,r.iD)("canvas",i,null,512)):(0,r.kq)("",!0),((0,r.wg)(),(0,r.iD)("img",{ref:"src",key:e.realSrc,alt:e.alt,title:e.alt,"data-src":e.dataSrc,src:e.realSrc,referrerpolicy:e.referrerpolicy,onLoad:t[0]||(t[0]=function(){return e.onLoad&&e.onLoad.apply(e,arguments)}),onError:t[1]||(t[1]=function(){return e.onError&&e.onError.apply(e,arguments)})},null,40,s)),(0,r.WI)(e.$slots,"default")],6)}]])},1840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(66252),o=n(3577),i=["datetime","title"],s=n(27483),a=n(39776);const c={name:"Timeago",props:["time","autoUpdate","longFormat","nowThreshold","templateKey"],data:function(){return{relativeTime:{key:"time.now",num:0},interval:null}},computed:{localeDateString:function(){var e=a.Z.internalToBrowserLocale(this.$i18n.locale);return"string"==typeof this.time?new Date(Date.parse(this.time)).toLocaleString(e):this.time.toLocaleString(e)},relativeTimeString:function(){var e=this.$i18n.tc(this.relativeTime.key,this.relativeTime.num,[this.relativeTime.num]);return"string"==typeof this.templateKey&&"time.now"!==this.relativeTime.key?this.$i18n.t(this.templateKey,[e]):e}},watch:{time:function(e,t){t!==e&&(clearTimeout(this.interval),this.refreshRelativeTimeObject())}},created:function(){this.refreshRelativeTimeObject()},unmounted:function(){clearTimeout(this.interval)},methods:{refreshRelativeTimeObject:function(){var e="number"==typeof this.nowThreshold?this.nowThreshold:1;this.relativeTime=this.longFormat?s.GV(this.time,e):s._F(this.time,e),this.autoUpdate&&(this.interval=setTimeout(this.refreshRelativeTimeObject,1e3*this.autoUpdate))}}},l=(0,n(83744).Z)(c,[["render",function(e,t,n,s,a,c){return(0,r.wg)(),(0,r.iD)("time",{datetime:n.time,title:c.localeDateString},(0,o.zw)(c.relativeTimeString),9,i)}]])},42262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(66252),o=n(9382),i=n(84131);o.vI.add(i.dT$);const s={props:{user:Object}},a=(0,n(83744).Z)(s,[["render",function(e,t,n,o,i,s){var a=(0,r.up)("FAIcon");return e.user&&e.user.screen_name_ui_contains_non_ascii?((0,r.wg)(),(0,r.j4)(a,{key:0,icon:"code",title:e.$t("unicode_domain_indicator.tooltip")},null,8,["title"])):(0,r.kq)("",!0)}]])},62312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(66252),o=n(3577),i=n(19236),s=n(9382),a=n(84131);s.vI.add(a.VE0);const c={props:["user","betterShadow","compact","bot"],data:function(){return{showPlaceholder:!1,defaultAvatar:"".concat(this.$store.state.instance.server+this.$store.state.instance.defaultAvatar)}},components:{StillImage:i.Z},methods:{imgSrc:function(e){return!e||this.showPlaceholder?this.defaultAvatar:e},imageLoadError:function(){this.showPlaceholder=!0}}},l=(0,n(83744).Z)(c,[["render",function(e,t,n,i,s,a){var c=(0,r.up)("StillImage"),l=(0,r.up)("FAIcon");return(0,r.wg)(),(0,r.iD)("span",{class:(0,o.C_)(["Avatar",{"-compact":e.compact}])},[e.user?((0,r.wg)(),(0,r.j4)(c,{key:0,class:(0,o.C_)(["avatar",{"-compact":e.compact,"-better-shadow":e.betterShadow}]),alt:e.user.screen_name_ui,title:e.user.screen_name_ui,src:e.imgSrc(e.user.profile_image_url_original),"image-load-error":e.imageLoadError},null,8,["alt","title","src","image-load-error","class"])):((0,r.wg)(),(0,r.iD)("div",{key:1,class:(0,o.C_)(["avatar -placeholder",{"-compact":e.compact}])},null,2)),e.bot?((0,r.wg)(),(0,r.j4)(l,{key:2,icon:"robot",class:"bot-indicator"})):(0,r.kq)("",!0)],2)}]])},27073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ue});var r=n(66252),o=n(3577),i=n(49963),s={class:"user-info"},a={class:"container"},c={class:"user-info-avatar -link -overlay"},l={class:"user-summary"},u={class:"top-line"},d=["href"],p={class:"bottom-line"},h={key:0,class:"alert user-role"},m={key:1,class:"alert user-role"},f={key:2,class:"alert user-role"},g={key:1},v={key:2,class:"dailyAvg"},w={class:"user-meta"},b={key:0,class:"following"},y={key:1,class:"highlighter"},_=["id"],k=["id"],S={value:"disabled"},j={value:"solid"},O={value:"striped"},C={value:"side"},P={key:0,class:"user-interactions"},z={class:"btn-group"},I=["disabled"],D=["disabled"],x=["disabled"],T={key:1,class:"user-interactions"},$={key:0,class:"panel-body"},U={key:0,class:"user-counts"},M=(0,r._)("br",null,null,-1),A=n(4942),L=n(62312),E=n(72895),F=n(99507),R=n(13046),N={class:"dropdown-menu"},q={key:0},Z={key:0,role:"separator",class:"dropdown-divider"},W={key:3,role:"separator",class:"dropdown-divider"},B={key:4},H=n(9382),V=n(84131),K={class:"panel-heading dialog-modal-heading"},G={class:"title"},Y={class:"dialog-modal-content"},J={class:"dialog-modal-footer user-interactions panel-footer"};const Q={props:{darkOverlay:{default:!0,type:Boolean},onCancel:{default:function(){},type:Function}}};var X=n(83744);const ee=(0,X.Z)(Q,[["render",function(e,t,n,s,a,c){return(0,r.wg)(),(0,r.iD)("span",{class:(0,o.C_)({"dark-overlay":e.darkOverlay}),onClick:t[1]||(t[1]=(0,i.iM)((function(t){return e.onCancel()}),["self","stop"]))},[(0,r._)("div",{class:"dialog-modal panel panel-default",onClick:t[0]||(t[0]=(0,i.iM)((function(){}),["stop"]))},[(0,r._)("div",K,[(0,r._)("div",G,[(0,r.WI)(e.$slots,"header")])]),(0,r._)("div",Y,[(0,r.WI)(e.$slots,"default")]),(0,r._)("div",J,[(0,r.WI)(e.$slots,"footer")])])],2)}]]);var te=n(49874);H.vI.add(V.ptq);const ne={props:["user"],data:function(){return{tags:{FORCE_NSFW:"mrf_tag:media-force-nsfw",STRIP_MEDIA:"mrf_tag:media-strip",FORCE_UNLISTED:"mrf_tag:force-unlisted",DISABLE_REMOTE_SUBSCRIPTION:"mrf_tag:disable-remote-subscription",DISABLE_ANY_SUBSCRIPTION:"mrf_tag:disable-any-subscription",SANDBOX:"mrf_tag:sandbox",QUARANTINE:"mrf_tag:quarantine"},showDeleteUserDialog:!1,toggled:!1}},components:{DialogModal:ee,Popover:te.default},computed:{tagsSet:function(){return new Set(this.user.tags)},canGrantRole:function(){return this.user.is_local&&!this.user.deactivated&&"admin"===this.$store.state.users.currentUser.role},canChangeActivationState:function(){return this.privileged("users_manage_activation_state")},canDeleteAccount:function(){return this.privileged("users_delete")},canUseTagPolicy:function(){return this.$store.state.instance.tagPolicyAvailable&&this.privileged("users_manage_tags")}},methods:{hasTag:function(e){return this.tagsSet.has(e)},privileged:function(e){return this.$store.state.users.currentUser.privileges.includes(e)},toggleTag:function(e){var t=this,n=this.$store;this.tagsSet.has(e)?n.state.api.backendInteractor.untagUser({user:this.user,tag:e}).then((function(r){r.ok&&n.commit("untagUser",{user:t.user,tag:e})})):n.state.api.backendInteractor.tagUser({user:this.user,tag:e}).then((function(r){r.ok&&n.commit("tagUser",{user:t.user,tag:e})}))},toggleRight:function(e){var t=this,n=this.$store;this.user.rights[e]?n.state.api.backendInteractor.deleteRight({user:this.user,right:e}).then((function(r){r.ok&&n.commit("updateRight",{user:t.user,right:e,value:!1})})):n.state.api.backendInteractor.addRight({user:this.user,right:e}).then((function(r){r.ok&&n.commit("updateRight",{user:t.user,right:e,value:!0})}))},toggleActivationStatus:function(){this.$store.dispatch("toggleActivationStatus",{user:this.user})},deleteUserDialog:function(e){this.showDeleteUserDialog=e},deleteUser:function(){var e=this,t=this.$store,n=this.user,r=n.id,o=n.name;t.state.api.backendInteractor.deleteUser({user:n}).then((function(t){e.$store.dispatch("markStatusesAsDeleted",(function(e){return n.id===e.user.id}));var i="external-user-profile"===e.$route.name||"user-profile"===e.$route.name,s=e.$route.params.name===o||e.$route.params.id===r;i&&s&&window.history.back()}))},setToggled:function(e){this.toggled=e}}},re=(0,X.Z)(ne,[["render",function(e,t,n,i,s,a){var c=(0,r.up)("FAIcon"),l=(0,r.up)("Popover"),u=(0,r.up)("DialogModal");return(0,r.wg)(),(0,r.iD)("div",null,[(0,r.Wm)(l,{trigger:"click",class:"moderation-tools-popover",placement:"bottom",offset:{y:5},onShow:t[11]||(t[11]=function(t){return e.setToggled(!0)}),onClose:t[12]||(t[12]=function(t){return e.setToggled(!1)})},{content:(0,r.w5)((function(){return[(0,r._)("div",N,[e.canGrantRole?((0,r.wg)(),(0,r.iD)("span",q,[(0,r._)("button",{class:"button-default dropdown-item",onClick:t[0]||(t[0]=function(t){return e.toggleRight("admin")})},(0,o.zw)(e.$t(e.user.rights.admin?"user_card.admin_menu.revoke_admin":"user_card.admin_menu.grant_admin")),1),(0,r._)("button",{class:"button-default dropdown-item",onClick:t[1]||(t[1]=function(t){return e.toggleRight("moderator")})},(0,o.zw)(e.$t(e.user.rights.moderator?"user_card.admin_menu.revoke_moderator":"user_card.admin_menu.grant_moderator")),1),e.canChangeActivationState||e.canDeleteAccount?((0,r.wg)(),(0,r.iD)("div",Z)):(0,r.kq)("",!0)])):(0,r.kq)("",!0),e.canChangeActivationState?((0,r.wg)(),(0,r.iD)("button",{key:1,class:"button-default dropdown-item",onClick:t[2]||(t[2]=function(t){return e.toggleActivationStatus()})},(0,o.zw)(e.$t(e.user.deactivated?"user_card.admin_menu.activate_account":"user_card.admin_menu.deactivate_account")),1)):(0,r.kq)("",!0),e.canDeleteAccount?((0,r.wg)(),(0,r.iD)("button",{key:2,class:"button-default dropdown-item",onClick:t[3]||(t[3]=function(t){return e.deleteUserDialog(!0)})},(0,o.zw)(e.$t("user_card.admin_menu.delete_account")),1)):(0,r.kq)("",!0),e.canUseTagPolicy?((0,r.wg)(),(0,r.iD)("div",W)):(0,r.kq)("",!0),e.canUseTagPolicy?((0,r.wg)(),(0,r.iD)("span",B,[(0,r._)("button",{class:"button-default dropdown-item",onClick:t[4]||(t[4]=function(t){return e.toggleTag(e.tags.FORCE_NSFW)})},[(0,r._)("span",{class:(0,o.C_)(["menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.FORCE_NSFW)}])},null,2),(0,r.Uk)(" "+(0,o.zw)(e.$t("user_card.admin_menu.force_nsfw")),1)]),(0,r._)("button",{class:"button-default dropdown-item",onClick:t[5]||(t[5]=function(t){return e.toggleTag(e.tags.STRIP_MEDIA)})},[(0,r._)("span",{class:(0,o.C_)(["menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.STRIP_MEDIA)}])},null,2),(0,r.Uk)(" "+(0,o.zw)(e.$t("user_card.admin_menu.strip_media")),1)]),(0,r._)("button",{class:"button-default dropdown-item",onClick:t[6]||(t[6]=function(t){return e.toggleTag(e.tags.FORCE_UNLISTED)})},[(0,r._)("span",{class:(0,o.C_)(["menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.FORCE_UNLISTED)}])},null,2),(0,r.Uk)(" "+(0,o.zw)(e.$t("user_card.admin_menu.force_unlisted")),1)]),(0,r._)("button",{class:"button-default dropdown-item",onClick:t[7]||(t[7]=function(t){return e.toggleTag(e.tags.SANDBOX)})},[(0,r._)("span",{class:(0,o.C_)(["menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.SANDBOX)}])},null,2),(0,r.Uk)(" "+(0,o.zw)(e.$t("user_card.admin_menu.sandbox")),1)]),e.user.is_local?((0,r.wg)(),(0,r.iD)("button",{key:0,class:"button-default dropdown-item",onClick:t[8]||(t[8]=function(t){return e.toggleTag(e.tags.DISABLE_REMOTE_SUBSCRIPTION)})},[(0,r._)("span",{class:(0,o.C_)(["menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.DISABLE_REMOTE_SUBSCRIPTION)}])},null,2),(0,r.Uk)(" "+(0,o.zw)(e.$t("user_card.admin_menu.disable_remote_subscription")),1)])):(0,r.kq)("",!0),e.user.is_local?((0,r.wg)(),(0,r.iD)("button",{key:1,class:"button-default dropdown-item",onClick:t[9]||(t[9]=function(t){return e.toggleTag(e.tags.DISABLE_ANY_SUBSCRIPTION)})},[(0,r._)("span",{class:(0,o.C_)(["menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.DISABLE_ANY_SUBSCRIPTION)}])},null,2),(0,r.Uk)(" "+(0,o.zw)(e.$t("user_card.admin_menu.disable_any_subscription")),1)])):(0,r.kq)("",!0),e.user.is_local?((0,r.wg)(),(0,r.iD)("button",{key:2,class:"button-default dropdown-item",onClick:t[10]||(t[10]=function(t){return e.toggleTag(e.tags.QUARANTINE)})},[(0,r._)("span",{class:(0,o.C_)(["menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.QUARANTINE)}])},null,2),(0,r.Uk)(" "+(0,o.zw)(e.$t("user_card.admin_menu.quarantine")),1)])):(0,r.kq)("",!0)])):(0,r.kq)("",!0)])]})),trigger:(0,r.w5)((function(){return[(0,r._)("button",{class:(0,o.C_)(["btn button-default btn-block moderation-tools-button",{toggled:e.toggled}])},[(0,r.Uk)((0,o.zw)(e.$t("user_card.admin_menu.moderation"))+" ",1),(0,r.Wm)(c,{icon:"chevron-down"})],2)]})),_:1}),((0,r.wg)(),(0,r.j4)(r.lR,{to:"#modal"},[e.showDeleteUserDialog?((0,r.wg)(),(0,r.j4)(u,{key:0,"on-cancel":e.deleteUserDialog.bind(this,!1)},{header:(0,r.w5)((function(){return[(0,r.Uk)((0,o.zw)(e.$t("user_card.admin_menu.delete_user")),1)]})),footer:(0,r.w5)((function(){return[(0,r._)("button",{class:"btn button-default",onClick:t[13]||(t[13]=function(t){return e.deleteUserDialog(!1)})},(0,o.zw)(e.$t("general.cancel")),1),(0,r._)("button",{class:"btn button-default danger",onClick:t[14]||(t[14]=function(t){return e.deleteUser()})},(0,o.zw)(e.$t("user_card.admin_menu.delete_user")),1)]})),default:(0,r.w5)((function(){return[(0,r._)("p",null,(0,o.zw)(e.$t("user_card.admin_menu.delete_user_confirmation")),1)]})),_:1},8,["on-cancel"])):(0,r.kq)("",!0)]))])}]]);var oe={class:"AccountActions"},ie={class:"dropdown-menu"},se=(0,r._)("div",{role:"separator",class:"dropdown-divider"},null,-1),ae={class:"button-unstyled ellipsis-button"},ce=n(989),le={class:"UserListMenu"},ue={class:"dropdown-menu"},de=["onClick"],pe={class:"btn button-default dropdown-item -has-submenu"};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>c});var r=n(66252),o=n(3577),i=n(42262),s=n(4493);const a={props:{user:Object,at:{type:Boolean,default:!0}},components:{UnicodeDomainIndicator:i.Z},methods:{userProfileLink:function(e){return(0,s.Z)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},c=(0,n(83744).Z)(a,[["render",function(e,t,n,i,s,a){var c=(0,r.up)("UnicodeDomainIndicator"),l=(0,r.up)("router-link");return(0,r.wg)(),(0,r.j4)(l,{title:e.user.screen_name_ui,to:e.userProfileLink(e.user)},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,o.zw)(e.at?"@":"")+(0,o.zw)(e.user.screen_name_ui),1),(0,r.Wm)(c,{user:e.user},null,8,["user"])]})),_:1},8,["title","to"])}]])},78873:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(66252);const o={name:"UserPopover",props:["userId","overlayCenters","disabled","overlayCentersSelector"],components:{UserCard:n(27073).Z,Popover:(0,r.RC)((function(){return Promise.resolve().then(n.bind(n,49874))}))},computed:{userPopoverAvatarAction:function(){return this.$store.getters.mergedConfig.userPopoverAvatarAction},userPopoverOverlay:function(){return this.$store.getters.mergedConfig.userPopoverOverlay}}},i=(0,n(83744).Z)(o,[["render",function(e,t,n,o,i,s){var a=(0,r.up)("UserCard"),c=(0,r.up)("Popover");return(0,r.wg)(),(0,r.j4)(c,{trigger:"click","popover-class":"popover-default user-popover","overlay-centers-selector":e.overlayCentersSelector||".user-info .Avatar","overlay-centers":e.overlayCenters&&e.userPopoverOverlay,disabled:e.disabled},{trigger:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"default")]})),content:(0,r.w5)((function(t){var n=t.close;return[(0,r.Wm)(a,{class:"user-popover","user-id":e.userId,"hide-bio":!0,"avatar-action":"close"==e.userPopoverAvatarAction?n:e.userPopoverAvatarAction,"on-close":n},null,8,["user-id","avatar-action","on-close"])]})),_:3},8,["overlay-centers-selector","overlay-centers","disabled"])}]])},34133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(66252),o=["src","loop","controls","alt","title"];const i={props:["attachment","controls"],data:function(){return{blocksSuspend:!1,hasAudio:!0}},computed:{loopVideo:function(){return this.$store.getters.mergedConfig.loopVideoSilentOnly?!this.hasAudio:this.$store.getters.mergedConfig.loopVideo}},methods:{onPlaying:function(e){this.setHasAudio(e),this.loopVideo?this.$emit("play",{looping:!0}):this.$emit("play")},onPaused:function(e){this.$emit("pause")},setHasAudio:function(e){var t=e.srcElement||e.target;this.hasAudio&&(void 0!==t.webkitAudioDecodedByteCount&&t.webkitAudioDecodedByteCount>0||void 0!==t.mozHasAudio&&t.mozHasAudio||void 0!==t.audioTracks&&t.audioTracks.length>0||(this.hasAudio=!1))}}},s=(0,n(83744).Z)(i,[["render",function(e,t,n,i,s,a){return(0,r.wg)(),(0,r.iD)("video",{class:"video",preload:"metadata",src:e.attachment.url,loop:e.loopVideo,controls:e.controls,alt:e.attachment.description,title:e.attachment.description,playsinline:"",onPlaying:t[0]||(t[0]=function(){return e.onPlaying&&e.onPlaying.apply(e,arguments)}),onPause:t[1]||(t[1]=function(){return e.onPaused&&e.onPaused.apply(e,arguments)})},null,40,o)}]])},27650:(e,t,n)=>{var r={"./ar.json":[36224,7808],"./ca.json":[49394,6234],"./cs.json":[87436,7433],"./de.json":[25195,9459],"./en.json":[88797],"./eo.json":[97898,4646],"./es.json":[98559,3968],"./et.json":[13230,4451],"./eu.json":[84826,4542],"./fa.json":[52006,2953],"./fi.json":[70823,9738],"./fr.json":[61341,3746],"./ga.json":[41647,830],"./he.json":[92215,379],"./hu.json":[95028,5494],"./id.json":[62263,2513],"./it.json":[2533,1159],"./ja_easy.json":[8439,8714],"./ja_pedantic.json":[22838,325],"./ko.json":[10707,9670],"./nb.json":[72358,7845],"./nl.json":[49922,6256],"./oc.json":[47297,617],"./pl.json":[82098,5571],"./pt.json":[94465,4047],"./ro.json":[64367,6342],"./ru.json":[73289,5964],"./sk.json":[31478,1547],"./te.json":[32781,2044],"./uk.json":[8411,5253],"./vi.json":[6294,4975],"./zh.json":[4425,5929],"./zh_Hant.json":[37644,6544]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=27650,e.exports=o},31934:(e,t,n)=>{"use strict";e.exports=n.p+"static/img/pleromatan_apology.f9d5180.png"},95326:(e,t,n)=>{"use strict";e.exports=n.p+"static/img/pleromatan_apology_fox.038b0bb.png"},68789:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAACvCAQAAAChxLOoAAAK0klEQVR42u2de3BU1R3HP7tJeGd5RCAqiGIECUiB1qACllpbn2DUEUalM7U+sPbhWB1UdKrWccbiTDtqrcVaGVuttZaKYnVQEBEkiihRUJQhQkSxaJ7EvLP77R9Jl93s69695969cfjdP5K7uefcfPf8fuf3OL/zOwHxzaAgh4EcBtJngAxntPdAAi4I++8o5rJvApAvOIKT+Ch6P5KfU8mzLiOR6etcRSTdLkQ7KtfNalREpcLdy3yX90uSKoXQkeqmVk1yG4h5YS8B4FtMJZ8/9Hw2gEqW0c9Nzso33mNXz8/zmcVF0U/7cSMjuBr5HshBQmM5m0mc0PPBRUzpNdFfSSRyTdDnwl6mdUpOnTG/h7VCs/wr7MfqKYVTwIjEAemmj7VMMxUwC8S5HrmM5QzJghE+YRUTWUCrH1irQEsUkROau90HrBXUMw5hSB16VGNzC2Sg7pMZ+lpLlJcrICXaJZO0zakRk12zS1Un09SiGxT0Esj52iq36A2N9wbIUXpJrXKTGjT/ZdeBXKwDjmepzBTWra4B+QDN0Bp1egCjm8pdABJBx+tZeUVd2qBrs5mMM5koRdzLlQRcd7kPsI1tVLBxR8MUF3z2W7gtCzvKOnWwlkoq2coeN22ti11mo5X6VIO9cHW30OYqO9Uz35jtmxbIPhZR5SKQn3AS/b2KawWYyenM5nsMIUzQuNiHOcg+mrmAr7zxR4bqbscTq1J6kQs8Cwfd38gch99YXooISguX80/PgtgziAmBZs3GCZ+0s5qZPOVl7LeErQw1Lu67uibmezBrddNAjuQi1vbAqDEKZEL+MO8CdFN5kImEgL2sZi3PGYUyjgavgLxVVXYcASBMPiwyzFxNHoZMj499dLzBEGcAUZuTpbflMDv6bzgHAh/RmBMgi49nLgDNBjR8EHg1N4uhAf5IAbCF66OLB9bH5qW4b7+71ZO5icb/VpK0R8UaqXabBkqn7tXmqEmyQk9IqjYZyLb6YJGWS5I2a4zoQCuztrm+0lL107WS7vI8Gn+A0XcxjvVsiOzt4cU5vO6ADR6ijgXMNCfq2Ufj87RNktSUdej0JrMrJNk3naFWSWGdrC+i/1ytWvS1WixCeVEhP6zqvstVhAlSxBzei1qzR/GA5XnsHDZylD/WEJeoXQ8roEH6mXZKCusRddhisPc1yAdriCvRWaro5vUuVKTrYtjMKv3eZ5kPjegKNWe1zDPUV5kPoek8zKAsGg7mcs9trTQ0gsezDu1c5aWrm54G8RxnOmhfzAF/jMidjmDAJb5grYcPeSnZ0mn+YK3R7KPAUQ81FBPOPWuVOYQBISb4QUZOM8DgM/0AZLiBEMh+PwCJGOijxg9Aig308X0/ACky0Mfseh8AMbH4UzbcB0DyjLDnSd8MYYfyHAMJk5XxnkhnOuRvAybKTMpp4C6HK7QdDI6JX3rss8deDzpOIBjnj9z49Qb0uw88RNjqeNFmmD+AfMp2hz2U+gMI/Mdh+6l+AfIvh/plgl+A7GJ33H0Fq2y1H+sXILAx7m4Wd/OhjdbjO30DZE2v+4UspMVy68ICJ9l6RndxDOu1JPdZlz1FWeoHhQjQwCtx90fnTWCdjfZn+IW1SEhYWmwrhvhjv7AWKlJbHLNUKmQr7bnUH6zFiloei/tgEvm8aaODa3JpxsfTUD6MW1BbzDiWWm7dxFT2+kFGoJHb4+5/aSuRqZCnO3wyIlDAJ4yJuX+XMYyy0X6yLTXq2ohAJwvpjDMGR9lq/0N/sBbQvjnOgMzPOHH2BjLAJ0D6JxorduJi53CANdzCdFsRM5f2l89KuenVDlXpJo28Nkcb87uvgB41tKehQ6/pvOacAUFHaKfBLRp/zZQh4V5dlDrnax4x9CN2Me9Tr4W9h7L3LpLpxJGsPGZ5miCga6z1Kxf2KDbrLY1xaz97Kv97ByHjvYaBOhbxsnesNZc8DjrwLZJTHnmMZHWyBIOAa2UxglRQlmXbrrTWgGjnlGiym+vC3s9BnKorbRZegAH8vffavntATnAQy+2fMQ+ilJu9Yq0JfIyb1MrY2C0CeXe69aJaRhOJ80tMez3/jXWiA64W0zubl1zsfX1s+Mjd0m1zXe3927Fzm7tAjnO191BsFoy7QCa52nskWnDJDpA3gTqbgQ2DG5mSq9wS6/50tNEp05gzYjxDKAAOUEsnO9ka+TLNN3Eqg10ekQJ7QE7nes5Irt6Cn/MClexhC/UJdlEZuDwiX1sHks893Jgm2+RoFvf8VkM1nVTTSiFjCFHiQYGFTqt6pJCnOA//UhlvWxmRUp5mCn6mfVZG5GReM5Quk60oZ5pR62JT3lI9fCKrcgrDimLYkfnxYbxicK+NW1SRCUg+G120Ws3RvzMB+YXPRbyb9h+asZIDKeU2+gK9GO8OJwJ5wkH6q5eVwh9LPzcsZbqDzgPejUdbRTqfvYhqlw09U/56ae8l0/gRua5PwIA7Eld+Y0ekPx9xbB+AsZ0ZifmosSNyZ5+A0cTCZGm1h0akgL19QJu3c27yAgvBGCOx2PcwOliQqk7EISDTjQYi3NAoLZRHnk/tAf6fJhp9qXmNUscFbApaMJYLfc1UOziZTdas/jyjLw4b7e0RyvgkU3DBHWYwJ2+f81NW23lhxJcysoJSKzDcKIBvjj5j0cENIdssUOM7IO+wIZQFL1f5Dsjg1qyEcpPvgGigjYejMtL5fsHu2Oi2Bd1dxRa+pAv4jDZmMZ3JPULeZUT27HmqMWkQSy0nU1TqEoXaeiVRdKChOkcPaK+RXC1pt52iPLE3w9VgqdTzbzJUEw9omREgNeqXXQJzvYUKlk2cxa8z6BwZykIZYSe/KF4Dp6/7E6aROay10OsoI0ACHJklkIodPJ7yyU6CXNo7A8QFIIox20dnJ+zdVWT3pOTZzZZrb33pKIfxUNXZq7JP8m+kPGV6UrXF72YaIx2MSEEMaxVnKyMA73FBiu1E37EYLJqNKSp1AgReY27SorglvB7l2nxSq11zIXAb6/SpVqz6cwVLkmQuNLOKDymknvtSznDvMMMQkBobTJpWaOdrfdL9OM9oQJoNY50Gz1kImisUNlnPx3Tdphc0O+3z5xnNLJ1gFUhm4+4D5nMc05hHkFdZlTHlcp4DDdKVULxnqFMZyZ6qHGSghBNCIAutFv42nR003lEiTTDJpENugEw2HLIYlBMga+Bq2g12WB+/lp7t9Gv/Gqva6HTdrHccnSDToAc1wvq7zYaDhrOaY2ikmk28yZNJWKWVzylMadWKANDJ3/gzW2xG2lzaqxDSsrTjkcwZblNEYf1DJf44M5QWFNI9WbBVhzr03e3+2KsLMHAQV3Nr0qDpk6xMa8AXMHmKsZnbuYN6IfcmgbGfyw8u6lVypCXOYRBvZ0xDD3glIwGdrqYk3H+HBgrN63UKSb261KQuVetP+oGOdVKT2TSQ8b1KS0dUpb9oqhCapNqEg+q6YU50/mbT0fhQdPDreYZXeIMvon97iBG9xQmIcLeRfQ3GZ62HJB3UDQn7BsuTzlQf61SfHtncgSYnOZ2qv3YngGjXMlOFpN3cGRp/LU04YGidTtvn60O0k10n9jpFcaeu0HAn51HmBkhe9FSF7in3Ho01fTywN0DOiIGxTtOU3zfOZ0+8Rmm/JOldXakhbr0l4Eka4lAupIYKcwfZeBF8yBEFOQzkMJDDQNLR/wB7JNbnLtPZmwAAAABJRU5ErkJggg=="},43011:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAACvCAQAAAChxLOoAAAJBUlEQVR42u2da3CUVxnHf7vZJCSBTcI1tIR7AwkXEUeYctEOFi0dGCnWUkudKUMpHXS0VacqMtMytTOVD3U0Itaq1amMl8poRbSdFjtahbYWRKmlZaiAULADKSSEpLns/v2QNWR3E7rvnvPuOe3wvB+y75uc581vz3POec5zbhHx3pAol0Eug7xrQKoZVXiQSAiF/SFquOW9AHKK4czg1d77EXyW/fw6ZBLZvq5XUtJGITrQcn1ZzUqqQYR72Vf5LUnSfiE0Wj3SrvqwQewX9skAvI+ZxPhO6tkg9rOZkjAtK2ZdY3fq51Lms6L3aQlfZChrkfcgLcRruY56rko9WMH0jIp+DcnkHVHPC/sc7VL/0tXnc0JLfS4j4/kZe1g0wPeUVtmzxN+W/RYOcPOAeiJpxhuhqPdzDXexgzI/ykgxd/MgkQApzgEl3Mg6FhAFKml3X0aielxJBZGElulOHe+9b1XUfYMY0dcVVM7rQtr9TueFfS/cy9cCJxtMeVoV8Dv3TuNidlJs+O4EkzjmttYq4SFjDHiy+Zjr6vcLGa12frXMxkrHLXu13papJLXuSbdufBN6xBijS9evt+yiBC/sYzhiwdVczY9duyiNVjzm26i0CxI0C6cqIRuSVKNb7/dGS33KCGuodWdaMT5l7c1lbHQHchNTLb57LZ+258YHqbWiHKDBchFN0MJxLvBxTheuP7LICCPRp1N1UYqopoqbTTGCmdY9Rm8qGiCC0sYqflnI6neV7Mvb+q2mF7Zln8xL1pswONQ9JVawWquM0azgmRTGGasgdbGqwgUfZtLIFOLAUXbwDE9YRRnHuUKBvPD6nAlEgAQxuNWycZ0vYDhoUt8/nWjRyYsgmpy07A/Dgn4jiPmBwKs0OwFZN4lrALgQKCg38Jv/6MbXivBdioEX+Xzv4EHuefOHtG+/J9U2N/2Rb0iSjqhGI9QRuHP7oHb39kUe1U8lHVOk8H32YXpYkrRbY0Qn2p53a35aG1SiOyVtKnif/U1GbWIcz/Kn5NGULS7kzwZmsIW3uIm59op6/kHsIv09Fc09lGfOfMmmYZkEsWerXVJCH9Sp3n+uSW1qVVuOKL9X3IcRq33cToIow1jIP1LPOriCb+dcjy3hOa5wbVo91z3q0FZFVK7P6KCkhL6vzkAG9k+VezBhYDv6mPb02Ho3Gqb1fcwsV/mmZzMfmtHqjGGc3KRVlV7NfIi/n62pYZxgUsEqd8MK2TKUn1CaZ9rbCx0OGljKeYJrDdLX8KYfOXKfEQZ80gvT2nqxl5KvzPPDtEZx3HBE8Qw1JNyb1hzjgdE4dT6UkXkWDHyuDyDVFkIgJ30ASVrQccYHkBoLOj7iA8gwCzoWnPUAJGJBx5xqD0CKrJjnjPdGYYfljkES5OW8Z8u1hvZtwUWZy3LOsSlvN75HOqnoE78scJ+979VoPBA3zo+58c9aaN896CHCS8aDNlV+gPyHA4YaGvwAgZ2G6Wf6AvIrw/alzheQQxxOu9/DbwKlr/UFBJ5Lu5vP/bwSIPXELm9Ansq4X8lK2nJOPaR4sA8NIkJVGUNyJ7qDNZQNviwWO8fTafdXFtWxK0D6Rb6YFlkTltYFiiHe5otpoWEZs7T3Kx5ojUmDH6bFo038KO1BPTGeD6DgDpdufLpU8kragNo6xrEh59TnmclRH8oINGdMg/1coIlMQ/hFpyc5AsX8mzF97vcxhpEB0k8L1IyGliPQxUq60pzBkYHSf9QP0wI6dqc5kLF3rDjTZWE+AaZQQEqznZUgcbEl+Wy1ENYa4MMGQaIyGvMoJCEtAo7oB0aLMsa6X5j//+/nK312fQga8Isw3BfTgrfyHvNooTX44FGYG7zk27uoos0nkLuYY+DmBE4bCWkThlpeJm5QwhJM4IQPOXINRbQYpI+lJuY6B3mMeN61FiSApb6UkRKDOFU34gOdnoBcZRDLLSXB+JJBfoB0GKSNECMWLEfDAznEVl4w0jDKDxBYz31G6af4AkLQKjSjLRnrD8gEo3Iy3h+QesN4jCcgEcOFTNW+gFxNhVH6Cl9Axph2A7o8AZllmP7K4jI/QCYYpo8y2g+Q2caVxXUegCRNJ6QlgU+47yFClFbjjRBaGeLetIYzyFhHWe5fRXggUy1MESzK3d8KD2SWFS0V7kFmWNEScwySNG9FeiTnMeHwaq0mhloJYXS5Na0ogy1oeYMu12VknJVNcQ+6b9mHWNGy1z1InRUtB9yDxK1oOeIeJGJFy7/cg9iY+J8IMgE3LJApFnScCDIyHBaIjUMJuoMYaFgg/7Wgoxm5B6mzUkZwD9JlQcdZH0DGW9DR5hwkcXELqIK1RaGARDEMlqZ6h+2uQSKlVvSqzHkZqSn8Qs1wQOz01yvdN4h2+utVQdbJhwMyzYqWoUG6y+GAjLRTZ7iPxpuAqE+DOMotSJGRp3VxdWhZkDHIMEBmMcIgdXEf06pxC7LAmqYGtyDTrWmqdwsy25qmAOPC9mO/VZy2dqhUkuJc++32c2S+xUO+oqlzypyALDNoQbr68becgSw2aMmj+XtttkEmGk2kyf5vSl2BmLmL2W57uROQp2Ct0aTMTDnLywFKmMWrVk29yycvaG/A47rS5ZwaNTT3d9s9D7GaHYylmWP8hefZ1o+ptPMGQwb0akUE6OIxHuHFgGuCQlrRE9fmS+ZHot99/ZNK6Oea7MeZobShuB7Iw6w61akPH/DmzFDKylnLV/sNHGxj+yUd+GKmTbdWc5t3UG/o92jBk6xquTVjVLAtLSwq/sZrgSvokMpIRB/S+X6s/16VCS1Td9rzs+rWeXXrmL6nxRpvsiezbZCJGVtLJ/W6fqiZQqheTRmAbSnMKeZvtn0cbbw388/yOE/zV071/m5L1qSOMiDJ/e9oUE6q3y2SWnR31s7Ky/utqV7T1Z4e2dyJpqki63mpDmdBdGizrY2kFVqDmHltyFrEukvzjnt9iHb/B6u1p2Ec1GpV2zv4tFAgRb2nKvRUuQ+o1u7m94UCWdQHY5dmKfbuOJ89+xqpk5KkfVqjwWG9JbypgOkhhBs4wx57B9kUIq7lSKJcBrkMchnkUvI/OFy4hX3mBzYAAAAASUVORK5CYII="}},c={};function l(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,l),n.loaded=!0,n.exports}l.m=a,e=[],l.O=(t,n,r,o)=>{if(!n){var i=1/0;for(u=0;u=o)&&Object.keys(l.O).every((e=>l.O[e](n[a])))?n.splice(a--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);l.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,l.d(o,i),o},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,n)=>(l.f[n](e,t),t)),[])),l.u=e=>"static/js/"+({50:"emoji-annotations/en_GB-json",227:"emoji-annotations/ha-json",278:"emoji-annotations/kn-json",313:"emoji-annotations/tg-json",325:"i18n/ja_pedantic-json",346:"emoji-annotations/rw-json",379:"i18n/he-json",420:"emoji-annotations/fi-json",457:"emoji-annotations/zh-json",577:"emoji-annotations/en_001-json",617:"i18n/oc-json",625:"emoji-annotations/so-json",678:"emoji-annotations/ps-json",786:"emoji-annotations/xh-json",830:"i18n/ga-json",1012:"emoji-annotations/or-json",1044:"emoji-annotations/zh_Hant_HK-json",1056:"emoji-annotations/uz-json",1095:"emoji-annotations/pl-json",1159:"i18n/it-json",1162:"emoji-annotations/ccp-json",1236:"emoji-annotations/fil-json",1290:"emoji-annotations/ja-json",1404:"emoji-annotations/km-json",1452:"emoji-annotations/yue-json",1546:"emoji-annotations/pt_PT-json",1547:"i18n/sk-json",1553:"emoji-annotations/sl-json",1584:"emoji-annotations/to-json",1596:"emoji-annotations/da-json",1613:"emoji-annotations/mai-json",1780:"emoji-annotations/tk-json",1790:"emoji-annotations/dsb-json",1821:"emoji-annotations/fr_CA-json",1911:"emoji-annotations/mr-json",1959:"emoji-annotations/su-json",2044:"i18n/te-json",2223:"emoji-annotations/fr-json",2243:"emoji-annotations/sa-json",2342:"emoji-annotations/az-json",2350:"emoji-annotations/sk-json",2397:"emoji-annotations/kl-json",2479:"emoji-annotations/jv-json",2513:"i18n/id-json",2569:"emoji-annotations/tt-json",2599:"emoji-annotations/kok-json",2656:"emoji-annotations/ckb-json",2685:"emoji-annotations/ml-json",2699:"emoji-annotations/es_MX-json",2767:"emoji-annotations/zh_Hant-json",2861:"emoji-annotations/hr-json",2873:"emoji-annotations/kk-json",2874:"emoji-annotations/sc-json",2883:"emoji-annotations/ku-json",2953:"i18n/fa-json",2966:"emoji-annotations/ko-json",2992:"emoji-annotations/eu-json",3056:"emoji-annotations/hi_Latn-json",3241:"emoji-annotations/sv-json",3276:"emoji-annotations/et-json",3313:"emoji-annotations/es_US-json",3377:"emoji-annotations/as-json",3568:"emoji-annotations/ti-json",3687:"emoji",3746:"i18n/fr-json",3887:"emoji-annotations/sr-json",3951:"emoji-annotations/th-json",3968:"i18n/es-json",3974:"emoji-annotations/bg-json",3994:"emoji-annotations/sw_KE-json",4047:"i18n/pt-json",4209:"emoji-annotations/doi-json",4354:"emoji-annotations/si-json",4368:"emoji-annotations/sq-json",4424:"emoji-annotations/yue_Hans-json",4451:"i18n/et-json",4542:"i18n/eu-json",4571:"emoji-annotations/ga-json",4646:"i18n/eo-json",4691:"emoji-annotations/ca-json",4710:"emoji-annotations/cs-json",4718:"emoji-annotations/mn-json",4770:"emoji-annotations/lb-json",4785:"emoji-annotations/ky-json",4786:"emoji-annotations/te-json",4879:"emoji-annotations/en_CA-json",4902:"emoji-annotations/hu-json",4975:"i18n/vi-json",5041:"emoji-annotations/pt-json",5104:"emoji-annotations/pcm-json",5115:"emoji-annotations/sr_Latn_BA-json",5119:"emoji-annotations/am-json",5224:"emoji-annotations/vi-json",5253:"i18n/uk-json",5304:"emoji-annotations/ha_NE-json",5401:"emoji-annotations/mni-json",5494:"i18n/hu-json",5521:"emoji-annotations/fa-json",5548:"emoji-annotations/he-json",5571:"i18n/pl-json",5728:"emoji-annotations/en-json",5887:"emoji-annotations/rm-json",5929:"i18n/zh-json",5964:"i18n/ru-json",5968:"emoji-annotations/hi-json",6060:"emoji-annotations/sr_Cyrl_BA-json",6068:"emoji-annotations/ka-json",6116:"emoji-annotations/gd-json",6126:"emoji-annotations/gl-json",6148:"emoji-annotations/br-json",6226:"emoji-annotations/de-json",6234:"i18n/ca-json",6256:"i18n/nl-json",6272:"emoji-annotations/cy-json",6342:"i18n/ro-json",6344:"emoji-annotations/hy-json",6355:"emoji-annotations/af-json",6544:"i18n/zh_Hant-json",6701:"emoji-annotations/mi-json",6773:"emoji-annotations/nl-json",6790:"emoji-annotations/my-json",6797:"emoji-annotations/ur-json",6826:"emoji-annotations/sd-json",6831:"emoji-annotations/es-json",6869:"emoji-annotations/chr-json",6936:"emoji-annotations/ia-json",6946:"emoji-annotations/pa-json",7164:"emoji-annotations/de_CH-json",7169:"emoji-annotations/lt-json",7261:"emoji-annotations/gu-json",7300:"emoji-annotations/is-json",7303:"emoji-annotations/wo-json",7304:"emoji-annotations/be-json",7360:"emoji-annotations/ar_SA-json",7433:"i18n/cs-json",7464:"emoji-annotations/lo-json",7569:"emoji-annotations/ast-json",7585:"emoji-annotations/sw-json",7808:"i18n/ar-json",7845:"i18n/nb-json",7855:"emoji-annotations/sat-json",7879:"emoji-annotations/el-json",7897:"emoji-annotations/ta-json",8015:"emoji-annotations/hsb-json",8031:"emoji-annotations/qu-json",8134:"emoji-annotations/bs-json",8395:"emoji-annotations/ru-json",8681:"emoji-annotations/sr_Latn-json",8714:"i18n/ja_easy-json",8732:"emoji-annotations/yo-json",8873:"emoji-annotations/es_419-json",8898:"emoji-annotations/lv-json",8970:"emoji-annotations/it-json",8988:"emoji-annotations/en_IN-json",8995:"emoji-annotations/fo-json",9064:"emoji-annotations/bn-json",9319:"emoji-annotations/zu-json",9360:"emoji-annotations/en_AU-json",9377:"emoji-annotations/ne-json",9399:"emoji-annotations/mt-json",9414:"emoji-annotations/nn-json",9459:"i18n/de-json",9465:"emoji-annotations/id-json",9670:"i18n/ko-json",9738:"i18n/fi-json",9757:"emoji-annotations/ug-json",9780:"emoji-annotations/kab-json",9790:"emoji-annotations/ceb-json",9864:"emoji-annotations/ro-json",9871:"emoji-annotations/uk-json",9873:"emoji-annotations/ar-json",9895:"emoji-annotations/ig-json",9921:"emoji-annotations/mk-json",9924:"emoji-annotations/ms-json",9926:"emoji-annotations/yo_BJ-json",9978:"emoji-annotations/tr-json",9979:"emoji-annotations/no-json",9994:"emoji-annotations/pa_Arab-json"}[e]||e)+"."+{50:"bd687f904492facc81d1",227:"2a08912b38925c10f970",278:"efdac8ac0cb00991ba1e",313:"9647f559a4477d7d8e96",325:"b52fa70f0bf89ae01cfb",346:"031838c5374676191131",379:"03c5d271a4034de06e6f",420:"0f254bb4b0faaba4abcc",457:"e42a28127d5c1aff6c85",577:"72d8c47269350f59aa9f",617:"4f52bf1b6e3213acc33c",625:"f75abd16637c8924c075",678:"a0d9eea5b81bcad11e64",786:"21e88c05ad3113dfc7f2",830:"3f1981817977a16f1d7e",1012:"b007c2f6f92dcc95efac",1044:"7eee03c705347a21c612",1056:"ac43f4c54d4587324a20",1095:"e9e8f1ed84dc6c169516",1159:"99a21d5c98376af17141",1162:"02836537ffe2b02291cb",1236:"4fca833f178d1b889b69",1264:"1e16af28a0b44d4d17d0",1290:"0bd51f8c40c106355b0e",1325:"d1e5fcff4166acac7f06",1404:"9bc922b2e0faa64b4c53",1452:"15102c0ddfdf19bdfb4c",1546:"c381b13e323f91b0e6b3",1547:"d8d0eba80f94e6f55145",1553:"a40c5548da34fce6f1d0",1584:"50ac37d101caaf592c94",1596:"8d074e27df71edafc543",1613:"302386b3358f4d34f9c8",1780:"23a9a6229829921704ad",1790:"7635686ffd8d62264466",1821:"59ed6b59e2ca68707292",1911:"cb0a87d9aabf8a52161d",1959:"daff15251020cbecea7d",2044:"ce6db28261b2f824064f",2223:"da49ed0d1a6622fe1c67",2243:"21b06234a08c7469ccb4",2342:"9a32f2941d9c4d1f834c",2350:"5d96bdb4da82655d0314",2397:"87ab8661b4bdecd09faf",2479:"1c8d5ffcff22b46b6214",2513:"3e42564ce7a3a847ecb0",2569:"4c089389ba9983ec8ef7",2599:"116e4f72db3bfb846233",2656:"13dc83db1e15aa76051a",2677:"45ff400a54f2f4c858f2",2685:"3f2902a84240faff1b48",2699:"ee359d4b611fdb1aeb33",2767:"9cbb765c181d443828a9",2861:"fe847ade1f18a60e513c",2873:"a20b59d47bdfe99786ad",2874:"c84c9c47d2e104c43e4c",2883:"2173ed87f8d7372ee209",2953:"a19100f6a5a9431e2adb",2966:"d175900fe48f48ce87c8",2992:"931b429f5fcc141549a5",3056:"3cb73c456f31261f1908",3241:"8b0374cbca3a77519876",3276:"c42e3f186a55ecb061cd",3313:"280bdb036dfd651d079a",3377:"34cf67edc1cecd195738",3568:"5b173bd33bb960be805b",3687:"33eab91b64f59431137d",3746:"36ef21ccb1203d3e65ae",3887:"e29a20e59a708df0c6a8",3951:"34709bae223bb9d2587c",3968:"4a302899a65e1f67d8a2",3974:"7c69c52572a7bf87e1db",3994:"f3563cbeac1c158563d5",4047:"3fc5593e030268bcd291",4209:"7841c3f3ceb4e3da0bd1",4354:"841b356da03623c10dbf",4368:"bcf154ed8a6138aa089c",4424:"cc60bb10d32fab3d8207",4451:"580b101d6bb83a8aee75",4542:"d2eab39b0427995fc314",4571:"cb3f9e613a8c445aea23",4646:"8b17b5b5653ed558d931",4691:"ce029e860b10b242c6a5",4710:"48d8bba230dc9fe6b3dc",4718:"764169f1168d0432640f",4770:"499c526f3a653618ea9b",4785:"310bda579c819eda9472",4786:"8a69a10f62cdf626244e",4879:"5de965778a6b8a5a4bb4",4902:"1faf52040deda872b416",4975:"703c1e731be6e857bbf3",5041:"2b2512ee44291bdb2ae7",5104:"eac3a5ad0b4b5b33289d",5115:"72933405032b81344754",5119:"94388548f7c18233fec3",5224:"f6a364b2add7f8c8bc67",5253:"c33e4c72a2dfe9a9d143",5304:"e4855d92aaccfdd6ba57",5401:"7db7f76ab1ce34e3683d",5494:"0487899ca7a7a8505ed8",5521:"819c7f263c8594ccf4fa",5548:"a3d7631f32182b0955a2",5571:"c963247822381b05579b",5728:"6c3947f7c49c3952084d",5887:"985d4934f386fd05a75c",5929:"de02aa4e82fcb1ec557c",5964:"b913eb7f7e9f0c642438",5968:"04bc5f73dc2169def97e",6060:"83c7c64b9696ae2339f2",6068:"567e7b051d90a37003f3",6116:"e3d0aea3725be774ad81",6126:"ce89036f0ae72224c994",6148:"c7175423d8965ed10bae",6226:"e1443c01a191af1665e1",6234:"1eb24bc001efa3c0627f",6256:"3fb9758b10c29434b613",6272:"e09dd13da5ad56530ead",6342:"3fd9977ed1c1413059ae",6344:"2d819f7faabfeba8457f",6355:"96c988285a6a2cce6246",6464:"2ababce187697ee8b1e9",6544:"eedcc6a7effd11514fe4",6701:"9efe6f146ecd8987f80a",6773:"52f4b93b8fa5e22cb585",6790:"8e7dd1485813d15bba7e",6797:"983c02109444c883a18f",6826:"8f2a6a06dc3cf185f79d",6831:"f593b0dc2367a9d7fb30",6869:"e7e542ab5a74167dec10",6936:"8e8365e2bf41779e2beb",6946:"7d60d69762a108270669",7164:"b4a5891ea2f38d616ec0",7169:"ced4d5e70edc60127df6",7261:"8a899f364cf260376905",7300:"62e220c65215b034533d",7303:"e0d689e22cda0dd77e9a",7304:"f92f80669873a4100c69",7360:"4a6f4402931a867070f0",7433:"5eedbe9f7084c349fbe8",7464:"ecb06d61465a355b8157",7569:"7e4da8cb7e539c19a9b9",7585:"d5f350641b9cbcc0e126",7808:"d09609af3224232857d6",7845:"a54af3b1f47d576ad4aa",7855:"71e92700b2aaca8e021c",7879:"b36610f2ea16d56c2314",7897:"675cc6c7607449d4a91b",8015:"438721731b4171bc6fc3",8031:"55f4df57e71076dbad9f",8134:"48ef42da1c7976cf083c",8395:"a81d0df34460837ccacc",8532:"290194af65a2e3a4120e",8681:"ff27d1f455bf2afb8d70",8714:"79705c1ec254307d2224",8732:"ea1150d6bc360dd86f2e",8873:"d81991295392b6ed83bb",8898:"5600c2eb6d59fa0aa2e2",8970:"9c1758f4fd3391f7f61a",8988:"002faa48c09121928fca",8995:"9b060e8009b3a8be4597",9064:"657aac057f36ad06c58d",9319:"e0cb7cd3890583fd0f6d",9360:"33aac9bbd887273a34b1",9377:"a0118dca2096a101b8e8",9399:"3ddf7dbc114adf90c500",9414:"7293cd5d7205681cf48c",9459:"bfa48615ac92f87ff37a",9465:"55f83c46d753b0b69330",9670:"4bd28b26a7390a09afc2",9738:"d1934c18f12d80493ab1",9757:"bf768bd32e9ff02b0a8a",9780:"1a2de4774f4ddc2b51dd",9790:"9db0336f168aa77ee395",9864:"cb62f86ce78c94d1e813",9871:"af110c8eef232638fc4d",9873:"5527466d349f2954d49b",9895:"f19fa5fe3582463ba73c",9921:"a254cabb8570419cc426",9924:"272ee4735aabc37015dd",9926:"650318c25fe4da92bad8",9978:"6462e8cfd5006cf5b6cf",9979:"22bdbbc77cc3c14ada58",9994:"5ae021308b1c5f6dd8a7"}[e]+".js",l.miniCssF=e=>"static/css/"+e+"."+{1264:"177d0bf6917b317388ae",1325:"715a7f40cdd53f460ef4",6464:"2fa2e5f1fa93842c62b1",8532:"88b90ac86f3060a3144e"}[e]+".css",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="pleroma_fe:",l.l=(e,t,n,i)=>{if(r[e])r[e].push(t);else{var s,a;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(h);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),a&&document.head.appendChild(s)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),l.p="/",i=e=>new Promise(((t,n)=>{var r=l.miniCssF(e),o=l.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=i=>{if(o.onerror=o.onload=null,"load"===i.type)n();else{var s=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=a,o.parentNode.removeChild(o),r(c)}},o.href=t,document.head.appendChild(o)})(e,o,t,n)})),s={2143:0},l.f.miniCss=(e,t)=>{s[e]?t.push(s[e]):0!==s[e]&&{1264:1,1325:1,6464:1,8532:1}[e]&&t.push(s[e]=i(e).then((()=>{s[e]=0}),(t=>{throw delete s[e],t})))},(()=>{var e={2143:0};l.f.j=(t,n)=>{var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=l.p+l.u(t),s=new Error;l.l(i,(n=>{if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}},l.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,s,a]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in s)l.o(s,r)&&(l.m[r]=s[r]);if(a)var u=a(l)}for(t&&t(n);cl(78892)));u=l.O(u)})(); //# sourceMappingURL=app.4c23e08cf351a54f4177.js.map