diff --git a/README.md b/README.md deleted file mode 100644 index 513d64f..0000000 --- a/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# Phanpy - Fork projektu - -Toto je fork projektu [Phanpy](https://github.com/cheeaun/phanpy)., minimalistického webového klienta pro Mastodon. Cílem tohoto forku je pracovat na různých vylepšeních a úpravách. - -## Popis - -Phanpy je minimalistický a názorový webový klient pro Mastodon. Tento fork byl vytvořen, aby umožnil další experimenty a úpravy projektu. - -## Funkce - -- 👪 Podpora více účtů -- 🪟 Vyskakovací a zasouvací okno pro psaní příspěvků -- 🌗 Světlý/tmavý/automatický režim -- 🔔 Seskupené notifikace -- 🪺 Vnořené vlákna komentářů -- 📬 Obnova neodeslaných konceptů -- 🎠 Karusel pro boosty™️ -- ⚡ Zkratky™️ s režimy zobrazení jako multi-sloupcový nebo s tabulkovým panelem -- #️⃣ Časová osa s více hashtagy - -## Vylepšení - -- Akce u statusů (odpovědět, boost, oblíbené, záložka, atd.) jsou ve výchozím nastavení skryté. -- Objevují se pouze na individuální stránce statusu. Toto je zamýšleno ke snížení nepořádku a rozptylování. Může to vést k nižší angažovanosti, ale nehoníme se za čísly. -- Boost je reprezentován ikonou rakety. -- Zelená dvojitá šipka (retweet pro Twitter) neodpovídá termínu "boost". Zelená raketa vypadá divně, takže používám fialovou. -- Krátká uživatelská jména (@username) jsou zobrazena v časové ose místo úplného uživatelského jména (@username@instance). -- Navzdory zmíněné směrnici, že "decentralizace musí být uživateli transparentní", nemyslím si, že bychom to měli uživateli cpát do tváře pokaždé. Existují také některé problémy s přístupností pro čtečky obrazovky s úplným uživatelským jménem, ačkoli tato webová aplikace bohužel ještě není přístupná. -- Žádné automatické přehrávání videí/GIFů/čehokoliv v časové ose. -- Časová osa je již velký nepořádek s mnoha lidmi, značkami, zprávami a médii, které se snaží upoutat vaši pozornost. Nezhoršujme to. (Současná výjimka jsou animované emoji.) -- URL založené na hashe. -- Tato webová aplikace není zamýšlena jako plnohodnotná náhrada za stávající front-end Mastodonu. Neexistuje zde žádné SEO, databáze, serverless nebo jakékoliv dlouhodobě běžící servery. Možná se jednou mýlím. - -## Instalace - -Postup instalace a používání této verze je stejný jako u původního projektu. Další informace najdete v původní dokumentaci [zde](https://github.com/cheeaun/phanpy). - -## Licence - -Tento projekt je licencován pod licencí MIT. Původní autor projektu je Lim Chee Aun. Úpravy a experimenty provádí [Archos]. - -## Poznámka - -Tento fork byl vytvořen za účelem dalšího vývoje a experimentů s projektem Phanpy. Pokud máte jakékoliv dotazy nebo připomínky, neváhejte nás kontaktovat. diff --git a/_headers b/_headers index bfac504..e85430f 100644 --- a/_headers +++ b/_headers @@ -1,2 +1,2 @@ / - Link: ; rel=preload; as=style \ No newline at end of file + Link: ; rel=preload; as=style \ No newline at end of file diff --git a/assets/ICONS-C5h6VnP9.js b/assets/ICONS-C5h6VnP9.js new file mode 100644 index 0000000..9e261a7 --- /dev/null +++ b/assets/ICONS-C5h6VnP9.js @@ -0,0 +1,2 @@ +import{K as r}from"./pwa-viewport-7HQOd5MC.js";const t={x:()=>r(()=>import("./icons/close-line-Bfj902o4.js"),[],import.meta.url),heart:()=>r(()=>import("./icons/heart-line-vi3QqJTo.js"),[],import.meta.url),bookmark:()=>r(()=>import("./icons/bookmark-line-BMGZc_Mc.js"),[],import.meta.url),"check-circle":()=>r(()=>import("./icons/check-circle-line-CSlVj8QA.js"),[],import.meta.url),"x-circle":()=>r(()=>import("./icons/close-circle-line-DlCWcUwK.js"),[],import.meta.url),transfer:()=>r(()=>import("./icons/transfer-4-line-BHXBUumZ.js"),[],import.meta.url),rocket:()=>r(()=>import("./icons/rocket-line-B7gBxy4I.js"),[],import.meta.url),"arrow-left":{module:()=>r(()=>import("./icons/arrow-left-line-BGgZ0udH.js"),[],import.meta.url),rtl:!0},"arrow-right":{module:()=>r(()=>import("./icons/arrow-right-line-zKtS4vm5.js"),[],import.meta.url),rtl:!0},"arrow-up":()=>r(()=>import("./icons/arrow-up-line-Bow_AQZ6.js"),[],import.meta.url),"arrow-down":()=>r(()=>import("./icons/arrow-down-line-RSwsrALM.js"),[],import.meta.url),earth:()=>r(()=>import("./icons/world-2-line-BqQ1RIgL.js"),[],import.meta.url),lock:()=>r(()=>import("./icons/lock-line-BbTC1fux.js"),[],import.meta.url),unlock:()=>r(()=>import("./icons/unlock-line-CGrzBxul.js"),[],import.meta.url),"eye-close":()=>r(()=>import("./icons/eye-close-line-DQnawnJE.js"),[],import.meta.url),"eye-open":()=>r(()=>import("./icons/eye-2-line-Dvog5oyl.js"),[],import.meta.url),message:()=>r(()=>import("./icons/mail-line-Cadg2cpP.js"),[],import.meta.url),comment:{module:()=>r(()=>import("./icons/chat-3-line-C4e7R0Zy.js"),[],import.meta.url),rtl:!0},comment2:{module:()=>r(()=>import("./icons/comment-2-line-DfD-95ou.js"),[],import.meta.url),rtl:!0},home:()=>r(()=>import("./icons/home-3-line-BLD1YYP8.js"),[],import.meta.url),notification:()=>r(()=>import("./icons/notification-line-Cc2m6sh5.js"),[],import.meta.url),follow:()=>r(()=>import("./icons/user-follow-line-CsL-DB1N.js"),[],import.meta.url),"follow-add":()=>r(()=>import("./icons/user-add-line-DuegJyfy.js"),[],import.meta.url),poll:[()=>r(()=>import("./icons/chart-bar-line-W9BuvVdR.js"),[],import.meta.url),"90deg"],pencil:()=>r(()=>import("./icons/pencil-line-BwUdLENj.js"),[],import.meta.url),quill:()=>r(()=>import("./icons/quill-pen-line-oAx8SSeF.js"),[],import.meta.url),at:()=>r(()=>import("./icons/at-line-C4-OGRKX.js"),[],import.meta.url),attachment:()=>r(()=>import("./icons/attachment-line-C4ysC1zZ.js"),[],import.meta.url),upload:()=>r(()=>import("./icons/upload-3-line-BB2RA_2Z.js"),[],import.meta.url),gear:()=>r(()=>import("./icons/settings-3-line-BGrM7a5R.js"),[],import.meta.url),more:()=>r(()=>import("./icons/more-3-line-WfszpsFu.js"),[],import.meta.url),more2:()=>r(()=>import("./icons/more-1-fill-Cnnj9cLP.js"),[],import.meta.url),external:{module:()=>r(()=>import("./icons/external-link-line-BYXsdcMa.js"),[],import.meta.url),rtl:!0},popout:{module:()=>r(()=>import("./icons/external-link-line-BYXsdcMa.js"),[],import.meta.url),rtl:!0},popin:{module:()=>r(()=>import("./icons/external-link-line-BYXsdcMa.js"),[],import.meta.url),rotate:"180deg",rtl:!0},plus:()=>r(()=>import("./icons/add-circle-line-VUOz5dLS.js"),[],import.meta.url),"chevron-left":{module:()=>r(()=>import("./icons/left-line-8vYaPuok.js"),[],import.meta.url),rtl:!0},"chevron-right":{module:()=>r(()=>import("./icons/right-line-E80CeS1Q.js"),[],import.meta.url),rtl:!0},"chevron-down":()=>r(()=>import("./icons/down-line-PlS1iUy8.js"),[],import.meta.url),reply:{module:()=>r(()=>import("./icons/share-forward-line-DX1QbiUu.js"),[],import.meta.url),rotate:"180deg",flip:"horizontal",rtl:!0},thread:()=>r(()=>import("./icons/route-line-D10jSVCO.js"),[],import.meta.url),group:{module:()=>r(()=>import("./icons/group-line-Cw2Phg9p.js"),[],import.meta.url),rtl:!0},bot:()=>r(()=>import("./icons/android-2-line-C7qVwx2U.js"),[],import.meta.url),menu:()=>r(()=>import("./icons/rows-4-line-DIXu-DVG.js"),[],import.meta.url),list:{module:()=>r(()=>import("./icons/list-check-line-BaMf8v8i.js"),[],import.meta.url),rtl:!0},search:()=>r(()=>import("./icons/search-2-line-CoCbFBVR.js"),[],import.meta.url),hashtag:()=>r(()=>import("./icons/hashtag-line-Cml-0qv2.js"),[],import.meta.url),info:()=>r(()=>import("./icons/information-line-Dn255DD5.js"),[],import.meta.url),shortcut:()=>r(()=>import("./icons/lightning-line-cvW5NR-M.js"),[],import.meta.url),user:()=>r(()=>import("./icons/user-4-line-C89P3h09.js"),[],import.meta.url),following:()=>r(()=>import("./icons/walk-line-BZwRwcxJ.js"),[],import.meta.url),pin:()=>r(()=>import("./icons/pin-line-BqseDe3t.js"),[],import.meta.url),unpin:[()=>r(()=>import("./icons/pin-line-BqseDe3t.js"),[],import.meta.url),"180deg"],bus:()=>r(()=>import("./icons/bus-2-line-CfBaNBAi.js"),[],import.meta.url),link:()=>r(()=>import("./icons/link-2-line-SnIkQ_rZ.js"),[],import.meta.url),history:()=>r(()=>import("./icons/history-line-Bi2So-je.js"),[],import.meta.url),share:()=>r(()=>import("./icons/share-2-line-C2byQ30z.js"),[],import.meta.url),sparkles:()=>r(()=>import("./icons/sparkles-line-DWyRj8uB.js"),[],import.meta.url),sparkles2:()=>r(()=>import("./icons/sparkles-2-line-H731KO3v.js"),[],import.meta.url),exit:{module:()=>r(()=>import("./icons/exit-line-NjC63GxM.js"),[],import.meta.url),rtl:!0},translate:()=>r(()=>import("./icons/translate-line-cdOWN72F.js"),[],import.meta.url),play:()=>r(()=>import("./icons/play-fill-D1o3ePO2.js"),[],import.meta.url),trash:()=>r(()=>import("./icons/delete-2-line-C-lQIJNC.js"),[],import.meta.url),mute:{module:()=>r(()=>import("./icons/volume-mute-line-BluUkhVT.js"),[],import.meta.url),rtl:!0},unmute:{module:()=>r(()=>import("./icons/volume-line-dtC5ZFr8.js"),[],import.meta.url),rtl:!0},block:()=>r(()=>import("./icons/forbid-circle-line-f_JQE7a8.js"),[],import.meta.url),unblock:[()=>r(()=>import("./icons/forbid-circle-line-f_JQE7a8.js"),[],import.meta.url),"180deg"],flag:()=>r(()=>import("./icons/flag-1-line-sWzx_4o4.js"),[],import.meta.url),time:()=>r(()=>import("./icons/time-line-CHAmvUdg.js"),[],import.meta.url),refresh:()=>r(()=>import("./icons/refresh-2-line-B3CD5yz0.js"),[],import.meta.url),emoji2:()=>r(()=>import("./icons/emoji-2-line-DODV8bnC.js"),[],import.meta.url),filter:()=>r(()=>import("./icons/filter-2-line-DLBEPhKS.js"),[],import.meta.url),filters:()=>r(()=>import("./icons/filter-line-CuUlgBZU.js"),[],import.meta.url),chart:()=>r(()=>import("./icons/chart-line-line-noCpZUdN.js"),[],import.meta.url),react:()=>r(()=>import("./icons/react-line-C6TecPWI.js"),[],import.meta.url),layout4:{module:()=>r(()=>import("./icons/layout-4-line-BFFb1cPy.js"),[],import.meta.url),rtl:!0},layout5:()=>r(()=>import("./icons/layout-5-line-tauINoiF.js"),[],import.meta.url),announce:{module:()=>r(()=>import("./icons/announcement-line-BdsFnqjO.js"),[],import.meta.url),rtl:!0},alert:()=>r(()=>import("./icons/alert-line-CcwmWSBO.js"),[],import.meta.url),round:()=>r(()=>import("./icons/round-fill-CaZIeOWe.js"),[],import.meta.url),"arrow-up-circle":()=>r(()=>import("./icons/arrow-up-circle-line-SO68bPTf.js"),[],import.meta.url),"arrow-down-circle":()=>r(()=>import("./icons/arrow-down-circle-line-SfuiravZ.js"),[],import.meta.url),clipboard:{module:()=>r(()=>import("./icons/clipboard-line-CIOFpSsX.js"),[],import.meta.url),rtl:!0},"account-edit":()=>r(()=>import("./icons/user-edit-line-CC6Y-fJT.js"),[],import.meta.url),"account-warning":()=>r(()=>import("./icons/user-warning-line-BLfdr8Bj.js"),[],import.meta.url),"account-add":()=>r(()=>import("./icons/user-add-2-line-BbaxtCjf.js"),[],import.meta.url),keyboard:()=>r(()=>import("./icons/keyboard-line-BRd9ohM1.js"),[],import.meta.url),cloud:()=>r(()=>import("./icons/cloud-line-CCOdtB64.js"),[],import.meta.url),month:{module:()=>r(()=>import("./icons/calendar-month-line-DGpTEHfi.js"),[],import.meta.url),rtl:!0},media:()=>r(()=>import("./icons/photo-album-line-DkklX4P5.js"),[],import.meta.url),speak:()=>r(()=>import("./icons/radar-line-Dch2zZ5p.js"),[],import.meta.url),building:()=>r(()=>import("./icons/building-5-line-jPUf3HeC.js"),[],import.meta.url),history2:{module:()=>r(()=>import("./icons/history-2-line-C2uKqj-3.js"),[],import.meta.url),rtl:!0},document:()=>r(()=>import("./icons/document-line-ewA3UKpU.js"),[],import.meta.url),"arrows-right":{module:()=>r(()=>import("./icons/arrows-right-line-B7gMPCMB.js"),[],import.meta.url),rtl:!0},code:()=>r(()=>import("./icons/code-line-_8nrb8Yp.js"),[],import.meta.url),copy:()=>r(()=>import("./icons/copy-2-line-SBRewLs-.js"),[],import.meta.url),quote:{module:()=>r(()=>import("./icons/quote-left-fill-PIOLqduK.js"),[],import.meta.url),rtl:!0},quote2:{module:()=>r(()=>import("./icons/blockquote-line-Dcv4EJtN.js"),[],import.meta.url),rtl:!0},settings:()=>r(()=>import("./icons/settings-6-line-3dTfr4F6.js"),[],import.meta.url),"heart-break":()=>r(()=>import("./icons/heart-crack-line-BlrTdexG.js"),[],import.meta.url),"user-x":()=>r(()=>import("./icons/user-x-line-Dahn1YZg.js"),[],import.meta.url),minimize:()=>r(()=>import("./icons/down-line-PlS1iUy8.js"),[],import.meta.url),celebrate:()=>r(()=>import("./icons/celebrate-line-CwClz8eZ.js"),[],import.meta.url),schedule:()=>r(()=>import("./icons/calendar-time-add-line-BwP_cVys.js"),[],import.meta.url),day:()=>r(()=>import("./icons/calendar-day-line-zQlj2fPr.js"),[],import.meta.url),camera:()=>r(()=>import("./icons/camera-line-DK82q_yA.js"),[],import.meta.url),endorsement:{module:()=>r(()=>import("./icons/user-star-line-jCNS7JD6.js"),[],import.meta.url),rtl:!0},formula:()=>r(()=>import("./icons/formula-line-DHbN6ztn.js"),[],import.meta.url),edit:()=>r(()=>import("./icons/edit-4-line-B3lvLrpT.js"),[],import.meta.url),"zoom-in":()=>r(()=>import("./icons/zoom-in-line-a0TkUNno.js"),[],import.meta.url),"zoom-out":()=>r(()=>import("./icons/zoom-out-line-wfKlvfFM.js"),[],import.meta.url),"cursor-hand":()=>r(()=>import("./icons/hand-finger-2-line-QNYxa4H_.js"),[],import.meta.url),qrcode:()=>r(()=>import("./icons/qrcode-2-line-BElsm5FW.js"),[],import.meta.url),scan:()=>r(()=>import("./icons/scan-line-BRdmgVYf.js"),[],import.meta.url),note:()=>r(()=>import("./icons/document-3-line-3IBeZAAF.js"),[],import.meta.url),grid:()=>r(()=>import("./icons/grid-line-BRb9CQD-.js"),[],import.meta.url),moon:{module:()=>r(()=>import("./icons/moon-line-Dso5aDby.js"),[],import.meta.url),flip:"horizontal"}};export{t as ICONS}; +//# sourceMappingURL=ICONS-C5h6VnP9.js.map diff --git a/assets/ICONS-C5h6VnP9.js.map b/assets/ICONS-C5h6VnP9.js.map new file mode 100644 index 0000000..8a8d148 --- /dev/null +++ b/assets/ICONS-C5h6VnP9.js.map @@ -0,0 +1 @@ +{"version":3,"mappings":"+CAAO,MAAMA,EAAQ,CACnBC,EAAGA,UAAM,OAAO,gCAAoC,sBACpDC,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,SAAUA,UAAM,OAAO,mCAAuC,sBAC9D,eAAgBC,UAAM,OAAO,uCAA2C,sBACxE,WAAYC,UAAM,OAAO,uCAA2C,sBACpEC,SAAUA,UAAM,OAAO,qCAAyC,sBAChEC,OAAQA,UAAM,OAAO,iCAAqC,sBAC1D,aAAc,CACZC,OAAQA,UAAM,OAAO,qCAAyC,sBAC9DC,IAAK,IAEP,cAAe,CACbD,OAAQA,UAAM,OAAO,sCAA0C,sBAC/DC,IAAK,IAEP,WAAYC,UAAM,OAAO,mCAAuC,sBAChE,aAAcC,UAAM,OAAO,qCAAyC,sBACpEC,MAAOA,UAAM,OAAO,kCAAsC,sBAC1DC,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,OAAQA,UAAM,OAAO,iCAAqC,sBAC1D,YAAaC,UAAM,OAAO,oCAAwC,sBAClE,WAAYC,UAAM,OAAO,gCAAoC,sBAC7DC,QAASA,UAAM,OAAO,+BAAmC,sBACzDC,QAAS,CACPV,OAAQA,UAAM,OAAO,iCAAqC,sBAC1DC,IAAK,IAEPU,SAAU,CACRX,OAAQA,UAAM,OAAO,oCAAwC,sBAC7DC,IAAK,IAEPW,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,aAAcA,UAAM,OAAO,uCAA2C,sBACtEC,OAAQA,UAAM,OAAO,sCAA0C,sBAC/D,aAAcC,UAAM,OAAO,mCAAuC,sBAClEC,KAAM,CAAC,IAAAC,EAAA,IAAM,OAAO,oCAAwC,sBAAG,OAAO,EACtEC,OAAQA,UAAM,OAAO,iCAAqC,sBAC1DC,MAAOA,UAAM,OAAO,oCAAwC,sBAC5DC,GAAIA,UAAM,OAAO,6BAAiC,sBAClDC,WAAYA,UAAM,OAAO,qCAAyC,sBAClEC,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,KAAMA,UAAM,OAAO,qCAAyC,sBAC5DC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,MAAOA,UAAM,OAAO,iCAAqC,sBACzDC,SAAU,CACR1B,OAAQA,UAAM,OAAO,wCAA4C,sBACjEC,IAAK,IAEP0B,OAAQ,CACN3B,OAAQA,UAAM,OAAO,wCAA4C,sBACjEC,IAAK,IAEP2B,MAAO,CACL5B,OAAQA,UAAM,OAAO,wCAA4C,sBACjE6B,OAAQ,SACR5B,IAAK,IAEP6B,KAAMA,UAAM,OAAO,qCAAyC,sBAC5D,eAAgB,CACd9B,OAAQA,UAAM,OAAO,+BAAmC,sBACxDC,IAAK,IAEP,gBAAiB,CACfD,OAAQA,UAAM,OAAO,gCAAoC,sBACzDC,IAAK,IAEP,eAAgB8B,UAAM,OAAO,+BAAmC,sBAChEC,MAAO,CACLhC,OAAQA,UAAM,OAAO,wCAA4C,sBACjE6B,OAAQ,SACRI,KAAM,aACNhC,IAAK,IAEPiC,OAAQA,UAAM,OAAO,gCAAoC,sBACzDC,MAAO,CACLnC,OAAQA,UAAM,OAAO,gCAAoC,sBACzDC,IAAK,IAEPmC,IAAKA,UAAM,OAAO,oCAAwC,sBAC1DC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,KAAM,CACJtC,OAAQA,UAAM,OAAO,qCAAyC,sBAC9DC,IAAK,IAEPsC,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,QAASA,UAAM,OAAO,kCAAsC,sBAC5DC,KAAMA,UAAM,OAAO,sCAA0C,sBAC7DC,SAAUA,UAAM,OAAO,oCAAwC,sBAC/DC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,UAAWA,UAAM,OAAO,+BAAmC,sBAC3DC,IAAKA,UAAM,OAAO,8BAAkC,sBACpDC,MAAO,CAAC,IAAA7B,EAAA,IAAM,OAAO,8BAAkC,sBAAG,QAAQ,EAClE8B,IAAKA,UAAM,OAAO,gCAAoC,sBACtDC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,QAASA,UAAM,OAAO,kCAAsC,sBAC5DC,MAAOA,UAAM,OAAO,kCAAsC,sBAC1DC,SAAUA,UAAM,OAAO,mCAAuC,sBAC9DC,UAAWA,UAAM,OAAO,qCAAyC,sBACjEC,KAAM,CACJrD,OAAQA,UAAM,OAAO,+BAAmC,sBACxDC,IAAK,IAEPqD,UAAWA,UAAM,OAAO,oCAAwC,sBAChEC,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,MAAOA,UAAM,OAAO,mCAAuC,sBAC3DC,KAAM,CACJzD,OAAQA,UAAM,OAAO,sCAA0C,sBAC/DC,IAAK,IAEPyD,OAAQ,CACN1D,OAAQA,UAAM,OAAO,iCAAqC,sBAC1DC,IAAK,IAEP0D,MAAOA,UAAM,OAAO,wCAA4C,sBAChEC,QAAS,CACP,IAAA3C,EAAA,IAAM,OAAO,wCAA4C,sBACzD,QAAQ,EAEV4C,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,QAASA,UAAM,OAAO,oCAAwC,sBAC9DC,OAAQA,UAAM,OAAO,kCAAsC,sBAC3DC,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,QAASA,UAAM,OAAO,iCAAqC,sBAC3DC,MAAOA,UAAM,OAAO,qCAAyC,sBAC7DC,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,QAAS,CACPrE,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,IAAK,IAEPqE,QAASA,UAAM,OAAO,mCAAuC,sBAC7DC,SAAU,CACRvE,OAAQA,UAAM,OAAO,uCAA2C,sBAChEC,IAAK,IAEPuE,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,MAAOA,UAAM,OAAO,gCAAoC,sBACxD,kBAAmBC,UACjB,OAAO,0CAA8C,sBACvD,oBAAqBC,UACnB,OAAO,4CAAgD,sBACzDC,UAAW,CACT5E,OAAQA,UAAM,OAAO,oCAAwC,sBAC7DC,IAAK,IAEP,eAAgB4E,UAAM,OAAO,oCAAwC,sBACrE,kBAAmBC,UAAM,OAAO,uCAA2C,sBAC3E,cAAeC,UAAM,OAAO,qCAAyC,sBACrEC,SAAUA,UAAM,OAAO,mCAAuC,sBAC9DC,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,MAAO,CACLlF,OAAQA,UAAM,OAAO,yCAA6C,sBAClEC,IAAK,IAEPkF,MAAOA,UAAM,OAAO,sCAA0C,sBAC9DC,MAAOA,UAAM,OAAO,gCAAoC,sBACxDC,SAAUA,UAAM,OAAO,qCAAyC,sBAChEC,SAAU,CACRtF,OAAQA,UAAM,OAAO,oCAAwC,sBAC7DC,IAAK,IAEPsF,SAAUA,UAAM,OAAO,mCAAuC,sBAC9D,eAAgB,CACdvF,OAAQA,UAAM,OAAO,uCAA2C,sBAChEC,IAAK,IAEPuF,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,KAAMA,UAAM,OAAO,iCAAqC,sBACxDC,MAAO,CACL1F,OAAQA,UAAM,OAAO,qCAAyC,sBAC9DC,IAAK,IAEP0F,OAAQ,CACN3F,OAAQA,UAAM,OAAO,qCAAyC,sBAC9DC,IAAK,IAEP2F,SAAUA,UAAM,OAAO,qCAAyC,sBAChE,cAAeC,UAAM,OAAO,sCAA0C,sBACtE,SAAUC,UAAM,OAAO,iCAAqC,sBAC5DC,SAAUA,UAAM,OAAO,+BAAmC,sBAC1DC,UAAWA,UAAM,OAAO,oCAAwC,sBAChEC,SAAUA,UAAM,OAAO,4CAAgD,sBACvEC,IAAKA,UAAM,OAAO,uCAA2C,sBAC7DC,OAAQA,UAAM,OAAO,iCAAqC,sBAC1DC,YAAa,CACXpG,OAAQA,UAAM,OAAO,oCAAwC,sBAC7DC,IAAK,IAEPoG,QAASA,UAAM,OAAO,kCAAsC,sBAC5DC,KAAMA,UAAM,OAAO,iCAAqC,sBACxD,UAAWC,UAAM,OAAO,kCAAsC,sBAC9D,WAAYC,UAAM,OAAO,mCAAuC,sBAChE,cAAeC,UAAM,OAAO,wCAA4C,sBACxEC,OAAQA,UAAM,OAAO,mCAAuC,sBAC5DC,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,KAAMA,UAAM,OAAO,qCAAyC,sBAC5DC,KAAMA,UAAM,OAAO,+BAAmC,sBACtDC,KAAM,CACJ9G,OAAQA,UAAM,OAAO,+BAAmC,sBACxDiC,KAAM,aAEV","names":["ICONS","x","heart","bookmark","check-circle","x-circle","transfer","rocket","module","rtl","arrow-up","arrow-down","earth","lock","unlock","eye-close","eye-open","message","comment","comment2","home","notification","follow","follow-add","poll","__vitePreload","pencil","quill","at","attachment","upload","gear","more","more2","external","popout","popin","rotate","plus","chevron-down","reply","flip","thread","group","bot","menu","list","search","hashtag","info","shortcut","user","following","pin","unpin","bus","link","history","share","sparkles","sparkles2","exit","translate","play","trash","mute","unmute","block","unblock","flag","time","refresh","emoji2","filter","filters","chart","react","layout4","layout5","announce","alert","round","arrow-up-circle","arrow-down-circle","clipboard","account-edit","account-warning","account-add","keyboard","cloud","month","media","speak","building","history2","document","code","copy","quote","quote2","settings","heart-break","user-x","minimize","celebrate","schedule","day","camera","endorsement","formula","edit","zoom-in","zoom-out","cursor-hand","qrcode","scan","note","grid","moon"],"ignoreList":[],"sources":["../../src/components/ICONS.jsx"],"sourcesContent":["export const ICONS = {\n x: () => import('@iconify-icons/mingcute/close-line'),\n heart: () => import('@iconify-icons/mingcute/heart-line'),\n bookmark: () => import('@iconify-icons/mingcute/bookmark-line'),\n 'check-circle': () => import('@iconify-icons/mingcute/check-circle-line'),\n 'x-circle': () => import('@iconify-icons/mingcute/close-circle-line'),\n transfer: () => import('@iconify-icons/mingcute/transfer-4-line'),\n rocket: () => import('@iconify-icons/mingcute/rocket-line'),\n 'arrow-left': {\n module: () => import('@iconify-icons/mingcute/arrow-left-line'),\n rtl: true,\n },\n 'arrow-right': {\n module: () => import('@iconify-icons/mingcute/arrow-right-line'),\n rtl: true,\n },\n 'arrow-up': () => import('@iconify-icons/mingcute/arrow-up-line'),\n 'arrow-down': () => import('@iconify-icons/mingcute/arrow-down-line'),\n earth: () => import('@iconify-icons/mingcute/world-2-line'),\n lock: () => import('@iconify-icons/mingcute/lock-line'),\n unlock: () => import('@iconify-icons/mingcute/unlock-line'),\n 'eye-close': () => import('@iconify-icons/mingcute/eye-close-line'),\n 'eye-open': () => import('@iconify-icons/mingcute/eye-2-line'),\n message: () => import('@iconify-icons/mingcute/mail-line'),\n comment: {\n module: () => import('@iconify-icons/mingcute/chat-3-line'),\n rtl: true,\n },\n comment2: {\n module: () => import('@iconify-icons/mingcute/comment-2-line'),\n rtl: true,\n },\n home: () => import('@iconify-icons/mingcute/home-3-line'),\n notification: () => import('@iconify-icons/mingcute/notification-line'),\n follow: () => import('@iconify-icons/mingcute/user-follow-line'),\n 'follow-add': () => import('@iconify-icons/mingcute/user-add-line'),\n poll: [() => import('@iconify-icons/mingcute/chart-bar-line'), '90deg'],\n pencil: () => import('@iconify-icons/mingcute/pencil-line'),\n quill: () => import('@iconify-icons/mingcute/quill-pen-line'),\n at: () => import('@iconify-icons/mingcute/at-line'),\n attachment: () => import('@iconify-icons/mingcute/attachment-line'),\n upload: () => import('@iconify-icons/mingcute/upload-3-line'),\n gear: () => import('@iconify-icons/mingcute/settings-3-line'),\n more: () => import('@iconify-icons/mingcute/more-3-line'),\n more2: () => import('@iconify-icons/mingcute/more-1-fill'),\n external: {\n module: () => import('@iconify-icons/mingcute/external-link-line'),\n rtl: true,\n },\n popout: {\n module: () => import('@iconify-icons/mingcute/external-link-line'),\n rtl: true,\n },\n popin: {\n module: () => import('@iconify-icons/mingcute/external-link-line'),\n rotate: '180deg',\n rtl: true,\n },\n plus: () => import('@iconify-icons/mingcute/add-circle-line'),\n 'chevron-left': {\n module: () => import('@iconify-icons/mingcute/left-line'),\n rtl: true,\n },\n 'chevron-right': {\n module: () => import('@iconify-icons/mingcute/right-line'),\n rtl: true,\n },\n 'chevron-down': () => import('@iconify-icons/mingcute/down-line'),\n reply: {\n module: () => import('@iconify-icons/mingcute/share-forward-line'),\n rotate: '180deg',\n flip: 'horizontal',\n rtl: true,\n },\n thread: () => import('@iconify-icons/mingcute/route-line'),\n group: {\n module: () => import('@iconify-icons/mingcute/group-line'),\n rtl: true,\n },\n bot: () => import('@iconify-icons/mingcute/android-2-line'),\n menu: () => import('@iconify-icons/mingcute/rows-4-line'),\n list: {\n module: () => import('@iconify-icons/mingcute/list-check-line'),\n rtl: true,\n },\n search: () => import('@iconify-icons/mingcute/search-2-line'),\n hashtag: () => import('@iconify-icons/mingcute/hashtag-line'),\n info: () => import('@iconify-icons/mingcute/information-line'),\n shortcut: () => import('@iconify-icons/mingcute/lightning-line'),\n user: () => import('@iconify-icons/mingcute/user-4-line'),\n following: () => import('@iconify-icons/mingcute/walk-line'),\n pin: () => import('@iconify-icons/mingcute/pin-line'),\n unpin: [() => import('@iconify-icons/mingcute/pin-line'), '180deg'],\n bus: () => import('@iconify-icons/mingcute/bus-2-line'),\n link: () => import('@iconify-icons/mingcute/link-2-line'),\n history: () => import('@iconify-icons/mingcute/history-line'),\n share: () => import('@iconify-icons/mingcute/share-2-line'),\n sparkles: () => import('@iconify-icons/mingcute/sparkles-line'),\n sparkles2: () => import('@iconify-icons/mingcute/sparkles-2-line'),\n exit: {\n module: () => import('@iconify-icons/mingcute/exit-line'),\n rtl: true,\n },\n translate: () => import('@iconify-icons/mingcute/translate-line'),\n play: () => import('@iconify-icons/mingcute/play-fill'),\n trash: () => import('@iconify-icons/mingcute/delete-2-line'),\n mute: {\n module: () => import('@iconify-icons/mingcute/volume-mute-line'),\n rtl: true,\n },\n unmute: {\n module: () => import('@iconify-icons/mingcute/volume-line'),\n rtl: true,\n },\n block: () => import('@iconify-icons/mingcute/forbid-circle-line'),\n unblock: [\n () => import('@iconify-icons/mingcute/forbid-circle-line'),\n '180deg',\n ],\n flag: () => import('@iconify-icons/mingcute/flag-1-line'),\n time: () => import('@iconify-icons/mingcute/time-line'),\n refresh: () => import('@iconify-icons/mingcute/refresh-2-line'),\n emoji2: () => import('@iconify-icons/mingcute/emoji-2-line'),\n filter: () => import('@iconify-icons/mingcute/filter-2-line'),\n filters: () => import('@iconify-icons/mingcute/filter-line'),\n chart: () => import('@iconify-icons/mingcute/chart-line-line'),\n react: () => import('@iconify-icons/mingcute/react-line'),\n layout4: {\n module: () => import('@iconify-icons/mingcute/layout-4-line'),\n rtl: true,\n },\n layout5: () => import('@iconify-icons/mingcute/layout-5-line'),\n announce: {\n module: () => import('@iconify-icons/mingcute/announcement-line'),\n rtl: true,\n },\n alert: () => import('@iconify-icons/mingcute/alert-line'),\n round: () => import('@iconify-icons/mingcute/round-fill'),\n 'arrow-up-circle': () =>\n import('@iconify-icons/mingcute/arrow-up-circle-line'),\n 'arrow-down-circle': () =>\n import('@iconify-icons/mingcute/arrow-down-circle-line'),\n clipboard: {\n module: () => import('@iconify-icons/mingcute/clipboard-line'),\n rtl: true,\n },\n 'account-edit': () => import('@iconify-icons/mingcute/user-edit-line'),\n 'account-warning': () => import('@iconify-icons/mingcute/user-warning-line'),\n 'account-add': () => import('@iconify-icons/mingcute/user-add-2-line'),\n keyboard: () => import('@iconify-icons/mingcute/keyboard-line'),\n cloud: () => import('@iconify-icons/mingcute/cloud-line'),\n month: {\n module: () => import('@iconify-icons/mingcute/calendar-month-line'),\n rtl: true,\n },\n media: () => import('@iconify-icons/mingcute/photo-album-line'),\n speak: () => import('@iconify-icons/mingcute/radar-line'),\n building: () => import('@iconify-icons/mingcute/building-5-line'),\n history2: {\n module: () => import('@iconify-icons/mingcute/history-2-line'),\n rtl: true,\n },\n document: () => import('@iconify-icons/mingcute/document-line'),\n 'arrows-right': {\n module: () => import('@iconify-icons/mingcute/arrows-right-line'),\n rtl: true,\n },\n code: () => import('@iconify-icons/mingcute/code-line'),\n copy: () => import('@iconify-icons/mingcute/copy-2-line'),\n quote: {\n module: () => import('@iconify-icons/mingcute/quote-left-fill'),\n rtl: true,\n },\n quote2: {\n module: () => import('@iconify-icons/mingcute/blockquote-line'),\n rtl: true,\n },\n settings: () => import('@iconify-icons/mingcute/settings-6-line'),\n 'heart-break': () => import('@iconify-icons/mingcute/heart-crack-line'),\n 'user-x': () => import('@iconify-icons/mingcute/user-x-line'),\n minimize: () => import('@iconify-icons/mingcute/down-line'),\n celebrate: () => import('@iconify-icons/mingcute/celebrate-line'),\n schedule: () => import('@iconify-icons/mingcute/calendar-time-add-line'),\n day: () => import('@iconify-icons/mingcute/calendar-day-line'),\n camera: () => import('@iconify-icons/mingcute/camera-line'),\n endorsement: {\n module: () => import('@iconify-icons/mingcute/user-star-line'),\n rtl: true,\n },\n formula: () => import('@iconify-icons/mingcute/formula-line'),\n edit: () => import('@iconify-icons/mingcute/edit-4-line'),\n 'zoom-in': () => import('@iconify-icons/mingcute/zoom-in-line'),\n 'zoom-out': () => import('@iconify-icons/mingcute/zoom-out-line'),\n 'cursor-hand': () => import('@iconify-icons/mingcute/hand-finger-2-line'),\n qrcode: () => import('@iconify-icons/mingcute/qrcode-2-line'),\n scan: () => import('@iconify-icons/mingcute/scan-line'),\n note: () => import('@iconify-icons/mingcute/document-3-line'),\n grid: () => import('@iconify-icons/mingcute/grid-line'),\n moon: {\n module: () => import('@iconify-icons/mingcute/moon-line'),\n flip: 'horizontal',\n },\n};\n"],"file":"ICONS-C5h6VnP9.js"} \ No newline at end of file diff --git a/assets/ScheduledAtField-B9b7q7O5.js b/assets/ScheduledAtField-B9b7q7O5.js new file mode 100644 index 0000000..98a3c89 --- /dev/null +++ b/assets/ScheduledAtField-B9b7q7O5.js @@ -0,0 +1,194 @@ +import{Q as ie,x as Pt,u as r,d as F,q as yt,A as R,_ as me,y as Y,O as Zs,aw as Ac,m as ct,Y as $e,h as Go,ax as xc,ay as br,az as Mc,aA as Gs,$ as Vs,k as $,M as Oe,l as wo,a1 as Gt,J as wr,H as Dt,s as K,aB as Ic,aC as Bi,w as Lc,aD as Pc,aE as Vo,g as Qo,G as _o,a as Nt,b as ke,a4 as Dc,N as Rc,aF as $c,aG as zi,T as x,aH as Qs,aI as Oc,aJ as Nc,p as Ar,B as Fn,K as Ys,aK as Fc,aL as Bc,aM as nr,e as Ye,W as te,a5 as Yo,c as _e,aN as zc,aO as jc,aP as Xo,aQ as Hc,t as qc,z as Kc}from"./pwa-viewport-7HQOd5MC.js";import{ICONS as Uc}from"./ICONS-C5h6VnP9.js";const Xs=["shift","alt","meta","mod","ctrl","control"],Wc={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Re(t){return(Wc[t.trim()]||t.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Js(t){return Xs.includes(t)}function Zr(t,e=","){return t.toLowerCase().split(e)}function Gr(t,e="+",n=">",o=!1,s,a){let i=[],c=!1;t=t.trim(),t.includes(n)?(c=!0,i=t.toLocaleLowerCase().split(n).map(d=>Re(d))):i=t.toLocaleLowerCase().split(e).map(d=>Re(d));const u={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod"),useKey:o},h=i.filter(d=>!Xs.includes(d));return{...u,keys:h,description:s,isSequence:c,hotkey:t,metadata:a}}typeof document<"u"&&(document.addEventListener("keydown",t=>{t.code!==void 0&&ta([Re(t.code)])}),document.addEventListener("keyup",t=>{t.code!==void 0&&ea([Re(t.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Se.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Se.clear()},0)}));const Se=new Set;function Jo(t){return Array.isArray(t)}function Zc(t,e=","){return(Jo(t)?t:t.split(e)).every(n=>Se.has(n.trim().toLowerCase()))}function ta(t){const e=Array.isArray(t)?t:[t];Se.has("meta")&&Se.forEach(n=>{Js(n)||Se.delete(n.toLowerCase())}),e.forEach(n=>{Se.add(n.toLowerCase())})}function ea(t){const e=Array.isArray(t)?t:[t];t==="meta"?Se.clear():e.forEach(n=>{Se.delete(n.toLowerCase())})}function Gc(t,e,n){(typeof n=="function"&&n(t,e)||n===!0)&&t.preventDefault()}function Vc(t,e,n){return typeof n=="function"?n(t,e):n===!0||n===void 0}const Qc=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function Yc(t){return na(t,Qc)}function na(t,e=!1){const{target:n,composed:o}=t;let s,a;return Xc(n)&&o?(s=t.composedPath()[0]&&t.composedPath()[0].tagName,a=t.composedPath()[0]&&t.composedPath()[0].role):(s=n&&n.tagName,a=n&&n.role),Jo(e)?!!(s&&e&&e.some(i=>i.toLowerCase()===s.toLowerCase()||i===a)):!!(s&&e&&e)}function Xc(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function Jc(t,e){return t.length===0&&e?!1:e?t.some(n=>e.includes(n))||t.includes("*"):!0}const tl=(t,e,n=!1)=>{const{alt:o,meta:s,mod:a,shift:i,ctrl:c,keys:u,useKey:h}=e,{code:d,key:l,ctrlKey:f,metaKey:p,shiftKey:m,altKey:g}=t,v=Re(d);if(h){if(u?.length===1&&u.includes(l.toLowerCase())){if(!n){if(o!==g||i!==m)return!1;if(a){if(!p&&!f)return!1}else if(s!==p||c!==f)return!1}return!0}return!1}if(!u?.includes(v)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!n){if(o!==g&&v!=="alt"||i!==m&&v!=="shift")return!1;if(a){if(!p&&!f)return!1}else if(s!==p&&v!=="meta"&&v!=="os"||c!==f&&v!=="ctrl"&&v!=="control")return!1}return u&&u.length===1&&u.includes(v)?!0:u&&u.length>0?u.includes(v)?Zc(u):!1:!u||u.length===0},el=ie(void 0),nl=()=>Pt(el);function ra(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce((n,o)=>n&&ra(t[o],e[o]),!0):t===e}const rl=ie({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),ol=()=>Pt(rl);function il(t){const e=R(void 0);return ra(e.current,t)||(e.current=t),e.current}const ji=t=>{t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},sl=typeof window<"u"?me:Y;function Ke(t,e,n,o){const s=R(null),a=R(!1),i=Array.isArray(n)?Array.isArray(o)?void 0:o:n,c=Jo(t)?t.join(i?.delimiter):t,u=Array.isArray(n)?n:Array.isArray(o)?o:void 0,h=yt(e,u??[]),d=R(h);u?d.current=h:d.current=e;const l=il(i),{activeScopes:f}=ol(),p=nl();return sl(()=>{if(l?.enabled===!1||!Jc(f,l?.scopes))return;let m=[],g;const v=(E,w=!1)=>{if(!(Yc(E)&&!na(E,l?.enableOnFormTags))){if(s.current!==null){const k=s.current.getRootNode();if((k instanceof Document||k instanceof ShadowRoot)&&k.activeElement!==s.current&&!s.current.contains(k.activeElement)){ji(E);return}}E.target?.isContentEditable&&!l?.enableOnContentEditable||Zr(c,l?.delimiter).forEach(k=>{if(k.includes(l?.splitKey??"+")&&k.includes(l?.sequenceSplitKey??">")){console.warn(`Hotkey ${k} contains both ${l?.splitKey??"+"} and ${l?.sequenceSplitKey??">"} which is not supported.`);return}const C=Gr(k,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description,l?.metadata);if(C.isSequence){g=setTimeout(()=>{m=[]},l?.sequenceTimeoutMs??1e3);const L=C.useKey?E.key:Re(E.code);if(Js(L.toLowerCase()))return;m.push(L);const A=C.keys?.[m.length-1];if(L!==A){m=[],g&&clearTimeout(g);return}m.length===C.keys?.length&&(d.current(E,C),g&&clearTimeout(g),m=[])}else if(tl(E,C,l?.ignoreModifiers)||C.keys?.includes("*")){if(l?.ignoreEventWhen?.(E)||w&&a.current)return;if(Gc(E,C,l?.preventDefault),!Vc(E,C,l?.enabled)){ji(E);return}d.current(E,C),w||(a.current=!0)}})}},b=E=>{E.code!==void 0&&(ta(Re(E.code)),(l?.keydown===void 0&&l?.keyup!==!0||l?.keydown)&&v(E))},_=E=>{E.code!==void 0&&(ea(Re(E.code)),a.current=!1,l?.keyup&&v(E,!0))},T=s.current||i?.document||document;return T.addEventListener("keyup",_,i?.eventListenerOptions),T.addEventListener("keydown",b,i?.eventListenerOptions),p&&Zr(c,l?.delimiter).forEach(E=>{p.addHotkey(Gr(E,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description,l?.metadata))}),()=>{T.removeEventListener("keyup",_,i?.eventListenerOptions),T.removeEventListener("keydown",b,i?.eventListenerOptions),p&&Zr(c,l?.delimiter).forEach(E=>{p.removeHotkey(Gr(E,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description,l?.metadata))}),m=[],g&&clearTimeout(g)}},[c,l,f]),s}var gr={exports:{}};var al=gr.exports,Hi;function cl(){return Hi||(Hi=1,(function(t){(function(e,n){t.exports?t.exports=n():e.Toastify=n()})(al,function(e){var n=function(i){return new n.lib.init(i)},o="1.12.0";n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:o,constructor:n,init:function(i){return i||(i={}),this.options={},this.toastElement=null,this.options.text=i.text||n.defaults.text,this.options.node=i.node||n.defaults.node,this.options.duration=i.duration===0?0:i.duration||n.defaults.duration,this.options.selector=i.selector||n.defaults.selector,this.options.callback=i.callback||n.defaults.callback,this.options.destination=i.destination||n.defaults.destination,this.options.newWindow=i.newWindow||n.defaults.newWindow,this.options.close=i.close||n.defaults.close,this.options.gravity=i.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=i.positionLeft||n.defaults.positionLeft,this.options.position=i.position||n.defaults.position,this.options.backgroundColor=i.backgroundColor||n.defaults.backgroundColor,this.options.avatar=i.avatar||n.defaults.avatar,this.options.className=i.className||n.defaults.className,this.options.stopOnFocus=i.stopOnFocus===void 0?n.defaults.stopOnFocus:i.stopOnFocus,this.options.onClick=i.onClick||n.defaults.onClick,this.options.offset=i.offset||n.defaults.offset,this.options.escapeMarkup=i.escapeMarkup!==void 0?i.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=i.ariaLive||n.defaults.ariaLive,this.options.style=i.style||n.defaults.style,i.backgroundColor&&(this.options.style.background=i.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var i=document.createElement("div");i.className="toastify on "+this.options.className,this.options.position?i.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(i.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):i.className+=" toastify-right",i.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var c in this.options.style)i.style[c]=this.options.style[c];if(this.options.ariaLive&&i.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)i.appendChild(this.options.node);else if(this.options.escapeMarkup?i.innerText=this.options.text:i.innerHTML=this.options.text,this.options.avatar!==""){var u=document.createElement("img");u.src=this.options.avatar,u.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?i.appendChild(u):i.insertAdjacentElement("afterbegin",u)}if(this.options.close===!0){var h=document.createElement("button");h.type="button",h.setAttribute("aria-label","Close"),h.className="toast-close",h.innerHTML="✖",h.addEventListener("click",(function(v){v.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var d=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&d>360?i.insertAdjacentElement("afterbegin",h):i.appendChild(h)}if(this.options.stopOnFocus&&this.options.duration>0){var l=this;i.addEventListener("mouseover",function(v){window.clearTimeout(i.timeOutValue)}),i.addEventListener("mouseleave",function(){i.timeOutValue=window.setTimeout(function(){l.removeElement(i)},l.options.duration)})}if(typeof this.options.destination<"u"&&i.addEventListener("click",(function(v){v.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&i.addEventListener("click",(function(v){v.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var f=s("x",this.options),p=s("y",this.options),m=this.options.position=="left"?f:"-"+f,g=this.options.gravity=="toastify-top"?p:"-"+p;i.style.transform="translate("+m+","+g+")"}return i},showToast:function(){this.toastElement=this.buildToast();var i;if(typeof this.options.selector=="string"?i=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?i=this.options.selector:i=document.body,!i)throw"Root element is not defined";var c=n.defaults.oldestFirst?i.firstChild:i.lastChild;return i.insertBefore(this.toastElement,c),n.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(i){i.className=i.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),i.parentNode&&i.parentNode.removeChild(i),this.options.callback.call(i),n.reposition()}).bind(this),400)}},n.reposition=function(){for(var i={top:15,bottom:15},c={top:15,bottom:15},u={top:15,bottom:15},h=document.getElementsByClassName("toastify"),d,l=0;l0?window.innerWidth:screen.width;m<=360?(h[l].style[d]=u[d]+"px",u[d]+=f+p):a(h[l],"toastify-left")===!0?(h[l].style[d]=i[d]+"px",i[d]+=f+p):(h[l].style[d]=c[d]+"px",c[d]+=f+p)}return this};function s(i,c){return c.offset[i]?isNaN(c.offset[i])?c.offset[i]:c.offset[i]+"px":"0px"}function a(i,c){return!i||typeof c!="string"?!1:!!(i.className&&i.className.trim().split(/\s+/gi).indexOf(c)>-1)}return n.lib.init.prototype=n.lib,n})})(gr)),gr.exports}var ll=cl();const ul=Zs(ll);window._showToast=ft;function ft(t){typeof t=="string"&&(t={text:t});const{onClick:e,delay:n,...o}=t,s=ul({className:`${e||t.destination?"shiny-pill":""}`,gravity:"bottom",position:"center",...o,onClick:()=>{e?.(s)}});return n?setTimeout(()=>{s.showToast()},n):s.showToast(),s}function Uy(t,e,n,o){const s=R(t);Y(()=>{s.current=t},[t,n]),Y(()=>{!o||e===null||e===!1||s.current()},[o]),Y(()=>{if(e===null||e===!1)return;const i=setInterval(()=>s.current(),e);return()=>clearInterval(i)},[e])}const ti=t=>!!t&&t[0]==="o",So=Ac,Bn=(t,e)=>t===!0||!!(t&&t[e]),Zt=(t,e)=>typeof t=="function"?t(e):t,dl="_szhsinMenu",hl=t=>t[dl];const mn=(t,e)=>(e&&Object.keys(e).forEach(n=>{const o=t[n],s=e[n];typeof s=="function"&&o?t[n]=(...a)=>{s(...a),o(...a)}:t[n]=s}),t),fl=t=>{if(typeof t!="string")return{top:0,right:0,bottom:0,left:0};const e=t.trim().split(/\s+/,4).map(parseFloat),n=isNaN(e[0])?0:e[0],o=isNaN(e[1])?n:e[1];return{top:n,right:o,bottom:isNaN(e[2])?n:e[2],left:isNaN(e[3])?o:e[3]}},Vr=t=>{for(;t;){if(t=t.parentNode,!t||t===document.body||!t.parentNode)return;const{overflow:e,overflowX:n,overflowY:o}=getComputedStyle(t);if(/auto|scroll|overlay|hidden/.test(e+o+n))return t}};function xr(t,e){return{"aria-disabled":t||void 0,tabIndex:e?0:-1}}function qi(t,e){for(let n=0;nct(()=>{const s=e?`${t}__${e}`:t;let a=s;n&&Object.keys(n).forEach(c=>{const u=n[c];u&&(a+=` ${s}--${u===!0?c:`${c}-${u}`}`)});let i=typeof o=="function"?o(n):o;return typeof i=="string"&&(i=i.trim(),i&&(a+=` ${i}`)),a},[t,e,n,o]),pl="szh-menu-container",pe="szh-menu";const ml="arrow",ei="item",gl="divider",vl="header",yl="group",bl="submenu";const oa=ie(),ni=ie({}),_r=ie({}),ri=ie({}),wl=ie({}),Mr=ie({}),Ft=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Ct=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),zn=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),cn=Object.freeze({FIRST:"first",LAST:"last"}),_l=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Ki="absolute",oi="none",ii="menuitem",To={preventScroll:!0};const Sl=({className:t,containerRef:e,containerProps:n,children:o,isOpen:s,theming:a,transition:i,onClose:c})=>{const u=Bn(i,"item");return r("div",{...mn({onKeyDown:({key:l})=>{l===Ft.ESC&&Zt(c,{key:l,reason:zn.CANCEL})},onBlur:l=>{s&&!l.currentTarget.contains(l.relatedTarget)&&Zt(c,{reason:zn.BLUR})}},n),className:ge({block:pl,modifiers:ct(()=>({theme:a,itemTransition:u}),[a,u]),className:t}),style:{position:"absolute",...n?.style},ref:e,children:o})},Tl=()=>{let t,e=0;return{toggle:n=>{n?e++:e--,e=Math.max(e,0)},on:(n,o,s)=>{e?t||(t=setTimeout(()=>{t=0,o()},n)):s?.()},off:()=>{t&&(clearTimeout(t),t=0)}}},kl=t=>{const[e,n]=F(),s=R({items:[],hoverIndex:-1,sorted:!1}).current,a=yt((c,u)=>{const{items:h}=s;if(!c)s.items=[];else if(u)h.push(c);else{const d=h.indexOf(c);d>-1&&(h.splice(d,1),c.contains(document.activeElement)&&(t.current.focus(To),n()))}s.hoverIndex=-1,s.sorted=!1},[s,t]),i=yt((c,u,h)=>{const{items:d,hoverIndex:l}=s,f=()=>{if(s.sorted)return;const g=t.current.querySelectorAll(".szh-menu__item");d.sort((v,b)=>qi(g,v)-qi(g,b)),s.sorted=!0};let p=-1,m;switch(c){case Ct.RESET:break;case Ct.SET:m=u;break;case Ct.UNSET:m=g=>g===u?void 0:g;break;case Ct.FIRST:f(),p=0,m=d[p];break;case Ct.LAST:f(),p=d.length-1,m=d[p];break;case Ct.SET_INDEX:f(),p=h,m=d[p];break;case Ct.INCREASE:f(),p=l,p<0&&(p=d.indexOf(u)),p++,p>=d.length&&(p=0),m=d[p];break;case Ct.DECREASE:f(),p=l,p<0&&(p=d.indexOf(u)),p--,p<0&&(p=d.length-1),m=d[p];break;default:}m||(p=-1),n(m),s.hoverIndex=p},[t,s]);return{hoverItem:e,dispatch:i,updateItems:a}},Ui=(t,e)=>Math.round(t)===e?t:e,ia=t=>{const e=t.getBoundingClientRect();return e.width=Ui(e.width,t.offsetWidth),e.height=Ui(e.height,t.offsetHeight),e},El=(t,e,n,o)=>{const s=ia(e),a=t.getBoundingClientRect(),i=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),c=fl(o),u=m=>m+a.left-i.left-c.left,h=m=>m+a.left+s.width-i.right+c.right,d=m=>m+a.top-i.top-c.top,l=m=>m+a.top+s.height-i.bottom+c.bottom;return{menuRect:s,containerRect:a,getLeftOverflow:u,getRightOverflow:h,getTopOverflow:d,getBottomOverflow:l,confineHorizontally:m=>{let g=u(m);if(g<0)m-=g;else{const v=h(m);v>0&&(m-=v,g=u(m),g<0&&(m-=g))}return m},confineVertically:m=>{let g=d(m);if(g<0)m-=g;else{const v=l(m);v>0&&(m-=v,g=d(m),g<0&&(m-=g))}return m}}},Cl=({arrowRef:t,menuY:e,anchorRect:n,containerRect:o,menuRect:s})=>{let a=n.top-o.top-e+n.height/2;const i=t.current.offsetHeight*1.25;return a=Math.max(i,a),a=Math.min(a,s.height-i),a},Al=({anchorRect:t,containerRect:e,menuRect:n,placeLeftorRightY:o,placeLeftX:s,placeRightX:a,getLeftOverflow:i,getRightOverflow:c,confineHorizontally:u,confineVertically:h,arrowRef:d,arrow:l,direction:f,position:p})=>{let m=f,g=o;p!=="initial"&&(g=h(g),p==="anchor"&&(g=Math.min(g,t.bottom-e.top),g=Math.max(g,t.top-e.top-n.height)));let v,b,_;return m==="left"?(v=s,p!=="initial"&&(b=i(v),b<0&&(_=c(a),(_<=0||-b>_)&&(v=a,m="right")))):(v=a,p!=="initial"&&(_=c(v),_>0&&(b=i(s),(b>=0||-b<_)&&(v=s,m="left")))),p==="auto"&&(v=u(v)),{arrowY:l?Cl({menuY:g,arrowRef:d,anchorRect:t,containerRect:e,menuRect:n}):void 0,x:v,y:g,computedDirection:m}},xl=({arrowRef:t,menuX:e,anchorRect:n,containerRect:o,menuRect:s})=>{let a=n.left-o.left-e+n.width/2;const i=t.current.offsetWidth*1.25;return a=Math.max(i,a),a=Math.min(a,s.width-i),a},Ml=({anchorRect:t,containerRect:e,menuRect:n,placeToporBottomX:o,placeTopY:s,placeBottomY:a,getTopOverflow:i,getBottomOverflow:c,confineHorizontally:u,confineVertically:h,arrowRef:d,arrow:l,direction:f,position:p})=>{let m=f==="top"?"top":"bottom",g=o;p!=="initial"&&(g=u(g),p==="anchor"&&(g=Math.min(g,t.right-e.left),g=Math.max(g,t.left-e.left-n.width)));let v,b,_;return m==="top"?(v=s,p!=="initial"&&(b=i(v),b<0&&(_=c(a),(_<=0||-b>_)&&(v=a,m="bottom")))):(v=a,p!=="initial"&&(_=c(v),_>0&&(b=i(s),(b>=0||-b<_)&&(v=s,m="top")))),p==="auto"&&(v=h(v)),{arrowX:l?xl({menuX:g,arrowRef:d,anchorRect:t,containerRect:e,menuRect:n}):void 0,x:g,y:v,computedDirection:m}},Il=({arrow:t,align:e,direction:n,gap:o,shift:s,position:a,anchorRect:i,arrowRef:c,positionHelpers:u})=>{const{menuRect:h,containerRect:d}=u,l=n==="left"||n==="right";let f=l?o:s,p=l?s:o;if(t){const w=c.current;l?f+=w.offsetWidth:p+=w.offsetHeight}const m=i.left-d.left-h.width-f,g=i.right-d.left+f,v=i.top-d.top-h.height-p,b=i.bottom-d.top+p;let _,T;e==="end"?(_=i.right-d.left-h.width,T=i.bottom-d.top-h.height):e==="center"?(_=i.left-d.left-(h.width-i.width)/2,T=i.top-d.top-(h.height-i.height)/2):(_=i.left-d.left,T=i.top-d.top),_+=f,T+=p;const E={...u,anchorRect:i,placeLeftX:m,placeRightX:g,placeLeftorRightY:T,placeTopY:v,placeBottomY:b,placeToporBottomX:_,arrowRef:c,arrow:t,direction:n,position:a};switch(n){case"left":case"right":return Al(E);default:return Ml(E)}},ln=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?me:Y;function Wi(t,e){typeof t=="function"?t(e):t.current=e}const gn=(t,e)=>ct(()=>t?e?n=>{Wi(t,n),Wi(e,n)}:t:e,[t,e]),Zi=-9999,sa=({ariaLabel:t,menuClassName:e,menuStyle:n,arrow:o,arrowProps:s={},anchorPoint:a,anchorRef:i,containerRef:c,containerProps:u,externalRef:h,parentScrollingRef:d,align:l="start",direction:f="bottom",position:p="auto",overflow:m="visible",setDownOverflow:g,repositionFlag:v,captureFocus:b=!0,state:_,endTransition:T,isDisabled:E,menuItemFocus:w,gap:k=0,shift:C=0,children:L,onClose:A,focusProps:S,...O})=>{const[N,B]=F({x:Zi,y:Zi}),[M,X]=F({}),[z,G]=F(),[D,j]=F(f),[J]=F(Tl),[it,et]=Go(V=>V+1,1),{transition:U,boundingBoxRef:gt,boundingBoxPadding:At,rootMenuRef:xt,rootAnchorRef:Bt,scrollNodesRef:ne,reposition:bt,viewScroll:se,submenuCloseDelay:Ht}=Pt(Mr),{submenuCtx:Vt,reposSubmenu:Q=v}=Pt(_r),pt=R(),Mt=R(),It=R(!1),{hoverItem:tt,dispatch:dt,updateItems:st}=kl(pt),ht=ti(_),qt=Bn(U,"open"),ae=Bn(U,"close"),H=ne.current,W=V=>{switch(V.key){case Ft.HOME:dt(Ct.FIRST);break;case Ft.END:dt(Ct.LAST);break;case Ft.UP:dt(Ct.DECREASE,tt);break;case Ft.DOWN:dt(Ct.INCREASE,tt);break;case Ft.SPACE:V.target&&V.target.className.indexOf(pe)!==-1&&V.preventDefault();return;default:return}V.preventDefault(),V.stopPropagation()},q=()=>{_==="closing"&&G(),Zt(T)},vt=V=>{V.stopPropagation(),J.on(Ht,()=>{dt(Ct.RESET),pt.current.focus(To)})},zt=V=>{V.target===V.currentTarget&&J.off()},St=yt(V=>{const _t=pt.current,Qt=c.current;if(!_t||!Qt)return;const jt=i?i.current?.getBoundingClientRect():a?{left:a.x,right:a.x,top:a.y,bottom:a.y,width:0,height:0}:null;if(!jt)return;H.menu||(H.menu=(gt?gt.current:Vr(xt.current))||window);const mt=El(Qt,_t,H.menu,At);let{arrowX:re,arrowY:Kn,x:Un,y:xe,computedDirection:Pr}=Il({arrow:o,align:l,direction:f,gap:k,shift:C,position:p,anchorRect:jt,arrowRef:Mt,positionHelpers:mt});const{menuRect:kt}=mt,Je=kt.height;if(!V&&m!=="visible"){const{getTopOverflow:ve,getBottomOverflow:le}=mt;let Be,Kt;const ye=le(xe);if(ye>0)Be=Je-ye,Kt=ye;else{const Ut=ve(xe);Ut<0&&(Be=Je+Ut,Kt=0-Ut,Be>=0&&(xe-=Ut))}Be>=0&&G({height:Be,overflowAmt:Kt})}o&&X({x:re,y:Kn}),B({x:Un,y:xe}),j(Pr)},[o,l,At,f,k,C,p,m,a,i,c,gt,xt,H]);ln(()=>{ht&&(St(),It.current&&et()),It.current=ht},[ht,St,Q]),ln(()=>{z&&!g&&(pt.current.scrollTop=0)},[z,g]),ln(()=>st,[st]),Y(()=>{let{menu:V}=H;if(!ht||!V)return;if(V=V.addEventListener?V:window,!H.anchors){H.anchors=[];let mt=Vr(Bt&&Bt.current);for(;mt&&mt!==V;)H.anchors.push(mt),mt=Vr(mt)}let _t=se;if(H.anchors.length&&_t==="initial"&&(_t="auto"),_t==="initial")return;const Qt=()=>{_t==="auto"?So(()=>St(!0)):Zt(A,{reason:zn.SCROLL})},jt=H.anchors.concat(se!=="initial"?V:[]);return jt.forEach(mt=>mt.addEventListener("scroll",Qt)),()=>jt.forEach(mt=>mt.removeEventListener("scroll",Qt))},[Bt,H,ht,A,se,St]);const Tt=!!z&&z.overflowAmt>0;Y(()=>{if(Tt||!ht||!d)return;const V=()=>So(St),_t=d.current;return _t.addEventListener("scroll",V),()=>_t.removeEventListener("scroll",V)},[ht,Tt,d,St]),Y(()=>{if(!ht||typeof ResizeObserver!="function"||bt==="initial")return;const V=[],_t=new ResizeObserver(mt=>mt.forEach(({target:re})=>{V.indexOf(re)<0?V.push(re):xc(()=>{St(),et()})})),Qt={box:"border-box"};_t.observe(pt.current,Qt);const jt=i?.current;return jt&&_t.observe(jt,Qt),()=>_t.disconnect()},[ht,bt,i,St]),Y(()=>{if(!ht){dt(Ct.RESET),ae||G();return}const{position:V,alwaysUpdate:_t}=w||{},Qt=()=>{V===cn.FIRST?dt(Ct.FIRST):V===cn.LAST?dt(Ct.LAST):V>=-1&&dt(Ct.SET_INDEX,void 0,V)};if(_t)Qt();else if(b){const jt=setTimeout(()=>{const mt=pt.current;mt&&!mt.contains(document.activeElement)&&(mt.focus(To),Qt())},qt?170:100);return()=>clearTimeout(jt)}},[ht,qt,ae,b,w,dt]);const ce=ct(()=>({isParentOpen:ht,submenuCtx:J,dispatch:dt,updateItems:st}),[ht,J,dt,st]);let Rt,Lt;z&&(g?Lt=z.overflowAmt:Rt=z.height);const nt=ct(()=>({reposSubmenu:it,submenuCtx:J,overflow:m,overflowAmt:Lt,parentMenuRef:pt,parentDir:D}),[it,J,m,Lt,D]),wt=Rt>=0?{maxHeight:Rt,overflow:m}:void 0,ot=ct(()=>({state:_,align:l,dir:D}),[_,l,D]),Ot=ct(()=>({dir:D}),[D]),Fe=ge({block:pe,element:ml,modifiers:Ot,className:s.className}),Lr=r("ul",{role:"menu","aria-label":t,...xr(E),...mn({onPointerEnter:Vt?.off,onPointerMove:vt,onPointerLeave:zt,onKeyDown:W,onAnimationEnd:q},O),ref:gn(h,pt),className:ge({block:pe,modifiers:ot,className:e}),style:{...n,...wt,margin:0,display:_==="closed"?"none":void 0,position:Ki,left:N.x,top:N.y},children:[o&&r("li",{"aria-hidden":!0,...s,className:Fe,style:{display:"block",position:Ki,left:M.x,top:M.y,...s.style},ref:Mt}),r(_r.Provider,{value:nt,children:r(ni.Provider,{value:ce,children:r(oa.Provider,{value:tt,children:Zt(L,ot)})})})]});return u?r(Sl,{...u,isOpen:ht,children:Lr}):Lr},aa=$e(function({"aria-label":e,className:n,containerProps:o,initialMounted:s,unmountOnClose:a,transition:i,transitionTimeout:c,boundingBoxRef:u,boundingBoxPadding:h,reposition:d="auto",submenuOpenDelay:l=300,submenuCloseDelay:f=150,viewScroll:p="initial",portal:m,theming:g,onItemClick:v,...b},_){const T=R(null),E=R({}),{anchorRef:w,state:k,onClose:C}=b,L=ct(()=>({initialMounted:s,unmountOnClose:a,transition:i,transitionTimeout:c,boundingBoxRef:u,boundingBoxPadding:h,rootMenuRef:T,rootAnchorRef:w,scrollNodesRef:E,reposition:d,viewScroll:p,submenuOpenDelay:l,submenuCloseDelay:f}),[s,a,i,c,w,u,h,d,p,l,f]),A=ct(()=>({handleClick(O,N){O.stopPropagation||Zt(v,O);let B=O.keepOpen;B===void 0&&(B=N&&O.key===Ft.SPACE),B||Zt(C,{value:O.value,key:O.key,reason:zn.CLICK})},handleClose(O){Zt(C,{key:O,reason:zn.CLICK})}}),[v,C]);if(!k)return null;const S=r(Mr.Provider,{value:L,children:r(ri.Provider,{value:A,children:r(sa,{...b,ariaLabel:e||"Menu",externalRef:_,containerRef:T,containerProps:{className:n,containerRef:T,containerProps:o,theming:g,transition:i,onClose:C}})})});return m===!0&&typeof document<"u"?br(S,document.body):m?m.target?br(S,m.target):m.stablePosition?null:S:S}),ko=0,Eo=1,Sr=2,Tr=3,kr=4,Ll=5,ca=6,Pl=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],la=t=>({_s:t,status:Pl[t],isEnter:tkr}),Co=t=>t?ca:Ll,Dl=(t,e)=>{switch(t){case Eo:case ko:return Sr;case kr:case Tr:return Co(e)}},Rl=t=>typeof t=="object"?[t.enter,t.exit]:[t,t],$l=(t,e)=>setTimeout(()=>{isNaN(document.body.offsetTop)||t(e+1)},0),Gi=(t,e,n,o,s)=>{clearTimeout(o.current);const a=la(t);e(a),n.current=a,s&&s({current:a})},Ol=({enter:t=!0,exit:e=!0,preEnter:n,preExit:o,timeout:s,initialEntered:a,mountOnEnter:i,unmountOnExit:c,onStateChange:u}={})=>{const[h,d]=F(()=>la(a?Sr:Co(i))),l=R(h),f=R(),[p,m]=Rl(s),g=yt(()=>{const b=Dl(l.current._s,c);b&&Gi(b,d,l,f,u)},[u,c]),v=yt(b=>{const _=E=>{switch(Gi(E,d,l,f,u),E){case Eo:p>=0&&(f.current=setTimeout(g,p));break;case kr:m>=0&&(f.current=setTimeout(g,m));break;case ko:case Tr:f.current=$l(_,E);break}},T=l.current.isEnter;typeof b!="boolean"&&(b=!T),b?!T&&_(t?n?ko:Eo:Sr):T&&_(e?o?Tr:kr:Co(c))},[g,u,t,e,n,o,p,m,c]);return[h,v,g]};const Nl=({initialOpen:t,initialMounted:e,unmountOnClose:n,transition:o,transitionTimeout:s=500,onMenuChange:a}={})=>{const i=Bn(o,"open"),c=Bn(o,"close"),[{status:u},h,d]=Ol({initialEntered:t,mountOnEnter:!e,unmountOnExit:n,timeout:s,enter:i,exit:c,onStateChange:yt(({current:{isEnter:l,isResolved:f}})=>{!a||l&&i&&f||!l&&c&&f||a({open:l})},[a,i,c])});return[{state:_l[u],endTransition:d},h]},ua=t=>{const[e,n]=Nl(t),[o,s]=F(),a=(i,c)=>{s({position:i,alwaysUpdate:c}),n(!0)};return[{menuItemFocus:o,...e},n,a]},Fl=(t,e)=>{const[n]=F({});return{onMouseDown:()=>{n.v=t&&t!=="closed"},onClick:o=>n.v?n.v=!1:e(!0,o)}},Bl=parseInt(Mc)<19,zl=$e(function({"aria-label":e,captureFocus:n,initialOpen:o,menuButton:s,instanceRef:a,onMenuChange:i,...c},u){const[h,d,l]=ua({...c,onMenuChange:i}),{state:f}=h,p=ti(f),m=R(null),g=Fl(f,(w,k)=>l(k.detail?void 0:cn.FIRST)),v=yt(w=>{d(!1),w.key&&m.current.focus()},[d]),b=w=>{switch(w.key){case Ft.UP:l(cn.LAST);break;case Ft.DOWN:l(cn.FIRST);break;default:return}w.preventDefault()},_=Zt(s,{open:p});if(!_||!_.type)throw new Error("Menu requires a menuButton prop.");const T={...mn({onKeyDown:b,...g},_.props),ref:gn(Bl?_.ref:_.props.ref,m)};hl(_.type)==="MenuButton"&&(T.isOpen=p);const E=Gs(_,T);return Vs(a,()=>({openMenu:l,closeMenu:()=>d(!1)})),r($,{children:[E,r(aa,{...c,...h,"aria-label":e||(typeof _.props.children=="string"?_.props.children:"Menu"),anchorRef:m,ref:u,onClose:v})]})}),si=(t,e)=>{const n=Oe(e),o=$e((s,a)=>{const i=R(null);return r(n,{...s,itemRef:i,externalRef:a,isHovering:Pt(oa)===i.current})});return o.displayName=`WithHovering(${t})`,o},da=t=>{const[e,n]=F(!1);return Y(()=>{!t&&n(!1)},[t]),[e,()=>!e&&n(!0),()=>n(!1)]},ha=(t,e,n)=>{ln(()=>{if(t)return;const o=e.current;return n(o,!0),()=>{n(o)}},[t,e,n])},jl=si("SubMenu",function({"aria-label":e,className:n,disabled:o,direction:s,label:a,openTrigger:i,onMenuChange:c,isHovering:u,instanceRef:h,itemRef:d,captureFocus:l,repositionFlag:f,itemProps:p={},portal:m=!1,...g}){const v=Pt(Mr),{rootMenuRef:b,submenuOpenDelay:_,submenuCloseDelay:T}=v,{parentMenuRef:E,parentDir:w,overflow:k}=Pt(_r),{isParentOpen:C,submenuCtx:L,dispatch:A,updateItems:S}=Pt(ni),O=m||k!=="visible",[N,B,M]=ua({...v,onMenuChange:c}),[X,z,G]=da(u),{state:D}=N,j=!!o,J=ti(D),it=R(null),[et]=F({v:0}),U=()=>{L.off(),et.v&&(clearTimeout(et.v),et.v=0)},gt=(...tt)=>{U(),At(),!j&&M(...tt)},At=()=>!u&&!j&&A(Ct.SET,d.current),xt=tt=>{At(),i||(et.v=setTimeout(()=>So(gt),Math.max(tt,0)))},Bt=tt=>{j||(tt.stopPropagation(),z(),!(et.v||J)&&L.on(T,()=>xt(_-T),()=>xt(_)))},ne=()=>{G(),U(),J||A(Ct.UNSET,d.current)},bt=tt=>{if(u)switch(tt.key){case Ft.ENTER:tt.preventDefault();case Ft.SPACE:case Ft.RIGHT:i!=="none"&>(cn.FIRST)}},se=tt=>{let dt=!1;switch(tt.key){case Ft.LEFT:J&&(d.current.focus(),B(!1),dt=!0);break;case Ft.RIGHT:J||(dt=!0);break}dt&&(tt.preventDefault(),tt.stopPropagation())};ha(j,d,S),Y(()=>L.toggle(J),[L,J]),Y(()=>()=>{clearTimeout(et.v),L.toggle(!1)},[et,L]),Y(()=>{u&&C?d.current.focus():B(!1)},[u,C,B,d]),Vs(h,()=>({openMenu:(...tt)=>{C&>(...tt)},closeMenu:()=>{J&&(d.current.focus(),B(!1))}}));const Ht=ct(()=>({open:J,hover:X||u,disabled:j,submenu:!0}),[J,u,j,X]),{ref:Vt,className:Q,...pt}=p,Mt=mn({onPointerEnter:L.off,onPointerMove:Bt,onPointerLeave:ne,onKeyDown:bt,onClick:()=>i!=="none"&>()},pt),It=()=>{const tt=r(sa,{...g,...N,ariaLabel:e||(typeof a=="string"?a:"Submenu"),anchorRef:d,containerRef:O?b:it,direction:s||(w==="right"||w==="left"?w:"right"),parentScrollingRef:O&&E,isDisabled:j}),dt=b.current;return O&&dt?br(tt,dt):tt};return r("li",{className:ge({block:pe,element:bl,className:n}),style:{position:"relative"},role:oi,ref:it,onKeyDown:se,children:[r("div",{role:ii,"aria-haspopup":!0,"aria-expanded":J,...xr(j,u),...Mt,ref:gn(Vt,d),className:ge({block:pe,element:ei,modifiers:Ht,className:Q}),children:ct(()=>Zt(a,Ht),[a,Ht])}),D&&It()]})}),fa=(t,e,n,o)=>{const[s,a,i]=da(n),{submenuCloseDelay:c}=Pt(Mr),{isParentOpen:u,submenuCtx:h,dispatch:d,updateItems:l}=Pt(ni),f=()=>{!n&&!o&&d(Ct.SET,t.current)},p=()=>{!o&&d(Ct.UNSET,t.current)},m=b=>{n&&!b.currentTarget.contains(b.relatedTarget)&&p()},g=b=>{o||(b.stopPropagation(),a(),h.on(c,f,f))},v=(b,_)=>{i(),h.off(),!_&&p()};return ha(o,t,l),Y(()=>{n&&u&&e.current&&e.current.focus()},[e,n,u]),{mouseOver:s,setHover:f,onBlur:m,onPointerMove:g,onPointerLeave:v}},ut=si("MenuItem",function({className:e,value:n,href:o,type:s,checked:a,disabled:i,children:c,onClick:u,isHovering:h,itemRef:d,externalRef:l,...f}){const p=!!i,{mouseOver:m,setHover:g,...v}=fa(d,d,h,p),b=Pt(ri),_=Pt(wl),T=s==="radio",E=s==="checkbox",w=!!o&&!p&&!T&&!E,k=T?_.value===n:E?!!a:!1,C=N=>{if(p){N.stopPropagation(),N.preventDefault();return}const B={value:n,syntheticEvent:N};N.key!==void 0&&(B.key=N.key),E&&(B.checked=!k),T&&(B.name=_.name),Zt(u,B),T&&Zt(_.onRadioChange,B),b.handleClick(B,E||T)},L=N=>{if(h)switch(N.key){case Ft.ENTER:N.preventDefault();case Ft.SPACE:w?d.current.click():C(N)}},A=ct(()=>({type:s,disabled:p,hover:m||h,checked:k,anchor:w}),[s,p,m,h,k,w]),S=mn({...v,onPointerDown:g,onKeyDown:L,onClick:C},f),O={role:T?"menuitemradio":E?"menuitemcheckbox":ii,"aria-checked":T||E?k:void 0,...xr(p,h),...S,ref:gn(l,d),className:ge({block:pe,element:ei,modifiers:A,className:e}),children:ct(()=>Zt(c,A),[c,A])};return w?r("li",{role:oi,children:r("a",{href:o,...O})}):r("li",{...O})}),Hl=si("FocusableItem",function({className:e,disabled:n,children:o,isHovering:s,itemRef:a,externalRef:i,...c}){const u=!!n,h=R(null),{mouseOver:d,setHover:l,onPointerLeave:f,...p}=fa(a,h,s,u),{handleClose:m}=Pt(ri),g=ct(()=>({disabled:u,hover:d||s,focusable:!0}),[u,s,d]),v=ct(()=>Zt(o,{...g,ref:h,closeMenu:m}),[o,g,m]),b=mn({...p,onPointerLeave:_=>f(_,!0),onFocus:l},c);return r("li",{role:ii,...xr(u),...b,ref:gn(i,a),className:ge({block:pe,element:ei,modifiers:g,className:e}),children:v})}),kn=Oe($e(function({className:e,...n},o){return r("li",{role:"separator",...n,ref:o,className:ge({block:pe,element:gl,className:e})})})),Wy=Oe($e(function({className:e,...n},o){return r("li",{role:oi,...n,ref:o,className:ge({block:pe,element:vl,className:e})})})),Zy=$e(function({className:e,style:n,takeOverflow:o,...s},a){const i=R(null),[c,u]=F(),{overflow:h,overflowAmt:d}=Pt(_r);return ln(()=>{let l;o&&d>=0&&(l=ia(i.current).height-d,l<0&&(l=0)),u(l>=0?{maxHeight:l,overflow:h}:void 0)},[o,h,d]),ln(()=>{c&&(i.current.scrollTop=0)},[c]),r("div",{...s,ref:gn(a,i),className:ge({block:pe,element:yl,className:e}),style:{...n,...c}})});var Rn=(t=>(t.Mouse="mouse",t.Touch="touch",t.Pointer="pointer",t))(Rn||{}),$n=(t=>(t.CancelledByMovement="cancelled-by-movement",t.CancelledByRelease="cancelled-by-release",t.CancelledOutsideElement="cancelled-outside-element",t))($n||{});const ql=["mousedown","mousemove","mouseup","mouseleave","mouseout"],Kl=["touchstart","touchmove","touchend","touchcancel"],Ul=["pointerdown","pointermove","pointerup","pointerleave","pointerout"];function Wl(t){return typeof t=="object"&&t!==null&&"pageX"in t&&typeof t.pageX=="number"&&"pageY"in t&&typeof t.pageY=="number"}function Zl(t){var e;return ql.includes((e=t?.nativeEvent)==null?void 0:e.type)}function pa(t){var e;return Kl.includes((e=t?.nativeEvent)==null?void 0:e.type)||"touches"in t}function Gl(t){const{nativeEvent:e}=t;return e?Ul.includes(e?.type)||"pointerId"in e:!1}function Qr(t){return Zl(t)||pa(t)||Gl(t)}function Vi(t){var e;const n=pa(t)?(e=t?.touches)==null?void 0:e[0]:t;return Wl(n)?{x:n.pageX,y:n.pageY}:null}function Vl(t){return{target:t.target,currentTarget:t.currentTarget,nativeEvent:t,persist:()=>{}}}function ma(t,{threshold:e=400,captureEvent:n=!1,detect:o=Rn.Pointer,cancelOnMovement:s=!1,cancelOutsideElement:a=!0,filterEvents:i,onStart:c,onMove:u,onFinish:h,onCancel:d}={}){const l=R(!1),f=R(!1),p=R(),m=R(),g=R(t),v=R(null),b=yt(w=>k=>{f.current||Qr(k)&&(i!==void 0&&!i(k)||(n&&k.persist(),c?.(k,{context:w}),v.current=Vi(k),f.current=!0,p.current=k.currentTarget,m.current=setTimeout(()=>{g.current&&(g.current(k,{context:w}),l.current=!0)},e)))},[n,i,c,e]),_=yt(w=>(k,C)=>{Qr(k)&&f.current&&(v.current=null,n&&k.persist(),l.current?h?.(k,{context:w}):f.current&&d?.(k,{context:w,reason:C??$n.CancelledByRelease}),l.current=!1,f.current=!1,m.current!==void 0&&clearTimeout(m.current))},[n,h,d]),T=yt(w=>k=>{if(Qr(k)&&(u?.(k,{context:w}),s!==!1&&v.current)){const C=Vi(k);if(C){const L=s===!0?25:s,A={x:Math.abs(C.x-v.current.x),y:Math.abs(C.y-v.current.y)};(A.x>L||A.y>L)&&_(w)(k,$n.CancelledByMovement)}}},[_,s,u]),E=yt(w=>{if(t===null)return{};switch(o){case Rn.Mouse:{const k={onMouseDown:b(w),onMouseMove:T(w),onMouseUp:_(w)};return a&&(k.onMouseLeave=C=>{_(w)(C,$n.CancelledOutsideElement)}),k}case Rn.Touch:return{onTouchStart:b(w),onTouchMove:T(w),onTouchEnd:_(w)};case Rn.Pointer:{const k={onPointerDown:b(w),onPointerMove:T(w),onPointerUp:_(w)};return a&&(k.onPointerLeave=C=>_(w)(C,$n.CancelledOutsideElement)),k}}},[t,_,a,o,T,b]);return Y(()=>{function w(k){const C=Vl(k);_()(C)}return window.addEventListener("mouseup",w),window.addEventListener("touchend",w),window.addEventListener("pointerup",w),()=>{window.removeEventListener("mouseup",w),window.removeEventListener("touchend",w),window.removeEventListener("pointerup",w)}},[_]),Y(()=>()=>{m.current!==void 0&&clearTimeout(m.current)},[]),Y(()=>{g.current=t},[t]),E}const Qi="dtflocale";function Ql(){try{const t=wo.session.get(Qi);if(t)return t;const e=new Intl.DateTimeFormat().resolvedOptions().locale;return wo.session.set(Qi,e),e}catch{return null}}const ga=Gt(Ql);function Yl(){const t=[...navigator.languages],e=ga();return e&&!t.includes(e)&&t.unshift(e),t}let Yi=Yl();const Yr=Gt((t,e={})=>{try{return new Intl.Locale(t,e)}catch{if(!t)return null;const[o,...s]=t.split("-",4),a=s.pop()||null,i={language:o,region:a,...e,toString:()=>{const c=i.language,u=s.length>0?`-${s.join("-")}-`:"-",h=i.region;return h?`${c}${u}${h}`:c}};return i}}),Xl=(t,e)=>{const n=e,o=Yr(t);let s=null;for(const c of Yi){const u=Yr(c)?.region;if(u){s=u;break}}const a=s&&o&&o.region!==s?Yr(o.language,{...o,region:s})?.toString():null,i=wr([a,t,t?.replace(/-[a-z]+$/i,"")],Yi,t);try{return new Intl.DateTimeFormat(i,n)}catch{return new Intl.DateTimeFormat(void 0,n)}},Ao=Gt(Xl);function jn(t,e){t instanceof Date||(t=new Date(t));const{hideTime:n,formatOpts:o,forceOpts:s}=e||{},a=new Date().getFullYear(),i=s||{year:t.getFullYear()===a?void 0:"numeric",month:"short",day:"numeric",hour:n?void 0:"numeric",minute:n?void 0:"numeric",...o};return Ao(Dt.locale,i).format(t)}function Jl(t){const e=URL.parse("./compose/",window.location),{width:n,height:o}=window.screen,s=Math.max(0,(n-600)/2),a=Math.max(0,(o-450)/2),i=Math.min(n,600),c=Math.min(o,450),u=t?.uid||Math.random(),h=window.open(e,"compose"+u,`width=${i},height=${c},left=${s},top=${a}`);return h?h.__COMPOSE__=t:alert(Dt._({id:"4S86wI"})),h}const tu=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function eu(){if(tu){const t=document.createElement("input");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.opacity="0",document.body.appendChild(t),t.focus(),setTimeout(()=>{document.body.removeChild(t)},500)}}const nu=document.documentElement,rr=getComputedStyle(nu),ru=8;let va=[0,0,0,0];function ya(){const t=rr.getPropertyValue("--sai-top"),e=rr.getPropertyValue("--sai-right"),n=rr.getPropertyValue("--sai-bottom"),o=rr.getPropertyValue("--sai-left");va=[Math.max(0,parseInt(t,10)),Math.max(0,parseInt(e,10)),Math.max(0,parseInt(n,10)),Math.max(0,parseInt(o,10))]}requestAnimationFrame(ya);function ba(t=[]){return va.map((n,o)=>(n||ru)+(t[o]||0)).join(" ")}CSS.supports("top: env(safe-area-inset-top)")&&window.addEventListener("resize",ya,{passive:!0});const Xi=5e3;function Pe(t){if(t||(t=!0),K.showCompose){K.composerState.minimized?ft({duration:Xi,text:Dt._({id:"/4fHR1"})}):ft({duration:Xi,text:Dt._({id:"vvl08N"})});return}eu(),K.showCompose=t}const Ji=document.createElement("template"),ou=/<\/p>/g,iu=/<\/li>/g,su=/[\r\n]{3,}/g;function ai(t,e){if(!t)return"";const{preProcess:n,truncateLinks:o=!0}=e||{};Ji.innerHTML=t.replace(ou,`

+ +`).replace(iu,` +`);const s=Ji.content,a=s.querySelectorAll("br");for(let c=0;c{if(c){const h=u.querySelector(".quote-inline");h&&h.remove()}}}),i=i.trim(),o?.options?.length&&(i+=` + +📊: +${o.options.map(u=>`${o.multiple?"▪️":"•"} ${u.title}`).join(` +`)}`),s?.length&&(i+=" "+s.map(u=>({image:"🖼️",gifv:"🎞️",video:"📹",audio:"🎵",unknown:""})[u.type]||"").join("")),c){const u=ci(a.quotedStatus);i+=` + +❝ +${u} +❞`}return i}const au={xs:8,s:12,m:16,l:20,xl:24,xxl:32},cu=/[^a-zA-Z0-9]/g;function lu({icon:t,size:e="m",alt:n,title:o,class:s="",style:a={}}){o=o||n;const{loadIcon:i,isIconLoaded:c}=Ic();if(!t)return null;const u=au[e];let h=Uc[t];if(!h)return null;let d,l,f=!1;Array.isArray(h)?[h,d,l]=h:typeof h=="object"&&({rotate:d,flip:l,rtl:f}=h,h=h.module);const p=o?.replace(cu,"-"),m=`${Bi}-title-${t}-${p}`;Y(()=>{c(t)||i(t)},[t]);const g=c(t);return r("span",{class:`icon ${s} ${f?"rtl-flip":""}`,style:{width:`${u}px`,height:`${u}px`,...a},"data-icon":t,title:g?void 0:o||void 0,children:g&&r("svg",{width:u,height:u,role:o?"img":"presentation","aria-labelledby":m,style:{transform:`${d?`rotate(${d})`:""} ${l?"scaleX(-1)":""}`},children:[o?r("title",{id:m,children:o}):null,r("use",{href:`#${Bi}-${t}`})]})})}const I=Oe(lu,(t,e)=>t.icon===e.icon&&t.title===e.title&&t.alt===e.alt),Ee=$e((t,e)=>{let n;try{n=Lc()}catch{}let o=(location.hash||"").replace(/^#/,"").trim();o===""&&(o="/");const{to:s,...a}=t;if(o&&o!=="/"&&o.includes("?")){const c=URL.parse(o,location.origin);if(c?.searchParams?.size){const u=Array.from(c.searchParams.entries()).map(([h,d])=>`${h}=${encodeURIComponent(d)}`).join("&");o=c.pathname+"?"+u}}const i=o===s||decodeURIComponent(o)===s;return r("a",{ref:e,href:`#${s}`,...a,class:`${t.class||""} ${i?"is-active":""}`,onClick:c=>{c.currentTarget?.parentNode?.closest("a")&&c.stopPropagation(),n&&(K.prevLocation=n),t.onClick?.(c)}})});function ts(t){const{className:e,disabled:n,...o}=t;return r(Hl,{className:e,disabled:n,children:({ref:s,closeMenu:a})=>r(Ee,{...o,ref:s,onClick:({detail:i})=>a(i===0?"Enter":void 0)})})}const wa=Gt(t=>new Intl.RelativeTimeFormat(t||void 0));function es(t){if(t instanceof Date)return!isNaN(t.getTime());{const e=new Date(t);return!isNaN(e.getTime())}}const dn=60,hn=60*dn,Ue=24*hn,uu=t=>{const e=wa(Dt.locale),n=(t.getTime()-Date.now())/1e3,o=Math.abs(n);return o{const e=(Date.now()-t.getTime())/1e3;return eu+1,0),s=ct(()=>new Date(t),[t]),[a,i,c]=ct(()=>{if(!es(s))return[""+(typeof t=="string"?t:""),"",""];let u;if(e==="micro"){const h=new Date;(h.getTime()-s.getTime())/1e3/Ue<=1?u=du(s):h.getFullYear()===s.getFullYear()?u=Ao(Dt.locale,{year:void 0,month:"short",day:"numeric"}).format(s):u=Ao(Dt.locale,{dateStyle:"short"}).format(s)}return u||(u=uu(s)),[u,s.toISOString(),s.toLocaleString()]},[s,e,n]);return Y(()=>{if(!es(s))return;let u,h;function d(){h=requestAnimationFrame(()=>{o(),l()})}function l(){const f=(Date.now()-s.getTime())/1e3;f{clearTimeout(u),cancelAnimationFrame(h)}},[]),r("time",{datetime:i,title:c,children:a})}function _a(t){const e=R(),n=R(),{label:o,direction:s,shift:a,...i}=t,[c,u]=F(s),[h,d]=F(a);return me(()=>{if(n.current){const l=n.current.offsetWidth,f=window.innerWidth;l>f*.5?(u("bottom"),d(a||8)):(u(s),d(a))}},[s,a]),r(jl,{...i,direction:c,shift:h,label:o,instanceRef:e,itemProps:{ref:n,onPointerMove:l=>{l.pointerType==="touch"&&e.current?.openMenu?.()},onPointerLeave:l=>{l.pointerType==="touch"&&e.current?.openMenu?.()},...t.itemProps}})}function hu(t,e=[]){!t||typeof t!="function"||Y(()=>{const n=new CloseWatcher;return n.addEventListener("close",t),()=>{n.destroy()}},e)}const fu=window.CloseWatcher?hu:()=>{},pu=document.getElementById("modal-container");function ns(){return getComputedStyle(document.documentElement).getPropertyValue("--backdrop-theme-color")}function an({children:t,onClose:e,onClick:n,class:o,minimized:s}){if(!t)return null;const a=R();Y(()=>{let l=setTimeout(()=>{const f=a.current?.querySelector('[tabindex="-1"]');f&&f.focus()},100);return()=>clearTimeout(l)},[]);const i=window.CloseWatcher,c=Ke("esc",()=>{setTimeout(()=>{e?.()},0)},{enabled:!i&&!!e,keydown:!1,keyup:!0,useKey:!0,ignoreEventWhen:l=>l.metaKey||l.ctrlKey||l.altKey||l.shiftKey},[e]);fu(e,[e]),Y(()=>{const l=document.querySelectorAll(".deck-container");if(s){const f=l[l.length-1];f&&f.tabIndex===-1&&f.focus()}else t?l.forEach(f=>{f.setAttribute("inert","")}):l.forEach(f=>{f.removeAttribute("inert")});return()=>{l.forEach(f=>{f.removeAttribute("inert")})}},[t,s]);const u=R(),h=R();me(()=>{if(t&&!s)if(wo.local.get("theme")){const f=ns();u.current=document.querySelector('meta[name="theme-color"][data-theme-setting="manual"]'),u.current&&(h.current=u.current.content,u.current.content=f),document.documentElement.style.setProperty("--meta-theme-color",f)}else{const f=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",p=ns();u.current=document.querySelector(`meta[name="theme-color"][media*="${f}"]`),u.current&&(h.current=u.current.content,u.current.content=p),document.documentElement.style.setProperty("--meta-theme-color",p)}else u.current&&h.current&&(u.current.content=h.current),document.documentElement.style.removeProperty("--meta-theme-color");return()=>{u.current&&h.current&&(u.current.content=h.current),document.documentElement.style.removeProperty("--meta-theme-color")}},[t,s]);const d=r("div",{ref:l=>{a.current=l,c.current=l?.querySelector?.('[tabindex="-1"]')||l},className:o,onClick:l=>{n?.(l),l.target===l.currentTarget&&e?.(l)},tabIndex:s?0:"-1",inert:s,onFocus:l=>{try{if(l.target===l.currentTarget){const f=a.current?.querySelector('[tabindex="-1"]'),p=!!f&&getComputedStyle(f)?.pointerEvents!=="none";f&&p&&f.focus()}}catch{}},children:t});return br(d,pu)}const rs={s:16,m:20,l:24,xl:32,xxl:50,xxxl:64},En={},On=window.OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas"),vr=On.getContext("2d",{willReadFrequently:!0});vr.imageSmoothingEnabled=!1;const mu=/missing\.png$/;function gu({url:t,staticUrl:e,size:n,alt:o="",squircle:s,...a}){n=rs[n]||n||rs.m;const i=R(),c=mu.test(t);return r("picture",{ref:i,class:`avatar ${s?"squircle":""} ${En[t]?"has-alpha":""}`,style:{width:n,height:n},title:o,...a,children:[!!e&&r("source",{srcset:e,media:"(prefers-reduced-motion: reduce)"}),!!t&&r("img",{src:t,width:n,height:n,alt:o,loading:"lazy",decoding:"async",fetchPriority:"low",crossOrigin:En[t]===void 0&&!c?"anonymous":void 0,onError:u=>{u.target.crossOrigin&&(u.target.crossOrigin=null,u.target.src=t)},onLoad:u=>{i.current&&(i.current.dataset.loaded=!0),En[t]===void 0&&(c||setTimeout(()=>{try{const{width:h,height:d}=u.target;On.width!==h&&(On.width=h),On.height!==d&&(On.height=d),vr.drawImage(u.target,0,0);const l=vr.getImageData(0,0,h,d),f=l.data.filter((p,m)=>m%4===3&&p<=128).length/(l.data.length/4)>.1;f&&i.current.classList.add("has-alpha"),En[t]=f,vr.clearRect(0,0,h,d)}catch{En[t]=!1}},1))}})]})}const oe=Gt(gu);let xo=!1;const vu=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"){const{dir:n}=e.target;n==="rtl"?xo=!0:xo=!1}})});vu.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});function Mo(){return xo}function yu(){const[t,e]=F({width:null,height:null});return me(()=>{const n=()=>{e({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n,{passive:!0}),()=>{window.removeEventListener("resize",n)}},[]),t}function Io(t){const{containerProps:e,instanceRef:n,align:o}=t,s=yu(),a=n?.current?n:R(),i=Mo()?o==="end"?"start":o==="start"?"end":o:o;return r(zl,{boundingBoxPadding:ba(),repositionFlag:`${s.width}x${s.height}`,unmountOnClose:!0,...t,align:i,instanceRef:a,containerProps:{onClick:c=>{c.target===c.currentTarget&&a.current?.closeMenu?.(),e?.onClick?.(c)},...e}})}function or({subMenu:t=!1,confirm:e=!0,confirmLabel:n,menuItemClassName:o,menuFooter:s,menuExtras:a,...i}){const{children:c,onClick:u,...h}=i;return e?r(t?_a:Io,{openTrigger:"clickOnly",direction:"bottom",overflow:"auto",gap:-8,shift:8,menuClassName:"menu-emphasized",...h,menuButton:t?void 0:c,label:t?c:void 0,children:[r(ut,{className:o,onClick:u,children:n}),a,s]}):t?r(ut,{...i}):u?Pc(c,{onClick:u}):c}var be={},Xr={},we={},os;function Sa(){if(os)return we;os=1,Object.defineProperty(we,"__esModule",{value:!0}),we.loop=we.conditional=we.parse=void 0;var t=function o(s,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i;if(Array.isArray(a))a.forEach(function(h){return o(s,h,i,c)});else if(typeof a=="function")a(s,i,c,o);else{var u=Object.keys(a)[0];Array.isArray(a[u])?(c[u]={},o(s,a[u],i,c[u])):c[u]=a[u](s,i,c,o)}return i};we.parse=t;var e=function(s,a){return function(i,c,u,h){a(i,c,u)&&h(i,s,c,u)}};we.conditional=e;var n=function(s,a){return function(i,c,u,h){for(var d=[],l=i.pos;a(i,c,u);){var f={};if(h(i,s,c,f),i.pos===l)break;l=i.pos,d.push(f)}return d}};return we.loop=n,we}var Et={},is;function Ta(){if(is)return Et;is=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.readBits=Et.readArray=Et.readUnsigned=Et.readString=Et.peekBytes=Et.readBytes=Et.peekByte=Et.readByte=Et.buildStream=void 0;var t=function(l){return{data:l,pos:0}};Et.buildStream=t;var e=function(){return function(l){return l.data[l.pos++]}};Et.readByte=e;var n=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(f){return f.data[f.pos+l]}};Et.peekByte=n;var o=function(l){return function(f){return f.data.subarray(f.pos,f.pos+=l)}};Et.readBytes=o;var s=function(l){return function(f){return f.data.subarray(f.pos,f.pos+l)}};Et.peekBytes=s;var a=function(l){return function(f){return Array.from(o(l)(f)).map(function(p){return String.fromCharCode(p)}).join("")}};Et.readString=a;var i=function(l){return function(f){var p=o(2)(f);return l?(p[1]<<8)+p[0]:(p[0]<<8)+p[1]}};Et.readUnsigned=i;var c=function(l,f){return function(p,m,g){for(var v=typeof f=="function"?f(p,m,g):f,b=o(l),_=new Array(v),T=0;T=g){var _=g-f.pos;m.push((0,n.readBytes)(_)(f)),v+=_;break}m.push((0,n.readBytes)(b)(f)),v+=b}for(var T=new Uint8Array(v),E=0,w=0;w>=l,C-=l,g>u||g==f)break;if(g==h){l=b+1,d=(1<h;)w[S++]=E[g],g=T[g];A=E[g]&255,w[S++]=A,u{h.toBlob(p,"image/png")});return URL.createObjectURL(f)}catch{return null}}function Lo({staticUrl:t,alt:e,url:n}){return r("picture",{children:[t&&r("source",{srcset:t,media:"(prefers-reduced-motion: reduce)"}),r("img",{src:n,alt:e,class:"shortcode-emoji emoji",width:"16",height:"16",loading:"lazy",decoding:"async",fetchPriority:"low",onLoad:o=>{try{o.target.dataset.isLarger=o.target.naturalWidth>o.target.width*2||o.target.naturalHeight>o.target.height*2}catch{}}},e||n)]})}const ku=new Vo({concurrency:2,interval:1e3,intervalCap:2}),Eu=(t,...e)=>ku.add(()=>fetch(...e),{signal:t}),ds=/(\:(\w|\+|\-)+\:)(?=|[\!\.\?]|$)/g,Cu=Gt(t=>new RegExp(`:(${t.join("|")}):`,"g")),De=new Map,Au=30,xu=async t=>{if(De.has(t))return De.get(t);try{const o=(await(await Eu(null,t,{headers:{accept:"application/activity+json"},referrerPolicy:"no-referrer"})).json()).tag?.filter(a=>a.type==="Emoji")||[],s=o.length?await Promise.all(o.map(async a=>{const i={shortcode:a.name.replace(/^:|:$/g,""),url:a.icon.url};if(a.icon?.mediaType==="image/gif"){const c=await Tu(i.url);c&&(i.staticUrl=c)}return i})):[];if(De.size>=Au){const a=De.keys().next().value;De.delete(a)}return De.set(t,s),s}catch{return[]}},Mu=Gt((t,e,n)=>{if(!t)return"";if(!t.includes(":")||!e.length)return t;const o=Cu(e.map(a=>a.shortcode));return t.split(o).map((a,i)=>{const c=e.find(u=>u.shortcode===a);if(c){const{url:u,staticUrl:h}=c;return r(Lo,{staticUrl:n?void 0:h,url:n&&h||u,alt:a},`${a}-${i}`)}return a})});function fn({text:t,emojis:e=[],staticEmoji:n,resolverURL:o}){const[s,a]=F(()=>De.get(o)||[]),[i,c]=F(!1);if(Y(()=>{if(!o||!t?.includes(":"))return;const h=t.match(ds);!h||!h.some(l=>{const f=l.slice(1,-1);return!e.some(p=>p.shortcode===f)})||De.has(o)||(c(!0),(async()=>{const l=await xu(o);a(l),c(!1)})())},[o,t,e?.length]),!t)return"";if(!t.includes(":"))return t;if(o&&i)return t.replace(ds,"");const u=[...s.filter(h=>!e.some(d=>d.shortcode===h.shortcode)),...e];return Mu(t,u,n)}function Po({roles:t,accountId:e,accountUrl:n,hideSelf:o=!1}){if(!t?.length)return null;const s=e&&e===Qo();if(o&&s)return null;const a=_o(n);return t?.map(i=>r($,{children:[" ",r("span",{class:"tag collapsed tag-role",children:[i.name,!!a&&r($,{children:[" ",r("span",{class:"more-insignificant",children:a})]})]})]}))}const Iu=Gt(t=>{const e={sensitivity:"base"};try{return new Intl.Collator(t||void 0,e)}catch{return new Intl.Collator(void 0,e)}}),Lu=/([^@]+)(@.+)/i,Pu=/(\:(\w|\+|\-)+\:)(?=|[\!\.\?]|$)/g,Du=/\s+/g,Ru=/[^a-z0-9@\.]/gi;function he({account:t,instance:e,showAvatar:n,showAcct:o,short:s,external:a,onClick:i}){const{i18n:c}=Nt();if(!t)return null;const{acct:u,avatar:h,avatarStatic:d,id:l,url:f,displayName:p,emojis:m,bot:g,username:v,roles:b}=t,[_,T,E]=u.match(Lu)||[,u];e||(e=ke().instance);const w=v.toLowerCase().trim(),k=(p||"").toLowerCase().trim(),C=k.replace(Pu,"").replace(Du,""),L=C.replace(Ru,""),A=!s&&(w===k||w===C||w===L||Iu(c.locale).compare(w,C)===0)||L===u.toLowerCase();return r("a",{class:`name-text ${o?"show-acct":""} ${s?"short":""}`,href:f,target:a?"_blank":null,title:p?`${p} (${E?"":"@"}${u})`:`${E?"":"@"}${u}`,onClick:S=>{if(!a&&!S.shiftKey){if(S.preventDefault(),S.stopPropagation(),i)return i(S);if(S.metaKey||S.ctrlKey||S.shiftKey||S.which===2){const O=`#/${e}/a/${l}`;window.open(O,"_blank");return}K.showAccount={account:t,instance:e}}},children:[n&&r($,{children:[r(oe,{url:d||h,squircle:g})," "]}),p&&!s?r($,{children:[r("b",{dir:"auto",children:r(fn,{text:p,emojis:m,resolverURL:t.url,staticEmoji:!0})}),!o&&!A&&r($,{children:[" ",r("i",{class:"bidi-isolate",children:["@",v]}),r(Po,{roles:b,accountId:l,accountUrl:f,hideSelf:!0})]})]}):s?r("i",{children:v}):r("b",{children:v}),o&&r($,{children:[r("br",{}),r("i",{class:"bidi-isolate",children:[E?"":"@",T,!!E&&r("span",{class:"ib",children:E})]}),r(Po,{roles:b,accountUrl:f})]})]})}function ka(t,e,n,o){var s=this,a=R(null),i=R(0),c=R(0),u=R(null),h=R([]),d=R(),l=R(),f=R(t),p=R(!0),m=R(),g=R();f.current=t;var v=typeof window<"u",b=!e&&e!==0&&v;if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;var _=!!(n=n||{}).leading,T=!("trailing"in n)||!!n.trailing,E=!!n.flushOnExit&&T,w="maxWait"in n,k="debounceOnServer"in n&&!!n.debounceOnServer,C=w?Math.max(+n.maxWait||0,e):null,L=ct(function(){var A=function(z){var G=h.current,D=d.current;return h.current=d.current=null,i.current=z,c.current=c.current||z,l.current=f.current.apply(D,G)},S=function(z,G){b&&cancelAnimationFrame(u.current),u.current=b?requestAnimationFrame(z):setTimeout(z,G)},O=function(z){if(!p.current)return!1;var G=z-a.current;return!a.current||G>=e||G<0||w&&z-i.current>=C},N=function(z){return u.current=null,T&&h.current?A(z):(h.current=d.current=null,l.current)},B=function z(){var G=Date.now();if(_&&c.current===i.current&&M(),O(G))return N(G);if(p.current){var D=e-(G-a.current),j=w?Math.min(D,C-(G-i.current)):D;S(z,j)}},M=function(){o&&o({})},X=function(){if(v||k){var z,G=Date.now(),D=O(G);if(h.current=[].slice.call(arguments),d.current=s,a.current=G,E&&!m.current&&(m.current=function(){var j;((j=global.document)==null?void 0:j.visibilityState)==="hidden"&&g.current.flush()},(z=global.document)==null||z.addEventListener==null||z.addEventListener("visibilitychange",m.current)),D){if(!u.current&&p.current)return i.current=a.current,S(B,e),_?A(a.current):l.current;if(w)return S(B,e),A(a.current)}return u.current||S(B,e),l.current}};return X.cancel=function(){var z=u.current;z&&(b?cancelAnimationFrame(u.current):clearTimeout(u.current)),i.current=0,h.current=a.current=d.current=u.current=null,z&&o&&o({})},X.isPending=function(){return!!u.current},X.flush=function(){return u.current?N(Date.now()):l.current},X},[_,w,e,C,T,E,b,v,k,o]);return g.current=L,Y(function(){return p.current=!0,function(){var A;E&&g.current.flush(),m.current&&((A=global.document)==null||A.removeEventListener==null||A.removeEventListener("visibilitychange",m.current),m.current=null),p.current=!1}},[E]),L}function $u(t,e){return t===e}function Gy(t,e,n){var o=n&&n.equalityFn||$u,s=R(t),a=F({})[1],i=ka(yt(function(u){s.current=u,a({})},[a]),e,n,a),c=R(t);return o(c.current,t)||(i(t),c.current=t),[s.current,i]}function Ou(t,e,n){var o=n===void 0?{}:n,s=o.leading,a=o.trailing,i=o.flushOnExit;return ka(t,e,{maxWait:e,leading:s===void 0||s,trailing:a===void 0||a,flushOnExit:i!==void 0&&i})}const Nu="Аҧсшәа",Fu="Acèh",Bu="Lëbacoli",zu="Afár",ju="Afrikaans",Hu="Shqip",qu="Dhalur",Ku="አማርኛ",Uu="العربية",Wu="Հայերեն",Zu="অসমীয়া",Gu="Авар мацӀ",Vu="अवधी",Qu="Aymar aru",Yu="Azərbaycanca",Xu="Basa Bali",Ju="بلوچی",td="Bamanankan",ed="Baoulé",nd="Башҡортса",rd="Euskara",od="Batak Karo",id="Batak Simalungun",sd="Batak Toba",ad="Беларуская",cd="Ichibemba",ld="বাংলা",ud="Betawi",dd="भोजपुरी",hd="Bikol",fd="Bosanski",pd="Brezhoneg",md="Български",gd="Буряад",vd="粵語",yd="Català",bd="Cebuano",wd="Chamoru",_d="Нохчийн мотт",Sd="Chichewa",Td="Kapasen Chuuk",kd="Чӑвашла",Ed="Corsu",Cd="Qırımtatarca (Кирилл)",Ad="Hrvatski",xd="Čeština",Md="Dansk",Id="ދިވެހި",Ld="Thuɔŋjäŋ",Pd="डोगरी",Dd="Dombe",Rd="Nederlands",$d="Jula",Od="རྫོང་ཁ",Nd="English",Fd="Esperanto",Bd="Eesti",zd="Eʋegbe",jd="Føroyskt",Hd="Vosa Vakaviti",qd="Tagalog",Kd="Suomi",Ud="Fon",Wd="Français",Zd="Frysk",Gd="Furlan",Vd="Fulfulde",Qd="Gã",Yd="Galego",Xd="ქართული",Jd="Deutsch",th="Ελληνικά",eh="Avañe'ẽ",nh="ગુજરાતી",rh="Kreyòl ayisyen",oh="Hakha Chin",ih="Hausa",sh="ʻŌlelo Hawaiʻi",ah="עברית",ch="Hiligaynon",lh="हिन्दी",uh="Hmoob",dh="Magyar",hh="Hunsrik",fh="Iban",ph="Íslenska",mh="Igbo",gh="Iloko",vh="Bahasa Indonesia",yh="ᐃᓄᒃᑎᑐᑦ",bh="Gaeilge",wh="Italiano",_h="Patwa",Sh="日本語",Th="Basa Jawa",kh="Jinghpaw",Eh="Kalaallisut",Ch="ಕನ್ನಡ",Ah="Kanuri",xh="Kapampangan",Mh="Қазақша",Ih="Khasi",Lh="ភាសាខ្មែរ",Ph="Rukiga",Dh="Kikongo",Rh="Kinyarwanda",$h="Kituba",Oh="Kokborok",Nh="Коми кыв",Fh="कोंकणी",Bh="한국어",zh="Krio",jh="Kurdî (Kurmancî)",Hh="کوردی (سۆرانی)",qh="Кыргызча",Kh="ລາວ",Uh="Latgaļu",Wh="Latina",Zh="Latviešu",Gh="Ligure",Vh="Limburgs",Qh="Lingála",Yh="Lietuvių",Xh="Lombard",Jh="Luganda",tf="Dholuo",ef="Lëtzebuergesch",nf="Македонски",rf="Madhurâ",of="मैथिली",sf="Makassar",af="Malagasy",cf="Bahasa Melayu",lf="മലയാളം",uf="Malti",df="Mam",hf="Gaelg",ff="Te Reo Māori",pf="मराठी",mf="Kajin M̧ajeļ",gf="मारवाड़ी",vf="Kreol Morisien",yf="Олык марий",bf="Baso Minang",wf="Mizo ṭawng",_f="Монгол",Sf="မြန်မာစာ",Tf="Náhuatl",kf="isiNdebele",Ef="नेपाली",Cf="Norsk",Af="Thok Nath",xf="Occitan",Mf="ଓଡ଼ିଆ",If="Afaan Oromoo",Lf="Ирон æвзаг",Pf="Pangasinan",Df="Papiamentu",Rf="پښتو",$f="فارسی",Of="Polski",Nf="Português (Brasil)",Ff="ਪੰਜਾਬੀ",Bf="Runa Simi",zf="Qʼeqchiʼ",jf="Romani čhib",Hf="Română",qf="Ikirundi",Kf="Русский",Uf="Davvisámegiella",Wf="Gagana Samoa",Zf="Sängö",Gf="संस्कृतम्",Vf="ᱥᱟᱱᱛᱟᱲᱤ",Qf="Gàidhlig",Yf="Sepedi",Xf="Српски",Jf="Sesotho",tp="Kreol seselwa",ep="လိၵ်ႈတႆး",np="chiShona",rp="Sicilianu",op="Ślōnskŏ",ip="سنڌي",sp="සිංහල",ap="Slovenčina",cp="Slovenščina",lp="Soomaali",up="Español",dp="Basa Sunda",hp="Susu",fp="Kiswahili",pp="siSwati",mp="Svenska",gp="Reo Tahiti",vp="Тоҷикӣ",yp="ⵜⴰⵎⴰⵣⵉⵖⵜ",bp="தமிழ்",wp="Татарча",_p="తెలుగు",Sp="Tetun",Tp="ไทย",kp="བོད་ཡིག",Ep="ትግርኛ",Cp="Tiv",Ap="Tok Pisin",xp="Lea fakatonga",Mp="Tshiluba",Ip="Xitsonga",Lp="Setswana",Pp="ತುಳು",Dp="chiTumbuka",Rp="Türkçe",$p="Türkmençe",Op="Тыва дыл",Np="Akankasa",Fp="Удмурт кыл",Bp="Українська",zp="اردو",jp="ئۇيغۇرچە",Hp="Oʻzbekcha",qp="Tshivenḓa",Kp="Vèneto",Up="Tiếng Việt",Wp="Winaray",Zp="Cymraeg",Gp="Wolof",Vp="isiXhosa",Qp="Саха тыла",Yp="ייִדיש",Xp="Yorùbá",Jp="Màaya T'àan",tm="Didxazá",em="isiZulu",nm={ab:Nu,ace:Fu,ach:Bu,aa:zu,af:ju,sq:Hu,alz:qu,am:Ku,ar:Uu,hy:Wu,as:Zu,av:Gu,awa:Vu,ay:Qu,az:Yu,ban:Xu,bal:Ju,bm:td,bci:ed,ba:nd,eu:rd,btx:od,bts:id,bbc:sd,be:ad,bem:cd,bn:ld,bew:ud,bho:dd,bik:hd,bs:fd,br:pd,bg:md,bua:gd,yue:vd,ca:yd,ceb:bd,ch:wd,ce:_d,ny:Sd,"zh-CN":"简体中文","zh-TW":"繁體中文",chk:Td,cv:kd,co:Ed,crh:Cd,"crh-Latn":"Qırımtatarca (Latin)",hr:Ad,cs:xd,da:Md,"fa-AF":"درى",dv:Id,din:Ld,doi:Pd,dov:Dd,nl:Rd,dyu:$d,dz:Od,en:Nd,eo:Fd,et:Bd,ee:zd,fo:jd,fj:Hd,tl:qd,fi:Kd,fon:Ud,fr:Wd,"fr-CA":"Français (Canada)",fy:Zd,fur:Gd,ff:Vd,gaa:Qd,gl:Yd,ka:Xd,de:Jd,el:th,gn:eh,gu:nh,ht:rh,cnh:oh,ha:ih,haw:sh,iw:ah,hil:ch,hi:lh,hmn:uh,hu:dh,hrx:hh,iba:fh,is:ph,ig:mh,ilo:gh,id:vh,"iu-Latn":"Inuktitut (Latin)",iu:yh,ga:bh,it:wh,jam:_h,ja:Sh,jw:Th,kac:kh,kl:Eh,kn:Ch,kr:Ah,pam:xh,kk:Mh,kha:Ih,km:Lh,cgg:Ph,kg:Dh,rw:Rh,ktu:$h,trp:Oh,kv:Nh,gom:Fh,ko:Bh,kri:zh,ku:jh,ckb:Hh,ky:qh,lo:Kh,ltg:Uh,la:Wh,lv:Zh,lij:Gh,li:Vh,ln:Qh,lt:Yh,lmo:Xh,lg:Jh,luo:tf,lb:ef,mk:nf,mad:rf,mai:of,mak:sf,mg:af,ms:cf,"ms-Arab":"بهاس ملايو",ml:lf,mt:uf,mam:df,gv:hf,mi:ff,mr:pf,mh:mf,mwr:gf,mfe:vf,chm:yf,"mni-Mtei":"ꯃꯤꯇꯩꯂꯣꯟ",min:bf,lus:wf,mn:_f,my:Sf,nhe:Tf,"ndc-ZW":"Ndau",nr:kf,new:"नेपाल भाषा",ne:Ef,"bm-Nkoo":"ߒߞߏ",no:Cf,nus:Af,oc:xf,or:Mf,om:If,os:Lf,pag:Pf,pap:Df,ps:Rf,fa:$f,pl:Of,pt:Nf,"pt-PT":"Português (Portugal)",pa:Ff,"pa-Arab":"پنجابی",qu:Bf,kek:zf,rom:jf,ro:Hf,rn:qf,ru:Kf,se:Uf,sm:Wf,sg:Zf,sa:Gf,"sat-Latn":"Santali (Latin)",sat:Vf,gd:Qf,nso:Yf,sr:Xf,st:Jf,crs:tp,shn:ep,sn:np,scn:rp,szl:op,sd:ip,si:sp,sk:ap,sl:cp,so:lp,es:up,su:dp,sus:hp,sw:fp,ss:pp,sv:mp,ty:gp,tg:vp,"ber-Latn":"Tamazight (Latin)",ber:yp,ta:bp,tt:wp,te:_p,tet:Sp,th:Tp,bo:kp,ti:Ep,tiv:Cp,tpi:Ap,to:xp,lua:Mp,ts:Ip,tn:Lp,tcy:Pp,tum:Dp,tr:Rp,tk:$p,tyv:Op,ak:Np,udm:Fp,uk:Bp,ur:zp,ug:jp,uz:Hp,ve:qp,vec:Kp,vi:Up,war:Wp,cy:Zp,wo:Gp,xh:Vp,sah:Qp,yi:Yp,yo:Xp,yua:Jp,zap:tm,zu:em},ir={"zh-YUE":"YUE",zh_HANT:"zh-Hant"},Jr=Gt(t=>new Intl.DisplayNames(t||void 0,{type:"language"}));function rm(t){let e,n;typeof t=="object"&&({code:t,locale:e,fallback:n}=t);try{const o=Jr(e||Dt.locale).of(t);if(o!==t)return o;if(!n){const s=Jr(t).of(t);if(s!==t)return s;const a=nm?.[e];if(a!==t)return a}return n||""}catch{if(ir[t])try{const s=Jr(ir[e]||e||Dt.locale).of(ir[t]);return s!==ir[t]?s:n||""}catch{}return n||""}}const xn=Gt(rm),om={auto:"Detect language",ab:"Abkhaz",ace:"Acehnese",ach:"Acholi",aa:"Afar",af:"Afrikaans",sq:"Albanian",alz:"Alur",am:"Amharic",ar:"Arabic",hy:"Armenian",as:"Assamese",av:"Avar",awa:"Awadhi",ay:"Aymara",az:"Azerbaijani",ban:"Balinese",bal:"Baluchi",bm:"Bambara",bci:"Baoulé",ba:"Bashkir",eu:"Basque",btx:"Batak Karo",bts:"Batak Simalungun",bbc:"Batak Toba",be:"Belarusian",bem:"Bemba",bn:"Bengali",bew:"Betawi",bho:"Bhojpuri",bik:"Bikol",bs:"Bosnian",br:"Breton",bg:"Bulgarian",bua:"Buryat",yue:"Cantonese",ca:"Catalan",ceb:"Cebuano",ch:"Chamorro",ce:"Chechen",ny:"Chichewa","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)",chk:"Chuukese",cv:"Chuvash",co:"Corsican",crh:"Crimean Tatar (Cyrillic)","crh-Latn":"Crimean Tatar (Latin)",hr:"Croatian",cs:"Czech",da:"Danish","fa-AF":"Dari",dv:"Dhivehi",din:"Dinka",doi:"Dogri",dov:"Dombe",nl:"Dutch",dyu:"Dyula",dz:"Dzongkha",en:"English",eo:"Esperanto",et:"Estonian",ee:"Ewe",fo:"Faroese",fj:"Fijian",tl:"Filipino",fi:"Finnish",fon:"Fon",fr:"French","fr-CA":"French (Canada)",fy:"Frisian",fur:"Friulian",ff:"Fulani",gaa:"Ga",gl:"Galician",ka:"Georgian",de:"German",el:"Greek",gn:"Guarani",gu:"Gujarati",ht:"Haitian Creole",cnh:"Hakha Chin",ha:"Hausa",haw:"Hawaiian",iw:"Hebrew",hil:"Hiligaynon",hi:"Hindi",hmn:"Hmong",hu:"Hungarian",hrx:"Hunsrik",iba:"Iban",is:"Icelandic",ig:"Igbo",ilo:"Ilocano",id:"Indonesian","iu-Latn":"Inuktut (Latin)",iu:"Inuktut (Syllabics)",ga:"Irish",it:"Italian",jam:"Jamaican Patois",ja:"Japanese",jw:"Javanese",kac:"Jingpo",kl:"Kalaallisut",kn:"Kannada",kr:"Kanuri",pam:"Kapampangan",kk:"Kazakh",kha:"Khasi",km:"Khmer",cgg:"Kiga",kg:"Kikongo",rw:"Kinyarwanda",ktu:"Kituba",trp:"Kokborok",kv:"Komi",gom:"Konkani",ko:"Korean",kri:"Krio",ku:"Kurdish (Kurmanji)",ckb:"Kurdish (Sorani)",ky:"Kyrgyz",lo:"Lao",ltg:"Latgalian",la:"Latin",lv:"Latvian",lij:"Ligurian",li:"Limburgish",ln:"Lingala",lt:"Lithuanian",lmo:"Lombard",lg:"Luganda",luo:"Luo",lb:"Luxembourgish",mk:"Macedonian",mad:"Madurese",mai:"Maithili",mak:"Makassar",mg:"Malagasy",ms:"Malay","ms-Arab":"Malay (Jawi)",ml:"Malayalam",mt:"Maltese",mam:"Mam",gv:"Manx",mi:"Maori",mr:"Marathi",mh:"Marshallese",mwr:"Marwadi",mfe:"Mauritian Creole",chm:"Meadow Mari","mni-Mtei":"Meiteilon (Manipuri)",min:"Minang",lus:"Mizo",mn:"Mongolian",my:"Myanmar (Burmese)",nhe:"Nahuatl (Eastern Huasteca)","ndc-ZW":"Ndau",nr:"Ndebele (South)",new:"Nepalbhasa (Newari)",ne:"Nepali","bm-Nkoo":"NKo",no:"Norwegian",nus:"Nuer",oc:"Occitan",or:"Odia (Oriya)",om:"Oromo",os:"Ossetian",pag:"Pangasinan",pap:"Papiamento",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",pa:"Punjabi (Gurmukhi)","pa-Arab":"Punjabi (Shahmukhi)",qu:"Quechua",kek:"Qʼeqchiʼ",rom:"Romani",ro:"Romanian",rn:"Rundi",ru:"Russian",se:"Sami (North)",sm:"Samoan",sg:"Sango",sa:"Sanskrit","sat-Latn":"Santali (Latin)",sat:"Santali (Ol Chiki)",gd:"Scots Gaelic",nso:"Sepedi",sr:"Serbian",st:"Sesotho",crs:"Seychellois Creole",shn:"Shan",sn:"Shona",scn:"Sicilian",szl:"Silesian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",su:"Sundanese",sus:"Susu",sw:"Swahili",ss:"Swati",sv:"Swedish",ty:"Tahitian",tg:"Tajik","ber-Latn":"Tamazight",ber:"Tamazight (Tifinagh)",ta:"Tamil",tt:"Tatar",te:"Telugu",tet:"Tetum",th:"Thai",bo:"Tibetan",ti:"Tigrinya",tiv:"Tiv",tpi:"Tok Pisin",to:"Tongan",lua:"Tshiluba",ts:"Tsonga",tn:"Tswana",tcy:"Tulu",tum:"Tumbuka",tr:"Turkish",tk:"Turkmen",tyv:"Tuvan",ak:"Twi",udm:"Udmurt",uk:"Ukrainian",ur:"Urdu",ug:"Uyghur",uz:"Uzbek",ve:"Venda",vec:"Venetian",vi:"Vietnamese",war:"Waray",cy:"Welsh",wo:"Wolof",xh:"Xhosa",sah:"Yakut",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",zap:"Zapotec",zu:"Zulu"},im={ab:"Abkhaz",ace:"Acehnese",ach:"Acholi",aa:"Afar",af:"Afrikaans",sq:"Albanian",alz:"Alur",am:"Amharic",ar:"Arabic",hy:"Armenian",as:"Assamese",av:"Avar",awa:"Awadhi",ay:"Aymara",az:"Azerbaijani",ban:"Balinese",bal:"Baluchi",bm:"Bambara",bci:"Baoulé",ba:"Bashkir",eu:"Basque",btx:"Batak Karo",bts:"Batak Simalungun",bbc:"Batak Toba",be:"Belarusian",bem:"Bemba",bn:"Bengali",bew:"Betawi",bho:"Bhojpuri",bik:"Bikol",bs:"Bosnian",br:"Breton",bg:"Bulgarian",bua:"Buryat",yue:"Cantonese",ca:"Catalan",ceb:"Cebuano",ch:"Chamorro",ce:"Chechen",ny:"Chichewa","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)",chk:"Chuukese",cv:"Chuvash",co:"Corsican",crh:"Crimean Tatar (Cyrillic)","crh-Latn":"Crimean Tatar (Latin)",hr:"Croatian",cs:"Czech",da:"Danish","fa-AF":"Dari",dv:"Dhivehi",din:"Dinka",doi:"Dogri",dov:"Dombe",nl:"Dutch",dyu:"Dyula",dz:"Dzongkha",en:"English",eo:"Esperanto",et:"Estonian",ee:"Ewe",fo:"Faroese",fj:"Fijian",tl:"Filipino",fi:"Finnish",fon:"Fon",fr:"French","fr-CA":"French (Canada)",fy:"Frisian",fur:"Friulian",ff:"Fulani",gaa:"Ga",gl:"Galician",ka:"Georgian",de:"German",el:"Greek",gn:"Guarani",gu:"Gujarati",ht:"Haitian Creole",cnh:"Hakha Chin",ha:"Hausa",haw:"Hawaiian",iw:"Hebrew",hil:"Hiligaynon",hi:"Hindi",hmn:"Hmong",hu:"Hungarian",hrx:"Hunsrik",iba:"Iban",is:"Icelandic",ig:"Igbo",ilo:"Ilocano",id:"Indonesian","iu-Latn":"Inuktut (Latin)",iu:"Inuktut (Syllabics)",ga:"Irish",it:"Italian",jam:"Jamaican Patois",ja:"Japanese",jw:"Javanese",kac:"Jingpo",kl:"Kalaallisut",kn:"Kannada",kr:"Kanuri",pam:"Kapampangan",kk:"Kazakh",kha:"Khasi",km:"Khmer",cgg:"Kiga",kg:"Kikongo",rw:"Kinyarwanda",ktu:"Kituba",trp:"Kokborok",kv:"Komi",gom:"Konkani",ko:"Korean",kri:"Krio",ku:"Kurdish (Kurmanji)",ckb:"Kurdish (Sorani)",ky:"Kyrgyz",lo:"Lao",ltg:"Latgalian",la:"Latin",lv:"Latvian",lij:"Ligurian",li:"Limburgish",ln:"Lingala",lt:"Lithuanian",lmo:"Lombard",lg:"Luganda",luo:"Luo",lb:"Luxembourgish",mk:"Macedonian",mad:"Madurese",mai:"Maithili",mak:"Makassar",mg:"Malagasy",ms:"Malay","ms-Arab":"Malay (Jawi)",ml:"Malayalam",mt:"Maltese",mam:"Mam",gv:"Manx",mi:"Maori",mr:"Marathi",mh:"Marshallese",mwr:"Marwadi",mfe:"Mauritian Creole",chm:"Meadow Mari","mni-Mtei":"Meiteilon (Manipuri)",min:"Minang",lus:"Mizo",mn:"Mongolian",my:"Myanmar (Burmese)",nhe:"Nahuatl (Eastern Huasteca)","ndc-ZW":"Ndau",nr:"Ndebele (South)",new:"Nepalbhasa (Newari)",ne:"Nepali","bm-Nkoo":"NKo",no:"Norwegian",nus:"Nuer",oc:"Occitan",or:"Odia (Oriya)",om:"Oromo",os:"Ossetian",pag:"Pangasinan",pap:"Papiamento",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",pa:"Punjabi (Gurmukhi)","pa-Arab":"Punjabi (Shahmukhi)",qu:"Quechua",kek:"Qʼeqchiʼ",rom:"Romani",ro:"Romanian",rn:"Rundi",ru:"Russian",se:"Sami (North)",sm:"Samoan",sg:"Sango",sa:"Sanskrit","sat-Latn":"Santali (Latin)",sat:"Santali (Ol Chiki)",gd:"Scots Gaelic",nso:"Sepedi",sr:"Serbian",st:"Sesotho",crs:"Seychellois Creole",shn:"Shan",sn:"Shona",scn:"Sicilian",szl:"Silesian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",es:"Spanish",su:"Sundanese",sus:"Susu",sw:"Swahili",ss:"Swati",sv:"Swedish",ty:"Tahitian",tg:"Tajik","ber-Latn":"Tamazight",ber:"Tamazight (Tifinagh)",ta:"Tamil",tt:"Tatar",te:"Telugu",tet:"Tetum",th:"Thai",bo:"Tibetan",ti:"Tigrinya",tiv:"Tiv",tpi:"Tok Pisin",to:"Tongan",lua:"Tshiluba",ts:"Tsonga",tn:"Tswana",tcy:"Tulu",tum:"Tumbuka",tr:"Turkish",tk:"Turkmen",tyv:"Tuvan",ak:"Twi",udm:"Udmurt",uk:"Ukrainian",ur:"Urdu",ug:"Uyghur",uz:"Uzbek",ve:"Venda",vec:"Venetian",vi:"Vietnamese",war:"Waray",cy:"Welsh",wo:"Wolof",xh:"Xhosa",sah:"Yakut",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",zap:"Zapotec",zu:"Zulu"},sm={},Ea={sl:om,tl:im,al:sm},am=Object.entries(Ea.tl).map(([t,{name:e}])=>({code:t,name:e})),Do=[...navigator.languages],to=ga();to&&!Do.includes(to)&&Do.unshift(to);const cm=()=>wr(Do,am.map(t=>t.code.replace("_","-")),"en");function Ca(t=!1){if(t){const{contentTranslationTargetLanguage:e}=K.settings;if(e)return e}return cm()}const hs=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"];function Vy(t){const e=Math.min(Math.floor(Math.log2(t)/10),hs.length-1),n=t/1024**e;return Dt.number(n,{style:"unit",unit:hs[e],unitDisplay:"narrow",maximumFractionDigits:0})}function Yt(){return Dc()?.mastodon>=7}function lm(t){return t?.[t?.currentUser]?.[0]||"nobody"}const um=/[.*+?^${}()|[\]\\]/g,dm={"&":"&",'"':""","<":"<",">":">"},hm=/[&"<>]/g;function fm(t){return t.replace(um,"\\$&")}function pm(t){return t.replace(hm,e=>dm[e])}function Ro(t,e=[]){if(!t)return"";if(!e.length||!t.includes(":"))return t;const n=new Map;for(let i=0;i`:${fm(i)}:`).join("|"),a=new RegExp(s,"g");return t.replace(a,i=>{const c=i.slice(1,-1),u=n.get(c);if(!u)return i;const{staticUrl:h,url:d}=u,l=pm(i);return`${h?``:""}${l}`})}const mm=/[&<>"']/g,gm={"&":"&","<":"<",">":">",'"':""","'":"'"};function eo(t){return t.replace(mm,e=>gm[e])}const on=document.createElement("div"),vm=["u-url","mention","hashtag"],ym=/{}}=e;let a=t;const i=Im(a,o),c=ym.test(a),u=a.includes("```");if(c){const d=i.querySelectorAll('a:not([target="_blank"])');for(const f of d)f.setAttribute("target","_blank");const l=i.querySelectorAll("a[class]");for(const f of l)for(const p of f.classList)vm.includes(p)||f.classList.remove(p)}if(c){const d=i.querySelectorAll("a[href]");for(const l of d)bm.test(l.textContent.trim())&&(l.classList.add("has-url-text"),$m(l))}if(c){const d=i.querySelectorAll("a[href]"),l=[];for(const f of d){const p=f.innerText.trim(),m=f.querySelector("*");if(wm.test(p)){const g=p[0],[v,b,_]=p.split(/[@@]/);m||(!l.some(([T])=>T===b)||l.some(([T,E])=>T===b&&E===_)?(f.innerHTML=`${g}${b}`,l.push([b,_])):f.innerHTML=`${g}${b}@${_}`),f.classList.add("mention")}if(_m.test(p)){const g=p[0];m||(f.innerHTML=`${g}${p.slice(1)}`),f.classList.add("mention","hashtag")}}}let h;if(a.includes(":")&&n?.length){h=ro(i);for(const d of h){let l=eo(d.nodeValue);l=Ro(l,n),on.innerHTML=l,d.replaceWith(...on.childNodes)}}if(u){const d=[...i.querySelectorAll("p")].filter(l=>Sm.test(l.innerText.trim()));for(const l of d){const f=document.createElement("pre");for(const p of l.querySelectorAll("br"))p.replaceWith(` +`);f.innerHTML=`${l.innerHTML.trim()}`,l.replaceWith(f)}}if(u){const l=[...i.querySelectorAll("p")].filter(f=>Tm.test(f.innerText));for(const f of l){const p=[f];let m=!1,g=f;for(;g.nextElementSibling;){const v=g.nextElementSibling;if(v&&v.tagName==="P")if(km.test(v.innerText)){p.push(v),m=!0;break}else p.push(v);else break;g=v}if(m){const v=document.createElement("pre");for(const _ of p)for(const T of _.querySelectorAll("br"))T.replaceWith(` +`);const b=p.map(_=>_.innerHTML).join(` + +`);v.innerHTML=`${b}`,f.replaceWith(v);for(const _ of p)_.remove()}}}if(a.includes("`")){h=ro(i);for(const d of h){let l=eo(d.nodeValue);Em.test(l)&&(l=l.replaceAll(Mm,"$1")),on.innerHTML=l,d.replaceWith(...on.childNodes)}}if(Cm.test(a)){h=ro(i,{rejectFilter:["A"]});for(const d of h){let l=eo(d.nodeValue);Am.test(l)&&(l=l.replaceAll(xm,'$1')),on.innerHTML=l,d.replaceWith(...on.childNodes)}}if(a.includes("#")||a.includes("#")){let d=null;const l=[...i.querySelectorAll("p")].filter((f,p)=>{let m=0;for(let g=0;g3||m>1&&d&&p===d+1)return d=p,!0});if(l?.length)for(const f of l)f.classList.add("hashtag-stuffing"),f.title=f.innerText}if(a.includes("s(i)),o?i:i.innerHTML}const Aa=Gt(Lm),Pm=["STYLE","IMG","VIDEO","AUDIO","AREA","MAP","TRACK","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","SVG","MATH","CANVAS","NOSCRIPT","SCRIPT","INPUT","OPTION","TEXTAREA","SLOT","TEMPLATE"],Dm=Object.fromEntries(Pm.map(t=>[t,!0])),Rm=/^(https?:\/\/(www\.)?|xmpp:)/,no=30;function $m(t){if(!(!t||t.querySelector?.("*")))try{const e=t.innerText.trim(),n=(e.match(Rm)||[])[0]||"";if(!n)return;const o=e.slice(n.length,n.length+no),s=e.slice(n.length+no),a=e.slice(n.length).length>no;t.innerHTML=`${o}`}catch{}}function ro(t,e={}){const n=[],o=Object.assign({},Dm,e.rejectFilter?.reduce((i,c)=>(i[c]=!0,i),{})),s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode(i){return o[i.parentNode.nodeName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},!1);let a;for(;a=s.nextNode();)n.push(a);return n}const Om=window.matchMedia("(hover: hover)").matches;function Nm(t){const{mentions:e=[],instance:n,previewMode:o,statusURL:s}=t||{};return a=>{if(a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||a.which===2)return;let{target:i}=a;if(i.closest(".shortcode-emoji")){const{naturalWidth:l,naturalHeight:f,width:p,height:m}=i,g=2;if(l>p*g||f>m*g){a.preventDefault(),a.stopPropagation(),K.showMediaModal={mediaAttachments:[{type:"image",url:i.src,description:i.title||i.alt}]};return}}if(i=i.closest("a"),!i||!a.currentTarget.contains(i))return;const{href:c}=i,u=i.previousSibling?.textContent,h=u?.endsWith("@")||u?.endsWith("@"),d=i.innerText.startsWith("@")||i.innerText.startsWith("@");if((i.classList.contains("u-url")||i.classList.contains("mention"))&&d||h&&!d){const l=(i.querySelector("span")||i).innerText.trim(),f=l.replace(/^[@@]/,""),p=e.find(m=>m.url===c)||e.find(m=>m.acct===f||m.username===f);if(p){a.preventDefault(),a.stopPropagation(),K.showAccount={account:p.acct,instance:n};return}else if(!/^http/i.test(l)){a.preventDefault(),a.stopPropagation(),K.showAccount={account:c,instance:n};return}}else if(!o){const l=u?.endsWith("#")||u?.endsWith("#");if(i.classList.contains("hashtag")||l){a.preventDefault(),a.stopPropagation();const f=i.innerText.replace(/^[##]/,"").trim(),p=n?`#/${n}/t/${f}`:`#/t/${f}`;location.hash=p;return}else if(K.unfurledLinks[c]?.url&&s!==c){a.preventDefault(),a.stopPropagation(),K.prevLocation={pathname:location.hash.replace(/^#/,"")},location.hash=`#${K.unfurledLinks[c].url}`;return}}try{const f=URL.parse(c).hostname.replace(/^www\./i,"");if(!i.innerText.toLowerCase().includes(f.toLowerCase())&&!Om){a.preventDefault(),a.stopPropagation();const m=i.innerText.trim();K.showOpenLink={url:c,linkText:m}}}catch{}}}function Xt(t){try{return Dt.number(t,{notation:"compact",roundingMode:"floor"})}catch{return t}}const Fm={"@mastodon/list-exclusive":">=4.2","@gotosocial/list-exclusive":">=0.17","@gotosocial/edit-media-attributes":">=0.18","@mastodon/filtered-notifications":"~4.3 || >=4.3","@mastodon/fetch-multiple-statuses":"~4.3 || >=4.3","@mastodon/trending-link-posts":"~4.3 || >=4.3","@mastodon/annual-report":"~4.4 || >=4.4","@mastodon/endorsements":"~4.4 || >=4.4"},oo=/pixelfed/i,de=/^(?!.*pixelfed).*$/i,Bm=/pleroma/i,zm=/akkoma/i;const fs={"@mastodon/lists":de,"@mastodon/filters":de,"@mastodon/mentions":de,"@mastodon/trending-hashtags":de,"@mastodon/trending-links":de,"@mastodon/post-bookmark":de,"@mastodon/post-edit":de,"@mastodon/profile-edit":de,"@mastodon/profile-private-note":de,"@mastodon/pinned-posts":de,"@pixelfed/trending":oo,"@pixelfed/home-include-reblogs":oo,"@pixelfed/global-feed":oo,"@pleroma/local-visibility-post":Bm,"@akkoma/local-visibility-post":zm},Mn={},jm=/^\d+\.\d+(\.\d+)?/,Hm=/^@([a-z]+)\//i;function sr(t){try{let{version:e,domain:n}=Rc(),o=$c()?.software?.name||"mastodon";o==="hometown"&&(o="mastodon");const s=`${n}-${t}`;if(Mn[s])return Mn[s];if(fs[t])return Mn[s]=fs[t].test(e);const a=t.match(Hm);if(!a){const d=t.replace(/^@/,"");return Mn[s]=o===d}const i=Fm[t];if(!i)return!1;const u=a[1]===o.toLowerCase();let h=zi(e,i,{includePrerelease:!0,loose:!0});if(!h)try{h=zi(e.match(jm)?.[0],i,{includePrerelease:!0,loose:!1})}catch{}return Mn[s]=u&&h}catch{return!1}}function Qy({skeleton:t,account:e,avatarSize:n="xl",useAvatarStatic:o=!1,instance:s,external:a,internal:i,onClick:c,showActivity:u=!1,showStats:h=!1,accountInstance:d,hideDisplayName:l=!1,relationship:f={},excludeRelationshipAttrs:p=[]}){const{_:m}=Nt();if(t)return r("div",{class:"account-block skeleton",children:[r(oe,{size:n}),r("span",{children:[r("b",{children:"████████"}),r("br",{}),r("span",{class:"account-block-acct",children:"██████"})]})]});if(!e)return null;const{id:g,acct:v,avatar:b,avatarStatic:_,displayName:T,username:E,emojis:w,url:k,statusesCount:C,lastStatusAt:L,bot:A,fields:S,note:O,group:N,followersCount:B,createdAt:M,locked:X,roles:z}=e;let[G,D,j]=v.match(/([^@]+)(@.+)/i)||[,v];d&&(j=`@${d}`);const J=S?.find(U=>!!U.verifiedAt&&!!U.value),it={};for(const U in f)p.includes(U)||(it[U]=f[U]);const et=it.following||it.followedBy||it.requested;return r("a",{class:"account-block",href:k,target:a?"_blank":null,title:j?v:`@${v}`,onClick:U=>{if(!a){if(U.preventDefault(),c)return c(U);i?location.hash=`/${s}/a/${g}`:K.showAccount={account:e,instance:s}}},children:[r("div",{class:"avatar-container",children:r(oe,{url:o?_:b||_,staticUrl:o?void 0:_,size:n,squircle:A})}),r("span",{class:"account-block-content",children:[!l&&r($,{children:T?r("b",{children:r(fn,{text:T,emojis:w,resolverURL:k})}):r("b",{children:E})})," ",r("span",{class:"account-block-acct bidi-isolate",children:[j?"":"@",D,r("wbr",{}),j,X&&r($,{children:[" ",r(I,{icon:"lock",size:"s",alt:m({id:"G2fuEb"})})]})]}),r(Po,{roles:z,accountUrl:k}),u&&r("div",{class:"account-block-stats",children:[r(x,{id:"ajzDof",values:{0:Xt(C)}}),!!L&&r($,{children:[" ","·"," ",r(x,{id:"f8bJ3C",values:{0:jn(L,{hideTime:!0})}})]})]}),h&&r("div",{class:"account-block-stats",children:[A&&r($,{children:r("span",{class:"tag collapsed",children:[r(I,{icon:"bot"})," ",r(x,{id:"9Vdq+j"})]})}),!!N&&r($,{children:r("span",{class:"tag collapsed",children:[r(I,{icon:"group"})," ",r(x,{id:"L8fEEm"})]})}),et&&r("div",{class:"shazam-container-horizontal",children:r("div",{class:"shazam-container-inner",children:it.following&&it.followedBy?r("span",{class:"tag minimal",children:r(x,{id:"7oRLbi"})}):it.requested?r("span",{class:"tag minimal",children:r(x,{id:"Yx0Ud8"})}):it.following?r("span",{class:"tag minimal",children:r(x,{id:"y6sq5j"})}):it.followedBy?r("span",{class:"tag minimal",children:r(x,{id:"p3UO/y"})}):null})},f.id),!!B&&r("span",{class:"ib",children:r(x,{id:"Mn1E9C",values:{followersCount:B}})}),!!J&&r("span",{class:"verified-field",children:[r(I,{icon:"check-circle",size:"s",alt:m({id:"QDEWii"})})," ",r("span",{dangerouslySetInnerHTML:{__html:Aa(J.value,{emojis:w})}})]}),!A&&!N&&!et&&!B&&!J&&!!M&&r("span",{class:"created-at",children:r(x,{id:"PCcEFZ",values:{0:jn(M,{hideTime:!0})},components:{0:r("time",{datetime:M})}})})]})]})]})}async function Yy(t,e={}){if(!t?.length)return;const{masto:n}=ke(),o=Qo(),s=t.reduce((a,i)=>(!a.includes(i.id)&&!e[i.id]&&i.id!==o&&a.push(i.id),a),[]);if(!s.length)return null;try{return(await n.v1.accounts.relationships.fetch({id:s})).reduce((c,u)=>(c[u.id]=u,c),{})}catch{return null}}function Xy(t,e){return()=>Dt.number(t,{style:"unit",unit:e,unitDisplay:"long"})}const qm=Object.prototype.toString,Km=t=>qm.call(t)==="[object Error]",Um=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function Wm(t){if(!(t&&Km(t)&&t.name==="TypeError"&&typeof t.message=="string"))return!1;const{message:n,stack:o}=t;return n==="Load failed"?o===void 0||"__sentry_captured__"in t:n.startsWith("error sending request for url")?!0:Um.has(n)}function Zm(t){if(typeof t=="number"){if(t<0)throw new TypeError("Expected `retries` to be a non-negative number.");if(Number.isNaN(t))throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.")}else if(t!==void 0)throw new TypeError("Expected `retries` to be a number or Infinity.")}function ar(t,e,{min:n=0,allowInfinity:o=!1}={}){if(e!==void 0){if(typeof e!="number"||Number.isNaN(e))throw new TypeError(`Expected \`${t}\` to be a number${o?" or Infinity":""}.`);if(!o&&!Number.isFinite(e))throw new TypeError(`Expected \`${t}\` to be a finite number.`);if(e0&&await new Promise((p,m)=>{const g=()=>{clearTimeout(v),s.signal?.removeEventListener("abort",g),m(s.signal.reason)},v=setTimeout(()=>{s.signal?.removeEventListener("abort",g),p()},f);s.unref&&v.unref?.(),s.signal?.addEventListener("abort",g,{once:!0})}),s.signal?.throwIfAborted(),!0}async function Ym(t,e={}){if(e={...e},Zm(e.retries),Object.hasOwn(e,"forever"))throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");e.retries??=10,e.factor??=2,e.minTimeout??=1e3,e.maxTimeout??=Number.POSITIVE_INFINITY,e.maxRetryTime??=Number.POSITIVE_INFINITY,e.randomize??=!1,e.onFailedAttempt??=()=>{},e.shouldRetry??=()=>!0,e.shouldConsumeRetry??=()=>!0,ar("factor",e.factor,{min:0,allowInfinity:!1}),ar("minTimeout",e.minTimeout,{min:0,allowInfinity:!1}),ar("maxTimeout",e.maxTimeout,{min:0,allowInfinity:!0}),ar("maxRetryTime",e.maxRetryTime,{min:0,allowInfinity:!0}),e.factor>0||(e.factor=1),e.signal?.throwIfAborted();let n=0,o=0;const s=performance.now();for(;!Number.isFinite(e.retries)||o<=e.retries;){n++;try{e.signal?.throwIfAborted();const a=await t(n);return e.signal?.throwIfAborted(),a}catch(a){await Qm({error:a,attemptNumber:n,retriesConsumed:o,startTime:s,options:e})&&o++}}throw new Error("Retry attempts exhausted without throwing an error.")}const xa="LanguageDetector"in self,Xm=xa&&"Translator"in self;let Ge;xa&&(async()=>{try{const t=await LanguageDetector.availability();if(t==="unavailable")return;t==="available"?Ge=await LanguageDetector.create():(Ge=await LanguageDetector.create({monitor(e){e.addEventListener("downloadprogress",n=>{})}}),await Ge.ready)}catch{}})();const Jm=async(t,e,n)=>{let o;const s=e;if(e==="auto"){if(!Ge?.detect)return{error:"No language detector"};try{e=(await Ge.detect(t))[0].detectedLanguage,o=e}catch(i){return{error:i}}}const a=`💬 BROWSER TRANSLATE ${t}`;console.groupCollapsed(a);try{const i=await Translator.availability({sourceLanguage:e,targetLanguage:n});if(i==="unavailable")return console.groupEnd(a),{error:`Unsupported language pair: ${e} -> ${n}`};let c;i==="available"?c=await Translator.create({sourceLanguage:e,targetLanguage:n}):(c=await Translator.create({sourceLanguage:e,targetLanguage:n,monitor(h){h.addEventListener("downloadprogress",d=>{})}}),await c.ready);const u=await c.translate(t);return console.groupEnd(a),{content:u,detectedSourceLanguage:o,provider:"browser"}}catch(i){return console.groupEnd(a),{error:i}}};var tg=Object.defineProperty,eg=(t,e,n)=>e in t?tg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,In=(t,e,n)=>eg(t,typeof e!="symbol"?e+"":e,n),$o=new Map,cr=new WeakMap,ms=0,ng;function rg(t){return t?(cr.has(t)||(ms+=1,cr.set(t,ms.toString())),cr.get(t)):"0"}function og(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?rg(t.root):t[e]}`).toString()}function ig(t){const e=og(t);let n=$o.get(e);if(!n){const o=new Map;let s;const a=new IntersectionObserver(i=>{i.forEach(c=>{var u;const h=c.isIntersecting&&s.some(d=>c.intersectionRatio>=d);t.trackVisibility&&typeof c.isVisible>"u"&&(c.isVisible=h),(u=o.get(c.target))==null||u.forEach(d=>{d(h,c)})})},t);s=a.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:a,elements:o},$o.set(e,n)}return n}function Ma(t,e,n={},o=ng){if(typeof window.IntersectionObserver>"u"&&o!==void 0){const u=t.getBoundingClientRect();return e(o,{isIntersecting:o,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),()=>{}}const{id:s,observer:a,elements:i}=ig(n),c=i.get(t)||[];return i.has(t)||i.set(t,c),c.push(e),a.observe(t),function(){c.splice(c.indexOf(e),1),c.length===0&&(i.delete(t),a.unobserve(t)),i.size===0&&(a.disconnect(),$o.delete(s))}}function sg(t){return typeof t.children!="function"}var Jy=class extends Qs{constructor(t){super(t),In(this,"node",null),In(this,"_unobserveCb",null),In(this,"lastInView"),In(this,"handleNode",e=>{this.node&&(this.unobserve(),!e&&!this.props.triggerOnce&&!this.props.skip&&(this.setState({inView:!!this.props.initialInView,entry:void 0}),this.lastInView=this.props.initialInView)),this.node=e||null,this.observeNode()}),In(this,"handleChange",(e,n)=>{const o=this.lastInView;this.lastInView=e,!(o===void 0&&!e)&&(e&&this.props.triggerOnce&&this.unobserve(),sg(this.props)||this.setState({inView:e,entry:n}),this.props.onChange&&this.props.onChange(e,n))}),this.state={inView:!!t.initialInView,entry:void 0},this.lastInView=t.initialInView}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(t){(t.rootMargin!==this.props.rootMargin||t.root!==this.props.root||t.threshold!==this.props.threshold||t.skip!==this.props.skip||t.trackVisibility!==this.props.trackVisibility||t.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;const{threshold:t,root:e,rootMargin:n,trackVisibility:o,delay:s,fallbackInView:a}=this.props;this.lastInView===void 0&&(this.lastInView=this.props.initialInView),this._unobserveCb=Ma(this.node,this.handleChange,{threshold:t,root:e,rootMargin:n,trackVisibility:o,delay:s},a)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:t}=this.props;if(typeof t=="function"){const{inView:p,entry:m}=this.state;return t({inView:p,entry:m,ref:this.handleNode})}const{as:e,triggerOnce:n,threshold:o,root:s,rootMargin:a,onChange:i,skip:c,trackVisibility:u,delay:h,initialInView:d,fallbackInView:l,...f}=this.props;return Oc(e||"div",{ref:this.handleNode,...f},t)}};var gs,vs,ag=(vs=(gs=Nc)!=null?gs:me)!=null?vs:Y,cg=(t,{threshold:e,root:n,rootMargin:o,trackVisibility:s,delay:a,triggerOnce:i,skip:c}={})=>{const u=R(t),h=R(null),d=R(void 0),l=R(void 0);return ag(()=>{u.current=t},[t]),yt(f=>{const p=()=>{if(d.current){const b=d.current;d.current=void 0,b()}};if(f===h.current)return d.current;if(!f||c){p(),h.current=null,l.current=void 0;return}p(),h.current=f;let m=!1;const g=Ma(f,(b,_)=>{const T=l.current;l.current=b,!(T===void 0&&!b)&&(u.current(b,_),i&&b&&v())},{threshold:e,root:n,rootMargin:o,trackVisibility:s,delay:a});function v(){m||(m=!0,g(),h.current=null,d.current=void 0,l.current=void 0)}return d.current=v,d.current},[Array.isArray(e)?e.toString():e,n,o,s,a,i,c])};const ys=48,io={};function Ia({id:t,children:e}){const n=R(),[o,s]=F(!!io[t]),a=yt(c=>{c&&n.current&&(n.current.hidden=!1,t&&(io[t]=!0))},[t]),i=cg(a,{rootMargin:`-${ys}px 0px 0px 0px`,trackVisibility:!0,delay:1e3,triggerOnce:!0,skip:o});return me(()=>{if(!n.current)return;const c=n.current.getBoundingClientRect();c.bottom>ys&&(c.top({code:t,name:e})),{PHANPY_TRANSLANG_INSTANCES:bs}=lg,Oo=bs?bs.split(/\s+/):[],La=new Vo({concurrency:1,interval:2e3,intervalCap:1}),Pa=1e3*60*60;let so=0;function dg(t,e,n){return Ym(()=>{let s=Oo[so];const a=t.length>2e3;let i;return a?i=fetch(`https://${s}/api/v1/translate`,{method:"POST",priority:"low",referrerPolicy:"no-referrer",headers:{"Content-Type":"application/json"},body:JSON.stringify({sl:e,tl:n,text:t})}):i=fetch(`https://${s}/api/v1/translate?sl=${encodeURIComponent(e)}&tl=${encodeURIComponent(n)}&text=${encodeURIComponent(t)}`,{priority:"low",referrerPolicy:"no-referrer"}),i.then(c=>{if(!c.ok)throw new Error(c.statusText);return c.json()}).then(c=>({provider:"translang",content:c.translated_text,detectedSourceLanguage:c.detected_language,pronunciation:c.pronunciation}))},{retries:3,onFailedAttempt:s=>{so=(so+1)%Oo.length}})}const Da=Ar(dg,{expires:Pa}),hg=Ar(({signal:t,text:e,source:n,target:o})=>La.add(()=>Da(e,n,o),{signal:t}),{expires:Pa}),fg=({text:t,source:e,target:n,signal:o})=>La.add(()=>Jm(t,e,n),{signal:o});function pg({forceTranslate:t,sourceLanguage:e,onTranslate:n,text:o="",mini:s,autoDetected:a}){const{_:i}=Nt(),c=Ca(!0),[u,h]=F("default"),[d,l]=F(null),[f,p]=F(null),[m,g]=F(null),v=R(),b=R(),_=e?xn(e):null,T=xn(c),E=R("auto");n||(n=async({text:k,source:C,target:L,signal:A})=>{if(Xm){const S=await fg({text:k,source:C,target:L,signal:A});if(S&&!S.error)return S}return s?await hg({signal:A,text:k,source:C,target:L}):await Da(k,C,L)});const w=async()=>{h("loading");try{const{content:k,detectedSourceLanguage:C,provider:L,error:A,...S}=await n({text:o,source:E.current,target:c,signal:b.current?.signal});if(k){if(C){const O=xn(C);g(O)}if(L==="translang"){const O=S?.pronunciation;O&&l(O)}p(k),h("default"),!s&&k.trim()!==o.trim()&&v.current&&(v.current.open=!0,v.current.scrollIntoView({behavior:"smooth",block:"nearest"}))}else h("error")}catch(k){k.name!=="AbortError"&&h("error")}};return Y(()=>{t&&w()},[t]),Y(()=>(b.current=new AbortController,()=>{b.current.abort()}),[]),s?f&&f.trim()!==o.trim()&&m!==T?r(Ia,{children:r("div",{class:"status-translation-block-mini",children:[r(I,{icon:"translate",alt:i({id:"zVJKbG",values:{sourceLangText:_}})}),r("output",{lang:c,dir:"auto",title:d||"",children:f})]})}):null:r("div",{class:"status-translation-block",onClick:k=>{k.preventDefault()},children:r("details",{ref:v,children:[r("summary",{children:r("button",{type:"button",class:u==="loading"?"loading-mask":"",onClick:async k=>{k.preventDefault(),k.stopPropagation(),v.current.open=!v.current.open,u!=="loading"&&(f||w())},children:[r(I,{icon:"translate"})," ",r("span",{children:i(u==="loading"?{id:"Zxkt/v"}:e&&_&&!m?a?{id:"R20Yf9",values:{sourceLangText:_}}:{id:"h8zDAI",values:{sourceLangText:_}}:{id:"pi8x/S"})})]})}),r("div",{class:"translated-block",children:[r("div",{class:"translation-info insignificant",children:[r("select",{class:"translated-source-select",disabled:u==="loading",onChange:k=>{E.current=k.target.value,w()},children:ug.map(k=>{const C=xn({code:k.code,fallback:k.name}),L=xn({code:k.code,locale:k.code}),A=L&&C!==L;return r("option",{value:k.code,children:k.code==="auto"?i({id:"Bze3gr",values:{0:m??"…"}}):A?`${L} - ${C}`:C})})})," ",r("span",{children:["→ ",T]}),r(Fn,{abrupt:!0,hidden:u!=="loading"})]}),u==="error"?r("p",{class:"ui-state",children:r(x,{id:"m5LihO"})}):!!f&&r($,{children:[r("output",{class:"translated-content",lang:c,dir:"auto",children:f}),!!d&&r("output",{class:"translated-pronunciation-content",tabIndex:-1,onClick:k=>{k.target.classList.toggle("expand")},children:d})]})]})]})})}const mg=Oo?.length?pg:()=>null;function Ae(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function Ra(t,e){let n;const o=()=>{if(n)return n;const s=indexedDB.open(t);return s.onupgradeneeded=()=>s.result.createObjectStore(e),n=Ae(s),n.then(a=>{a.onclose=()=>n=void 0},()=>{}),n};return(s,a)=>o().then(i=>a(i.transaction(e,s).objectStore(e)))}let ao;function Xe(){return ao||(ao=Ra("keyval-store","keyval")),ao}function gg(t,e=Xe()){return e("readonly",n=>Ae(n.get(t)))}function vg(t,e,n=Xe()){return n("readwrite",o=>(o.put(e,t),Ae(o.transaction)))}function yg(t,e=Xe()){return e("readonly",n=>Promise.all(t.map(o=>Ae(n.get(o)))))}function bg(t,e=Xe()){return e("readwrite",n=>(n.delete(t),Ae(n.transaction)))}function wg(t,e=Xe()){return e("readwrite",n=>(t.forEach(o=>n.delete(o)),Ae(n.transaction)))}function _g(t=Xe()){return t("readwrite",e=>(e.clear(),Ae(e.transaction)))}function Sg(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},Ae(t.transaction)}function Tg(t=Xe()){return t("readonly",e=>{if(e.getAllKeys)return Ae(e.getAllKeys());const n=[];return Sg(e,o=>n.push(o.key)).then(()=>n)})}function co(t,e){const n=Ra(t,e);return{set:(o,s)=>vg(o,s,n),get:o=>gg(o,n),getMany:o=>yg(o,n),del:o=>bg(o,n),delMany:o=>wg(o,n),clear:()=>_g(n),keys:()=>Tg(n)}}const tb={drafts:co("drafts-db","drafts-store"),catchup:co("catchup-db","catchup-store"),yearInPosts:co("year-in-posts-db","year-in-posts-store")},$a=ie({}),kg=!!document.startViewTransition;function eb({children:t,statusID:e}){const n=R([]),[o,s]=F(!1),[a,i]=F(0);function c(p){p!==a&&(kg?document.startViewTransition(()=>{i(p)}):i(p))}async function u(){const{masto:p}=ke(),m=await p.v1.statuses.$select(e).history.list();m.sort((g,v)=>Date.parse(v.createdAt)-Date.parse(g.createdAt)),n.current=m}async function h(){try{await u(),s(!0),c(0)}catch{s(!1)}}function d(){n.current=[],s(!1),c(0)}function l(){c(p=>Math.min(p+1,n.current.length-1))}function f(){c(p=>Math.max(p-1,0))}return r($a.Provider,{value:{editHistoryRef:n,initEditHistory:h,exitEditHistory:d,editHistoryMode:o,editedAtIndex:a,prevEditedAt:l,nextEditedAt:f},children:t})}function Eg(){return Pt($a)}const li=ie();function Cg(t,e){if(!t?.length)return!1;const n=t.filter(i=>{const{filter:c}=i,u=c.context.includes(e);return u?c.expiresAt?Date.parse(c.expiresAt)>Date.now():u:!1});if(!n.length)return!1;if(n.some(i=>i.filter.filterAction==="hide"))return{action:"hide"};if(n.every(i=>i.filter.filterAction==="blur")){const i=n.map(c=>c.filter.title);return{action:"blur",titles:i,titlesStr:i.join(" • ")}}if(n.some(i=>!!i.filter.filterAction)){const i=n.map(c=>c.filter.title);return{action:"warn",titles:i,titlesStr:i.join(" • ")}}return!1}const Ir=Gt(Cg);function Ag(t,e,n){const{filtered:o}=t;if(!o?.length||n&&t.account?.id===n)return!0;const a=Ir(o,e);return a?a.action!=="hide":!0}function nb(t,e){if(!t?.length)return[];if(!e)return t;const n=Qo();return t.filter(o=>Ag(o,e,n))}const lr=document.createElement("template");function xg(t){if(!t)return 0;lr.innerHTML=t;const e=lr.content.querySelectorAll(".invisible");for(let o=0;o{if(n.current){const{scrollHeight:i}=n.current;let c=i>a;if(c){const{height:u,maxHeight:h}=getComputedStyle(n.current),d=parseInt(h||u,10);c=i>d}n.current.classList.toggle(t,c),o.current!==c&&typeof e=="function"&&(o.current=c,e(c))}}}),n}const un={public:"earth",unlisted:"moon",private:"lock",direct:"message",local:"building"},Ze={public:{id:"7d1a0d"},local:{id:"d5zxa4"},unlisted:{id:"pPYeIN"},private:{id:"x5LEuB"},direct:{id:"IV4QaU"}},Dg=["\\\\\\[[\\s\\S]*?\\\\\\]","\\\\\\([\\s\\S]*?\\\\\\)"],_s=new RegExp(Dg.join("|"),"g");function Rg(t){const e=["\\\\\\[","\\\\\\("],n=new RegExp(`(${e.join("|")})`),o=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),s=[];let a;for(;a=o.nextNode();)s.push(a);for(const i of s){const c=i.textContent,u=c.match(n);if(!u)continue;const d=u[0]==="\\["?"\\]":"\\)",l=[i];let f=i,p=!1,m=c;if(c.includes(d))p=!0;else for(;f.nextSibling&&!p;){const g=f.nextSibling;if(g.nodeType===Node.TEXT_NODE)l.push(g),m+=g.textContent,g.textContent.includes(d)&&(p=!0);else if(g.nodeType===Node.ELEMENT_NODE&&g.tagName==="BR")l.push(g),m+=` +`;else break;f=g}if(p&&l.length>1){i.textContent=m;for(let g=1;g{if(_s.lastIndex=0,!_s.test(t))return null;const{_:s}=Nt(),[a,i]=F(!1),c=yt(async u=>{if(u.preventDefault(),u.stopPropagation(),a)i(!1),n();else try{const h=window.temml||(window.temml=(await Ys(async()=>{const{default:p}=await import("./temml-BQUKR1fw.js");return{default:p}},[],import.meta.url))?.default);Rg(e.current);const d=e.current.innerHTML;h.renderMathInElement(e.current,{fences:"(",annotate:!0,throwOnError:!0,errorCallback:p=>{}});const l=e.current.querySelector("math"),f=e.current.innerHTML!==d;l&&f?i(!0):(ft(s({id:"HBIZeo"})),i(!1),n())}catch{}},[a]);return r("div",{class:"math-block",children:[r(I,{icon:"formula",size:"s"})," ",r("span",{children:s({id:"/nf2x7"})})," ",r("button",{type:"button",class:"light small",onClick:c,children:s(a?{id:"AJqQb+"}:{id:"dP6iYK"})})]})},Oa=new Uint8Array(128);for(let t=0;t<83;t++)Oa["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".charCodeAt(t)]=t;const yr=(t,e,n)=>{let o=0;for(;et>10.31475?Na(t/Ba+.052132,2.4):t/Fa,lo=t=>~~(t>1227e-8?Ba*Na(t,.416666)-13.025:t*Fa+1),Nn=t=>(t<0?-1:1)*t*t,Ss=t=>{for(t+=Hn/2;t>Hn;)t-=Og;const e=1.27323954*t-.405284735*Nn(t);return .225*(Nn(e)-e)+e};function ui(t){const e=yr(t,2,6);return[e>>16,e>>8&255,e&255]}function Fg(t,e,n,o){const s=yr(t,0,1),a=s%9+1,i=~~(s/9)+1,c=a*i;let u=0,h=0,d=0,l=0,f=0,p=0,m=0,g=0,v=0,b=0,_=0,T=0;const E=(yr(t,1,2)+1)/13446*(o|1),w=new Float64Array(c*3),k=ui(t);for(u=0;u<3;u++)w[u]=Ng(k[u]);for(u=1;u"u",Hg=function(){return!jg&&("ontouchstart"in window||navigator.maxTouchPoints>0)};var qg=function(t){var e=t.x,n=t.y,o=t.scale;return"scale3d(".concat(o,",").concat(o,", 1) translate3d(").concat(e,"px, ").concat(n,"px, 0)")};var Kg=Math.min,Ug=Math.max;function Ts(t){var e=t.containerDimension,n=t.childDimension,o=t.padding,s=t.centerContained,a=n-e;return a+2*o<=0&&s?[a/2,a/2]:[Kg(a+o,0)-o,Ug(0,a+o)]}var ks=function(t,e){return e?"".concat(t," ").concat(e):t},ur=Math.abs,Wg=Math.min,Zg=Math.sqrt,Ha=typeof window>"u",Gg=Ha?!1:/(Mac)/i.test(navigator.platform),sn=function(t){return t==="drag"},Ln=function(t){return t==="zoom"},Vg=function(t){return Gg&&t.ctrlKey},Pn=function(t){t.stopPropagation(),t.preventDefault()},Es=function(t,e){var n=t.x-e.x,o=t.y-e.y;return Zg(n*n+o*o)},Qg=function(t,e){var n=Es(t[0],t[1]),o=Es(e[0],e[1]);return o/n},Yg=function(t,e){return t>e-.01&&te?e:n},ev=function(t){return!(t.ctrlKey||t.metaKey)},nv=function(t){if(t){var e=t.offsetWidth,n=t.offsetHeight;if(e&&n)return{width:e,height:n};var o=getComputedStyle(t),s=parseFloat(o.width),a=parseFloat(o.height);if(a&&s)return{width:s,height:a}}return{width:0,height:0}},rv=function(t,e){return{x:e.x-t.x,y:e.y-t.y}},ov=function(t,e){return t.x===e.x&&t.y===e.y},He=function(){},hr={x:0,y:0},As=(function(t){Bg(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._prevDragMovePoint=null,n._containerObserver=null,n._fingers=0,n._firstMove=!0,n._initialOffset=$t({},hr),n._interaction=null,n._isDoubleTap=!1,n._isOffsetsSet=!1,n._lastDragPosition=null,n._lastScale=1,n._lastTouchStart=0,n._lastZoomCenter=null,n._listenMouseMove=!1,n._nthZoom=0,n._offset=$t({},hr),n._startOffset=$t({},hr),n._startTouches=null,n._updatePlaned=!1,n._wheelTimeOut=null,n._zoomFactor=1,n._initialZoomFactor=1,n._draggingPoint=$t({},hr),n._ignoreNextClick=!1,n._containerRef=Fc(),n._handleClick=function(o){n._ignoreNextClick&&(n._ignoreNextClick=!1,o.stopPropagation())},n._onResize=function(){var o;!((o=n._containerRef)===null||o===void 0)&&o.current&&(n._updateInitialZoomFactor(),n._setupOffsets(),n._update())},n._handlerOnTouchEnd=n._handlerIfEnable(function(o){n._fingers=o.touches.length,n.props.shouldCancelHandledTouchEndEvents&&(Ln(n._interaction)||sn(n._interaction)&&(n._startOffset.x!==n._offset.x||n._startOffset.y!==n._offset.y))&&Pn(o),sn(n._interaction)&&!n._enoughToDrag()&&n._handleClick(o),n._updateInteraction(o)}),n._handlerOnTouchStart=n._handlerIfEnable(function(o){n._firstMove=!0,n._fingers=o.touches.length,n._detectDoubleTap(o)}),n._handlerOnTouchMove=n._handlerIfEnable(function(o){n._isDoubleTap||(n._collectInertia(o),n._firstMove?(n._updateInteraction(o),n._interaction&&Pn(o),n._startOffset=$t({},n._offset),n._startTouches=dr(o.touches)):(Ln(n._interaction)?n._startTouches&&n._startTouches.length===2&&o.touches.length===2&&n._handleZoom(o,Qg(n._startTouches,dr(o.touches))):sn(n._interaction)&&n._handleDrag(o),n._interaction&&(Pn(o),n._update())),n._firstMove=!1)}),n._handlerWheel=function(o){if(!n.props.shouldInterceptWheel(o)){Pn(o);var s=o.pageX,a=o.pageY,i=o.deltaY,c=o.deltaMode,u=1;(Vg(o)||c===1)&&(u=15);var h={touches:[{pageX:s,pageY:a}]},d=n._getOffsetByFirstTouch(h),l=i*u;n._stopAnimation(),n._scaleTo(n._zoomFactor-l/n.props.wheelScaleFactor,d),n._update(),clearTimeout(n._wheelTimeOut),n._wheelTimeOut=setTimeout(function(){return n._sanitize()},100)}},n._handlers=n.props.isTouch()?[["touchstart",n._handlerOnTouchStart],["touchend",n._handlerOnTouchEnd],["touchmove",n._handlerOnTouchMove]]:[["mousemove",n.simulate(n._handlerOnTouchMove),n.props._document],["mouseup",n.simulate(n._handlerOnTouchEnd),n.props._document],["mousedown",n.simulate(n._handlerOnTouchStart)],["click",n._handleClick],["wheel",n._handlerWheel]],n}return e.prototype._handleDragStart=function(n){this._ignoreNextClick=!0,this.props.onDragStart(),this._stopAnimation(),this._resetInertia(),this._lastDragPosition=null,this._hasInteraction=!0,this._draggingPoint=this._offset,this._handleDrag(n)},e.prototype._handleDrag=function(n){var o=this._getOffsetByFirstTouch(n);this._enoughToDrag()?this._drag(o,this._lastDragPosition):this._virtualDrag(o,this._lastDragPosition),this._offset=this._sanitizeOffset(this._offset),this._lastDragPosition=o},e.prototype._resetInertia=function(){this._velocity=null,this._prevDragMovePoint=null},e.prototype._realizeInertia=function(){var n=this,o=this.props,s=o.inertiaFriction,a=o.inertia;if(!(!a||!this._velocity)){var i=this._velocity,c=i.x,u=i.y;if(c||u){this._stopAnimation(),this._resetInertia();var h=function(){if(c*=s,u*=s,!c&&!u)return n._stopAnimation();var d=$t({},n._offset);if(n._addOffset({x:c,y:u}),n._offset=n._sanitizeOffset(n._offset),ov(d,n._offset))return n._stopAnimation();n._update({isAnimation:!0})};this._animate(h,{duration:9999})}}},e.prototype._collectInertia=function(n){var o=n.touches;if(this.props.inertia){var s=dr(o)[0],a=this._prevDragMovePoint;a&&(this._velocity=rv(s,a)),this._prevDragMovePoint=s}},e.prototype._handleDragEnd=function(){this.props.onDragEnd(),this._end(),this._realizeInertia()},e.prototype._handleZoomStart=function(){this.props.onZoomStart(),this._stopAnimation(),this._lastScale=1,this._nthZoom=0,this._lastZoomCenter=null,this._hasInteraction=!0},e.prototype._handleZoom=function(n,o){var s=tv(this._getOffsetTouches(n)),a=o/this._lastScale;this._lastScale=o,this._nthZoom+=1,this._nthZoom>3&&(this._scale(a,s),this._drag(s,this._lastZoomCenter),this.props.enforceBoundsDuringZoom&&(this._offset=this._sanitizeOffset(this._offset))),this._lastZoomCenter=s},e.prototype._handleZoomEnd=function(){this.props.onZoomEnd(),this._end()},e.prototype._handleDoubleTap=function(n){var o=this;if(!(this._hasInteraction||this.props.tapZoomFactor===0)){var s=this.props.doubleTapZoomOutOnMaxScale&&this._zoomFactor===this.props.maxZoom||this.props.doubleTapToggleZoom&&this._zoomFactor>1;this.props.onDoubleTap(),this._ignoreNextClick=!0;var a=this._zoomFactor+this.props.tapZoomFactor,i=this._zoomFactor,c=function(h){o._scaleTo(i+h*(a-i),u)},u=this._getOffsetByFirstTouch(n);this._isDoubleTap=!0,i>a&&(u=this._getCurrentZoomCenter()),s?this._zoomOutAnimation():this._animate(c)}},e.prototype._computeInitialOffset=function(){var n=this._getContainerRect(),o=this._getChildSize(),s=o.width,a=o.height,i=-ur(s*this._getInitialZoomFactor()-n.width)/2,c=-ur(a*this._getInitialZoomFactor()-n.height)/2;this._initialOffset={x:i,y:c}},e.prototype._resetOffset=function(){this._offset=$t({},this._initialOffset)},e.prototype._setupOffsets=function(){this.props.setOffsetsOnce&&this._isOffsetsSet||(this._isOffsetsSet=!0,this._computeInitialOffset(),this._resetOffset())},e.prototype._sanitizeOffset=function(n){var o=this._getContainerRect(),s=this._getChildSize(),a=s.width,i=s.height,c=a*this._getInitialZoomFactor()*this._zoomFactor,u=i*this._getInitialZoomFactor()*this._zoomFactor,h=Ts({containerDimension:o.width,childDimension:c,padding:this.props.horizontalPadding,centerContained:this.props.centerContained}),d=h[0],l=h[1],f=Ts({containerDimension:o.height,childDimension:u,padding:this.props.verticalPadding,centerContained:this.props.centerContained}),p=f[0],m=f[1];return{x:uo(d,l,n.x),y:uo(p,m,n.y)}},e.prototype.alignCenter=function(n){var o=this,s=$t({duration:250,animated:!0},n),a=s.x,i=s.y,c=s.scale,u=s.animated,h=s.duration,d=a*this._initialZoomFactor,l=i*this._initialZoomFactor,f=this._zoomFactor,p=$t({},this._offset),m=this._getContainerRect(),g={x:m.width/2,y:m.height/2};if(this._zoomFactor=1,this._offset={x:-(g.x-d),y:-(g.y-l)},this._scaleTo(c,g),this._stopAnimation(),!u)return this._update();var v=this._zoomFactor-f,b={x:this._offset.x-p.x,y:this._offset.y-p.y};this._zoomFactor=f,this._offset=$t({},p);var _=function(T){var E=p.x+b.x*T,w=p.y+b.y*T;o._zoomFactor=f+v*T,o._offset=o._sanitizeOffset({x:E,y:w}),o._update()};this._animate(_,{callback:function(){return o._sanitize()},duration:h})},e.prototype.scaleTo=function(n){var o=this,s=$t({duration:250,animated:!0},n),a=s.x,i=s.y,c=s.scale,u=s.animated,h=s.duration,d=this._zoomFactor,l=$t({},this._offset);if(this._zoomFactor=1,this._offset={x:0,y:0},this._scaleTo(c,{x:a,y:i}),this._stopAnimation(),!u)return this._update();var f=this._zoomFactor-d,p={x:this._offset.x-l.x,y:this._offset.y-l.y};this._zoomFactor=d,this._offset=$t({},l);var m=function(g){var v=l.x+p.x*g,b=l.y+p.y*g;o._zoomFactor=d+f*g,o._offset={x:v,y:b},o._update()};this._animate(m,{callback:function(){return o._sanitize()},duration:h})},e.prototype._scaleTo=function(n,o){this._scale(n/this._zoomFactor,o),this._offset=this._sanitizeOffset(this._offset)},e.prototype._scale=function(n,o){n=this._scaleZoomFactor(n),this._addOffset({x:(n-1)*(o.x+this._offset.x),y:(n-1)*(o.y+this._offset.y)}),this.props.onZoomUpdate()},e.prototype._scaleZoomFactor=function(n){var o=this._zoomFactor;return this._zoomFactor*=n,this._zoomFactor=uo(this.props.minZoom,this.props.maxZoom,this._zoomFactor),this._zoomFactor/o},e.prototype._canDrag=function(){return this.props.draggableUnZoomed||!Yg(this._zoomFactor,1)},e.prototype._drag=function(n,o){if(o){var s=-(n.y-o.y),a=-(n.x-o.x);this.props.lockDragAxis?ur(a)>ur(s)?this._addOffset({x:a,y:0}):this._addOffset({y:s,x:0}):this._addOffset({x:a,y:s}),this.props.onDragUpdate()}},e.prototype._virtualDrag=function(n,o){if(o){var s=-(n.y-o.y),a=-(n.x-o.x);this._draggingPoint={x:a+this._draggingPoint.x,y:s+this._draggingPoint.y}}},e.prototype._addOffset=function(n){var o=this._offset,s=o.x,a=o.y;this._offset={x:s+n.x,y:a+n.y}},e.prototype._sanitize=function(){this._zoomFactor=h?(n(1),s._stopAnimation(),u(),s._update()):(f=c(f),n(f),s._update({isAnimation:!0}),requestAnimationFrame(d))}};this._inAnimation=!0,requestAnimationFrame(d)},e.prototype._stopAnimation=function(){this._inAnimation=!1},e.prototype._end=function(){this._hasInteraction=!1,this._sanitize(),this._update()},e.prototype._getContainerRect=function(){var n=this._containerRef.current;return n.getBoundingClientRect()},e.prototype._getChildSize=function(){var n=this._containerRef.current;return nv(n?.firstElementChild)},e.prototype._updateInitialZoomFactor=function(){var n=this._getContainerRect(),o=this._getChildSize(),s=n.width/o.width,a=n.height/o.height;this._initialZoomFactor=Wg(s,a)},e.prototype._bindEvents=function(){var n=this,o=this._containerRef.current;window.ResizeObserver?(this._containerObserver=new ResizeObserver(this._onResize),this._containerObserver.observe(o)):window.addEventListener("resize",this._onResize),this._handlers.forEach(function(s){var a=s[0],i=s[1],c=s[2];(c||o).addEventListener(a,i,!0)}),Array.from(o.querySelectorAll("img")).forEach(function(s){return s.addEventListener("load",n._onResize)})},e.prototype._unSubscribe=function(){var n=this,o=this._containerRef.current;this._containerObserver&&(this._containerObserver.disconnect(),this._containerObserver=null),window.removeEventListener("resize",this._onResize),this._handlers.forEach(function(s){var a=s[0],i=s[1],c=s[2];(c||o).removeEventListener(a,i,!0)}),Array.from(o.querySelectorAll("img")).forEach(function(s){return s.removeEventListener("load",n._onResize)})},e.prototype._update=function(n){var o=this;if(!this._updatePlaned){var s=function(){var a=o._getInitialZoomFactor()*o._zoomFactor,i=-o._offset.x/a,c=-o._offset.y/a;o.props.onUpdate({scale:a,x:i,y:c})};if(n?.isAnimation)return s();this._updatePlaned=!0,requestAnimationFrame(function(){o._updatePlaned=!1,s()})}},e.prototype._handlerIfEnable=function(n){var o=this;return function(){for(var s=[],a=0;ao?n-o:o-n},e.prototype._enoughToDrag=function(){return this._distanceBetweenNumbers(this._startOffset.x,this._draggingPoint.x)>5||this._distanceBetweenNumbers(this._startOffset.y,this._draggingPoint.y)>5},e.prototype._updateInteraction=function(n){var o=this._fingers;if(o===2)return this._setInteraction("zoom",n);if(o===1&&this._canDrag())return this._setInteraction("drag",n);this._setInteraction(null,n)},e.prototype._detectDoubleTap=function(n){var o=new Date().getTime();this._fingers>1&&(this._lastTouchStart=0),o-this._lastTouchStart<300?(Pn(n),this._handleDoubleTap(n),Ln(this._interaction)?this._handleZoomEnd():sn(this._interaction)&&this._handleDragEnd()):this._isDoubleTap=!1,this._fingers===1&&(this._lastTouchStart=o)},e.prototype.simulate=function(n){var o=this;return function(s){var a=s.pageX,i=s.pageY,c=s.type,u=c==="mouseup",h=c==="mousedown";h&&(s.preventDefault(),o._listenMouseMove=!0),o._listenMouseMove&&(s.touches=u?[]:[{pageX:a,pageY:i}],n(s)),u&&(o._listenMouseMove=!1)}},e.prototype.componentDidMount=function(){this._bindEvents(),this._update()},e.prototype.componentWillUnmount=function(){this._stopAnimation(),this._unSubscribe()},e.prototype.render=function(){var n=this.props,o=n.children,s=n.containerProps,a=n.nonce,i=Bc.only(o),c=s||{};return nr.createElement(nr.Fragment,null,nr.createElement("style",{nonce:a},zg),nr.createElement("div",$t({},c,{ref:this._containerRef,className:ks(za,c.className)}),Gs(i,{className:ks(ja,i.props.className)})))},e.defaultProps={animationDuration:250,draggableUnZoomed:!0,enforceBoundsDuringZoom:!1,centerContained:!1,enabled:!0,inertia:!0,inertiaFriction:.96,horizontalPadding:0,isTouch:Hg,lockDragAxis:!1,maxZoom:5,minZoom:.5,onDoubleTap:He,onDragEnd:He,onDragStart:He,onDragUpdate:He,onZoomEnd:He,onZoomStart:He,onZoomUpdate:He,setOffsetsOnce:!1,shouldInterceptWheel:ev,shouldCancelHandledTouchEndEvents:!1,tapZoomFactor:1,verticalPadding:0,wheelScaleFactor:1500,zoomOutFactor:1.3,doubleTapZoomOutOnMaxScale:!1,doubleTapToggleZoom:!1,_document:Ha?null:window.document},e})(Qs);if(0)var rb,ob,ib,sb,ab,cb,lb,ub;function ho(t){if(!t)return;let e=Math.floor(t/3600),n=Math.floor(t%3600/60),o=Math.round(t%60);return e===0?`${n}:${o.toString().padStart(2,"0")}`:`${e}:${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`}const iv=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),sv="ALT",fo=t=>{const{_:e}=Nt(),{alt:n,lang:o,index:s,...a}=t;return!n||!n.trim()?null:r("button",{type:"button",class:"alt-badge clickable",...a,onClick:i=>{i.stopPropagation(),i.preventDefault(),K.showMediaAlt={alt:n,lang:o}},title:e({id:"5gfDMm"}),children:[sv,!!s&&r("sup",{children:s})]})},av=140,cv=280,qa=Gt(t=>t?.length?t.length>av||/[\n\r].*[\n\r]/.test(t.trim()):!1);function lv({class:t="",media:e,to:n,lang:o,showOriginal:s,autoAnimate:a,showCaption:i,allowLongerCaption:c,altIndex:u,checkAspectRatio:h=!0,onClick:d}){let{id:l,blurhash:f,description:p,meta:m,previewRemoteUrl:g,previewUrl:v,remoteUrl:b,url:_,type:T}=e;/no\-preview\./i.test(v)&&(v=null);const E=uv(l||f||_),{original:w={},small:k,focus:C}=m||{},L=s?w?.width:k?.width||w?.width,A=s?w?.height:k?.height||w?.height,S=s?_:v||_,O=s?b:g||b,N=k?.width&&k?.height,M=L&&A?L>A?"landscape":"portrait":null,X=f?ui(f):null,z=R();let G;if(C){const H=(C.x+1)/2*100,W=(1-C.y)/2*100;G=`${H.toFixed(0)}% ${W.toFixed(0)}%`}const D=R(),j=yt(({x:H,y:W,scale:q})=>{const{current:vt}=D;if(vt){const zt=qg({x:H,y:W,scale:q});q===1?vt.style.removeProperty("transform"):vt.style.setProperty("transform",zt),vt.closest(".media-zoom").style.touchAction=q<=1.01?"pan-x":""}},[]),[J,it]=F(!1),et={enabled:J,draggableUnZoomed:!1,inertiaFriction:.9,tapZoomFactor:2,doubleTapToggleZoom:!0,containerProps:{className:"media-zoom",style:{overflow:"visible"}},onUpdate:j},[U,gt]=F(!1),At=ct(()=>n&&!U?H=>r(Ee,{to:n,...H}):"div",[n,U]),xt=O?xs(O):null,Bt=T==="unknown"&&xt&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(xt.pathname),ne=T==="unknown"&&xt&&/\.(mp3|ogg|wav|m4a|m4p|m4b)$/i.test(xt.pathname),bt=T==="image"||T==="unknown"&&v&&!Bt&&!ne,se=v&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(xs(v).pathname),Ht=R(),[Vt,Q]=F(!1);me(()=>{if(!bt||!s||!Ht.current)return;const{offsetWidth:H,offsetHeight:W}=Ht.current,q=L{const{children:W,...q}=H;return r("figure",{...q,children:[W,r("figcaption",{class:"media-caption",lang:o,dir:"auto",onClick:vt=>{vt.preventDefault(),vt.stopPropagation(),K.showMediaAlt={alt:p,lang:o}},children:p})]})}:$,qt=()=>window.matchMedia("(min-width: calc(40em + 350px))").matches?"large":"small",ae=yt(H=>{const W=H.target.closest(".status-deck");if(s||qt()==="large"&&W||!document.startViewTransition){d?.(H);return}const q=H.target.closest("[data-view-transition-name]")||H.target.querySelector("[data-view-transition-name]");if(q)if(d)d(H);else if(H.preventDefault(),q.dataset.viewTransitioned){q.style.viewTransitionName=E;try{document.startViewTransition(()=>{q.style.viewTransitionName="",location.hash=`#${n}`})}catch{q.style.viewTransitionName="",location.hash=`#${n}`}}else location.hash=`#${n}`;else d?.(H)},[E,s,d]);if(bt)return et.containerProps.style.display="inherit",me(()=>{iv&&s&&(async()=>{try{await fetch(S,{mode:"no-cors"}),D.current.src=S}catch{}})()},[S]),r(ht,{children:[r(At,{ref:Ht,class:`media media-image ${t}`,onClick:ae,"data-orientation":M,"data-has-alt":!st||void 0,style:s?{backgroundImage:`url(${v})`,"--bg-image":`url(${v})`,backgroundSize:Vt?`${L}px ${A}px`:void 0,...It}:tt,children:s?r(As,{...et,children:r("img",{ref:D,src:S,alt:p,width:L,height:A,"data-orientation":M,loading:"eager",decoding:"sync",style:{"view-transition-name":E},onLoad:H=>{const W=H.target,q=W.closest(".media-image");q&&(q.style.backgroundImage=`url(${W.src})`,q.style.removeProperty("--bg-image")),W.closest(".media-zoom").style.display="",it(!0)},onError:H=>{const{src:W}=H.target;W===S&&O&&S!==O&&(H.target.src=O)}})}):r($,{children:[r("img",{src:S,alt:st?"":p,width:L,height:A,"data-orientation":M,loading:"lazy","data-view-transition-name":E,style:{objectPosition:G||"center","--anim-duration":`${Math.min(Math.max(Math.max(L,A)/100,5),120)}s`},onLoad:H=>{H.target.dataset.loaded=!0;const W=H.target.closest(".media");if(!N&&W){const{naturalWidth:q,naturalHeight:vt}=H.target;W.dataset.orientation=q>vt?"landscape":"portrait",W.style.setProperty("--width",`${q}px`),W.style.setProperty("--height",`${vt}px`),W.style.aspectRatio=`${q}/${vt}`}if(h&&W){const{target:q}=H;setTimeout(()=>{const{clientWidth:vt,clientHeight:zt,naturalWidth:St,naturalHeight:Tt}=q;if(vt&&zt&&St&&Tt)if(St<88||Tt<88)W.dataset.hasSmallDimension=!0;else{const Rt=Tt*vt/St;if(Math.abs(Rt-zt)<5){const nt=W.closest(".media");nt&&(nt.dataset.hasNaturalAspectRatio=!0)}}},300)}},onError:H=>{const{src:W}=H.target;W===S&&O&&S!==O?H.target.src=O:gt(!0)}}),!st&&r(fo,{alt:p,lang:o,index:u})]})}),U&&r("div",{children:r("a",{href:b,class:"button plain6 small",target:"_blank",children:[r(I,{icon:"external"})," ",r("span",{children:r(x,{id:"9npOH9"})})]})})]});if(T==="gifv"||T==="video"||Bt){const H=w.duration>0,W=w.duration<31,q=T==="gifv"&&W,vt=w.duration<61,zt=ho(w.duration),St=!s&&!a&&q,Tt=!s&&a&&q,ce=w.duration>5,Rt=` + + `,Lt=` + + `;return r(ht,{children:r(At,{ref:Ht,class:`media ${t} media-${q?"gif":"video"} ${Tt?"media-contain":""} ${St?"media-hover-animate":""}`,"data-orientation":M,"data-formatted-duration":s?void 0:zt,"data-label":q&&!s&&!Tt?"GIF":void 0,"data-has-alt":!st||void 0,style:!s&&tt,onClick:nt=>{if(St)try{z.current.pause()}catch{}ae(nt)},onMouseEnter:()=>{if(St)try{z.current.play()}catch{}},onMouseLeave:()=>{if(St)try{z.current.pause()}catch{}},onFocus:()=>{if(St)try{z.current.play()}catch{}},onBlur:()=>{if(St)try{z.current.pause()}catch{}},children:[s||Tt?q&&s?r(As,{...et,enabled:!0,children:r("div",{ref:D,dangerouslySetInnerHTML:{__html:Rt}})}):q?r("div",{class:"video-container",dangerouslySetInnerHTML:{__html:Rt}}):r("div",{class:"video-container",dangerouslySetInnerHTML:{__html:Lt}}):q?r("video",{ref:z,src:_,poster:v,width:L,height:A,"data-orientation":M,"data-view-transition-name":E,preload:"auto",playsinline:!0,loop:!0,muted:!0,onTimeUpdate:ce?nt=>{const{target:wt}=nt,ot=wt?.closest(".media-gif");if(ot){const Ot=wt.currentTime/wt.duration*100;ot.style.setProperty("--progress",`${Ot}%`)}}:void 0}):r($,{children:[v&&!se?r("img",{src:v,alt:st?"":p,width:L,height:A,"data-orientation":M,loading:"lazy",decoding:"async","data-view-transition-name":E,onLoad:nt=>{if(!N){const wt=nt.target.closest(".media");if(wt){const{naturalHeight:ot,naturalWidth:Ot}=nt.target;wt.dataset.orientation=Ot>ot?"landscape":"portrait",wt.style.setProperty("--width",`${Ot}px`),wt.style.setProperty("--height",`${ot}px`),wt.style.aspectRatio=`${Ot}/${ot}`}}}}):r("video",{src:_+"#t=0.1",width:L,height:A,"data-orientation":M,"data-view-transition-name":E,preload:"metadata",muted:!0,disablePictureInPicture:!0,onLoadedMetadata:nt=>{if(!H){const{duration:wt}=nt.target;if(wt){const ot=ho(wt),Ot=nt.target.closest(".media-video");Ot&&(Ot.dataset.formattedDuration=ot)}}}}),r("div",{class:"media-play",children:r(I,{icon:"play",size:"xl",alt:"▶"})})]}),!s&&!st&&r(fo,{alt:p,lang:o,index:u})]})})}else if(T==="audio"||ne){const H=ho(w.duration);return r(ht,{children:r(At,{class:`media media-audio ${t}`,"data-formatted-duration":s?void 0:H,"data-has-alt":!st||void 0,onClick:d,style:!s&&tt,children:[s?v?r("video",{src:(b||_)+"#t=0.1",width:L,height:A,"data-orientation":M,poster:v,style:{background:`url(${v}) center/cover`,aspectRatio:`${L}/${A}`},preload:"metadata",controls:!0,controlsList:"nofullscreen",autoPlay:!0,playsInline:!0}):r("audio",{src:b||_,preload:"none",controls:!0,autoPlay:!0}):v?r("img",{src:v,alt:st?"":p,width:L,height:A,"data-orientation":M,loading:"lazy",onError:W=>{try{W.target?.remove?.()}catch{}}}):null,!s&&r($,{children:[r("div",{class:"media-play",children:r(I,{icon:"play",size:"xl",alt:"▶"})}),!st&&r(fo,{alt:p,lang:o,index:u})]})]})})}}function xs(t){return URL.parse(t,location.origin)}function uv(t){let e=t.replace(/[^a-zA-Z0-9_-]/g,"-");return e.match(/^[0-9-]/)&&(e="vt-"+e),e}const Bo=Oe(lv,(t,e)=>{const n=t.media||{},o=e.media||{};return n?.id===o?.id&&n.url===o.url&&t.to===e.to&&t.class===e.class});function dv(t){const{mediaAttachments:e,language:n,postID:o,instance:s}=t,a=e.length>1,i=R(),[c,u]=F(0);return Y(()=>{let h=()=>{const{clientWidth:d,scrollLeft:l}=i.current,f=Math.round(Math.abs(l)/d);u(f)};return i.current&&i.current.addEventListener("scroll",h,{passive:!0}),()=>{i.current&&i.current.removeEventListener("scroll",h)}},[]),r($,{children:[r("div",{class:"media-first-container",children:[r("div",{class:"media-first-carousel",ref:i,children:e.map((h,d)=>r("div",{class:"media-first-item",children:r(Bo,{media:h,lang:n,to:`/${s}/s/${o}?media=${d+1}`})},h.id))}),a&&r("div",{class:"media-carousel-controls",children:[r("div",{class:"carousel-indexer",children:[c+1,"/",e.length]}),r("label",{class:"media-carousel-button",children:r("button",{type:"button",class:"carousel-button",hidden:c===0,onClick:h=>{h.preventDefault(),h.stopPropagation(),i.current.focus(),i.current.scrollTo({left:i.current.clientWidth*(c-1)*(Mo()?-1:1),behavior:"smooth"})},children:r(I,{icon:"arrow-left"})})}),r("label",{class:"media-carousel-button",children:r("button",{type:"button",class:"carousel-button",hidden:c===e.length-1,onClick:h=>{h.preventDefault(),h.stopPropagation(),i.current.focus(),i.current.scrollTo({left:i.current.clientWidth*(c+1)*(Mo()?-1:1),behavior:"smooth"})},children:r(I,{icon:"arrow-right"})})})]})]}),a&&r("div",{class:"media-carousel-dots",style:{"--dots-count":e.length},children:e.map((h,d)=>r("span",{class:`carousel-dot ${d===c?"active":""}`},h.id))})]})}function hv(t){const{enabled:e,children:n,lang:o,captionChildren:s}=t;return!e||!s?n:r("figure",{class:"media-figure-multiple",children:[n,r("figcaption",{lang:o,dir:"auto",children:s})]})}const po=40;function fv({poll:t,lang:e,readOnly:n,refresh:o=()=>{},votePoll:s=()=>{}}){const{_:a}=Nt(),[i,c]=F("default"),[u,h]=F(po),d=R(null),{expired:l,expiresAt:f,id:p,multiple:m,options:g,ownVotes:v,voted:b,votersCount:_,votesCount:T=0,emojis:E}=t,w=!!f&&new Date(f),k=m&&_||T;let C=0;k<=1e3?C=0:k<=1e4?C=1:k<=1e5&&(C=2);const[L,A]=F(!1),S=g.every(D=>D.votesCount!==null),O=L&&S||b||l,[N,B]=F(m?[]:null);Y(()=>{if(!d.current||u>=g.length)return;const D=new IntersectionObserver(j=>{j[0].isIntersecting&&h(J=>Math.min(J+po,g.length))},{threshold:.1});return D.observe(d.current),()=>D.disconnect()},[u,g.length]),Y(()=>{h(po)},[O,g.length]);const M=m?N.length:N!==null?1:0,[X,z]=F(!1),G=Ve({onTruncated:z});return r("div",{lang:e,dir:"auto",class:`poll ${n?"read-only":""} ${i==="loading"?"loading":""}`,children:[O?r($,{children:[r("div",{class:"poll-options",ref:G,children:[g.slice(0,u).map((D,j)=>{const{title:J,votesCount:it}=D,et=k?it/k:0,U=et?et.toLocaleString(Dt.locale||void 0,{style:"percent",maximumFractionDigits:C}):"0%",gt=it>0&&it===Math.max(...g.map(At=>At.votesCount));return r("div",{class:`poll-option poll-result ${gt?"poll-option-leading":""}`,style:{"--percentage":`${et*100}%`},children:[r("div",{class:"poll-option-title",children:r("span",{children:r(fn,{text:J,emojis:E})})}),r("div",{class:"poll-option-votes",title:Dt._({id:"+syLpm",values:{optionVotesCount:it}}),children:[b&&v.includes(j)&&r($,{children:[r(I,{icon:"check-circle",alt:a({id:"IeO7us"})})," "]}),r("span",{class:"poll-option-votes-percentage",children:U})]})]},`${j}-${J}`)}),u{D.preventDefault(),A(!1)},children:[r(I,{icon:"arrow-left",size:"s"})," ",r(x,{id:"L96xSt"})]})," ",r("div",{class:"poll-info",children:X&&r("small",{class:"insignificant",children:r(x,{id:"lndXtU",values:{0:g.length}})})})]})]}):r("form",{onSubmit:async D=>{D.preventDefault();const j=m?N:N!==null?[N]:[];if(j.length){c("loading");try{await s(j)}catch{ft(a({id:"m4xQyv"}))}finally{c("default")}}},children:[r("div",{class:"poll-options",ref:G,children:[g.slice(0,u).map((D,j)=>{const{title:J}=D,it=m?N.includes(j):N===j;return r("div",{class:"poll-option",children:r("label",{class:"poll-label",children:[r("input",{type:m?"checkbox":"radio",name:"poll",value:j,disabled:i==="loading",readOnly:n,checked:it,onChange:et=>{const U=j;B(m?gt=>et.target.checked?[...gt,U]:gt.filter(At=>At!==U):U)}}),r("span",{class:"poll-option-title",children:r(fn,{text:J,emojis:E})})]})},`${j}-${J}`)}),u0?r("small",{children:[M," ",r("span",{class:"insignificant",children:["/ ",g.length]})]}):r("small",{class:"insignificant",children:r(x,{id:"lndXtU",values:{0:g.length}})}))})]})]}),r("p",{class:"poll-meta",children:[r("span",{class:"spacer",children:[(l||b)&&X&&r($,{children:[r("span",{class:"ib",children:r(x,{id:"lndXtU",values:{0:g.length}})})," ","•"," "]}),r("span",{class:"ib",children:r(x,{id:"k7v0Rh",values:{0:Xt(T),1:Xt(T),votesCount:T},components:{0:r("span",{title:T}),1:r("span",{title:T})}})}),!!_&&_!==T&&r($,{children:[" ","•"," ",r("span",{class:"ib",children:r(x,{id:"jf1i1L",values:{0:Xt(_),1:Xt(_),votersCount:_},components:{0:r("span",{title:_}),1:r("span",{title:_})}})})]})," ","•"," ",l?w?r("span",{class:"ib",children:r(x,{id:"5LwCCI",components:{0:r(Te,{datetime:w})}})}):a({id:"237hSL"}):w?r("span",{class:"ib",children:r(x,{id:"ooHDPY",components:{0:r(Te,{datetime:w})}})}):a({id:"O2tNG0"})]}),!b&&!l&&!n&&S&&r("button",{type:"button",class:"plain small poll-results-button",disabled:i==="loading",onClick:D=>{D.preventDefault(),A(!L)},title:a(L?{id:"L96xSt"}:{id:"zCjei3"}),children:[r(I,{icon:L?"eye-open":"eye-close",alt:a(L?{id:"L96xSt"}:{id:"zCjei3"})})," "]}),!l&&!n&&r("button",{type:"button",class:"plain small",disabled:i==="loading",onClick:D=>{D.preventDefault(),c("loading"),(async()=>(await o(),c("default")))()},title:a({id:"lCF0wC"}),children:r(I,{icon:"refresh",alt:a({id:"lCF0wC"})})})]})]})}const pv=/^http/i,Ms=(({post:t,instance:e,previewMode:n})=>{const{content:o,emojis:s,language:a,mentions:i,url:c}=t,u=Ye(K),h=te(t.id,e),d=u.statusQuotes[h],l=R();return me(()=>{if(!l.current)return;const f=Aa(o,{emojis:s,returnDOM:!0});for(const p of f.querySelectorAll('a.u-url[target="_blank"]'))pv.test(p.innerText.trim())||p.removeAttribute("target");l.current.replaceChildren(f.cloneNode(!0))},[o,s?.length]),Y(()=>{if(d?.length)for(const f of l.current.querySelectorAll("a"))d.some(p=>p?.originalURL===f.href)&&f.classList.add("is-quote")},[d?.length]),r("div",{ref:l,lang:a,dir:"auto",class:"inner-content",onClick:Nm({mentions:i,instance:e,previewMode:n,statusURL:c})})});var mo,Is;function mv(){return Is||(Is=1,mo=(e,n={})=>{const o=n.char||" ",s=n.count||2;let a=0;const i=[];return e.reverse().reduce((c,u)=>{i.length&&a&&i[a]&&i[a]===u.substring(1,i[a].length+1)&&(i.splice(a,1),a--);const d=[`${o.repeat(a?a*s:0)}${u}`,...c];return u.substring(0,2)==="n.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");return go={mergeAttributesWithElements:n=>{const o=t(n).split(` +`),s=[];let a="";for(let i=0;i")){s.push(`${a}${c.slice(0,-2)} />`),a="";continue}if(c.endsWith(">")){s.push(`${a}${c.startsWith(">")||c.startsWith("<")?"":" "}${c}`),a="";continue}a+=a.length?` ${c}`:c}return s},removeEmptyLines:t},go}var vo,Ps;function vv(){if(Ps)return vo;Ps=1;const t=mv(),{mergeAttributesWithElements:e}=gv();return vo=(o,s={})=>{const a=e(o);return t(a,s)},vo}var yv=vv();const bv=Zs(yv);function Ka(t,e,n=0){const{account:{url:o,displayName:s,acct:a,username:i,emojis:c,bot:u,group:h},id:d,poll:l,spoilerText:f,language:p,editedAt:m,createdAt:g,content:v,mediaAttachments:b,url:_,emojis:T}=t,E=te(d,e),k=(K.statusQuotes[E]||[]).filter((O,N,B)=>B.findIndex(M=>M.url===O.url)===N),C=k.length&&n<=2?k.map(O=>{const{id:N,instance:B}=O,M=te(N,B),X=K.statuses[M];if(X)return Ka(X,B,++n)}).join(""):"",L=new Date(g),A=Ro(v,T)+` +`+C+` +`+(l?.options?.length?` +

📊:

+
    + ${l.options.map(O=>` +
  • + ${O.title} + ${O.votesCount>=0?` (${O.votesCount})`:""} +
  • + `).join("")} +
`:"")+(b.length>0?` +`+b.map(O=>{const{description:N,meta:B,previewRemoteUrl:M,previewUrl:X,remoteUrl:z,url:G,type:D}=O,{original:j={},small:J}=B||{},it=J?.width||j?.width,et=J?.height||j?.height,U=z||G,gt=M||X,At=gt||U,xt=U?URL.parse(U):null,Bt=D==="unknown"&&xt&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(xt.pathname),ne=D==="unknown"&&xt&&/\.(mp3|ogg|wav|m4a|m4p|m4b)$/i.test(xt.pathname),bt=D==="image"||D==="unknown"&>&&!Bt&&!ne,se=D==="gifv"||D==="video"||Bt,Ht=D==="audio"||ne;let Vt="";return bt?Vt=`${N}`:se?Vt=` + + ${N?`
${N}
`:""} + `:Ht?Vt=` + + ${N?`
${N}
`:""} + `:Vt=` + 📄 ${N||U} + `,`
${Vt}
`}).join(` +`):""),S=` +
+ ${f?` +
+ ${f} + ${A} +
+ `:A} + +
+ `;return bv(S)}function wv({post:t,instance:e,onClose:n}){const{_:o}=Nt(),{account:{url:s,displayName:a,username:i,emojis:c,bot:u,group:h},id:d,poll:l,spoilerText:f,language:p,editedAt:m,createdAt:g,content:v,mediaAttachments:b,url:_,emojis:T}=t,E=Ka(t,e);return r("div",{id:"embed-post",class:"sheet",children:[!!n&&r("button",{type:"button",class:"sheet-close",onClick:n,children:r(I,{icon:"x",alt:o({id:"yz7wBu"})})}),r("header",{children:r("h2",{children:r(x,{id:"jdVwsS"})})}),r("main",{tabIndex:"-1",children:[r("h3",{children:r(x,{id:"GkS6YG"})}),r("textarea",{class:"embed-code",readonly:!0,onClick:w=>{w.target.select()},dir:"auto",children:E}),r("button",{type:"button",onClick:()=>{try{navigator.clipboard.writeText(E),ft(o({id:"bl7nrg"}))}catch{ft(o({id:"/KEBaP"}))}},children:[r(I,{icon:"clipboard"})," ",r("span",{children:r(x,{id:"he3ygx"})})]}),!!b?.length&&r("section",{children:[r("p",{children:r(x,{id:"/2mUza"})}),r("ol",{class:"links-list",children:b.map(w=>r("li",{children:r("a",{href:w.remoteUrl||w.url,target:"_blank",download:!0,children:w.remoteUrl||w.url})},w.id))})]}),!!c?.length&&r("section",{children:[r("p",{children:r(x,{id:"AeM/di"})}),r("ul",{children:c.map(w=>r("li",{children:[r("picture",{children:[r("source",{srcset:w.staticUrl,media:"(prefers-reduced-motion: reduce)"}),r("img",{class:"shortcode-emoji emoji",src:w.url,alt:`:${w.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",r("code",{children:[":",w.shortcode,":"]})," (",r("a",{href:w.url,target:"_blank",download:!0,children:"URL"}),")",w.staticUrl?r($,{children:[" ","(",r("a",{href:w.staticUrl,target:"_blank",download:!0,children:r(x,{id:"xiropL"})}),")"]}):null]},w.shortcode))})]}),!!T?.length&&r("section",{children:[r("p",{children:r(x,{id:"jzjjJh"})}),r("ul",{children:T.map(w=>r("li",{children:[r("picture",{children:[r("source",{srcset:w.staticUrl,media:"(prefers-reduced-motion: reduce)"}),r("img",{class:"shortcode-emoji emoji",src:w.url,alt:`:${w.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",r("code",{children:[":",w.shortcode,":"]})," (",r("a",{href:w.url,target:"_blank",download:!0,children:"URL"}),")",w.staticUrl?r($,{children:[" ","(",r("a",{href:w.staticUrl,target:"_blank",download:!0,children:r(x,{id:"xiropL"})}),")"]}):null]},w.shortcode))})]}),r("section",{children:r("small",{children:[r("p",{children:r(x,{id:"TnJgwX"})}),r("ul",{children:[r("li",{children:r(x,{id:"0OHPem"})}),r("li",{children:r(x,{id:"AzZ5zv"})}),r("li",{children:r(x,{id:"NU7wa/"})}),r("li",{children:r(x,{id:"R4PmPA"})})]})]})}),r("h3",{children:r(x,{id:"rdUucN"})}),r("output",{class:"embed-preview",dangerouslySetInnerHTML:{__html:E},dir:"auto"}),r("p",{children:r("small",{children:r(x,{id:"j0kZfi"})})})]})]})}function _v(t){const{_:e}=Nt(),n=Ve();return r(Ee,{...t,"data-read-more":e({id:"8fZueG"}),ref:n})}const Sv=500,Ds=30;function Tv({statusId:t,instance:e,onClose:n=()=>{}}){const{_:o}=Nt(),{masto:s}=ke(),[a,i]=F([]),[c,u]=F("default"),[h,d]=F(null),l=R(null),f=async p=>{l.current=new AbortController;const m=l.current.signal;u("loading");let g=0,v=p;for(;v&&!m.aborted&&gT.id===v);){let b=Yo(v,e);const _=!!b;if(!_)try{b=await s.v1.statuses.$select(v).fetch(),g++}catch{u("error");break}i(T=>[...T,b]),v=b.quote?.quotedStatusId||b.quote?.quotedStatus?.id,!_&&v&&!m.aborted&&gsetTimeout(T,Sv))}m.aborted||(d(v||null),u("default"))};return Y(()=>(f(t),()=>{l.current?.abort()}),[t]),r("div",{id:"quote-chain-modal",class:"sheet",tabindex:"-1",children:[n&&r("button",{type:"button",class:"sheet-close",onClick:n,children:r(I,{icon:"x",alt:o({id:"yz7wBu"})})}),r("header",{children:[r("b",{children:r(x,{id:"BHObg8"})})," ",a.length>0&&r("small",{class:"tag insignificant collapsed",children:[a.length,(!!h||c==="loading")&&"+"]})]}),r("main",{children:[r("ul",{class:"quoted-posts-list",children:a.map(p=>r("li",{class:"quoted-post-item",children:r(_v,{to:e?`/${e}/s/${p.id}`:`/s/${p.id}`,class:"status-link",onContextMenu:m=>{const g=m.target.querySelector(".status");if(g){if(m.metaKey)return;m.preventDefault(),g.dispatchEvent(new MouseEvent("contextmenu",{clientX:m.clientX,clientY:m.clientY}))}},children:r(di,{status:p,instance:e,size:"s",readOnly:!0,showCommentCount:!0,showQuoteCount:m=>m>1})})},p.id))}),c==="error"?r("p",{class:"ui-state",children:r(x,{id:"Ni40GV"})}):c==="loading"?r("p",{class:"ui-state",children:r(Fn,{abrupt:!0})}):h?r("button",{type:"button",class:"light block",onClick:()=>{f(h)},children:[r(I,{icon:"arrow-down"})," ",r(x,{id:"UQR9OT"})]}):r("p",{class:"ui-state insignificant",children:r(x,{id:"2EYeAZ"})})]})]})}function kv({onClose:t,post:e,currentPolicy:n}){const{_:o}=Nt(),{masto:s}=ke(),[a,i]=F("default"),[c,u]=F(n||"public"),h=async d=>{d.preventDefault();const f=new FormData(d.target).get("quoteApprovalPolicy");u(f),i("loading");try{const p=await s.v1.statuses.$select(e.id).interactionPolicy.update({quote_approval_policy:f});t(!0),ft(o({id:"3P1r1z"})),i("default"),_e(p,e.instance,{skipThreading:!0,skipUnfurling:!0})}catch{ft(o({id:"hEe3YR"})),i("error")}};return r("div",{class:"sheet",id:"quote-settings-container",children:[!!t&&r("button",{type:"button",class:"sheet-close",onClick:t,disabled:a==="loading",children:r(I,{icon:"x",alt:o({id:"yz7wBu"})})}),r("header",{children:r("h2",{children:r(x,{id:"UWSCwN"})})}),r("main",{children:[!!e&&r("div",{class:"post-preview",children:r(di,{status:e,size:"s",readOnly:!0})}),r("form",{onSubmit:h,children:[r("select",{value:c,name:"quoteApprovalPolicy",disabled:a==="loading",children:[r("option",{value:"public",children:r(x,{id:"hDWXuG"})}),r("option",{value:"followers",children:r(x,{id:"9Ko+Xp"})}),r("option",{value:"nobody",children:r(x,{id:"+bAQ3S"})})]})," ",r("button",{disabled:a==="loading",children:r(x,{id:"tfDRzk"})})]})]})]})}const Rs=20;function Ev({statusId:t,instance:e,onClose:n=()=>{}}){const{_:o}=Nt(),{masto:s}=ke(),[a,i]=F([]),[c,u]=F("default"),[h,d]=F(!1),l=R(),f=R(!0),p=(m=!1)=>{(m||!l.current)&&(l.current=s.v1.statuses.$select(t).quotes.list({limit:Rs}).values()),u("loading"),(async()=>{try{let{done:g,value:v}=await l.current.next();Array.isArray(v)?(i(m?v:b=>[...b,...v]),v.length{p(!0),f.current=!1},[t]),r("div",{id:"quotes-modal",class:"sheet",tabindex:"-1",children:[n&&r("button",{type:"button",class:"sheet-close",onClick:n,children:r(I,{icon:"x",alt:o({id:"yz7wBu"})})}),r("header",{children:r("h2",{children:r(x,{id:"eWLklq"})})}),r("main",{children:a.length>0?r($,{children:[r("ul",{class:"quoted-posts-list",children:a.map(m=>r("li",{class:"quoted-post-item",children:r(Ee,{to:e?`/${e}/s/${m.id}`:`/s/${m.id}`,class:"status-link",onContextMenu:g=>{const v=g.target.querySelector(".status");if(v){if(g.metaKey)return;g.preventDefault(),v.dispatchEvent(new MouseEvent("contextmenu",{clientX:g.clientX,clientY:g.clientY}))}},children:r(di,{status:m,instance:e,size:"s",readOnly:!0,showCommentCount:!0,showQuoteCount:!0})})},m.id))}),c==="default"?h?r("button",{type:"button",class:"plain block",onClick:()=>p(),children:r(x,{id:"uXRAkV"})}):r("p",{class:"ui-state insignificant",children:r(x,{id:"2EYeAZ"})}):c==="loading"&&r("p",{class:"ui-state",children:r(Fn,{abrupt:!0})})]}):c==="loading"?r("p",{class:"ui-state",children:r(Fn,{abrupt:!0})}):c==="error"?r("p",{class:"ui-state",children:r(x,{id:"3Uoj83"})}):r("p",{class:"ui-state insignificant",children:r(x,{id:"/Xg6f6"})})})]})}const qe=$e((t,e)=>{let{checked:n,count:o,extraCount:s,class:a,title:i,alt:c,size:u,icon:h,iconSize:d="l",onClick:l,...f}=t;typeof i=="string"&&(i=[i,i]),typeof c=="string"&&(c=[c,c]);const[p,m]=F(i[0]||""),[g,v]=F(c[0]||"");return Y(()=>{n?(m(i[1]||""),v(c[1]||"")):(m(i[0]||""),v(c[0]||""))},[n,i,c]),r("button",{ref:e,type:"button",title:p,class:`plain ${u?"small":""} ${a} ${n?"checked":""}`,onClick:b=>{l&&(b.preventDefault(),b.stopPropagation(),l(b))},...f,children:[r(I,{icon:h,size:d,alt:g}),(!!o||!!s)&&r($,{children:[" ",!!o&&r("small",{title:o,children:Xt(o)}),!!o&&!!s&&r("small",{children:"+"}),!!s&&r("small",{title:s,children:Xt(s)})]})]})});class Wt extends HTMLElement{constructor(){super(),this.isIframeLoaded=!1,this.isPlaylistThumbnailLoaded=!1,this.setupDom()}static get observedAttributes(){return["videoid","playlistid","videoplay","videotitle"]}connectedCallback(){this.addEventListener("pointerover",()=>Wt.warmConnections(this),{once:!0}),this.addEventListener("click",()=>this.addIframe())}get videoId(){return encodeURIComponent(this.getAttribute("videoid")||"")}set videoId(e){this.setAttribute("videoid",e)}get playlistId(){return encodeURIComponent(this.getAttribute("playlistid")||"")}set playlistId(e){this.setAttribute("playlistid",e)}get videoTitle(){return this.getAttribute("videotitle")||"Video"}set videoTitle(e){this.setAttribute("videotitle",e)}get videoPlay(){return this.getAttribute("videoplay")||"Play"}set videoPlay(e){this.setAttribute("videoplay",e)}get videoStartAt(){return this.getAttribute("videoStartAt")||"0"}get autoLoad(){return this.hasAttribute("autoload")}get autoPause(){return this.hasAttribute("autopause")}get noCookie(){return this.hasAttribute("nocookie")}get posterQuality(){return this.getAttribute("posterquality")||"hqdefault"}get posterLoading(){return this.getAttribute("posterloading")||"lazy"}get params(){return`start=${this.videoStartAt}&${this.getAttribute("params")}`}set params(e){this.setAttribute("params",e)}set posterQuality(e){this.setAttribute("posterquality",e)}get disableNoscript(){return this.hasAttribute("disablenoscript")}setupDom(){const e=this.attachShadow({mode:"open"});let n="";window.liteYouTubeNonce&&(n=`nonce="${window.liteYouTubeNonce}"`),e.innerHTML=` + +
+ + + + + + + + +
+ `,this.domRefFrame=e.querySelector("#frame"),this.domRefImg={fallback:e.querySelector("#fallbackPlaceholder"),webp:e.querySelector("#webpPlaceholder"),jpeg:e.querySelector("#jpegPlaceholder")},this.domRefPlayButton=e.querySelector("#playButton")}setupComponent(){this.shadowRoot.querySelector("slot[name=image]").assignedNodes().length===0&&this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort()||this.autoPause)&&this.initIntersectionObserver(),this.disableNoscript||this.injectSearchNoScript()}attributeChangedCallback(e,n,o){n!==o&&(e==="playlistid"&&n!==null&&n!==o&&(this.isPlaylistThumbnailLoaded=!1),this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1))}injectSearchNoScript(){const e=document.createElement("noscript");this.prepend(e),e.innerHTML=this.generateIframe()}generateIframe(e=!1){let n=e?0:1,o=this.autoPause?"&enablejsapi=1":"";const s=this.noCookie?"-nocookie":"";let a;return this.playlistId?a=`?listType=playlist&list=${this.playlistId}&`:a=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1),` +`}addIframe(e=!1){if(!this.isIframeLoaded){const n=this.generateIframe(e);this.domRefFrame.insertAdjacentHTML("beforeend",n),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){this.playlistId&&!this.videoId?this.loadPlaylistThumbnail():this.testPosterImage(),this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.domRefImg?.fallback?.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}async loadPlaylistThumbnail(){if(!this.isPlaylistThumbnailLoaded){this.isPlaylistThumbnailLoaded=!0;try{const e=`https://www.youtube.com/oembed?url=https://www.youtube.com/playlist?list=${this.playlistId}&format=json`,n=await fetch(e);if(!n.ok)throw new Error(`Failed to fetch playlist thumbnail: ${n.status}`);const o=await n.json();if(o.thumbnail_url){const s=o.thumbnail_url,a=s.match(/\/vi\/([^\/]+)\//);if(a){const i=a[1];this.loadThumbnailImages(i)}else this.domRefImg.fallback.src=s,this.domRefImg.fallback.loading=this.posterLoading}}catch(e){console.warn("Failed to load playlist thumbnail:",e)}}}loadThumbnailImages(e){const n=`https://i.ytimg.com/vi_webp/${e}/${this.posterQuality}.webp`;this.domRefImg.webp.srcset=n;const o=`https://i.ytimg.com/vi/${e}/${this.posterQuality}.jpg`;this.domRefImg.jpeg.srcset=o,this.domRefImg.fallback.src=o,this.domRefImg.fallback.loading=this.posterLoading}async testPosterImage(){setTimeout(()=>{const e=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,n=new Image;n.fetchPriority="low",n.referrerPolicy="origin",n.src=e,n.onload=async o=>{const s=o.target;s?.naturalHeight==90&&s?.naturalWidth==120&&(this.posterQuality="hqdefault"),this.loadThumbnailImages(this.videoId)}},100)}initIntersectionObserver(){const e={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((o,s)=>{o.forEach(a=>{a.isIntersecting&&!this.isIframeLoaded&&(Wt.warmConnections(this),this.addIframe(!0),s.unobserve(this))})},e).observe(this),this.autoPause&&new IntersectionObserver((s,a)=>{s.forEach(i=>{i.intersectionRatio!==1&&this.shadowRoot.querySelector("iframe")?.contentWindow?.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})},{threshold:1}).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{this.shadowRoot.querySelector("iframe")?.contentWindow?.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(e,n){const o=document.createElement("link");o.rel=e,o.href=n,o.crossOrigin="true",document.head.append(o)}static warmConnections(e){Wt.isPreconnected||window.liteYouTubeIsPreconnected||(Wt.addPrefetch("preconnect","https://i.ytimg.com/"),Wt.addPrefetch("preconnect","https://s.ytimg.com"),e.noCookie?Wt.addPrefetch("preconnect","https://www.youtube-nocookie.com"):(Wt.addPrefetch("preconnect","https://www.youtube.com"),Wt.addPrefetch("preconnect","https://www.google.com"),Wt.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Wt.addPrefetch("preconnect","https://static.doubleclick.net")),Wt.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Wt.isPreconnected=!1;customElements.define("lite-youtube",Wt);function Cv({authors:t,hidden:e,children:n}){if(e||!t?.[0]?.account?.id)return n;const o=t[0].account;return r("div",{class:"card-byline",children:[n,r("div",{class:"card-byline-author",children:[r(I,{icon:"link",size:"s"})," ",r("small",{children:r(x,{id:"4LHHK6",components:{0:r(he,{account:o,showAvatar:!0})}})})]})]})}function $s(t){return["x.com","twitter.com","threads.net","bsky.app","bsky.brid.gy","fed.brid.gy"].includes(t)}function Av({card:t,selfReferential:e,selfAuthor:n,instance:o}){const s=Ye(K),{blurhash:a,title:i,description:c,html:u,providerName:h,providerUrl:d,authorName:l,authorUrl:f,width:p,height:m,image:g,imageDescription:v,url:b,type:_,embedUrl:T,language:E,publishedAt:w,authors:k}=t,C=i||h||l,A=p/m>=1.2?"large":"",[S,O]=F(null);if(Y(()=>{if(!C||!g||e||!zc(b))return;const z=new AbortController;return jc(o,b,z.signal).then(G=>{if(!G)return;const{id:D,url:j}=G;O("#"+j)}),()=>{z.abort()}},[C,g,e]),s.unfurledLinks[b])return null;const N=/`;\n }\n addIframe(isIntersectionObserver = false) {\n if (!this.isIframeLoaded) {\n const iframeHTML = this.generateIframe(isIntersectionObserver);\n this.domRefFrame.insertAdjacentHTML('beforeend', iframeHTML);\n this.domRefFrame.classList.add('activated');\n this.isIframeLoaded = true;\n this.attemptShortAutoPlay();\n this.dispatchEvent(new CustomEvent('liteYoutubeIframeLoaded', {\n detail: {\n videoId: this.videoId,\n },\n bubbles: true,\n cancelable: true,\n }));\n }\n }\n initImagePlaceholder() {\n if (this.playlistId && !this.videoId) {\n this.loadPlaylistThumbnail();\n }\n else {\n this.testPosterImage();\n }\n this.domRefImg.fallback.setAttribute('aria-label', `${this.videoPlay}: ${this.videoTitle}`);\n this.domRefImg?.fallback?.setAttribute('alt', `${this.videoPlay}: ${this.videoTitle}`);\n }\n async loadPlaylistThumbnail() {\n if (this.isPlaylistThumbnailLoaded) {\n return;\n }\n this.isPlaylistThumbnailLoaded = true;\n try {\n const oEmbedUrl = `https://www.youtube.com/oembed?url=https://www.youtube.com/playlist?list=${this.playlistId}&format=json`;\n const response = await fetch(oEmbedUrl);\n if (!response.ok) {\n throw new Error(`Failed to fetch playlist thumbnail: ${response.status}`);\n }\n const data = await response.json();\n if (data.thumbnail_url) {\n const thumbnailUrl = data.thumbnail_url;\n const videoIdMatch = thumbnailUrl.match(/\\/vi\\/([^\\/]+)\\//);\n if (videoIdMatch) {\n const extractedVideoId = videoIdMatch[1];\n this.loadThumbnailImages(extractedVideoId);\n }\n else {\n this.domRefImg.fallback.src = thumbnailUrl;\n this.domRefImg.fallback.loading = this.posterLoading;\n }\n }\n }\n catch (error) {\n console.warn('Failed to load playlist thumbnail:', error);\n }\n }\n loadThumbnailImages(videoId) {\n const posterUrlWebp = `https://i.ytimg.com/vi_webp/${videoId}/${this.posterQuality}.webp`;\n this.domRefImg.webp.srcset = posterUrlWebp;\n const posterUrlJpeg = `https://i.ytimg.com/vi/${videoId}/${this.posterQuality}.jpg`;\n this.domRefImg.jpeg.srcset = posterUrlJpeg;\n this.domRefImg.fallback.src = posterUrlJpeg;\n this.domRefImg.fallback.loading = this.posterLoading;\n }\n async testPosterImage() {\n setTimeout(() => {\n const webpUrl = `https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`;\n const img = new Image();\n img.fetchPriority = 'low';\n img.referrerPolicy = 'origin';\n img.src = webpUrl;\n img.onload = async (e) => {\n const target = e.target;\n const noPoster = target?.naturalHeight == 90 && target?.naturalWidth == 120;\n if (noPoster) {\n this.posterQuality = 'hqdefault';\n }\n this.loadThumbnailImages(this.videoId);\n };\n }, 100);\n }\n initIntersectionObserver() {\n const options = {\n root: null,\n rootMargin: '0px',\n threshold: 0,\n };\n const observer = new IntersectionObserver((entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting && !this.isIframeLoaded) {\n LiteYTEmbed.warmConnections(this);\n this.addIframe(true);\n observer.unobserve(this);\n }\n });\n }, options);\n observer.observe(this);\n if (this.autoPause) {\n const windowPause = new IntersectionObserver((e, o) => {\n e.forEach(entry => {\n if (entry.intersectionRatio !== 1) {\n this.shadowRoot\n .querySelector('iframe')\n ?.contentWindow?.postMessage('{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}', '*');\n }\n });\n }, { threshold: 1 });\n windowPause.observe(this);\n }\n }\n attemptShortAutoPlay() {\n if (this.isYouTubeShort()) {\n setTimeout(() => {\n this.shadowRoot\n .querySelector('iframe')\n ?.contentWindow?.postMessage('{\"event\":\"command\",\"func\":\"' + 'playVideo' + '\",\"args\":\"\"}', '*');\n }, 2000);\n }\n }\n isYouTubeShort() {\n return (this.getAttribute('short') === '' &&\n window.matchMedia('(max-width: 40em)').matches);\n }\n static addPrefetch(kind, url) {\n const linkElem = document.createElement('link');\n linkElem.rel = kind;\n linkElem.href = url;\n linkElem.crossOrigin = 'true';\n document.head.append(linkElem);\n }\n static warmConnections(context) {\n if (LiteYTEmbed.isPreconnected || window.liteYouTubeIsPreconnected)\n return;\n LiteYTEmbed.addPrefetch('preconnect', 'https://i.ytimg.com/');\n LiteYTEmbed.addPrefetch('preconnect', 'https://s.ytimg.com');\n if (!context.noCookie) {\n LiteYTEmbed.addPrefetch('preconnect', 'https://www.youtube.com');\n LiteYTEmbed.addPrefetch('preconnect', 'https://www.google.com');\n LiteYTEmbed.addPrefetch('preconnect', 'https://googleads.g.doubleclick.net');\n LiteYTEmbed.addPrefetch('preconnect', 'https://static.doubleclick.net');\n }\n else {\n LiteYTEmbed.addPrefetch('preconnect', 'https://www.youtube-nocookie.com');\n }\n LiteYTEmbed.isPreconnected = true;\n window.liteYouTubeIsPreconnected = true;\n }\n}\nLiteYTEmbed.isPreconnected = false;\ncustomElements.define('lite-youtube', LiteYTEmbed);\n//# sourceMappingURL=lite-youtube.js.map","import { Trans } from '@lingui/react/macro';\n\nimport Icon from './icon';\nimport NameText from './name-text';\n\nfunction Byline({ authors, hidden, children }) {\n if (hidden) return children;\n if (!authors?.[0]?.account?.id) return children;\n const author = authors[0].account;\n\n return (\n \n );\n}\n\nexport default Byline;\n","import '@justinribeiro/lite-youtube';\n\nimport { decodeBlurHash, getBlurHashAverageColor } from 'fast-blurhash';\nimport { useCallback, useEffect, useState } from 'preact/hooks';\nimport { useSnapshot } from 'valtio';\n\nimport getDomain from '../utils/get-domain';\nimport isMastodonLinkMaybe from '../utils/isMastodonLinkMaybe';\nimport states from '../utils/states';\nimport unfurlMastodonLink from '../utils/unfurl-link';\n\nimport Byline from './byline';\nimport Icon from './icon';\nimport RelativeTime from './relative-time';\n\n// \"Post\": Quote post + card link preview combo\n// Assume all links from these domains are \"posts\"\n// Mastodon links are \"posts\" too but they are converted to real quote posts and there's too many domains to check\n// This is just \"Progressive Enhancement\"\nfunction isCardPost(domain) {\n return [\n 'x.com',\n 'twitter.com',\n 'threads.net',\n 'bsky.app',\n 'bsky.brid.gy',\n 'fed.brid.gy',\n ].includes(domain);\n}\n\nfunction StatusCard({ card, selfReferential, selfAuthor, instance }) {\n const snapStates = useSnapshot(states);\n const {\n blurhash,\n title,\n description,\n html,\n providerName,\n providerUrl,\n authorName,\n authorUrl,\n width,\n height,\n image,\n imageDescription,\n url,\n type,\n embedUrl,\n language,\n publishedAt,\n authors,\n } = card;\n\n /* type\n link = Link OEmbed\n photo = Photo OEmbed\n video = Video OEmbed\n rich = iframe OEmbed. Not currently accepted, so won't show up in practice.\n */\n\n const hasText = title || providerName || authorName;\n const isLandscape = width / height >= 1.2;\n const size = isLandscape ? 'large' : '';\n\n const [cardStatusURL, setCardStatusURL] = useState(null);\n // const [cardStatusID, setCardStatusID] = useState(null);\n useEffect(() => {\n if (!hasText || !image || selfReferential || !isMastodonLinkMaybe(url)) {\n return;\n }\n\n const abortController = new AbortController();\n unfurlMastodonLink(instance, url, abortController.signal).then((result) => {\n if (!result) return;\n const { id, url } = result;\n setCardStatusURL('#' + url);\n\n // NOTE: This is for quote post\n // (async () => {\n // const { masto } = api({ instance });\n // const status = await masto.v1.statuses.$select(id).fetch();\n // saveStatus(status, instance);\n // setCardStatusID(id);\n // })();\n });\n\n return () => {\n abortController.abort();\n };\n }, [hasText, image, selfReferential]);\n\n // if (cardStatusID) {\n // return (\n // \n // );\n // }\n\n if (snapStates.unfurledLinks[url]) return null;\n\n const hasIframeHTML = /