Files
phanpy-cz/assets/compose-CUhufx8N.js
2025-11-09 08:49:49 +01:00

35 lines
89 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{e,c as gi,s as ee,p as Ui,u as Ie,A as j,a as Ct,X as Vi,y as J,F as Wi,V as vi,T as B,aa as Gi,d as P,M as bi,k as $e,m as je,l as me,q as tt,B as rt,G as Ve,aW as yi,I as Yi,$ as Zi,U as Qi,t as Xi,aN as Ji,H as en,aX as tn,b as nn}from"./pwa-viewport-CZFc0vUU.js";import{a6 as sn,K as an,a2 as on,B as rn,x as Me,af as bt,ag as Xt,ah as xi,X as ln,Z as lt,I as _,r as Re,q as it,s as _e,h as st,i as wi,d as ke,l as Ft,t as cn,f as We,v as ki,F as at,ai as un,aj as dn,ak as hn,a0 as pn,p as De,al as mn,am as fn,D as Jt,u as gn,a as vn,a8 as bn,a7 as yn,c as ei,an as yt,ao as xn}from"./ScheduledAtField-BOlu1KST.js";import"./ICONS-BzjICR_A.js";function wn({onlyFirst:n=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,n?void 0:"g")}const kn=wn();function En(n){if(typeof n!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof n}\``);return n.replace(kn,"")}const Fn=new Intl.Segmenter;function ti(n,{countAnsiEscapeCodes:t=!1}={}){if(n===""||(t||(n=En(n)),n===""))return 0;let s=0;for(const o of Fn.segment(n))s++;return s}const St=[["aa","Afar","Afaraf"],["ab","Abkhaz","аҧсуа бызшәа"],["ae","Avestan","avesta"],["af","Afrikaans","Afrikaans"],["ak","Akan","Akan"],["am","Amharic","አማርኛ"],["an","Aragonese","aragonés"],["ar","Arabic","اللغة العربية"],["as","Assamese","অসমীয়া"],["av","Avaric","авар мацӀ"],["ay","Aymara","aymar aru"],["az","Azerbaijani","azərbaycan dili"],["ba","Bashkir","башҡорт теле"],["be","Belarusian","беларуская мова"],["bg","Bulgarian","български език"],["bh","Bihari","भोजपुरी"],["bi","Bislama","Bislama"],["bm","Bambara","bamanankan"],["bn","Bengali","বাংলা"],["bo","Tibetan","བོད་ཡིག"],["br","Breton","brezhoneg"],["bs","Bosnian","bosanski jezik"],["ca","Catalan","Català"],["ce","Chechen","нохчийн мотт"],["ch","Chamorro","Chamoru"],["co","Corsican","corsu"],["cr","Cree","ᓀᐦᐃᔭᐍᐏᐣ"],["cs","Czech","čeština"],["cu","Old Church Slavonic","ѩзыкъ словѣньскъ"],["cv","Chuvash","чӑваш чӗлхи"],["cy","Welsh","Cymraeg"],["da","Danish","dansk"],["de","German","Deutsch"],["dv","Divehi","Dhivehi"],["dz","Dzongkha","རྫོང་ཁ"],["ee","Ewe","Eʋegbe"],["el","Greek","Ελληνικά"],["en","English","English"],["eo","Esperanto","Esperanto"],["es","Spanish","Español"],["et","Estonian","eesti"],["eu","Basque","euskara"],["fa","Persian","فارسی"],["ff","Fula","Fulfulde"],["fi","Finnish","suomi"],["fj","Fijian","Vakaviti"],["fo","Faroese","føroyskt"],["fr","French","Français"],["fy","Western Frisian","Frysk"],["ga","Irish","Gaeilge"],["gd","Scottish Gaelic","Gàidhlig"],["gl","Galician","galego"],["gu","Gujarati","ગુજરાતી"],["gv","Manx","Gaelg"],["ha","Hausa","هَوُسَ"],["he","Hebrew","עברית"],["hi","Hindi","हिन्दी"],["ho","Hiri Motu","Hiri Motu"],["hr","Croatian","Hrvatski"],["ht","Haitian","Kreyòl ayisyen"],["hu","Hungarian","magyar"],["hy","Armenian","Հայերեն"],["hz","Herero","Otjiherero"],["ia","Interlingua","Interlingua"],["id","Indonesian","Bahasa Indonesia"],["ie","Interlingue","Interlingue"],["ig","Igbo","Asụsụ Igbo"],["ii","Nuosu","ꆈꌠ꒿ Nuosuhxop"],["ik","Inupiaq","Iñupiaq"],["io","Ido","Ido"],["is","Icelandic","Íslenska"],["it","Italian","Italiano"],["iu","Inuktitut","ᐃᓄᒃᑎᑐᑦ"],["ja","Japanese","日本語"],["jv","Javanese","basa Jawa"],["ka","Georgian","ქართული"],["kg","Kongo","Kikongo"],["ki","Kikuyu","Gĩkũyũ"],["kj","Kwanyama","Kuanyama"],["kk","Kazakh","қазақ тілі"],["kl","Kalaallisut","kalaallisut"],["km","Khmer","ខេមរភាសា"],["kn","Kannada","ಕನ್ನಡ"],["ko","Korean","한국어"],["kr","Kanuri","Kanuri"],["ks","Kashmiri","कश्मीरी"],["ku","Kurmanji (Kurdish)","Kurmancî"],["kv","Komi","коми кыв"],["kw","Cornish","Kernewek"],["ky","Kyrgyz","Кыргызча"],["la","Latin","latine"],["lb","Luxembourgish","Lëtzebuergesch"],["lg","Ganda","Luganda"],["li","Limburgish","Limburgs"],["ln","Lingala","Lingála"],["lo","Lao","ລາວ"],["lt","Lithuanian","lietuvių kalba"],["lu","Luba-Katanga","Tshiluba"],["lv","Latvian","latviešu valoda"],["mg","Malagasy","fiteny malagasy"],["mh","Marshallese","Kajin M̧ajeļ"],["mi","Māori","te reo Māori"],["mk","Macedonian","македонски јазик"],["ml","Malayalam","മലയാളം"],["mn","Mongolian","Монгол хэл"],["mr","Marathi","मराठी"],["ms","Malay","Bahasa Melayu"],["ms-Arab","Jawi Malay","بهاس ملايو"],["mt","Maltese","Malti"],["my","Burmese","ဗမာစာ"],["na","Nauru","Ekakairũ Naoero"],["nb","Norwegian Bokmål","Norsk bokmål"],["nd","Northern Ndebele","isiNdebele"],["ne","Nepali","नेपाली"],["ng","Ndonga","Owambo"],["nl","Dutch","Nederlands"],["nn","Norwegian Nynorsk","Norsk Nynorsk"],["no","Norwegian","Norsk"],["nr","Southern Ndebele","isiNdebele"],["nv","Navajo","Diné bizaad"],["ny","Chichewa","chiCheŵa"],["oc","Occitan","occitan"],["oj","Ojibwe","ᐊᓂᔑᓈᐯᒧᐎᓐ"],["om","Oromo","Afaan Oromoo"],["or","Oriya","ଓଡ଼ିଆ"],["os","Ossetian","ирон æвзаг"],["pa","Punjabi","ਪੰਜਾਬੀ"],["pi","Pāli","पाऴि"],["pl","Polish","Polski"],["ps","Pashto","پښتو"],["pt","Portuguese","Português"],["qu","Quechua","Runa Simi"],["rm","Romansh","rumantsch grischun"],["rn","Kirundi","Ikirundi"],["ro","Romanian","Română"],["ru","Russian","Русский"],["rw","Kinyarwanda","Ikinyarwanda"],["sa","Sanskrit","संस्कृतम्"],["sc","Sardinian","sardu"],["sd","Sindhi","सिन्धी"],["se","Northern Sami","Davvisámegiella"],["sg","Sango","yângâ tî sängö"],["si","Sinhala","සිංහල"],["sk","Slovak","slovenčina"],["sl","Slovenian","slovenščina"],["sn","Shona","chiShona"],["so","Somali","Soomaaliga"],["sq","Albanian","Shqip"],["sr","Serbian","српски језик"],["ss","Swati","SiSwati"],["st","Southern Sotho","Sesotho"],["su","Sundanese","Basa Sunda"],["sv","Swedish","Svenska"],["sw","Swahili","Kiswahili"],["ta","Tamil","தமிழ்"],["te","Telugu","తెలుగు"],["tg","Tajik","тоҷикӣ"],["th","Thai","ไทย"],["ti","Tigrinya","ትግርኛ"],["tk","Turkmen","Türkmen"],["tl","Tagalog","Tagalog"],["tn","Tswana","Setswana"],["to","Tonga","faka Tonga"],["tr","Turkish","Türkçe"],["ts","Tsonga","Xitsonga"],["tt","Tatar","татар теле"],["tw","Twi","Twi"],["ty","Tahitian","Reo Tahiti"],["ug","Uyghur","ئۇيغۇرچە‎"],["uk","Ukrainian","Українська"],["ur","Urdu","اردو"],["uz","Uzbek","Ўзбек"],["ve","Venda","Tshivenḓa"],["vi","Vietnamese","Tiếng Việt"],["vo","Volapük","Volapük"],["wa","Walloon","walon"],["wo","Wolof","Wollof"],["xh","Xhosa","isiXhosa"],["yi","Yiddish","ייִדיש"],["yo","Yoruba","Yorùbá"],["za","Zhuang","Saɯ cueŋƅ"],["zh","Chinese","中文"],["zu","Zulu","isiZulu"],["zh-CN","Chinese (China)","简体中文"],["zh-HK","Chinese (Hong Kong)","繁體中文(香港)"],["zh-TW","Chinese (Taiwan)","繁體中文(臺灣)"],["zh-YUE","Cantonese","廣東話"],["ast","Asturian","Asturianu"],["chr","Cherokee","ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ"],["ckb","Sorani (Kurdish)","سۆرانی"],["cnr","Montenegrin","crnogorski"],["csb","Kashubian","Kaszëbsczi"],["gsw","Swiss German","Schwiizertütsch"],["jbo","Lojban","la .lojban."],["kab","Kabyle","Taqbaylit"],["ldn","Láadan","Láadan"],["lfn","Lingua Franca Nova","lingua franca nova"],["moh","Mohawk","Kanienʼkéha"],["nds","Low German","Plattdüütsch"],["pdc","Pennsylvania Dutch","Pennsilfaani-Deitsch"],["sco","Scots","Scots"],["sma","Southern Sami","Åarjelsaemien Gïele"],["smj","Lule Sami","Julevsámegiella"],["szl","Silesian","ślůnsko godka"],["tok","Toki Pona","toki pona"],["vai","Vai","ꕙꔤ"],["xal","Kalmyk","Хальмг келн"],["zba","Balaibalan","باليبلن"],["zgh","Standard Moroccan Tamazight","ⵜⴰⵎⴰⵣⵉⵖⵜ"]],An="(((?:[^A-Za-z0-9@$#\\uFFFE\\uFEFF\\uFFFF]|[\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069]|^))((https?:\\/\\/)((?:(?:(?:[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/](?:[_-]|[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/])*)?[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/]\\.)*(?:(?:[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/](?:-|[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/])*)?[^/\\!'#%&'\\(\\)*\\+,\\\\\\-\\.\\/:;<=>\\?@\\[\\]\\^_{|}~\\$//\\x09-\\x0D\\x20\\x85\\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000//\\uFFFE\\uFEFF\\uFFFF//\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066\\u2067\\u2068\\u2069/]\\.)(?:(?:(?:삼성|닷컴|닷넷|香格里拉|餐厅|食品|飞利浦|電訊盈科|集团|通販|购物|谷歌|诺基亚|联通|网络|网站|网店|网址|组织机构|移动|珠宝|点看|游戏|淡马锡|机构|書籍|时尚|新闻|政府|政务|招聘|手表|手机|我爱你|慈善|微博|广东|工行|家電|娱乐|天主教|大拿|大众汽车|在线|嘉里大酒店|嘉里|商标|商店|商城|公益|公司|八卦|健康|信息|佛山|企业|中文网|中信|世界|ポイント|ファッション|セール|ストア|コム|グーグル|クラウド|みんな|คอม|संगठन|नेट|कॉम|همراه|موقع|موبايلي|كوم|كاثوليك|عرب|شبكة|بيتك|بازار|العليان|ارامكو|اتصالات|ابوظبي|קום|сайт|рус|орг|онлайн|москва|ком|католик|дети|zuerich|zone|zippo|zip|zero|zara|zappos|yun|youtube|you|yokohama|yoga|yodobashi|yandex|yamaxun|yahoo|yachts|xyz|xxx|xperia|xin|xihuan|xfinity|xerox|xbox|wtf|wtc|wow|world|works|work|woodside|wolterskluwer|wme|winners|wine|windows|win|williamhill|wiki|wien|whoswho|weir|weibo|wedding|wed|website|weber|webcam|weatherchannel|weather|watches|watch|warman|wanggou|wang|walter|walmart|wales|vuelos|voyage|voto|voting|vote|volvo|volkswagen|vodka|vlaanderen|vivo|viva|vistaprint|vista|vision|visa|virgin|vip|vin|villas|viking|vig|video|viajes|vet|versicherung|vermögensberatung|vermögensberater|verisign|ventures|vegas|vanguard|vana|vacations|ups|uol|uno|university|unicom|uconnect|ubs|ubank|tvs|tushu|tunes|tui|tube|trv|trust|travelersinsurance|travelers|travelchannel|travel|training|trading|trade|toys|toyota|town|tours|total|toshiba|toray|top|tools|tokyo|today|tmall|tkmaxx|tjx|tjmaxx|tirol|tires|tips|tiffany|tienda|tickets|tiaa|theatre|theater|thd|teva|tennis|temasek|telefonica|telecity|tel|technology|tech|team|tdk|tci|taxi|tax|tattoo|tatar|tatamotors|target|taobao|talk|taipei|tab|systems|symantec|sydney|swiss|swiftcover|swatch|suzuki|surgery|surf|support|supply|supplies|sucks|style|study|studio|stream|store|storage|stockholm|stcgroup|stc|statoil|statefarm|statebank|starhub|star|staples|stada|srt|srl|spreadbetting|spot|sport|spiegel|space|soy|sony|song|solutions|solar|sohu|software|softbank|social|soccer|sncf|smile|smart|sling|skype|sky|skin|ski|site|singles|sina|silk|shriram|showtime|show|shouji|shopping|shop|shoes|shiksha|shia|shell|shaw|sharp|shangrila|sfr|sexy|sex|sew|seven|ses|services|sener|select|seek|security|secure|seat|search|scot|scor|scjohnson|science|schwarz|schule|school|scholarships|schmidt|schaeffler|scb|sca|sbs|sbi|saxo|save|sas|sarl|sapo|sap|sanofi|sandvikcoromant|sandvik|samsung|samsclub|salon|sale|sakura|safety|safe|saarland|ryukyu|rwe|run|ruhr|rugby|rsvp|room|rogers|rodeo|rocks|rocher|rmit|rip|rio|ril|rightathome|ricoh|richardli|rich|rexroth|reviews|review|restaurant|rest|republican|report|repair|rentals|rent|ren|reliance|reit|reisen|reise|rehab|redumbrella|redstone|red|recipes|realty|realtor|realestate|read|raid|radio|racing|qvc|quest|quebec|qpon|pwc|pub|prudential|pru|protection|property|properties|promo|progressive|prof|productions|prod|pro|prime|press|praxi|pramerica|post|porn|politie|poker|pohl|pnc|plus|plumbing|playstation|play|place|pizza|pioneer|pink|ping|pin|pid|pictures|pictet|pics|piaget|physio|photos|photography|photo|phone|philips|phd|pharmacy|pfizer|pet|pccw|pay|passagens|party|parts|partners|pars|paris|panerai|panasonic|pamperedchef|page|ovh|ott|otsuka|osaka|origins|orientexpress|organic|org|orange|oracle|open|ooo|onyourside|online|onl|ong|one|omega|ollo|oldnavy|olayangroup|olayan|okinawa|office|off|observer|obi|nyc|ntt|nrw|nra|nowtv|nowruz|now|norton|northwesternmutual|nokia|nissay|nissan|ninja|nikon|nike|nico|nhk|ngo|nfl|nexus|nextdirect|next|news|newholland|new|neustar|network|netflix|netbank|net|nec|nba|navy|natura|nationwide|name|nagoya|nadex|nab|mutuelle|mutual|museum|mtr|mtpc|mtn|msd|movistar|movie|mov|motorcycles|moto|moscow|mortgage|mormon|mopar|montblanc|monster|money|monash|mom|moi|moe|moda|mobily|mobile|mobi|mma|mls|mlb|mitsubishi|mit|mint|mini|mil|microsoft|miami|metlife|merckmsd|meo|menu|men|memorial|meme|melbourne|meet|media|med|mckinsey|mcdonalds|mcd|mba|mattel|maserati|marshalls|marriott|markets|marketing|market|map|mango|management|man|makeup|maison|maif|madrid|macys|luxury|luxe|lupin|lundbeck|ltda|ltd|lplfinancial|lpl|love|lotto|lotte|london|lol|loft|locus|locker|loans|loan|llp|llc|lixil|living|live|lipsy|link|linde|lincoln|limo|limited|lilly|like|lighting|lifestyle|lifeinsurance|life|lidl|liaison|lgbt|lexus|lego|legal|lefrak|leclerc|lease|lds|lawyer|law|latrobe|latino|lat|lasalle|lanxess|landrover|land|lancome|lancia|lancaster|lamer|lamborghini|ladbrokes|lacaixa|kyoto|kuokgroup|kred|krd|kpn|kpmg|kosher|komatsu|koeln|kiwi|kitchen|kindle|kinder|kim|kia|kfh|kerryproperties|kerrylogistics|kerryhotels|kddi|kaufen|juniper|juegos|jprs|jpmorgan|joy|jot|joburg|jobs|jnj|jmp|jll|jlc|jio|jewelry|jetzt|jeep|jcp|jcb|java|jaguar|iwc|iveco|itv|itau|istanbul|ist|ismaili|iselect|irish|ipiranga|investments|intuit|international|intel|int|insure|insurance|institute|ink|ing|info|infiniti|industries|inc|immobilien|immo|imdb|imamat|ikano|iinet|ifm|ieee|icu|ice|icbc|ibm|hyundai|hyatt|hughes|htc|hsbc|how|house|hotmail|hotels|hoteles|hot|hosting|host|hospital|horse|honeywell|honda|homesense|homes|homegoods|homedepot|holiday|holdings|hockey|hkt|hiv|hitachi|hisamitsu|hiphop|hgtv|hermes|here|helsinki|help|healthcare|health|hdfcbank|hdfc|hbo|haus|hangout|hamburg|hair|guru|guitars|guide|guge|gucci|guardian|group|grocery|gripe|green|gratis|graphics|grainger|gov|got|gop|google|goog|goodyear|goodhands|goo|golf|goldpoint|gold|godaddy|gmx|gmo|gmbh|gmail|globo|global|gle|glass|glade|giving|gives|gifts|gift|ggee|george|genting|gent|gea|gdn|gbiz|gay|garden|gap|games|game|gallup|gallo|gallery|gal|fyi|futbol|furniture|fund|fun|fujixerox|fujitsu|ftr|frontier|frontdoor|frogans|frl|fresenius|free|fox|foundation|forum|forsale|forex|ford|football|foodnetwork|food|foo|fly|flsmidth|flowers|florist|flir|flights|flickr|fitness|fit|fishing|fish|firmdale|firestone|fire|financial|finance|final|film|fido|fidelity|fiat|ferrero|ferrari|feedback|fedex|fast|fashion|farmers|farm|fans|fan|family|faith|fairwinds|fail|fage|extraspace|express|exposed|expert|exchange|everbank|events|eus|eurovision|etisalat|esurance|estate|esq|erni|ericsson|equipment|epson|epost|enterprises|engineering|engineer|energy|emerck|email|education|edu|edeka|eco|eat|earth|dvr|dvag|durban|dupont|duns|dunlop|duck|dubai|dtv|drive|download|dot|doosan|domains|doha|dog|dodge|doctor|docs|dnp|diy|dish|discover|discount|directory|direct|digital|diet|diamonds|dhl|dev|design|desi|dentist|dental|democrat|delta|deloitte|dell|delivery|degree|deals|dealer|deal|dds|dclk|day|datsun|dating|date|data|dance|dad|dabur|cyou|cymru|cuisinella|csc|cruises|cruise|crs|crown|cricket|creditunion|creditcard|credit|cpa|courses|coupons|coupon|country|corsica|coop|cool|cookingchannel|cooking|contractors|contact|consulting|construction|condos|comsec|computer|compare|company|community|commbank|comcast|com|cologne|college|coffee|codes|coach|clubmed|club|cloud|clothing|clinique|clinic|click|cleaning|claims|cityeats|city|citic|citi|citadel|cisco|circle|cipriani|church|chrysler|chrome|christmas|chloe|chintai|cheap|chat|chase|charity|channel|chanel|cfd|cfa|cern|ceo|center|ceb|cbs|cbre|cbn|cba|catholic|catering|cat|casino|cash|caseih|case|casa|cartier|cars|careers|career|care|cards|caravan|car|capitalone|capital|capetown|canon|cancerresearch|camp|camera|cam|calvinklein|call|cal|cafe|cab|bzh|buzz|buy|business|builders|build|bugatti|budapest|brussels|brother|broker|broadway|bridgestone|bradesco|box|boutique|bot|boston|bostik|bosch|boots|booking|book|boo|bond|bom|bofa|boehringer|boats|bnpparibas|bnl|bmw|bms|blue|bloomberg|blog|blockbuster|blanco|blackfriday|black|biz|bio|bingo|bing|bike|bid|bible|bharti|bet|bestbuy|best|berlin|bentley|beer|beauty|beats|bcn|bcg|bbva|bbt|bbc|bayern|bauhaus|basketball|baseball|bargains|barefoot|barclays|barclaycard|barcelona|bar|bank|band|bananarepublic|banamex|baidu|baby|azure|axa|aws|avianca|autos|auto|author|auspost|audio|audible|audi|auction|attorney|athleta|associates|asia|asda|arte|art|arpa|army|archi|aramco|arab|aquarelle|apple|app|apartments|aol|anz|anquan|android|analytics|amsterdam|amica|amfam|amex|americanfamily|americanexpress|alstom|alsace|ally|allstate|allfinanz|alipay|alibaba|alfaromeo|akdn|airtel|airforce|airbus|aigo|aig|agency|agakhan|africa|afl|afamilycompany|aetna|aero|aeg|adult|ads|adac|actor|active|aco|accountants|accountant|accenture|academy|abudhabi|abogado|able|abc|abbvie|abbott|abb|abarth|aarp|aaa|onion)(?=[^0-9a-zA-Z@+-]|$))|(?:(?:한국|香港|澳門|新加坡|台灣|台湾|中國|中国|გე|ລາວ|ไทย|ලංකා|ഭാരതം|ಭಾರತ|భారత్|சிங்கப்பூர்|இலங்கை|இந்தியா|ଭାରତ|ભારત|ਭਾਰਤ|ভাৰত|ভারত|বাংলা|भारोत|भारतम्|भारत|ڀارت|پاکستان|موريتانيا|مليسيا|مصر|قطر|فلسطين|عمان|عراق|سورية|سودان|تونس|بھارت|بارت|ایران|امارات|المغرب|السعودية|الجزائر|البحرين|الاردن|հայ|қаз|укр|срб|рф|мон|мкд|ею|бел|бг|ευ|ελ|zw|zm|za|yt|ye|ws|wf|vu|vn|vi|vg|ve|vc|va|uz|uy|us|um|uk|ug|ua|tz|tw|tv|tt|tr|tp|to|tn|tm|tl|tk|tj|th|tg|tf|td|tc|sz|sy|sx|sv|su|st|ss|sr|so|sn|sm|sl|sk|sj|si|sh|sg|se|sd|sc|sb|sa|rw|ru|rs|ro|re|qa|py|pw|pt|ps|pr|pn|pm|pl|pk|ph|pg|pf|pe|pa|om|nz|nu|nr|np|no|nl|ni|ng|nf|ne|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|mn|mm|ml|mk|mh|mg|mf|me|md|mc|ma|ly|lv|lu|lt|ls|lr|lk|li|lc|lb|la|kz|ky|kw|kr|kp|kn|km|ki|kh|kg|ke|jp|jo|jm|je|it|is|ir|iq|io|in|im|il|ie|id|hu|ht|hr|hn|hm|hk|gy|gw|gu|gt|gs|gr|gq|gp|gn|gm|gl|gi|gh|gg|gf|ge|gd|gb|ga|fr|fo|fm|fk|fj|fi|eu|et|es|er|eh|eg|ee|ec|dz|do|dm|dk|dj|de|cz|cy|cx|cw|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|bz|by|bw|bv|bt|bs|br|bq|bo|bn|bm|bl|bj|bi|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ar|aq|ao|an|am|al|ai|ag|af|ae|ad|ac)(?=[^0-9a-zA-Z@+-]|$))|(?:xn--[\\-0-9a-z]+))))(?::([0-9]+))?(\\/(?:(?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*(?:\\((?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+|(?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*\\([a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+\\)[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*))\\)[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*)*[\\+\\-a-z\\u0400-\\u04FF0-9=_#\\/\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]|(?:\\((?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+|(?:[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*\\([a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+\\)[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]*))\\)))|(?:@[a-z\\u0400-\\u04FF0-9!\\*';:=\\+,\\.\\$\\/%#\\[\\]\\-\\u2013_~@\\|&\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\xFF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF]+\\/))*)?(\\?[a-z0-9!?\\*'@\\(\\);:&=\\+\\$\\/%#\\[\\]\\-_\\.,~|]*[a-z0-9\\-_&=#\\/])?))",Cn="gi",ii={source:An,flags:Cn},Ei=new RegExp(ii.source,ii.flags),Sn=/iPad|iPhone|iPod/.test(navigator.userAgent)&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function ni({hidden:n,disabled:t=!1,supportedMimeTypes:s,setMediaAttachments:o}){const r=Sn?s:s?.filter(d=>!/^image\//i.test(d));return e("input",{type:"file",hidden:n,accept:r?.join(","),capture:"environment",disabled:t,onChange:d=>{const c=d.target.files;if(!c)return;const p=Array.from(c)[0];p&&(o(v=>[...v,{file:p,type:p.type,size:p.size,url:URL.createObjectURL(p),id:null,description:null}]),d.target.value=null)}})}const si="capture"in document.createElement("input");function Ln({maxCharacters:n=500,hidden:t}){const o=gi(ee).composerCharacterCount,r=n-o;return t?e("span",{class:"char-counter",hidden:!0}):e("span",{class:"char-counter",title:`${r}/${n}`,style:{"--percentage":o/n*100},children:[e("meter",{class:`${r<=-10?"explode":r<=0?"danger":r<=20?"warning":""}`,value:o,max:n}),e("span",{class:"counter",children:r})]})}class zn{constructor(t,s,{tabInsertsSuggestions:o,defaultFirstOption:r}={}){this.input=t,this.list=s,this.tabInsertsSuggestions=o??!0,this.defaultFirstOption=r??!1,this.isComposing=!1,s.id||(s.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=d=>_n(d,this),this.compositionEventHandler=d=>In(d,this),this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",s.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",ai),this.indicateDefaultOption()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",ai)}indicateDefaultOption(){var t;this.defaultFirstOption&&((t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(xt)[0])===null||t===void 0||t.setAttribute("data-combobox-option-default","true"))}navigate(t=1){const s=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(xt)[0],o=Array.from(this.list.querySelectorAll('[role="option"]')).filter(xt),r=o.indexOf(s);if(r===o.length-1&&t===1||r===0&&t===-1){this.clearSelection(),this.input.focus();return}let d=t===1?0:o.length-1;if(s&&r>=0){const p=r+t;p>=0&&p<o.length&&(d=p)}const c=o[d];if(c)for(const p of o)p.removeAttribute("data-combobox-option-default"),c===p?(this.input.setAttribute("aria-activedescendant",c.id),c.setAttribute("aria-selected","true"),Mn(this.list,c)):p.removeAttribute("aria-selected")}clearSelection(){this.input.removeAttribute("aria-activedescendant");for(const t of this.list.querySelectorAll('[aria-selected="true"]'))t.removeAttribute("aria-selected");this.indicateDefaultOption()}}function _n(n,t){if(!(n.shiftKey||n.metaKey||n.altKey)&&!(!t.ctrlBindings&&n.ctrlKey)&&!t.isComposing)switch(n.key){case"Enter":oi(t.input,t.list)&&n.preventDefault();break;case"Tab":t.tabInsertsSuggestions&&oi(t.input,t.list)&&n.preventDefault();break;case"Escape":t.clearSelection();break;case"ArrowDown":t.navigate(1),n.preventDefault();break;case"ArrowUp":t.navigate(-1),n.preventDefault();break;case"n":t.ctrlBindings&&n.ctrlKey&&(t.navigate(1),n.preventDefault());break;case"p":t.ctrlBindings&&n.ctrlKey&&(t.navigate(-1),n.preventDefault());break;default:if(n.ctrlKey)break;t.clearSelection()}}function ai(n){if(!(n.target instanceof Element))return;const t=n.target.closest('[role="option"]');t&&t.getAttribute("aria-disabled")!=="true"&&Tn(t)}function oi(n,t){const s=t.querySelector('[aria-selected="true"], [data-combobox-option-default="true"]');return s?(s.getAttribute("aria-disabled")==="true"||s.click(),!0):!1}function Tn(n){n.dispatchEvent(new CustomEvent("combobox-commit",{bubbles:!0}))}function xt(n){return!n.hidden&&!(n instanceof HTMLInputElement&&n.type==="hidden")&&(n.offsetWidth>0||n.offsetHeight>0)}function In(n,t){t.isComposing=n.type==="compositionstart",document.getElementById(t.input.getAttribute("aria-controls")||"")&&t.clearSelection()}function Mn(n,t){Pn(n,t)||(n.scrollTop=t.offsetTop)}function Pn(n,t){const s=n.scrollTop,o=s+n.clientHeight,r=t.offsetTop,d=r+t.clientHeight;return r>=s&&d<=o}const Bn=/\s|\(|\[/;function Dn(n,t,s,{multiWord:o,lookBackIndex:r,lastMatchPosition:d}={multiWord:!1,lookBackIndex:0,lastMatchPosition:null}){let c=n.lastIndexOf(t,s-1);if(c===-1||c<r)return;if(o){if(d!=null){if(d===c)return;c=d-t.length}if(n[c+1]===" "&&s>=c+t.length+1||n.lastIndexOf(`
`,s-1)>c||n.lastIndexOf(".",s-1)>c)return}else if(n.lastIndexOf(" ",s-1)>c)return;const p=n[c-1];return p&&!Bn.test(p)?void 0:{text:n.substring(c+t.length,s),position:c+t.length}}class Rn extends Event{constructor(){super("update")}}const wt=new WeakMap;class Lt extends EventTarget{#t=new MutationObserver(()=>this.#h());#s=new ResizeObserver(()=>this.#d());#a;#i=document.createElement("div");#e=document.createElement("div");static for(t){let s=wt.get(t);return s||(s=new Lt(t),wt.set(t,s)),s}constructor(t){super(),this.#a=new WeakRef(t),this.#i.style.position="absolute",this.#i.style.pointerEvents="none",this.#i.setAttribute("aria-hidden","true"),this.#i.appendChild(this.#e),this.#e.style.pointerEvents="none",this.#e.style.userSelect="none",this.#e.style.overflow="hidden",this.#e.style.display="block",this.#e.style.visibility="hidden",t instanceof HTMLTextAreaElement?(this.#e.style.whiteSpace="pre-wrap",this.#e.style.wordWrap="break-word"):(this.#e.style.whiteSpace="nowrap",this.#e.style.display="table-cell",this.#e.style.verticalAlign="middle"),t.after(this.#i),this.#h(),this.#p(),this.#t.observe(t,{attributeFilter:["style","dir"]}),this.#s.observe(t),document.addEventListener("scroll",this.#r,{capture:!0}),window.addEventListener("resize",this.#r,{capture:!0}),t.addEventListener("input",this.#f,{capture:!0})}get element(){return this.#e}forceUpdate(){this.#h(),this.#p()}disconnect(){this.#i?.remove(),this.#t.disconnect(),this.#s.disconnect(),document.removeEventListener("scroll",this.#r,{capture:!0}),window.removeEventListener("resize",this.#r,{capture:!0});const t=this.#o;t&&(t.removeEventListener("input",this.#f,{capture:!0}),wt.delete(t))}get#o(){return this.#a?.deref()}#n(t){const s=this.#o;return s?t(s):this.disconnect()}#l=0;#c=0;#m(){this.#n(t=>{const s=window.getComputedStyle(t);this.#e.style.height=s.height,this.#e.style.width=s.width,t.clientHeight!==this.#e.clientHeight&&(this.#e.style.height=`calc(${s.height} + ${t.clientHeight-this.#e.clientHeight}px)`),t.clientWidth!==this.#e.clientWidth&&(this.#e.style.width=`calc(${s.width} + ${t.clientWidth-this.#e.clientWidth}px)`);const o=t.getBoundingClientRect(),r=this.#e.getBoundingClientRect();this.#l=this.#l+o.left-r.left,this.#c=this.#c+o.top-r.top,this.#e.style.transform=`translate(${this.#l}px, ${this.#c}px)`,this.#e.scrollTop=t.scrollTop,this.#e.scrollLeft=t.scrollLeft,this.dispatchEvent(new Rn)})}#u=!1;#d(){this.#u||(this.#u=!0,requestAnimationFrame(()=>{this.#m(),this.#u=!1}))}#h(){this.#n(t=>{const s=window.getComputedStyle(t);for(const o of jn)this.#e.style[o]=s[o];this.#d()})}#p(){this.#n(t=>{this.#e.textContent=t.value,this.#m()})}#f=()=>this.#p();#r=t=>{this.#n(s=>{(t.target===document||t.target===window||t.target instanceof Node&&t.target.contains(s))&&this.#d()})}}const jn=["direction","writingMode","unicodeBidi","textOrientation","boxSizing","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];class ot{#t;#s;#a;constructor(t,s=0,o=s){this.#t=t,this.#s=s,this.#a=o}static fromSelection(t){const{selectionStart:s,selectionEnd:o}=t;return new ot(t,s??void 0,o??void 0)}get collapsed(){return this.startOffset===this.endOffset}get commonAncestorContainer(){return this.#t}get endContainer(){return this.#t}get startContainer(){return this.#t}get startOffset(){return this.#s}get endOffset(){return this.#a}setStartOffset(t){this.#s=this.#o(t)}setEndOffset(t){this.#a=this.#o(t)}collapse(t=!1){t?this.setEndOffset(this.startOffset):this.setStartOffset(this.endOffset)}cloneContents(){return this.#n().cloneContents()}cloneRange(){return new ot(this.#t,this.startOffset,this.endOffset)}getBoundingClientRect(){return this.#n().getBoundingClientRect()}getClientRects(){return this.#n().getClientRects()}toString(){return this.#n().toString()}getStyleClone(){return this.#i}get#i(){return Lt.for(this.#t)}get#e(){return this.#i}#o(t){return Math.max(0,Math.min(t,this.#t.value.length))}#n(){const t=document.createRange(),s=this.#e.element.childNodes[0];return s&&(t.setStart(s,this.startOffset),t.setEnd(s,this.endOffset)),t}}const nt=new WeakMap;let $n=class{constructor(t,s){this.expander=t,this.input=s,this.combobox=null,this.menu=null,this.match=null,this.justPasted=!1,this.lookBackIndex=0,this.oninput=this.onInput.bind(this),this.onpaste=this.onPaste.bind(this),this.onkeydown=this.onKeydown.bind(this),this.oncommit=this.onCommit.bind(this),this.onmousedown=this.onMousedown.bind(this),this.onblur=this.onBlur.bind(this),this.interactingWithList=!1,s.addEventListener("paste",this.onpaste),s.addEventListener("input",this.oninput),s.addEventListener("keydown",this.onkeydown),s.addEventListener("blur",this.onblur)}destroy(){this.input.removeEventListener("paste",this.onpaste),this.input.removeEventListener("input",this.oninput),this.input.removeEventListener("keydown",this.onkeydown),this.input.removeEventListener("blur",this.onblur)}dismissMenu(){this.deactivate()&&(this.lookBackIndex=this.input.selectionEnd||this.lookBackIndex)}activate(t,s){var o,r;this.input!==document.activeElement&&this.input!==((r=(o=document.activeElement)===null||o===void 0?void 0:o.shadowRoot)===null||r===void 0?void 0:r.activeElement)||(this.deactivate(),this.menu=s,s.id||(s.id=`text-expander-${Math.floor(Math.random()*1e5).toString()}`),this.expander.append(s),this.combobox=new zn(this.input,s),this.expander.dispatchEvent(new Event("text-expander-activate")),this.positionMenu(s,t.position),this.combobox.start(),s.addEventListener("combobox-commit",this.oncommit),s.addEventListener("mousedown",this.onmousedown),this.combobox.navigate(1))}positionMenu(t,s){const o=new ot(this.input,s).getBoundingClientRect(),r={left:o.left,top:o.top+o.height},d=t.getBoundingClientRect(),c={left:r.left-d.left,top:r.top-d.top};if(c.left!==0||c.top!==0){const p=getComputedStyle(t);t.style.left=p.left?`calc(${p.left} + ${c.left}px)`:`${c.left}px`,t.style.top=p.top?`calc(${p.top} + ${c.top}px)`:`${c.top}px`}}deactivate(){const t=this.menu;return!t||!this.combobox?!1:(this.expander.dispatchEvent(new Event("text-expander-deactivate")),this.menu=null,t.removeEventListener("combobox-commit",this.oncommit),t.removeEventListener("mousedown",this.onmousedown),this.combobox.destroy(),this.combobox=null,t.remove(),!0)}onCommit({target:t}){var s;const o=t;if(!(o instanceof HTMLElement)||!this.combobox)return;const r=this.match;if(!r)return;const d=this.input.value.substring(0,r.position-r.key.length),c=this.input.value.substring(r.position+r.text.length),p={item:o,key:r.key,value:null,continue:!1};if(!this.expander.dispatchEvent(new CustomEvent("text-expander-value",{cancelable:!0,detail:p}))||!p.value)return;let u=(s=this.expander.getAttribute("suffix"))!==null&&s!==void 0?s:" ";p.continue&&(u="");const m=`${p.value}${u}`;this.input.value=d+m+c;const O=d.length+m.length;this.deactivate(),this.input.focus({preventScroll:!0}),this.input.selectionStart=O,this.input.selectionEnd=O,p.continue||(this.lookBackIndex=O,this.match=null),this.expander.dispatchEvent(new CustomEvent("text-expander-committed",{cancelable:!1,detail:{input:this.input}}))}onBlur(){if(this.interactingWithList){this.interactingWithList=!1;return}this.deactivate()}onPaste(){this.justPasted=!0}async onInput(){if(this.justPasted){this.justPasted=!1;return}const t=this.findMatch();if(t){this.match=t;const s=await this.notifyProviders(t);if(!this.match)return;s?this.activate(t,s):this.deactivate()}else this.match=null,this.deactivate()}findMatch(){const t=this.input.selectionEnd||0,s=this.input.value;t<=this.lookBackIndex&&(this.lookBackIndex=t-1);for(const{key:o,multiWord:r}of this.expander.keys){const d=Dn(s,o,t,{multiWord:r,lookBackIndex:this.lookBackIndex,lastMatchPosition:this.match?this.match.position:null});if(d)return{text:d.text,key:o,position:d.position}}}async notifyProviders(t){const s=[],o=v=>s.push(v),r=new CustomEvent("text-expander-change",{cancelable:!0,detail:{provide:o,text:t.text,key:t.key}});return this.expander.dispatchEvent(r)?(await Promise.all(s)).filter(v=>v.matched).map(v=>v.fragment)[0]:void 0}onMousedown(){this.interactingWithList=!0}onKeydown(t){t.key==="Escape"&&(this.match=null,this.deactivate()&&(this.lookBackIndex=this.input.selectionEnd||this.lookBackIndex,t.stopImmediatePropagation(),t.preventDefault()))}};class ri extends HTMLElement{get keys(){const t=this.getAttribute("keys"),s=t?t.split(" "):[],o=this.getAttribute("multiword"),r=o?o.split(" "):[],d=r.length===0&&this.hasAttribute("multiword");return s.map(c=>({key:c,multiWord:d||r.includes(c)}))}set keys(t){this.setAttribute("keys",t)}connectedCallback(){const t=this.querySelector('input[type="text"], textarea');if(!(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement))return;const s=new $n(this,t);nt.set(this,s)}disconnectedCallback(){const t=nt.get(this);t&&(t.destroy(),nt.delete(this))}dismiss(){const t=nt.get(this);t&&t.dismissMenu()}}window.customElements.get("text-expander")||(window.TextExpanderElement=ri,window.customElements.define("text-expander",ri));async function On(n,t){const o=(await t.v1.customEmojis.list()).filter(d=>d.visibleInPicker),r=new sn(o,{keys:["shortcode"],findAllMatches:!0});return[o,r]}const Fi=Ui(On,{matchesArg:(n,t)=>n.instance===t.instance,maxAge:30*60*1e3}),Te=document.createElement("ul");Te.role="listbox";Te.className="text-expander-menu";const Nn=16,Kn=new IntersectionObserver(n=>{n.forEach(t=>{if(t.isIntersecting){const{left:s,width:o}=t.boundingClientRect,{innerWidth:r}=window;if(s+o>r){const d=an()?"right":"left";Te.style[d]=r-o-Nn+"px"}}})});Kn.observe(Te);function ze(n){return n.replace(/[&<>"']/g,function(t){return"&#"+t.charCodeAt(0)+";"})}function Hn({onTrigger:n=null,...t},s){const{_:o}=Ie(),r=j(),{masto:d,instance:c}=Ct(),p=j(),v=j(""),u=j(!1);return Vi(s,()=>({setStyle:m=>{r.current&&Object.assign(r.current.style,m)},activated:()=>u.current})),J(()=>{p.current||Fi(c,d).then(([,m])=>{p.current=m}).catch(m=>{})},[c,d]),J(()=>{const m=r.current;if(!m)return;const O=F=>{const{key:L,provide:K,text:h}=F.detail;if(v.current=h,h===""){K(Promise.resolve({matched:!1}));return}if(L===":"){const Y=!!n,N=p.current?.search(h,{limit:5});let U="";N?.forEach(({item:x})=>{const{shortcode:A,url:$}=x;U+=`
<li role="option" data-value="${ze(A)}">
<img src="${ze($)}" width="16" height="16" alt="" loading="lazy" />
${ze(A)}
</li>`}),Y&&(U+=`<li role="option" data-value="" data-more="${h}">More…</li>`),Te.innerHTML=U,K(Promise.resolve({matched:(N?.length||0)>0,fragment:Te}));return}const M={"@":"accounts","":"accounts","#":"hashtags","":"hashtags"}[L];if(M){K(new Promise(async Y=>{try{let N;if(M==="accounts")N=await d.v1.accounts.search.list({q:h,limit:5,resolve:!1});else{const A=await d.v2.search.list({type:M,q:h,limit:5});N=A[M]||A}if(h!==v.current)return;const U=N;let x="";U.forEach(A=>{const{name:$,avatarStatic:V,displayName:le,username:fe,acct:ae,emojis:H,history:Ee,roles:Fe,url:ge}=A,ve=on(le,H),z=Wi(ge);if(ae)x+=`
<li role="option" data-value="${ze(ae)}">
<span class="avatar">
<img src="${ze(V)}" width="16" height="16" alt="" loading="lazy" />
</span>
<span>
<b>${ve||fe}</b>
<br><span class="bidi-isolate">@${ze(ae)}</span>
${Fe?.map(Q=>` <span class="tag collapsed">
${Q.name}
${!!z&&`<span class="more-insignificant">
${z}
</span>`}
</span>`)||""}
</span>
</li>
`;else{const Q=Ee?.reduce?.((X,de)=>X+ +de.uses,0);x+=`
<li role="option" data-value="${ze($)}">
<span class="grow">#<b>${ze($)}</b></span>
${Q?`<span class="count">${rn(Q)}</span>`:""}
</li>
`}}),M==="accounts"&&(x+=`<li role="option" data-value="" data-more="${h}">${o({id:"24misb"})}</li>`),Te.innerHTML=x,Y({matched:U.length>0,fragment:Te})}catch{Y({matched:!1})}}));return}K(Promise.resolve({matched:!1}))},y=F=>{const{key:L,item:K}=F.detail,{value:h,more:M}=K.dataset;L===":"?(F.detail.value=h?`:${h}:`:"",M&&(F.detail.continue=!0,setTimeout(()=>{n?.({name:"custom-emojis",defaultSearchTerm:M})},300))):L==="@"?(F.detail.value=h?`@${h}`:"",M&&(F.detail.continue=!0,setTimeout(()=>{n?.({name:"mention",defaultSearchTerm:M})},300))):F.detail.value=`${L}${h}`},E=F=>{const{input:L}=F.detail;if(L){const K=new Event("input",{bubbles:!0});L.dispatchEvent(K)}},b=()=>{u.current=!0},w=()=>{u.current=!1};return m.addEventListener("text-expander-change",O),m.addEventListener("text-expander-value",y),m.addEventListener("text-expander-committed",E),m.addEventListener("text-expander-activate",b),m.addEventListener("text-expander-deactivate",w),()=>{m.removeEventListener("text-expander-change",O),m.removeEventListener("text-expander-value",y),m.removeEventListener("text-expander-committed",E),m.removeEventListener("text-expander-activate",b),m.removeEventListener("text-expander-deactivate",w)}},[p.current,n,o,d]),e("text-expander",{ref:r,...t})}const zt=vi(Hn),Ai={300:Me(5,"minute"),1800:Me(30,"minute"),3600:Me(1,"hour"),21600:Me(6,"hour"),86400:Me(1,"day"),259200:Me(3,"day"),604800:Me(1,"week")};function qn({lang:n,poll:t,disabled:s,onInput:o=()=>{},maxOptions:r,maxExpiration:d,minExpiration:c,maxCharactersPerOption:p}){const{_:v}=Ie(),{options:u,expiresIn:m,multiple:O}=t;return e("div",{class:`poll ${O?"multiple":""}`,children:[e("div",{class:"poll-choices",children:u.map((y,E)=>e("div",{class:"poll-choice",children:[e(zt,{keys:":",class:"poll-field-container",children:e("input",{required:!0,type:"text",value:y,disabled:s,maxlength:p,placeholder:v({id:"LDUSXg",values:{0:E+1}}),lang:n,spellCheck:"true",autocomplete:"off",dir:"auto","data-allow-custom-emoji":"true",onInput:b=>{const{value:w}=b.target;u[E]=w,o(t)}})}),e("button",{type:"button",class:"plain4 poll-button",disabled:s||u.length<=1,onClick:()=>{u.splice(E,1),o(t)},title:v({id:"t/YqKh"}),children:""})]},E))}),e("div",{class:"poll-toolbar",children:[e("button",{type:"button",class:"plain2 poll-button",disabled:s||u.length>=r,onClick:()=>{u.push(""),o(t)},title:v({id:"m16xKo"}),children:"+"})," ",e("div",{class:"poll-config",children:[e("label",{class:"multiple-choices",children:[e("input",{type:"checkbox",checked:O,disabled:s,onChange:y=>{const{checked:E}=y.target;t.multiple=E,o(t)}})," ",e(B,{id:"zytZXj"})]}),e("label",{class:"expires-in",children:[e(B,{id:"lkz6PL"})," ",e("select",{value:m,disabled:s,onChange:y=>{const{value:E}=y.target;t.expiresIn=E,o(t)},children:Object.entries(Ai).filter(([y])=>y>=c&&y<=d).map(([y,E])=>e("option",{value:y,children:E()},y))})]}),e("div",{class:"spacer"}),e("button",{type:"button",class:"light danger small",disabled:s,onClick:()=>{o(null)},children:e(B,{id:"CDpQAX"})})]})]})]})}const Un=/[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?/i,Vn=new RegExp(`(^|[^=\\/\\w])([@]${Un.source}(?:@[\\p{L}\\w.-]+[\\w]+)?)`,"uig"),Wn=new RegExp("(^|[^=\\/\\w])([#][\\p{L}\\p{N}_]+([\\p{L}\\p{N}_.]+[\\p{L}\\p{N}_]+)?)(?![\\/\\w])","iug"),Gn="[a-zA-Z0-9_]{2,}",Yn=new RegExp(`(^|[^=\\/\\w])(:${Gn}:)(?=[^A-Za-z0-9_:]|$)`,"g"),Zn=new Intl.Segmenter;function Qn(n,{maxCharacters:t=1/0}){const{composerCharacterCount:s}=ee;if(s>t){let o="",r="";const d=Zn.segment(n);for(const{segment:c,index:p}of d)p<t?o+=c:r+=c;return r&&(r='<mark class="compose-highlight-exceeded">'+bt(r)+"</mark>"),bt(o)+r}return bt(n).replace(Ei,'$2<mark class="compose-highlight-url">$3</mark>').replace(Vn,'$1<mark class="compose-highlight-mention">$2</mark>').replace(Wn,'$1<mark class="compose-highlight-hashtag">$2</mark>').replace(Yn,'$1<mark class="compose-highlight-emoji-shortcode">$2</mark>')}function li(n){if(!n)return;const{value:t,offsetHeight:s,scrollHeight:o,clientHeight:r}=n;if(s<window.innerHeight){const d=s-r,c=t?o+d+"px":null;n.style.height=c}}const Xn=async n=>{if(Xt){const o=await Xt.detect(n);if(o?.length)return o.slice(0,2).map(r=>r.detectedLanguage)}const{detectAll:t}=await Gi(async()=>{const{detectAll:o}=await import("./tinyld.light.node-D9KYf3Y3.js");return{detectAll:o}},[],import.meta.url),s=t(n);return s?.length?s.slice(0,2).map(o=>o.lang):null},Jn=vi((n,t)=>{const[s,o]=P(t.current?.value||""),{maxCharacters:r,onTrigger:d=null,...c}=n,p=j();xi({ref:t,onResize:()=>{if(p.current&&t.current){const{height:y}=t.current.getBoundingClientRect();y&&p.current.setStyle({minHeight:y+"px"})}}});const v=j(0),u=j(),m=ln(y=>{if(!u.current)return;if(v.current>3){u.current.innerHTML="",u.current=null,m?.cancel?.();return}let E,b;v.current<=3&&(E=Date.now()),u.current.innerHTML=Qn(y,{maxCharacters:r})+`
`,v.current<=3&&(b=Date.now()),E&&b&&b-E>50&&v.current++},500),O=lt(()=>{const y=u.current?.cloneNode(!0);if(!y)return;y.querySelectorAll("mark").forEach(b=>{b.remove()});const E=y.innerText?.trim();E&&(async()=>{const b=await Xn(E);b?.length&&d?.({name:"auto-detect-language",languages:b})})()},2e3);return e(zt,{ref:p,keys:"@ : # ",class:"compose-field-container",onTrigger:d,children:[e("textarea",{class:"compose-field",autoCapitalize:"sentences",autoComplete:"on",autoCorrect:"on",spellCheck:"true",dir:"auto",rows:"6",cols:"50",...c,ref:t,name:"status",value:s,onKeyDown:y=>{const{key:E,target:b}=y,w=p.current?.activated();if(E==="Enter"&&!(y.ctrlKey||y.metaKey||w)&&!y.isComposing)try{const{value:F,selectionStart:L}=b,h=F.slice(0,L).split(`
`).slice(-1)[0];if(h&&/^\s*(-|\d+\.)\s/.test(h)){const[M,Y,N,U,x]=h.match(/^(\s*)(-|\d+\.)(\s+)(.+)?/)||[];if(x){y.preventDefault();const[A]=N.match(/\d+/)||[],$=A?`${+A+1}.`:"-",V=`
${Y}${$}${U}`;b.setRangeText(V,L,L);const le=L+V.length;b.setSelectionRange(le,le)}else{const A=L-h.length;b.setRangeText("",A,L)}li(b),b.dispatchEvent(new Event("input"))}}catch{}u.current&&(u.current.scrollTop=b.scrollTop)},onInput:y=>{const{target:E}=y,b=E.value;o(b),li(E),n.onInput?.(y),m(b),O()},onScroll:y=>{if(u.current){const{scrollTop:E}=y.target;u.current.scrollTop=E}},onPaste:y=>{try{const E=y.clipboardData.getData("text").trim();E&&d?.({name:"pasted-link",url:E})}catch{}}}),e("div",{ref:u,class:"compose-highlight","aria-hidden":"true"})]})}),At=100,qe=1,ci=2,ui=.5,Ci=bi(({emoji:n,onClick:t,showCode:s})=>{const o=r=>{const c=r.currentTarget.closest("main");if(c){const p=c.getBoundingClientRect(),v=r.currentTarget.getBoundingClientRect(),u=r.currentTarget.classList;v.left<p.left+88?(u.add("edge-left"),u.remove("edge-right")):v.right>p.right-88?(u.add("edge-right"),u.remove("edge-left")):u.remove("edge-left","edge-right")}};return e("button",{type:"button",className:"plain4",onClick:t,"data-title":s?void 0:n.shortcode,onPointerEnter:o,onFocus:o,children:[e("picture",{children:[!!n.staticUrl&&e("source",{srcSet:n.staticUrl,media:"(prefers-reduced-motion: reduce)"}),e("img",{className:"shortcode-emoji",src:n.url||n.staticUrl,alt:n.shortcode,width:"24",height:"24",loading:"lazy",decoding:"async"})]}),s&&e($e,{children:[" ",e("code",{children:n.shortcode})]})]})}),es=bi(({emojis:n,onSelect:t})=>{const{i18n:s}=Ie(),[o,r]=P(At),d=n.length>o;return e("section",{children:[n.slice(0,o).map(c=>e(Ci,{emoji:c,onClick:()=>{t(`:${c.shortcode}:`)}},c.shortcode)),d&&e("button",{type:"button",class:"plain small",onClick:()=>r(o+At),children:e(B,{id:"iAB71E",values:{0:s.number(n.length-o)}})})]})}),Ue="composer-customEmojiSize";function ts({masto:n,instance:t,onClose:s=()=>{},onSelect:o=()=>{},defaultSearchTerm:r}){const{_:d}=Ie(),[c,p]=P("default"),v=j([]),[u,m]=P([]),O=je(()=>me.account.get("recentlyUsedCustomEmojis")||[]),y=j();J(()=>{p("loading"),(async()=>{try{const[x,A]=await Fi(t,n);y.current=A,m(x),p("default")}catch{p("error")}})()},[]);const E=je(()=>{const x={"--recent--":O.filter($=>u.find(V=>V.shortcode===$.shortcode))},A=[];return u.forEach($=>{if(v.current?.push?.($),!$.category){A.push($);return}x[$.category]||(x[$.category]=[]),x[$.category].push($)}),A.length&&(x["--others--"]=A),x},[u]),b=j(),[w,F]=P(null),[L,K]=P(me.local.get(Ue)||qe),h=tt(()=>{const x=Math.max(qe,L-ui);K(x),x===qe?me.local.del(Ue):me.local.set(Ue,x)},[L]),M=tt(()=>{const x=Math.min(ci,L+ui);K(x),x===qe?me.local.del(Ue):me.local.set(Ue,x)},[L]),Y=tt(x=>{const{value:A}=x.target;if(A){const $=y.current?.search(A,{limit:At});F($.map(V=>V.item)),b.current?.scrollTo?.(0,0)}else F(null)},[u]);J(()=>{r&&u?.length&&Y({target:{value:r}})},[r,Y,u]);const N=tt(x=>{o?.(x),s?.(),queueMicrotask(()=>{let A=me.account.get("recentlyUsedCustomEmojis")||[];const $=A.findIndex(V=>V.shortcode===x.shortcode);$!==-1?(A.splice($,1),A.unshift(x)):(A.unshift(x),A=A.filter(V=>v.current?.find?.(le=>le.shortcode===V.shortcode)),A=A.slice(0,10)),me.account.set("recentlyUsedCustomEmojis",A)})},[o]),U=j();return J(()=>{U.current&&(U.current.focus(),U.current.value&&(U.current.selectionStart=U.current.value.length,U.current.selectionEnd=U.current.value.length))},[]),e("div",{id:"custom-emojis-sheet",class:"sheet",style:{"--custom-emoji-size":L},children:[!!s&&e("button",{type:"button",class:"sheet-close",onClick:s,children:e(_,{icon:"x",alt:d({id:"yz7wBu"})})}),e("header",{children:[e("div",{children:[e("b",{children:e(B,{id:"8i6Ueo"})})," ",c==="loading"?e(rt,{}):e("small",{class:"insignificant",children:[" • ",t]})]}),e("form",{onSubmit:x=>{x.preventDefault();const A=w[0];A&&N(`:${A.shortcode}:`)},children:e("input",{ref:U,type:"search",placeholder:d({id:"EarrCe"}),onInput:Y,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellCheck:"false",dir:"auto",defaultValue:r||""})})]}),e("main",{ref:b,children:[w!==null?e("ul",{class:"custom-emojis-matches custom-emojis-list",children:w.map(x=>e("li",{class:"custom-emojis-match",children:e(Ci,{emoji:x,onClick:()=>{N(`:${x.shortcode}:`)},showCode:!0})},x.shortcode))}):e("div",{class:"custom-emojis-list",children:[c==="error"&&e("div",{class:"ui-state",children:e("p",{children:e(B,{id:"Kzwsg2"})})}),c==="default"&&Object.entries(E).map(([x,A])=>!!A?.length&&e("div",{class:"section-container",children:[e("div",{class:"section-header",children:{"--recent--":d({id:"uabU9X"}),"--others--":d({id:"NuKR0h"})}[x]||x}),e(es,{emojis:A,onSelect:N})]}))]}),e("div",{class:"size-range",children:[e("button",{type:"button",class:"plain4",onClick:h,disabled:L<=qe,children:e(_,{icon:"zoom-out",size:"l",alt:d({id:"FjkaiT"})})}),e("button",{type:"button",class:"plain4",onClick:M,disabled:L>=ci,children:e(_,{icon:"zoom-in",size:"l",alt:d({id:"AWOSPo"})})})]})]})]})}function di({hidden:n,supportedMimeTypes:t,maxMediaAttachments:s,mediaAttachments:o,disabled:r=!1,setMediaAttachments:d}){return e("input",{type:"file",hidden:n,accept:t?.join(","),multiple:s===void 0||s-o>=2,disabled:r,onChange:c=>{const p=c.target.files;if(!p)return;const v=Array.from(p).map(u=>({file:u,type:u.type,size:u.size,url:URL.createObjectURL(u),id:null,description:null}));o.length+v.length>s?alert(Ve._({id:"ctFhjs",values:{maxMediaAttachments:s}})):d(u=>u.concat(v)),c.target.value=""}})}const is="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20version='1.0'%20viewBox='0%200%20641%20223'%3e%3cpath%20fill='%23aaa'%20d='M86%20214c-9-1-17-4-24-8l-6-3-5-5-5-4-4-6-4-6-3-8-2-8v-27l2-9%203-9%204-6%204-6%205-5%205-5%207-3%206-4%207-2%207-2%2012-1h12l7%201%208%202%207%204%207%203%205%205%205%204-10%2010-10%209-4-3-10-5-5-1H88l-5%202-6%203-3%204-4%204-2%205-2%206v6l-1%207%201%207%202%207%203%205%202%204%204%203%204%203%205%202%206%202h9l10-1%205-2%206-3v-16H91v-27h59v54l-1%203-2%203-5%204-4%204-5%203-5%202-8%202-8%202-10%201H92l-6-1zm266-62V91h34v46h44V91h34v121h-34v-46h-44v46h-34v-61zm-182-1V90h34v121h-34v-60zm59-1V90h35l36%201%205%202c3%200%208%202%2010%204l5%202%204%205%205%204%203%207%203%207%201%2013v13l-4%206-3%207-4%204-5%205-5%202-5%203-6%202-5%201-18%201h-18v32h-34v-61zm67-2%203-2%202-4%202-5v-5l-2-4-2-4-3-2-3-3h-30v31h30l3-2zm226%2039v-24l-8-12-18-28a1751%201751%200%200%200-20-31v-2h39l7%2012%2012%2021%206%209%2013-21%2013-21h38v2l-41%2061-7%2010v48h-34v-24zM109%2066l-4-1-5-5-5-4-1-5-3-9v-5l1-5c2-7%203-10%208-15l4-4%207-2%207-2h7l6%201%205%202%205%202%203%204%204%203%202%206%202%205v13l-2%205-2%206-4%204-3%203-5%202-4%202-9%201h-9l-5-2zm22-11%204-2%203-4%202-5V34l-2-4-2-4-3-2-4-3-5-1h-6l-4%202-5%202-2%204-3%205-1%203v4l1%205%202%205%202%202%205%203%204%202h10l4-2zM37%2039V11h33l3%201%203%202%204%203%203%203%201%205%201%204v5l-1%204-3%204-3%205-4%201-3%202-11%201H49v16H37V39zm31%200%203-2%201-2%201-2v-4l-1-3-3-2-2-2H49v18h15l4-1zm107%2025a512%20512%200%200%200-19-53h14l4%2014%206%2019%201%204%201-1%207-19%205-17h9l6%2019%207%2018v-1l2-6%205-17%204-13h14v1l-4%2012-16%2041v2h-5l-5-1-6-15-6-15-1%201-3%207-6%2015-2%208h-11l-1-3zm74-25V11h42v11h-29v2l-1%205v4h29v11h-28v11h2l15%201h13v11h-43V39zm55%200V11h33l5%203%205%202%202%204%202%205v10l-2%203-1%204-5%203-5%203%205%205%208%2010%203%204h-14l-7-9-8-10h-9v19h-12V39zm33-3%202-3v-6l-3-3-2-3h-18v16h1v1h17l2-2zm26%203V11h42v11h-29l-1%206v5h29v11h-28v5l-1%205%201%201v1h30v11h-43V39zm54%200V11h17l18%201%204%202%205%203%202%204%203%204%202%206%201%206v5c-1%206-3%2012-6%2015l-3%204-5%203-5%202-17%201h-16V39zm33%2014%205-5%202-3v-6l-1-6-1-3-1-3-4-3-3-2h-5l-6-1-3%201h-3v34h9l8-1%203-2zm50-14V11h34l5%202%204%202%202%203%202%203v9l-2%202-3%204-1%201%203%203%203%204%201%203%201%204-1%204-1%204-3%203-3%203-5%201-5%201h-31V39zm34%2015%202-1v-6l-2-2-2-2h-20v13h20l2-2zm-3-22%204-2v-6l-2-1-2-2h-19v12h16l4-1zm42%2024V45l-6-9-11-17-5-8h15l4%208%207%2011%202%203%207-11%207-11h14l-11%2016-11%2017v23h-12V56z'/%3e%3c/svg%3e",ns={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_TRANSLANG_INSTANCES:"translang.phanpy.social",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"},{PHANPY_GIPHY_API_KEY:ss}=ns,kt=20;function as({onClose:n=()=>{},onSelect:t=()=>{}}){const{i18n:s,_:o}=Ie(),[r,d]=P("default"),[c,p]=P([]),v=j(null),u=j(null),m=j(0),O=j(null);function y({offset:b}){u.current?.value&&(d("loading"),O.current?.scrollTo?.({top:0,left:0,behavior:"smooth"}),(async()=>{try{const w={api_key:ss,q:u.current.value,rating:"g",limit:kt,bundle:"messaging_non_clips",offset:b,lang:s.locale||"en"},F=await fetch("https://api.giphy.com/v1/gifs/search?"+new URLSearchParams(w),{referrerPolicy:"no-referrer"}).then(L=>L.json());m.current=F.pagination?.offset||0,p(F),d("results")}catch{d("error")}})())}J(()=>{u.current?.focus()},[]);const E=lt(()=>{y({offset:0})},1e3);return e("div",{id:"gif-picker-sheet",class:"sheet",children:[!!n&&e("button",{type:"button",class:"sheet-close",onClick:n,children:e(_,{icon:"x",alt:o({id:"yz7wBu"})})}),e("header",{children:e("form",{ref:v,onSubmit:b=>{b.preventDefault(),y({offset:0})},children:[e("input",{ref:u,type:"search",name:"q",placeholder:o({id:"wxlF9B"}),required:!0,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellCheck:"false",dir:"auto",onInput:E}),e("input",{type:"image",class:"powered-button",src:is,width:"86",height:"30",alt:o({id:"c1Q/eU"})})]})}),e("main",{ref:O,class:r==="loading"?"loading":"",children:[r==="default"&&e("div",{class:"ui-state",children:e("p",{class:"insignificant",children:e(B,{id:"9KEidY"})})}),r==="loading"&&!c?.data?.length&&e("div",{class:"ui-state",children:e(rt,{abrupt:!0})}),c?.data?.length>0?e($e,{children:[e("ul",{children:c.data.map(b=>{const{id:w,images:F,title:L,alt_text:K}=b,{fixed_height_small:h,fixed_height_downsampled:M,fixed_height:Y,original:N}=F,U=h?.url?h:M?.url?M:Y;let{url:x,webp:A,width:$,height:V}=U;+V>100&&($=$/V*100,V=100);const le=URL.parse(x),fe=le.origin+le.pathname;let ae;if(A){const H=URL.parse(A);ae=H.origin+H.pathname}return e("li",{children:e("button",{type:"button",onClick:()=>{const{mp4:H,url:Ee}=N,Fe=H||Ee,ge=URL.parse(Fe),ve=ge.origin+ge.pathname;n(),t({url:ve,type:H?"video/mp4":"image/gif",alt_text:K||L})},children:e("figure",{style:{"--figure-width":$+"px"},children:[e("picture",{children:[ae&&e("source",{srcset:ae,type:"image/webp"}),e("img",{src:fe,width:$,height:V,loading:"lazy",decoding:"async",alt:K,referrerpolicy:"no-referrer",onLoad:H=>{H.target.style.backgroundColor="transparent"}})]}),e("figcaption",{children:K||L})]})})},w)})}),e("p",{class:"pagination",children:[c.pagination?.offset>0&&e("button",{type:"button",class:"light small",disabled:r==="loading",onClick:()=>{y({offset:c.pagination?.offset-kt})},children:[e(_,{icon:"chevron-left"}),e("span",{children:e(B,{id:"DHhJ7s"})})]}),e("span",{}),c.pagination?.offset+c.pagination?.count<c.pagination?.total_count&&e("button",{type:"button",class:"light small",disabled:r==="loading",onClick:()=>{y({offset:c.pagination?.offset+kt})},children:[e("span",{children:e(B,{id:"hXzOVo"})})," ",e(_,{icon:"chevron-right"})]})]})]}):r==="results"&&e("div",{class:"ui-state",children:e("p",{children:"No results"})}),r==="error"&&e("div",{class:"ui-state",children:e("p",{children:e(B,{id:"PbFw9n"})})})]})]})}const os={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_TRANSLANG_INSTANCES:"translang.phanpy.social",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"},{PHANPY_IMG_ALT_API_URL:Et}=os;function hi(n,t,s,o){const r=Math.sqrt(t/n),d=Math.floor(s*r),c=Math.floor(o*r);return{newWidth:d,newHeight:c}}function rs({attachment:n,disabled:t,lang:s,supportedMimeTypes:o,descriptionLimit:r=1500,onDescriptionChange:d=()=>{},onRemove:c=()=>{}}){const{i18n:p,_:v}=Ie(),[u,m]=P("default"),O=Re("@mastodon/edit-media-attributes")||Re("@gotosocial/edit-media-attributes"),{type:y,id:E,file:b}=n,w=je(()=>b?URL.createObjectURL(b):n.url,[b,n.url]),F=!!b?.size,L=F?yi():{},{mediaAttachments:{imageSizeLimit:K,imageMatrixLimit:h,videoSizeLimit:M,videoMatrixLimit:Y,videoFrameRateLimit:N}={}}=L||{},[U,x]=P(()=>F?y.startsWith("image")&&K&&b.size>K?{type:"imageSizeLimit",details:{imageSize:b.size,imageSizeLimit:K}}:y.startsWith("video")&&M&&b.size>M?{type:"videoSizeLimit",details:{videoSize:b.size,videoSizeLimit:M}}:null:null),[A,$]=P({});J(()=>{!F||!h||A?.matrix>h&&x({type:"imageMatrixLimit",details:{imageMatrix:A?.matrix,imageMatrixLimit:h,width:A?.width,height:A?.height}})},[A,h,F]);const[V,le]=P({});J(()=>{!F||!Y||V?.matrix>Y&&x({type:"videoMatrixLimit",details:{videoMatrix:V?.matrix,videoMatrixLimit:Y,width:V?.width,height:V?.height}})},[V,Y,F]);const[fe,ae]=P(n.description);let[H,Ee]=y.split("/");const Fe=new Set,ge={};o?.length&&o.forEach(R=>{const[W,Z]=R.split("/");ge[Z]=W,Fe.add(W)}),Fe.has(H)||(H=ge[Ee]);const ve=lt(d,250);J(()=>{ve(fe)},[fe,ve]);const[z,Q]=P(!1),X=j(null);J(()=>{let R;return z&&X.current&&(R=setTimeout(()=>{X.current.focus()},100)),()=>{clearTimeout(R)}},[z]);const de=e($e,{children:E&&!O?e("div",{class:"media-desc",children:[e("span",{class:"tag",children:e(B,{id:"3wG7HI"})}),e("p",{title:fe,children:n.description||e("i",{children:"No description"})})]}):e("textarea",{ref:X,value:fe||"",lang:s,placeholder:{image:v({id:"Lh8B0N"}),video:v({id:"mN4S+e"}),audio:v({id:"ieZytw"})}[H],autoCapitalize:"sentences",autoComplete:"on",autoCorrect:"on",spellCheck:"true",dir:"auto",disabled:t||u==="loading",class:u==="loading"?"loading":"",maxlength:r,onInput:R=>{const{value:W}=R.target;ae(W)}})}),ce=j(null);J(()=>()=>{ce.current?.hideToast?.()},[]);const be=j(null),ue=R=>{const{type:W,details:Z}=R;switch(W){case"imageSizeLimit":{const{imageSize:q,imageSizeLimit:oe}=Z;return v({id:"d83/LB",values:{0:it(q),1:it(oe)}})}case"imageMatrixLimit":{const{imageMatrix:q,imageMatrixLimit:oe,width:Ae,height:D}=Z,{newWidth:ne,newHeight:te}=hi(q,oe,Ae,D);return v({id:"DuvOX/",values:{0:p.number(Ae),1:p.number(D),2:p.number(ne),3:p.number(te)}})}case"videoSizeLimit":{const{videoSize:q,videoSizeLimit:oe}=Z;return v({id:"d83/LB",values:{0:it(q),1:it(oe)}})}case"videoMatrixLimit":{const{videoMatrix:q,videoMatrixLimit:oe,width:Ae,height:D}=Z,{newWidth:ne,newHeight:te}=hi(q,oe,Ae,D);return v({id:"DuvOX/",values:{0:p.number(Ae),1:p.number(D),2:p.number(ne),3:p.number(te)}})}case"videoFrameRateLimit":return v({id:"S1fBwy"})}};return e($e,{children:[e("div",{class:"media-attachment",children:[e("div",{class:"media-preview",tabIndex:"0",onClick:()=>{Q(!0)},children:H==="image"?e("img",{src:w,alt:"",onLoad:R=>{if(!F)return;const{naturalWidth:W,naturalHeight:Z}=R.target;$({matrix:W*Z,width:W,height:Z})}}):H==="video"||H==="gifv"?e("video",{src:w+"#t=0.1",playsinline:!0,muted:!0,disablePictureInPicture:!0,preload:"metadata",onLoadedMetadata:R=>{if(!F)return;const{videoWidth:W,videoHeight:Z}=R.target;W&&Z&&le({matrix:W*Z,width:W,height:Z})}}):H==="audio"?e("audio",{src:w,controls:!0}):null}),de,e("div",{class:"media-aside",children:[e("button",{type:"button",class:"plain close-button",disabled:t,onClick:c,children:e(_,{icon:"x",alt:v({id:"t/YqKh"})})}),!!U&&e("button",{type:"button",class:"media-error",title:ue(U),onClick:()=>{be.current&&be.current.hideToast(),be.current=_e({text:ue(U),duration:1e4})},children:e(_,{icon:"alert",alt:v({id:"SlfejT"})})})]})]}),z&&e(st,{onClose:()=>{Q(!1)},children:e("div",{id:"media-sheet",class:"sheet sheet-max",children:[e("button",{type:"button",class:"sheet-close",onClick:()=>{Q(!1)},children:e(_,{icon:"x",alt:v({id:"yz7wBu"})})}),e("header",{children:e("h2",{children:{image:v({id:"oMslIB"}),video:v({id:"WZw+zB"}),audio:v({id:"KMtgtM"})}[H]})}),e("main",{tabIndex:"-1",children:[e("div",{class:"media-preview",children:H==="image"?e("img",{src:w,alt:""}):H==="video"||H==="gifv"?e("video",{src:w,playsinline:!0,controls:!0}):H==="audio"?e("audio",{src:w,controls:!0}):null}),e("div",{class:"media-form",children:[de,e("footer",{children:[H==="image"&&/^(png|jpe?g|gif|webp)$/i.test(Ee)&&!!ee.settings.mediaAltGenerator&&!!Et&&e(wi,{portal:{target:document.body},containerProps:{style:{zIndex:1001}},align:"center",position:"anchor",overflow:"auto",menuButton:e("button",{type:"button",class:"plain",children:e(_,{icon:"more",size:"l",alt:v({id:"2FYpfJ"})})}),children:[e(ke,{disabled:u==="loading",onClick:()=>{m("loading"),ce.current=_e({text:v({id:"8zsp51"}),duration:-1}),async function(){try{const R=new FormData;R.append("image",b);const W=await fetch(Et,{method:"POST",body:R}).then(Z=>Z.json());if(W.error)throw new Error(W.error);ae(W.description)}catch(R){_e(R.message?v({id:"wy0Iwj",values:{0:R.message}}):v({id:"xhYfVj"}))}finally{m("default"),ce.current?.hideToast?.()}}()},children:[e(_,{icon:"sparkles2"}),s&&s!=="en"?e("small",{children:[e(B,{id:"o5sTJw"}),e("br",{}),"(English)"]}):e("span",{children:e(B,{id:"o5sTJw"})})]}),!!s&&s!=="en"&&e(ke,{disabled:u==="loading",onClick:()=>{m("loading"),ce.current=_e({text:v({id:"8zsp51"}),duration:-1}),async function(){try{const R=new FormData;R.append("image",b);const W=`?lang=${s}`,Z=await fetch(Et+W,{method:"POST",body:R}).then(q=>q.json());if(Z.error)throw new Error(Z.error);ae(Z.description)}catch(R){_e(v({id:"eNTGfp",values:{0:R?.message?`: ${R.message}`:""}}))}finally{m("default"),ce.current?.hideToast?.()}}()},children:[e(_,{icon:"sparkles2"}),e("small",{children:[e(B,{id:"o5sTJw"}),e("br",{}),e(B,{id:"m+pAEQ",values:{0:Ft(s)},components:{0:e("span",{class:"more-insignificant"})}})]})]})]}),e("button",{type:"button",class:"light block",onClick:()=>{Q(!1)},disabled:u==="loading",children:e(B,{id:"DPfwMq"})})]})]})]})]})})]})}function ls({onClose:n=()=>{},onSelect:t=()=>{},defaultSearchTerm:s}){const{_:o}=Ie(),{masto:r}=Ct(),[d,c]=P("default"),[p,v]=P([]),[u,m]=P({}),[O,y]=P(0),E=async h=>{if(!h?.length)return;const M=await cn(h,u);M&&m({...u,...M})},b=h=>{h&&(c("loading"),(async()=>{try{const M=await r.v1.accounts.search.list({q:h,limit:40,resolve:!1});v(M),E(M),c("default")}catch{c("error")}})())},w=lt(b,1e3);J(()=>{b()},[b]);const F=j();J(()=>{F.current&&(F.current.focus(),F.current.value&&(F.current.selectionStart=F.current.value.length,F.current.selectionEnd=F.current.value.length))},[]),J(()=>{s&&b(s)},[s]);const L=h=>{const M=h.acct;t(M),n()};We("enter",()=>{const h=p[O];h&&L(h)},{preventDefault:!0,enableOnFormTags:["input"],useKey:!0,ignoreEventWhen:h=>h.metaKey||h.ctrlKey||h.altKey||h.shiftKey});const K=j();return We("down",()=>{O<p.length-1?y(O+1):y(0),setTimeout(()=>{const h=K.current.querySelector(".selected");h&&h.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},1)},{preventDefault:!0,enableOnFormTags:["input"],useKey:!0,ignoreEventWhen:h=>h.metaKey||h.ctrlKey||h.altKey||h.shiftKey}),We("up",()=>{O>0?y(O-1):y(p.length-1),setTimeout(()=>{const h=K.current.querySelector(".selected");h&&h.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},1)},{preventDefault:!0,enableOnFormTags:["input"],useKey:!0,ignoreEventWhen:h=>h.metaKey||h.ctrlKey||h.altKey||h.shiftKey}),e("div",{id:"mention-sheet",class:"sheet",children:[!!n&&e("button",{type:"button",class:"sheet-close",onClick:n,children:e(_,{icon:"x",alt:o({id:"yz7wBu"})})}),e("header",{children:e("form",{onSubmit:h=>{h.preventDefault(),w.flush?.()},children:e("input",{ref:F,required:!0,type:"search",class:"block",placeholder:o({id:"eH1bqp"}),onInput:h=>{const{value:M}=h.target;w(M)},autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellCheck:"false",dir:"auto",defaultValue:s||""})})}),e("main",{children:p?.length>0?e("ul",{ref:K,class:`accounts-list ${d==="loading"?"loading":""}`,children:p.map((h,M)=>{const Y=u[h.id];return e("li",{class:M===O?"selected":"",children:[e(ki,{avatarSize:"xxl",account:h,relationship:Y,showStats:!0,showActivity:!0}),e("button",{type:"button",class:"plain2",onClick:()=>{L(h)},children:e(_,{icon:"plus",size:"xl",alt:o({id:"m16xKo"})})})]},h.id)})}):d==="loading"?e("div",{class:"ui-state",children:e(rt,{abrupt:!0})}):d==="error"?e("div",{class:"ui-state",children:e("p",{children:e(B,{id:"AThL/k"})})}):null})]})}function cs({quoteSuggestion:n,hasCurrentQuoteStatus:t,onAccept:s,onCancel:o}){return n?e("div",{class:"quote-suggestion",children:[e("div",{class:"quote-suggestion-header",children:[e("b",{children:e(B,{id:"UefSZg"})}),e("div",{class:"quote-suggestion-url",children:n.url})]}),e("div",{class:"quote-status",children:e(at,{status:n.status,instance:n.instance,size:"s",readOnly:!0})}),e("div",{class:"quote-suggestion-actions",children:[e("span",{class:"spacer"}),e("button",{type:"button",class:"plain",onClick:o,children:t?e(B,{id:"dEgA5A"}):e(B,{id:"nc+Oa+"})}),e("button",{type:"button",class:"plain6",onClick:s,children:t?e(B,{id:"UYZxOy"}):e(B,{id:"vuFeUI"})})]})]}):null}const us=St.reduce((n,t)=>{const[s,o,r]=t;return n[s]={common:o,native:r},n},{}),ds=Object.keys(Ai),pi=24*60*60,mi=n=>{if(!n)return pi;const t=(Date.parse(n)-Date.now())/1e3;return ds.find(s=>s>=t)||pi},Pe=Yi([un(),...navigator.languages],St.map(n=>n[0]),"en"),hs=/(^|[^\/\w])[@](([a-z0-9_]+)@[a-z0-9\.\-]+[a-z0-9]+)/gi,ps="$2xxxxxxxxxxxxxxxxxxxxxxx";function ms(n){return n.replace(Ei,ps).replace(hs,"$1@$3")}const fs=Zi(n=>new Intl.ListFormat(n||void 0)),se={camera:{id:"TbrCz2"},media:{id:"MfJ43d"},customEmoji:{id:"ggiJLM"},gif:{id:"Fm6c4W"},poll:{id:"cZJ92q"},sensitive:{id:"x/s2/O"},scheduledPost:{id:"sX3iLV"}},gs=Math.max(10*60*1e3,dn);function ws({onClose:n,replyToStatus:t,replyMode:s="all",editStatus:o,draftStatus:r,quoteStatus:d,standalone:c,hasOpener:p}){const{i18n:v,_:u,_:m}=Ie(),O=hn(v.locale),y=fs(v.locale),{masto:E,instance:b}=Ct(),[w,F]=P("default"),L=j(r?.uid||pn()),K=je(Qi,[]),h=K.info,M=yi(),{statuses:{maxCharacters:Y,maxMediaAttachments:N,charactersReservedPerUrl:U}={},mediaAttachments:{supportedMimeTypes:x,imageSizeLimit:A,imageMatrixLimit:$,videoSizeLimit:V,videoMatrixLimit:le,videoFrameRateLimit:fe,descriptionLimit:ae}={},polls:{maxOptions:H,maxCharactersPerOption:Ee,maxExpiration:Fe,minExpiration:ge}={}}=M||{},ve=x?.filter(a=>/^(image|video)/i.test(a)),z=j(),Q=j(),[X,de]=P("public"),[ce,be]=P("public"),[ue,R]=P(!1),[W,Z]=P(!1),[q,oe]=P(me.session.get("currentLanguage")||Pe),Ae=j(q),[D,ne]=P([]),[te,Oe]=P(null),[Ce,Ge]=P(null),[Ye,Ne]=P(null),[_t,ct]=P(d),[Tt,It]=P(!1),ie=Xi(),re=Tt?null:_t||d,Si=a=>{if(!De())return!1;const{visibility:l,quoteApproval:g,account:f}=a,C=h&&h.id===f.id,S=["public","unlisted"].includes(l),k=C&&l==="private",I=g?.currentUser==="automatic"&&(S||k),T=g?.currentUser==="manual"&&(S||k);return!S&&!C?!1:I?!0:!!T},Li=async a=>{if(De()){if(D.length>0||te||o||X==="direct")return;try{const l=await Ji(b,a);if(l?.id){const g=ee.statuses[`${l.instance}/${l.id}`];if(g&&Si(g)){if(re?.id===g.id)return;Ne({status:g,instance:l.instance,url:l.originalURL})}}}catch{}}},Se=()=>{z.current&&z.current.dispatchEvent(new Event("input"))},ye=a=>{setTimeout(()=>{z.current&&(a!==void 0&&z.current.setSelectionRange(a,a),z.current?.focus())},300)},Mt=({targetElement:a,text:l})=>{if(!a)return;const{selectionStart:g,selectionEnd:f,value:C}=a;let S=C.slice(0,g);S=S.replace(/\u200B$/,"");const k=S?/[\s\t\n\r]$/.test(S)?"":" ":"",I=C.slice(f),T=/^[\s\t\n\r]/.test(I)?"":" ",xe=S+k+l+T+I;a.value=xe,a.selectionStart=a.selectionEnd=f+l.length+T.length,a.focus(),a.dispatchEvent(new Event("input"))},Ze=j(null),Qe=j(null),Ke=()=>{setTimeout(()=>{Ze.current&&Ze.current.focus()},0)},Xe=j(null);J(()=>{const a=g=>{Xe.current.classList.toggle("focused",g.type==="focusin");const f=g.target;f.hasAttribute("data-allow-custom-emoji")&&(Qe.current=f),["INPUT","BUTTON","SELECT","TEXTAREA"].includes(f.tagName)&&(Ze.current=f)},l=Xe.current;return l&&(l.addEventListener("focusin",a),l.addEventListener("focusout",a)),()=>{l&&(l.removeEventListener("focusin",a),l.removeEventListener("focusout",a))}},[]),J(()=>{if(t){const{spoilerText:a,visibility:l,language:g,sensitive:f}=t;a&&Q.current&&(Q.current.value=a);const S=[...new Set([t.account.acct,...t.mentions.map(k=>k.acct)])].filter(k=>k!==h.acct);if(S.length>0){const k=`@${t.account.acct}`,I=S.filter(T=>T!==t.account.acct).map(T=>`@${T}`);if(s==="author-only")z.current.value=`${k} `,Se(),ye();else if(s==="author-first")if(I.length>0){z.current.value=`${k}
${I.join(" ")}`,Se();const T=k.length+1;ye(T)}else z.current.value=`${k} `,Se(),ye();else z.current.value=`${S.map(T=>`@${T}`).join(" ")} `,Se(),ye()}de(l==="public"&&ie["posting:default:visibility"]?ie["posting:default:visibility"].toLowerCase():l),oe(g||ie["posting:default:language"]?.toLowerCase()||Pe),R(!!a)}else if(o){const{visibility:a,language:l,sensitive:g,poll:f,mediaAttachments:C,quoteApproval:S}=o,k=!!f?.options&&{...f,options:f.options.map(I=>I?.title||I),expiresIn:f?.expiresIn||mi(f.expiresAt)};F("loading"),(async()=>{try{const I=await E.v1.statuses.$select(o.id).source.fetch(),{text:T,spoilerText:xe}=I;if(z.current.value=T,z.current.dataset.source=T,Se(),ye(),Q.current.value=xe,de(a),oe(l||ie["posting:default:language"]?.toLowerCase()||Pe),De()){const G=mn(S);be(G)}R(g),k&&Oe(k),ne(C),F("default")}catch(I){alert(I?.reason||I),F("error")}})()}else if(ye(),ie["posting:default:visibility"]&&de(ie["posting:default:visibility"].toLowerCase()),ie["posting:default:language"]&&oe(ie["posting:default:language"].toLowerCase()),ie["posting:default:sensitive"]&&R(!!ie["posting:default:sensitive"]),ie["posting:default:quote_policy"]){let a=ie["posting:default:quote_policy"].toLowerCase();if(ie["posting:default:visibility"]){const l=ie["posting:default:visibility"].toLowerCase();(l==="private"||l==="direct")&&(a="nobody")}be(a)}if(r){const{status:a,spoilerText:l,visibility:g,language:f,sensitive:C,sensitiveMedia:S,poll:k,mediaAttachments:I,scheduledAt:T,quoteApprovalPolicy:xe}=r,G=!!k?.options&&{...k,options:k.options.map(pe=>pe?.title||pe),expiresIn:k?.expiresIn||mi(k.expiresAt)};z.current.value=a,Se();const he=/^\n|\s/.test(a)?0:void 0;ye(he),l&&(Q.current.value=l),g&&de(g),oe(f||ie["posting:default:language"]?.toLowerCase()||Pe),S!==null&&Z(S),C!==null&&R(C),G&&Oe(G),I&&ne(I),T&&Ge(T),xe&&be(xe)}},[r,o,t,s]);const Pt=gi(ee);J(()=>{Pt.composerState.minimized||ye()},[Pt.composerState.minimized]);const Bt=j(),Dt=m({id:"hR9gtK"}),ut=()=>{const{value:a,dataset:l}=z.current;if(w==="loading")return!1;const g=(a||"").trim().replace(new RegExp("^\\p{White_Space}+|\\p{White_Space}+$","gu"),""),f=D.length>0;if(!g&&!f||D.length>0&&D.every(T=>T.id))return!0;const S=t?.account.id===h.id,k=t&&a.trim()===`@${t.account.acct}`;return!!(!S&&k||a===l?.source)},dt=()=>ut()?!0:confirm(Dt);J(()=>{const a=l=>{ut()||(l.preventDefault(),l.returnValue=Dt)};return window.addEventListener("beforeunload",a,{capture:!0}),()=>window.removeEventListener("beforeunload",a,{capture:!0})},[]);const zi=()=>{const{value:a}=z.current,{value:l}=Q.current;return ti(ms(a))+ti(l)},ht=()=>{const a=zi();ee.composerCharacterCount=a};J(ht,[]);const Rt=window.CloseWatcher,pt=j(!1);We("esc",()=>{pt.current=!0},{enabled:!Rt,enableOnFormTags:!0,useKey:!0,ignoreEventWhen:a=>a.metaKey||a.ctrlKey||a.altKey||a.shiftKey}),We("esc",()=>{!c&&pt.current&&dt()&&n(),pt.current=!1},{enabled:!Rt,enableOnFormTags:!0,keyup:!0,ignoreEventWhen:a=>{const l=document.querySelectorAll("#modal-container > *"),g=!!l,f=l.length===1&&l[0].querySelector("#compose-container");return g&&!f||a.metaKey||a.ctrlKey||a.altKey||a.shiftKey},useKey:!0}),fn(()=>{!c&&dt()&&n()},[]);const jt=j({}),$t=()=>`${en()}#${L.current}`,mt=()=>{if(o||ee.composerState.minimized)return;const a=$t(),l={key:a,replyTo:t?{id:t.id,account:{id:t.account.id,username:t.account.username,acct:t.account.acct}}:null,draftStatus:{uid:L.current,status:z.current.value,spoilerText:Q.current.value,visibility:X,language:q,sensitive:ue,sensitiveMedia:W,poll:te,mediaAttachments:D,scheduledAt:Ce,quoteApprovalPolicy:ce},quote:re?.id?{id:re.id}:null};!tn(l,jt.current)&&!ut()&&(Jt.drafts.set(a,{...l,state:"unsaved",updatedAt:Date.now()}).then(()=>{}).catch(g=>{}),jt.current=structuredClone(l))};gn(mt,5e3),J(()=>(mt(),()=>{Jt.drafts.del($t())}),[]),J(()=>{const a=g=>{if(document.querySelector(".sheet"))return;const{items:f}=g.clipboardData||g.dataTransfer,C=[],S=[];for(let k=0;k<f.length;k++){const I=f[k];if(I.kind==="file"){const T=I.getAsFile();x!==void 0&&!x.includes(T.type)?S.push(T):C.push(T)}}if(S.length>0&&alert(Ve._({id:"rpXAF6",values:{0:S.length,1:S[0].name,2:y.format(S.map(k=>k.name))}})),C.length>0&&D.length>=N){alert(Ve._({id:"ctFhjs",values:{maxMediaAttachments:N}}));return}if(C.length>0){g.preventDefault(),g.stopPropagation();let k=C;if(N!==void 0){const T=N-D.length;if(k=k.slice(0,T),k.length<=0){alert(Ve._({id:"ctFhjs",values:{maxMediaAttachments:N}}));return}}const I=k.map(T=>({file:T,type:T.type,size:T.size,url:URL.createObjectURL(T),id:null,description:null}));ne([...D,...I])}};window.addEventListener("paste",a);const l=g=>{g.dataTransfer.items.length>0&&(g.preventDefault(),g.stopPropagation())};return window.addEventListener("dragover",l),window.addEventListener("drop",a),()=>{window.removeEventListener("paste",a),window.removeEventListener("dragover",l),window.removeEventListener("drop",a)}},[D]);const[Ot,ft]=P(!1),[gt,Be]=P(!1),[_i,Je]=P(!1),[He,Ti]=P(null),[Ii,Mi]=je(()=>{const a=[],l=[],{contentTranslationHideLanguages:g=[]}=ee.settings;return St.forEach(f=>{const[C]=f;C===q||C===Ae.current||C===Pe||g.includes(C)||He?.length&&He.includes(C)?a.push(f):l.push(f)}),a.sort(([f,C],[S,k])=>f===q?-1:S===q?1:C.localeCompare(k)),l.sort(([f,C],[S,k])=>C.localeCompare(k)),[a,l]},[q,He]),Nt=je(()=>!!t?.createdAt&&Math.floor((Date.now()-Date.parse(t.createdAt))/(1e3*60*60*24*30)),[t]),Pi=()=>{mt(),ee.composerState.minimized=!0},Le=w==="loading"||N!==void 0&&D.length>=N||!!te,Kt=w==="loading"||!!ue,Ht=()=>{R(!0),setTimeout(()=>{Q.current?.focus()},0)},qt=H==null||H>1,Ut=w==="loading"||!!te||!!D.length,Vt=()=>{Oe({options:["",""],expiresIn:24*60*60,multiple:!1}),setTimeout(()=>{Xe.current?.querySelector('.poll-choice input[type="text"]')?.focus()},0)},Bi=q!==Ae.current||He?.length&&!He.includes(q),Di=X!=="public",Ri=ce!=="public",Wt=X==="private"||X==="direct",et=j(),[ji,$i]=P(!0),Oi=42;xi({ref:et,box:"border-box",onResize:({width:a})=>{const{scrollWidth:l}=et.current,g=l>a,f=a<Oi*4;$i(f||g),et.current.hidden=f}});const Gt=!o,Yt=w==="loading"||!!Ce,Zt=()=>{const a=new Date(Date.now()+gs);Ge(a)};return e("div",{id:"compose-container-outer",ref:Xe,children:[e("div",{id:"compose-container",tabIndex:-1,class:c?"standalone":"",children:[e("div",{class:"compose-top",children:[h?.avatarStatic&&e(ki,{account:h,accountInstance:K.instanceURL,hideDisplayName:!0,useAvatarStatic:!0}),c?p&&e("button",{type:"button",class:"light pop-button",disabled:w==="loading",onClick:()=>{if(!window.opener){alert(m({id:"qiPXgY"}));return}if(window.opener.__STATES__.showCompose){if(window.opener.__STATES__.composerState?.publishing){alert(m({id:"Z2l5Bt"}));return}let a=m({id:"AB/GtR"});if(!confirm(a))return}n({fn:()=>{const a={editStatus:o,replyToStatus:t,replyMode:s,draftStatus:{uid:L.current,status:z.current.value,spoilerText:Q.current.value,visibility:X,language:q,sensitive:ue,sensitiveMedia:W,poll:te,mediaAttachments:D,scheduledAt:Ce},quoteStatus:re};window.opener.__COMPOSE__=a,window.opener.__STATES__.showCompose?(window.opener.__STATES__.showCompose=!1,setTimeout(()=>{window.opener.__STATES__.showCompose=!0},10)):window.opener.__STATES__.showCompose=!0,window.opener.__STATES__.composerState.minimized&&(window.opener.__STATES__.composerState.minimized=!1)}})},children:e(_,{icon:"popin",alt:m({id:"/5ZKeE"})})}):e("span",{class:"compose-controls",children:[e("button",{type:"button",class:"plain4 pop-button",disabled:w==="loading",onClick:()=>{vn({editStatus:o,replyToStatus:t,draftStatus:{uid:L.current,status:z.current.value,spoilerText:Q.current.value,visibility:X,language:q,sensitive:ue,poll:te,mediaAttachments:D,scheduledAt:Ce},quoteStatus:re})&&n()},children:e(_,{icon:"popout",alt:m({id:"JsU2En"})})}),e("button",{type:"button",class:"plain4 min-button",onClick:Pi,children:e(_,{icon:"minimize",alt:m({id:"3TSz9S"})})})," ",e("button",{type:"button",class:"plain4 close-button",disabled:w==="loading",onClick:()=>{dt()&&n()},children:e(_,{icon:"x",alt:m({id:"yz7wBu"})})})]})]}),!!t&&e("details",{class:"status-preview",open:!0,children:[e(at,{status:t,size:"s",previewMode:!0}),e("summary",{class:"status-preview-legend reply-to",children:Nt>0?e(B,{id:"Q1Huya",values:{0:t.account.acct||t.account.username,1:O.format(-Nt,"month")},components:{0:e("strong",{})}}):e(B,{id:"dwLCPZ",values:{0:t.account.acct||t.account.username}})})]}),!!o&&e("details",{class:"status-preview",children:[e(at,{status:o,size:"s",previewMode:!0}),e("summary",{class:"status-preview-legend",children:e(B,{id:"wKtOLH"})})]}),e("form",{ref:Bt,class:`form-visibility-${X}`,style:{pointerEvents:w==="loading"?"none":"auto",opacity:w==="loading"?.5:1},onClick:()=>{setTimeout(()=>{document.activeElement||Ze.current?.focus?.()},10)},onKeyDown:a=>{a.key==="Enter"&&(a.ctrlKey||a.metaKey)&&Bt.current.dispatchEvent(new Event("submit",{cancelable:!0}))},onSubmit:a=>{a.preventDefault();const l=new FormData(a.target),g=Object.fromEntries(l.entries());let{status:f,visibility:C,sensitive:S,sensitiveMedia:k,spoilerText:I,scheduledAt:T,quoteApprovalPolicy:xe}=g;if(S=S==="on",k=k==="on",T=T?new Date(T).toISOString():void 0,te){if(te.options.length<2){alert(m({id:"zhrMYj"}));return}if(te.options.some(G=>G==="")){alert(m({id:"uNVxXX"}));return}}D.length>0&&D.some(he=>!he.description?.trim?.())&&!confirm(m({id:"MQYucx"}))||(I=S&&I||void 0,f=f===""?void 0:f,ee.composerState.publishing=!0,F("loading"),(async()=>{try{if(D.length>0){const pe=D.map(we=>{const{file:Ni,description:Ki,id:Hi}=we;if(Hi)return we;{const qi=fi({file:Ni,description:Ki});return E.v2.media.create(qi).then(vt=>(vt.id&&(we.id=vt.id),vt))}}),Qt=await Promise.allSettled(pe);if(Qt.some(we=>we.status==="rejected"||!we.value?.id)){ee.composerState.publishing=!1,ee.composerState.publishingError=!0,F("error"),Qt.forEach(we=>{we.status==="rejected"&&alert(we.reason||m({id:"eIiurD",values:{i}}))});return}}let G={status:f,spoiler_text:I,language:q,sensitive:S||k,poll:te,media_ids:D.map(pe=>pe.id)};o?(De()&&(G.quote_approval_policy=xe),(Re("@mastodon/edit-media-attributes")||Re("@gotosocial/edit-media-attributes"))&&(G.media_attributes=D.map(pe=>({id:pe.id,description:pe.description})))):(De()&&re?.id&&(G.quoted_status_id=re.id,G.quote_approval_policy=xe),G.visibility=C,G.in_reply_to_id=t?.id||void 0,G.scheduled_at=T),G=fi(G);let he;if(o)he=await E.v1.statuses.$select(o.id).update(G),nn(he,b,{skipThreading:!0});else try{he=await E.v1.statuses.create(G,{requestInit:{headers:{"Idempotency-Key":L.current}}})}catch{he=await E.v1.statuses.create(G)}ee.composerState.minimized=!1,ee.composerState.publishing=!1,F("default"),n({type:o?"edit":t?"reply":"post",newStatus:he,instance:b,scheduledAt:T})}catch(G){ee.composerState.publishing=!1,ee.composerState.publishingError=!0,alert(G?.reason||G),F("error")}})())},children:[e("div",{children:[e("div",{class:`compose-cw-container ${ue?"":"collapsed"}`,children:[e("input",{type:"hidden",name:"sensitive",value:ue?"on":"off"}),e(zt,{keys:":",class:"spoiler-text-field-container",onTrigger:a=>{a?.name==="custom-emojis"&&Be({targetElement:Q,defaultSearchTerm:a?.defaultSearchTerm||null})},children:e("input",{ref:Q,type:"text",name:"spoilerText",placeholder:m({id:"gnKo7f"}),"data-allow-custom-emoji":"true",disabled:w==="loading",class:"spoiler-text-field",lang:q,spellCheck:"true",autocomplete:"off",dir:"auto",onInput:()=>{ht()}})}),e("button",{type:"button",class:"close-button plain4 small",onClick:()=>{R(!1),z.current.focus()},children:e(_,{icon:"x",alt:m({id:"dEgA5A"})})})]}),e(Jn,{ref:z,"data-allow-custom-emoji":"true",placeholder:m(t?{id:"Sjj+EN"}:o?{id:"qzVesX"}:te?{id:"/fY1js"}:{id:"owpNF1"}),required:D?.length===0,disabled:w==="loading",lang:q,onInput:()=>{ht()},maxCharacters:Y,onTrigger:a=>{a?.name==="custom-emojis"?Be({targetElement:Qe,defaultSearchTerm:a?.defaultSearchTerm||null}):a?.name==="mention"?ft({defaultSearchTerm:a?.defaultSearchTerm||null}):a?.name==="auto-detect-language"&&a?.languages?Ti(a.languages):a?.name==="pasted-link"&&a?.url&&Li(a.url)}})]}),D?.length>0&&e("div",{class:"media-attachments",children:[D.map((a,l)=>{const{id:g,file:f}=a,C=f?.size+f?.type+f?.name;return e(rs,{attachment:a,disabled:w==="loading",lang:q,supportedMimeTypes:x,descriptionLimit:ae,onDescriptionChange:S=>{ne(k=>{const I=[...k];return I[l]={...I[l],description:S},I})},onRemove:()=>{ne(S=>S.filter((k,I)=>I!==l))}},g||C||l)}),e("label",{class:"media-sensitive",children:[e("input",{name:"sensitiveMedia",type:"checkbox",checked:W,disabled:w==="loading",onChange:a=>{const l=a.target.checked;Z(l)}})," ",e("span",{children:e(B,{id:"jER18a"})})," ",e(_,{icon:`eye-${W?"close":"open"}`})]})]}),!!te&&e(qn,{lang:q,maxOptions:H,maxExpiration:Fe,minExpiration:ge,maxCharactersPerOption:Ee,poll:te,disabled:w==="loading",onInput:a=>{if(a){const l={...a};Oe(l)}else Oe(null),Ke()}}),!!re?.id&&e("div",{class:"quote-status",children:e(at,{status:re,instance:b,size:"s",readOnly:!0})}),Ce&&e("div",{class:"toolbar scheduled-at",children:[e("span",{children:[e("label",{children:e(B,{id:"GKuKcZ",components:{0:e(bn,{scheduledAt:Ce,setScheduledAt:Ge})}})})," ",e("small",{class:"tag insignificant",children:yn()})]}),e("button",{type:"button",class:"plain4 close-button small",onClick:()=>{Ge(null),Ke()},children:e(_,{icon:"x",alt:m({id:"dEgA5A"})})})]}),e(cs,{quoteSuggestion:Ye,hasCurrentQuoteStatus:!!re?.id,onAccept:()=>{const{status:a}=Ye,l=z.current?.value||"",g=z.current?.selectionStart||0,f=l.lastIndexOf(Ye.url,g),C=l.slice(0,f)+l.slice(f+Ye.url.length);z.current&&(z.current.value=C,z.current.dispatchEvent(new Event("input"))),!!re?.id?(Ne(null),ct(a)):document.startViewTransition?document.startViewTransition(()=>{Ne(null),ct(a)}):(Ne(null),ct(a)),ye()},onCancel:()=>Ne(null)}),e("div",{class:"toolbar compose-footer",children:[e("span",{class:"add-toolbar-button-group spacer",children:[ji&&e(wi,{portal:{target:document.body},containerProps:{style:{zIndex:1001}},menuButton:({open:a})=>e("button",{type:"button",class:`toolbar-button add-button ${a?"active":""}`,children:e(_,{icon:"plus",title:m({id:"m16xKo"})})}),children:[si&&e(ke,{disabled:Le,className:"compose-menu-add-media",children:[e("label",{class:"compose-menu-add-media-field",children:e(ni,{hidden:!0,supportedMimeTypes:ve,disabled:Le,setMediaAttachments:ne})}),e(_,{icon:"camera"})," ",e("span",{children:u(se.camera)})]}),e(ke,{disabled:Le,className:"compose-menu-add-media",children:[e("label",{class:"compose-menu-add-media-field",children:e(di,{hidden:!0,supportedMimeTypes:x,maxMediaAttachments:N,mediaAttachments:D,disabled:Le,setMediaAttachments:ne})}),e(_,{icon:"media"})," ",e("span",{children:u(se.media)})]}),e(ke,{disabled:Kt,onClick:Ht,children:[e(_,{icon:`eye-${ue?"close":"open"}`})," ",e("span",{children:u(se.sensitive)})]}),qt&&e(ke,{disabled:Ut,onClick:Vt,children:[e(_,{icon:"poll"})," ",e("span",{children:u(se.poll)})]}),e(ei,{}),e(ke,{onClick:()=>{Be({targetElement:Qe})},children:[e(_,{icon:"emoji2"})," ",e("span",{children:u(se.customEmoji)})]}),!!ee.settings.composerGIFPicker&&e(ke,{disabled:Le,onClick:()=>{Je(!0)},children:[e("span",{class:"icon icon-gif",role:"img"}),e("span",{children:u(se.gif)})]}),Gt&&e($e,{children:[e(ei,{}),e(ke,{disabled:Yt,onClick:Zt,children:[e(_,{icon:"schedule"})," ",e("span",{children:u(se.scheduledPost)})]})]})]}),e("span",{class:"add-sub-toolbar-button-group",ref:et,hidden:!0,children:[si&&e("label",{class:"toolbar-button",children:[e(ni,{supportedMimeTypes:ve,mediaAttachments:D,disabled:Le,setMediaAttachments:ne}),e(_,{icon:"camera",alt:u(se.camera)})]}),e("label",{class:"toolbar-button",children:[e(di,{supportedMimeTypes:x,maxMediaAttachments:N,mediaAttachments:D,disabled:Le,setMediaAttachments:ne}),e(_,{icon:"media",alt:u(se.media)})]}),e("button",{type:"button",class:"toolbar-button",disabled:Kt,onClick:Ht,children:e(_,{icon:`eye-${ue?"close":"open"}`,alt:u(se.sensitive)})}),qt&&e("button",{type:"button",class:"toolbar-button",disabled:Ut,onClick:Vt,children:e(_,{icon:"poll",alt:u(se.poll)})}),e("div",{class:"toolbar-divider"}),e("button",{type:"button",class:"toolbar-button",disabled:w==="loading",onClick:()=>{Be({targetElement:Qe})},children:e(_,{icon:"emoji2",alt:u(se.customEmoji)})}),!!ee.settings.composerGIFPicker&&e("button",{type:"button",class:"toolbar-button gif-picker-button",disabled:Le,onClick:()=>{Je(!0)},children:e("span",{class:"icon icon-gif","aria-label":u(se.gif)})}),Gt&&e($e,{children:[e("div",{class:"toolbar-divider"}),e("button",{type:"button",class:`toolbar-button ${Ce?"highlight":""}`,disabled:Yt,onClick:Zt,children:e(_,{icon:"schedule",alt:u(se.scheduledPost)})})]})]})]}),w==="loading"?e(rt,{abrupt:!0}):e(Ln,{maxCharacters:Y,hidden:w==="loading"}),De()&&e("label",{class:`toolbar-button ${Ri?"highlight":""}`,children:[e(_,{icon:"quote2",alt:"Quote settings"}),ce==="followers"&&e(_,{icon:"group",class:"insignificant"}),ce==="nobody"&&e(_,{icon:"block",class:"insignificant"}),e("select",{name:"quoteApprovalPolicy",value:ce,onChange:a=>{be(a.target.value)},disabled:w==="loading",dir:"auto",children:[e("option",{value:"public",disabled:Wt,children:e(B,{id:"hDWXuG"})}),e("option",{value:"followers",disabled:Wt,children:e(B,{id:"9Ko+Xp"})}),e("option",{value:"nobody",children:e(B,{id:"+bAQ3S"})})]})]}),e("label",{class:`toolbar-button ${Di?"highlight":""}`,title:u(yt[X]),children:[X==="public"||X==="direct"?e(_,{icon:xn[X],alt:u(yt[X])}):e("span",{class:"icon-text",children:u(yt[X])}),e("select",{name:"visibility",value:X,onChange:a=>{if(de(a.target.value),(a.target.value==="private"||a.target.value==="direct")&&be("nobody"),a.target.value==="direct"&&re?.id){const l=re.url;if(l){const g=z.current.value;g.includes(l)||(z.current.value=g+(g?`
`:"")+l,Se())}It(!0),_e(m({id:"Z/Vnvj"}))}else if(a.target.value!=="direct"&&Tt){const l=(_t||d)?.url;if(l&&z.current){const g=z.current.value,f=g.indexOf(l);if(f!==-1){let C=g.slice(0,f)+g.slice(f+l.length);C=C.replace(/\n+$/,""),z.current.value=C,Se()}}It(!1)}},disabled:w==="loading"||!!o,dir:"auto",children:[e("option",{value:"public",children:e(B,{id:"7d1a0d"})}),(Re("@pleroma/local-visibility-post")||Re("@akkoma/local-visibility-post"))&&e("option",{value:"local",children:e(B,{id:"d5zxa4"})}),e("option",{value:"unlisted",children:e(B,{id:"pPYeIN"})}),e("option",{value:"private",children:e(B,{id:"x5LEuB"})}),e("option",{value:"direct",children:e(B,{id:"IV4QaU"})})]})]})," ",e("label",{class:`toolbar-button ${Bi?"highlight":""}`,children:[e("span",{class:"icon-text",children:us[q]?.native}),e("select",{name:"language",value:q,onChange:a=>{const{value:l}=a.target;oe(l||Pe),me.session.set("currentLanguage",l||Pe)},disabled:w==="loading",dir:"auto",children:[Ii.map(([a,l,g])=>{const f=Ft({code:a,fallback:l});return e("option",{value:a,children:f!==g?`${g} - ${f}`:f},a)}),e("hr",{}),Mi.map(([a,l,g])=>{const f=Ft({code:a,fallback:l});return e("option",{value:a,children:f!==g?`${g} - ${f}`:f},a)})]})]})," ",e("button",{type:"submit",disabled:w==="loading",children:m(Ce?{id:"gmB6oO"}:t?{id:"ImOQa9"}:o?{id:"EkH9pt"}:{id:"GMe2XV"})})]})]})]}),Ot&&e(st,{onClose:()=>{ft(!1),Ke()},children:e(ls,{masto:E,instance:b,onClose:()=>{ft(!1)},defaultSearchTerm:Ot?.defaultSearchTerm,onSelect:a=>{const l=z.current;l&&Mt({targetElement:l,text:"@"+a})}})}),gt&&e(st,{onClose:()=>{Be(!1),Ke()},children:e(ts,{masto:E,instance:b,onClose:()=>{Be(!1)},defaultSearchTerm:gt?.defaultSearchTerm,onSelect:a=>{const l=gt?.targetElement?.current||z.current;l&&Mt({targetElement:l,text:a})}})}),_i&&e(st,{onClose:()=>{Je(!1),Ke()},children:e(as,{onClose:()=>Je(!1),onSelect:({url:a,type:l,alt_text:g})=>{if(D.length>=N){alert(Ve._({id:"ctFhjs",values:{maxMediaAttachments:N}}));return}(async()=>{let f;try{f=_e({text:m({id:"/Cw4Tx"}),duration:-1});const C=await fetch(a,{referrerPolicy:"no-referrer"}).then(I=>I.blob()),S=new File([C],l==="video/mp4"?"video.mp4":"image.gif",{type:l}),k=[...D,{file:S,type:l,size:S.size,id:null,description:g||""}];ne(k),f?.hideToast?.()}catch{f?.hideToast?.(),_e(m({id:"VKDnAx"}))}})()}})})]})}function fi(n){for(let t in n)(n[t]===null||n[t]===void 0)&&delete n[t];return n}export{ws as default};
//# sourceMappingURL=compose-CUhufx8N.js.map