PageSourceSearch

https://mstdn.ca/packs/collection_preview_card-CKqYJ3tn.js

js mstdn.ca collected 2026-10-02 02:55:12 UTC 60,109 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/emoji_picker-C_GbritI.js","/packs/jsx-runtime-D3F0h15I.js","/packs/rolldown-runtime-C0FnF6B9.js","/packs/time-CBgvXNUv.js","/packs/react-intl-CZJDGRhA.js","/packs/preload-helper-C17SfWRL.js","/packs/ready-B3bZnx13.js","/packs/initial_state-CQfWVRE7.js","/packs/locales-m7YlbOxC.js","/packs/async-mutex-DHaCcEsI.js","/packs/detect-it.esm-DVND6rlI.js","/packs/isSymbol-3r8dk6Lb.js","/packs/react-router-D0L-bsDO.js","/packs/defineProperty-C0YrXxyM.js","/packs/router-C9kwTRXR.js","/packs/axios-BtwFZmtf.js","/packs/axios-BDoG55Be.js","/packs/api-CFnNWVnx.js","/packs/accounts_typed-CjliyoRM.js","/packs/typed_functions--Rew8955.js","/packs/utils-1cte5XkM.js","/packs/locale-BNeEG1rT.js","/packs/emoji-D1Seu0cr.js","/packs/settings-Cq4pjZIN.js","/packs/modal-CxkWa4aF.js","/packs/nimble-picker-XOOTetYI.js","/packs/getPrototypeOf-f3sr9U5i.js","/packs/compose-CU0h2Jc7.js","/packs/helmet-DOYeHh_A.js","/packs/react-router-dom-o_eSX_Kh.js","/packs/column-DMlzeVEv.js","/packs/classnames-CfLRLWYq.js","/packs/index.module-DGdcFisy.js","/packs/assets/column-CHvO_v_c.css","/packs/poll-BtLD4E-D.js","/packs/esm-DrOrXu-Y.js","/packs/chevron_right-D4gnplrj.js","/packs/short_number-CHNMv1Rn.js","/packs/numbers-BEp7e788.js","/packs/skeleton-B7DUl0I_.js","/packs/column_header-CJeBmKQf.js","/packs/useBreakpoint-CcBSLRU4.js","/packs/List.es-CLvCeunz.js","/packs/CaretDown.es-OLytXsgM.js","/packs/DotsThree.es-Cl_BxiJJ.js","/packs/redesign-CrnINIm5.js","/packs/assets/redesign-CTz2Ep4g.css","/packs/menu-CcJAouOa.js","/packs/useMergedRefs-CKvDylbq.js","/packs/toggle_field-DPwEt8G2.js","/packs/a11y_live_region-CJKdYgG0.js","/packs/error-DhX5veYg.js","/packs/info-BnsNWy2K.js","/packs/bookmark-CtUZgtUD.js","/packs/toString-HjykfQcJ.js","/packs/assets/toggle_field-BAQID-r7.css","/packs/text_input_field-CroY3YcT.js","/packs/assets/text_input_field-DhJXyILi.css","/packs/assets/menu-C6t7EZak.css","/packs/assets/column_header-BzA2y32K.css","/packs/home-fill-CyA9QjcE.js","/packs/menu-ptbzX0_g.js","/packs/notifications-fill-DhJyjSZS.js","/packs/navigation_bar-Czkvpt9d.js","/packs/notifications-Cxvbu_KB.js","/packs/add-BsoalWCj.js","/packs/home-CQ5pGabv.js","/packs/notifications-CQvvwL6U.js","/packs/search-ChptxC0m.js","/packs/icon_with_badge-Dsl4p3LW.js","/packs/group-C7vSDspn.js","/packs/search-BrkIxJr8.js","/packs/header-CJipzFQd.js","/packs/arrow_back-b5sYkiTj.js","/packs/chevron_left-C8eDlf40.js","/packs/unfold_less-BotrPWCa.js","/packs/unfold_more-Dr76BMqr.js","/packs/compose_form_container-B5PBUh5L.js","/packs/intl-CdMpGntF.js","/packs/display_name-CYJ2kAiA.js","/packs/visualizer-2V1flNI1.js","/packs/alternate_email-BuKNZDmn.js","/packs/account-C6PegnrA.js","/packs/counters-Do56yhcU.js","/packs/follow_button-BdskjgqW.js","/packs/badge-8I1JNUWs.js","/packs/smart_toy-CSrWL6eJ.js","/packs/block-BCpEPUNS.js","/packs/volume_off-C16iujHe.js","/packs/assets/badge-sf7g7DyJ.css","/packs/react-textarea-autosize.browser.esm-BMFnA-9M.js","/packs/use-isomorphic-layout-effect.browser.esm-M-Y-iJel.js","/packs/objects-CETzTudg.js","/packs/emoji_picker_dropdown_container-CJMOsDQ5.js","/packs/mood-sc4COPoP.js","/packs/photo_library-dcfDojju.js","/packs/graphic_eq-92fKxr9N.js","/packs/utilities.esm-dFVYL_Jy.js","/packs/dropdown_selector-ACblmypz.js","/packs/embedded_status_content-DUEyfaRM.js","/packs/share-D5UvaC_4.js","/packs/fuzzysort-CJTuKKST.js","/packs/edit-BKKsAV_5.js","/packs/status_quoted-DDZG2PxU.js","/packs/card-C0icSLuk.js","/packs/react_router-B6HbMz-Q.js","/packs/insert_chart-BH_jJ4it.js","/packs/link-D9mUXM6-.js","/packs/visibility-BZenFkzt.js","/packs/edit_square-COcZP6_g.js","/packs/elephant_ui_plane-BKKBlDqk.js","/packs/logout-BRjOewPS.js","/packs/notifications_v2-CQaXMyrU.js","/packs/avatar_group-D5wyDgrx.js","/packs/Gear.es-PYx6PnCO.js","/packs/category-fill-DkJ2DgWa.js","/packs/category-s9B1BwUb.js","/packs/person_add-fill-Cwfwq4e9.js","/packs/person_add-DLMe3gH4.js","/packs/embedded_status-GBJqrf-r.js","/packs/load_gap-Bz6g4DBo.js","/packs/scrollable_list-B5lGa57r.js","/packs/fullscreen-C9DTf02V.js","/packs/scroll_container-C12ou2Yd.js","/packs/es-CcqpDSRy.js","/packs/schedule_idle_task-sWDAnuJH.js","/packs/tiny-queue-CsviSls9.js","/packs/components-DmZkKgAv.js","/packs/load_more-BkDeup4J.js","/packs/notifications_active-fill-HtrYj89X.js","/packs/collection_list_item-DjtNdbn-.js","/packs/empty_state-Dd4IDUIh.js","/packs/elephant_ui-Bo6a808X.js","/packs/gif-C8_qBZ9N.js","/packs/assets/empty_state-D4d51_wr.css","/packs/keyboard_arrow_up-B9LNvMdp.js","/packs/list_alt-CBXV55Gk.js","/packs/callout-DnDHsgQB.js","/packs/assets/callout-IFgvMNaK.css","/
1packs/formatted_date-ZNb4PREw.js","/packs/useAccountId-CT_TX6Ya.js","/packs/form_fields-DeGCw1E3.js","/packs/copy_button-Ta90rrNf.js","/packs/content_copy-57Gyx5n4.js","/packs/assets/form_fields-RSoqT7sU.css","/packs/useSearchTags-DR8EMZ7R.js","/packs/help-CvE32O5O.js","/packs/account_list_item-4_JkgDQK.js","/packs/useRelationship-DL3LrHB7.js","/packs/number_fields-DcTVH0o8.js","/packs/assets/number_fields-DAO-UqGM.css","/packs/assets/account_list_item-OsUTas1E.css","/packs/more_vert-kb3YSCuo.js","/packs/not_signed_in_indicator-CQNaJIaP.js","/packs/useSearchAccounts-CKnJSNXu.js","/packs/useSearchParam-1ym2YYOb.js","/packs/visibility_off-lwOLFAWd.js","/packs/revoke_collection_inclusion_modal-BXTxjOoE.js","/packs/confirmation_modal-4LBW-50c.js","/packs/assets/collection_list_item-D6gsJyyh.css","/packs/multicolumn_settings-DNB3OnNk.js","/packs/isEqual-CfjiGLTT.js","/packs/inventory_2-C9ugLVF2.js","/packs/heart_broken-fill-D1GFobfi.js","/packs/relationships_severance_event-DtsNQoyF.js","/packs/column_settings_container-BCvo5YPP.js","/packs/setting_toggle-BDQXTn30.js","/packs/policy_controls-CjXYwvdo.js","/packs/arrow_drop_down-MnUBPOw7.js","/packs/delete_forever-D_no-Ypj.js","/packs/celebration-DL7ERAhg.js","/packs/assets/notifications_v2-DwDtNHaa.css","/packs/home_timeline-ChMdrq4K.js","/packs/SlidersHorizontal.es-R65qlRmD.js","/packs/use-gesture-react.esm-B4rcD9HS.js","/packs/status_list_container-DWIPZraH.js","/packs/status_list-DomdR_we.js","/packs/useOverflow-2Akmjf53.js","/packs/useObserver-DnVQi0kY.js","/packs/icon_pinned-t6UDvFNN.js","/packs/assets/status_list-jnO0hz4D.css","/packs/announcement-CqVuDTaX.js","/packs/assets/announcement-BCZQKEnc.css","/packs/setting_text-BNieBfua.js","/packs/campaign-BAuNhPup.js","/packs/assets/home_timeline-BoubaQqh.css","/packs/public_timeline-BB4qxMnW.js","/packs/streaming-B1GrKKAV.js","/packs/lib-BUshH0wH.js","/packs/dismissable_banner-B017w8aR.js","/packs/feed_column_settings-CcRZAaYw.js","/packs/community_timeline-1TvU4VzQ.js","/packs/firehose-DEE67ssm.js","/packs/hashtag_timeline-DuDxY_Lo.js","/packs/tag-BlXoEOPT.js","/packs/column_settings_container-BkMI1ID6.js","/packs/react-select-async.esm-BV_HknjX.js","/packs/list_timeline-DKq1YnOx.js","/packs/bundle_column_error-9Dy216Al.js","/packs/assets/bundle_column_error-gGmt9TDO.css","/packs/delete-CChYoRF8.js","/packs/lists-DuUf1OrL.js","/packs/Plus.es-DhqyUI9c.js","/packs/lists-C4FfKDKd.js","/packs/squiggly_arrow-CQdvzYAi.js","/packs/direct_timeline-DqfhUHjb.js","/packs/collections-DzCBpKL3.js","/packs/tab_list-BdPpAMIQ.js","/packs/assets/tab_list-e25X12WM.css","/packs/status-UEW8g1iu.js","/packs/alert-Ba3hyWCe.js","/packs/detailed_status-DonpeCKB.js","/packs/video-DZdxgK1f.js","/packs/volume_down-fill-Dt718L0X.js","/packs/audio-BL7RKyd7.js","/packs/download-DFkPSa89.js","/packs/inline_account-BiPwkAyA.js","/packs/media_gallery-Cpo3DvCE.js","/packs/alt_text_badge-B-rc0Lu5.js","/packs/useSelectableClick-DQKjJDHK.js","/packs/assets/alt_text_badge-Dp0EyRCt.css","/packs/difference-DS_pkXUW.js","/packs/getting_started-CSMO8_yj.js","/packs/navigation_panel-DzG5nwVa.js","/packs/bookmarks-fill-zMbuP00q.js","/packs/list_alt-fill-D8hVptNe.js","/packs/manufacturing-M60ENSwQ.js","/packs/settings-qOs7k-4o.js","/packs/trending_up-vWbZg_RD.js","/packs/index.module-y4HS80Z2.js","/packs/assets/index-BNWomVqV.css","/packs/hashtag-BDJnUX4Q.js","/packs/build-Rln7KbAf.js","/packs/link_footer-CpDQ0XiW.js","/packs/assets/link_footer-BFct3wYC.css","/
1packs/keyboard_shortcuts-BxG1Rd0F.js","/packs/account_timeline-DpgAqxDG.js","/packs/tag-Bcgp4loX.js","/packs/assets/tag-HuOvSbKg.css","/packs/remote_hint-vI3ZTAO9.js","/packs/use_fetch_familiar_followers-B09bqj8j.js","/packs/account_bio-CDvkbngP.js","/packs/assets/account_bio-DpMboqlm.css","/packs/useLayout-CkMjBkK_.js","/packs/limited_account_hint-s91v0I8d.js","/packs/language-BKT1xt7e.js","/packs/person_remove-DN_2bUYT.js","/packs/useFieldHtml-B6Usy1G7.js","/packs/person-DgtEm6cD.js","/packs/assets/remote_hint-CZpiybc3.css","/packs/timelines-yrT3SMzE.js","/packs/profile_column_header-GfXPy4gC.js","/packs/account_gallery-CEr5FItg.js","/packs/movie-fill-DC3-1DOf.js","/packs/account_featured-CQ142M67.js","/packs/assets/account_featured-ChZTrFTX.css","/packs/account_edit-CA42yGLY.js","/packs/edit_button-CSX7htNf.js","/packs/assets/edit_button-VCZjbsjh.css","/packs/replace_image-DmHLbwHT.js","/packs/featured_tags-DEBQEN4O.js","/packs/followers-BRyd5KHW.js","/packs/list-Ba0WHK2g.js","/packs/assets/list-ByyWUFZa.css","/packs/following-aOPqQPIS.js","/packs/reblogs-B1iKCsqH.js","/packs/refresh-CPtrSwXt.js","/packs/favourites-DA6wHzi7.js","/packs/quotes-B76VfL9e.js","/packs/follow_requests-yPDpb6UE.js","/packs/favourited_statuses-BOCsx5bI.js","/packs/followed_tags-BdMzp6y6.js","/packs/bookmarked_statuses-Dur1otxz.js","/packs/blocks-D1EHicYh.js","/packs/block-fill-BlFGxB1c.js","/packs/domain_blocks-BDr7XH8k.js","/packs/mutes-D5dUO3Ov.js","/packs/mute_modal-B1cOKGWC.js","/packs/check_box-SQcV7_FI.js","/packs/check_indeterminate_small-BrNx7OOC.js","/packs/done-Cynr-3_M.js","/packs/radio_button-6Dn3WtG4.js","/packs/block_modal-Dv9BSkyl.js","/packs/domain_block_modal-B7FN0fGw.js","/packs/history-BZI4URHX.js","/packs/report_modal-BsgJQC-8.js","/packs/option-DTNpP_5p.js","/packs/media_attachments-zKDoa50s.js","/packs/noop-D01SBb6d.js","/packs/rules-DQlxyA1g.js","/packs/local_settings-BIe35wbc.js","/packs/settings-fill-DUj0jrka.js","/packs/report_collection_modal-BLml0oSx.js","/packs/ignore_notifications_modal-CAa0x-rv.js","/packs/shield_question-CQFl09Ww.js","/packs/embed_modal-BvV9eBmz.js","/packs/useTimeout-BlNvQ1IO.js","/packs/list_adder-1ZU9tiZv.js","/packs/src-SuYvKHvm.js","/packs/directory-DVDIQfNI.js","/packs/profile-BZdYRCHQ.js","/packs/onboarding-Ckmy6hBp.js","/packs/add_photo_alternate-CveV7aV5.js","/packs/follows-D501vQop.js","/packs/search_header-DMDllYnX.js","/packs/compare_history_modal-BBQodIn2.js","/packs/explore-DTYKs9Bn.js","/packs/assets/explore-CUX6K7KN.css","/packs/search-DtC2Pnrf.js","/packs/find_in_page-BoMNpYiD.js","/packs/filter_modal-Eu3Ur9IW.js","/packs/interaction_modal-CI0_i-bF.js","/packs/escapeRegExp-DE5leps_.js","/packs/subscribed_languages_modal-BsPx_G3a.js","/packs/closed_registrations_modal-BgCG776t.js","/packs/about-D5pmyev_.js","/packs/server_hero_image-DFPP_bcW.js","/packs/assets/server_hero_image-B4ZnzyEW.css","/packs/expand_more-DtxIvtdW.js","/packs/styles.module-DZYyaALn.js","/packs/assets/styles-Bal67OpG.css","/packs/privacy_policy-CXE-ILRC.js","/packs/terms_of_service-i4m7IlDx.js","/packs/requests--mPdzz5e.js","/packs/request-D6VNSHza.js","/packs/X.es-C4IYgm67.js","/packs/person-fill-DYdbwxXY.js","/packs/link_timeline-Box-Tlny.js","/packs/modal-BMRktC9R.js","/packs/annual_report-Bm8SsKS_.js","/packs/space_elements-DqIPovTz.js","/packs/new-BP7BXqkh.js","/packs/members-4SL0_pvg.js"])))=>i.map(i=>d[i]);
2import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,t as n}from"./jsx-runtime-D3F0h15I.js";import{a as r,c as i,s as a}from"./react-intl-CZJDGRhA.js";import{t as o}from"./preload-helper-C17SfWRL.js";import{d as s,t as c,y as l}from"./initial_state-CQfWVRE7.js";import{A as u,i as d,k as f,t as p}from"./chevron_right-D4gnplrj.js";import{zt as m}from"./detect-it.esm-DVND6rlI.js";import{Ta as h,Zt as ee}from"./time-CBgvXNUv.js";import{c as te,d as ne}from"./react-router-D0L-bsDO.js";import{t as g}from"./defineProperty-C0YrXxyM.js";import{t as re}from"./api-CFnNWVnx.js";import{o as _,s as v}from"./typed_functions--Rew8955.js";import{t as y}from"./settings-Cq4pjZIN.js";import{t as b}from"./react-router-dom-o_eSX_Kh.js";import{n as ie}from"./modal-CxkWa4aF.js";import{t as ae}from"./classnames-CfLRLWYq.js";import{A as x,B as oe,C as se,D as ce,E as le,H as S,O as ue,V as de,i as fe,k as pe,q as me,t as he,y as ge}from"./poll-BtLD4E-D.js";import{t as _e}from"./intl-CdMpGntF.js";import{C as ve,S as ye,_ as be,i as xe,r as Se,v as Ce,w as we,y as Te}from"./bookmark-CtUZgtUD.js";var C=e(t()),w=n(),Ee={POST:`detailed-status`,SEARCH:`search`},T=(0,C.createContext)(null),De=({children:e})=>{let t=(0,C.useRef)(!1),n=(0,C.useRef)(null),{pathname:r,search:i,state:a}=te(),{focusTarget:o}=a??{};return(0,C.useLayoutEffect)(()=>{let e=n.current;if(e===null){n.current={pathname:r,search:i,focusTarget:o};return}(e.pathname!==r||e.search!==i||e.focusTarget!==o)&&(n.current={pathname:r,search:i,focusTarget:!1},t.current=o??!0)},[r,i,o]),(0,w.jsx)(T.Provider,{value:t,children:e})};function E(e){let t=(0,C.useContext)(T);return(0,C.useCallback)(n=>{let r=t?.current;n&&r&&(e?r===e:r===!0)&&setTimeout(()=>{n.focus({preventScroll:!0})},0)},[t,e])}
2var Oe=({as:e,focusTargetName:t,children:n,...r})=>{let i=e??`h1`,a=E(t);return(0,w.jsx)(i,{ref:a,tabIndex:-1,...r,children:n})};function ke(e){return`key`in e}function D(e){let t=e.toLowerCase();switch(t){case` `:case`spacebar`:return`space`;case`arrowup`:return`up`;case`arrowdown`:return`down`;case`arrowleft`:return`left`;case`arrowright`:return`right`;case`esc`:case`escape`:return`escape`;default:return t}}function Ae(e,t){return e.length===1?t===`Key${e.toUpperCase()}`:t.toLowerCase()===e.toLowerCase()}var O={singleKey:0,combo:1,sequence:2};function k(e){return t=>({isMatch:D(t.key)===e&&!t.altKey&&!t.ctrlKey&&!t.metaKey,priority:O.singleKey})}function A(...e){return t=>({isMatch:e.some(e=>k(e)(t).isMatch),priority:O.singleKey})}function j(...e){return t=>{let n;for(let r of e){let e=r(t);if(e.isMatch){n=e;break}}return n??{isMatch:!1,priority:O.singleKey}}}function M(e){return t=>({isMatch:t.altKey&&Ae(e,t.code),priority:O.combo})}function N(...e){return(t,n)=>{let r=e.at(-1),i=e.slice(0,-1),a=n?.slice(-i.length);return{isMatch:!!a&&i.join(``)===a.join(``)&&D(t.key)===r,priority:O.sequence}}}var P={help:k(`?`),search:A(`s`,`/`),back:k(`backspace`),new:k(`n`),forceNew:M(`n`),focusColumn:A(`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`),focusLoadMore:k(`l`),reply:k(`r`),favourite:k(`f`),boost:k(`b`),bookmark:k(`d`),quote:k(`q`),mention:k(`m`),open:A(`enter`,`o`),openProfile:k(`p`),moveDown:j(k(`j`),M(`pagedown`)),moveUp:j(k(`k`),M(`pageup`)),moveToTop:k(`0`),toggleHidden:k(`x`),toggleSensitive:k(`h`),toggleComposeSpoilers:M(`x`),openMedia:k(`e`),onTranslate:k(`t`),goToHome:N(`g`,`h`),goToExplore:N(`g`,`e`),goToNotifications:N(`g`,`n`),goToLocal:N(`g`,`l`),goToFederated:N(`g`,`t`),goToDirect:N(`g`,`d`),goToStart:N(`g`,`s`),goToFavourites:N(`g`,`f`),goToProfile:N(`g`,`u`),goToBlocked:N(`g`,`b`),goToMuted:N(`g`,`m`),goToRequests:N(`g`,`r`),cheat:N(`up`,`up`,`down`,`down`,`left`,`right`,`left`,`right`,`b`,`a`,`enter`)};function je(e){let t=(0,C.useRef)(null),n=(0,C.useRef)([]),r=(0,C.useRef)(null),i=(0,C.useRef)(e);return(0,C.useEffect)(()=>{i.current=e},[e]),(0,C.useEffect)(()=>{let e=t.current??document;function a(e){let t=e.target.tagName.toLowerCase();if(ke(e)&&!e.defaultPrevented&&![`input`,`textarea`,`select`].includes(t)&&!([`a`,`button`].includes(t)&&D(e.key)===`enter`)){let t=[];Object.keys(P).forEach(r=>{let a=i.current[r],o=P[r],{isMatch:s,priority:c}=o(e,n.current);s&&t.push({handler:a,priority:c})}),t.sort((e,t)=>t.priority-e.priority);let a=t.at(0)?.handler;a&&a(e)!==!1&&(e.stopPropagation(),e.preventDefault()),n.current.push(D(e.key)),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{n.current=[]},1e3)}}return e.addEventListener(`keydown`,a),()=>{e.removeEventListener(`keydown`,a),r.current&&clearTimeout(r.current)}},[]),t}var Me=({as:e,handlers:t,global:n,focusable:r=!0,children:i,...a})=>{let o=je(t);return(0,w.jsx)(e??`div`,{...a,ref:n?void 0:o,tabIndex:r?-1:void 0,children:i})},F=e(ae()),I=e=>`/collections/${e}`,Ne=e=>[`automatic`,`manual`].includes(e.feature_approval.current_user),Pe=e=>e.feature_approval.automatic.includes(`followers`)||e.feature_approval.manual.includes(`followers`),L=(e,t,n)=>e===t||e===n||e.startsWith(t+`/`)||e.startsWith(n+`/`)||`www.`+e===n||(`www.`+e).startsWith(n+`/`),Fe=e=>{let t=[],n=e=>{if(e instanceof Text)t.push(e.textContent);else if(e instanceof HTMLElement){if(e.classList.contains(`invisible`))return;for(let t of e.childNodes)n(t)}};n(e);let r=t.join(``),i=new URL(e.href);if(i.protocol===`magnet:`)return!r.startsWith(`magnet:`);if(i.protocol===`xmpp:`)return r!==i.href&&`xmpp:`+r!==i.href;if(L(r,i.origin,i.host)||L(r.toLowerCase(),i.origin,i.host))return!1;let a=pe(i.hostname).normalize(`NFKC`),o=i.host.replace(i.hostname,a),s=i.origin.replace(i.host,o),c=r.normalize(`NFKC`);return!(L(c,s,o)||L(c.toLowerCase(),s,o))},Ie=e=>{try{if(Fe(e)){let t=new URL(e.href),n=document.createElement(`span`);switch(n.classList.add(`link-origin-tag`),t.protocol){case`xmpp:`:n.textContent=`[${t.href}]`;break;case`magnet:`:n.textContent=`(magnet)`;break;default:n.textContent=`[${t.host}]`}e.insertAdjacentText(`beforeend`,` `),e.insertAdjacentElement(`beforeend`,n)}}catch(t){t instanceof TypeError&&e.removeAttribute(`href`)}},R=({href:e,text:t,prevText:n,hashtagAccountId:r,mention:i,collectionId:a,className:o,children:s,...c})=>{let l=v(e=>e.local_settings.get(`rewrite_mentions`,`no`)),u=v(e=>e.local_settings.get(`tag_misleading_links`,!1)),d=(0,C.useRef)(null);if((0,C.useEffect)(()=>{u&&d.current&&Ie(d.current)},[u]),(t.startsWith(`#`)||n?.endsWith(`#`)||t.startsWith(`#`)||n?.endsWith(`#`))&&!t.includes(`%`)){let e=t.slice(1).trim();return(0,w.jsx)(b,{className:(0,F.default)(`mention hashtag`,o),to:`/tags/${encodeURIComponent(e)}`,rel:`tag`,"data-menu-hashtag":r,children:s})}return i?l===`no`?(0,w.jsx)(b,{className:(0,F.default)(`mention`,o),to:{pathname:`/@${i.acct}`,state:{reference:`status`}},title:`@${i.acct}`,"data-hover-card-account":i.id,"data-hover-card-reference":`status`,children:s}):(0,w.jsxs)(b,{className:(0,F.default)(`mention`,o),to:`/@${i.acct}`,title:`@${i.acct}`,"data-hover-card-account":i.id,children:[`@`,(0,w.jsx)(`span`,{children:l===`acct`?i.acct:i.username})]}):a?(0,w.jsx)(b,{className:(0,F.default)(o),to:I(a),children:s}):e.startsWith(`/`)?(0,w.jsx)(b,{className:(0,F.default)(`unhandled-link`,o),to:e,children:s}):(0,w.jsx)(`a`,{...c,href:e,title:e,className:(0,F.default)(`unhandled-link`,o),target:`_blank`,rel:`noopener`,translate:`no`,ref:d,children:s})},Le=({hashtagAccountId:e,hrefToCollectionId:t,hrefToMention:n}={})=>({onElement:(0,C.useCallback)((r,{key:i,...a},o)=>
2{if(r instanceof HTMLAnchorElement){let s=n?.(r.href),c=t?.(r.href);return(0,C.createElement)(R,{...a,key:i,href:r.href,text:r.innerText,prevText:r.previousSibling?.textContent??void 0,hashtagAccountId:e,mention:s,collectionId:c},o)}},[e,t,n])}),z=({type:e=`button`,onClick:t,disabled:n,block:r,secondary:i,plain:a,compact:o,dangerous:s,loading:c,className:l,title:u,text:d,children:f,...p})=>{let m=(0,C.useCallback)(e=>{n||c?(e.stopPropagation(),e.preventDefault()):t&&t(e)},[n,c,t]),h=d??f;return(0,w.jsx)(`button`,{className:(0,F.default)(`button`,l,{"button-secondary":i,"button--plain":a,"button--compact":o,"button--block":r,"button--dangerous":s,loading:c}),disabled:n&&!c,"aria-disabled":c,"aria-live":c===void 0?void 0:`polite`,onClick:m,title:u,type:e,...p,children:c?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`span`,{className:`button__label-wrapper`,children:h}),(0,w.jsx)(me,{role:`none`})]}):h})},B=1048576,Re=1024;function ze(e){return(e&8)==8}function Be(e){return(e&16)==16}var Ve=(e,t,n)=>{switch(n){case`public`:return!0;case`authenticated`:return e;default:return(t&B)===B}};function He(){return o(()=>import(`./emoji_picker-C_GbritI.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)}function Ue(){return o(()=>import(`./compose-CU0h2Jc7.js`),__vite__mapDeps([27,2,1,4,7,8,5,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111]),import.meta.url)}function We(){return o(()=>import(`./notifications_v2-CQaXMyrU.js`),__vite__mapDeps([112,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,29,31,30,32,33,34,35,37,38,39,113,83,79,84,41,64,114,43,40,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,62,81,115,116,117,118,72,65,73,74,75,76,95,102,103,78,104,105,66,106,107,108,119,99,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,85,86,87,70,88,89,135,136,100,137,138,139,140,141,142,143,68,90,91,93,94,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,98,168,169,170,171]),import.meta.url)}function Ge(){return o(()=>import(`./home_timeline-ChMdrq4K.js`),__vite__mapDeps([172,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,31,30,32,33,34,35,29,37,38,39,78,41,173,43,40,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,65,60,69,174,72,73,74,75,76,93,94,97,175,176,79,84,133,85,86,87,70,88,89,103,104,105,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,153,181,182,160,183,166,
2110,184,185]),import.meta.url)}function Ke(){return o(()=>import(`./public_timeline-BB4qxMnW.js`),__vite__mapDeps([186,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,187,188,30,31,32,33,34,35,29,37,38,39,78,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76,175,176,79,84,133,85,86,87,70,88,89,103,104,105,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,160,189,183,166,190]),import.meta.url)}function qe(){return o(()=>import(`./community_timeline-1TvU4VzQ.js`),__vite__mapDeps([191,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,187,188,30,31,32,33,34,35,29,37,38,39,78,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,70,72,65,73,74,75,76,175,176,79,84,133,85,86,87,88,89,103,104,105,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,160,189,183,166,190]),import.meta.url)}function Je(){return o(()=>import(`./firehose-DEE67ssm.js`),__vite__mapDeps([192,2,1,4,7,8,5,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,29,187,188,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76,175,176,79,84,133,85,86,87,70,88,89,103,78,104,105,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,160,189,183,166]),import.meta.url)}function Ye(){return o(()=>import(`./hashtag_timeline-DuDxY_Lo.js`),__vite__mapDeps([193,2,1,4,7,8,5,9,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,187,188,30,31,32,33,34,35,36,29,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,194,72,65,73,74,75,76,175,176,79,84,133,85,86,87,70,88,89,103,78,104,105,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,160,190,195,166,196,91,26,161]),import.meta.url)}function Xe(){return o(()=>import(`./list_timeline-DKq1YnOx.js`),__vite__mapDeps([197,2,1,4,8,5,7,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,29,187,188,30,31,32,33,34,35,37,38,39,105,104,79,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,198,142,143,131,132,133,134,199,136,72,65,73,74,75,76,102,200,175,176,84,85,86,87,70,88,89,103,78,60,66,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,160]),import.meta.url)}function Ze(){return o(()=>import(`./lists-DuUf1OrL.js`),__vite__mapDeps([201,2,1,4,8,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,29,30,31,32,33,34,35,36,37,38,39,202,43,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,65,136,203,72,73,74,75,76,121,122,123,124,125,126,127,128,153,204]),import.meta.url)}function Qe(){return o(()=>import(`./direct_timeline-DqfhUHjb.js`),__vite__mapDeps([205,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,187,188,31,30,32,33,34,35,29,37,38,39,78,79,202,43,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76,103,104,105,60,66,102,106,107,108,121,122,123,124,125,126,127,128,175,176,84,133,85,86,87,70,88,89,177,178,179,120,180,160,183,166]),import.meta.url)}function $e(){return o(()=>import(`./collections-DzCBpKL3.js`).then(e=>({default:e.Collections})),__vite__mapDeps([206,2,1,4,8,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,31,30,32,33,34,35,36,29,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,131,132,133,134,72,65,73,74,75,76,207,208,127,140,130,79,85,86,87,70,88,89,135,136,100,137,138,139,141,142,143,68,90,91,93,78,94,144,145,146,147,84,148,149,150,151,152,153,154,155,156,157,158,159]),import.meta.url)}function et(){return o(()=>import(`./collection_list_item-DjtNdbn-.js`).then(e=>e.i).then(e=>({default:e.CollectionDetailPage})),__vite__mapDeps([130,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,29,31,30,32,33,34,35,37,38,39,79,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,131,132,133,134,65,85,86,87,70,88,89,135,136,72,73,74,75,76,100,137,138,127,139,140,141,142,143,68,90,91,93,78,94,144,145,146,147,84,148,149,150,151,152,153,154,155,156,157,158,159]),import.meta.url)}function tt(){return o(()=>import(`./collection_list_item-DjtNdbn-.js`).then(e=>e.r).then(e=>({default:e.CollectionEditorPage})),__vite__mapDeps([130,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,29,31,30,32,33,34,35,37,38,39,79,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,131,132,133,134,65,85,86,87,70,88,89,135,136,72,73,74,75,76,100,137,138,127,139,140,141,142,143,68,90,91,93,78,94,144,145,146,147,84,148,149,150,151,152,153,154,155,156,157,158,159]),import.meta.url)}function nt(){return o(()=>import(`./status-UEW8g1iu.js`),__vite__mapDeps([209,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,31,30,32,33,34,35,29,37,38,39,210,78,122,104,79,105,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,198,142,143,131,132,133,134,199,72,65,73,74,75,76,103,60,66,102,106,107,108,123,124,211,212,213,214,215,80,125,126,139,216,217,218,219,220,156,221]),import.meta.url)}function rt(){return o(()=>import(`./getting_started-CSMO8_yj.js`),__vite__mapDeps([222,1,2,4,28,13,30,8,5,7,9,3,6,10,11,12,14,15,16,17,18,19,20,21,22,23,24,31,32,33,223,36,29,34,35,37,38,39,41,64,52,53,54,65,60,66,62,67,69,174,81,224,225,115,116,226,117,118,227,228,82,83,79,84,85,86,87,70,88,89,71,48,68,229,230,194,135,136,203,231,232,233,234]),import.meta.url)}function it(){return o(()=>import(`./keyboard_shortcuts-BxG1Rd0F.js`),__vite__mapDeps([235,2,1,4,8,5,7,9,12,13,28,30,3,6,10,11,14,15,16,17,18,19,20,21,22,23,24,31,32,33,78,40,41,42,43,44,45,29,34,35,36,37,38,39,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76]),import.meta.url)}function at(){return o(()=>
2import(`./account_timeline-DpgAqxDG.js`),__vite__mapDeps([236,2,1,4,8,5,7,9,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,29,31,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,198,28,142,143,131,132,133,134,199,135,137,138,176,79,84,85,86,87,70,88,89,103,78,104,105,60,66,102,106,107,108,74,177,178,179,120,121,122,123,124,125,126,127,128,180,140,141,68,90,91,93,94,144,237,238,239,240,241,242,113,67,81,243,100,207,208,139,148,244,129,245,246,247,146,248,109,149,150,249,250,251,72,65,73,75,76]),import.meta.url)}function ot(){return o(()=>import(`./account_gallery-CEr5FItg.js`),__vite__mapDeps([252,2,1,4,7,10,11,12,13,3,5,6,8,9,14,15,16,17,18,19,20,21,22,23,24,31,30,32,33,34,35,36,29,37,38,39,212,213,122,198,28,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,142,143,131,132,133,134,199,72,65,73,74,75,76,218,219,220,121,123,124,125,126,127,128,140,239,240,241,242,113,79,84,67,81,86,87,85,70,88,89,243,100,207,208,137,138,178,139,148,244,129,245,246,247,146,248,109,149,150,249,156,253]),import.meta.url)}function st(){return o(()=>import(`./account_featured-CQ142M67.js`),__vite__mapDeps([254,2,1,4,7,36,5,10,11,12,13,3,6,8,9,14,15,16,17,18,19,20,21,22,23,24,29,31,30,32,33,34,35,37,38,39,79,131,132,133,134,198,28,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,142,143,199,65,72,73,74,75,76,127,140,239,240,241,242,113,84,67,81,86,87,85,70,88,89,243,100,207,208,137,138,178,139,148,244,129,245,246,247,146,248,109,149,150,249,147,151,130,135,136,141,68,90,91,93,78,94,144,145,152,153,154,155,156,157,158,159,255]),import.meta.url)}function ct(){return o(()=>import(`./account_edit-CA42yGLY.js`).then(e=>e.t).then(e=>({default:e.AccountEdit})),__vite__mapDeps([256,2,1,4,7,3,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,34,35,36,29,37,38,39,241,242,49,50,51,52,53,54,55,65,102,200,137,138,140,141,48,56,57,142,143,68,135,90,91,93,78,94,144,257,28,30,32,33,44,43,40,41,42,45,46,47,58,59,198,131,132,133,134,199,72,73,74,75,76,258,259]),import.meta.url)}function lt(){return o(()=>import(`./featured_tags-DEBQEN4O.js`).then(e=>({default:e.AccountEditFeaturedTags})),__vite__mapDeps([260,2,1,4,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,34,35,36,29,31,37,38,39,68,137,51,52,53,54,138,140,141,48,49,50,55,56,57,142,143,135,90,91,93,78,94,144,237,238,257,28,30,32,33,44,43,40,41,42,45,46,47,58,59,198,131,132,133,134,199,72,65,73,74,75,76,102,200,258,145]),import.meta.url)}function ut(){return o(()=>import(`./followers-BRyd5KHW.js`),__vite__mapDeps([261,2,1,4,7,3,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,34,35,36,29,31,37,38,39,32,140,148,262,30,33,198,28,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,142,143,131,132,133,134,199,243,137,138,121,122,123,124,125,126,127,128,244,147,84,85,86,87,70,88,89,139,149,150,151,251,72,65,73,74,75,76,248,263]),import.meta.url)}function dt(){return o(()=>import(`./following-aOPqQPIS.js`),__vite__mapDeps([264,2,1,4,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,34,35,36,29,31,37,38,39,32,140,148,244,262,30,33,198,28,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,142,143,131,132,133,134,199,243,137,138,121,122,123,124,125,126,127,128,147,84,85,86,87,70,88,89,139,149,150,151,251,72,65,73,74,75,76,248,263]),import.meta.url)}function ft(){return o(()=>import(`./reblogs-B1iKCsqH.js`),__vite__mapDeps([265,2,1,4,8,5,7,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,29,37,38,39,78,266,43,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,82,83,79,84,85,86,87,70,88,89,72,65,73,74,75,76,121,122,123,124,125,126,127,128]),import.meta.url)}function pt(){return o(()=>import(`./favourites-DA6wHzi7.js`),__vite__mapDeps([267,2,1,4,8,5,7,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,29,37,38,39,266,43,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,82,83,79,84,85,86,87,70,88,89,72,65,73,74,75,76,121,122,123,124,125,126,127,128]),import.meta.url)}function mt(){return o(()=>import(`./quotes-B76VfL9e.js`),__vite__mapDeps([268,2,1,4,7,8,5,9,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,36,29,37,38,39,266,43,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76,176,79,84,133,85,86,87,70,88,89,103,78,104,105,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180]),import.meta.url)}function ht(){return o(()=>import(`./follow_requests-yPDpb6UE.js`),__vite__mapDeps([269,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,29,37,38,39,78,241,242,79,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,118,72,65,73,74,75,76,121,122,123,124,125,126,127,128]),import.meta.url)}function gt(){return o(()=>import(`./favourited_statuses-BOCsx5bI.js`),__vite__mapDeps([270,2,1,4,8,5,7,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,29,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76,176,79,84,133,85,86,87,70,88,89,103,78,104,105,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,160]
2),import.meta.url)}function _t(){return o(()=>import(`./followed_tags-BdMzp6y6.js`),__vite__mapDeps([271,2,1,4,8,5,7,9,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,40,41,42,43,44,45,29,34,35,36,37,38,39,46,47,48,49,50,51,52,53,54,55,56,57,58,59,194,231,232,72,65,73,74,75,76,121,122,123,124,125,126,127,128]),import.meta.url)}function vt(){return o(()=>import(`./bookmarked_statuses-Dur1otxz.js`),__vite__mapDeps([272,2,1,4,8,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,36,29,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,224,72,65,73,74,75,76,176,79,84,133,85,86,87,70,88,89,103,78,104,105,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,160]),import.meta.url)}function yt(){return o(()=>import(`./blocks-D1EHicYh.js`),__vite__mapDeps([273,2,1,4,8,5,7,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,29,37,38,39,78,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,82,83,79,84,85,86,87,70,88,89,72,65,73,74,75,76,121,122,123,124,125,126,127,128,274]),import.meta.url)}function bt(){return o(()=>import(`./domain_blocks-BDr7XH8k.js`),__vite__mapDeps([275,2,1,4,8,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,40,41,42,43,44,45,29,34,35,36,37,38,39,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76,121,122,123,124,125,126,127,128,274]),import.meta.url)}function xt(){return o(()=>import(`./mutes-D5dUO3Ov.js`),__vite__mapDeps([276,2,1,4,8,5,7,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,29,37,38,39,78,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,88,82,83,79,84,85,86,87,70,89,72,65,73,74,75,76,121,122,123,124,125,126,127,128]),import.meta.url)}function St(){return o(()=>import(`./mute_modal-B1cOKGWC.js`),__vite__mapDeps([277,2,1,4,36,5,10,11,12,13,3,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,31,34,35,29,37,38,39,81,88,278,279,280,156,281,184]),import.meta.url)}function Ct(){return o(()=>import(`./block_modal-Dv9BSkyl.js`),__vite__mapDeps([282,2,1,4,36,5,10,11,12,13,3,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,31,34,35,29,37,38,39,81,116,87,156,184]),import.meta.url)}function wt(){return o(()=>import(`./domain_block_modal-B7FN0fGw.js`),__vite__mapDeps([283,2,1,4,36,5,10,11,12,13,3,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,34,35,29,31,37,38,39,246,156,184,284]),import.meta.url)}function Tt(){return o(()=>import(`./report_modal-BsgJQC-8.js`),__vite__mapDeps([285,2,1,4,36,5,10,11,12,13,3,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,34,35,29,31,37,38,39,78,79,53,54,286,280,287,288,289,49,50,51,52,55]),import.meta.url)}function Et(){return o(()=>import(`./local_settings-BIe35wbc.js`),__vite__mapDeps([290,2,1,4,7,36,5,10,11,12,13,3,6,8,9,14,15,16,17,18,19,20,21,22,23,24,31,34,35,29,37,38,39,78,53,54,226,102,291]),import.meta.url)}function Dt(){return o(()=>import(`./report_collection_modal-BLml0oSx.js`).then(e=>({default:e.ReportCollectionModal})),__vite__mapDeps([292,2,1,4,36,5,10,11,12,13,3,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,34,35,29,31,37,38,39,137,51,52,53,54,138,289,78,49,50,55,286,280]),import.meta.url)}function Ot(){return o(()=>import(`./ignore_notifications_modal-CAa0x-rv.js`),__vite__mapDeps([293,2,1,4,10,11,12,13,3,5,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,34,35,36,29,31,37,38,39,162,294]),import.meta.url)}function kt(){return o(()=>import(`./media_gallery-Cpo3DvCE.js`).then(e=>e.n),__vite__mapDeps([217,2,1,4,7,36,5,10,11,12,13,31,34,35,8,9,3,6,14,15,16,17,18,19,20,21,22,23,24,29,37,38,39,212,213,122,218,219,220]),import.meta.url)}function At(){return o(()=>import(`./video-DZdxgK1f.js`).then(e=>e.i),__vite__mapDeps([212,2,1,4,7,36,5,10,11,12,13,23,31,34,35,8,9,3,6,14,15,16,17,18,19,20,21,22,24,29,37,38,39,213,122]),import.meta.url)}function jt(){return o(()=>import(`./embed_modal-BvV9eBmz.js`),__vite__mapDeps([295,2,1,4,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,34,35,36,29,37,38,39,296,143]),import.meta.url)}function Mt(){return o(()=>import(`./list_adder-1ZU9tiZv.js`),__vite__mapDeps([297,2,1,4,36,5,10,11,12,13,3,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,34,35,29,31,37,38,39,49,50,51,52,53,54,55,136,203,141,48,56,57,142,143,68,135,90,91,93,78,94,144]),import.meta.url)}function Nt(){return o(()=>import(`./src-SuYvKHvm.js`).then(t=>e(t.default)),__vite__mapDeps([298,2]),import.meta.url)}function Pt(){return o(()=>import(`./audio-BL7RKyd7.js`).then(e=>e.n),__vite__mapDeps([214,2,1,4,7,36,5,10,11,12,13,23,31,34,35,8,9,3,6,14,15,16,17,18,19,20,21,22,24,29,37,38,39,215,213,212,122,80]),import.meta.url)}function Ft(){return o(()=>import(`./directory-DVDIQfNI.js`),__vite__mapDeps([299,2,1,4,7,8,5,9,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,36,29,37,38,39,79,84,41,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,70,72,65,73,74,75,76,123,124,128,155,160,281]),import.meta.url)}function It(){return o(()=>import(`./profile-BZdYRCHQ.js`),__vite__mapDeps([300,2,1,4,7,8,5,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,31,30,32,33,301,34,35,36,29,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76,102,141,142,143,68,135,90,91,93,78,94,144,248,302]),import.meta.url)}function Lt(){return o(()=>import(`./follows-D501vQop.js`),__vite__mapDeps([303,2,1,4,8,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,29,30,31,32,33,40,41,42,43,44,45,34,35,36,37,38,39,46,47,48,49,50,51,52,53,54,55,56,57,58,59,82,83,79,84,85,86,87,70,88,89,72,65,73,74,75,76,121,122,123,124,125,126,127,128,248,304]),import.meta.url)}function Rt(){return o(()=>import(`./compare_history_modal-BBQodIn2.js`),__vite__mapDeps([305,2,1,4,36,5,10,11,12,13,24,34,35,7,8,9,3,6,14,15,16,17,18,19,20,21,22,23,29,31,37,38,39,216,287,53,54,288]),import.meta.url)}function zt(){return o(()=>import(`./explore-DTYKs9Bn.js`),__vite__mapDeps([306,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,29,31,30,32,33,34,35,37,38,39,79,41,84,104,105,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,228,71,68,231,232,72,65,73,74,75,76,176,133,85,86,87,70,88,89,103,78,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180,189,307]),import.meta.url)}function Bt(){return o(()=>import(`./search-DtC2Pnrf.js`),__vite__mapDeps([308,2,1,4,8,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,34,35,36,29,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,68,116,70,82,83,79,84,85,86,87,88,89,71,194,231,232,72,65,73,74,75,76,103,78,104,105,60,66,102,106,107,108,121,122,123,124,125,126,127,128,130,131,132,133,134,135,136,100,137,138,139,140,141,142,143,90,91,93,94,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,309]),import.meta.url)}function Vt(){return o(()=>import(`./filter_modal-Eu3Ur9IW.js`),__vite__mapDeps([310,2,1,4,36,5,10,11,12,13,3,6,7,8,9,14,15,16,17,18,19,20,21,22,23,24,34,35,29,31,37,38,39,78,53,54,65,101]),import.meta.url)}function Ht(){return o(()=>
2import(`./interaction_modal-CI0_i-bF.js`),__vite__mapDeps([311,2,1,4,7,3,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,79,34,35,36,29,37,38,39,32,312,54]),import.meta.url)}function Ut(){return o(()=>import(`./subscribed_languages_modal-BsPx_G3a.js`),__vite__mapDeps([313,2,1,4,7,36,5,10,11,12,13,3,6,8,9,14,15,16,17,18,19,20,21,22,23,24,34,35,29,31,37,38,39,78,53,54,250,286,280]),import.meta.url)}function Wt(){return o(()=>import(`./closed_registrations_modal-BgCG776t.js`),__vite__mapDeps([314,1,2,4,7,10,11,12,13,3,5,6,8,9,14,15,16,17,18,19,20,21,22,23,24,53,54]),import.meta.url)}function Gt(){return o(()=>import(`./about-D5pmyev_.js`),__vite__mapDeps([315,2,1,4,7,8,5,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,31,30,32,33,34,35,29,37,38,39,78,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,82,83,79,84,85,86,87,70,88,89,316,218,219,220,317,233,234,318,141,142,143,68,135,90,91,93,94,144,319,320]),import.meta.url)}function Kt(){return o(()=>import(`./privacy_policy-CXE-ILRC.js`),__vite__mapDeps([321,2,1,4,8,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,31,30,32,33,39,40,41,42,43,44,45,29,34,35,36,37,38,46,47,48,49,50,51,52,53,54,55,56,57,58,59,139,319,320]),import.meta.url)}function qt(){return o(()=>import(`./terms_of_service-i4m7IlDx.js`),__vite__mapDeps([322,2,1,4,8,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,29,31,30,32,33,40,41,42,43,44,45,34,35,36,37,38,39,46,47,48,49,50,51,52,53,54,55,56,57,58,59,198,142,143,131,132,133,134,199,319,320]),import.meta.url)}function Jt(){return o(()=>import(`./requests--mPdzz5e.js`),__vite__mapDeps([323,2,1,4,8,5,7,9,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,29,31,30,32,33,34,35,36,37,38,39,79,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,72,65,73,74,75,76,200,278,279,280,121,122,123,124,125,126,127,128,166,162,168,167,98]),import.meta.url)}function Yt(){return o(()=>import(`./request-D6VNSHza.js`),__vite__mapDeps([324,2,1,4,8,5,7,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,31,30,32,33,34,35,29,37,38,39,78,79,105,104,44,43,325,40,41,42,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,117,82,83,84,85,86,87,70,88,89,72,65,73,74,75,76,103,60,66,102,106,107,108,200,280,121,122,123,124,125,126,127,128,162,163,326,164]),import.meta.url)}function Xt(){return o(()=>import(`./link_timeline-Box-Tlny.js`),__vite__mapDeps([327,2,1,8,4,5,7,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,30,31,32,33,40,41,42,43,44,45,29,34,35,36,37,38,39,46,47,48,49,50,51,52,53,54,55,56,57,58,59,228,72,65,73,74,75,76,175,176,79,84,133,85,86,87,70,88,89,103,78,104,105,60,66,102,106,107,108,177,178,179,120,121,122,123,124,125,126,127,128,180]),import.meta.url)}function Zt(){return o(()=>import(`./modal-BMRktC9R.js`),__vite__mapDeps([328,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,229,230,329,36,34,35,29,37,38,39,79,103,78,104,105,53,54,60,66,102,106,107,108,330,181,182]),import.meta.url)}function Qt(){return o(()=>import(`./new-BP7BXqkh.js`),__vite__mapDeps([331,2,1,4,8,5,7,9,36,10,11,12,13,3,6,14,15,16,17,18,19,20,21,22,23,24,28,29,30,31,32,33,34,35,37,38,39,113,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,136,72,65,73,74,75,76,141,142,143,68,135,90,91,93,78,94,144,153]),import.meta.url)}function $t(){return o(()=>import(`./members-4SL0_pvg.js`),__vite__mapDeps([332,2,1,4,7,8,5,9,3,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,29,30,31,32,33,34,35,36,37,38,39,83,79,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,85,86,87,70,88,89,136,72,65,73,74,75,76,121,122,123,124,125,126,127,128,154,140,204,304]),import.meta.url)}d();var V=e=>(0,w.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,w.jsx)(`path`,{d:`M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z`})}),H=e=>{e.currentTarget.style.display=`none`},en=({account:e,friend:t,size:n=46,baseSize:r=36,overlaySize:i=24})=>{let{hovering:a,handleMouseEnter:o,handleMouseLeave:s}=ue(c),l=a?e?.avatar:e?.avatar_static,u=a?t?.avatar:t?.avatar_static;return(0,w.jsxs)(`div`,{className:`account__avatar-overlay`,style:{width:n,height:n},onMouseEnter:o,onMouseLeave:s,children:[(0,w.jsx)(`div`,{className:`account__avatar-overlay-base`,children:(0,w.jsx)(`div`,{className:`account__avatar`,
2style:{width:`${r}px`,height:`${r}px`},"data-avatar-of":`@${e?.acct}`,children:l&&(0,w.jsx)(`img`,{src:l,alt:e?.acct,onError:H})})}),(0,w.jsx)(`div`,{className:`account__avatar-overlay-overlay`,children:(0,w.jsx)(`div`,{className:`account__avatar`,style:{width:`${i}px`,height:`${i}px`},"data-avatar-of":`@${t?.acct}`,children:u&&(0,w.jsx)(`img`,{src:u,alt:t?.acct,onError:H})})})]})},tn=`REPORT_SUBMIT_REQUEST`,nn=`REPORT_SUBMIT_SUCCESS`,rn=`REPORT_SUBMIT_FAIL`,an=(e,t)=>n=>n(ie({modalType:`REPORT`,modalProps:{accountId:e.get(`id`),statusId:t?.get(`id`)}})),on=(e,t,n)=>r=>{r(sn()),re().post(`/api/v1/reports`,e).then(e=>{r(cn(e.data)),t&&t()}).catch(e=>{r(ln(e)),n&&n()})},sn=()=>({type:tn}),cn=e=>({type:nn,report:e}),ln=e=>({type:rn,error:e}),un=e=>(0,w.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,w.jsx)(`path`,{d:`M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm40-80h480L570-480 450-320l-90-120-120 160Zm-40 80v-560 560Z`})}),dn=({aspectRatio:e})=>{let t=_(),n=(0,C.useCallback)(()=>{t(ee())},[t]),i=(0,C.useCallback)(e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),n())},[n]);return(0,w.jsxs)(`div`,{className:`picture-in-picture-placeholder`,style:{aspectRatio:e},role:`button`,tabIndex:0,onClick:n,onKeyDownCapture:i,children:[(0,w.jsx)(S,{id:``,icon:be}),(0,w.jsx)(r,{id:`picture_in_picture.restore`,defaultMessage:`Put it back`})]})},fn=()=>null,U=class e extends C.PureComponent{constructor(...t){super(...t),g(this,`state`,{mod:void 0,forceRender:!1}),g(this,`load`,t=>{let{fetchComponent:n,renderDelay:r}=t||this.props,i=e.cache.get(n);return n===void 0?(this.setState({mod:null}),Promise.resolve()):i?(this.setState({mod:i.default}),Promise.resolve()):(this.setState({mod:void 0}),r!==0&&(this.timestamp=new Date,this.timeout=setTimeout(()=>this.setState({forceRender:!0}),r)),n().then(t=>{e.cache.set(n,t),this.setState({mod:t.default})}).catch(e=>{console.error(`Bundle fetching error:`,e),this.setState({mod:null})}))})}componentDidMount(){this.load(this.props)}componentDidUpdate(e){e.fetchComponent!==this.props.fetchComponent&&this.load(this.props)}componentWillUnmount(){this.timeout&&clearTimeout(this.timeout)}render(){let{loading:e,error:t,children:n,renderDelay:r}=this.props,{mod:i,forceRender:a}=this.state,o=this.timestamp?new Date-this.timestamp:r;return i===void 0?o>=r||a?(0,w.jsx)(e,{}):null:i===null?(0,w.jsx)(t,{onRetry:this.load}):n(i)}};g(U,`defaultProps`,{loading:fn,error:fn,renderDelay:0}),g(U,`cache`,new Map);var pn=e(xe()),mn=e(Se()),W=3;function hn(e){return(e&&e.startsWith(`#`)?e.slice(1):e).normalize(`NFKC`)}function gn(e){return e instanceof HTMLAnchorElement&&(e.textContent.startsWith(`#`)||e.previousSibling?.textContent?.[e.previousSibling.textContent.length-1]===`#`)}function _n(e){let t=(0,pn.default)(e,e=>e.normalize(`NFKD`).toLowerCase());return Object.values(t).map(e=>{let t=e[0];return e.length===1?t:(0,mn.default)(e,e=>{let t=Array.from(e).reduce((e,t)=>e+=+(t.toUpperCase()===t),0),n=e.length-t;return Math.abs(n-t)})??t})}var vn=new Intl.Collator(void 0,{sensitivity:`base`});function G(e,t){let n=t.normalize(`NFKC`);return!!e.find(e=>vn.compare(e.normalize(`NFKC`),n)===0)}function yn(e){let t=e.translation?.contentHtml??e.contentHtml,n=e.tags.map(e=>e.name),r={statusContent:t,hashtagsInBar:[]};if(n.length===0)return r;let i=document.createElement(`template`);i.innerHTML=t.trim();let a=i.content.lastChild;if(!a||a.nodeType===Node.TEXT_NODE)return r;i.content.removeChild(a);let o=i,s=Array.from(o.content.querySelectorAll(`a[href]`)).reduce((e,t)=>(gn(t)&&t.textContent&&e.push(hn(t.textContent)),e),[]),c=[],l=!0,u=n.map(e=>e.normalize(`NFKC`));Array.from(a.childNodes).forEach(e=>{if(gn(e)&&e.textContent){let t=hn(e.textContent);if(!G(u,t)){l=!1;return}G(s,t)||c.push(t)}else(e.nodeType!==Node.TEXT_NODE||e.nodeValue?.trim())&&(l=!1)});let d=n.filter(e=>{let t=e.normalize(`NFKC`);return!G(s,t)&&!G(c,t)}),f=o.content.childElementCount===0,p=e.media_attachments.length>0,m=!!e.spoiler_text;return l&&(p&&!m||!f)&&(t=o.innerHTML,d.push(...c)),{statusContent:t,hashtagsInBar:_n(d)}}function bn(e){let{statusContent:t,hashtagsInBar:n}=yn({tags:e.get(`tags`).toJS(),media_attachments:e.get(`media_attachments`).toJS(),spoiler_text:e.get(`spoiler_text`),translation:e.get(`translation`)?.toJSON(),contentHtml:e.get(`contentHtml`)});return{statusContentProps:{statusContent:t},hashtagBar:(0,w.jsx)(xn,{hashtags:n,accountId:e.getIn([`account`,`id`])})}}var xn=({hashtags:e,accountId:t})=>{let[n,i]=(0,C.useState)(!1),a=(0,C.useCallback)(()=>{i(!0)},[]);if(e.length===0)return null;let o=n?e:e.slice(0,W);return(0,w.jsxs)(`div`,{className:`hashtag-bar`,children:[o.map(e=>(0,w.jsxs)(b,{to:`/tags/${e}`,"data-menu-hashtag":t,children:[`#`,(0,w.jsx)(`span`,{children:e})]},e)),!n&&e.length>W&&(0,w.jsx)(`button`,{className:`link-button`,onClick:a,type:`button`,children:(0,w.jsx)(r,{id:`hashtags.and_other`,defaultMessage:`…and {count, plural, other {# more}}`,values:{count:e.length-W}})})]})}
2,K=`/settings/preferences`,Sn=e=>`/admin/accounts/${e}`,Cn=(e,t)=>`/admin/accounts/${e}/statuses/${t}`,wn=e=>{switch(e){case`user_setting_expand_spoilers`:case`user_setting_disable_swiping`:return`/settings/preferences/appearance#${e}`;default:return K}};function Tn(e){let t=v(t=>!!t.settings.getIn([`dismissed_banners`,e],!1)),n=!!y.get(e)||t,r=_(),i=(0,C.useCallback)(()=>{y.set(e,!0),r(h([`dismissed_banners`,e],!0))},[e,r]);return(0,C.useEffect)(()=>{n&&!t&&r(h([`dismissed_banners`,e],!0))},[e,r,n,t]),{wasDismissed:n,dismiss:i}}var En={inlineIcon:`_comp_status_action_bar_remove_quote_hint__inlineIcon`},Dn=`notifications/remove_quote_hint`,q=null,On=({canShowHint:e,className:t,children:n})=>{let[a,o]=(0,C.useState)(null),s=i(),{wasDismissed:c,dismiss:l}=Tn(Dn),u=!c&&e,d=(0,C.useId)(),[f,p]=(0,C.useState)(!1);return(0,C.useEffect)(()=>u?(q||(q=d,p(!0)),()=>{q===d&&(q=null,p(!1))}):()=>null,[u,d]),(0,w.jsxs)(`div`,{className:t,ref:o,children:[n(l),u&&f&&(0,w.jsx)(ge,{isOpen:!0,offset:{mainAxis:10,crossAxis:12},placement:`bottom-end`,reference:a,container:a,onClose:l,children:({props:e,placement:t})=>(0,w.jsxs)(`div`,{...e,className:(0,F.default)(`info-tooltip info-tooltip--solid dropdown-animation`,t),children:[(0,w.jsx)(`h4`,{children:(0,w.jsx)(r,{id:`remove_quote_hint.title`,defaultMessage:`Want to remove your quoted post?`})}),(0,w.jsx)(r,{id:`remove_quote_hint.message`,defaultMessage:`You can do so from the {icon} options menu.`,values:{icon:(0,w.jsx)(S,{id:`ellipsis-h`,icon:ye,"aria-label":s.formatMessage({id:`status.more`,defaultMessage:`More`}),className:En.inlineIcon})},children:e=>(0,w.jsx)(`p`,{children:e})}),(0,w.jsx)(r,{id:`remove_quote_hint.button_label`,defaultMessage:`Got it`,children:e=>(0,w.jsx)(z,{plain:!0,compact:!0,onClick:l,children:e})})]})})]})};function J(e,t){try{let n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname===r.pathname&&n.search===r.search}catch{return!1}}var kn=706;function An(e){return e.getIn([`translation`,`contentHtml`])||e.get(`contentHtml`)}var jn=class extends C.PureComponent{render(){let{translation:e,onClick:t}=this.props;if(e&&!e.get(`isLoading`)){let n=l.find(t=>t[0]===e.get(`detected_source_language`)),i=n?n[1]:e.get(`detected_source_language`),a=e.get(`provider`);return(0,w.jsxs)(`div`,{className:`translate-button`,children:[(0,w.jsx)(`button`,{className:`link-button`,onClick:t,children:(0,w.jsx)(r,{id:`status.show_original`,defaultMessage:`Show original`})}),(0,w.jsx)(`div`,{className:`translate-button__meta`,children:(0,w.jsx)(r,{id:`status.translated_from_with`,defaultMessage:`Translated from {lang} using {provider}`,values:{lang:i,provider:a}})})]})}return(0,w.jsx)(`button`,{className:`status__content__translate-button`,onClick:t,children:(0,w.jsx)(r,{id:`status.translate`,defaultMessage:`Translate`})})}},Mn=e=>({languages:e.server.translationLanguages.item}),Nn=class extends C.PureComponent{constructor(...e){super(...e),g(this,`handleMouseDown`,e=>{this.startXY=[e.clientX,e.clientY]}),g(this,`handleMouseUp`,e=>{if(!this.startXY)return;let[t,n]=this.startXY,[r,i]=[Math.abs(e.clientX-t),Math.abs(e.clientY-n)],a=e.target;for(;a!==e.currentTarget;){if([`button`,`video`,`a`,`label`,`canvas`].includes(a.localName)||a.getAttribute(`role`)===`button`)return;a=a.parentNode}r+i<5&&(e.button===0||e.button===1)&&e.detail>=1&&this.props.onClick&&this.props.onClick(e),this.startXY=null}),g(this,`handleTranslate`,()=>{this.props.onTranslate()}),g(this,`setRef`,e=>{this.node=e}),g(this,`handleElement`,(e,{key:t,...n},r)=>{if(e instanceof HTMLAnchorElement){let i=this.props.status.get(`mentions`).find(t=>J(e.href,t.get(`url`))),a=this.props.status.get(`tagged_collections`).find(t=>J(e.href,t.get(`url`)));return(0,C.createElement)(R,{...n,href:e.href,text:e.innerText,hashtagAccountId:this.props.status.getIn([`account`,`id`]),mention:i?.toJSON(),collectionId:a?.get(`id`),key:t},r)}if(e.classList.contains(`quote-inline`)&&this.props.status.get(`quote`))return null})}_updateStatusLinks(){let e=this.node;if(!e)return;let{status:t,onCollapsedToggle:n}=this.props;if(t.get(`collapsed`,null)===null&&n){let{collapsible:r,onClick:i}=this.props,a=e.querySelector(`:scope > .status__content__text`);n(r&&i&&(e.clientHeight>kn||a!==null&&a.scrollWidth>a.clientWidth)&&t.get(`spoiler_text`).length===0)}}componentDidMount(){this._updateStatusLinks()}componentDidUpdate(){this._updateStatusLinks()}render(){let{status:e,intl:t,statusContent:n}=this.props,i=this.props.onClick&&e.get(`collapsed`),a=t.locale.replace(/[_-].*/,``),o=this.props.languages?.[e.get(`language`)||`und`],s=this.props.onTranslate&&this.props.identity.signedIn&&[`public`,`unlisted`].includes(e.get(`visibility`))&&e.get(`search_index`).trim().length>0&&o?.includes(a),c=n??An(e),l=e.getIn([`translation`,`language`])||e.get(`language`),u=(0,F.default)(`status__content`,{"status__content--with-action":this.props.onClick&&this.props.history,"status__content--collapsed":i}),d=i&&(0,w.jsxs)(`button`,{className:`status__content__read-more-button`,onClick:this.props.onClick,children:[(0,w.jsx)(r,{id:`status.read_more`,defaultMessage:`Read more`}),(0,w.jsx)(S,{id:`angle-right`,icon:p})]},`read-more`),f=s&&(0,w.jsx)(jn,{onClick:this.handleTranslate,translation:e.get(`translation`)}),m=!!e.get(`poll`)&&(0,w.jsx)(he,{pollId:e.get(`poll`),statusUrl:e.get(`uri`),accountId:e.getIn([`account`,`id`]),lang:l});return this.props.onClick?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(`div`,{className:u,ref:this.setRef,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,children:[(0,w.jsx)(x,{className:`status__content__text status__content__text--visible translate`,lang:l,htmlString:c,extraEmojis:e.get(`emojis`),onElement:this.handleElement}),m,f]},`status-content`),d]}):(0,w.jsxs)(`div`,{className:u,ref:this.setRef,children:[(0,w.jsx)(x,{className:`status__content__text status__content__text--visible translate`,lang:l,htmlString:c,extraEmojis:e.get(`emojis`),onElement:this.handleElement}),m,f]})}},Pn=ne(oe(m(Mn)(_e(Nn)))),Y=a({public_short:{id:`privacy.public.short`,defaultMessage:`Public`},unlisted_short:{id:`privacy.unlisted.short`,defaultMessage:`Quiet public`},private_short:{id:`privacy.private.short`,defaultMessage:`Followers`},direct_short:{id:`privacy.direct.short`,defaultMessage:`Specific people`}}),Fn=({visibility:e})=>{let t=i(),n={public:{icon:`globe`,iconComponent:ve,text:t.formatMessage(Y.public_short)},unlisted:{icon:`unlock`,iconComponent:Ce,text:t.formatMessage(Y.unlisted_short)},private:{icon:`lock`,iconComponent:Te,text:t.formatMessage(Y.private_short)},direct:{icon:`envelope`,iconComponent:V,text:t.formatMessage(Y.direct_short)}}[e];return(0,w.jsx)(S,{id:n.icon,icon:n.iconComponent,"aria-label":n.text,className:`status__visibility-icon`})},X={wrapper:`_comp_list_item__wrapper`,main:`_comp_list_item__main`,title:`_comp_list_item__title`,subtitle:`_comp_list_item__subtitle`,sideContent:`_comp_list_item__sideContent`,icon:`_comp_list_item__icon`},In=({icon:e,sideContent:t,children:n,className:r,...i})=>(0,w.jsxs)(`div`,{...i,className:(0,F.default)(X.wrapper,r),children:[e,(0,w.jsx)(`div`,{className:X.main,children:n}),t&&(0,w.jsx)(`span`,{className:X.sideContent,children:t})]}),Z=u(({as:e=`h3`,subtitle:t,subtitleId:n,children:r,...i},a)=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(e,{className:X.title,ref:a,...i,children:r}),t&&(0,w.jsx)(`div`,{className:X.subtitle,id:n,children:t})]})),Ln=u(({as:e,subtitle:t,subtitleId:n,children:r,className:i,...a},o)=>(0,w.jsx)(Z,{ref:o,as:e,subtitle:t,subtitleId:n,children:(0,w.jsx)(b,{className:(0,F.default)(i,`focusable`),...a,children:r})})),Rn=u(({as:e,subtitle:t,subtitleId:n,children:r,className:i,...a},o)=>(0,w.jsx)(Z,{as:e,ref:o,subtitle:t,subtitleId:n,children:(0,w.jsx)(`button`,{type:`button`,className:(0,F.default)(i,`focusable`),...a,children:r})})),Q={wrapper:`_collections_components_collection_lockup__wrapper`,avatarGrid:`_collections_components_collection_lockup__avatarGrid`,avatarGridSensitive:`_collections_components_collection_lockup__avatarGridSensitive`,avatar:`_collections_components_collection_lockup__avatar`,avatarSensitiveBadge:`_collections_components_collection_lockup__avatarSensitiveBadge`},zn=({accountIds:e,sensitive:t})=>{let n=[e[0],e[1],e[2],e[3]];return(0,w.jsxs)(`div`,{className:(0,F.default)(Q.avatarGrid,t?Q.avatarGridSensitive:null),children:[n.map((e,t)=>(0,w.jsx)(le,{animate:!1,accountId:e,className:Q.avatar,size:25},t)),t&&(0,w.jsx)(we,{className:Q.avatarSensitiveBadge})]})},Bn=({collection:e,withAuthorHandle:t=!0,withTimestamp:n,sideContent:r,headingLevel:i=`h3`,titleId:a,subtitleId:o,className:s})=>{let{id:c,name:l}=e;return(0,w.jsx)(In,{className:(0,F.default)(Q.wrapper,s),icon:(0,w.jsx)(zn,{accountIds:e.items.map(e=>e.account_id),sensitive:e.sensitive}),sideContent:r,children:(0,w.jsx)(Ln,{as:i,to:I(c),id:a,subtitle:(0,w.jsx)(Vn,{collection:e,withAuthorHandle:t,withTimestamp:n}),subtitleId:o,children:l})})},Vn=({collection:e,withAuthorHandle:t,withTimestamp:n})=>{let i=ce(e.account_id),a=se(i,s);return(0,w.jsxs)(`ul`,{children:[e.sensitive&&(0,w.jsx)(`li`,{className:`sr-only`,children:(0,w.jsx)(r,{id:`collections.sensitive`,defaultMessage:`Sensitive`})}),t&&i&&(0,w.jsx)(r,{id:`collections.by_account`,defaultMessage:`by {account_handle}`,values:{account_handle:a},tagName:`li`}),(0,w.jsx)(r,{id:`collections.account_count`,defaultMessage:`{count, plural, one {# account} other {# accounts}}`,values:{count:e.item_count},tagName:`li`}),n&&(0,w.jsx)(r,{id:`collections.last_updated_at`,defaultMessage:`Last updated: {date}`,values:{date:(0,w.jsx)(fe,{timestamp:e.updated_at,long:!0})},tagName:`li`})]})},$={wrapper:`_collections_components_collection_preview_card__wrapper`,removeButton:`_collections_components_collection_preview_card__removeButton`},Hn=({collection:e,onRemove:t,...n})=>{let r=i(),a=t&&(0,w.jsx)(de,{icon:`remove`,iconComponent:f,onClick:t,title:r.formatMessage({id:`tag.remove`,defaultMessage:`Remove`}),className:$.removeButton});return(0,w.jsx)(Bn,{collection:e,className:(0,F.default)($.wrapper,`collection-
2preview`),sideContent:a,...n})};export{pt as $,E as $t,st as A,Dt as At,$e as B,Be as Bt,an as C,We as Ct,Gt as D,Ke as Dt,V as E,Kt as Et,Ct as F,Ut as Ft,Qe as G,Ne as Gt,qe as H,Ve as Ht,yt as I,qt as It,bt as J,Me as Jt,Ft as K,Pe as Kt,vt as L,Nt as Lt,at as M,Bt as Mt,Zt as N,Et as Nt,ct as O,mt as Ot,Pt as P,nt as Pt,gt as Q,Oe as Qt,Wt as R,At as Rt,un as S,Jt as St,en as T,It as Tt,Rt as U,z as Ut,tt as V,ze as Vt,Ue as W,Le as Wt,He as X,Ee as Xt,jt as Y,D as Yt,zt as Z,De as Zt,Cn as _,Ze as _t,Rn as a,dt as at,U as b,xt as bt,In as c,Ge as ct,J as d,it as dt,Vt as et,On as f,Xt as ft,K as g,Xe as gt,wn as h,$t as ht,Bn as i,ut as it,ot as j,Tt as jt,lt as k,ft as kt,Fn as l,Ot as lt,Sn as m,Qt as mt,zn as n,ht as nt,Z as o,rt as ot,Tn as p,Mt as pt,wt as q,I as qt,Vn as r,_t as rt,Ln as s,Ye as st,Hn as t,Je as tt,Pn as u,Ht as ut,yn as v,kt as vt,on as w,Lt as wt,dn as x,Yt as xt,bn as y,St as yt,et as z,Re as zt};
3//# sourceMappingURL=collection_preview_card-CKqYJ3tn.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.